Research map / Large language models / Agents, code and math
Learning from Failures: Error Notebook-guided Secure Code Generation
Xinyu Zhong, Peng Lan, Zhifang Liao
Central South University
Read the paperPlace an idea next to itCheck your own paper ↗
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.
On benchmark leaderboards
- LiveCodeBench leaderboard pass@1 34.3 · rank 34 of 44 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add SafeNote error notebooks | GPT-4o-mini · CodeGuard+ | SecurePass@1 (%): 60.21 -> 66.70 | Improved |
| add SafeNote error notebooks | DeepSeek-V3.2 · CodeGuard+ | SecurePass@1 (%): 63.51 -> 69.47 | Improved |
| add SafeNote error notebooks | Llama3-8B · CodeGuard+ | SecurePass@1 (%): 53.72 -> 50.64 | Hurt |
| add SafeNote error notebooks | Qwen3-8B · LiveCodeBench | Pass@1 (%): 18.86 -> 34.30 | Improved |
| add SafeNote error notebooks | GPT-4o-mini · LiveCodeBench | Pass@1 (%): 37.96 -> 33.98 | Hurt |
| use SafeNote instead of RESCUE | DeepSeek-V3.2 · CodeGuard+ | Pass@1 (%): 74.26 -> 79.26 | Improved |
| add SafeNote on unseen CWE scenarios | GPT-4o-mini · CodeGuard+ unseen CWE | SecurePass@1 (%): 51.14 -> 63.43 | Improved |
| add SafeNote on unseen CWE scenarios | Kimi-K2-Instruct-0905 · CodeGuard+ unseen CWE | SecurePass@1 (%): 46.00 -> 57.71 | Improved |
| add Security Error Notebook (ablation) | SafeNote (DeepSeek-V3.2) · CodeGuard+ | SecureRate (%): 80.85 -> 84.39 | Improved |
| add Function Error Notebook (ablation) | SafeNote (Kimi-K2-Instruct-0905) · CodeGuard+ | Pass@1 (%): 75.32 -> 80.00 | Improved |
| add Function Error Notebook (ablation) | SafeNote (DeepSeek-V3.2) · CodeGuard+ | Pass@1 (%): 75.21 -> 79.26 | Improved |
| add Function Error Notebook (ablation) | SafeNote (Qwen3-8B) · CodeGuard+ | SecureRate (%): 78.62 -> 76.44 | Hurt |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- RESCUE — Rescue: Retrieval Augmented Secure Code Generation (ICLR 2026) · better on 7 of 9 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems this paper states
- “Evaluated only on Python, C and C++ in single-file contexts, not large multi-file projects.” → Evaluated on Python or one other language only. (an open problem in execution-based code verification)
Open problems in execution-based code verification
Can execution-based code verification be trusted beyond Python, small benchmarks and the tests it relies on?
- Evaluated on Python or one other language only. · 17 papers state it
- Only a few models were tested, and larger ones were left out. · 16 papers state it
- Passing the tests does not show the code is correct. · 15 papers state it
Closest papers by meaning
- Instruction Tuning for Secure Code Generation (ICML 2024 · similarity 0.89)
- SecCodePRM: A Process Reward Model for Code Security (ICML 2026 · similarity 0.88)
- CodeMimicry: Exploiting Safety Generalization Lag in Large Language Models via Structured Code Completion (NeurIPS 2026 · similarity 0.88)
- ProSec: Fortifying Code LLMs with Proactive Security Alignment (ICML 2025 · similarity 0.87)
- Training Language Models to Generate Quality Code with Program Analysis Feedback (NeurIPS 2025 · similarity 0.87)
- SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks (NeurIPS 2025 · similarity 0.86)
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.