Study tests whether language models recognize variable roles in code
Key points
- Researchers used Sajaniemi's taxonomy of eleven variable roles, such as accumulation and traversal, to probe code models.
- Residual probes beat individual sparse autoencoder features and lexical baselines across five model-SAE systems.
- Interventions often altered role annotations but usually cost correctness; test-passing edits showed no clear advantage over random controls.
- The benchmark uses 126,926 natural-code files in five languages; the paper was submitted to arXiv on 16 October 2026.
Why it matters for marketers: Teams building code-generation tools should note that steering model behavior by role often breaks correctness, so evaluate edits against tests before relying on them.