CodeSimpleQA: Scaling Factuality in Code Large Language Models

Jian Yang, Wei Zhang, Yizhi Li, Shawn Guo, Haowen Wang +6 more
12/22/2025
cs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Large language models (LLMs) have made significant strides in code generation, achieving impressive capabilities in synthesizing code snippets from natural language instructions. However, a critical challenge remains in ensuring LLMs generate factually accurate responses about programming concepts, technical implementations, etc. Most previous code-related benchmarks focus on code execution correctness, overlooking the factual accuracy of programming knowledge. To address this gap, we present CodeSimpleQA, a comprehensive bilingual benchmark designed to evaluate the factual accuracy of code LLMs in answering code-related questions, which contains carefully curated question-answer pairs in both English and Chinese, covering diverse programming languages and major computer science domains. Further, we create CodeSimpleQA-Instruct, a large-scale instruction corpus with 66M samples, and develop a post-training framework combining supervised fine-tuning and reinforcement learning. Our comprehensive evaluation of diverse LLMs reveals that even frontier LLMs struggle with code factuality. Our proposed framework demonstrates substantial improvements over the base model, underscoring the critical importance of factuality-aware alignment in developing reliable code LLMs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yang2025codesimpleqa,
  title  = {CodeSimpleQA: Scaling Factuality in Code Large Language Models},
  author = {Jian Yang and Wei Zhang and Yizhi Li and Shawn Guo and Haowen Wang and Aishan Liu and Ge Zhang and Zili Wang and Zhoujun Li and Xianglong Liu and Weifeng Lv},
  year   = {2025},
  eprint = {2512.19424},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.19424v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.19424.svg)](https://codeofpaper.com/paper/2512.19424)

Discussion