Selective Adversarial Attacks on LLM Benchmarks

Ivan Dubrovsky, Anastasia Orlova, Illarion Iov, Nina Gubina, Irena Gureeva, Alexey ZaytsevarXiv 2025 · DOI

TL;DR

Researchers have developed a method for selective adversarial attacks that can degrade the performance of a specific Large Language Model (LLM) on benchmarks like MMLU while leaving competitor models unaffected. By using a surrogate-LLM pipeline trained with Direct Preference Optimization (DPO), they demonstrate that subtle, semantically equivalent edits can manipulate model rankings, posing a significant threat to the integrity of LLM leaderboards.

Introduction

LLM benchmarks, such as MMLU, have become the primary standard for establishing trust and making deployment decisions. However, these benchmarks are known to be sensitive to small input perturbations. While previous research focused on non-selective attacks—edits that make almost all models perform worse—this study explores a more insidious scenario: selectivity.

The authors investigate whether it is possible to craft a question that causes a specific "target" model to fail while allowing reference models to succeed. Such an attack could theoretically allow an actor to "sabotage" a competitor's ranking on a public leaderboard without appearing to change the overall difficulty of the test set, challenging the fairness and transparency of current evaluation standards.

Methodology

The authors formalize selectivity as a controlled difference in performance between a target model ($M_t$) and a set of reference models ($M_r$). They employ two primary strategies:

  1. Constraint-Based Attacks: Using the TextAttack framework, they apply canonical attacks like BAE (word-level replacements) and DeepWordBug (character-level typos). They introduce a custom selectivity constraint that only accepts a perturbation if it causes the target model to fail while the reference models continue to provide the correct answer.
  2. Surrogate-LLM Pipeline: To simulate a scenario where an attacker lacks direct access to a competitor's model, they use a surrogate model to generate paraphrases. These paraphrases are scored based on a cost function rewarding target misclassification and reference consistency. The surrogate is then fine-tuned using Direct Preference Optimization (DPO) to generate questions that specifically trip up the target model.
Overview of the selective adversarial attack framework, including benchmark selection, model targeting, attack generation, and selectivity assessment.

Key Results and Insights

Effectiveness of Selective Constraints

Without custom constraints, attacks typically degrade all models similarly. However, with the selective constraint, the authors achieved a significant "Manipulation Magnitude" (MM). The target model's accuracy dropped by 0.10 to 0.26, while reference models remained stable or even showed slight improvements.

Performance of target and reference models before and after adversarial attacks, highlighting the impact of custom selective constraints compared to baseline non-selective attacks.

Vulnerability Patterns

  • Word-level vs. Character-level: Word-level attacks (like BAE) are far more effective at inducing selective failure than character-level "noise." This suggests LLMs are robust to typos but sensitive to subtle shifts in discourse context or atypical synonyms.
  • Model Fragility: Qwen models appeared more sensitive to these selective perturbations than Llama or Mistral models across various tests.
  • The Scaling Fragility Paradox: Within model families (e.g., Llama-3.2), larger models were sometimes found to be more vulnerable to selective attacks than smaller versions, suggesting that higher parameter counts do not inherently guarantee adversarial robustness.
  • DPO as a Saboteur: Training a surrogate model with DPO was significantly more effective than standard fine-tuning, successfully "widening the gap" between target and reference performance.

Discussion and Future Work

The study highlights qualitative shifts in successful attacks, often involving the replacement of common terms with contextually atypical ones that instruction-tuned models, constrained by alignment, fail to process correctly.

However, limitations remain. The study focused on MMLU, which may have data contamination issues. Furthermore, while the surrogate approach moves toward black-box attacks, truly "blind" selective attacks remain a challenge. There is an urgent need for "perturbation-aware" reporting and the development of defense strategies that can detect or mitigate these selective edits to preserve the integrity of LLM evaluation.

Summary updated

BibTeX
@misc{dubrovsky2025selective,
  author = {Ivan Dubrovsky and Anastasia Orlova and Illarion Iov and Nina Gubina and Irena Gureeva and Alexey Zaytsev},
  title = {{Selective Adversarial Attacks on LLM Benchmarks}},
  year = {2025},
  eprint = {2510.13570},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.13570},
}
Figure