Exploring All-In-One Knowledge Distillation Framework for Neural Machine Translation
Zhongjian Miao, Wen Zhang, Jinsong Su, Xiang Li, Jian Luan, Yidong Chen, Bin Wang, Min Zhang
Abstract
Conventional knowledge distillation (KD) approaches are commonly employed to compress neural machine translation (NMT) models. However, they only obtain one lightweight student each time. Consequently, we have to conduct KD multiple times when different students are required at the same time, which could be resource-intensive. Additionally, these students are individually optimized, and thus lack interactions with each other, leading to their potential not being fully exerted. In this work, we propose a novel All-In-One Knowledge Distillation (AIO-KD) framework for NMT, which generates multiple satisfactory students at once. Under AIO-KD, we first randomly extract fewer-layer subnetworks from the teacher as the sample students. Then, we jointly optimize the teacher and these students, where the students simultaneously learn the knowledge from the teacher and interact with other students via mutual learning. When utilized, we re-extract the candidate students, satisfying the specifications of various devices. Particularly, we adopt carefully-designed strategies for AIO-KD: 1) we dynamically detach gradients to prevent poorly-performed students from negatively affecting the teacher during the knowledge transfer, which could subsequently impact other students; 2) we design a twostage mutual learning strategy, which alleviates the negative impacts of poorly-performed students on the early-stage student interactions. Extensive experiments and in-depth analyses on three benchmarks demonstrate the effectiveness and eco-friendliness of AIO-KD. Our source code is available at https://github. com/DeepLearnXMU/AIO-KD .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
2 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- TinyBERT: Distilling BERT for Natural Language Understanding cites MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformers
- TinyBERT: Distilling BERT for Natural Language Understanding cites Reducing Transformer Depth on Demand with Structured Dropout
- TinyBERT: Distilling BERT for Natural Language Understanding cites DynaBERT: Dynamic BERT with Adaptive Width and Depth
- DynaBERT: Dynamic BERT with Adaptive Width and Depth cites TinyBERT: Distilling BERT for Natural Language Understanding
- Mitigating Catastrophic Forgetting in Large Language Models with Self-Synthesized Rehearsal cites Response Enhanced Semi-supervised Dialogue Query Generation
- DynaBERT: Dynamic BERT with Adaptive Width and Depth cites Reducing Transformer Depth on Demand with Structured Dropout
- DynaBERT: Dynamic BERT with Adaptive Width and Depth cites Once-for-All: Train One Network and Specialize it for Efficient Deployment
Cited by top-tier papers2
- Mitigating Catastrophic Forgetting in Large Language Models with Self-Synthesized RehearsalJianheng Huang, Leyang Cui, Ante Wang, Chengyi Yang et al.ACL 2024 · 13 citations
- Response Enhanced Semi-supervised Dialogue Query GenerationJianheng Huang, Ante Wang, Linfeng Gao, Linfeng Song et al.AAAI 2024 · 5 citations
Builds on19
- MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained TransformersWenhui Wang, Furu Wei, Li Dong, Hangbo Bao et al.NeurIPS 2020 · 2,727 citations
- TinyBERT: Distilling BERT for Natural Language UnderstandingXiaoqi Jiao, Yichun Yin, Lifeng Shang, Xin Jiang et al.EMNLP Findings 2020 · 1,787 citations
- Once-for-All: Train One Network and Specialize it for Efficient DeploymentHan Cai, Chuang Gan, Tianzhe Wang, Zhekai Zhang et al.ICLR 2020 · 1,522 citations
- Reducing Transformer Depth on Demand with Structured DropoutAngela Fan, Edouard Grave, Armand JoulinICLR 2020 · 695 citations
- DynaBERT: Dynamic BERT with Adaptive Width and DepthLu Hou, Zhiqi Huang, Lifeng Shang, Xin Jiang et al.NeurIPS 2020 · 401 citations
Related papers
- Learning Light-Weight Translation Models from Deep TransformerBei Li, Ziyang Wang, Hui Liu, Quan Du et al.AAAI 2021 · 44 citations
- Learn From One Specialized Sub-Teacher: One-to-One Mapping for Feature-Based Knowledge DistillationKhouloud Saadi, Jelena Mitrovic, Michael GranitzerEMNLP Findings 2023 · 3 citations
- Towards Understanding and Improving Knowledge Distillation for Neural Machine TranslationSongming Zhang, Yunlong Liang, Shuaibo Wang, Yufeng Chen et al.ACL 2023 · 8 citations
- A Self-Distillation Recipe for Neural Machine TranslationHongfei Xu, Zhuofei Liang, Qiuhui Liu, Lingling MuACL Findings 2025
- Multilingual Neural Machine Translation: Can Linguistic Hierarchies Help?Fahimeh Saleh, Wray L. Buntine, Gholamreza Haffari, Lan DuEMNLP Findings 2021 · 4 citations
