Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Why Does Unsupervised Pre-training Help Deep Learning?

Pre-training picks a starting point that decides which minima deep networks reach

  • Problem Deep networks trained from random starting weights can settle in minima that generalize poorly. Stochastic gradient descent makes this worse, because early examples steer the parameters into basins that later training rarely escapes.
  • Method The authors treat unsupervised pre-training as a regularizer rather than a change to the supervised objective. Pre-training sets the starting point, so supervised training stays close to it and can only reach some of the minima.
  • Results With pre-training, one-layer networks on MNIST reached 1.41 test error, compared to 1.81 with uniform initialization.

Why deep training gets stuck

Deep networks are trained on objectives with many local minima, and those minima don't all generalize equally well. The authors suspect that standard random initialization tends to place parameters in regions that generalize poorly. They say this pattern was often observed empirically but rarely reported in the literature. The breakthrough came in 2006 with deep belief networks and stacked auto-encoders, which share a greedy layer-wise unsupervised pre-training step followed by supervised fine-tuning.

The authors treat the central challenge as the strong dependencies between parameters across layers. Lower layers must adapt to give adequate input to the final upper-layer settings, and upper layers must adapt to the final lower-layer settings. Because the gradient is limited to a local measure, the lower layers are hard to optimize. Training error can hide this problem, since a top two layers with enough capacity can easily overfit the training set.

Stochastic gradient descent adds a further issue, because the example order shapes the trajectory through parameter space. Early in training, weight magnitudes grow and the network becomes more nonlinear, so the reachable set of regions shrinks. Early on, small perturbations can move parameters from one basin to a nearby one, but later it is unlikely to escape a basin.

Early examples therefore have a larger influence and can trap the parameters in regions tied to the arbitrary example ordering.

Even with a very large, effectively infinite supply of supervised data, stochastic gradient descent still overfits to the examples presented early. The authors link this to a critical period effect seen in neuroscience and psychology. In that sense, unsupervised pre-training interacts with the optimization process, and its effect shows up on training error as well as generalization error when the number of examples is large.

The key idea: pre-training as a constraint on the start

Pre-training picks a starting point, and that starting point decides which minima the supervised phase can reach. The authors read pre-training as an unusual form of regularization that minimizes variance and introduces bias towards parameter configurations useful for unsupervised learning. Unlike other semi-supervised strategies, pre-training doesn't modify the supervised objective function or constrain parameters throughout training.

Instead, it acts by defining a particular initialization point for standard supervised training. In a highly non-convex deep architecture, that initialization point specifies which of the very many minima of the cost function are allowed.

Early stopping is the closest analogy, since it constrains the optimization to a region close to the initial configuration of parameters. Pre-training works in a similar way, because the supervised parameters stay close to the values that pre-training leaves behind. The authors note that this treatment of pre-training as a regularizer has no formal equivalent in the literature, unlike early stopping.

The authors put three explanations on the table: pre-training as a pre-conditioner, as an optimization aid, or as a regularizer. The optimization and regularization explanations are not necessarily mutually exclusive, so both can hold at once. A simpler explanation, based on the disparity in weight magnitudes at the start of supervised training, has to be ruled out first.

That check begins with Experiment 1, which asks whether pre-training simply gives better conditioning of the initial weights.

The underlying hypothesis is that early training examples have a larger influence on the final basin reached by stochastic gradient descent. Small perturbations early in training let parameters switch basins, but later on the parameters are unlikely to escape a basin of attraction. Because of this, pre-training can also help the training error, not only the generalization error, when the number of examples is large.

How the pre-trained models are built

Both the DBN and the SDAE follow the same two-phase recipe, which the authors describe as a common pattern in the literature. In the first phase, unsupervised pre-training initializes all layers, with each layer trained on the output of the layer below while the earlier layers stay fixed. In the second phase, fine-tuning minimizes a global training criterion, which is a prediction error that uses labels in the supervised case.

The authors use these two architectures as representatives of two families of models in the deep learning literature. Their experiments use MNIST, InfiniteMNIST and Shapeset, which the authors chose because earlier deep architecture results were mostly on MNIST and its variations.

A DBN is built by training and stacking several Restricted Boltzmann Machines in a greedy manner. Once the stack of RBMs is trained, it can initialize a multi-layer neural network for classification. An RBM's Contrastive Divergence update often has the same sign as the log-likelihood gradient, so it serves as a good stochastic approximation.

Each new RBM models the samples produced by chaining the posteriors of the lower layers, starting from the training data. The parameters of the stack then map to a deterministic feed-forward network, where each unit's output is a sigmoid of its bias plus a weighted sum of the previous layer. One or more extra layers map the top-level features to the class probabilities of the target task.

