Abstract
Reward Augmented Maximum Likelihood (RAML) has emerged as a successful heuristic for training structured prediction models with task-specific rewards. This paper provides a rigorous theoretical foundation for RAML by introducing the Softmax Q-distribution framework. The authors prove that RAML is a principled approximation of the Bayes decision rule, effectively bridging the gap between standard maximum likelihood estimation and Bayesian decision theory. Through extensive experiments on tasks ranging from machine translation to named entity recognition, the study demonstrates how RAML optimizes for expected rewards and clarifies the critical role of the temperature parameter in balancing approximation error and model expressivity.
Introduction
In structured prediction tasks—such as machine translation, dependency parsing, or named entity recognition—models are traditionally trained using Maximum Likelihood (ML) estimation. ML aims to minimize the divergence between the model's distribution and the ground-truth data distribution. However, a significant discrepancy often exists between the training objective and the evaluation metrics. At test time, performance is measured by task-specific rewards like BLEU, F1, or METEOR, which ML does not explicitly account for.
Reward Augmented Maximum Likelihood (RAML) was proposed to address this by sampling "augmented" training examples from a distribution weighted by rewards. While RAML showed empirical success, its theoretical underpinnings remained unclear. This paper transforms RAML from a heuristic trick into a theoretically grounded framework by introducing Softmax Q-distribution estimation.
The Softmax Q-Distribution Framework
The authors propose that instead of matching the data distribution (as in ML), models should aim to match a "Softmax Q-distribution." This distribution is defined such that the probability of an output is proportional to its expected reward. This serves as a "smooth" version of the Bayes decision boundary.
To learn this distribution, the authors introduce Softmax Q-distribution Maximum Likelihood (SQDML). Unlike standard ML, which targets the "Bayes Classifier" (the most likely label), SQDML targets the "Bayes Decision Rule"—the label that maximizes expected reward. These two objectives only coincide when the reward function is a simple 0-1 indicator for exact matches.
RAML as a Tractable Approximation
The primary theoretical contribution of the paper is the proof that RAML is a computationally efficient approximation of SQDML. Directly optimizing SQDML is often intractable because it involves an expectation inside a logarithm (the partition function). RAML simplifies this by moving the expectation outside, allowing for efficient optimization via sampling from the reward-weighted distribution.
The authors provide error bounds for this approximation, showing that the divergence between RAML and the ideal SQDML depends on the temperature parameter ($\tau$) and the range of the reward function.
Experimental Results
The framework was validated across several structured prediction benchmarks, including Named Entity Recognition (CoNLL 2003), Machine Translation (IWSLT 2014), and Dependency Parsing (PTB).
Consistent gains were observed: for example, NER F1 scores improved from 84.9 (ML) to 86.0 (RAML), and Machine Translation BLEU scores increased from 27.66 (ML) to 28.77 (RAML). Interestingly, while RAML and SQDML consistently outperformed ML on reward-based metrics, ML occasionally achieved higher "Exact Match" accuracy. This confirms the theoretical insight: ML optimizes for the single most likely outcome, whereas RAML optimizes for the neighborhood of high-reward outcomes.
The Role of Temperature ($\tau$)
The temperature parameter $\tau$ is critical in the RAML framework. It controls the "peakiness" of the reward-weighted distribution. The paper clarifies that $\tau$ is not merely a smoothing constant but a lever that balances approximation error against the model's expressive power.
As shown in the figures, if $\tau$ is too small, the RAML approximation error increases significantly. Conversely, if $\tau$ is too large, the target distribution becomes too uniform, leading to a drop in performance as the model loses its ability to distinguish between high and low reward outputs.
Conclusion
By establishing the link between RAML and Softmax Q-distribution estimation, this work provides a solid theoretical basis for reward-aware training in structured prediction. It explains why RAML works, how to tune its key parameters, and when it is expected to outperform standard maximum likelihood. Future work remains in developing more robust sampling techniques for non-factorizable rewards and complex structured spaces where the partition function is particularly difficult to estimate.
Summary updated