Abstract
In industrial recommendation systems, deep learning models often exhibit a counter-intuitive behavior known as the "one-epoch phenomenon." Unlike models in computer vision or natural language processing that benefit from multiple training passes, Click-Through Rate (CTR) prediction models frequently reach their peak performance after a single epoch, followed by a dramatic degradation at the start of the second. This paper investigates the underlying factors of this phenomenon using production data from Alibaba. Our findings suggest that the combination of high-dimensional sparse features, the Embedding + Multi-Layer Perceptron (MLP) architecture, and fast-converging optimizers creates a "memorization trap" that triggers immediate overfitting.
Introduction
In the standard deep learning paradigm, training for multiple epochs is essential for convergence and generalization. However, in the field of industrial CTR prediction, practitioners have long observed that models suffer a "performance cliff"—a sharp drop in Area Under the Curve (AUC)—the moment the second epoch begins. To maintain peak performance, many systems are simply trained for exactly one epoch. While effective, this early stopping is a heuristic that lacks a theoretical foundation. This study seeks to anatomize the one-epoch phenomenon to understand why these models are so uniquely prone to rapid overfitting.
Methodology
To isolate the causes of the performance cliff, we conducted extensive empirical studies using three primary datasets:
- Alibaba Production Data: Over 10 million samples and 22 million unique IDs from a display advertising system.
- Amazon Book: A public dataset of book reviews and metadata.
- Taobao: A public dataset of user behaviors from the Taobao recommender system.
Our analysis employed several diagnostic techniques:
- Ablation Studies: Systematically varying model depth, width, and activation functions.
- Optimizer Comparison: Evaluating the impact of Adam, RMSprop, and SGD on the onset of overfitting.
- Feature Manipulation: Testing the effects of feature sparsity through filtering and hashing.
- Distribution Analysis: Using the $\mathcal{A}$-distance metric to measure the shift in the joint distribution of embeddings and labels between the first and second epochs.
- Gradient Monitoring: Tracking the $\ell_\infty$-norm of parameter updates to pinpoint which layers (embeddings vs. MLP) drive the performance drop.
Key Insights and Results
The Role of Feature Sparsity
Our experiments identified feature sparsity as the primary driver of the one-epoch phenomenon. When the model utilizes fine-grained features like specific Item IDs, the performance cliff is most pronounced. Conversely, when these features are removed in favor of coarse-grained categories, the cliff disappears. However, removing these sparse features also significantly reduces the model's peak accuracy, indicating that while these features are necessary for high performance, they are also the source of instability.
Architecture and Optimization
The phenomenon appears specific to the Embedding + MLP architecture. Simple models like Logistic Regression (LR) do not exhibit this abrupt drop. Furthermore, the choice of optimizer plays a critical role. Fast-converging optimizers like Adam and RMSprop achieve higher peak performance in the first epoch but suffer a much more severe drop in the second compared to vanilla SGD.
The Memorization Trap
We hypothesize that the one-epoch phenomenon is a result of a "memorization trap." During the first epoch, the embedding layer learns representations for sparse IDs. At the start of the second epoch, the MLP layers "recognize" these previously seen embeddings. Instead of continuing to learn generalizable patterns, the MLP quickly overfits to the specific labels associated with those embeddings in the first pass.
This is supported by our gradient monitoring: at the beginning of the second epoch, the embedding layer updates remain stable, but the MLP layers experience a massive spike in update magnitude. This suggests the MLP is aggressively adjusting its weights to "memorize" the training samples it has now seen twice.
Distribution Shift and Layer Freezing
Using $\mathcal{A}$-distance, we confirmed that the model finds "trained" samples (those seen in epoch 1) much easier to distinguish from "untrained" samples. This confirms a distribution shift in the embedding space that the MLP exploits. We found that freezing the MLP layers after the first epoch and only allowing the embeddings to update in the second epoch successfully eliminated the performance cliff. However, this technique did not significantly improve performance beyond the first-epoch peak, suggesting that the model's capacity to learn new information is severely limited once the initial memorization occurs.
Conclusion
The one-epoch phenomenon in CTR prediction is a complex interaction between high-dimensional sparsity and the speed at which MLPs adapt to embedding distributions. While we have diagnosed the mechanics of this "cliff," surpassing the one-epoch peak remains a challenge. Future research should focus on developing regularization techniques or novel architectures that allow models to benefit from multiple passes over sparse data without falling into the memorization trap. Understanding this boundary is essential for moving beyond simple early stopping toward more robust, multi-epoch training paradigms in recommendation systems.
Summary updated