Abstract
Knowledge Amalgamation (KA) aims to train a single versatile student model by merging knowledge from multiple specialized teacher models using only unlabeled data. A primary challenge in KA is the overconfidence of Pre-trained Language Models (PLMs), which often produce high-probability scores for out-of-distribution data. We present Model Uncertainty-aware Knowledge Amalgamation (MUKA), a framework that utilizes Monte-Carlo Dropout to estimate teacher uncertainty. By identifying the most reliable teacher for each unlabeled instance and applying instance re-weighting, MUKA significantly outperforms traditional distillation and amalgamation methods, achieving performance close to supervised upper bounds.
Introduction
The rapid advancement of NLP has produced numerous specialized Pre-trained Language Models (PLMs) fine-tuned for specific tasks. However, creating a model capable of handling the union of multiple label sets typically requires expensive retraining from scratch. While Knowledge Distillation (KD) compresses models within the same label space, Knowledge Amalgamation (KA) seeks to synthesize a "versatile student" from multiple "specialized teachers" without human-labeled data. The critical hurdle is determining which teacher to trust for a given unlabeled input, as standard PLMs are notoriously overconfident on data outside their training distribution.
Methodology: The MUKA Framework
MUKA addresses teacher overconfidence through a robust uncertainty estimation and supervision construction process.
Uncertainty Estimation via Monte-Carlo Dropout
Instead of relying on a single forward pass, MUKA employs Monte-Carlo (MC) Dropout. By performing multiple stochastic forward passes through each teacher model, the framework calculates predictive entropy. High variance across these passes indicates high model uncertainty, signaling that the instance likely falls outside the teacher's specialized domain. This approach acts as a "sanity check," revealing when a model is guessing rather than asserting expertise.
Supervision Construction
MUKA offers two primary strategies for supervision:
- MUKA-Hard: Selects the prediction from the teacher with the lowest estimated uncertainty as the target.
- MUKA-Soft: Constructs a weighted average of predictions from all teachers, where weights are inversely proportional to their relative uncertainty levels.
Instance Re-weighting
To mitigate the impact of ambiguous or noisy signals, MUKA incorporates an instance re-weighting mechanism. If the "uncertainty margin" between the top two teachers is narrow, the instance is considered confusing and its contribution to the loss function is down-weighted during training to prevent the student from learning from noisy signals.
Experimental Results
The framework was evaluated across four benchmarks: AG News, Google Snippets, 5Abstracts Group, and THUCNews. To simulate the KA setting, labels were split into disjoint sets for different teachers, and the student was tasked with learning the full union.
As shown in the results table, MUKA variants consistently outperform existing baselines like UHC and DFA. Notably, on the THUCNews dataset, MUKA-Hard achieved an accuracy of 97.2%, nearly matching the supervised performance of 97.8%. On average, MUKA outperformed the best-performing baselines by 5.75 percentage points across all datasets.
Discussion and Conclusion
MUKA demonstrates that model uncertainty is a superior metric for teacher selection compared to vanilla confidence scores. The framework is versatile, supporting different model architectures and even cross-lingual knowledge transfer (e.g., merging English and Chinese teachers). However, challenges remain in distinguishing between highly similar classes, such as "Estate" and "Finance." Furthermore, as student models inherit knowledge from pre-trained teachers, future work must address the potential propagation of social biases within the amalgamation process to ensure the resulting versatile student is both accurate and fair.
Summary updated