Integrating Vectorized Lexical Constraints for Neural Machine Translation
Shuo Wang, Zhixing Tan, Yang Liu
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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 1c878c08-6d1e-4514-a656-df7eebfb247fCited 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 on7
- 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
- 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
- Alignment-Enhanced Transformer for Constraining NMT with Pre-Specified TranslationsKai Song, Kun Wang, Heng Yu, Yue Zhang et al.AAAI 2020 · 49 citations
Related papers
- Lexically Constrained Neural Machine Translation with Explicit Alignment GuidanceGuanhua Chen, Yun Chen, Victor O. K. LiAAAI 2021 · 29 citations
- Rule-based Morphological Inflection Improves Neural Terminology TranslationWeijia Xu, Marine CarpuatEMNLP 2021 · 3 citations
- Modeling Consistency Preference via Lexical Chains for Document-level Neural Machine TranslationXinglin Lyu, Junhui Li, Shimin Tao, Hao Yang et al.EMNLP 2022 · 3 citations
- Controlling Machine Translation for Multiple Attributes with Additive InterventionsAndrea Schioppa, David Vilar, Artem Sokolov, Katja FilippovaEMNLP 2021 · 16 citations
- End-to-End Lexically Constrained Machine Translation for Morphologically Rich LanguagesJosef Jon, João Paulo Aires, Dusan Varis, Ondrej BojarACL 2021
