[论文解读] Distilling Knowledge for Search-based Structured Prediction
本文提出从基于搜索的结构化预测模型集成中进行知识蒸馏,以提升单模型性能。通过在训练过程中模仿集成模型在参考状态和探索状态下的预测结果,蒸馏后的模型实现了最先进性能——在依存句法分析和机器翻译任务上,相比强基线模型,LAS提升1.32,BLEU提升2.65。
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.
研究动机与目标
- 解决基于搜索的结构化预测的局限性,包括参考策略模糊和训练与推理之间分布偏移的问题。
- 通过利用使用不同随机初始化训练的多个模型集成的知识,提升单模型结构化预测的泛化能力与鲁棒性。
- 通过整合在搜索空间探索过程中遇到的状态的知识,缓解训练与推理之间的差异。
- 开发一个统一的蒸馏框架,结合来自参考状态和探索状态的知识,以提升模型性能。
提出的方法
- 训练多个使用不同随机初始化的模型,形成教师模型集成。
- 通过在监督训练期间匹配教师集成在参考状态上的预测动作分布,实现知识蒸馏。
- 利用教师集成在搜索空间中执行随机探索,并收集所遇到的非参考状态的动作分布。
- 结合两种蒸馏损失:一种来自参考状态(使用交叉熵),另一种来自探索状态(知识蒸馏),由超参数α加权。
- 使用NLL损失在参考动作上的负对数似然与教师输出的蒸馏损失的加权组合来优化学生模型。
- 引入超参数α以平衡NLL损失与蒸馏损失的贡献,消融实验表明在句法分析中α=1时性能最佳,在翻译任务中α=0.8时最优。
实验结果
研究问题
- RQ1从集成中进行知识蒸馏是否能提升单个基于搜索的结构化预测模型的性能?
- RQ2结合来自参考状态和探索状态的知识是否能带来比仅使用参考状态更好的泛化性能?
- RQ3NLL损失与蒸馏损失之间的平衡如何影响模型性能,最优权衡是什么?
- RQ4从集成中进行知识蒸馏是否能带来更稳定的训练过程并降低不同随机种子下的方差?
主要发现
- 与强基线相比,蒸馏模型在Stanford PTB依存句法分析数据集上的LAS绝对提升1.32。
- 在IWSLT 2014神经机器翻译基准上,蒸馏模型相比强基线BLEU分数提升2.65分。
- 该模型优于先前文献中报道的贪心结构化预测方法,证明了蒸馏优于贪心解码的有效性。
- 消融研究显示,在句法分析中设置α=1(完全依赖蒸馏损失)时性能最佳,而在机器翻译任务中α=0.8为最优。
- 蒸馏模型在不同随机种子下的方差显著降低,PTB测试集的标准差为0.09,IWSLT 2014测试集为0.12,而基线模型分别为0.17和0.55。
- 训练稳定性的提升归因于蒸馏损失促进模型收敛至更平坦的极小值,从而具有更好的泛化能力。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。