arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.01479cs.CLcs.AI
收藏

Align-to-Distill:用于神经机器翻译知识蒸馏的可训练注意力对齐

Align-to-Distill: Trainable Attention Alignment for Knowledge Distillation in Neural Machine Translation

NC Research, AI Tech Center(NC Research AI技术中心);NCsoft

Heegon Jin, Seonil Son, Jemin Park, Youngseok Kim, Hyungjong Noh, Yeonsoo Lee

AI总结:

本文提出Align-to-Distill (A2D) 策略,通过在训练中自适应对齐学生与教师模型的注意力头,将启发式映射转化为学习问题,有效提升了神经机器翻译中知识蒸馏的性能。

摘要:

可扩展深度模型和大型数据集的出现提升了神经机器翻译的性能。知识蒸馏通过将知识从教师模型转移到更紧凑的学生模型来提高效率。然而,针对Transformer架构的KD方法通常依赖启发式策略,特别是在决定从哪些教师层进行蒸馏时。本文提出了'Align-to-Distill' (A2D) 策略,旨在通过在训练过程中自适应地将学生注意力头与其对应的教师注意力头对齐,来解决特征映射问题。A2D中的注意力对齐模块在跨层的学生和教师注意力头之间执行逐头密集比较,将组合映射启发式转化为学习问题。实验表明了A2D的有效性,与Transformer基线相比,在WMT-2022 De->Dsb和WMT-2014 En->De上分别获得了高达+3.61和+0.63 BLEU点的提升。

英文摘要:

The advent of scalable deep models and large datasets has improved the performance of Neural Machine Translation. Knowledge Distillation (KD) enhances efficiency by transferring knowledge from a teacher model to a more compact student model. However, KD approaches to Transformer architecture often rely on heuristics, particularly when deciding which teacher layers to distill from. In this paper, we introduce the 'Align-to-Distill' (A2D) strategy, designed to address the feature mapping problem by adaptively aligning student attention heads with their teacher counterparts during training. The Attention Alignment Module in A2D performs a dense head-by-head comparison between student and teacher attention heads across layers, turning the combinatorial mapping heuristics into a learning problem. Our experiments show the efficacy of A2D, demonstrating gains of up to +3.61 and +0.63 BLEU points for WMT-2022 De->Dsb and WMT-2014 En->De, respectively, compared to Transformer baselines.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