DualGauge: Automated Joint Security-Functionality Benchmarking of Specification-Only Code Generation by LLMs and Coding Agents

22d ago · Global · primary source: export.arxiv.org

A new automated framework called DualGauge reveals that large language models and coding agents struggle to produce code that is simultaneously correct and secure, with even the strongest systems falling below 15% joint success across three programming languages. The framework, described in a paper posted to the arXiv preprint repository, is the first fully automated system for jointly evaluating functional correctness and security in specification-only code generation [1][2]. It is paired with DualGauge-Bench, a language-agnostic benchmark comprising 307 coding tasks, each equipped with functional and security tests derived from the same natural-language specification [2]. Researchers evaluated 10 representative LLMs across Python, C++, and JavaScript [2]. Functional correctness alone substantially overestimates reliable code generation, the authors report. Even the strongest model remained below 15% joint security-functionality success in every language tested [1][2]. Common model-side factors — including scale, extended thinking, quantization, instruction tuning, and code specialization — did not reliably improve joint performance, indicating that secure-and-correct code generation does not simply emerge from stronger coding capability [2]. The study also examined three leading agentic coding systems: Codex, OpenHands, and Claude Code [1][2]. Iterative scaffolding provided no advantage over direct LLM-based generation on specification-only tasks, the authors found [2]. A qualitative audit traced the majority of failures to the output contract boundary and to security guards that exist but are insufficient — patterns that only joint benchmarking reliably exposes [2]. arXiv, where the paper was submitted in November 2025 and revised in June 2026, serves as an open-access repository for electronic preprints across physics, mathematics, computer science, and related fields [6]. The repository passed two million articles by the end of 2021 and now receives roughly 24,000 submissions per month [6]. The DualGauge paper appears under the Software Engineering category (cs.SE) [1]. The work was led by Rupam Patir and colleagues [1]. The findings suggest that current evaluation practices, which often measure functional correctness in isolation, may paint an overly optimistic picture of LLM-generated code reliability [2].

research-paperapplicationbenchmarktool-release

Background sources we checked (7)
  • arxiv.org ↗ Large language models (LLMs) and LLM-based coding agents are now used to generate code from natural-language specifications, yet ensuring such code is both functionally correct and secure remains a challenge. We present DualGauge, the first fully automated framework for jointly e…
  • info.arxiv.org ↗ arXiv Labs - arXiv info | arXiv e-print repository Skip to content # arXiv Labs Attention arXiv Users: arXiv Labs is pausing new proposals ## What are arXiv Labs? arXiv Labs are a way for the community to contribute new, useful features to arXiv. These integrations are avail…
  • blog.arxiv.org ↗ arXivLabs: a space for community innovation – arXiv blog arXiv has launched a new, formalized framework enabling innovative collaborations with individuals and organizations. “Members of our community want to contribute tools that enhance the arXiv experience, and we val…
  • info.arxiv.org ↗ arXivLabs: Showcase - arXiv info | arXiv e-print repository ... # arXivLabs: Showcase ... arXiv is surrounded by a community of researchers and developers working at the cutting edge of information science and technology. ... While the arXiv team is focused on our core mission—pr…
  • en.wikipedia.org ↗ arXiv (pronounced as "archive"—the X represents the Greek letter chi ⟨χ⟩) is an open-access repository of electronic preprints and postprints (known as e-prints) approved for posting after moderation, but not peer reviewed. It consists of scientific papers in the fields of mathem…
  • en.wikipedia.org ↗ 14 (fourteen) is the natural number following 13 and preceding 15.…
  • en.wikipedia.org ↗ A large language model (LLM) is a type of machine learning model designed for natural language processing tasks such as language generation. LLMs are language models with many parameters, and are trained with self-supervised learning on a vast amount of text.…

Sources

Spot something wrong? Report an issue