An auto-encoder's encoder and decoder aim to reconstruct the input, but with many code units it could learn a trivial encoding. A denoising auto-encoder is trained to reconstruct a clean input from a corrupted version, so it cannot learn the identity mapping even with high capacity. Each denoising auto-encoder takes the raw inputs or the previous layer's outputs, and its code vector h(x) is passed on to the next layer.

In the authors' experiments, the code is a sigmoid of hidden biases plus a weight matrix times the input, and the corruption zeroes a fixed-size random subset of inputs. The authors also tried salt and pepper noise, and the reconstruction is decoded with the transpose of the feed-forward weights.

Reconstruction error is measured as a sum of component-wise cross-entropy when inputs lie in [0,1], with a Gaussian model giving a Mean Squared Error criterion as the other option. For both DBN and SDAE, a softmax logistic regression output layer is added after unsupervised training. The whole network is then trained as a multi-layer perceptron, so that it minimizes the negative log-likelihood prediction error.

Because the supervised objective and the gradient-based optimizer are identical in every case, only the starting point of the parameters differs between pre-trained and randomly initialized networks.

Pre-trained and random networks in function space

The authors compare networks by their functions rather than their parameters, because many permutations of the same parameters give the same model. Each network's outputs on all test-set examples are concatenated into one long vector that summarizes its position in function space. Each partially trained model gives one vector per training iteration, so every initialization seed yields a learning trajectory with or without pre-training.

These vectors are mapped to two dimensions, and pre-trained and random models are projected together in the same space. tSNE shows local structure and Isomap shows global structure, and each point is colored by its training iteration. The projections use 50 networks with and 50 networks without pre-training, with two hidden layers on MNIST.

With tSNE, trajectories of the same type initially move together. After about 7 epochs, the trajectories from different random seeds diverge into elongated jets and rarely come back close to each other. The divergence is stronger for networks without pre-training. Across seeds, the pre-trained solutions look nearly the same, and their self-similarity grows during training while the opposite holds without pre-training.

Different parameter settings can give the same function, so separate trajectories don't prove separate local minima. The authors also ran checks, including second-derivative estimates along the Jacobian eigenvectors, and these were consistent with that reading. They don't report those second-derivative checks in detail. Around the final parameters, the training error curves look close to quadratic along the sampled random directions.

The models seem to sit near a local minimum in every direction tested, rather than at a saddle point or plateau. The pre-trained models end up in distinct regions of these error landscapes, and so in different parts of parameter space.

Testing the conditioning explanation

The simplest explanation is that pre-trained weights simply have a different scale or spread than random ones. To test it, the authors asked whether the advantage comes from a better range and marginal distribution of the starting weights. They computed marginal histograms for each layer's pre-trained weights and biases, one per layer's weights and biases.

Then they resampled new initial weights and biases from these histograms, independently for each parameter, and fine-tuned from there. The resampled parameters share the marginal statistics of pre-trained parameters but not their joint distribution.

Two outcomes were possible, and each would tell a different story about pre-training. If marginal resampling beat standard initialization, pre-training would provide a better marginal conditioning of the weights. If marginal resampling matched or did worse than no pre-training, the marginals alone would not explain the gain. With one layer on MNIST, uniform initialization gave 1.81 ± 0.07 test error, marginal resampling gave 1.94 ± 0.09, and unsupervised pre-training gave 1.41 ± 0.07.

Resampling the marginals did worse than uniform initialization here, so matching the marginals alone didn't recover the gain.

With two layers, the numbers were 1.77 ± 0.10 for uniform, 1.69 ± 0.11 for marginal resampling, and 1.37 ± 0.09 for pre-training. Marginal resampling helped slightly with two layers, but pre-training still gave the lowest error. The authors read this as evidence that pre-training captures dependencies between parameters that the marginals miss.

The regularization reading fits as well, since classical L1/L2 penalties on the weights didn't reach the same performance.

Online results on InfiniteMNIST

InfiniteMNIST gives the authors a near-unlimited stream of examples, so they measured online classification error on each new block of examples. The comparison covers 1 and 3-layer DBNs, 1 and 3-layer SDAEs, and 1 and 3-layer networks without pre-training, which makes six architectures in total. Each online error is a moving average over a block of the last 100,000 errors.

That tuning produced 2000 units for 1-layer networks and 1000 units per layer for 3-layer networks.

Three-layer networks without pre-training generalize worse than 1-layer networks without pre-training. The authors read this as confirming that optimization of deep networks is harder than optimization of shallow ones, even online. Three-layer SDAE models generalize better than three-layer DBNs in the same comparison. The pre-training advantage doesn't vanish as the number of training examples increases; if anything, it grows.

The authors read this as an optimization effect of unsupervised pre-training.

