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
Modern supervised learning often supplements standard "hard" labels with auxiliary signals to improve generalization. Common examples include Knowledge Distillation (KD), where a student mimics a teacher model, and weak supervision, where heuristic rules provide additional labels. Traditionally, these losses are combined using a fixed, global weight ($\lambda$). However, this "one-size-fits-all" approach fails when auxiliary signals are inconsistent—such as an overfit teacher providing misleading soft labels or a labeling rule that is only accurate for specific data subsets.
We introduce AMAL (Adaptive Mixing of Auxiliary Losses), a meta-learning framework that automatically determines instance-specific mixing weights. By treating these weights as hyperparameters optimized via a bi-level objective, AMAL learns how much to trust auxiliary information for every individual training point.
Methodology
AMAL employs a bi-level optimization strategy to learn optimal mixing weights ($\Lambda$):
- Inner Loop: Model parameters ($\theta$) are updated on the training set using a weighted combination of the primary and auxiliary losses.
- Outer Loop: Mixing weights are updated based on model performance on a clean validation set. If increasing the weight of an auxiliary loss for a specific sample improves validation performance, that weight is increased.
To ensure computational efficiency in deep learning contexts, AMAL utilizes two key optimizations: computing gradients only for the final layer during meta-updates and performing periodic updates (every $L$ epochs) rather than at every step.
Experimental Results
The efficacy of AMAL was evaluated across image classification (CIFAR-100, Stanford Cars), knowledge distillation under noise, and weak supervision tasks (YouTube, SMS, IMDB).
As shown in the figure above, AMAL consistently outperforms standard KD across various teacher architectures (ResNet110 and ResNet20). Notably, AMAL's performance exceeds that of KD regardless of the fixed $\lambda$ value chosen for the baseline, demonstrating the advantage of instance-specific adaptation. In scenarios with high label noise (60%), AMAL maintained significantly higher accuracy (~48%) compared to standard KD (~32%).
Analysis and Insights
A key strength of AMAL is its ability to act as an "Overconfident Teacher" filter. When a teacher model overfits to noise, AMAL detects that its soft labels do not improve validation performance and automatically downweights them for those specific samples.
The histogram above illustrates this adaptive behavior. In experiments with injected noise, AMAL learns to differentiate between clean and noisy points, effectively ignoring corrupted "ground truth" labels in favor of more reliable signals. This mechanism also helps bridge the "capacity gap" in KD, where a much larger teacher might otherwise overwhelm a smaller student with irrelevant complexity.
Conclusion
AMAL provides a principled, automated way to integrate auxiliary losses in supervised learning. While it requires a clean validation set, its ability to handle noisy data and varying model capacities makes it a robust alternative to fixed-weight loss combinations. Future work includes extending this framework to non-classification tasks such as regression and object detection.
Summary updated