In machine translation, the "decoding" problem is a search for the needle in a haystack. Given a source sentence, there is a near-infinite space of possible target sequences; the goal is to find the one that maximizes a probability score. Historically, this required computationally expensive algorithms like beam search or Viterbi decoding.
However, a recurring theme across decades of research suggests a more efficient path: instead of building complex search algorithms to navigate a model's flaws, we can use local, greedy search strategies or "bake" the complexity of the search directly into the model’s weights.
The Intuition of Local Search
The earliest approaches to statistical machine translation (SMT) recognized that finding a mathematically optimal translation was often an NP-complete problem. Ulrich Germann, Daniel Marcu, and colleagues demonstrated in Fast Decoding and Optimal Decoding for Machine Translation that while "perfect" decoding is hard, simple greedy strategies are surprisingly effective.
The intuition here is iterative refinement. Rather than building a translation word-by-word from scratch, a greedy decoder starts with a rough hypothesis (like a word-for-word translation) and applies local "mutations." Daniel Marcu and Daniel Wong refined this in their phrase-based joint probability model, using hill-climbing to swap, merge, or delete phrase segments. If a change increases the overall probability, it is kept. This process continues until the model reaches a local maximum.
This local search logic scales beyond sentences. Christian Hardmeier and Jörg Tiedemann applied this to entire documents in their Docent decoder. By treating a whole document as a single state, they could use simulated annealing to ensure consistency across sentences, proving that greedy, iterative modifications could handle complex global constraints that traditional word-by-word decoders could not.
Training Models to be Greedy
As the field shifted toward Neural Machine Translation (NMT), the focus moved from the search algorithm to the training objective. If a model is trained only to predict the next word (teacher forcing), it often becomes fragile during inference, requiring a beam search to maintain a "buffer" of likely paths.
Alexander M. Rush and Yoon Kim pioneered a solution called Sequence-Level Knowledge Distillation. Instead of training a student model on raw data, they trained it to mimic the output sequences of a high-performing teacher model. This process simplifies the probability distribution the student has to learn. The result is a model that is "confident" enough to use greedy decoding—picking the single best word at each step—without the quality collapsing.
This "greedy-first" philosophy is essential for high-throughput systems. For instance, the NiuTrans system and HW-TSC's efficiency models utilize sequence distillation to bypass the final softmax and beam search entirely, achieving massive speedups on standard hardware.
Baking Search into Weights
The most recent evolution of this idea is to treat expensive decoding methods not as inference-time tools, but as training-time teachers.
Methods like Minimum Bayes Risk (MBR) decoding are powerful because they look at many candidate translations and pick the one that is most "central" or high-quality. However, MBR is notoriously slow. Mara Finkelstein and Markus Freitag showed that you can distill these MBR benefits into a model's weights. By fine-tuning on data generated via MBR, the model learns to produce MBR-quality output using only a standard, fast search.
Guangyu Yang and Bill Byrne took this further using Direct Preference Optimization (DPO). Instead of just mimicking a teacher, the model is trained to prefer the high-quality outputs found by expensive search processes over the lower-quality outputs found by simple ones.
This represents the ultimate realization of the research direction: the "thinking" is moved from the user's computer at inference time to the researcher's cluster at training time. The end user gets the quality of a complex, multi-pass search with the speed of a single, greedy pass.