Attention-Guided Answer Distillation for Machine Reading Comprehension
Minghao Hu, Yuxing Peng, Furu Wei, Zhen Huang, Dongsheng Li, Nan Yang, Ming Zhou
TL;DR
Ensemble-based MRC systems achieve high accuracy but are slow and vulnerable to adversarial attacks. The authors propose distilling an ensemble into a single, faster student model and introduce vanilla KD plus two novel distillation variants with joint training to transfer knowledge. The student nearly matches the ensemble on SQuAD with only a 0.4% F1 drop while being roughly 12x faster, and it outperforms the teacher on adversarial SQuAD and NarrativeQA Bleu-1; ablation studies show each distillation component contributes to robustness and efficiency. This work demonstrates that targeted distillation of ensemble knowledge, including attention and answer boundaries, can yield practical, robust MRC systems.
Abstract
Despite that current reading comprehension systems have achieved significant advancements, their promising performances are often obtained at the cost of making an ensemble of numerous models. Besides, existing approaches are also vulnerable to adversarial attacks. This paper tackles these problems by leveraging knowledge distillation, which aims to transfer knowledge from an ensemble model to a single model. We first demonstrate that vanilla knowledge distillation applied to answer span prediction is effective for reading comprehension systems. We then propose two novel approaches that not only penalize the prediction on confusing answers but also guide the training with alignment information distilled from the ensemble. Experiments show that our best student model has only a slight drop of 0.4% F1 on the SQuAD test set compared to the ensemble teacher, while running 12x faster during inference. It even outperforms the teacher on adversarial SQuAD datasets and NarrativeQA benchmark.
