AutoIndex: Learning Representation Programs for Retrieval

Hugging Face Daily Papers Papers

Summary

AutoIndex is a framework that learns executable representation programs to transform documents before indexing, improving retrieval quality over static BM25 baselines by average 8.4% Recall@100 and 8.3% nDCG@10.

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.
Original Article
View Cached Full Text

Cached at: 07/22/26, 10:46 PM

Paper page - AutoIndex: Learning Representation Programs for Retrieval

Source: https://huggingface.co/papers/2607.18603

Abstract

WepresentAutoIndex,aframeworkforlearningrepresentationprograms:executabletransformationsthatmaprawdocumentsintotherepresentationsexposedtoaretrievalsystem.Ratherthantuningretrievers,rerankers,orasmallsetofpreprocessinghyperparameters,AutoIndexsearchesoverprogramsthatslice,enrich,normalize,reweight,orreorganizedocumentsbeforeindexing.Ateachiteration,AutoIndexperformsvalidation-guidedprogramsearch,inwhichagentsdiagnosefailuresofthecurrentprogramandsynthesizecandidateupdates,retainingonlyupdatesthatimproveretrievalqualityundertheresultingindex.WeevaluateAutoIndexonCRUMB,abenchmarkofheterogeneousretrievaltasks,withBM25heldfixedacrossallexperiments.Thelearnedprogramsimproverecalloverastaticfull-documentBM25baselineonall8tasks,withaveragegainsof+8.4%inRecall@100and+8.3%innDCG@10,andlargestgainsof+30.5%inRecall@100and+43.6%innDCG@10.Theseresultssuggestthatdocumentrepresentationshouldnotbetreatedasafixedpreprocessingchoicemadebeforeretrievalbegins,butasanexplicitoptimizationtarget.Codetoreproduceourresultsisavailableathttps://github.com/auto-index/autoindex.

View arXiv pageView PDFProject pageGitHubAdd to collection

Get this paper in your agent:

hf papers read 2607\.18603

Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash

Models citing this paper0

No model linking this paper

Cite arxiv.org/abs/2607.18603 in a model README.md to link it from this page.

Datasets citing this paper0

No dataset linking this paper

Cite arxiv.org/abs/2607.18603 in a dataset README.md to link it from this page.

Spaces citing this paper0

No Space linking this paper

Cite arxiv.org/abs/2607.18603 in a Space README.md to link it from this page.

Collections including this paper0

No Collection including this paper

Add this paper to acollectionto link it from this page.

Similar Articles

RL-Index: Reinforcement Learning for Retrieval Index Reasoning

Hugging Face Daily Papers

RL-Index proposes a reinforcement learning-based agentic indexing framework that shifts reasoning from query time to the indexing stage by augmenting documents with LLM-generated rationales, improving retrieval effectiveness and reducing online latency.