Without pre-training, those networks didn't take advantage of the extra capacity, which points again to the optimization explanation. As the number of examples grows, the training and generalization errors converge, so the authors see the pre-training effect as staying put rather than shrinking. A regularization view alone would predict that the benefit fades with more data, so this result runs against that expectation.

Early examples and the depth effect

The authors asked whether early training examples steer stochastic gradient descent more than later ones, and whether that influence changes with pre-training. Their hypothesis is that small perturbations early in training matter more, because the weights grow and the set of reachable regions shrinks. Once the parameters sit in a basin, the model is unlikely to escape it, so early examples can trap the parameters in a region set by the ordering of the data.

To test this, they resampled the first million examples across 10 different random draws from a data set of 10 million examples and kept the other examples fixed. They then measured the variance across the 10 draws of the network outputs on a fixed test set, which measures variance in function space. The samples at the beginning did influence the output more than the samples at the end, but this variance was lower for the pre-trained networks.

Both networks were most influenced by the last examples, because the stochastic gradient used a constant learning rate that gives recent examples more weight. The authors say these results agree with their hypothesis, since early examples have greater influence and pre-training reduces that variance.

In the depth experiments, the authors pre-trained the first layer, the first two layers, or all three layers, and left the rest randomly initialized. On MNIST, they plotted log(train NLL) against log(test NLL) at each epoch, and the trajectories moved toward lower training and test error. On InfiniteMNIST, they plotted only the online error, and the authors describe these results as ambiguous about optimizing lower versus higher layers.

The authors expected the largest incremental benefit from pre-training the first layer or the first two layers. Pre-training the first two layers gave that benefit, but pre-training the first layer alone did not. On MNIST, the final training error after the same number of epochs became worse as more layers were pre-trained, which the authors take as support for the regularization explanation.

With a single hidden layer, pre-training gave lower training error than random initialization on the Figure 8(a) setup. With more layers, the training error was worse with pre-training, so the single-layer result doesn't carry over to deeper models. They also suspect that supervised fine-tuning may bring the information about Y up to the output layer less easily in deeper networks.

In a single hidden layer, less information about Y is dropped, which makes the supervised output layer's job easier. Earlier work by Larochelle et al. (2009) found that supervised fine-tuning helps classification when the output layer reads only the top hidden layer, which fits this explanation.

Limits of the evidence

The conclusions rest on three data sets: MNIST, InfiniteMNIST and Shapeset. The authors state that their results are limited by these data sets, and that other data could support different conclusions. Shapeset is a synthetic set of 10 × 10 triangle and square images, and MNIST holds 60,000 training and 10,000 testing digits. InfiniteMNIST comes from random elastic deformations of the original MNIST digits, so its online results don't show how pre-training behaves on natural images.

The months of CPU time went into controlled experiments on well understood data sets, not into advancing a particular algorithm. The authors wanted to understand a phenomenon that was already documented elsewhere, so they didn't tune for the strongest benchmark score. The work is orders of magnitude more compute than most earlier work in the area, which makes the scope narrower in practice.

The authors say that the effects of early examples need further study before the hypothesis can be confirmed.

The disentangling explanation of the depth results remains a hypothesis for future work. The authors propose that random projections can be more predictive of Y than leading factors of variation, but they didn't test that directly. They suggest measuring mutual information between each hidden unit and the object categories, as the number of hidden units varies, to check it.

The hidden-layer explanation for why one layer benefits and deeper stacks lose training error is also left open.

The authors suggest that deep auto-encoders with a bottleneck may behave differently from the deep classifiers studied here. They hypothesize that the bottleneck is the crucial element, and this was not tested in the paper. Previous results on deep auto-encoders show that training error also drops with pre-training, which points to an optimization effect.

Paper info

Authors
Dumitru Erhan, Yoshua Bengio, Aaron Courville, Pierre-Antoine Manzagol, Pascal Vincent, Samy Bengio
Venue
Journal of Machine Learning Research · Published
Added
2026-11-12
Original paper terms
Check in the original ↗
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Dumitru Erhan, Yoshua Bengio, Aaron Courville, Pierre-Antoine Manzagol, Pascal Vincent, Samy Bengio (2010). Why Does Unsupervised Pre-training Help Deep Learning?. Journal of Machine Learning Research. https://www.jmlr.org/papers/v11/erhan10a.html

BibTeX
@article{erhan2010does,
  title = {{Why Does Unsupervised Pre-training Help Deep Learning?}},
  author = {Dumitru Erhan and Yoshua Bengio and Aaron Courville and Pierre-Antoine Manzagol and Pascal Vincent and Samy Bengio},
  year = {2010},
  journal = {Journal of Machine Learning Research},
  url = {https://www.jmlr.org/papers/v11/erhan10a.html}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up