When Names Disappear: Revealing What LLMs Actually Understand About Code
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) achieve strong results on code tasks, but how they derive program meaning remains unclear. We argue that code communicates through two channels: structural semantics, which define formal behavior, and human-interpretable naming, which conveys intent. Removing the naming channel severely degrades intent-level tasks such as summarization, where models regress to line-by-line descriptions. Surprisingly, we also observe consistent reductions on execution tasks that should depend only on structure, revealing that current benchmarks reward memorization of naming patterns rather than genuine semantic reasoning. To disentangle these effects, we introduce a suite of semantics-preserving obfuscations and show that they expose identifier leakage across both summarization and execution. Building on these insights, we release ClassEval-Obf, an obfuscation-enhanced benchmark that systematically suppresses naming cues while preserving behavior. Our results demonstrate that ClassEval-Obf reduces inflated performance gaps, weakens memorization shortcuts, and provides a more reliable basis for assessing LLMs' code understanding and generalization.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 30 of its 35 references that are in the map. First posted on arXiv 3 Oct 2025.
Builds on
30 of 35 references.
References · 30
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 300
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
18 more
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 255
- 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 146
- 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 100
- 2024The BiGGen Bench: A Principled Benchmark for Fine-grained Evaluation of Language Models with Language Modelscited by 89
- 2025SWE-bench Goes Live!cited by 74
- 2022Natural Attack for Pre-trained Models of Codecited by 72
- 2023CodeScore: Evaluating Code Generation by Learning Code Executioncited by 66
- 2023xCodeEval: A Large Scale Multilingual Multitask Benchmark for Code Understanding, Generation, Translation and Retrievalcited by 46
- 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?cited by 44
- 2024BugsInPy: A Database of Existing Bugs in Python Programs to Enable Controlled Testing and Debugging Studiescited by 35
- 2023Structure-Aware Language Model Pretraining Improves Dense Retrieval on Structured Datacited by 23
- 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugscited by 22
- 2024CodeMMLU: A Multi-Task Benchmark for Assessing Code Understanding & Reasoning Capabilities of CodeLLMscited by 18
- 2023CodeApex: A Bilingual Programming Evaluation Benchmark for Large Language Modelscited by 15
- 2024Do Large Code Models Understand Programming Concepts? Counterfactual Analysis for Code Predicatescited by 14
- 2022Two Sides of the Same Coin: Exploiting the Impact of Identifiers in Neural Code Comprehensioncited by 9
- 2024Structure-aware Fine-tuning for Code Pre-trained Modelscited by 3
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Does Code Cleanliness Affect Coding Agents? A Controlled Minimal-Pair Studycited by 1
- 2026Names Don't Matter: Symbol-Invariant Transformer for Open-Vocabulary Learningcited by 0
- 2026TLA+-Bench: An Execution-Grounded Benchmark and Dataset for Natural-Language to TLA Specification Generationcited by 0
- 2026ALIBI: Adaptive Agentic Attacks on LLM-Based Vulnerability Detectors via Adversarial Code Commentscited by 0
- 2026ALIBI: Adaptive Agentic Attacks on LLM-Based Vulnerability Detectors via Adversarial Code Comments27 Jul 2026
- 2026TLA+-Bench: An Execution-Grounded Benchmark and Dataset for Natural-Language to TLA Specification Generation26 Jul 2026
- 2026Does Code Cleanliness Affect Coding Agents? A Controlled Minimal-Pair Study19 May 2026
- 2026Names Don't Matter: Symbol-Invariant Transformer for Open-Vocabulary Learning30 Jan 2026