[Paper Review] Towards Decoding as Continuous Optimization in Neural Machine Translation
This paper proposes a continuous optimization framework for neural machine translation (NMT) decoding, reformulating discrete sequence generation as a constrained continuous optimization problem. By relaxing integer constraints on token predictions and using stochastic gradient descent (SGD) and exponentiated gradient (EG) algorithms, the method enables effective decoding of intractable models—such as intersected left-to-right and right-to-left or source-to-target and target-to-source NMT models—yielding significant translation quality improvements over greedy and beam search.
We propose a novel decoding approach for neural machine translation (NMT) based on continuous optimisation. We convert decoding - basically a discrete optimization problem - into a continuous optimization problem. The resulting constrained continuous optimisation problem is then tackled using gradient-based methods. Our powerful decoding framework enables decoding intractable models such as the intersection of left-to-right and right-to-left (bidirectional) as well as source-to-target and target-to-source (bilingual) NMT models. Our empirical results show that our decoding framework is effective, and leads to substantial improvements in translations generated from the intersected models where the typical greedy or beam search is not feasible. We also compare our framework against reranking, and analyse its advantages and disadvantages.
Motivation & Objective
- To address the limitations of heuristic decoding methods like greedy and beam search in neural machine translation.
- To enable effective decoding for complex, globally constrained NMT models that do not follow standard left-to-right generation order.
- To formulate sequence decoding as a continuous optimization problem, relaxing discrete constraints on token predictions.
- To develop and evaluate gradient-based optimization techniques—SGD and EG—for inference in NMT.
- To demonstrate the effectiveness of continuous decoding on intersected NMT models, including bidirectional and bilingual combinations.
Proposed method
- Reformulate discrete NMT decoding as a continuous optimization problem by relaxing the one-hot constraint on predicted tokens, allowing soft assignments within the probability simplex.
- Define a continuous objective function based on the NMT model’s log-likelihood, which is optimized subject to constraints on the probability simplex.
- Apply stochastic gradient descent (SGD) and exponentiated gradient (EG) algorithms to solve the continuous optimization problem during inference.
- Use the EG algorithm to update token probabilities iteratively, maintaining feasibility through normalization and gradient-based updates.
- Integrate global constraints such as intersection of left-to-right and right-to-left models by jointly optimizing over multiple generation orders.
- Train NMT models independently for different generation directions (e.g., left-to-right and right-to-left), then combine them via the continuous decoding framework.
Experimental results
Research questions
- RQ1Can continuous optimization effectively replace heuristic decoding in NMT, especially for models with complex global constraints?
- RQ2How do SGD and EG perform in continuous decoding compared to traditional beam search in terms of translation quality and convergence?
- RQ3Can the proposed framework decode intersected NMT models—such as bidirectional or bilingual combinations—where standard greedy or beam search fails?
- RQ4What is the impact of continuous decoding on translation quality and diversity when combining left-to-right and right-to-left models?
- RQ5How does the continuous decoding framework compare to reranking methods in terms of performance and computational efficiency?
Key findings
- The continuous optimization framework enables effective decoding of intersected NMT models—such as left-to-right and right-to-left combinations—where traditional greedy or beam search is infeasible.
- The exponentiated gradient (EG) algorithm outperforms stochastic gradient descent (SGD) in decoding quality, demonstrating superior convergence and stability.
- Empirical results on Chinese-English and German-English translation tasks show substantial improvements in BLEU scores for intersected models compared to baseline decoding methods.
- The framework achieves consistent improvements in both search error and end-to-end translation quality when combining bidirectional or bilingual NMT models.
- The method successfully handles global constraints such as model intersection, enabling more diverse and accurate translations than standard heuristic decoding.
- Compared to reranking, the continuous decoding framework provides a more principled and unified approach to global model combination, with better performance on complex model ensembles.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.