Sign inGet started
Paper · arXiv

Do LMs Know What Variables Do? Interpreting Code Representations via Variable Roles

Variable roles describe recurring behaviors such as accumulation, traversal, and retaining the best candidate encountered. We use Sajaniemi's independently defined taxonomy to study which role distinctions can be recovered from large language models, how sparse autoencoders (SAEs) retain those distinctions, and whether associated directions support control of generation. We introduce static annotation rules for all eleven roles and a corpus of 126,926 natural-code files across five languages. Across five model-SAE systems, residual probes outperform individual SAE features and tested lexical baselines, with modest losses after neutral target renaming. Combining SAE features closes much of...

AuthorsCélian Vasson, Daniil Ognev, Kentaro Inui et al.
Primary categorycs.CL
Published16 October 2026
Last updated at source16 October 2026
cs.CLcs.LG
Embed this entry
<iframe src="https://silytics.si/embed/item/83143061-ad3c-41d8-be07-3f00220f5653" width="420" height="190" style="border:0" loading="lazy" title="Silytics entry"></iframe>

Free, no tracking. More about feeds and embeds.

Popularity, last 4 days

0 now. Counts as reported by the source, snapshotted daily by Silytics.

Silytics shows public metadata from arXiv and links to the original. Information may be incomplete or out of date. Last refreshed 23 October 2026. Licenses and terms of the original apply to the work itself. Not financial, legal or professional advice.