TL;DR
Large recommendation foundation models (FMs) struggle to pass their rich, multi-layered knowledge to compact, real-time vertical models (VMs) through standard scalar knowledge distillation. LoopFM solves this "bandwidth bottleneck" by materializing and storing historical intermediate FM embeddings as compressed, structured sequence features for the VM. This elegant architecture completely avoids real-time FM inference during serving while doubling the knowledge transfer ratio and delivering massive conversion gains in production.
What Problem Does This Paper Address?
Modern industrial recommendation systems typically rely on a two-tier architecture: a massive foundation model (FM) with up to trillions of parameters learns rich representations offline, while compact vertical models (VMs) serve predictions online under strict latency constraints. Traditionally, Knowledge Distillation (KD) bridges this capacity gap by transferring the FM's scalar predictions as "soft labels" to supervise the VM.
However, as FMs scale to multi-trillion parameters, this single scalar becomes a severe bandwidth bottleneck. A single number cannot convey rich cross-domain features, multi-level interaction patterns, and contextual signals learned by the giant teacher. Consequently, the transfer ratio—the fraction of FM improvement captured by the VM—continues to deteriorate as the teacher-student capacity gap widens.
Methods
LoopFM (Learning frOm HistOrical RePresentations of FM) introduces a high-bandwidth embedding channel alongside the traditional scalar KD channel. Instead of forcing the FM to talk to the VM through a single scalar, LoopFM materializes the FM's intermediate representations into structured input features for the VM.
The framework consists of three modular stages:
- Embedding Extraction: Selects a subset of intermediate layers from the FM during its offline pass and concatenates their activations into a raw high-dimensional embedding.
- Compression & Quantization: Compresses these massive embeddings using a co-trained autoencoder. It leverages Matryoshka-style compression for flexible dimension tuning and applies K-means INT4 quantization to achieve a 4× storage reduction with minimal quality loss.
- Structuring: Groups these compressed historical embeddings by a key (such as user ID) into temporal sequences.
Crucially, only historical embeddings are used, and the current sample being served is explicitly excluded. This design choice ensures that the VM can serve predictions using pre-computed historical sequences without requiring expensive, real-time FM inference at serving time.
Datasets
The authors validated LoopFM on three public benchmarks:
- TaobaoAd: 25M samples, 22 features (the richest feature set, used for primary ablations).
- KuaiVideo: 13.7M samples, 9 features.
- Amazon Electronics: 3M samples, 6 features.
They also evaluated the framework on Meta's internal production systems, which feature trillion-parameter FMs and billions of daily training examples.
Key Insights and Ideas
- The Bandwidth Bottleneck is Real: Moving from a single scalar soft label to a rich sequence of historical embeddings fundamentally shifts how much knowledge a compact model can inherit from a giant teacher.
- Shallower Layers Transfer Better: Ablation studies revealed that shallower intermediate layers of the FM transfer better than deeper ones. This aligns with the information bottleneck principle, which dictates that deeper layers progressively discard fine-grained input details to focus purely on the final prediction task.
- Consistency Beats Freshness: Counterintuitively, updating the FM checkpoint frequently degraded VM performance. The authors discovered that frequent updates cause "embedding drift." The VM's sequence encoder benefits far more from embeddings that remain in a stable, consistent vector space over time rather than slightly fresher but drifting representations.
- Orthogonality to KD: LoopFM's embedding channel and traditional scalar KD are highly complementary. Combining them yields better results than either alone, suggesting that multi-channel transfer should be a default design pattern in FM-VM systems.
Key Results
- Public Benchmarks: LoopFM achieved substantial AUC improvements across multiple VM architectures. On TaobaoAd, it delivered an average AUC gain of over 6% (see Table 1). It also significantly outperformed alternative embedding-based transfer methods like FitNets (see Table 2).
- Industrial Scale: When deployed on production systems with trillion-parameter FMs, LoopFM approximately doubled the knowledge transfer ratio on top of standard KD.
- Production Impact: The initial production launch yielded a +0.50% ad conversion improvement, followed by +1.03% and +1.22% conversion improvements in subsequent individual launches.
Limitations and Future Work
The authors honestly acknowledge several practical limitations of LoopFM:
- Storage Overhead: Storing long sequences of compressed embeddings for billions of users at scale demands significant infrastructure and storage capacity.
- Cold-Start Problem: New users or items lack an embedding history, meaning LoopFM cannot provide immediate benefits for them.
- Inference Latency: Processing sequence features on the VM side introduces additional inference latency during real-time serving.
Future Directions: The authors suggest exploring alternative structuring methods (like graph-based user-item bipartite graphs), cross-domain knowledge transfer (e.g., organic content FMs powering ads VMs), and "self-LoopFM" where the FM consumes its own historical embeddings to create a self-improving loop.
Summary updated