Abstract
A common way to combat exposure bias is by applying scores from evaluation metrics as rewards in reinforcement learning (RL). Metrics leveraging contextualized embeddings appear more flexible than their n-gram matching counterparts and thus ideal as training rewards. However, metrics such as BERTScore greedily align candidate and reference tokens, which can allow system outputs to receive excess credit relative to a reference. Furthermore, past approaches featuring semantic similarity rewards suffer from repetitive outputs and overfitting. We address these issues by proposing metrics that replace the greedy alignments in BERTScore with optimized ones. We compute them on a model’s trained token embeddings to prevent domain mismatch. Our model optimizing discrete alignment metrics consistently outperforms cross-entropy and BLEU reward baselines on AMR-to-text generation. In addition, we find that this approach enjoys stable training compared to a non-RL setting.
Introduction
Training Natural Language Generation (NLG) models typically involves maximizing the likelihood of a single reference sentence. This often leads to exposure bias, where the model struggles during inference because it was never exposed to its own mistakes during training. To address this, researchers often use Reinforcement Learning (RL) to "reward" the model based on evaluation metrics. While metrics like BLEU focus on exact n-gram overlaps, newer semantic metrics like BERTScore use contextual embeddings. However, BERTScore relies on greedy alignment, where every word in the generated sentence is matched to the "best" word in the reference, regardless of whether that reference word has already been matched. This creates a loophole where models can get "extra credit" for repeating high-scoring words, leading to repetitive and unnatural outputs.
Methodology: Optimized Token Alignment
We propose replacing greedy alignment with two types of Optimized Token Alignment:
- Discrete Word Matching (F_DISC): This treats alignment as a "linear sum assignment problem," using the Hungarian algorithm to ensure a one-to-one mapping. Each generated token can align to at most one reference token, preventing the model from being rewarded for repetition.
- Continuous Word Alignment (F_CONT): This uses Earth Mover’s Distance (EMD) to find a "soft" alignment, treating tokens as distributions of mass and finding the most efficient way to "transport" mass from the generated sentence to the reference.
Crucially, instead of using a separate, frozen BERT model for embeddings, we use the T5 model’s own internal representations. This makes the process more memory-efficient and ensures the reward is aligned with the model's current "understanding" of the data, avoiding domain mismatch.
Key Results
The discrete optimized metric (F_DISC) was the top performer across the board on the AMR2017T10 benchmark.
As shown in the table above, F_DISC outperformed the standard Cross-Entropy (XENT) baseline by 1.28 BLEU points and 0.71 BLEURT points. It also significantly outperformed the greedy F_BERT reward, which actually scored lower than the simple BLEU-reward baseline. Qualitative analysis showed that F_DISC helped the model choose more semantically appropriate verbs and successfully eliminated the repetitions seen in greedy models.
Training Stability
One of the most significant findings was that RL with F_DISC rewards stabilized training. While standard Cross-Entropy models eventually started to overfit—where validation scores drop while training scores rise—the F_DISC model continued to improve on validation metrics for much longer.
Conclusion
By replacing greedy token matching with optimized alignment strategies, we demonstrate a significant boost in both semantic accuracy and training stability for AMR-to-text generation. This approach mitigates the "greedy loophole" that encourages repetition and ensures that the model is rewarded for true semantic similarity. Future work will explore the generalizability of these optimized rewards to other generation tasks like machine translation.
Summary updated