[Paper Review] Momentum Calibration for Text Generation
MoCa (Momentum Calibration) is an online method that improves text generation by aligning model scores with the actual quality of beam search-generated samples using a momentum-moving-average generator. It outperforms vanilla fine-tuning and state-of-the-art methods on CNN/DailyMail and SAMSum, achieving SOTA results with minimal computational overhead.
The input and output of most text generation tasks can be transformed to two sequences of tokens and they can be modeled using sequence-to-sequence learning modeling tools such as Transformers. These models are usually trained by maximizing the likelihood the output text sequence and assumes the input sequence and all gold preceding tokens are given during training, while during inference the model suffers from the exposure bias problem (i.e., it only has access to its previously predicted tokens rather gold tokens during beam search). In this paper, we propose MoCa ({\bf Mo}mentum {\bf Ca}libration) for text generation. MoCa is an online method that dynamically generates slowly evolving (but consistent) samples using a momentum moving average generator with beam search and MoCa learns to align its model scores of these samples with their actual qualities. Experiments on four text generation datasets (i.e., CNN/DailyMail, XSum, SAMSum and Gigaword) show MoCa consistently improves strong pre-trained transformers using vanilla fine-tuning and we achieve the state-of-the-art results on CNN/DailyMail and SAMSum datasets.
Motivation & Objective
- To address the exposure bias and loss-evaluation mismatch in text generation by aligning model scores with the actual quality of generated samples during training.
- To reduce the discrepancy between training (MLE loss) and inference (beam search) by making model scoring consistent with relative sample quality in beam search.
- To develop an online, differentiable method that dynamically generates consistent, high-quality samples for real-time calibration.
- To improve performance of pre-trained transformers without architectural changes or complex training schemes.
Proposed method
- MoCa uses a momentum-moving-average generator to produce slowly evolving, consistent candidate samples during training.
- The method evaluates sample quality using an external evaluation model (e.g., ROUGE) and aligns these scores with the online model’s predicted probabilities.
- A ranking loss is applied to ensure higher model scores are assigned to higher-quality samples, improving beam search performance.
- The online model employs a beam search-tailored scoring function with positional weighting to correct for positional accuracy degradation in long sequences.
- The momentum update strategy ensures stable, gradual evolution of the generator, maintaining consistency across samples.
- The method is differentiable and avoids the non-differentiable reward issues of reinforcement learning, enabling end-to-end training.
Experimental results
Research questions
- RQ1Can online, dynamic sample generation improve the alignment between model scores and actual sample quality in beam search?
- RQ2Does using a momentum-based generator improve consistency and performance compared to static or isolated sample generation?
- RQ3Can a differentiable, online calibration method outperform reinforcement learning and scheduled sampling in text generation?
- RQ4How does beam search-tailored scoring with positional weighting affect performance on long-sequence generation tasks?
- RQ5To what extent can MoCa improve strong pre-trained models beyond vanilla fine-tuning?
Key findings
- MoCa achieves state-of-the-art results on CNN/DailyMail (ROUGE-L 45.76) and SAMSum (ROUGE-L 50.88), outperforming all baselines including larger models.
- On XSum, MoCa outperforms 400M and 568M parameter models like PEGASUS and BART, despite being smaller than the 268B-parameter ST-MoE model.
- MoCa consistently improves over vanilla fine-tuning across all datasets, with a 0.56 ROUGE-L gain on CNNDM and a 1.51 ROUGE-L gain on SAMSum.
- The ablation study shows that online momentum update improves performance over offline methods, with the best results achieved when combining momentum and adaptive positional weighting.
- The method with positional weighting (γt = 1) performs better on SAMSum, where positional accuracy degrades, while constant weighting works better on CNNDM.
- MoCa outperforms BRIO and SLiC even though it uses smaller models, demonstrating the effectiveness of online calibration and beam search-aware scoring.
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.