More Agents Improve Math Problem Solving but Adversarial Robustness Gap Persists

Khashayar Alavi, Zhastay Yeltay, Lucie Flek, Akbar Karimi

TL;DR

Ensembling multiple LLM agents via majority voting significantly boosts mathematical reasoning accuracy on both clean and noisy inputs, but it completely fails to close the adversarial robustness gap. While adding more agents helps recover absolute performance losses caused by punctuation noise, human-like typos introduce systematic biases that voting mechanisms cannot overcome, leaving multi-agent systems just as vulnerable to adversarial text as single models.

What Problem Does This Paper Address?

Recent AI research has established two clear trends: first, deploying multiple LLM instances as collaborative "agents" (using debate, voting, or self-consistency) drastically improves performance on complex reasoning tasks. Second, individual LLMs are incredibly fragile, showing steep performance drops when faced with minor surface-level input perturbations like typos or random punctuation insertions.

This paper explores the critical intersection of these two findings: Does multi-agent collaboration actually improve an LLM system's robustness against adversarial noise? If multiple agents vote on an answer, can they filter out the confusion caused by a typo, or do they collectively fall into the same trap? The authors systematically evaluate this question within the domain of mathematical problem-solving.

Methods

The authors employ a unified sampling-and-voting framework called Agent Forest to evaluate multi-agent performance.

Overview of the experimental framework

The pipeline consists of the following steps:

  1. Noise Injection: Input questions are perturbed using two main categories of noise:
  2. Synthetic Noise: Random punctuation symbols (., ,, !, ?, ;, :) inserted at three intensity levels (10%, 30%, and 50%).
  3. Human-like Noise: Real-world spelling errors extracted from Wikipedia edit histories (WikiTypo) and targeted keyboard-style character mistakes ($R^2ATA$).
  4. Sampling: A single base LLM is queried $N$ times (up to 25) using independent random seeds and fixed decoding parameters. Each independent call acts as an individual "agent."
  5. Answer Extraction: A rule-based numeric parser extracts canonical answers from the models' chain-of-thought outputs.
  6. Aggregation: The final answer is determined by a simple majority vote across the $n$ agents, where $n \in \{1, 2, 5, 10, 15, 20, 25\}$.

The authors evaluate six open-source models across various parameter scales: Qwen3-4B/14B, Llama3.1-8B, Mistral-7B, and Gemma3-4B/12B.

Datasets

The evaluation spans four popular mathematical reasoning benchmarks:

  • GSM8K: Grade-school level math word problems.
  • MATH: High-school competition-level mathematics problems requiring complex, multi-step derivations.
  • MMLU-Math: Multiple-choice questions focusing on factual recall and mathematical logic.
  • MultiArith: Compositional arithmetic word problems requiring multi-step operations.

Key Insights and Ideas

  • The Consensus Paradox: Classic ensemble theory assumes that individual model errors are statistically independent, meaning random errors should cancel out during a majority vote. However, adversarial noise introduces a systematic bias. The perturbation forces the underlying model into specific, repeatable failure modes. As a result, the agents don't disagree randomly; they converge on the exact same incorrect answer, causing the voting mechanism to replicate the failure rather than correct it.
  • Semantic vs. Morphological Noise: Not all noise is created equal. Punctuation noise is visually messy but preserves the morphological roots of keywords, allowing the LLM's attention mechanism to recover the original meaning. Real-world typos (WikiTypo), however, alter the text fundamentally during tokenization, mapping words to entirely unrelated or out-of-vocabulary tokens in the embedding space.
  • Diminishing Returns of Collaboration: Across all noise types and datasets, increasing the agent count yields a monotonic gain in accuracy. However, the largest improvements occur when scaling from 1 to 5 agents, with clear diminishing returns setting in beyond 10 agents.

Key Results

  • Persistent Robustness Gap: Averaged across all datasets and models, absolute accuracy rises from 0.6579 with a single agent to 0.7740 with 25 agents. However, the performance gap between the "Clean" baseline and the noisy inputs remains virtually unchanged regardless of how many agents are added.
Average accuracy across datasets and models as a function of agent count
  • Flat Attack Success Rate (ASR): The ASR—the fraction of originally correct predictions flipped to incorrect after adding noise—remains nearly flat as the agent count increases. This quantitatively proves that majority voting does not provide an inherent defense against adversarial text.
Attack Success Rate averaged across datasets
  • WikiTypo is the Ultimate Bottleneck: Real-world human typos proved to be the most destructive adversarial attack, causing a consistent ~8% drop in accuracy across all agent counts and yielding the highest ASR across all model families.

Limitations and Future Work

The authors acknowledge several constraints in their current study:

  1. Scope of Noise: The evaluation was limited to English text, math benchmarks, and character-level corruptions. It did not explore multilingual data, formatting/layout noise (like LaTeX or OCR errors), or adaptive adversaries.
  2. Simplicity of the Multi-Agent Setup: The "Agent Forest" approach relies on independent sampling from a single base model paired with simple majority voting. It does not evaluate more sophisticated multi-agent architectures, such as multi-round debates, cross-agent criticism, tool-augmented agents, or verifier-guided aggregation.
  3. Parsing Vulnerabilities: Answer extraction relies on rule-based numeric parsing, which can introduce residual parsing errors that skew accuracy metrics.

Future Directions: The authors suggest that future work should move away from simply "scaling agents" to fix robustness. Instead, promising avenues include developing noise-aware sampling objectives, training-time data augmentation explicitly targeted at human typos, and designing fundamentally character-robust tokenizers.

Summary updated

BibTeX
@inproceedings{alavi2026more,
  author = {Khashayar Alavi and Zhastay Yeltay and Lucie Flek and Akbar Karimi},
  title = {{More Agents Improve Math Problem Solving but Adversarial Robustness Gap Persists}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.2158},
}
Figure