Abstract
Scaling laws have revolutionized Natural Language Processing and Computer Vision, yet their application to recommender systems (RecSys) has been hindered by streaming data, surface diversity, and strict latency constraints. This paper introduces a Foundation–Expert paradigm that decouples a massive, cross-surface Foundation Model (FM) from lightweight, surface-specific Expert models. By leveraging target-aware embeddings and the HyperCast infrastructure, the proposed architecture achieves significant performance gains and improves developer velocity while serving tens of billions of daily requests.
Introduction: The Challenge of Scaling RecSys
While the principle that increased data and compute lead to predictable performance gains (scaling laws) is well-established in other AI domains, Recommender Systems face unique hurdles that make monolithic scaling difficult. The authors identify four primary obstacles:
- Streaming Data: Models must learn from continuous, one-epoch streams where data distributions shift rapidly.
- Surface Diversity: Large platforms manage multiple "surfaces" (e.g., Feed, Reels) with distinct goals and input distributions.
- Latency Constraints: Recommendations must be served in milliseconds, making trillion-parameter models computationally prohibitive for direct inference.
- Information Loss: Traditional transfer methods like Knowledge Distillation often fail to pass the full performance gains of a large "teacher" model down to a smaller "student."
The Foundation-Expert Paradigm
To overcome these challenges, the researchers moved away from traditional per-surface scaling toward a decoupled architecture. This paradigm separates general knowledge acquisition from task-specific optimization.
The Foundation Model (FM)
The FM is a massive model based on Hierarchical Sequential Transduction Units (HSTU)—a transformer variant optimized specifically for RecSys. It is trained on "lifelong" user histories across all surfaces to learn generalizable human behavior.
Target-Aware Embeddings (TAE)
A critical innovation is the use of Target-Aware Embeddings. Instead of generating a static "user embedding," the FM generates a dynamic representation of a user’s interest relative to a specific candidate item. This provides a much higher-fidelity signal for downstream ranking tasks than general-purpose embeddings.
Expert Models
Expert models are lightweight (requiring only 20–40% of the compute of traditional models) and surface-specific. They ingest the TAEs as features and focus on optimizing local objectives, such as "likes" on Reels versus "comments" on Feed. This decoupling allows researchers to iterate on specific app features without the massive overhead of retraining a foundation model.
HyperCast Infrastructure
The paradigm is supported by HyperCast, a re-engineered infrastructure stack designed for hyperscale deployment. It features:
- Decoupled Training: FM and Experts train independently, allowing for different update cadences.
- Multi-tier Inference: The system separates the heavy FM embedding generation from the fast Expert ranking stage.
- Inference Pruning: Advanced techniques are used to minimize latency, ensuring the system meets strict production requirements.
Key Results and Insights
- Performance Gains: The Foundation-Expert approach showed a ~2-3% improvement in Normalized Entropy (NE) across major tasks compared to production baselines. In industrial RecSys, an improvement of 0.05% is often considered significant.
- Transfer Efficiency: The authors introduced a "Transfer Ratio" metric to measure how much of the FM's performance gain is inherited by the Expert. They achieved ratios between 0.64 and 1.0, significantly higher than traditional distillation methods.
- Online Impact: In A/B tests at Meta, the system delivered statistically significant improvements in user engagement and consumption metrics while maintaining neutral serving latency and CPU usage.
Conclusion
The Foundation-Expert paradigm successfully unlocks scaling laws for hyperscale recommender systems. By re-engineering both the model architecture and the underlying infrastructure, the researchers have demonstrated a path toward trillion-parameter scale recommendations that are both performant and computationally feasible in a production environment.
Summary updated