Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translation
Not on the map. Why?
Abstract (arXiv)
The end-to-end nature of neural machine translation (NMT) removes many ways of manually guiding the translation process that were available in older paradigms. Recent work, however, has introduced a new capability: lexically constrained or guided decoding, a modification to beam search that forces the inclusion of pre-specified words and phrases in the output. However, while theoretically sound, existing approaches have computational complexities that are either linear (Hokamp and Liu, 2017) or exponential (Anderson et al., 2017) in the number of constraints. We present a algorithm for lexically constrained decoding with a complexity of O(1) in the number of constraints. We demonstrate the algorithms remarkable ability to properly place these constraints, and use it to explore the shaky relationship between model and BLEU scores. Our implementation is available as part of Sockeye.
Key facts. Cited by 181 papers in the map (data through 7 Oct 2026). First posted on arXiv 18 Apr 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 31; 2022: 34; 2023: 40; 2024: 28; 2025: 22; 2026: 26.
181 papers.
Sort:
By area:
- 2022Survey of Hallucination in Natural Language Generationcited by 2,056
- 2025Accelerating scientific discovery with Co-Scientistcited by 353
- 2023Grammar-Constrained Decoding for Structured NLP Tasks without Finetuningcited by 186
- 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 162
- 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllabilitycited by 162
- 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 153
- 2022Internet-augmented language models through few-shot prompting for open-domain question answeringcited by 131
- 2022Pretrained Language Models for Text Generation: A Surveycited by 121
- 2023Controlled Text Generation with Natural Language Instructionscited by 87
- 2023Dictionary-based Phrase-level Prompting of Large Language Models for Machine Translationcited by 74
- 2023Evaluating Large Language Models on Controlled Generation Taskscited by 73
- 2023Tractable Control for Autoregressive Language Generationcited by 65
38 more
- 2022Gradient-Based Constrained Sampling from Language Modelscited by 64
- 2023Adaptive Machine Translation with Large Language Modelscited by 58
- 2021A Plug-and-Play Method for Controlled Text Generationcited by 55
- 2024Grammar-Aligned Decodingcited by 54
- 2021ProoFVer: Natural Logic Theorem Proving for Fact Verificationcited by 52
- 2023Gotta be SAFE: A New Framework for Molecular Designcited by 45
- 2022LayoutFormer++: Conditional Graphic Layout Generation via Constraint Serialization and Decoding Space Restrictioncited by 43
- 2022Controllable Text Generation with Neurally-Decomposed Oraclecited by 41
- 2024Constrained Decoding for Secure Code Generationcited by 35
- 2021Guided Generation of Cause and Effectcited by 33
- 2022Faithfulness in Natural Language Generation: A Systematic Survey of Analysis, Evaluation and Optimization Methodscited by 27
- 2023Escaping the sentence-level paradigm in machine translationcited by 27
- 2023Denevil: Towards Deciphering and Navigating the Ethical Values of Large Language Models via Instruction Learningcited by 26
- 2021Parallel Refinements for Lexically Constrained Text Generation with BARTcited by 24
- 2023Mixture of Soft Prompts for Controllable Data Generationcited by 23
- 2023Gender Neutralization for an Inclusive Machine Translation: from Theoretical Foundations to Open Challengescited by 22
- 2021Can You Traducir This? Machine Translation for Code-Switched Inputcited by 21
- 2023A Pseudo-Semantic Loss for Autoregressive Models with Logical Constraintscited by 21
- 2021Facilitating Terminology Translation with Target Lemma Annotationscited by 19
- 2022Why is constrained neural language generation particularly challenging?cited by 19
- 2024DeFT: Decoding with Flash Tree-attention for Efficient Tree-structured LLM Inferencecited by 19
- 2021TranSmart: A Practical Interactive Machine Translation Systemcited by 17
- 2023Domain Terminology Integration into Machine Translation: Leveraging Large Language Modelscited by 17
- 2023Chain-of-Dictionary Prompting Elicits Translation in Large Language Modelscited by 16
- 2021On the Evaluation of Machine Translation for Terminology Consistencycited by 15
- 2023Formally Specifying the High-Level Behavior of LLM-Based Agentscited by 15
- 2023Efficient Avoidance of Vulnerabilities in Auto-completed Smart Contract Code Using Vulnerability-constrained Decodingcited by 14
- 2023Rephrase, Augment, Reason: Visual Grounding of Questions for Vision-Language Modelscited by 14
- 2025Constrained Sampling for Language Models Should Be Easy: An MCMC Perspectivecited by 14
- 2022Why Did the Chicken Cross the Road? Rephrasing and Analyzing Ambiguous Questions in VQAcited by 13
- 2025Self-Steering Language Modelscited by 13
- 2021Lexically Aware Semi-Supervised Learning for OCR Post-Correctioncited by 12
- 2022Automatic Song Translation for Tonal Languagescited by 12
- 2024Distilling Text Style Transfer With Self-Explanation From LLMscited by 12
- 2021Continuous Learning in Neural Machine Translation using Bilingual Dictionariescited by 11
- 2023Songs Across Borders: Singable and Controllable Neural Lyric Translationcited by 11
- 2024LexC-Gen: Generating Data for Extremely Low-Resource Languages with Large Language Models and Bilingual Lexiconscited by 11
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunitiescited by 11
50 most cited of 181 All 181 (JSON)
- 2026Making Grid Beam Search Less Greedy30 Sep 2026
- 2026Improving Term Evaluation in Machine Translation: Variation Matters8 Sep 2026
- 2026BlueprintAgent: Constraint-Triggered Targeted Revisits for Simulation-Ready Generation from Scanned Structural Blueprints7 Sep 2026
- 2026From Zero to Hero: An Open LLM Ecosystem for Armenian3 Sep 2026
- 2026Confident but Wrong: A Constrained Decoding Diagnostic for Low-Resource Automatic Post-Editing30 Aug 2026
- 2026Do Language Models Know Their Own Constraints?26 Aug 2026
- 2026CAPO: Constraint-Aware Prompt Optimization for LLM Agents17 Aug 2026
- 2026The Null Token Knows: Reducing Message-Free Hallucination in ASR and NMT16 Aug 2026
- 2026Trie Automata for Constrained Decoding over Large Finite Sets12 Aug 2026
- 2026IFHierBench: Hierarchical Instruction Following for Large Language Models30 Jul 2026
- 2026StageGuard: Physiologically Constrained Sleep Staging25 Jul 2026
- 2026When to Use Extra Context: Evidence-Grounded Terminology Adaptation for Simultaneous Speech Translation20 Jul 2026
38 more
- 2026Imprompt: A Language Framework for Prompt Programming13 Jul 2026
- 2026Real-Time Execution with Autoregressive Policies11 Jun 2026
- 2026Robotics-Inspired Guardrails for Foundation Models in Socially Sensitive Domains19 May 2026
- 2026AI-assisted cultural heritage dissemination: Comparing NMT and glossary-augmented LLM translation in rock art documents14 May 2026
- 2026Primal-Dual Guided Decoding for Constrained Discrete Diffusion10 May 2026
- 2026Exact Regular-Constrained Variable-Order Markov Generation via Sparse Context-State Belief Propagation8 May 2026
- 2026LatticeBridge: Rare-Event Sequential Inference for Faithful Structured Sequence Synthesis22 Apr 2026
- 2026To Know is to Construct: Schema-Constrained Generation for Agent Memory22 Apr 2026
- 2026Compositional Consistency-Guided Decoding for Three-Way Logical Question Answering12 Mar 2026
- 2026Self-hosted Lecture-to-Quiz: Local LLM MCQ Generation with Deterministic Quality Control20 Feb 2026
- 2026Area-Efficient In-Memory Computing for Mixture-of-Experts via Multiplexing and Caching10 Feb 2026
- 2026The Hidden Cost of Structured Generation in LLMs: Draft-Conditioned Constrained Decoding8 Feb 2026
- 2026Adaptive Test-Time Compute Allocation via Learned Heuristics over Categorical Structure3 Feb 2026
- 2026Search-Augmented Masked Diffusion Models for Constrained Generation2 Feb 2026
- 2025SRS-Stories: Vocabulary-constrained multilingual story generation for language learning20 Dec 2025
- 2025Incorporating Structure and Chord Constraints in Symbolic Transformer-based Melodic Harmonization8 Dec 2025
- 2025Solving LLM Repetition Problem in Production: A Comprehensive Study of Multiple Solutions4 Dec 2025
- 2025Lingua Custodi's participation at the WMT 2025 Terminology shared task20 Oct 2025
- 2025Linguistic Nepotism: Trading-off Quality for Language Preference in Multilingual RAG17 Sep 2025
- 2025MedCOD: Enhancing English-to-Spanish Medical Translation of Large Language Models Using Enriched Chain-of-Dictionary Framework31 Aug 2025
- 2025Attention2Probability: Attention-Driven Terminology Probability Estimation for Robust Speech-to-Text System26 Aug 2025
- 2025SLoW: Select Low-frequency Words! Automatic Dictionary Selection for Translation on Large Language Models25 Jul 2025
- 2025Locate-and-Focus: Enhancing Terminology Translation in Speech Language Models24 Jul 2025
- 2025Learning to Translate Ambiguous Terminology by Preference Optimization on Post-Edits4 Jul 2025
- 2025Verifiable Natural Language to Linear Temporal Logic Translation: A Benchmark Dataset and Evaluation Suite1 Jul 2025
- 2025Constrained Sampling for Language Models Should Be Easy: An MCMC Perspective6 Jun 2025
- 2025Large Language Model Meets Constraint Propagation29 May 2025
- 2025Gatsby Without the 'E': Crafting Lipograms with LLMs26 May 2025
- 2025Visually Guided Decoding: Gradient-Free Hard Prompt Inversion with Language Models13 May 2025
- 2025Semantic Probabilistic Control of Language Models4 May 2025
- 2025Efficient and Asymptotically Unbiased Constrained Decoding for Large Language Models12 Apr 2025
- 2025Self-Steering Language Models9 Apr 2025
- 2025GAPO: Learning Preferential Prompt through Generative Adversarial Policy Optimization26 Mar 2025
- 2025Leveraging Domain Knowledge at Inference Time for LLM Translation: Retrieval versus Generation6 Mar 2025
- 2025Accelerating scientific discovery with Co-Scientist26 Feb 2025
- 2025Multi-Turn Multi-Modal Question Clarification for Enhanced Conversational Understanding17 Feb 2025
- 2024An Overview and Discussion on Using Large Language Models for Implementation Generation of Solutions to Open-Ended Problems31 Dec 2024
- 2024Towards Global AI Inclusivity: A Large-Scale Multilingual Terminology Dataset (GIST)24 Dec 2024
50 newest of 181 All 181 (JSON)
- 2023Rephrase, Augment, Reason: Visual Grounding of Questions for Vision-Language Modelscited by 14
- 2025Self-Steering Language Modelscited by 13
- 2022Metric-guided Distillation: Distilling Knowledge from the Metric to Ranker and Retriever for Generative Commonsense Reasoningcited by 8
- 2024Combining Constraint Programming Reasoning with Large Language Model Predictionscited by 8
- 2026Adaptive Test-Time Compute Allocation via Learned Heuristics over Categorical Structurecited by 5
- 2024Untangle the KNOT: Interweaving Conflicting Knowledge and Reasoning Skills in Large Language Modelscited by 3
- 2024Dictionary Insertion Prompting for Multilingual Reasoning on Multilingual Large Language Modelscited by 3
- 2026Adaptive Test-Time Compute Allocation via Learned Heuristics over Categorical Structure3 Feb 2026
- 2025Self-Steering Language Models9 Apr 2025
- 2024Dictionary Insertion Prompting for Multilingual Reasoning on Multilingual Large Language Models2 Nov 2024
- 2024Combining Constraint Programming Reasoning with Large Language Model Predictions18 Jul 2024
- 2024Untangle the KNOT: Interweaving Conflicting Knowledge and Reasoning Skills in Large Language Models4 Apr 2024
- 2023Rephrase, Augment, Reason: Visual Grounding of Questions for Vision-Language Models9 Oct 2023
- 2022Metric-guided Distillation: Distilling Knowledge from the Metric to Ranker and Retriever for Generative Commonsense Reasoning21 Oct 2022
- 2026CAPO: Constraint-Aware Prompt Optimization for LLM Agents17 Aug 2026
- 2026To Know is to Construct: Schema-Constrained Generation for Agent Memory22 Apr 2026
- 2024Agentic AI: The Era of Semantic Decoding21 Mar 2024
- 2023Formally Specifying the High-Level Behavior of LLM-Based Agents12 Oct 2023
- 2026Real-Time Execution with Autoregressive Policiescited by 0
- 2026Real-Time Execution with Autoregressive Policies11 Jun 2026
- 2022Survey of Hallucination in Natural Language Generationcited by 2,056
- 2025Accelerating scientific discovery with Co-Scientistcited by 353
- 2023Grammar-Constrained Decoding for Structured NLP Tasks without Finetuningcited by 186
- 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 162
- 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 153
- 2022Internet-augmented language models through few-shot prompting for open-domain question answeringcited by 131
- 2022Pretrained Language Models for Text Generation: A Surveycited by 121
- 2023Controlled Text Generation with Natural Language Instructionscited by 87
- 2023Dictionary-based Phrase-level Prompting of Large Language Models for Machine Translationcited by 74
- 2023Evaluating Large Language Models on Controlled Generation Taskscited by 73
- 2023Tractable Control for Autoregressive Language Generationcited by 65
- 2022Gradient-Based Constrained Sampling from Language Modelscited by 64
12 most cited of 158 All 158 (JSON)
- 2026Making Grid Beam Search Less Greedy30 Sep 2026
- 2026Improving Term Evaluation in Machine Translation: Variation Matters8 Sep 2026
- 2026BlueprintAgent: Constraint-Triggered Targeted Revisits for Simulation-Ready Generation from Scanned Structural Blueprints7 Sep 2026
- 2026From Zero to Hero: An Open LLM Ecosystem for Armenian3 Sep 2026
- 2026Confident but Wrong: A Constrained Decoding Diagnostic for Low-Resource Automatic Post-Editing30 Aug 2026
- 2026Do Language Models Know Their Own Constraints?26 Aug 2026
- 2026The Null Token Knows: Reducing Message-Free Hallucination in ASR and NMT16 Aug 2026
- 2026Trie Automata for Constrained Decoding over Large Finite Sets12 Aug 2026
- 2026IFHierBench: Hierarchical Instruction Following for Large Language Models30 Jul 2026
- 2026StageGuard: Physiologically Constrained Sleep Staging25 Jul 2026
- 2026When to Use Extra Context: Evidence-Grounded Terminology Adaptation for Simultaneous Speech Translation20 Jul 2026
- 2026Imprompt: A Language Framework for Prompt Programming13 Jul 2026
12 newest of 158 All 158 (JSON)