Abstract
In several supervised learning scenarios, auxiliary losses are used in order to introduce additional information or constraints into the supervised learning objective. For instance, knowledge distillation aims to mimic outputs of a powerful teacher model; similarly, in rule-based approaches, weak labeling information is provided by labeling functions which may be noisy rule-based approximations to true labels. We tackle the problem of learning to combine these losses in a principled manner. Our proposal, AMAL, uses a bi-level optimization criterion on validation data to learn optimal mixing weights, at an instance level, over the training data. We describe a meta-learning approach towards solving this bi-level objective and show how it can be applied to different scenarios in supervised learning. Experiments in a number of knowledge distillation and rule-denoising domains show that AMAL provides noticeable gains over competitive baselines in those domains. We empirically analyze our method and share insights into the mechanisms through which it provides performance gains.
Introduction
Supervised learning typically relies on large, accurately annotated datasets. To mitigate the cost of labeling, researchers often introduce auxiliary sources of information, such as Knowledge Distillation (KD) from a pre-trained teacher model or weak supervision from programmatic labeling functions.
The central challenge lies in how to combine these auxiliary objectives with the primary supervised learning objective. Traditional methods use fixed, global weights, which are often suboptimal—especially when training labels are noisy or when a teacher model is overconfident. We propose AMAL (Adaptive Mixing of Auxiliary Losses), a meta-learning framework that dynamically learns instance-specific mixing weights to optimize performance guided by a small, clean validation set.
Methodology
AMAL frames the weight-learning problem as a bi-level optimization task:
- Inner Loop (Model Training): The model parameters are updated using training data, guided by current instance-specific loss weights ($\lambda$).
- Outer Loop (Weight Updating): The instance-specific weights are updated so that the model achieves the lowest possible standard cross-entropy loss on a separate, clean validation set.
To ensure computational efficiency, AMAL utilizes meta-gradients from only the network's last layer and performs weight updates periodically (e.g., every 10 epochs) rather than at every training step. This makes the overhead of bi-level optimization practically negligible.
Key Results and Performance
AMAL was evaluated across diverse scenarios, including Knowledge Distillation on CIFAR100 and rule-denoising on datasets like YouTube and IMDB.
Superiority in Knowledge Distillation
AMAL consistently outperforms state-of-the-art KD methods, particularly as the "capacity gap" between teacher and student models grows. While standard KD performance often degrades at high compression ratios, AMAL maintains high accuracy by dynamically adjusting the teacher's influence.
Robustness to Label Noise
In experiments with heavily corrupted labels (up to 60% noise), AMAL significantly outperformed specialized robust learning baselines. It effectively identifies which signal—the noisy hard label or the teacher's soft prediction—is more reliable for each specific training instance.
Analysis: How AMAL Works
AMAL acts as an automatic noise filter. By analyzing the learned weights, we can see how the model distinguishes between clean and noisy data.
Beyond noise filtering, AMAL provides two additional benefits:
- Bridging the Capacity Gap: It down-weights teacher signals that are too complex for a small student model to mimic, preventing the student from being led astray.
- Checking Teacher Overconfidence: It identifies and ignores instances where the teacher model is highly confident but incorrect, acting as a safeguard against overfitting to teacher errors.
Conclusion
AMAL provides a principled and efficient way to balance multiple, potentially conflicting loss functions. By learning instance-specific weights through meta-learning, it achieves state-of-the-art results in KD and rule-denoising, offering a generalizable tool for complex supervised learning environments where auxiliary information is available.
Summary updated