CodeCircuit : Toward Inferring LLM-Generated Code Correctness via Attribution Graphs

Yicheng He, Zheng Zhao, Kaiyu Zhou, Bryan Dai, Jie Fu, Yonghui Yang · 2026

Read CodeCircuit : Toward Inferring LLM-Generated Code Correctness via Attribution Graphs by Yicheng He, Zheng Zhao, Kaiyu Zhou, Bryan Dai, Jie Fu, Yonghui Yang (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2602-07080.txt.

Description

Yicheng He and five co-authors ask if a language model's code can be judged right or wrong from inside alone. Today's checks lean on outside tools: running unit tests, or asking another model to judge. Those routes cost labor, or they inherit the judge model's own limits. The paper poses a fresh question: do a model's neural dynamics carry signals, readable from inside, that predict logical validity as code is generated?

The team turns code checks into a diagnostic task, mapping the model's algorithmic path into graphs that attribute each line. By breaking down complex residual flows, they hunt for structural signatures that mark sound reasoning apart from logical failure within the model's circuits. Tests across Python, C++, and Java show those intrinsic correctness signals hold across diverse syntaxes. Graph topology features predict correctness better than surface heuristics, and they enable targeted causal interventions to repair faulty logic.

Catalog record

CREATORYicheng He, Zheng Zhao, Kaiyu Zhou, Bryan Dai, Jie Fu, Yonghui Yang
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE45 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2602-07080

Browse the full library · About the Tower of Babel