Abstract
Evaluating Natural Language Generation (NLG) is a cornerstone of modern AI development, yet the robustness of automatic evaluators—ranging from BERTScore to LLM-based metrics—remains a critical blind spot. This paper introduces AdvEval, a unified adversarial framework that utilizes Large Language Models (LLMs) to systematically probe and expose the vulnerabilities of these metrics. By employing an iterative optimization loop where LLMs act as both adversarial generators and "gold-standard" human proxies, we demonstrate that 12 widely used evaluators can be consistently deceived across dialogue, summarization, and question-generation tasks. Our results show that AdvEval achieves significantly higher attack success rates than traditional rule-based methods, highlighting a fundamental "Achilles' heel" in current NLG evaluation paradigms.
1. Introduction
The shift from heuristic-based metrics like BLEU and ROUGE to neural evaluators and LLM-based scoring has significantly improved the correlation between automatic metrics and human judgment. However, these sophisticated evaluators are often treated as "black boxes" whose reliability is assumed rather than proven.
Traditional adversarial attacks in NLP, primarily designed for classification tasks, fail to translate effectively to NLG. In classification, a small perturbation (e.g., swapping a synonym) typically preserves the ground-truth label. In NLG, however, quality is context-dependent; a minor change can render a response entirely irrelevant, thereby changing its "true" quality score. To address this, we present AdvEval, a framework designed to generate high-quality adversarial examples that expose the fragility of modern NLG metrics without relying on rigid, rule-based perturbations.
2. The AdvEval Framework
AdvEval is a black-box adversarial framework that treats the attack as an optimization problem. It leverages the generative capabilities of state-of-the-art LLMs (such as GPT-4 and PaLM-2) to navigate the complex semantic space of natural language.
2.1 The Iterative Loop
The framework operates through four primary components:
- Adversarial Generator (LLM): Generates candidate text based on task-specific prompts and an "optimization trajectory"—a history of previous attempts and their corresponding scores.
- Gold Evaluator (LLM): Acts as a proxy for human judgment ($S_{gold}$), ensuring the generated text maintains its intended quality level (either high or low).
- Victim Evaluator: The specific metric under attack ($S_{victim}$), providing the score the attacker seeks to manipulate.
- Feedback Loop: A feedback score ($S_{fb}$) is calculated based on the discrepancy between the Gold and Victim evaluators. This score guides the Generator in subsequent iterations to maximize the disagreement.
2.2 Attack Objectives
AdvEval targets two specific types of evaluation failure:
- $R^+$ (Underrated): Generating high-quality text that the Gold Evaluator scores highly but the Victim metric penalizes.
- $R^-$ (Overrated): Generating low-quality or nonsensical text that the Gold Evaluator penalizes but the Victim metric rewards with a high score.
3. Experimental Setup
We evaluated AdvEval across 11 datasets spanning three core NLG tasks: dialogue response (DailyDialog, DREAM, PersonaChat, MuTual), summarization (CNN/DailyMail, XSum, DialogSum), and question generation (SQuAD, NewsQA, HotpotQA, Natural Questions).
The framework was tested against 12 victim evaluators, including traditional metrics (ROUGE), embedding-based metrics (BERTScore, BLEURT), and modern LLM-based evaluators (Vicuna, Baichuan).
4. Key Insights
4.1 Global vs. Local Perturbations
Unlike baseline attacks like TextFooler, which are restricted to local word-level swaps, AdvEval performs "global" perturbations. It can rewrite entire sentences while maintaining core intent, allowing it to explore a much larger search space. This capability is crucial for bypassing the "label preservation" trap, where minor changes accidentally alter the ground-truth quality of the text.
4.2 LLMs as Reliable Proxies
A key finding of this study is the efficacy of LLMs as Gold Evaluators. GPT-4’s judgments aligned with human annotators with over 80% accuracy, providing a scalable and cost-effective alternative to human-in-the-loop adversarial generation.
4.3 Asymmetric Vulnerability
Our experiments revealed that crafting $R^-$ (overrated) samples is generally easier than crafting $R^+$ (underrated) samples. This suggests that the space of "convincing but bad" responses is vast, and current metrics are particularly prone to being "fooled" by fluent but irrelevant or incorrect text.
5. Results and Discussion
AdvEval demonstrated a significantly higher Attack Success Rate (ASR) compared to all rule-based baselines. In dialogue tasks, AdvEval achieved an average ASR of 84.8% for $R^+$ and 92.5% for $R^-$, whereas traditional baselines often struggled to exceed a 10% success rate for $R^+$ attacks.
While summarization metrics showed slightly more robustness against $R^-$ attacks than dialogue metrics, AdvEval still outperformed baselines by a wide margin. Furthermore, we attempted to "defend" a victim model (PoE-Large) through adversarial training. While the model learned to resist simple attacks like TextFooler, its performance against AdvEval data showed negligible improvement. This indicates that AdvEval uncovers fundamental, structural weaknesses in how these models perceive text quality.
6. Conclusion
AdvEval exposes a significant gap in the reliability of current NLG evaluators. By moving beyond simple perturbations to LLM-driven semantic optimization, we show that even the most advanced metrics can be systematically deceived. Future research must address the "gray area" of medium-quality text and the high computational cost of iterative optimization. Ultimately, the goal is to use the insights gained from AdvEval to develop more robust evaluation paradigms that are truly resilient to adversarial manipulation.
Summary updated