Abstract
A remarkable recent discovery in machine learning has been that deep neural networks can achieve impressive performance in the regime where they are massively over-parameterized. Consequently, the community has devoted growing interest in analyzing optimization and generalization properties of over-parameterized networks. However, the majority of existing work only applies to supervised learning scenarios. In this paper, we study the gradient dynamics of two-layer over-parameterized autoencoders with ReLU activation. We rigorously prove the linear convergence of gradient descent in two learning regimes: (i) the weakly-trained regime where only the encoder is trained, and (ii) the jointly-trained regime where both the encoder and the decoder are trained. Our results indicate the considerable benefits of joint training over weak training for finding global optima, achieving a dramatic decrease in the required level of over-parameterization. We also analyze weight-tied autoencoders and prove that in the over-parameterized setting, training such networks leads to certain unexpected degeneracies.
Introduction
In recent years, the "over-parameterization" of deep neural networks—having far more parameters than training samples—has moved from a perceived bug to a recognized feature. Massive networks can achieve zero training error and generalize well, contradicting classical bias-variance trade-offs. While researchers have developed strong mathematical proofs for why this happens in supervised learning (like classification), the unsupervised world—specifically autoencoders—has remained largely a theoretical "black box."
Autoencoders are designed to learn compressed representations by reconstructing their own input. The challenge lies in explaining why gradient descent can find global solutions in these non-convex landscapes and how different training strategies affect the outcome. This paper addresses these questions by applying Neural Tangent Kernel (NTK) theory to two-layer autoencoders.
Methods
The authors analyze a two-layer autoencoder with ReLU activation using the Neural Tangent Kernel (NTK) framework. The NTK describes the evolution of a neural network during training as a linear system, provided the network is sufficiently wide. Key technical contributions include:
- Multi-output NTK: Extending standard NTK analysis (often focused on scalar outputs) to high-dimensional vector outputs using Kronecker products.
- Regime Comparison: Rigorous comparison of the "weakly-trained" regime (training only the encoder) against the "jointly-trained" regime (training both encoder and decoder).
- Linearization: Characterizing the autoencoder's output evolution over time via a first-order Taylor expansion to provide insights into the "memorization" phenomenon.
Data Assumptions
The theoretical analysis assumes a general training dataset $X$ satisfying two mild conditions:
- Normalization: All training samples are unit length.
- Non-degeneracy: The data satisfies specific Gram matrix conditions, ensuring samples are sufficiently distinct for the network to distinguish them.
Key Insights
- The Power of Joint Training: Training the encoder and decoder together is mathematically superior to training the encoder alone. Joint training improves the smoothness of the optimization landscape, allowing convergence to a global minimum with a much smaller number of neurons.
- The "Memorization" Bias: Over-parameterized autoencoders tend to "memorize" training data. When a test input is close to the span of the training data, the network's reconstruction concentrates around those seen points.
- The Weight-Tying Trap: Many practical implementations use "weight-tied" autoencoders (decoder weights are the transpose of encoder weights). The authors show that in the over-parameterized limit, these networks can recover an identity map at initialization without any training, leading to "unexpected degeneracies" where no useful features are learned.
Key Results
The authors proved linear convergence for gradient descent in both training regimes, meaning the training error drops at a geometric rate. A central finding is the dramatic reduction in the required level of over-parameterization ($m$) when switching from weak to joint training.
As shown in the table above, the required number of neurons $m$ for joint training scales much more efficiently with respect to the number of samples ($n$) and the input dimension ($d$). For instance, in the multi-output case, this work demonstrates that joint training requires a width proportional to $n d$, whereas weak training requires a width proportional to $n^5 d^4$. This theoretical result confirms that joint training is not just a practical heuristic but a fundamental improvement in optimization efficiency.
Limitations and Future Work
While this work provides a breakthrough in understanding autoencoder dynamics, several areas remain for future exploration:
- Shallow Architecture: The analysis is currently limited to two-layer networks. Extending these linearization techniques to deep autoencoders remains an open challenge.
- Infinite Width Assumption: The bounds for finite-width networks, while provided, remain large compared to practical engineering standards.
- Loss Functions: The study focuses on squared-error reconstruction loss; future work could explore the impact of different loss functions or regularization techniques like sparsity constraints.
Summary updated