potentialpaper

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

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:21 UTC · 56b1189b428c ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "2AiBLDA67W"
- }
- ],
- "title": "Do LMs Know What Variables Do? Interpreting Code Representations via Variable Roles",
- "authors": [],
- "abstract": "Variable roles describe recurring behaviors such as accumulation, traversal, and retaining the best candidate encountered.\nWe 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.\nWe introduce static annotation rules for all eleven roles and a corpus of 126,926 natural-code files across five languages.\nAcross five model--SAE systems, residual probes outperform individual SAE features and tested lexical baselines, with modest losses after neutral target renaming.\nCombining SAE features closes much of the single-feature gap, but probes on SAE reconstructions are less sensitive to role-changing edits reviewed by LLMs.\nHigh paired ranking accuracy coexists with frequent false positives at fixed thresholds.\nDuring generation, interventions often change role annotations at the cost of correctness; changes accompanied by passing tests show no clear aggregate advantage over random controls.\nThe benchmark separates role-related recoverability, SAE fidelity, and correctness-preserving control through matched prediction, source edits, and generation interventions.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "1f1728ec-9f23-41d5-852c-d2f4e4d12689"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Do LMs Know What Variables Do? Interpreting Code Representations via Variable Roles",
+ "authors": [],
+ "abstract": "Variable roles describe recurring behaviors such as accumulation, traversal, and retaining the best candidate encountered.\nWe 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.\nWe introduce static annotation rules for all eleven roles and a corpus of 126,926 natural-code files across five languages.\nAcross five model--SAE systems, residual probes outperform individual SAE features and tested lexical baselines, with modest losses after neutral target renaming.\nCombining SAE features closes much of the single-feature gap, but probes on SAE reconstructions are less sensitive to role-changing edits reviewed by LLMs.\nHigh paired ranking accuracy coexists with frequent false positives at fixed thresholds.\nDuring generation, interventions often change role annotations at the cost of correctness; changes accompanied by passing tests show no clear aggregate advantage over random controls.\nThe benchmark separates role-related recoverability, SAE fidelity, and correctness-preserving control through matched prediction, source edits, and generation interventions.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}