Abstract
Traditional metrics for evaluating Natural Language Generation (NLG), such as BLEU and BERTScore, often fail to account for the inherent diversity of language and the importance of generation context. We present MARS (Language Model Augmented Relevance Score), a novel metric that utilizes a language model to generate multiple context-aware reference variations from a single human gold standard. By comparing candidates against an augmented set of references, MARS achieves significantly higher correlation with human judgment and demonstrates superior robustness against adversarial outputs.
Introduction
Evaluating the quality of machine-generated text remains a significant challenge in NLP. For decades, researchers have relied on lexical overlap metrics like BLEU and ROUGE. However, these metrics penalize perfectly valid outputs that do not match the specific wording of a single human reference. Even embedding-based metrics like BERTScore, while better at capturing semantic similarity, often ignore the broader generation context—the preceding sentences that define the logical flow and tone of the output. Consequently, these metrics struggle to distinguish between contextually appropriate generation and fluent but irrelevant "word salad."
Methodology: The MARS Framework
MARS addresses these limitations by shifting from a point-based comparison to a region-based evaluation. Instead of comparing a candidate to one static human reference, MARS creates a "neighborhood" of valid alternatives.
The process consists of three core stages:
- Human Reference Token Masking: MARS identifies non-essential tokens in the human reference to create a flexible template. This is framed as a Knapsack Problem, solved via Dynamic Programming to maximize flexibility while preserving the core semantic intent.
- Self-planning Cloze Augmentation: An off-the-shelf language model (e.g., GPT-2) fills these masks using a technique called Reinforced Self-planning. Unlike standard autoregressive generation, this method uses reinforcement learning to ensure that generated tokens are consistent with both the preceding context and the remaining future tokens in the template.
- Contextual Similarity Scoring: The candidate sentence is compared against the entire set of references (the original human reference plus the augmented variations) using Sentence-BERT. A weighted average is computed, giving the highest priority to the original human reference while providing partial credit for matching the augmented variations.
Experimental Setup
The effectiveness of MARS was validated across three diverse NLG tasks:
- Story Generation: Writing the final sentence for a four-sentence prompt using the ROC Stories dataset.
- News Summarization: Evaluating summaries from the Newsroom dataset.
- Question Answering: Comparing model-generated answers against human standards in the MOCHA dataset.
Results and Discussion
MARS demonstrates a substantial improvement in aligning with human perception of quality. On the ROC Story task, MARS achieved a Pearson correlation of 0.476, nearly doubling the performance of BERTScore (0.245) and significantly outperforming BLEU-1 (0.198).
Beyond simple correlation, MARS proves highly robust against adversarial attacks. In tests involving word shuffling or context-copying (retrieval), MARS scores dropped significantly more than traditional metrics, indicating a better ability to detect lack of coherence and grammatical structure. Human evaluation further confirmed that the augmented references generated by MARS are indistinguishable from human-written ones in terms of readability and contextual relevance.
Conclusion and Future Work
MARS represents a significant step forward in NLG evaluation by treating the "gold standard" as a range of possibilities rather than a single point. While currently limited by the sequence length and domain knowledge of the underlying language model, its ability to incorporate context makes it a powerful tool for modern generative AI. Future research will explore extending MARS to multi-lingual contexts and more complex, long-form generation tasks.
Summary updated