Schrödinger's Code Repository: Have LLMs Learned SWE-bench or Memorized It?
Silin Chen, Yufei Yang, Xiaodong Gu, Yuling Shi, Chengcheng Wan, Haibing Guan
Shanghai Jiao Tong University · Xi'an Jiaotong University · East China Normal University · Shanghai Innovation Institute
Published August 21, 2026 · on the feed September 24, 2026 · ▲ 20 · arXiv 2609.27891
The abstract
Repository-level coding benchmarks have become the standard for evaluating coding agents, yet they inherently suffer from data leakage because they are built upon popular open-source repositories repeatedly used for training. Consequently, strong performance may reflect memorization of canonical repository cues rather than robust repository reasoning. We propose SchrodingerRepo (Schrödinger's Repository), an evaluation framework for testing coding agents under dynamically instantiated repository representations. Instead of repeatedly using a static representation of the test repository, SchrodingerRepo treats the test repository as an evaluation-time latent variable that is dynamically instantiated only when the agent enters the evaluation environment. The instantiated repository preserves the original executable behavior while eroding familiar cues such as naming conventions, file layouts, and implementation patterns through four transformation levels: problem statement reconstruction, namespace remapping, intra-file layout reordering, and functionality-preserving code rewriting. We evaluate popular LLMs on SWE-bench Verified and SWE-QA. Results show that removing familiar repository cues consistently degrades agent performance and substantially increases interaction costs across models. Further analysis reveals that the additional cost is primarily caused by increased difficulty in repository exploration and localization. These findings suggest that current coding agents may partially rely on memorized repository-side cues, highlighting the need for evaluation under dynamically instantiated repository representations.
The Brief
2:48A short podcast summary of the paper. Written and voiced by AI.
Transcript
Schrödinger's Code Repository. Have LLMs Learned SWE-bench or Memorized It?. By Silin Chen and five others, from Shanghai Jiao Tong University, Xi'an Jiaotong University, and two other institutions. Published on the twenty-first of August. Its code repository is worked out: about one hundred and sixty source files, with a readme and a licence.
Repository-level coding benchmarks have become the standard for evaluating coding agents. They carry an inherent risk of data leakage, because they are built on popular open-source repositories that are used repeatedly for training. Strong performance may therefore reflect memorization of canonical repository cues rather than robust reasoning about the repository. An agent that has seen a repository many times in training may know where a bug lives from the file names alone. A high score would then say more about familiarity than about skill.
SchrodingerRepo, short for Schrödinger's Repository, is an evaluation framework that tests coding agents under repository representations instantiated dynamically. It does not reuse one static representation of the test repository. It treats the repository as a latent variable at evaluation time, instantiated only when the agent enters the evaluation environment. Like the cat in the famous thought experiment, the repository has no settled form until it is observed. There is no fixed copy for a model to have seen in advance, because each evaluation produces its own.
The instantiated repository preserves the original executable behavior, while familiar cues such as naming conventions, file layouts and implementation patterns are eroded. There are four transformation levels: reconstructing the problem statement, remapping the namespace, reordering the layout within files, and rewriting code while preserving functionality. Popular language models are evaluated on SWE-bench Verified and SWE-QA. The levels move from the surface toward the substance. The first changes only how the problem is described, the middle two change names and arrangement, and the last changes the code itself while keeping what it does.
Removing familiar repository cues consistently degrades agent performance, and substantially increases interaction costs, across models. Further analysis traces the added cost mainly to increased difficulty in exploring the repository and localizing within it. Put simply, when the repository no longer looks the way it usually does, agents take longer to find their way around it and to find where the problem is. Since the executable behavior is unchanged, the task itself is no harder. Only the familiarity is gone.
Current coding agents, the authors suggest, may partly rely on memorized, repository-side cues. If so, a benchmark whose repository looks the same every time it is run measures some recall along with reasoning, and the authors argue for evaluation under repositories instantiated fresh at test time.
Paper Quest · 7 chapters · about 41 min
Play this paper
Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.
Chapter 1 🧩 · The problem
A high score on a famous benchmark is good news, unless the model has seen the test before.
You score coding agents on a popular benchmark of real GitHub issues. The scores look strong, but every repository in it is a famous open-source project that models have seen again and again in training.
The road ahead
- 1 · The problem ~7 min A coding benchmark built on famous repositories cannot easily tell whether an agent reasons about code or simply remembers that code from training.
- 2 · What came before ~3 min
- 3 · The key idea ~9 min Show the agent a freshly disguised repository at each run that behaves exactly the same, so a drop in score suggests reliance on familiarity.
- 4 · Choose your own research ~3 min
- 5 · Build the method ~8 min Four transformation levels reword, rename, reorder and rewrite the repository, then agents are evaluated on the resulting view.
- 6 · The experiment ~6 min You’ll guess: When familiar repository cues were removed, where did coding agents' extra interaction cost mostly come from?
- 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Free, with Google or an email address. Your stars and progress are kept.