Mitigating Negative Flips via Margin Preserving Training

Simone Ricci, Niccolò Biondi, Federico Pernici, Alberto Del Bimbo

TL;DR

This paper tackles the problem of "negative flips" in AI model updates, where a new model incorrectly classifies samples that the old model got right. They propose "Margin Preserving Training" (MPT) which uses a novel margin-calibration loss and a double-source distillation strategy to maintain performance on older classes while improving on new ones, significantly reducing negative flips.

What Problem Does This Paper Address?

In the real world, AI models are frequently updated to improve performance, incorporate new data, or expand their capabilities. A critical challenge in this process is ensuring that these updates don't introduce regressions, particularly "negative flips." A negative flip occurs when a model that was previously correct on a specific data point becomes incorrect after an update. This is especially problematic when new classes are added to the model's repertoire, as this can shrink the decision margins between classes, making the model more susceptible to misclassifications, even for previously well-classified examples. This phenomenon can disrupt downstream processes that rely on consistent model behavior.

Methods

The core of the proposed solution, Margin Preserving Training (MPT), has two main components:

  1. Margin-Calibrated Softmax Cross-Entropy Loss: To preserve the decision margins of previously learned classes, the authors introduce a positive logit bias specifically for newly introduced classes. This bias effectively "tilts" the decision boundary, making it easier for the model to maintain correct classifications for the old classes. However, this can lead to underfitting on new classes.
  2. Double-Source Focal Distillation: To counteract the potential underfitting of new classes caused by the margin calibration, MPT employs a distillation strategy. It distills knowledge from two sources:
  3. The old model (to preserve its correct behavior on original categories).
  4. A new reference model trained from scratch on all classes with standard cross-entropy (to provide reliable guidance for new classes). This double-source distillation, combined with a focal loss mechanism, helps balance the learning process, ensuring good performance on both old and new classes without sacrificing the preserved margins.

Datasets

The authors evaluated their approach on two standard image classification benchmarks:

  • CIFAR100: A dataset with 100 classes.
  • ImageNet1K: A larger dataset with 1000 classes.

They also used CIFAR10 for qualitative analysis. For their experiments, they followed a common practice of splitting the classes: a subset (Yold) was used to train the initial "old model," and the full set (Yall) was used to train the updated "new model."

Key Insights and Ideas

  • Negative flips are a margin problem: The paper strongly links negative flips to the shrinking of decision margins, especially when new classes are added. This provides a clear theoretical basis for their margin-preserving approach.
  • Balancing old and new is key: Simply preserving old margins can hurt new class performance, and vice-versa. The paper highlights the necessity of a dual approach that explicitly addresses both.
  • Distillation can be a two-way street: Using both the old model and a new reference model for distillation is more effective than relying on a single source, especially for mitigating negative flips while improving overall accuracy.
  • Logit bias as a tunable knob: The introduced logit bias offers a controllable way to manage the trade-off between preserving old class performance and learning new classes.

Key Results

The proposed MPT methods (MPT-KL and MPT-LM) consistently outperformed existing baselines on CIFAR100 and ImageNet1K.

  • Reduced Negative Flips: MPT significantly reduced the Negative Flip Rate (NFR) and Relative Negative Flip Rate (Rel-NFR) compared to methods like PCT and ELODI. For instance, on ImageNet1K, MPT-KL achieved an NFR of 6.09% and Rel-NFR of 33.15%, compared to ELODI's 7.61% and 37.46%.
  • Competitive Accuracy: Despite reducing negative flips, MPT maintained competitive error rates (ER) on both old (Yold) and all (Yall) classes, indicating that the margin preservation did not come at a significant cost to overall performance.
  • Qualitative Improvements: Visualizations of embedding spaces on CIFAR10 showed that MPT effectively preserves the compact clusters of old classes while also integrating new classes without excessive overlap, unlike other methods.

Limitations and Future Work

  • Computational Overhead: The method requires training an additional reference model, which modestly increases computational demands compared to single-model approaches. However, it's noted as being less demanding than typical ensemble methods.
  • Hyperparameter Tuning: The performance of MPT is sensitive to the margin bias parameter (k), requiring empirical optimization for different datasets and scenarios.

The authors suggest that future work could explore more efficient ways to integrate margin preservation and distillation, potentially reducing the computational burden.

Summary updated

BibTeX
@inproceedings{ricci2026mitigating,
  author = {Simone Ricci and Niccolò Biondi and Federico Pernici and Alberto Del Bimbo},
  title = {{Mitigating Negative Flips via Margin Preserving Training}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i11.37825},
}
Figure