Skip to main content
QUICK REVIEW

[Paper Review] The dynamics of representation learning in shallow, non-linear autoencoders

Maria Refinetti, Sebastian Goldt|arXiv (Cornell University)|Jan 6, 2022
Model Reduction and Neural NetworksPhysics and Astronomy8 citations
TL;DR

This paper derives asymptotically exact dynamical equations for shallow, non-linear autoencoders trained with stochastic gradient descent (SGD) in the high-dimensional limit. It shows that such autoencoders sequentially learn the leading principal components of their input data, with performance governed by weight norms and activation function properties—revealing that tied weights hinder learning in sigmoidal autoencoders and that bias training is essential in ReLU autoencoders, while modified SGD can recover exact principal components.

ABSTRACT

Autoencoders are the simplest neural network for unsupervised learning, and thus an ideal framework for studying feature learning. While a detailed understanding of the dynamics of linear autoencoders has recently been obtained, the study of non-linear autoencoders has been hindered by the technical difficulty of handling training data with non-trivial correlations - a fundamental prerequisite for feature extraction. Here, we study the dynamics of feature learning in non-linear, shallow autoencoders. We derive a set of asymptotically exact equations that describe the generalisation dynamics of autoencoders trained with stochastic gradient descent (SGD) in the limit of high-dimensional inputs. These equations reveal that autoencoders learn the leading principal components of their inputs sequentially. An analysis of the long-time dynamics explains the failure of sigmoidal autoencoders to learn with tied weights, and highlights the importance of training the bias in ReLU autoencoders. Building on previous results for linear networks, we analyse a modification of the vanilla SGD algorithm which allows learning of the exact principal components. Finally, we show that our equations accurately describe the generalisation dynamics of non-linear autoencoders on realistic datasets such as CIFAR10.

Motivation & Objective

  • To understand the generalization dynamics of non-linear, shallow autoencoders trained with SGD on data with non-trivial correlations.
  • To determine whether and how such autoencoders can achieve the optimal PCA reconstruction error.
  • To analyze the role of weight tying, bias training, and activation function non-linearities in representation learning.
  • To develop a theoretical framework valid in the high-dimensional limit that captures real-world training dynamics.
  • To establish connections with Gaussian universality and validate the model on realistic datasets like CIFAR10.

Proposed method

  • Derives a set of asymptotically exact ordinary differential equations (ODEs) for the scaling constants of encoder and decoder weights in the thermodynamic limit (D → ∞, K finite).
  • Uses statistical mechanics techniques to compute overlaps between network weights and input data's principal components, assuming i.i.d. input data with known covariance structure.
  • Applies the replica method and cavity approach to analyze the dynamics of the population mean-squared error (pmse) and weight norms over time.
  • Introduces a modified SGD rule that breaks rotational symmetry, enabling exact recovery of principal components.
  • Validates the analytical equations against simulations on both synthetic and real-world data (e.g., CIFAR10), showing strong agreement.
  • Derives explicit analytical expressions for expectation values involving sigmoid, ReLU, and linear activations under Gaussian assumptions.

Experimental results

Research questions

  • RQ1How do non-linear autoencoders trained with SGD learn features in the presence of correlated input data?
  • RQ2Can non-linear autoencoders achieve the optimal PCA reconstruction error, and if so, under what conditions?
  • RQ3Why do sigmoidal autoencoders with tied weights fail to learn principal components, and how does this differ from untied or ReLU-based models?
  • RQ4What role do biases play in the learning dynamics of ReLU autoencoders?
  • RQ5Does the theoretical framework derived for high-dimensional i.i.d. data accurately describe training on realistic datasets like CIFAR10?

Key findings

  • Autoencoders learn the leading principal components of their input data sequentially, with the population mean-squared error (pmse) decaying first exponentially and then as a power law.
  • The network first recovers the subspace spanned by the leading principal components, then adjusts weight norms to minimize reconstruction error.
  • Sigmoidal autoencoders with tied weights fail to learn principal components because weight shrinkage during training disrupts the linear regime necessary for exact recovery.
  • Training the bias is essential for ReLU autoencoders to achieve low reconstruction error, as it enables proper scaling of the non-linear activation.
  • A modified SGD rule that breaks rotational symmetry allows the network to converge to the exact principal components, bypassing the implicit bias of standard SGD.
  • The derived dynamical equations accurately describe the generalization dynamics of non-linear autoencoders trained on CIFAR10, confirming the phenomenon of Gaussian universality in shallow networks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.