Do Machines Struggle Where Humans Do? LLM and Human Comprehension of Obfuscated Code
Abstract
While code obfuscation impairs human code comprehension, it remains unclear if large language models share these failure modes. Building directly on a recent human study of program comprehension under code obfuscation, we evaluate whether large language models share the failure modes that obfuscation induces in human programmers. Evaluating several LLMs with five obfuscation tiers using the Block Model, we localize comprehension failures at the atom, block, relational, and macro levels. We find that reasoning-tuned models demonstrate significant alignment with human difficulty patterns across experience levels, whereas instruction and coder-tuned models show near-zero correlation. Chain-of-Thought trace length tracks task difficulty across tasks. Results indicate that performance under control-flow flattening degrades in proportion to state-space complexity, while adversarial identifier renaming disrupts comprehension through the interaction of semantic displacement and identifier-level interference. These findings suggest that reasoning-tuned LLMs approximate human sensitivity to code complexity more effectively than instruction-tuned variants.
Create a lesson
Metadata
- Comments
- 13 pages, 15 figures
Related papers
OASIF: An Efficient Obfuscation-Aware Self-Improving Framework for LLM-Based Assembly Code Instruction Following and Comprehension
Shared title terminologycs.SEXinyi Wang, Rongze Chen, Ke Wang et al.
Guiding Human Validation of LLM-Generated Code via Verifiable Literate Programming
Shared title terminologycs.SEZiqi Yuan, Wenhao Lu, Hao Wu et al.
EyeMulator: Improving Code Language Models by Mimicking Human Visual Attention
Shared title terminologycs.SEYifan Zhang, Chen Huang, Yueke Zhang et al.
A Large-Scale Comprehensive Measurement of AI-Generated Code in Real-World Repositories
Shared title terminologycs.SETianhao Mao, Dongfang Zhao, Haixu Tang et al.
fx(hash): Salvaging The Source Code of 28k Generative Artworks
Shared title terminologycs.SEBenoit Baudry, Valeriia Bezklynska, Martin Monperrus
Multi-Agent Coordinated Method-Level Refactoring of Rust Code
Shared title terminologycs.SEYijian Zheng, Yi Zhang, Juyuan Zhang et al.