Same Scrutiny, More Time: Eye Tracking Insights into Reviewing LLM-Labelled Code
Paper i proceeding, 2026

Modern software development increasingly involves the use of large language models (LLMs) to generate code. Despite their rapid advancement, LLMs remain prone to errors and hallucinations, emphasizing the importance of careful code inspection. However, in practice, developers’ trust in LLM-generated code and their willingness to review it thoroughly may not align with these recommendations, which is a gap that remains largely unexplored. In this study, we conduct a Wizard-of-Oz experiment to examine how software engineers behave when code is explicitly labelled as LLM-generated during a code review task. We collect both behavioral data and participant feedback through eye-tracking and exit interviews. Combining Bayesian data analysis with qualitative analysis, we found that while the thoroughness of code review did not change for participants, they spent more time fixating on LLM-labelled code, indicating that the label itself influences attention. Practitioners also adapted their review strategy for LLM-labelled code by assessing the code based on specific criteria (e.g., logical correctness), or using the prompt to guide their review. These findings inform LLM-based tool design on labelling while incorporating the prompt as a software artifact. Our study reveals a gap between reviewers’ intentions and actual reviewing behaviour, highlighting the need for software companies to revisit their AI policies (particularly regarding LLM-assisted development) to better support developers in reviewing LLM-generated code.

Code review

Large language models

Eye tracking

Författare

Ranim Khojah

Chalmers, Data- och informationsteknik, Interaktionsdesign och Software Engineering

Francisco Gomes

Chalmers, Data- och informationsteknik, Interaktionsdesign och Software Engineering

Mazen Mohamad

RISE Research Institutes of Sweden

Julian Frattini

Chalmers, Data- och informationsteknik, Interaktionsdesign och Software Engineering

Philipp Leitner

Chalmers, Data- och informationsteknik, Interaktionsdesign och Software Engineering

Proceedings 2026 Proceedings of the 41st IEEE ACM International Conference on Automated Software Engineering Ase 2026

1170-1181
9798400728822 (ISBN)

41st IEEE/ACM International Conference on Automated Software Engineering, ASE 2026
Munich, Germany,

Ämneskategorier (SSIF 2025)

Programvaruteknik

DOI

10.1145/3832783.3834423

Mer information

Senast uppdaterat

2026-12-02