Skip to main content
QUICK REVIEW

[Paper Review] Distilling Knowledge for Search-based Structured Prediction

Yijia Liu, Wanxiang Che|arXiv (Cornell University)|May 29, 2018
Topic ModelingComputer Science33 references4 citations
TL;DR

This paper proposes knowledge distillation from an ensemble of search-based structured prediction models to improve single-model performance. By mimicking the ensemble’s predictions on both reference states and exploration states during training, the distilled model achieves state-of-the-art results—improving LAS by 1.32 and BLEU by 2.65 over strong baselines on dependency parsing and machine translation tasks.

ABSTRACT

Many natural language processing tasks can be modeled into structured prediction and solved as a search problem. In this paper, we distill an ensemble of multiple models trained with different initialization into a single model. In addition to learning to match the ensemble's probability output on the reference states, we also use the ensemble to explore the search space and learn from the encountered states in the exploration. Experimental results on two typical search-based structured prediction tasks -- transition-based dependency parsing and neural machine translation show that distillation can effectively improve the single model's performance and the final model achieves improvements of 1.32 in LAS and 2.65 in BLEU score on these two tasks respectively over strong baselines and it outperforms the greedy structured prediction models in previous literatures.

Motivation & Objective

  • Address the limitations of search-based structured prediction, including ambiguous reference policies and distributional shift between training and inference.
  • Improve generalization and robustness of single-model structured prediction by leveraging knowledge from an ensemble of models trained with different random initializations.
  • Mitigate the discrepancy between training and inference by incorporating knowledge from states encountered during exploration of the search space.
  • Develop a unified distillation framework that combines knowledge from both reference and exploration states to enhance model performance.

Proposed method

  • Train an ensemble of multiple models with different random initializations to serve as the teacher model.
  • Distill knowledge from the ensemble by matching its predicted action distribution on reference states during supervised training.
  • Use the ensemble to perform random exploration of the search space and collect action distributions from encountered non-reference states.
  • Combine two distillation losses: one from reference states (using cross-entropy) and one from exploration states (knowledge distillation), weighted by a hyperparameter α.
  • Optimize the student model using a weighted combination of negative log-likelihood (NLL) loss on reference actions and distillation loss on ensemble outputs.
  • Introduce a hyperparameter α to balance the contribution of NLL loss and distillation loss, with ablation showing optimal performance at α=1 for parsing and α=0.8 for translation.

Experimental results

Research questions

  • RQ1Can knowledge distillation from an ensemble improve the performance of a single search-based structured prediction model?
  • RQ2Does incorporating knowledge from both reference and exploration states lead to better generalization than using only reference states?
  • RQ3How does the balance between NLL loss and distillation loss affect model performance, and what is the optimal trade-off?
  • RQ4Does knowledge distillation from an ensemble lead to more stable training and reduced variance across different random seeds?

Key findings

  • The distilled model achieves a 1.32 absolute improvement in LAS on the Stanford PTB dependency parsing dataset compared to strong baselines.
  • On the IWSLT 2014 neural machine translation benchmark, the distilled model improves BLEU score by 2.65 points over strong baselines.
  • The model outperforms greedy structured prediction approaches reported in prior literature, demonstrating the effectiveness of distillation over greedy decoding.
  • The ablation study shows that setting α=1 (fully relying on distillation loss) yields the best performance on dependency parsing, while α=0.8 is optimal for machine translation.
  • The distilled model exhibits significantly reduced variance across different random seeds, with standard deviation of 0.09 on PTB test and 0.12 on IWSLT 2014 test, compared to 0.17 and 0.55 for the baseline.
  • The improved training stability is attributed to the distillation loss promoting convergence to flatter minimizers, which generalize better.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.