---
title: "Practical recommendations for gradient-based training of deep"
description: "Bengio explains how to train deep neural networks with gradients, tune their settings, and diagnose problems when learning stalls."
canonical: "https://research.elamur.ai/free/en/papers/bengio-2012-practical-recommendations-gradient-based-training/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/bengio-2012-practical-recommendations-gradient-based-training/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2012](https://md.research.elamur.ai/free/en/papers/2012/) / Practical recommendations for gradient-based training of deep architectures

# Practical recommendations for gradient-based training of deep architectures

Paper · 2012 · Yoshua Bengio

**Authors:** [Yoshua Bengio](https://md.research.elamur.ai/free/en/authors/yoshua-bengio/) · **Year:** 2012 · **Venue:** arXiv:1206.5533 · **Licence:** [arXiv — non-exclusive licence to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1206.5533)
- [arXiv 1206.5533](https://arxiv.org/abs/1206.5533)

## Summary

A deep neural network can have enough capacity for a task and still learn poorly. The starting weights may send the training procedure in an unproductive direction, the updates may be too large, or the network may fit its training examples while doing poorly on new ones. Yoshua Bengio’s chapter explains how to tell these problems apart and which choices are worth investigating first. Its subject is gradient-based training, in which the derivatives of a loss guide changes to the network’s parameters. The chapter concentrates on hyper-parameters, the choices that govern training or define the network and that the training procedure itself does not ordinarily learn.

One approach is to learn each layer in turn from unlabeled examples before training the whole network on the task of interest. Bengio explains how an autoencoder learns by reconstructing its input and compares approaches that make the reconstruction or the internal representation less sensitive to small perturbations. He also covers training directly from an initial set of weights, stochastic gradient descent on small groups of examples, and the computation of derivatives by tracing operations backward through a graph. The chapter reports earlier evidence that better initialization can narrow the gap between supervised training and training with unsupervised pretraining. It also describes how the choice of hidden activation can leave a deep network on a long training plateau.

The practical advice extends from the first update to the final evaluation. Bengio treats the initial learning rate as an especially important setting, explains when random search can use a trial budget more effectively than a grid, and shows how validation data can select both a configuration and a stopping point. He recommends checking derivatives numerically and trying to fit a deliberately small training set before interpreting a disappointing result. Other sections cover visualization, parallel computation, sparse inputs, and shared vector representations for symbols and relations. Several recommendations had implementations in Deep Learning Tutorials and Pylearn2, both based on Theano.

The chapter presents no new benchmark. It brings together earlier experiments, mathematical arguments, and judgments from practice, with different levels of evidence behind different recommendations. Bengio explicitly invites readers to test the advice, since researchers disagree and many choices have received little controlled comparison. The chapter closes with a question that gives these practical details their importance. Deep networks can represent some functions efficiently, yet it remains difficult to explain why adding layers sometimes makes a good solution harder to reach.

## Deep dive: Practical recommendations for gradient-based training of deep architectures

Bengio explains how to train deep neural networks with gradients, tune their settings, and diagnose problems when learning stalls. · about 43 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### A useful representation can be hard to learn

In a multilayer network, the input passes through a succession of transformations. Each layer produces a representation that the next layer can use. The final layer might predict a class, while the intermediate layers compute quantities that help make the prediction. The appeal of depth lies partly in reuse. Several later computations can depend on the same earlier feature, and combinations of earlier features can themselves become reusable. Bengio traces this argument to circuit complexity, where depth is the length of the longest route from an input to an output and where the allowed operations at each node determine the terms of a comparison.

The theoretical work cited in the chapter identifies families of functions for which a sufficiently deep circuit can be exponentially more economical than one with too few layers. The comparison concerns the resources needed to express a function. The learning question has an additional requirement. The training procedure must find a useful function from examples, within the available time, and its predictions must hold up on data it has yet to see. Bengio connects economical representation to a possible gain in statistical efficiency when the same functions can be expressed by a class of lower capacity. He also notes that deep architectures can generalize well empirically with many parameters, so architectural economy and a raw parameter count tell different parts of the story.

In ordinary supervised training, labels specify the prediction goal. The loss at the output gives a backward signal that reaches earlier layers through the chain rule. Each successive transformation affects the signal that reaches the preceding one. The practical issue is whether the resulting updates will make early layers compute useful features. An upper layer can compensate for some weaknesses in the features below it, and a network that fits the training labels can still have learned a poor representation for new examples. Training therefore has a problem of assigning responsibility for an error as well as a problem of fitting the observed data.

#### Why pretraining revived interest

Bengio locates a revival of neural network research in 2006, after a quieter period. In the approach he describes, a layer first receives a learning signal derived from its own inputs. The signal is unsupervised because computing it requires no labels for the eventual prediction task. Once the first layer has learned a transformation, its outputs become the training data for the next layer. Restricted Boltzmann machines, autoencoders, and a sparsity-inducing form of autoencoder supplied early ways to carry out this strategy. Standard back-propagation remained central to autoencoder training and to subsequent supervised optimization of the full network.

Unlabeled learning is relevant when the distribution of inputs reveals structure that matters for a later prediction. The chapter explains the motivation through the manifold hypothesis. In a high-dimensional space, examples can concentrate near regions with fewer effective directions of variation. A few underlying factors may account for many simultaneous changes in the observed inputs. If points associated with different classes also lie near separate regions with little probability mass between them, the geometry of unlabeled examples can offer clues about classification. The same reasoning motivates transfer and multitask learning when several prediction problems depend on some of the same factors.

The usefulness of those clues depends on the task. An unsupervised criterion encounters all the variations that occur in the inputs, including ones with little relevance to the desired output. A representation that covers a broad range of variation may still be useful, especially when labels are scarce, but a supervised stage can direct its capacity towards the prediction goal. Pretraining and supervised [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) give the network these sources of guidance in sequence.

#### Which decisions belong to training?

The chapter places hyper-parameter selection inside the larger problem of learning from data. Learned weights and biases are chosen by an optimization procedure acting on a criterion. The initial learning rate, the widths of hidden layers, and the decision to pretrain belong to the procedure’s configuration. Some choices are numerical and ordered. Others, such as the choice of activation, are categorical. A search procedure can wrap the training algorithm and select these settings automatically, but it still needs a search space and a way to judge the trials it runs.

That judgment creates its own generalization problem. A setting that lowers the training criterion may improve optimization, increase capacity, or do both. A setting that wins on a validation set may benefit partly from chance, especially after many competing configurations have been tried. An independent test is needed to evaluate the outcome of the selection procedure. This distinction matters when comparing methods because the amount of search available can affect the final score. Bengio treats the choice of search budget and procedure as part of the experimental setup.

The chapter takes standard supervised back-propagation as established background. It builds on earlier work on stochastic approximation and efficient back-propagation and also refers to existing approaches for controlling complexity and reusing parameters. Its contribution is to organize decisions that arise when these techniques are combined. A researcher needs to understand what each decision affects, which measurements can inform it, and what kind of failure it might conceal.

### The method, step by step

#### Define the objective and the data used to judge it

A training run starts with examples, a network, and a loss. A supervised example contains an input and its target, such as an image and its class. An unsupervised example can consist of the input alone. Semisupervised training uses both kinds of examples. The network computes intermediate quantities and an output, and the loss assigns a numerical cost to what it computes on the example. A training criterion can also contain penalties that encourage certain parameter values or representations.

Bengio distinguishes this criterion from the expected cost on future examples. The training set supplies evidence for changing the parameters. Validation examples can help decide how to train, including how long to continue. Test examples support the final estimate after selection. With small datasets, the chapter describes double cross-validation. An outer split supplies the data used to estimate generalization, and splits inside its training portion guide the choices for that outer split. Each outer evaluation then includes the effect of carrying out the selection process.

The connection between training and future loss is clearest in the chapter’s idealized online setting. New examples arrive indefinitely, with each drawn independently from the same distribution. The expected loss can then be written as follows.

```
C = E[L(z, θ)] = ∫ p(z)L(z, θ) dz
```

Here `C` is the expected loss on a new example, `E` denotes expectation, `L` is the example loss, `z` is a draw from the data distribution, and `θ` is the vector of learned parameters. The density `p(z)` weights the possible draws. The integral, with `dz` indicating integration over examples, is the continuous form used in the chapter.

```
ĝ = ∂L(z, θ)/∂θ
```

The vector `ĝ` is the gradient obtained from the sampled example. The partial derivative `∂/∂θ` measures how the loss `L` changes as the components of `θ` change, holding `z` fixed.

```
∂C/∂θ = ∫ p(z) ∂L(z, θ)/∂θ dz = E[ĝ]
```

The left side is the gradient of expected loss. The integral averages the example gradients under the density `p`, and the last expression writes the same average as the expectation of `ĝ`. The argument moves differentiation inside the integral. It gives the single-example gradient the right value on average in this setup while allowing any particular draw to give a noisy direction. The chapter distinguishes that ideal stream from a real stream, where nearby observations can be dependent, and from repeated passes over a finite training set.

#### Decide whether to initialize by learning features

The training sequence can include a preliminary stage for learning internal representations. The diagram follows the route with that stage. The same gradient machinery can be used when the supervised network starts directly from initialized weights.

Gradient-based training with optional layer-wise pretraining The steps in order.

In greedy layer-wise pretraining, the first layer operates on raw inputs. After it has learned a representation, its parameters stay fixed during the unsupervised training of the layer above. The upper layer sees the lower layer’s output as its input. Repeating the process builds a hierarchy without asking the final task loss to guide every layer from the beginning. A predictor can then use the learned features. In supervised fine-tuning, the prediction loss can change the lower layers as well as the predictor, so their earlier representations serve as starting points.

An autoencoder makes an unsupervised objective available even when the data have no prediction labels. An encoder turns an input into a code. A decoder uses the code to produce a reconstruction in the original input space. The two functions are trained together so that the reconstruction retains information about examples seen during training.

```
h = f(x)
```

Here `x` is the input, `f` is the encoder function, and `h` is the internal representation produced by that function.

```
r(x) = g(f(x))
```

The function `r` computes the reconstruction. The decoder `g` operates on the encoder output `f(x)` and returns a vector in the same space as `x`.

```
‖x − r(x)‖²
```

This loss is the squared norm of the difference between input `x` and reconstruction `r(x)`. The norm signs indicate a vector magnitude. Squaring it gives the squared reconstruction error used for real-valued inputs.

```
−Σᵢ [xᵢ log rᵢ(x) + (1 − xᵢ) log(1 − rᵢ(x))]
```

This is the binary cross-entropy form, with parentheses making the sign apply to both terms. The index `i` runs over input coordinates, and `Σᵢ` adds their contributions. The target `xᵢ` is a bit or is interpreted as the probability of a binary event. The decoder’s `rᵢ(x)` is the corresponding predicted probability, `log` denotes the logarithm, and the terms involving `1` use the complementary probabilities.

Reconstruction alone poses a problem. A system that copies its input for every configuration has no reason to respond differently to a typical example and an unusual one. Regularization can make easy copying harder. The desired behavior is good reconstruction near the configurations supported by the training data. Bengio describes earlier results connecting the difference between the reconstructed and input vectors to an estimate of the direction in which log density increases. He also discusses how changes in the reconstruction with respect to the input give information about local directions of variation. These are geometric interpretations of what a trained reconstruction function captures.

#### Put robustness in the reconstruction or the code

A denoising autoencoder makes the task harder by corrupting the input before passing it to the encoder. The target remains the original input. With masking corruption, a new subset of coordinates is randomly set to zero for each example, and the decoder is still asked to recover the clean data. The chapter gives 20% and 50% as examples of the fraction masked. These are settings for the corruption process. Recovering missing coordinates encourages the network to use relationships among features, because the useful evidence available to it can change with the mask.

A contractive autoencoder puts the robustness requirement directly in the criterion. It still learns to reconstruct examples, but it also pays a penalty when small input changes produce large changes in the code. The penalty is based on the Jacobian, the matrix of derivatives of each code coordinate with respect to each input coordinate.

```
‖∂f(x)/∂x‖²
```

The function `f` is the encoder and `x` is its input. The expression `∂f(x)/∂x` is the encoder Jacobian. The squared norm summarizes the magnitude of its entries. A coefficient controls the contribution of this penalty to the reconstruction criterion and is a hyper-parameter of the contractive design.

The chapter draws a qualified relationship between the approaches. In the small Gaussian noise setting, the denoising criterion can be related to a penalty on the Jacobian of `r`, the entire reconstruction function. The contractive criterion acts on the Jacobian of `f`, the encoder alone. The placement matters because the code is the quantity passed on to another layer. A decoder can alter how variations in the code appear in the reconstruction. A relationship established for small Gaussian perturbations also leaves room for masking to have a different practical effect, since masking asks the network to make use of changing subsets of coordinates.

Bengio describes tied weights as a consequential detail in the contractive autoencoder. Tying makes the decoder’s weight matrix the transpose of the encoder’s. The configuration he reports as working well combines tying with sigmoid units in the encoder and reconstruction and uses squared loss or cross-entropy. The result is a description of a particular recipe. The reason other closely related configurations sometimes train poorly remains open.

#### Choose the activation and initialize the weights

A typical hidden unit first adds a bias to a weighted combination of its inputs. An activation function transforms the result before it moves to the next layer.

```
a = wᵀx + b
```

The scalar `a` is the input to the activation. The vector `x` holds the unit’s inputs, `w` holds its weights, and `wᵀx` is their inner product, indicated by the transpose `ᵀ`. The scalar `b` is the bias.

```
s(a) = 1/(1 + e⁻ᵃ)
```

This `s` is the sigmoid. The quantity `a` is the unit’s preactivation, `e` is the base of the natural exponential, and `1` is the constant in the numerator and denominator. The output approaches saturation at the ends of its range, where changes in `a` produce small output changes.

```
s(a) = (eᵃ − e⁻ᵃ)/(eᵃ + e⁻ᵃ)
```

Here `s` is the hyperbolic tangent, `a` is the preactivation, and `e` again denotes the exponential base. The positive and negative exponentials enter symmetrically, giving an activation centered at zero.

```
s(a) = max(0, a)
```

Here `s` is the rectifier. The operator `max` selects the greater of the constant `0` and the preactivation `a`. The positive branch passes its input through, while a negative preactivation falls on the flat branch.

```
s(a) = a/(1 + |a|)
```

This `s` is softsign. Its argument `a` is the preactivation, `|a|` is its absolute value, and `1` is the denominator’s constant. The function is symmetric about the origin in the same sense as the hyperbolic tangent, but its tails approach saturation more gently.

The role of the unit helps determine the activation. A hidden layer can still transmit gradients through a subset of its units when others saturate. If a hard activation in the output layer is flat where the prediction is wrong, the loss can give a signal at the output that fails to pass through the activation. The chapter organizes output choices around a probability distribution appropriate to the target. Linear outputs can accompany squared error for real-valued targets interpreted through a Gaussian distribution. Sigmoids can accompany cross-entropy for binary targets. A softmax supplies probabilities over mutually exclusive classes.

```
−log output[target class]
```

Here `output` is the vector of class probabilities, and the bracketed `target class` selects the probability assigned to the observed class. The negative logarithm turns low probability for the observed class into a larger loss.

Initial weights serve two purposes. Distinct weight values allow hidden units in the same layer to learn different functions. A suitable scale also helps preserve the size of signals moving forward and of gradients moving backward. Two units with identical incoming and outgoing weights receive equivalent signals and can remain identical after updates, wasting the capacity of the second unit. Biases can generally start at zero. The chapter distinguishes the output weights from the hidden weights because different output units can receive different signals from their targets.

For the forward and backward scale, Bengio describes initialization based on the number of inputs and outputs connected to a layer. The chapter gives bounds for sampling uniformly between the negative and positive values of a radius.

```
r = √(6/(fan-in + fan-out))
```

Here `r` is the radius of the uniform sampling interval for weights associated with hyperbolic tangent units. `fan-in` counts incoming connections and `fan-out` counts outgoing connections. The constant `6` is the numerator, and `√` denotes the square root.

```
r = 4√(6/(fan-in + fan-out))
```

This is the chapter’s radius for sigmoid units. The square root uses the same connection counts and numerator, while the multiplier `4` changes the scale. The symbol `r` here denotes a sampling bound. In the autoencoder formulas it denotes the reconstruction function.

For a restricted Boltzmann machine, the chapter describes a separate recipe that draws weights from a zero-mean Gaussian, with 0.1 and 0.01 given as examples of a small standard deviation. A visible bias for a binary feature can begin at the value that fits its observed frequency with the weights set to zero.

```
log(x̄/(1 − x̄))
```

The quantity `x̄` is the training-set mean for the corresponding binary input. The denominator uses its complement. The logarithm of their ratio gives the initial bias in log-odds form.

#### Compute the gradient through an operation graph

Bengio presents back-propagation as a calculation on a directed graph with no cycles. The example and parameters are graph inputs. Internal nodes perform operations such as multiplying matrices or applying an activation. The scalar loss is an output. During forward computation, each operation consumes values already produced by its predecessors. During the backward pass, each operation contributes derivatives to the nodes that supplied its inputs.

```
gₐ = ∂L(z, θ)/∂oₐ
```

Here `a` labels a graph node, `oₐ` is the value produced at that node, and `gₐ` measures the sensitivity of the loss `L` to `oₐ`. The loss is evaluated for the example `z` and parameter vector `θ`.

```
gₐ = Σₛ gₛ ∂oₛ/∂oₐ
```

The index `s` runs over the immediate successors of node `a`. Each `gₛ` gives the sensitivity of the loss to the successor’s output `oₛ`, and `∂oₛ/∂oₐ` gives the corresponding local derivative. The sum collects the contributions of all paths leaving `a`. For a vector or tensor operation, the multiplication represents the appropriate contraction of the derivative with the incoming gradient. At the loss node the recursion starts with `1`, since the derivative of the loss with respect to itself is `1`.

The graph is also a software design. An operation can describe both how to produce a value and how to pass a derivative to its inputs. The chapter describes that organization in Theano, Torch, and Lush. In Theano the graph also exists symbolically, so differentiation creates a graph of derivative operations before numerical evaluation. Shared computations can be reused when evaluating the loss and gradient, redundant operations can be removed, and transformations can improve numerical stability. For instance, computations based on probabilities can be arranged to use their logarithms.

Differentiating a derivative graph makes it possible to train with a criterion that itself depends on derivatives, as the contractive autoencoder does. The chapter also discusses the R-operator for computing the product of a derivative matrix with a vector. A Jacobian describes a function’s first derivatives, while a Hessian collects the second derivatives of a scalar loss with respect to its parameters. A product can convey how the corresponding matrix acts in a particular direction without storing the full matrix.

```
∂²L(x, θ)/∂θ²
```

This is the Hessian of the scalar loss `L` for input `x` with respect to the parameter vector `θ`. The superscript `²` indicates second derivatives. The matrix records how each parameter derivative varies as other parameters change, which gives information about local curvature.

#### Update from a group of examples

Stochastic gradient descent uses the derivatives to move the weights in a direction estimated to decrease loss. A single example can supply an update. A mini-batch, a group of examples processed together, supplies an average of their gradients.

```
θ⁽ᵗ⁾ ← θ⁽ᵗ⁻¹⁾ − εₜ ∂L(zₜ, θ)/∂θ
```

Here `θ⁽ᵗ⁾` is the parameter vector after iteration `t`, and `θ⁽ᵗ⁻¹⁾` is its preceding value. The arrow assigns the new value. The derivative of the example loss `L` for `zₜ` is evaluated at the preceding parameters. The learning rate `εₜ` sets the length of the update relative to that gradient. The minus sign moves against the direction of increasing loss.

```
θ⁽ᵗ⁾ ← θ⁽ᵗ⁻¹⁾ − εₜ (1/B) Σₜ′₌ᴮᵗ⁺¹ᴮ⁽ᵗ⁺¹⁾ ∂L(zₜ′, θ)/∂θ
```

The parameter vectors and rate have the same meanings as in the single-example update. `B` is the mini-batch size, `t′` indexes the examples in the block, and `zₜ′` is the example at that index. The sum runs from `Bt + 1` through `B(t + 1)` using the chapter’s indexing for the block. The factor `1/B` averages the example gradients, all evaluated at the current weights.

A batch of size 1 recovers single-example updates. A batch covering the whole training set gives one update per pass, or epoch. Intermediate batch sizes offer a compromise. Processing examples together makes efficient matrix operations possible and reduces noise in the gradient estimate. Increasing batch size also makes updates less frequent for the same number of examples processed. Since the gradient is a local guide and the loss changes as the weights move, a more precise estimate of the current gradient can be less valuable than getting to make another update. Bengio also notes that noise from smaller batches may sometimes help generalization.

For a finite dataset, the chapter discusses shuffling examples and then reading them in a fixed order as a practical approximation to independent sampling. Sequential access avoids some of the cost of repeated random accesses, particularly on disk. When examples fit in memory, changing the mini-batch order between epochs may be practical. These choices affect statistical dependence and the cost of moving data. As a starting point for batch size the chapter gives 32 examples per update and discusses computational benefits of matrix-matrix multiplication for sizes above 10. It recommends comparing training curves in elapsed time when selecting the batch size for an implementation.

#### Set the rate, smooth the updates, and pick a stopping point

The initial step size often deserves priority in the search. A run can spend its budget barely moving when the rate is small. A rate that is too high can send the loss upward. Bengio gives 0.01 as a possible initial rate for a standard multilayer network and stresses its dependence on the parameterization and input scale. One heuristic starts with a large value and shrinks it by a factor of 3 if the training criterion diverges. Another question is whether to reduce the rate as training progresses.

```
εₜ = ε₀τ/max(t, τ)
```

The rate at step `t` is `εₜ`, the initial rate is `ε₀`, and `τ` is a time constant measured in steps. The operator `max` chooses the larger of the current step and `τ`. The rate stays at its initial value up to `τ` and subsequently declines in inverse proportion to the step index. The chapter also considers keeping a constant rate and starting a decline when the criterion ceases to improve substantially between epochs.

The chapter describes another form of adaptation that periodically compares several candidate rates. Each candidate continues training from the current point on a small fixed portion of the training data. The value that performs best in the trial becomes the rate for the next interval. This uses short local trials to make an optimization decision. A validation set serves a different purpose when it measures which settings produce a better predictor outside the training data.

Momentum smooths the sequence of gradient estimates. In the chapter’s convention, the coefficient shown multiplies the current gradient.

```
ḡ ← (1 − β)ḡ + βg
```

The vector `ḡ` is the moving average, `g` is the latest example or mini-batch gradient, and `β` controls the balance between the latest gradient and the old average. The arrow assigns the newly combined value, and `1 − β` is the weight retained on the old average. With `β = 1` the update uses the current gradient alone. Smaller values can smooth oscillations across successive steps. The chapter also describes Polyak averaging, in which the quantities averaged for prediction are the parameters visited during training.

Early stopping uses validation performance to select the duration of a run. Periodically, the training procedure evaluates the current parameters on validation examples and saves the ones that perform best. It continues past that point for a period of patience, since a later checkpoint may improve on the last minimum. The chapter gives 10,000 training examples as the initial patience in one multilayer perceptron tutorial. When the validation loss establishes a new minimum, the run can extend its patience additively or multiplicatively. Assessing validation performance at intervals leaves most of the computation available for training. A long series of checkpoints also means that the selected one remains a choice made with validation data.

#### Control how much and what the network learns

The chapter treats hidden width, weight penalties, activation sparsity, and the input transformation as distinct choices. With early stopping or another regularizer, an overly narrow layer can be a greater concern than a somewhat wider one. More units increase computation, especially if the widths of fully connected layers increase together. The chapter also points out that a representation learned without labels may need more units to preserve useful aspects of the inputs, because some units will account for variation unrelated to the final task.

A weight penalty changes which parameter vectors are attractive during training. The chapter discusses a squared penalty and an absolute-value penalty.

```
λ Σᵢ θᵢ²
```

This is the L2 penalty. The index `i` runs over the parameters chosen for regularization, `θᵢ` is the corresponding component, and `λ` is the regularization coefficient. The sum of squares gives large weights a disproportionately large penalty.

```
λ Σᵢ |θᵢ|
```

This is the L1 penalty. Its coefficient is again denoted by `λ`, and `Σᵢ` sums the absolute values `|θᵢ|` of the selected parameters. When both penalties are used, the chapter treats their strengths as separate settings. L1 encourages small or sparse weights and can give more localized first-layer filters. Ordinary stochastic updates can leave weights moving around zero, so the sparsity induced by the objective need not appear as exact zeros.

```
−log P(data, θ) = −log P(data | θ) − log P(θ)
```

Here `P` denotes the probability or density appropriate to the expression. `P(data, θ)` is the joint quantity for the training data and parameters. `P(data | θ)` is the likelihood of the data given the parameters, and `P(θ)` is their prior. The negative logarithm turns the factorization into a sum. With `L(z, θ)` defined as negative log likelihood for an example, independent examples contribute their losses additively to the negative log likelihood. The chapter prints an extra minus sign on that sum. Its definition of the example loss and the joint factorization determine the additive interpretation.

```
σ² = 1/(2λ)
```

In the Gaussian interpretation of L2, `σ²` is the prior variance, `λ` is the squared penalty coefficient, and `2` is the constant relating that coefficient to the variance. The corresponding prior is centered at zero.

```
s = 1/λ
```

In the Laplace interpretation of L1, `s` is the scale parameter, `λ` is the absolute penalty coefficient, and `1` is the numerator. The narrower prior associated with a larger coefficient favors values closer to zero.

The chapter’s discussion of mini-batch weighting concerns how a full-data objective is apportioned across updates. When the loss contribution is a sum over the batch and the regularizer belongs to the total over the data, the chapter distributes the regularizer according to the batch’s share of the examples.

```
B/T
```

Here `B` is the mini-batch size and `T` is the size of the training set in examples. In the stopping discussion, the chapter also uses `T` for an iteration count. A final batch of size `B′` contributes a share scaled by `B′/B` relative to a full batch, where the prime distinguishes the smaller size. For an online stream the chapter proposes using the number of examples processed so far in place of the full set size. If the data loss is implemented as a batch mean, the regularization coefficient must follow that normalization. Its numerical value depends on whether the objective is written with a sum or a mean.

A separate use of regularization encourages sparsity in the code. Because activations depend on the example, a penalty on activations shapes the representation across the training distribution. A weight penalty can be interpreted through a prior over parameters. An activation penalty is applied to a data-dependent quantity. For sigmoid units, the chapter discusses adding a coefficient times the sum of activations, using a Student-t penalty, or penalizing deviations from a target average activation.

```
log(1 + hⱼ²)
```

Here `hⱼ` is the activation of hidden unit `j`. The square makes the expression depend on its magnitude, and `log` is applied after adding `1`. This is the Student-t form discussed as an alternative to an absolute penalty on activations.

```
Σⱼ (ρ − h̄ⱼ)²
```

The index `j` runs over hidden units, `h̄ⱼ` is a unit’s average activation over examples such as a mini-batch, and `ρ` is the desired average. The sum penalizes squared deviations from that target.

```
−ρ log h̄ⱼ − (1 − ρ) log(1 − h̄ⱼ) + constant
```

Here `ρ` and `h̄ⱼ` are the target and observed average activations, interpreted as probabilities. The terms using `1` account for their complements. The additive constant is independent of the observed average and puts the expression in divergence form. The chapter gives 0.05 as an example of `ρ`.

A sparse code also depends on the activation. Driving a sigmoid close to zero can place it near a saturated output. Near zero a hyperbolic tangent is responsive to changes, so the same penalty has a different effect. Rectification creates exact zeros on its inactive branch. Bengio separately discusses sparse coding, where optimization chooses activations directly and methods designed to reach exact zeros are relevant. These cases illustrate why the same informal goal, sparsity, can correspond to different objectives and different optimization behavior.

#### Search over configurations and use diagnostics to interpret them

A manual search can vary one setting at a time from the strongest existing configuration, returning regularly to sensitive choices such as the learning rate. The procedure can first make large changes to find a promising region and then refine the search around it. For a positive numerical setting, equal distances in logarithmic space explore changes in relative scale. A best setting on the edge of the tested range is a reason to inspect values past the edge. Bengio also argues for deciding search ranges at the outset when reproducibility matters, since decisions made along the way are harder to reproduce from a report of the final settings.

Grid search evaluates all combinations of specified values. Its trials are independent and convenient to distribute across machines. A targeted grid can isolate the effect of a choice by matching the values of the other settings. A broad grid often spends much of its budget repeating the same values of an influential setting because it crosses them with every value of the less influential settings.

Random search draws configurations from chosen distributions, such as a uniform distribution in log space for suitable positive settings. Discrete choices can have unequal sampling probabilities, and a choice related to a particular layer can depend on whether that layer exists. The method samples more values along individual dimensions for a comparable number of trials when the grid would repeat them. Random trials can also be extended in a further batch, and a failed job need not occupy a particular cell that must be filled. A grid over a small set of deliberately chosen settings can then serve a different purpose by making a controlled comparison easier to read.

For layer-wise pretraining, the chapter describes a search that exploits the order of training. Several versions of the first layer can be trained without labels. When the eventual task is supervised, a simple classifier on top of each version measures how useful its features are on validation examples. One or several promising configurations can continue to the next layer. The same procedure repeats with the lower layers frozen. This is efficient because the initial layers can be reused, and the comparison at each stage can be cheaper than a search over complete networks. Final supervised fine-tuning has settings of its own, and the best shallow representation under the probe is an estimate of what will help the full predictor.

Bengio also recommends checking the implementation independently of the main search. A numerical derivative can be obtained by changing one input to a scalar function by a small amount and comparing the function values.

```
∂f(x)/∂x ≈ [f(x + ε) − f(x)]/ε
```

Here `f` is the scalar function being checked, `x` is its scalar argument, and `ε` is a small displacement. The quotient measures the change in the function per unit displacement and approximates the derivative. In a network check, the scalar argument can be one parameter and the function can be the training loss with the other parameters held fixed.

```
∂f(x)/∂x ≈ [f(x + ε) − f(x − ε)]/(2ε)
```

Here `f`, `x`, and `ε` have the same meanings. The two evaluations sit on opposite sides of `x`, at a separation of `2ε`. Even-order terms in the local Taylor expansion cancel when the values are subtracted, improving the approximation for a suitable displacement. Very small displacements can make rounding errors important. The chapter gives `10⁻⁴` as an example of a displacement used for neural network checks.

A disagreement can be followed into intermediate activations to identify where the backward computation starts giving the wrong sensitivity. A complementary check is to try to fit a sufficiently small training set using a network with enough capacity. Bengio suggests a strong batch optimizer such as L-BFGS to reduce dependence on stochastic-gradient settings during this check. Fitting the small set establishes that the code can drive down training error under those conditions. Comparison of training and validation curves then helps diagnose whether the ordinary run struggles with optimization, generalization, or both.

#### Match the computation to the inputs

Mini-batches help turn repeated matrix-vector computations into matrix-matrix computations, which can make better use of caches and parallel hardware. In the chapter’s account of [GPU & parallel computing](https://md.research.elamur.ai/free/en/topics/gpu-parallel-computing/), the gain also depends on how much of the operation graph stays on the device. Data transfers to and from the CPU can consume much of the time saved by faster arithmetic. Profiling the implementation can show whether the intended operations run where expected and where the time goes.

Sparse high-dimensional inputs create a particular implementation problem. A supervised first layer can multiply a sparse input by a dense matrix while concentrating arithmetic on the active coordinates. An autoencoder ordinarily has to reconstruct coordinates throughout the input space, including zeros. In the sampled-reconstruction method discussed in the chapter, the decoder computes the loss for a subset. Non-zero input coordinates receive priority, alongside randomly chosen zero coordinates. Each sampled loss is weighted inversely to its inclusion probability. This importance weighting compensates for unequal sampling probabilities in the estimate of the full reconstruction objective. The denoising version also accounts for whether coordinates are non-zero in the corrupted input.

Symbolic inputs offer another kind of savings through parameter sharing. A symbol represented by a one-hot vector selects the column of a shared matrix associated with it. That column is its learned embedding, and using the same matrix at different input positions lets observations in those positions inform the same parameters. The chapter takes [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) in [A Neural Probabilistic Language Model](https://md.research.elamur.ai/free/en/papers/bengio-2003-neural-probabilistic-language-model/) as an example. It also describes reusing embeddings across tasks and learning representations for entities and relation types. When examples consist of relations among objects, the embeddings can be inputs to a shared function that assigns lower energy to observed valid relations. Embeddings can come from a lookup for symbols or from a learned transformation of an object’s raw attributes.

### Experiments and results

#### What the chapter reports

The chapter presents no new experiment with a stated dataset, a fixed suite of baselines, and scores on a common test split. Its experimental evidence comes from earlier studies and from operating observations described by Bengio. The comparisons therefore answer different questions. Some concern prediction error after training, others concern validation error during search, and others concern the time needed to perform computations. The chapter supplies quantitative details for some operating conditions and gives the main outcomes of the cited comparisons in words.

The pretraining comparisons concern deep networks for classification and a Deep Boltzmann Machine trained on the input distribution. For classification, the comparison of interest is between starting supervised training from random weights and starting from representations learned without labels before supervised fine-tuning. The chapter reports generally better generalization for the latter route in the settings studied. In the investigation by Erhan and colleagues, test-error histograms covered hundreds of seeds, and analyses of learning trajectories distinguished the functions reached by different initializations. The chapter provides neither the names of the classification datasets for that comparison nor their test-error values.

Glorot and Bengio’s earlier work supplies a comparison involving the scale of initial weights in deep supervised networks. Their design sought layer Jacobians with singular values near 1 at initialization, to help signals retain their scale across layers. The chapter reports that initialization based on that principle reduced the gap between supervised and pretrained deep networks. The value 1 is the target for the singular values. The gap reduction is reported qualitatively. The associated activation studies found that a sigmoid in the top hidden layer could produce a long plateau without pretraining, while a hyperbolic tangent avoided that specific difficulty and softsign performed better in the cited comparison. A separate study is cited for successful training with rectifiers.

A comparison attributed to Larochelle and colleagues considers different allocations of hidden units across layers. Layers of equal width generally did as well as or better than networks that narrowed or widened with depth. Bengio cautions that the ordering can depend on the data. He also reports that the preferred width frequently increased after introducing unsupervised pretraining, giving a change from hundreds to thousands of hidden units as an illustration of scale. Those are layer widths. The chapter gives no corresponding predictive scores or named split for this example. The proposed explanation is that a wider representation can accommodate both task-relevant and other structure learned from the inputs.

#### Search efficiency and the cost of an update

For hyper-parameter search, the baseline is a grid covering specified values. The alternative is independent random draws from distributions chosen for the settings. The performance quantity is the best validation error reached under a trial budget, where a trial runs a training job with one configuration. The chapter reports that Bergstra and Bengio found random search could be many times more efficient when the number of settings exceeded the 2 or 3 common in the examples of simpler search spaces that the chapter discusses. It gives neither paired validation errors nor an exact speed-up for a named dataset. The argument accompanying the result is that random trials make finer use of the budget along whichever dimensions matter most.

Bengio discusses two ways of plotting the search. One traces the best validation error seen in the actual order in which trials were completed. The other considers equally sized subsets of the finished trials and summarizes the distribution of their best errors with a mean and standard deviation. The second view addresses what improvement one might expect from a larger budget across different possible draws. A flat stretch in the first curve can occur even when the subset analysis still indicates likely gains. The distinction matters because each additional configuration has a computational cost, and the evidence for continuing can depend on how the search history is summarized.

One precisely stated count in the chapter is the size of a hypothetical grid. With 5 hyper-parameters and 6 allowed values per setting, the grid contains 7776 configurations. This is a count of training jobs in the example, independent of dataset and validation performance. It gives scale to the combinatorial problem. The example of launching 100 random trials and then adding another 50 or 100 describes an expandable schedule. Those counts concern planning and do not measure an observed improvement.

For iterative optimization, the chapter compares a full training-set gradient, online updates, and mini-batches. The metric depends on the question. A larger mini-batch can improve throughput and can often deliver a factor of 2 in overall training time through more efficient operations, according to the chapter’s practical account. At the same time, it yields fewer parameter updates per amount of arithmetic. The chapter describes a typical intermediate optimum in clock time as these effects compete. It gives no dataset-by-dataset timings. Comparisons between stochastic updates and batch second-order methods are also qualified by the size of the training set, how much time is spent near a solution, and how well the implementation parallelizes.

#### Hardware observations and sparse reconstruction

The chapter’s explicit range of hardware speed-ups concerns large neural networks on 512-core GPU machines. The chart shows the endpoints as endpoints. Bengio does not identify the workloads at either end by dataset, state whether a training or validation workload was timed, or specify the precise comparison configuration for each.

Reported GPU speed-up range for large neural networks, datasets unspecified The reported acceleration varied substantially across large-network workloads.

**The numbers**

| System or setting | speed-up × |
| --- | --- |
| Low end of the reported GPU range | 4 |
| High end of the reported GPU range (this paper) | 40 |

The starred endpoint is the largest speed-up in the reported range. The entries are factors of acceleration, rather than numbers of GPU cores or changes in prediction error. Elsewhere the chapter uses 4× on a 4-core machine as an illustration of ideal scaling before the effects of communication and serial operations. It is a statement about the reference ceiling in that example and supplies no matched observation for the GPU range.

For sparse reconstruction, the cited experiments by Dauphin, Glorot, and Bengio compare estimating the reconstruction loss on sampled coordinates with computing it over the full output. The chapter reports success for autoencoders and denoising autoencoders. The reported outcomes concern the speed of computation as sparsity increases and the average reconstruction loss optimized during training. The speed-up grew linearly with sparsity, and the method optimized average loss about as well as the deterministic full calculation. No named dataset, numeric loss, or pair of elapsed times is given. The significance of the comparison is that reducing the number of decoder outputs handled per example can save work without the reported loss of training quality, provided the estimator samples and weights coordinates appropriately.

### What the ablations show

The chapter has no original ablation series. Its analyses come from the controlled or comparative studies it cites, from mathematical connections among the procedures, and from diagnostics designed to narrow down the causes of a failed run.

#### Initialization changes where training goes

The closest comparison to removing a component of the training pipeline is to train a deep supervised network with or without unsupervised pretraining. Bengio uses the study by Erhan and colleagues to discuss more than the final error. The study embeds the functions computed at successive points in training into a low-dimensional space. This is different from plotting the raw weights because distinct parameter settings can correspond to similar predictions. The plots give a view of how the network’s input-output behavior changes.

The reported trajectories from different initializations ended in different regions, including when starting points in function space were close together. Pretrained networks ended far from the solutions reached from random initialization and gave better generalization in the comparisons described. These effects increased in the deeper architectures considered. The analysis therefore ties the initialization choice to the part of function space reached by the training procedure. A plotted endpoint can be an effective minimum for that procedure without establishing that the exact objective has a distinct mathematical local minimum at that point.

Improved supervised initialization gives a complementary comparison. If changing the scale at initialization makes purely supervised training more competitive with pretraining, then part of the observed advantage of pretraining was sensitive to what the random start did to forward and backward signals. The study supports treating the starting conditions as an experimental variable. It does not quantify how much of pretraining’s effect in general comes from gradient propagation, task-relevant information in unlabeled examples, or the interaction between those factors.

#### Activation changes the path a gradient can take

According to the chapter, the sigmoid plateau occurs in the highest hidden layer of a deep supervised network that has undergone no unsupervised pretraining. The initial gradients from the output can push units toward saturation. A small activation derivative then reduces the signal available for subsequent changes. The hyperbolic tangent’s symmetry changes the behavior, and the softsign’s less abrupt saturation changes it again. This comparison concerns the role of the activation in making the optimization signal usable, with the effect depending on where the unit sits.

The rectifier provides a further observation. Its inactive branch has a zero derivative, yet the reported hidden-layer results show that useful gradients can travel along the active paths. Bengio suggests possible explanations involving more selective assignment of credit for errors and better curvature. The chapter presents these as possibilities. Its warning about output activations follows from a different issue. An output unit on a flat branch can block the loss signal for the particular quantity it is meant to correct.

The contrast between denoising and contraction is analytical. A local perturbation around an input gives a way to ask which map has to be insensitive. The small-Gaussian-noise result concerns the response of the reconstruction, while the explicit contractive penalty addresses the encoder. The chapter gives no experiment sweeping both forms of robustness across an otherwise identical set of architectures. Its discussion of tied weights and sigmoid reconstruction indicates that those choices may matter in the tested recipe. It leaves their independent contributions open.

#### The search procedure changes what can be learned from a comparison

Random search is analyzed by asking what happens if only a small portion of the settings strongly affects validation error. A grid repeats each candidate value of such a setting while it varies the others. Random draws can evaluate a wider variety of values along the influential dimensions with the same number of trials. The earlier comparisons also found that the influential dimensions could change across datasets and architectures. Learning rate was consistently important in the experience Bengio describes. Those observations help explain why devoting a uniform amount of resolution to every setting can be inefficient.

The marginal plots discussed in the chapter combine values of the other settings by averaging or taking a minimum. Random draws can give fine resolution along the axis being plotted, but they also make that curve noisy because the other settings vary. A small grid can hold them fixed and make a local comparison easier to interpret. If the scientific question concerns depth, Bengio proposes giving each depth a fair chance by optimizing the other settings for it. Otherwise a comparison attributed to depth could partly reflect a configuration chosen for a different network.

Early stopping shows how a seemingly routine choice can blur a study of capacity. A configuration that starts overfitting quickly may reach its best validation error early. A configuration with a stronger regularizer may reach a similar error later. Reporting their best checkpoints is appropriate if the goal is to compare complete training procedures that both use early stopping. Studying the effect of a regularizer itself may call for observing the full development of the training and validation errors, since the selected stopping time can offset part of its effect.

#### Diagnostics isolate different failures

A finite-difference check asks whether the implemented gradient agrees with the sensitivity of the implemented loss. Deliberately fitting a small training set asks whether the network and optimizer can reduce training error in an easy case. Examples of the resulting filters and distributions of activations ask whether individual layers are doing something intelligible or whether quantities such as gradients collapse at particular depths. These diagnostics have different inputs and measurements, so success on one leaves useful work for the others.

Bengio mentions visualizing the first-layer filters directly when the inputs have an interpretable arrangement, such as pixels or a spectrogram. Hinton diagrams represent weight signs by color and magnitudes by square area when displaying the inputs directly would be less informative. Embedding or trajectory visualization can use t-SNE, while a local analysis can show which small input changes most affect a representation. That final view is useful for deeper features, where a single vector of first-layer weights no longer describes the effective input sensitivity.

Monitoring training and validation curves gives context to what those visualizations show. A wide top hidden layer can fit labels even with weak features below it. Looking at how discriminative each layer’s representation is can expose that possibility. Gradient and activation statistics can also identify where a signal changes during training. They provide evidence for deciding which layer or setting to investigate, while the generalization comparison still depends on independent examples.

### Limitations

#### Limits Bengio states

Bengio emphasizes that the recommendations come from accumulated practice, partial mathematical analysis, and experiments conducted for several different purposes. Research groups disagree about some of the choices. The paper calls for theoretical analysis and controlled experiments where possible. A setting described as a good starting point, such as an initial learning rate or a mini-batch size, is conditional on factors including the input scale, parameterization, chosen optimizer, and implementation.

The chapter also states that the added difficulty of training deeper networks remains open. Greater composition introduces more nonlinear transformations, which may make local gradient directions less useful. Increasing depth may also change the number, arrangement, or quality of attainable minima. These are explanations to investigate. The expressive advantage established for some function families does not settle how effectively adjustable weights can be learned, and an optimizer that appears stuck does not by itself identify the geometry of the loss surface.

Several narrower questions remain unsettled in the chapter. Bengio reports no clear comparison establishing the best penalty on hidden activations. He says the effectiveness of some contractive-autoencoder configurations is difficult to explain and that the preferred contraction coefficient can be sensitive. Adaptive methods, such as adagrad and the approach by Schaul and colleagues, are presented as deserving more evaluation. A heuristic from Hinton sets the average weight update on the order of 1/1000th of the weight’s magnitude. This concerns the typical relative update scale. It supplies no guarantee about convergence for a new network.

Bengio describes second-order and natural-gradient methods as promising but in need of further validation before they displace mini-batch stochastic gradient descent. A full curvature or natural-gradient calculation requires operations on a matrix whose dimensions depend on the number of parameters. Diagonal and low-rank approximations make portions of that information cheaper to use. The chapter also describes using a few iterations of a second-order method on each large mini-batch, potentially after several passes of stochastic gradient descent. The underlying tradeoff is between obtaining fast initial progress and spending enough per update to improve the final approach to a solution. Which phase matters more depends on the application.

#### Limits visible in the setup

The chapter brings together experiments with different objectives and amounts of detail. The support for random search concerns validation efficiency, the support for pretraining concerns generalization or the functions reached, and the GPU example concerns computation. There is no common dataset or evaluation protocol for combining those outcomes. The measurements support their respective claims, with stronger or weaker transfer to a different setting depending on the differences in tasks, architecture, and implementation.

The online gradient argument relies on the assumed stream and an exchange of derivative and expectation. A fresh draw from a fixed distribution gives the unbiased gradient in the derivation. Serial dependence in a real stream can affect the quality of the updates, and repeated passes over a fixed dataset give gradients of a finite-data objective. A good independent evaluation remains necessary even when the optimization uses many examples. Similarly, validation minima selected across many hyper-parameter configurations can be optimistic. Two procedures given substantially different search budgets may produce a comparison that reflects both the underlying algorithms and the resources spent tuning them.

Some formulas and verbal descriptions need careful reading. The passage on uniformizing a feature describes returning its normalized rank but writes the inverse of the cumulative distribution applied to the observed value. The cumulative distribution evaluated at the observed value is the operation that gives the rank described in the prose. The discussion of a divergence threshold also states a dependence on the largest Hessian eigenvalue in a form that should not be used as a step-size formula. The operative recommendation in that passage is to observe where the training criterion diverges and use the observation to narrow the search. These points matter because preprocessing and step size change the behavior the chapter is trying to diagnose.

Finally, efficient computation is conditional on the system that performs it. The GPU range is an observation about large networks on the hardware described, with no matched hardware configuration for each endpoint. The sampled-reconstruction result is reported for specific autoencoder variants and measures reconstruction loss. A supervised pipeline built on top of such a representation would still need to establish its own performance on the target task. How quickly an objective can be optimized and how useful the resulting representation is are questions for different measurements.

### What came after

The citing papers take up problems that the chapter treats at different levels. Some concern training and selecting a network. Others concern the representations learned for a task, or the way a particular architecture allows predictions to depend on earlier computations. The titles identify the directions of that work. The citation relationships establish that these papers cite the chapter. They do not identify a specific recipe adopted from it or establish that a particular result depended on one of its recommendations.

#### Representation learning and training guides

[Representation Learning: A Review and New Perspectives](https://md.research.elamur.ai/free/en/papers/bengio-2012-representation-learning-review-new-perspectives/) shares the chapter’s interest in how a system acquires the features it uses. Its stated scope is a review of representation learning and ways of thinking about it. The connection is direct at the level of the research question. The training chapter explains how to initialize, regularize, and diagnose successive learned representations. A review of representation learning takes up the broader subject of those representations themselves. The works share a year, so their citation relationship supplies a connection without establishing a chronological progression within it.

[Goldberg’s primer on neural networks for NLP](https://md.research.elamur.ai/free/en/papers/goldberg-2015-primer-neural-network-models-natural/) brings the instructional perspective to [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/). Bengio’s examples of words as symbolic inputs explain one intersection between the two subjects. A shared embedding associates each word with a learned vector while allowing training evidence from several positions to update it. The primer’s title establishes its role as an introduction to neural networks in that field. The citation alone leaves open which of Bengio’s optimization recommendations appears in its explanations.

[Zhang and Wallace’s sensitivity analysis of sentence classification](https://md.research.elamur.ai/free/en/papers/zhang-2017-sensitivity-analysis-practitioners-guide-convolutional/) states a narrower practical objective. It examines the sensitivity of convolutional networks for sentence classification and addresses readers who use those networks. Bengio’s chapter explicitly leaves detailed choices for convolutional architectures to another chapter. This citing work places the question of sensitivity in that specific architectural and task setting. Its stated focus also makes contact with Bengio’s distinction between finding a working configuration and measuring how performance changes when individual choices vary.

#### Applications in language and larger training batches

[Serban and colleagues’ end-to-end dialogue study](https://md.research.elamur.ai/free/en/papers/serban-2015-building-end-end-dialogue-systems/) applies a generative neural hierarchy to [dialogue systems](https://md.research.elamur.ai/free/en/topics/dialogue-systems/). The connection to the chapter is the use of hierarchical intermediate computations as part of a larger prediction procedure. Bengio explains why a hierarchy makes the location of learning signals important and distinguishes learning intermediate features separately from optimizing the system for its final task. The dialogue paper’s title establishes the use of a hierarchy and an end-to-end task. It gives no basis for assigning its training outcome to pretraining, a particular activation, or a search strategy from the chapter.

[Zhou and colleagues’ fast-forward connections](https://md.research.elamur.ai/free/en/papers/zhou-2016-deep-recurrent-models-fast-forward/) address deep recurrent architectures for [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/). Their title identifies the architectural intervention as fast-forward connections. The related question in Bengio’s chapter is how to train a sequence of transformations when the gradients reaching earlier computations can depend strongly on the intervening ones. The chapter discusses initialization and nonlinearities as ways to affect that process. The cited translation work places connections themselves at the center of the design.

[Decoding with Large-Scale Neural Language Models](https://md.research.elamur.ai/free/en/papers/vaswani-2013-decoding-large-scale-neural-language/) connects large-scale neural [language models](https://md.research.elamur.ai/free/en/concepts/language-model/) to the decoding stage of translation. That application illustrates a role for trained neural predictors within a larger system. In Bengio’s discussion, earlier language work supplies an example of learning and sharing parameters for symbolic inputs. In the citing translation paper, the title places the language predictor at the point where translations are selected. Claims about the gain, the data used, and the tuning changes responsible for it would require details beyond the stated scope of the citing work.

[Training BERT in 76 minutes](https://md.research.elamur.ai/free/en/papers/you-2019-large-batch-optimization-deep-learning/) makes large-batch optimization the subject of a training study. Its title gives 76 minutes as the reported BERT training duration. Bengio had framed batch size as a balance between computational throughput and the frequency of updates, with the learning rate potentially needing to change as the batch size changes. The citing paper’s focus is a later instance of studying that balance as an optimization problem in its own right. The duration names the result advertised in its title. The comparison hardware, data configuration, and target quality are unspecified here, so the number cannot be used to quantify an improvement over any timing discussed in Bengio’s chapter.

[Entity-augmented distributed semantics for discourse relations](https://md.research.elamur.ai/free/en/papers/ji-2015-one-vector-is-not-enough/) places the representation question in [discourse analysis](https://md.research.elamur.ai/free/en/topics/discourse-analysis/). Its title identifies the use of entity information to augment a vector representation for discourse relations. Bengio’s chapter discusses how learned vectors can carry attributes useful across instances and how separate tasks may call for different attributes. The citing work names a concrete prediction setting in which the content of the representation is an explicit design choice. The citation gives a link between that application and the chapter’s broader account of representation and reuse, without specifying which training choices the study took from it.

## Cite

Cite as Yoshua Bengio. 2012. Practical recommendations for gradient-based training of deep architectures. arXiv:1206.5533.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1206.5533](https://doi.org/10.48550/arxiv.1206.5533) · [arXiv 1206.5533](https://arxiv.org/abs/1206.5533)

```bibtex
@misc{bengio2012practical,
  title = {{Practical recommendations for gradient-based training of deep architectures}},
  author = {Yoshua Bengio},
  year = {2012},
  doi = {10.48550/arxiv.1206.5533},
  eprint = {1206.5533},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1206.5533}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
