It’s late, your eyes are a bit heavy, and the last thing you want is a dry lecture on loss functions. So, let’s talk about "insider information" instead.
In the world of machine learning, specifically ads recommendation, we often have access to "privileged features"—data we only see during training. Think of it as knowing exactly how long a user stayed on a website after they clicked an ad. At the moment we need to decide whether to show that ad (inference), we don't have that info. But during training, it's a goldmine.
The paper HME-PFD (Heterogeneous Mixture-of-Experts Privileged Feature Distillation) tackles a messy reality: this "insider info" is often missing, sparse, or just plain weirdly distributed.
TL;DR
Standard distillation teaches a student model to mimic a teacher who has "insider info" (privileged features). HME-PFD goes a step further: it uses that insider info to help the student organize its internal "study groups" (experts) during training, leading to a much sharper model at runtime—even though the insider info is long gone by then.
What Problem Does This Paper Address?
Knowledge Distillation (KD) is the classic "big model teaches small model" setup. In Ads, we use Privileged Feature Distillation (PFD), where the teacher model gets to see post-click behaviors that the student won't see at serving time.
The headache? In real-world systems, these privileged features are heterogeneous. Maybe for one ad, we know the "dwell time," but for another, that data was lost or never recorded. Standard PFD treats every training example with the same level of importance. This is like a teacher giving the same weight to a detailed textbook and a blurry photocopy.
The authors realized that if we know which features are available and what their values are, we can treat different samples differently.
Methods
The core innovation is the Heterogeneous Mixture-of-Experts (HME) architecture within the student model.
Here is the play-by-play:
- The Teacher: A large model trained on everything (regular + privileged features).
- The Student: A smaller model with a shared "backbone" and two heads.
- Main Task Head: Predicts the outcome using only regular features.
- Distillation Head: This is a Mixture-of-Experts (MoE). It contains multiple "experts" (small sub-networks).
- The Router: This is the secret sauce. The student uses a routing module that looks at the privileged features to decide which expert should handle a specific training sample.
The authors explored two types of routing:
- Hard-Coded: Simple rules (e.g., "If feature X is missing, go to Expert 1; if it's there, go to Expert 2").
- Learnable: Using Linear layers, MLPs, or even Attention mechanisms to dynamically score and assign experts based on the privileged data.
At inference time, the privileged features and the entire MoE distillation head are discarded. The student is left with a backbone that was "shaped" by these specialized experts during training.
Datasets
The authors didn't play around with toy datasets. They used two massive, industrial-scale datasets from Meta:
- CVR_Large: Billions of user interactions for post-click conversion prediction.
- CVR_Small: A smaller (but still huge) dataset targeting a different conversion task.
Key Insights and Ideas
- Routing as an Abstraction: Instead of just using privileged features to make the teacher smarter, using them to partition the student's learning process is highly effective. It allows the model to specialize on "high-signal" vs. "low-signal" samples.
- Sparsity is a Signal: Even the absence of a feature is useful information for the router. A hard-coded rule based on "is this data missing?" outperformed the baseline.
- Linear is Often Enough: While complex routers (like Attention) are cool, a simple Linear gating function often captured most of the benefits, making it an attractive choice for production environments where training efficiency matters.
Key Results
The primary metric was Normalized Entropy (NE)—lower is better.
- Consistency: HME-PFD consistently outperformed both the "Plain" student (no distillation) and standard PFD across both datasets.
- The "Aha" Moment: On the
CVR_Smalldataset, the MLP-based router improved NE by 0.42%. In the world of high-scale ads, a 0.1% improvement is often considered a major win; 0.42% is massive. - Expert Count: They found that 2 or 3 experts were the "sweet spot." Moving to 4 experts actually degraded performance, likely due to optimization difficulties or under-utilization of the extra capacity.
Limitations and Future Work
- Optimization Hurdles: As mentioned, scaling to many experts is tricky. The authors noted that the poor behavior at 4 experts suggests we need better ways to ensure all experts are utilized effectively.
- Task Dependency: The "best" expert architecture seems to depend on the specific task and dataset scale. There’s no one-size-fits-all expert.
- Theoretical Gap: While they provided a "Scenario-Conditional Analysis" in the appendix, they admit that lower distillation risk doesn't mathematically guarantee lower true-label risk for the main head, though the empirical results are very encouraging.
In short: if you have messy, incomplete data during training that you won't have later, don't just give it to the teacher. Use it to help the student organize its thoughts.
Summary updated