Integrating Vectorized Lexical Constraints for Neural Machine Translation
Abstract
Lexically constrained neural machine translation (NMT), which controls the generation of NMT models with pre-specified constraints, is important in many practical scenarios. Due to the representation gap between discrete constraints and continuous vectors in NMT models, most existing works choose to construct synthetic data or modify the decoding algorithm to impose lexical constraints, treating the NMT model as a black box. In this work, we propose to open this black box by directly integrating the constraints into NMT models. Specifically, we vectorize source and target constraints into continuous keys and values, which can be utilized by the attention modules of NMT models. The proposed integration method is based on the assumption that the correspondence between keys and values in attention modules is naturally suitable for modeling constraint pairs. Experimental results show that our method consistently outperforms several representative baselines on four language pairs, demonstrating the superiority of integrating vectorized lexical constraints. 1
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.
5 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
- A Plug-and-Play Method for Controlled Text Generation cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- An Extensible Plug-and-Play Method for Multi-Aspect Controllable Text Generation cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Leveraging Loanword Constraints for Improving Machine Translation in a Low-Resource Multilingual Context cites Understanding and Improving the Robustness of Terminology Constraints in Neural Machine Translation
- A Template-based Method for Constrained Neural Machine Translation cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Locate-and-Focus: Enhancing Terminology Translation in Speech Language Models cites Understanding and Improving the Robustness of Terminology Constraints in Neural Machine Translation
Cited by top-tier papers5
- A Template-based Method for Constrained Neural Machine TranslationShuo Wang, Peng Li, Zhixing Tan, Zhaopeng Tu et al.EMNLP 2022 · 14 citations
- An Extensible Plug-and-Play Method for Multi-Aspect Controllable Text GenerationXuancheng Huang, Zijun Liu, Peng Li, Tao Li et al.ACL 2023 · 4 citations
- Locate-and-Focus: Enhancing Terminology Translation in Speech Language ModelsSuhang Wu, Jialong Tang, Chengyi Yang, Pei Zhang et al.ACL 2025 · 4 citations
- Understanding and Improving the Robustness of Terminology Constraints in Neural Machine TranslationHuaao Zhang, Qiang Wang, Bo Qin, Zelin Shi et al.ACL 2023 · 2 citations
- Leveraging Loanword Constraints for Improving Machine Translation in a Low-Resource Multilingual ContextFelermino D. M. A. Ali, Henrique Lopes Cardoso, Rui Sousa-SilvaEMNLP 2025
Builds on8
- Plug and Play Language Models: A Simple Approach to Controlled Text GenerationSumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung et al.ICLR 2020 · 1,166 citations
- Order-Agnostic Cross Entropy for Non-Autoregressive Machine TranslationCunxiao Du, Zhaopeng Tu, Jing JiangICML 2021 · 93 citations
- A Plug-and-Play Method for Controlled Text GenerationDamian Pascual, Beni Egressy, Clara Meister, Ryan Cotterell et al.EMNLP Findings 2021 · 67 citations
- On the Inference Calibration of Neural Machine TranslationShuo Wang, Zhaopeng Tu, Shuming Shi, Yang LiuACL 2020 · 66 citations
- Accurate Word Alignment Induction from Neural Machine TranslationYun Chen, Yang Liu, Guanhua Chen, Xin Jiang et al.EMNLP 2020 · 56 citations
Related papers
- Alignment-Enhanced Transformer for Constraining NMT with Pre-Specified TranslationsKai Song, Kun Wang, Heng Yu, Yue Zhang et al.AAAI 2020 · 49 citations
- Disambiguated Lexically Constrained Neural Machine TranslationJinpeng Zhang, Nini Xiao, Ke Wang, Chuanqi Dong et al.ACL Findings 2023 · 1 citation
- Encouraging Neural Machine Translation to Satisfy Terminology ConstraintsMelissa Ailem, Jingshu Liu, Raheel QaderACL Findings 2021 · 15 citations
- Lexically Constrained Neural Machine Translation with Explicit Alignment GuidanceGuanhua Chen, Yun Chen, Victor O. K. LiAAAI 2021 · 29 citations
- Modeling Concentrated Cross-Attention for Neural Machine Translation with Gaussian Mixture ModelShaolei Zhang, Yang FengEMNLP Findings 2021 · 12 citations
