Adaptive Mixing of Auxiliary Losses in Supervised Learning

Durga Sivasubramanian, Ayush Maheshwari, Prathosh Ap, Pradeep Shenoy, Ganesh Ramakrishnan

TL;DR

This paper introduces AMAL, a novel meta-learning approach that adaptively mixes different supervised learning objectives on a per-instance basis. AMAL learns instance-specific weights to optimally combine primary and auxiliary losses, leading to improved performance in knowledge distillation and rule-denoising tasks.

What Problem Does This Paper Address?

Supervised learning often benefits from incorporating auxiliary information or constraints, such as knowledge distillation (mimicking a teacher model's outputs) or rule-based approaches (using noisy labeling functions). However, a key challenge is how to optimally combine these complementary objectives, especially when they might provide conflicting signals for different data points. Simply averaging or uniformly weighting these losses can lead to suboptimal performance, particularly when there's a significant mismatch in model capacities (teacher vs. student) or when dealing with noisy labels. This paper addresses the problem of learning the best way to blend these diverse loss signals for each individual data point.

Methods

The core of AMAL is a bi-level optimization framework. The "inner level" aims to learn the model parameters ($\theta$) by minimizing a combined loss function where the mixing weights ($\lambda$) are fixed. The "outer level" then learns these instance-specific mixing weights ($\lambda$) by optimizing a validation metric (e.g., cross-entropy loss on a validation set) with respect to the model parameters obtained from the inner level.

To make this computationally feasible, AMAL employs a meta-learning approach. It iteratively updates the model parameters and the instance-specific mixing weights. Specifically, it uses a one-step look-ahead update for the model parameters and a meta-gradient to update the mixing weights. To further improve efficiency, AMAL suggests using only the last-layer gradients and updating the mixing weights less frequently (e.g., every few epochs).

Datasets

The paper evaluates AMAL on several standard datasets:

  • CIFAR100: Used for knowledge distillation experiments, including scenarios with injected label noise.
  • Stanford Cars: Used for knowledge distillation with Wide Residual Networks.
  • FGVC-Aircraft: Used for knowledge distillation with Wide Residual Networks.
  • YouTube, SMS, IMDB: Used for the rule-denoising and limited supervision scenario.

The authors do not introduce new benchmarks but rather apply their method to existing ones to demonstrate its effectiveness.

Key Insights and Ideas

  • Instance-specific mixing is crucial: The paper's central insight is that the optimal way to combine different loss functions can vary significantly from one data point to another. This is particularly true when dealing with noisy labels or large capacity gaps between models.
  • AMAL can identify noisy data: In the presence of label noise, AMAL learns to down-weight the primary supervised loss (which is likely noisy) and up-weight the auxiliary loss (e.g., knowledge distillation) for those noisy instances, effectively leveraging the teacher model's information.
  • Adaptive mixing outperforms fixed strategies: AMAL consistently shows gains over methods that use fixed weighting schemes or rely on separate models for knowledge transfer (like TAKD and DGKD), suggesting that dynamic, instance-level adaptation is key.
  • Efficiency matters: The proposed optimizations (last-layer gradients, infrequent weight updates) make AMAL practical for real-world applications without significant computational overhead.

Key Results

  • Knowledge Distillation: AMAL consistently outperforms standard KD, TAKD, DGKD, and SSKD, especially in scenarios with a large gap between teacher and student model capacities. For instance, on CIFAR100 with a ResNet110 teacher and ResNet8 student, AMAL achieved the best performance.
  • Knowledge Distillation with Noise: AMAL demonstrated superior performance compared to Superloss and CRUST when training on CIFAR100 datasets corrupted with 40% and 60% label noise. It achieved test accuracies of 46.31% and 46.28% respectively, outperforming other methods.
  • Rule-Denoising with Limited Supervision: AMAL achieved significant gains (2-5%) over baseline methods like Only-L, L2R, MWN, and SPEAR on YouTube, SMS, and IMDB datasets. Notably, it outperformed SPEAR, which has the same objective function but fixed weights.

Limitations and Future Work

  • Computational Overhead: While the paper proposes optimizations, bi-level optimization inherently involves more computation than standard single-level optimization. The authors acknowledge this and suggest further efficiency improvements.
  • Generalizability of Meta-Learning: The meta-learning approach for learning weights might be sensitive to the choice of validation set and hyperparameters.
  • Future Work: The authors suggest extending AMAL to more complex scenarios, such as multi-task learning and few-shot learning, where adaptive loss mixing could offer further benefits. They also hint at exploring the theoretical convergence properties of their method.

Summary updated

BibTeX
@inproceedings{sivasubramanian2023adaptive,
  author = {Durga Sivasubramanian and Ayush Maheshwari and Prathosh AP and Pradeep Shenoy and Ganesh Ramakrishnan},
  title = {{Adaptive Mixing of Auxiliary Losses in Supervised Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i8.26176},
}
Figure