mlsanityData to 14 Oct 2026

EVALOOOP: A Self-Consistency-Centered Framework for Assessing Large Language Model Robustness in Programming

arXiv 2505.12185 ↗First posted 18 May 2025cs.SE cs.CL cs.LGcited by 1

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Evaluating the programming robustness of large language models (LLMs) is paramount for ensuring their reliability in AI-based software development. However, adversarial attacks exhibit fundamental limitations that compromise fair robustness assessment: they demonstrate contradictory evaluation outcomes where different attack strategies tend to favor different models, and more critically, they operate solely through external perturbations, failing to capture the intrinsic stability essential for autonomous coding agents where subsequent inputs are endogenously generated by the model itself. We introduce EVALOOOP, a novel assessment framework that evaluates robustness from a self-consistency perspective, leveraging the natural duality inherent in software engineering tasks (e.g., code generation and code summarization). EVALOOOP establishes a self-contained feedback loop where an LLM iteratively transforms between code and natural language until functional failure occurs, with robustness quantified by a novel Average Sustainable Loops (ASL) metric-the mean number of iterations maintaining functional correctness across benchmark tasks. This cyclical strategy intrinsically evaluates robustness without relying on external attack configurations, providing a unified metric that reveals how effectively LLMs preserve semantic integrity through sustained self-referential transformations. We evaluate 96 popular LLMs, ranging from 0.5B to 685B parameters, on EVALOOOP equipped with the MBPP Plus benchmark, and found that EVALOOOP typically induces a 2.65%-47.62% absolute drop in pass@1 accuracy within ten loops. Intriguingly, robustness does not always align with initial performance (i.e., one-time query); for instance, Qwen3-235B-A22B-Instruct-2507, despite inferior initial code generation compared to OpenAI's o-series models and DeepSeek-V3, demonstrated the superior robustness (ASL score).

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 25 of its 55 references that are in the map. First posted on arXiv 18 May 2025.

Builds on

25 of 55 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025Trading Inference-Time Compute for Adversarial Robustness31 Jan
  2. 2023Beyond Accuracy: Evaluating Self-Consistency of Code Large Language Models with IdentityChain21 Oct

Other references · 23

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2021Program Synthesis with Large Language Modelscited by 3,637
  6. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  7. 2024DeepSeek-V3 Technical Reportcited by 811
  8. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  9. 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 232
  10. 2022Multi-lingual Evaluation of Code Generation Modelscited by 159
  11. 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 138
  12. 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 103
11 more
  1. 2024CyberSecEval 2: A Wide-Ranging Cybersecurity Evaluation Suite for Large Language Modelscited by 89
  2. 2022Natural Language to Code Generation in Interactive Data Science Notebookscited by 87
  3. 2024CYBERSECEVAL 3: Advancing the Evaluation of Cybersecurity Risks and Capabilities in Large Language Modelscited by 58
  4. 2024Robustness, Security, Privacy, Explainability, Efficiency, and Usability of Large Language Models for Codecited by 28
  5. 2024Unsupervised Evaluation of Code LLMs with Round-Trip Correctnesscited by 23
  6. 2024Can We Trust Large Language Models Generated Code? A Framework for In-Context Learning, Security Patterns, and Code Evaluations Across Diverse LLMscited by 19
  7. 2024AIOS Compiler: LLM as Interpreter for Natural Language Programming and Flow Programming of AI Agentscited by 8
  8. 2024Towards nation-wide analytical healthcare infrastructures: A privacy-preserving augmented knee rehabilitation case studycited by 8
  9. 2025The Hidden Risks of LLM-Generated Web Application Code: A Security-Centric Evaluation of Code Generation Capabilities in Large Language Modelscited by 7
  10. 2023Adversarial Attacks on Code Models with Discriminative Graph Patternscited by 6
  11. 2024Demonstration Attack against In-Context Learning for Code Intelligencecited by 3

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025AdversariaLLM: A Unified and Modular Toolbox for LLM Robustness Research
  2. 2025LLMs Cannot Reliably Judge (Yet?): A Comprehensive Assessment on the Robustness of LLM-as-a-Judge
  3. 2025Model Tampering Attacks Enable More Rigorous Evaluations of LLM Capabilities
  4. 2026EvalSafetyGap: A Hybrid Survey and Conceptual Framework for LLM Evaluation-Safety Failures
  5. 2025Smaller = Weaker? Benchmarking Robustness of Quantized LLMs in Code Generation
  6. 2026Risk Under Pressure: Compute-Aware Evaluation of Adversarial Robustness in Language Models
  7. 2025LLM-Safety Evaluations Lack Robustness
  8. 2026Code Is More Than Text: Uncertainty Estimation for Code Generation