The Code Barrier: What LLMs Actually Understand?
Not on the map. Why?
Abstract (arXiv)
Understanding code represents a core ability needed for automating software development tasks. While foundation models like LLMs show impressive results across many software engineering challenges, the extent of their true semantic understanding beyond simple token recognition remains unclear. This research uses code obfuscation as a structured testing framework to evaluate LLMs' semantic understanding capabilities. We methodically apply controlled obfuscation changes to source code and measure comprehension through two complementary tasks: generating accurate descriptions of obfuscated code and performing deobfuscation, a skill with important implications for reverse engineering applications. Our testing approach includes 13 cutting-edge models, covering both code-specialized (e.g., StarCoder2) and general-purpose (e.g., GPT-4o) architectures, evaluated on a benchmark created from CodeNet and consisting of filtered 250 Java programming problems and their solutions. Findings show a statistically significant performance decline as obfuscation complexity increases, with unexpected resilience shown by general-purpose models compared to their code-focused counterparts. While some models successfully identify obfuscation techniques, their ability to reconstruct the underlying program logic remains constrained, suggesting limitations in their semantic representation mechanisms. This research introduces a new evaluation approach for assessing code comprehension in language models and establishes empirical baselines for advancing research in security-critical code analysis applications such as reverse engineering and adversarial code analysis.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 19 of its 52 references that are in the map. First posted on arXiv 14 Apr 2025.
Builds on
19 of 52 references.
References · 19
- 2017Attention Is All You Needcited by 60,361
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 1,006
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 431
- 2020IntelliCode Compose: Code Generation Using Transformercited by 227
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
7 more
- 2020The Next Decade in AI: Four Steps Towards Robust Artificial Intelligencecited by 195
- 2024CodeGemma: Open Code Models Based on Gemmacited by 150
- 2020Contrastive Code Representation Learningcited by 76
- 2022Using Large Language Models to Enhance Programming Error Messagescited by 67
- 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 62
- 2022XLCoST: A Benchmark Dataset for Cross-lingual Code Intelligencecited by 56
- 2023Large Language Models for Code Analysis: Do LLMs Really Do Their Job?cited by 45
Built on by
Citing papers per year: 2025: 3; 2026: 2.
5 papers.
- 2025Trust Me, I Know This Function: Hijacking LLM Static Analysis using Biascited by 3
- 2025Is "Knowing It's Malicious Enough?" Evaluating LLMs for Fine-Grained Malware Behavior Auditingcited by 3
- 2025Optimizing Token Consumption in LLMs: A Nano Surge Approach for Code Reasoning Efficiencycited by 2
- 2026(How) Do Large Language Models Understand High-Level Message Sequence Charts?cited by 1
- 2026Poisoned Identifiers Survive LLM Deobfuscation: A Case Study on Claude Opus 4.6cited by 0
- 2026(How) Do Large Language Models Understand High-Level Message Sequence Charts?13 May 2026
- 2026Poisoned Identifiers Survive LLM Deobfuscation: A Case Study on Claude Opus 4.65 Apr 2026
- 2025Is "Knowing It's Malicious Enough?" Evaluating LLMs for Fine-Grained Malware Behavior Auditing17 Sep 2025
- 2025Trust Me, I Know This Function: Hijacking LLM Static Analysis using Bias24 Aug 2025
- 2025Optimizing Token Consumption in LLMs: A Nano Surge Approach for Code Reasoning Efficiency22 Apr 2025