Papers › AutoIndex: Learning Representation Programs for Retrieval

AutoIndex: Learning Representation Programs for Retrieval

21 Jul 2026arXiv:2607.18603added by Syntology

Sam O'Nuallain, Nithya Rajkumar, Ramya Narayanasamy, Hanna Jiang, Shreyas Chaudhari, Andrew Drozdov

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

We present AutoIndex, a framework for learning representation programs: executable transformations that map raw documents into the representations exposed to a retrieval system. Rather than tuning retrievers, rerankers, or a small set of preprocessing hyperparameters, AutoIndex searches over programs that slice, enrich, normalize, reweight, or reorganize documents before indexing. At each iteration, AutoIndex performs validation-guided program search, in which agents diagnose failures of the current program and synthesize candidate updates, retaining only updates that improve retrieval quality under the resulting index. We evaluate AutoIndex on CRUMB, a benchmark of heterogeneous retrieval tasks, with BM25 held fixed across all experiments. The learned programs improve recall over a static full-document BM25 baseline on all 8 tasks, with average gains of +8.4% in Recall@100 and +8.3% in nDCG@10, and largest gains of +30.5% in Recall@100 and +43.6% in nDCG@10. These results suggest that document representation should not be treated as a fixed preprocessing choice made before retrieval begins, but as an explicit optimization target. Code to reproduce our results is available at https://github.com/auto-index/autoindex.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2607.18603")

Code

Syntology Ran 8 of 11 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 1 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: found in paper text by Syntology: 11 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

auto-index/autoindex found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 8 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
1ran · fixture could not drive it
4ran
3unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from auto-index/autoindex. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Hypothesis auto-index/autoindex/src/agents/analysis_code_agent/code_agent.py found in paper text by Syntology ran · metamorphic tier: deterministic MIT (permissive) · c6a20ef7f9b42f90 · report
_Choice auto-index/autoindex/src/agents/analysis_code_agent/code_agent.py found in paper text by Syntology ran · metamorphic tier: deterministic MIT (permissive) · f406220751c5b51b · report
_Message auto-index/autoindex/src/agents/analysis_code_agent/code_agent.py found in paper text by Syntology ran · metamorphic tier: deterministic MIT (permissive) · 7e3f2959dc03518b · report
_Usage auto-index/autoindex/src/agents/analysis_code_agent/code_agent.py found in paper text by Syntology ran · metamorphic tier: deterministic MIT (permissive) · 21196f7236799cfd · report
_acall_litellm auto-index/autoindex/src/agents/analysis_code_agent/code_agent.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 81e5088bdb5e0e20 · report
_call_litellm auto-index/autoindex/src/agents/analysis_code_agent/code_agent.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 74a8b0c833bfe34c · report
async_completion auto-index/autoindex/src/agents/analysis_code_agent/code_agent.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · a1f88d71a830a816 · report
completion auto-index/autoindex/src/agents/analysis_code_agent/code_agent.py found in paper text by Syntology ran · fixture could not drive it MIT (permissive) · 4c672d8bf8427550 · report
CodeAgent auto-index/autoindex/src/agents/analysis_code_agent/code_agent.py found in paper text by Syntology unverified MIT (permissive) · c88c318aca921ea6 · report
HypothesisResult auto-index/autoindex/src/agents/analysis_code_agent/code_agent.py found in paper text by Syntology unverified MIT (permissive) · 73b5fe680a95cce8 · report
_Response auto-index/autoindex/src/agents/analysis_code_agent/code_agent.py found in paper text by Syntology unverified MIT (permissive) · 8ae6d71349d2cd3f · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2607.18603, was issued in July 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections