The Code Barrier: What LLMs Actually Understand?

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Nikiema, Serge Lionel, Samhi, Jordan, Kaboré, Abdoul Kader, Klein, Jacques, Bissyandé, Tegawendé F.
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913794426404864
author Nikiema, Serge Lionel
Samhi, Jordan
Kaboré, Abdoul Kader
Klein, Jacques
Bissyandé, Tegawendé F.
author_facet Nikiema, Serge Lionel
Samhi, Jordan
Kaboré, Abdoul Kader
Klein, Jacques
Bissyandé, Tegawendé F.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2504_10557
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle The Code Barrier: What LLMs Actually Understand?
Nikiema, Serge Lionel
Samhi, Jordan
Kaboré, Abdoul Kader
Klein, Jacques
Bissyandé, Tegawendé F.
Software Engineering
Artificial Intelligence
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.
title The Code Barrier: What LLMs Actually Understand?
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2504.10557