[Paper Review] Model Compression with Multi-Task Knowledge Distillation for Web-scale Question Answering System
This paper proposes Multi-task Knowledge Distillation (MKDM) to compress large pre-trained models like BERT for web-scale question answering, enabling faster inference without sacrificing performance. By jointly distilling knowledge from multiple teacher models into a single lightweight student model, MKDM improves generalization and reduces overfitting, achieving performance comparable to or exceeding the original teacher models, especially when combined with a two-stage pre-training strategy on massive unlabeled data.
Deep pre-training and fine-tuning models (like BERT, OpenAI GPT) have demonstrated excellent results in question answering areas. However, due to the sheer amount of model parameters, the inference speed of these models is very slow. How to apply these complex models to real business scenarios becomes a challenging but practical problem. Previous works often leverage model compression approaches to resolve this problem. However, these methods usually induce information loss during the model compression procedure, leading to incomparable results between compressed model and the original model. To tackle this challenge, we propose a Multi-task Knowledge Distillation Model (MKDM for short) for web-scale Question Answering system, by distilling knowledge from multiple teacher models to a light-weight student model. In this way, more generalized knowledge can be transferred. The experiment results show that our method can significantly outperform the baseline methods and even achieve comparable results with the original teacher models, along with significant speedup of model inference.
Motivation & Objective
- To address the challenge of slow inference in large pre-trained models (e.g., BERT) used in real-world web-scale question answering systems.
- To reduce performance degradation during model compression by minimizing information loss from knowledge distillation.
- To improve generalization and reduce overfitting bias in distilled student models through multi-teacher knowledge fusion.
- To explore the effectiveness of two-stage training—pre-training on unlabeled data followed by fine-tuning with labeled data—using multi-task distillation.
- To develop a scalable, efficient, and high-performing student model suitable for low-latency online inference in production environments.
Proposed method
- Design a multi-task learning framework where a single student model jointly learns from soft labels produced by multiple pre-trained teacher models (e.g., BERT-base, BERT-large).
- Formulate a joint loss function combining knowledge distillation loss (from teacher soft labels) and cross-entropy loss (from golden labels), weighted by a hyperparameter α.
- Introduce a Two-Stage Multi-task Knowledge Distillation Model (TS-MKDM) that first pre-trains the student on large-scale unlabeled data using soft labels from multiple teachers.
- Then, fine-tune the student model using both soft labels and golden labels on a smaller labeled dataset, enhancing performance through iterative knowledge refinement.
- Leverage the complementary knowledge from diverse teacher models to improve the student’s generalization and robustness.
- Optimize the loss weighting ratio α to balance knowledge distillation and supervised learning, with ablation studies showing optimal performance at α=0.9.
Experimental results
Research questions
- RQ1Can multi-teacher knowledge distillation improve the generalization and performance of compressed student models in web-scale question answering?
- RQ2Does jointly learning from multiple teacher models reduce overfitting bias compared to single-teacher distillation?
- RQ3Can pre-training the student model on large-scale unlabeled data using multi-teacher soft labels further boost performance?
- RQ4Does the proposed two-stage training strategy (pre-training + fine-tuning) enable the student model to surpass the performance of the original teacher models?
- RQ5What is the optimal trade-off between knowledge distillation and supervised learning loss (i.e., the value of α) in the multi-task framework?
Key findings
- The MKDM model outperforms baseline distillation methods, achieving 77.18% accuracy and 85.14% AUC on the CommQA-Labeled dataset, significantly improving over single-teacher baselines.
- The two-stage TS-MKDM approach achieves 79.22% accuracy and 87.50% AUC on the same dataset, exceeding the original BERT model (77.00% accuracy, 86.50% AUC).
- When α=0.9, the model achieves the best performance (77.18% accuracy, 85.14% AUC), indicating that balancing soft label and golden label supervision is critical.
- Performance drops when α=1.0 (only soft labels), proving that golden labels are essential for comprehensive knowledge acquisition.
- The TS-MKDM model demonstrates that pre-training on 100 million unlabeled QA pairs significantly boosts performance, enabling the student to surpass the teacher model in AUC and accuracy.
- The results confirm that multi-teacher distillation with joint optimization reduces overfitting and enhances generalization, especially in low-resource or high-variability settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.