Research map / Large language models / Agents, code and math
Can You Really Trust Code Copilot? Evaluating Large Language Models from a Code Security Perspective
Yutao Mou, Xiao Deng, Yuxiao Luo, Shikun Zhang, Wei Ye
Peking University
Read the paperPlace an idea next to itCheck your own paper ↗
11measured effects
8improved
2hurt
1mixed
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 changed | Where | Measured | Effect |
|---|---|---|---|
| fine-tune on secure code data (SC-IFT) (ablation) | LLAMA2-7B-chat · CoV-Eval code completion (seed set) | SR@1 (%): 42.59 -> 62.96 | Improved |
| fine-tune on secure code data (SC-IFT) (ablation) | LLAMA2-7B-chat · HumanEval | pass@1 (%): 14.51 -> 16.04 | Improved |
| fine-tune on secure code data (SC-IFT) (ablation) | LLAMA2-7B-chat · vulnerability repair | SR@1 (%): 42.98 -> 24.53 | Hurt |
| add vulnerability detection data (VD-IFT) to SC-IFT (ablation) | LLAMA2-7B-chat · vulnerability repair | SR@1 (%): 24.53 -> 32.91 | Improved |
| add general instruction data (G-IFT) to SC-IFT and VD-IFT (ablation) | LLAMA2-7B-chat · vulnerability repair | SR@1 (%): 32.91 -> 36.06 | Improved |
| fine-tune on general code data (GC-IFT) without security review (ablation) | LLAMA2-7B-chat · CoV-Eval code completion (seed set) | SR@1 (%): 42.59 -> 40.74 | Hurt |
| fine-tune on general code data (GC-IFT) (ablation) | LLAMA2-7B-chat · HumanEval | pass@1 (%): 14.51 -> 20.27 | Improved |
| use code-specific model CodeLLAMA-7B-Instruct instead of LLAMA2-7B-chat | code LLM · CoV-Eval code completion (total) | SR@1 (%): 56.17 -> 68.21 | Improved |
| use VC-Judge instead of GPT-4o as evaluator | evaluator · seed set | consistency with human experts (%): 74.99 -> 78.24 | Improved |
| use VC-Judge instead of CodeQL as evaluator | evaluator · seed set | consistency with human experts (%): 63.42 -> 78.24 | Improved |
| upgrade Qwen1.5 to Qwen2 | Qwen series · code usability vs security | HumanEval and security | Mixed |
Open problems in code generation benchmarks
Do code benchmarks and methods hold beyond Python, small test sets and leaked data?
- Tested on Python or a few languages, so other languages are untested. · 25 papers state it
- Benchmarks are small, with a few dozen to a few hundred problems. · 14 papers state it
- Iterative or multi-step methods cost more tokens, latency and compute. · 12 papers state it
Closest papers by meaning
- Security Attacks on LLM-based Code Completion Tools (AAAI 2025 · similarity 0.88)
- ProSec: Fortifying Code LLMs with Proactive Security Alignment (ICML 2025 · similarity 0.88)
- Copilot Arena: A Platform for Code LLM Evaluation in the Wild (ICML 2025 · similarity 0.87)
- Evaluation of Large Language Models on Code Obfuscation (Student Abstract) (AAAI 2024 · similarity 0.87)
- LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code (ICLR 2025 · similarity 0.87)
- SecCodePRM: A Process Reward Model for Code Security (ICML 2026 · similarity 0.87)
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.