Research map / Large language models / Agents, code and math
The Larger they are, the Harder they Fail: Language Models do not Recognize Identifier Swaps in Python
Antonio Valerio Miceli-Barone, Fazl Barez, Ioannis Konstas, Shay B. Cohen
University of Edinburgh · Heriot-Watt University
Read the paperPlace an idea next to itCheck your own paper ↗
11measured effects
2improved
4no clear effect
5hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| increase model size | OPT family · Builtin identifier swap (Python) | classification loss: Pearson 0.94 | Hurt |
| increase model size | GPT-3 family · Builtin identifier swap (Python) | classification loss: Pearson 0.97 | Hurt |
| increase model size | CodeGen models · Builtin identifier swap (Python) | classification loss: Pearson 0.46 (multi), 0.10 (mono) | No clear effect |
| increase model size | FLAN-T5 · Builtin identifier swap (Python) | classification loss: Pearson 0.01 | No clear effect |
| increase model size | OpenAI Codex · Builtin identifier swap (Python) | classification loss | Improved |
| instruction tuning (InstructGPT vs base GPT-3) | GPT-3 · Builtin identifier swap (Python) | classification loss | Hurt |
| fine-tune on Python-only data (CodeGen-mono vs multi) | CodeGen · Builtin identifier swap (Python) | classification loss | Hurt |
| fine-tune code-davinci-002 on English demonstrations (GPT-3.5) | code-davinci-002 · Builtin identifier swap (Python) | classification loss | Hurt |
| increase model size | Anthropic chat models (claude-instant, claude) · Builtin swap, chat pairwise choice | accuracy: 10-18% accuracy | Improved |
| increase model size | OpenAI chat models (gpt-3.5-turbo, gpt-4) · Builtin swap, chat pairwise choice | accuracy: < 4% accuracy | No clear effect |
| hint the correct solution over multiple dialogue turns | ChatGPT-3.5 and GPT-4 · Builtin swap (manual) | correct continuation | No clear effect |
Open problems in code generation benchmarks
Do code benchmarks and methods hold beyond Python, small test sets and leaked data?
- Tested on Python or a few languages, so other languages are untested. · 25 papers state it
- Benchmarks are small, with a few dozen to a few hundred problems. · 14 papers state it
- Iterative or multi-step methods cost more tokens, latency and compute. · 12 papers state it
Closest papers by meaning
- Rewriting Pre-Training Data Boosts LLM Performance in Math and Code (ICLR 2026 · similarity 0.89)
- On Code-Induced Reasoning in LLMs (ICLR 2026 · similarity 0.89)
- BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions (ICLR 2025 · similarity 0.88)
- InverseCoder: Self-improving Instruction-Tuned Code LLMs with Inverse-Instruct (AAAI 2025 · similarity 0.88)
- What Makes Large Language Models Reason in (Multi-Turn) Code Generation? (ICLR 2025 · similarity 0.87)
- Beyond Accuracy: Evaluating Self-Consistency of Code Large Language Models with IdentityChain (ICLR 2024 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.