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

Heegon Jin, Seonil Son, Jemin Park, Youngseok Kim, Hyungjong Noh +1 more
3/3/2024
cs.CLcs.AI

No official code found. Best implementation: ncsoft/Align-to-Distill (6 stars, last commit 2024-04-24).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Official implementation of "Align-to-Distill: Trainable Attention Alignment for Knowledge Distillation in Neural Machine Translation" (LREC-COLING 2024)

61C++, LuaMar 19, 20242 years agoNOASSERTION

Similar Papers

Cite this paper

@article{jin2024aligntodistill,
  title  = {Align-to-Distill: Trainable Attention Alignment for Knowledge Distillation in Neural Machine Translation},
  author = {Heegon Jin and Seonil Son and Jemin Park and Youngseok Kim and Hyungjong Noh and Yeonsoo Lee},
  year   = {2024},
  eprint = {2403.01479},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.01479v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.01479.svg)](https://codeofpaper.com/paper/2403.01479)

Discussion