TL;DR
Researchers have introduced a new "Performance Law" for sequential recommendation (SR) models that moves beyond traditional scaling laws. By incorporating Approximate Entropy (ApEn) to measure data quality and adding decay terms to account for overfitting, this framework accurately predicts when increasing model size will actually hurt performance, helping engineers find the "sweet spot" for computational efficiency.
What Problem Does This Paper Address?
In the world of Large Language Models (LLMs), the "Scaling Law" is king: if you increase your parameters ($N$) and your data ($D$), your loss will predictably decrease. However, the authors of this paper argue that Sequential Recommendation (SR)—the tech that predicts your next click or purchase—doesn't play by the same rules.
Applying LLM scaling laws to recommendation systems faces two major hurdles:
- Performance vs. Loss: In recommendation, we care about metrics like Hit Rate (HR) and NDCG, not just raw cross-entropy loss. Unlike LLMs, SR models often exhibit a "U-shaped" performance curve where increasing model size beyond a certain point leads to a sharp decline in accuracy due to overfitting.
- Data Quality vs. Quantity: Raw token count is a poor proxy for information in recommendation datasets, which are often riddled with noise, redundancy, and highly repetitive user patterns.
Methods
The authors propose the Performance Law for SR, a new mathematical framework to predict model efficacy. Key innovations include:
- Approximate Entropy (ApEn): Instead of just counting tokens, they use ApEn to quantify the regularity and unpredictability of user sequences. They define an "effective data scale" ($D'$) as the product of token count and the inverse of ApEn. This effectively penalizes redundant data that doesn't add new information.
- Decay Terms: Their fitting equation (Equation 7 in the paper) includes logarithmic decay terms for both the number of layers ($N$) and the embedding dimension ($d_{emb}$). This allows the model to capture the "U-shape" behavior where performance peaks and then drops as the model becomes over-parameterized.
- Metric Fitting: They directly fit their laws to recommendation-specific metrics (HR@10 and NDCG@10) rather than just training loss.
Datasets
The study validates its findings across four diverse datasets:
- MovieLens-1M: A classic benchmark for movie recommendations.
- Amazon Books: A subset of the massive Amazon review dataset.
- KuaiRand-pure: Interaction data from a popular short-video platform (Kuaishou).
- Huawei Music: A large-scale proprietary dataset used to test the limits of these laws in industrial scenarios.
Key Insights and Ideas
- The "U-Shape" is Real: Figure 1 illustrates the core insight: while loss might steadily decline as a model grows, actual recommendation performance often hits a ceiling and then crashes. The Performance Law is the first to quantitatively model this "over-scaling" risk.
- Entropy as a Quality Filter: The paper proves theoretically and empirically that $D' \propto Tokens/ApEn$. This means that a smaller, "high-entropy" dataset (diverse user behaviors) can be more valuable than a massive, "low-entropy" one (repetitive patterns).
- Predictive Power: By training just a few small-scale models, researchers can use the Performance Law to accurately predict the optimal number of layers and embedding dimensions for a massive dataset without actually running the expensive full-scale experiments.
Key Results
The proposed Performance Law demonstrated remarkable accuracy across all tested scenarios:
- High Correlation: The fitting formulas achieved $R^2$ values often exceeding 0.95, indicating a very strong fit between the theoretical law and actual experimental results (see Figure 2 and Figure 3).
- Optimal Parameter Search: Using the law, the authors were able to calculate "Global Optimal Solutions." For example, on the MovieLens-1M dataset, they identified that a model with 64 layers and an embedding dimension of 603 would reach peak performance (HR@10 of 0.3512), whereas further scaling would lead to diminishing returns.
- Framework Agnostic: The authors showed that their law holds true across different architectures, including HSTU, LLaMA2, and SASRec, and different numerical precisions (float32 vs. bfloat16).
Limitations and Future Work
While the Performance Law is a significant step forward, the authors note some areas for further exploration:
- Architecture Specificity: The current study focuses primarily on decoder-only transformer backbones. Whether these laws apply identically to GNN-based or diffusion-based recommenders remains to be seen.
- Computational Cost of ApEn: Calculating Approximate Entropy for truly massive, billion-scale datasets can be computationally intensive, suggesting a need for more efficient entropy approximation methods.
- Dynamic Environments: The current laws assume a static dataset. Future work could investigate how these laws evolve in real-time streaming recommendation environments where data quality shifts constantly.
Summary updated