scimeatlas

Research map / Large language models / Agents, code and math

RealSec-bench: A Benchmark for Evaluating Secure Code Generation in Real-World Repositories

Yanlin Wang, Ziyao Zhang, Chong Wang, Xinyi Xu, Mingwei Liu, Yong Wang, Jiachi Chen, Zibin Zheng

ACL 2026Large language models › Agents, code and mathapproach: Code generation benchmarksopen problems in this approach15 citations (OpenAlex)

Sun Yat-sen University · Nanyang Technological University · Alibaba Group · Zhejiang University

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
6improved
3no clear effect
4hurt

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add Final Judger on top of three voters (ablation)SAST adjudication pipeline · manually reviewed 89 alertsF1: 72.3% -> 89.1%Improved
add Final Judger on top of three voters (ablation)SAST adjudication pipeline · manually reviewed 89 alertsprecision: 63.0% -> 81.7%Improved
add three voters to raw SAST (ablation)SAST scan · manually reviewed 89 alertsrecall: 100.0% -> 85.0%Hurt
add retrieval (RAG)LLMs on RealSec-bench · RealSec-benchPass@1Improved
add retrieval (RAG)LLMs on RealSec-bench · RealSec-benchSecurePass@1No clear effect
use inter-procedural dataflow retriever instead of text-based retrievers (ablation)RAG · RealSec-benchSecurePass@1Hurt
add security guidelines to prompt (ablation)Claude-3.7-Sonnet · RealSec-benchPass@1: 16.2% -> 9.5%Hurt
add security guidelines to prompt (ablation)Deepseek-V3 and GPT-4.1 · RealSec-benchSecurePass@1Improved
add security guidelines to prompt (ablation)LLMs on RealSec-bench · RealSec-benchSecurePass@1 (average)No clear effect
use semantic dense retriever (ablation)Claude-3.7-Sonnet · RealSec-benchSecurePass@1: 7.6%Improved
use BM25 retriever (ablation)Qwen3-235B · RealSec-benchSecurePass@1: up to 7.6%Improved
use any retriever instead of none (ablation)GPT-4.1 · RealSec-benchSecurePass@1No clear effect

Open problems this paper states

Open problems in code generation benchmarks

Do code benchmarks and methods hold beyond Python, small test sets and leaked data?

All 5 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy