mlsanityData to 7 Oct 2026

Leveraging Large Language Models to Obscure Code Stylometry: A Comparative Study of GPT-3.5 and GPT-4

arXiv 2606.22306 ↗First posted 21 Jun 2026cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

In the rapidly evolving field of software development, code stylometry analyzing unique stylistic signatures of programmers plays a crit-ical role in authorship attribution and cybersecurity. Recent advancements in artificial intelligence, particularly Large Language Models (LLMs) like GPT-3.5 and GPT-4, have introduced new dimensions to this field, challenging traditional stylometry techniques. This study investigates the effectiveness of LLMs in altering code stylometry while preserving functionality and evaluates the impact of various prompt engineering strategies. Through comprehensive experiments, we assess how well these models can obscure stylistic signatures to avoid detection by a Random Forest classifier trained for authorship attribution. The results reveal significant differences in effectiveness between single-shot and multi-shot methods and highlight the importance of detailed, structured prompts. Additionally, functionality preservation checks demonstrate the challenges in maintaining code integrity post-modification. This research provides critical insights into the robustness of authorship attribution techniques against advanced AI capabilities, informing future cybersecurity and software engineering developments

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 2 of its 12 references that are in the map. First posted on arXiv 21 Jun 2026.

Builds on

2 of 12 references.

References · 2

  1. 2020Unit Test Case Generation with Transformers and Focal Contextcited by 118
  2. 2015When Coding Style Survives Compilation: De-anonymizing Programmers from Executable Binariescited by 11

Built on by

Not cited yet.