Research map / Large language models / Language, safety and interpretability
A Critical Study of What Code-LLMs (Do Not) Learn
Abhinav Anand, Shweta Verma, Krishna Narasimhan, Mira Mezini
Technische Universität Darmstadt · AI Quality & Testing Hub · Hessian Center for Artificial Intelligence (hessian.AI) · National Research Center for Applied Cybersecurity ATHENE
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use attention threshold 0.05 instead of the prior 0.3 | attention analysis of code-LLMs · syntax graph comparison | F-score | Improved |
| fine-tune on a task (CodeT5 musu, CodeRL) vs pre-trained (ablation) | code-LLM hidden representations · tree distance / sibling / data-flow probes | DirectProbe label accuracy: e.g. siblings (Keyword-All) 0.91 (CodeT5) -> 0.85 (CodeRL) | Hurt |
| actor-critic training with test-case reward (CodeRL vs CodeT5 lntp) (ablation) | CodeT5 lntp · attention recall with code graphs | recall | No clear effect |
| scale to billions of parameters (CodeGen 3.7B, CodeT5+2B) (ablation) | code-LLMs · attention analysis, syntax and data-flow graphs | recall / GED | Hurt |
| scale to CodeT5+2B decoder / CodeT5+2B (ablation) | code-LLMs · siblings probe (Keyword-All, not siblings) | DirectProbe label accuracy: 0.82 (CodeT5) -> 0.48 (CodeT5+2B) | Hurt |
| add syntactic-identifier edges to the syntax graph (ablation) | model graphs · graph edit distance | GED per node: cost per node increases by factor 1.5-2 | Hurt |
| use encoder-decoder instead of encoder-only architecture (ablation) | code-LLMs · attention recall in deeper layers | recall | Mixed |
| use non-classifier DirectProbe vs linear probe assumption (ablation) | hidden representation probing · number of clusters vs labels | number of clusters: clusters usually twice the number of labels | Mixed |
Open problems in pruning and circuits in LLMs
Can circuit and interpretability findings be shown to be causal, and to hold on larger and closed models?
- Larger models than the ones studied are left untested. · 17 papers state it
- Evaluated on English only, so other languages are untested. · 11 papers state it
- Findings are correlational, with no causal test of what the model uses. · 8 papers state it
Closest papers by meaning
- Learning the Wrong Lessons: Syntactic-Domain Spurious Correlations in Language Models (NeurIPS 2025 · similarity 0.87)
- Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Tasks (ICML 2024 · similarity 0.86)
- At Which Training Stage Does Code Data Help LLMs Reasoning? (ICLR 2024 · similarity 0.86)
- StackEval: Benchmarking LLMs in Coding Assistance (NeurIPS 2024 · similarity 0.86)
- To Code or Not To Code? Exploring Impact of Code in Pre-training (ICLR 2025 · similarity 0.86)
- CODE REPRESENTATION LEARNING AT SCALE (ICLR 2024 · 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.