Churn Reduction via Distillation

Heinrich Jiang, Harikrishna Narasimhan, Dara Bahri, Andrew Cotter, Afshin Rostamizadeh

Overview

Updating machine learning models often leads to "predictive churn"—unnecessary changes in individual predictions that can disrupt downstream systems. This paper proves that simple knowledge distillation, using the old model as a teacher, is mathematically equivalent to training under a churn constraint. Furthermore, it consistently outperforms more complex baselines across diverse datasets and architectures.

The Problem: Predictive Churn

In real-world production environments, machine learning models are updated continuously as new data arrives. While the primary goal is usually to increase accuracy, a secondary, often overlooked requirement is stability.

The authors define predictive churn as the difference in predictions between a new "candidate" model and an existing "base" model on the same data. High churn is problematic because:

  1. Downstream Costs: Other systems (like ranking or filtering pipelines) that consume these predictions may have been tuned to the base model's specific behavior.
  2. Evaluation Costs: Large disagreements between models often trigger expensive manual human evaluations or complex A/B tests.
  3. Training Noise: Deep learning is inherently noisy; even training the same architecture on the same data with a different random seed can lead to significant churn.

The challenge is to find a way to update models that improves (or maintains) accuracy while keeping churn within an acceptable "budget."

Methodology: Distillation as a Churn Constraint

The core proposal is surprisingly simple: use Knowledge Distillation. Instead of training the new model only on "hard" true labels, the authors suggest training on a mixture of true labels and the "soft" predictions (probabilities) of the base model.

Distillation framework and its equivalence to a low churn objective.
  • The Proposal: Treat the base model as a "teacher" and the candidate model as a "student."
  • Theoretical Contribution: The authors prove a theoretical equivalence between this distillation approach and a more complex constrained optimization problem (minimizing loss subject to a hard churn constraint). This means practitioners can achieve the benefits of constrained optimization using the much simpler and more stable distillation framework.
  • Algorithm: They introduce a procedure that trains a grid of models with different mixing parameters ($\lambda$) and then uses a convex combination to find the optimal solution that satisfies a specific churn budget.

Experimental Setup

The authors conducted an extensive empirical study across a wide variety of domains and architectures:

  • Tabular Data: 12 OpenML datasets (e.g., adult, bank, magic04) using fully-connected networks (FCNs).
  • Image Classification: 10 MNIST variants, SVHN, CIFAR-10, and CIFAR-100 using Convolutional Neural Networks (LeNet-5 and ResNets).
  • Multi-task Vision: 40 CelebA facial attribute tasks.
  • Text Classification: The IMDB sentiment dataset using Transformer architectures.

Key Insights

  • Distillation is a Natural Regularizer for Churn: The "aha moment" is that distillation isn't just for model compression; it is mathematically aligned with learning under a churn constraint.
  • Confidence Matters: The authors compare their method to "Anchor Loss" (which only uses the base model's labels when they match the ground truth). They find that distillation is superior because it utilizes the confidence of the base model. If the base model is uncertain about a prediction, distillation allows the student model more flexibility, whereas Anchor Loss might provide a biased signal.
  • Better Generalization: Soft labels from a teacher model have lower variance than hard labels. This helps the student model generalize better not just for accuracy, but specifically for the churn metric on unseen data.
  • Pareto Dominance: In many experiments, distillation didn't just provide a trade-off; it produced solutions that "dominated" other baselines, offering both better accuracy and lower churn simultaneously.

Empirical Results

The authors evaluated models using a metric called "churn at cold accuracy"—the lowest churn achievable by a method while remaining at least as accurate as a model trained from scratch ("cold start").

  • OpenML/FCNs: Distillation was the top performer in 84% of the tested scenarios.
  • MNIST/CNNs: Distillation performed best in 84% of combinations of datasets and network sizes.
  • CelebA: Across 200 task/network combinations, distillation was the best method 79% to 96% of the time, with its lead increasing as the initial training sample size decreased.
  • Transformers: On the IMDB dataset, distillation consistently produced a better Pareto frontier (the curve showing the best possible trade-off between error and churn) than any other baseline.
Pareto frontiers for IMDB classification using Transformers, showing distillation dominating other baselines.

Limitations and Future Directions

  • Classification Focus: The theoretical and empirical work is centered on multiclass classification. While the intuition might carry over to regression, it is not explicitly addressed.
  • Teacher Quality: The method assumes the base model is a reasonable "teacher." If the base model is exceptionally poor, the distillation might hinder the candidate model's ability to reach state-of-the-art accuracy.
  • Hyperparameter Tuning: While simpler than constrained optimization, the method still requires tuning the mixing parameter $\lambda$ to hit a specific churn target.
  • Future Directions: The authors suggest that exploring how distillation interacts with other forms of model updates (like changing architectures entirely) would be a valuable next step.

Summary updated

BibTeX
@inproceedings{jiang2022churn,
  author = {Heinrich Jiang and Harikrishna Narasimhan and Dara Bahri and Andrew Cotter and Afshin Rostamizadeh},
  title = {{Churn Reduction via Distillation}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=_ZlB1QEmW1},
}
Figure