Manuscript Offprint
arXiv:2610.10091ExperienceIndex: Artifact-Grounded Memory
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Knowledge-intensive tasks in domains like law, science, and technology require answering many questions by reasoning about a shared corpus of artifacts (e.g. court cases, scientific literature, or software libraries). As humans interact with these corpora, they naturally accumulate experiential knowledge about artifacts, enabling them to quickly identify the complete set of relevant artifacts for each new task. However, existing AI agents lack appropriate memory solutions to build or reuse such artifact-grounded experience, leading to lower answer quality and higher online cost. Existing memory solutions extract and reuse information from prior task-solving traces, but they primarily focus on user preferences, factual attributes, or abstract reasoning patterns rather than persistent artifact-specific knowledge. We introduce ExperienceIndex, a novel experience layer for AI agents that captures and reuses knowledge about artifacts based on prior reasoning traces. ExpIdx stores two complementary forms of experience: (i) single-artifact experiences that summarize an artifact's contribution to prior tasks and (ii) artifact-pair experiences that encode structural relationships discovered during past reasoning. Integrated as lightweight middleware, ExpIdx uses an experience retrieval mechanism to guide agents toward the complete set of relevant artifacts for new tasks, improving both answer quality and efficiency. Across diverse corpora and agentic solutions with different search frameworks, ExpIdx delivers consistent gains, raising answer quality by up to 11.0 points and reducing online dollar cost by up to 50.5%. We further demonstrate two benefits: (i) cross-task generalization, where experiences accumulated from text-to-SQL tasks transfer to factoid QA tasks over the same artifact corpus, and (ii) teacher-student learning, where experiences from a stronger model enable a weaker model to reach comparable performance. These results highlight ExpIdx as a general, modular approach for enabling agents to build and leverage persistent, artifact-grounded experience.
1 INTRODUCTION
Knowledge-intensive fields, such as law, consulting, technology, and science, require humans to solve many different tasks using a shared corpus of artifacts, including documents, tables, files, and codebases. For humans, repeated interaction with this corpus does more than resolve each individual task: it gradually builds familiarity with the corpus itself. The first encounter is slow and labor-intensive, involving extensive reading and tracing cross-references to figure out which artifacts matter. Over time, however, repeated interactions leave behind conceptual anchors tied to specific artifacts: mental notes or literal sticky notes like “this table contains revenue from 2015–2025” or “ignore that tax document; it does not mention Delaware.” When new tasks appear, humans draw on this accumulated artifact-grounded experience to quickly identify the complete set of relevant information, improving both answer quality and efficiency.
While humans naturally accumulate experiential knowledge about artifacts that they have previously examined, today's agentic systems rely on external memory mechanisms to achieve statefulness across tasks and sessions. However, existing memory mechanisms are limited: they store user preferences or facts (OpenAI; Chhikara et al., 2025) or rely on ad-hoc scratchpad mechanisms (Anthropic). Several abstracted-memory mechanisms have also been proposed (Suzgun et al., 2026; Chen et al., 2025b; Ouyang et al., 2025), focusing primarily on extracting and reusing generalizable reasoning patterns.
Time User task 1: Show me the distribution of products prices by quarters since 2018 sourced from Delaware and their supply costs.
Without ExperienceIndex
search("prices...")
sales1
sales2
N rounds
Reasoning: The sales1 table has product prices from 2018 to 2019. sales2 contains product prices from 2020-2026. Both sales2 and costs1.pdf mention Delaware, so...
Response: The distribution of...
With ExperienceIndex
search("prices...")
sales1
sales2
N rounds
Experience extraction
ExperienceIndex
Contains product prices from 2018-2019.
Contains product prices from 2020-2026.
Costs1.pdf
Connected via Delaware.
Reasoning: The sales1 table has product prices from 2018 to 2019.
sales2 contains product prices from 2020-2026.
Both sales2 and
costs1.pdf mention Delaware,
so I can use the costs from costs1.pdf
and the data in sales1 and sales2 to get the distribution of product prices...
Response: The distribution of product prices is...
Time User task 2: What is our revenue from 2020 to 2025 (inclusive) and the corporate tax we need to pay?
Without ExperienceIndex
search("revenue from 2020 to 2025")
sales1
sales15
Reasoning: sales1 does not have data from '20-'25.
sales15 has data from '05-'25,
covering California. I will fetch
the corporate tax rates for it...
With ExperienceIndex
search("revenue from 2020 to 2025")
sales1
sales15
sales2
costs1.pdf
From A, sales1 is irrelevant because time period does not overlap.
From B, sales2 is introduced because the time period overlaps.
From C, costs1.pdf is introduced because it is connected to sales2.
This answer is incomplete (missing Delaware).
Reasoning: sales15 has data from '05-'25, covering California. I will fetch the corporate tax rates for it. I also need to explore sales2, which covers Delaware, and thus is also related to costs1.pdf...
This answer is complete (accounts for California and Delaware).
Figure 1: ExpIdx (green) and its integration into an agentic solution as middleware. Without ExpIdx, an agentic solution iteratively explores the artifact corpus for each user task using search tools, possibly in many rounds, to gather the complete information needed to solve the task (an error-prone and inefficient process). ExpIdx optimizes this process by giving the agent the full set of relevant artifacts derived from past experiences, improving answer quality while reducing execution cost.
For example, Suzgun et al. (2026) extracts key solution strategies from reasoning traces of past math problems to improve accuracy: “1. State problem requirement clearly 2. List key [...] theorems applicable...”. Similarly, Ouyang et al. (2025) extracts key web navigation strategies from past reasoning traces to improve efficiency: “Use filter buttons instead of scrolling to navigate to products of certain categories”. However, these approaches still do not address the challenge of retaining and reusing artifact-specific knowledge.
We introduce ExperienceIndex (abbreviated as ExpIdx), a novel experience layer for AI agents that accumulates analysis from prior tasks (task 1 in the example illustrated in Figure 1) and grounds these experiences in the specific artifacts involved (sales1, sales2, costs1.pdf). Concretely, experiences are represented through (i) single-artifact experiences that capture how specific artifacts contribute to solving prior tasks (A and B) and (ii) artifact-pair experiences that encode previously discovered structural connections between artifacts (C). ExpIdx then acts as a middleware between past experiences and model context that aims to use experience retrieval to filter out irrelevant artifacts (sales1) and identify the full set of relevant ones (sales2 and costs1.pdf) for future tasks (task 2), improving answer quality while reducing computational cost.
Extending from the example in Figure 1, we highlight two key dimensions of ExpIdx's generality. First, ExpIdx stores experiences over single artifacts or artifact pairs, independent of modality, which allows it to support a wide range of real-world workloads operating over a shared corpus, including conversation logs, code repositories, scientific literature, and relational tables. Second, ExpIdx functions as a lightweight middleware layer, enabling it to integrate with diverse search frameworks across different solutions, such as pipelined retrieval components, retriever-based tools, or file-system-based agentic search. To validate this generality, we evaluated ExpIdx across a broad suite of knowledge-intensive tasks and heterogeneous search frameworks (Table 1). Across all settings, relative to existing agentic solutions, ExpIdx consistently improves answer quality by up to 11.0 points while reducing online cost by up to 50.5% (Table 2). We further observe additional benefits of our solution: (i) cross-task generalization where experiences populated by ExpIdx from text-to-SQL tasks can also benefit factoid QA tasks over the same table corpus (Table 2), and (ii) teacher-student learning where experiences from a stronger model allow a weaker model to reach comparable performance (Table 4).
Offline corpus enrichment. Prior work (Chen et al., 2025a; Edge et al., 2024; Gospodinov et al., 2023; Gutiérrez et al., 2024) has explored enriching corpus artifacts offline to enhance retrieval quality. These approaches augment artifacts with annotations, such as layperson summaries, synthetic question-answer pairs, or graph-structured representations. But these methods have limitations: (i) the annotations are generated without visibility into downstream tasks, so their benefit for real retrieval needs may be limited; (ii) they incur substantial up-front cost, since every artifact (or combinations of artifacts) must be processed in advance; and (iii) they assume access to the entire corpus during offline indexing (often unrealistic, e.g., for open-web content). In contrast, ExpIdx updates its memory store continually and incrementally, based solely on artifacts that appear in the prior reasoning traces of executed tasks. This design allows ExpIdx to (i) evolve in response to real task demands, (ii) avoid up-front cost, and (iii) operate without assuming global corpus visibility.
3 EXPERIENCE INDEX
This work focuses on tasks involving reasoning over a shared corpus of artifacts, structured as pairs of <artifact_id, artifact_content> along with optional metadata (with artifact_id auto-populated when absent). Today's AI agents typically approach such tasks using a ReAct loop (Yao et al., 2022) built on top of a solver model M and a search framework R comprising tools (e.g., vector_search, bash). The agent iteratively explores the corpus to retrieve information needed to solve the task (see Figure 1, left half). However, as discussed in Sections 1 and 2, existing memory solutions fail to capture and reuse experiential knowledge about artifacts the agent has previously examined. As a result, they miss opportunities to accelerate and improve retrieval and reasoning on future tasks. To address this gap, we introduce ExpIdx, which treats artifacts as anchors for persistent memory.
Algorithm 1 illustrates how ExpIdx integrates with the agentic setup described earlier. At its core is a memory store that accumulates experiences extracted from past reasoning traces, which are indexed by artifact_ids. When a new task arrives, ExpIdx acts as middleware between the memory store and the model context: it retrieves relevant past experiences based on the task description (line 4) or on the set of artifact_ids (line 10) returned by the search framework (line 9), and injects them into the model context (lines 5 and 11). After the agent completes its reasoning, ExpIdx extracts and stores experiences about the artifacts used in the reasoning trace (line 13). Because ExpIdx derives knowledge about artifacts from the model's reasoning traces, the types of artifacts it supports align with M's modalities. If M is text-only, ExpIdx supports text-based artifacts (e.g., text documents, code files) or artifacts that can be transcribed into text. If M is multi-modal and supports images or other modalities, ExpIdx can likewise support artifacts in those formats. Additionally, ExpIdx is compatible with different search frameworks R whose outputs include artifact_ids (line 9), enabling retrieval of relevant past experiences as detailed above.
To enable the above process over diverse corpora, ExpIdx must (i) store experiences in a domain-agnostic representation (Section 3.1), (ii) retrieve experiences relevant to a new task (Section 3.2), (iii) inject them into the model context (Section 3.3), and (iv) extract and index new experiences from the model's reasoning traces (Section A.2).
Algorithm 1 ExpIdx integrated into a standard agentic solution with a solver model M, and a search framework R (e.g., vector_search) over a corpus C of artifacts A ( refers to the artifact_ids). Green text shows additions introduced by ExpIdx.
Require: Solver model M, search tool R, corpus C, system prompt P, memory store S
1: Input: Input task t, Output: An answer
2: function RETRIEVEEXPERIENCE(S: Memory store, q: Query, : Artifact IDs)
3: Returns relevant experiences and associated artifacts See Section 3.2.
4: RETRIEVEEXPERIENCE(S, t, {}) Fetch artifacts with experiences relevant to task t
5: Inject into system prompt P See Section 3.3.
6: Initialize message history with system prompt and other metadata (e.g., tool definitions)
7:
8: while y is not the final response do
9: Returns artifacts and their IDs relevant to model-generated query q
10: RETRIEVEEXPERIENCE(S, q, ) Refine searched artifacts based on past experiences
11: Append refined tool output to H See Section 3.3.
12:
13: Enqueue update to S using reasoning trace extracted from H See Section A.2.
14: output Model response y
3.1 EXPERIENCE REPRESENTATION
A model’s success on tasks that require artifact-corpus search depends on two aspects: relevance and completeness of searched artifacts. Consequently, ExpIdx’s experience representation centers around artifacts. This design (i) ensures that past experiences about specific artifacts can be used to improve both aspects in future tasks, thereby enhancing answer quality, and (ii) allows models to reference prior analyses about artifacts instead of repeatedly performing extensive reasoning from scratch, reducing computational cost. To this end, we introduce a domain-agnostic representation of experience at two complementary levels: single-artifact experience and artifact-pair experience. Single-artifact experience captures learnings about how individual artifacts helped solve previous tasks (e.g., A and B in the example illustrated in Figure 1). It is drawn on to assess the relevance of an artifact for a future task. Artifact-pair experience records previously observed meaningful relationships between artifacts (e.g., C), helping surface related artifacts that the model might otherwise miss and thereby improve the completeness of information.
Single-artifact experience. For each artifact used in prior tasks (e.g., sales1, sales2), ExpIdx records (i) a task description, which captures the descriptions of past tasks in which the artifact was used; (ii) a contribution summary, which provides a concise explanation of how the artifact contributed to solving each task (e.g., “sales1 contains product prices from 2018-2019” from A), and (iii) snippets, which contain the specific portions of the artifact that were used during task solving, optionally augmented with location metadata such as line numbers or offsets to help models quickly locate relevant information. These three domain-agnostic attributes capture how an artifact was used in past tasks. They provide signals about an artifact’s potential relevance (or irrelevance) for future tasks. Furthermore, snippets capture only the most pertinent content, which helps models avoid reprocessing large amounts of irrelevant material from the same artifact.
Artifact-pair experience. ExpIdx represents artifact-pair experiences using relationships, which describe structural connections between pairs of artifacts. For example, relationships between a document and another document or table may be defined by overlapping entities (e.g., “sales2 and costs1.pdf are connected via Delaware” from ©), while relationships between two tables may be defined by joinable columns. This design allows ExpIdx to capture meaningful co-occurrences between artifacts so that models can be proactively introduced to the neighbors of relevant artifacts. These are neighboring artifacts that might otherwise be missed or require multiple rounds of retrieval and reasoning to discover.
3.2 EXPERIENCE RETRIEVAL
We can now look at ExpIdx's experience retrieval mechanism (RETRIEVEEXPERIENCE(S, q, ) in Algorithm 1), which identifies relevant experiences and their associated artifacts to guide a model's retrieval and reasoning behavior in a new task. A natural retrieval strategy is to use lexical or semantic similarity between the input queries and past experiences (e.g., descriptions of new and past tasks). However, we also observe that models are increasingly leveraging file-system-based search tools (Wang et al., 2024; 2025) to inspect artifacts when solving tasks. This behavior creates an opportunity to also search over past experiences about artifacts involved with such tools. Accordingly, our experience retrieval process takes as input a text query q and, optionally, a set of artifact_ids . To return information that is both relevant and complete, the retrieval process proceeds as follows. We first retrieve a set of candidate artifacts by consulting single-artifact experience. We then employ an off-the-shelf LLM to assess the relevance of each candidate artifact to q. For candidate artifacts deemed relevant, we further consult artifact-pair experience to introduce their neighboring artifacts.
Candidate artifacts. Taking the set of all single-artifact experiences E, we embed the input text query q using an off-the-shelf embedding model and retrieve the top-k most relevant experiences from E along with their associated artifact. We compute relevance using a combined similarity between the query embedding and the embeddings of each past experience's task description and contribution summary. If a set of artifact_ids is provided, we additionally perform artifact-conditioned retrieval. For each , we consider only the single-artifact experiences associated with , denoted , and select the top-k experiences from based on the same combined similarity between the query embedding and the embeddings of the past task descriptions and contribution summaries. We then union the artifacts retrieved through q and (if available) to form a set of candidate artifacts.
Artifact relevance analysis. To ensure that the candidate set only contains relevant artifacts and experiences, we apply an off-the-shelf LLM (GPT-5-Mini by default) to classify each candidate artifact, based on its associated experiences, as relevant, irrelevant, or inconclusive for the input query q. If an artifact is deemed relevant, the LLM also identifies which specific experiences are relevant. We then prune the artifacts and experiences deemed irrelevant. We provide detailed prompts in Section B.1. As shown in the example in Figure 1, sales1 is determined irrelevant because from experience A, its time period does not overlap with the required period of 2020-2025, while sales2 is determined relevant because from experience B, its time period overlaps.
Neighboring artifacts. To improve completeness, we consult the artifact-pair experience, which captures co-occurrence patterns and relationships between artifacts. For each candidate artifact deemed relevant, we fetch its neighboring artifacts and apply the relevance analysis described above. We retain only the neighbors classified as relevant. For instance, costs1.pdf is retrieved as a neighboring artifact of sales2 via the connecting entity “Delaware” shown in C.
3.3 EXPERIENCE INJECTION
Once relevant artifacts and associated experiences are retrieved, they are used to guide the model's behavior. Under a typical agentic setting shown in Algorithm 1 with a predefined search framework, we identify two primary non-parametric components that influence model behavior and remain mutable at runtime: (i) the outputs of search frameworks, and (ii) the model prompt context. However, both components, by default, operate without awareness of prior experiences. To bridge this gap, ExpIdx provides a unified middleware layer that injects retrieved experiences (Section 3.2) by enriching both searched artifacts and the model prompt before they reach the model. Because of the lightweight and non-invasive nature of middleware, ExpIdx can be easily integrated with common search frameworks, such as retrieve-then-rerank pipelines in traditional retrieval-augmented generation systems (Lewis et al., 2020), retrieval tools invoked within agentic systems (Yao et al., 2022), and agentic search with file system tools (Wang et al., 2025).
Search framework output. A standard search framework takes a query q as input and returns a set of artifacts A together with their IDs (line 9 in Algorithm 1) to the model. Our middleware enriches this output by intercepting A before it reaches the model: it performs experience retrieval using q and , and then modifies the tool output based on the retrieved experience. In the example shown in Figure 1, for task 2 without ExpIdx, the search tool returns A, which includes sales1 and sales15, introducing irrelevant artifacts and incomplete information. With ExpIdx, is refined: sales1 is pruned, and sales2 and costs1.pdf are introduced before passed to the model. We give the details of our tool-response modification mechanism in Section A.1.
Model prompt. Our middleware also enriches the model prompt to complement tool response enrichment. Given the task , we perform experience retrieval based on and inject the relevant experiences directly into the system prompt using the formatting described in Section B.2. Placing relevant experiences in the initial system prompt exposes the agent to useful prior knowledge before it performs extensive reasoning and issues tool calls, enabling earlier guidance and reducing the risk of suboptimal reasoning caused by delayed access to helpful experiences.
Lightweight reflection. The prompt also includes a lightweight reflection step that instructs the agent to (1) assess the relevance of the retrieved experience and artifacts and disregard irrelevant ones, and (2) verify experiences against the current artifacts, giving them priority over past experiences in the event of discrepancies caused by hallucinations, errors, or outdated information.
4 EXPERIMENTS
4.1 SETUP
Table 1: Details on datasets and baseline solutions.
| Dataset | Domain | Modality | Task type | Baseline solution | Search frameworks |
|---|---|---|---|---|---|
| Locomo (Maharana et al., 2024) | General | Files | Conversational QA | ReAct (Yao et al., 2022) | File-system search (e.g., bash) |
| SWE-bench-ver. (Jimenez et al., 2023) | Tech | Files | Bug fixes | ReAct | File-system search |
| SQA (Bragg et al., 2025) | Science | Documents | Long-form generation | ScholarQA (Singh et al., 2025) | Custom retrieve-and-rerank to Semantic Scholar |
| Freshstack (Thakur et al., 2025) | Technical doc. | Documents | Long-form generation | ReAct | Vector search tool (Qwen3-0.6B-Embedding) |
| Musique (Trivedi et al., 2022) | General | Documents | Multi-hop QA | ReAct | Vector search tool (Qwen3-8B-Embedding) |
| Spider (Yu et al., 2018) | Misc. | DB Tables | Text-to-SQL | ReAct | Vector search tool (Q8B-Embed), SQL execution tool |
| MMQA (Wu et al., 2025) | Misc. | DB Tables | Factoid QA | ReAct | Vector search tool (Q8B-Embed), SQL execution tool |
Datasets and baseline solutions. As discussed in Section 1, ExpIdx is designed with two forms of generality: it supports a broad spectrum of workloads that operate over a shared corpus of artifacts, and it integrates with diverse search frameworks used across different solutions. To evaluate this generality, we selected a suite of knowledge-intensive tasks spanning multiple domains, modalities, and task types. As the baseline solution, we use the state-of-the-art ScholarQA (Singh et al., 2025) for the SQA dataset, and ReAct (Yao et al., 2022) for all remaining datasets, as it represents the standard agentic approach. Our ReAct implementation is augmented with the commonly adopted set of search tools described in Chang et al. (2026). Table 1 shows a summary of these datasets and baselines (details in Section D).
Baselines. We compare against two baselines, one from each category of related work discussed in Section 2: long-term memory and offline enrichment. Like ExpIdx, both generalize across a wide range of datasets.
- Memory baseline. We adopt ReasoningBank (Ouyang et al., 2025) as a representative abstracted memory baseline, which extracts reasoning patterns from previous tasks and reuses them on new ones. Given past reasoning traces, ReasoningBank extracts generalizable insights into discrete memory items and stores them in a memory store. When a new task
arrives, it retrieves the memory items linked to semantically similar prior tasks and appends them to the system prompt to guide the model's reasoning.
• Offline enrichment baseline. We adopt EnrichIndex (Chen et al., 2025a) as a representative offline enrichment approach. In an offline phase, it uses an LLM to enrich each artifact in the corpus (e.g., a document, table, or code file) with three additional labels: a content summary, a description of the artifact's purpose, and a set of potential QA pairs. During online task-solving, artifacts are retrieved using both their original content and these labels, and are then provided to the agent in the same manner as in ExpIdx (Section 3.3). As noted in Section 2, this approach requires access to the entire corpus in advance, which is impractical for SQA, where queries are issued online against Semantic Scholar's corpus of over 238 million papers. We therefore do not report EnrichIndex results on SQA.
Evaluation with and without memory. For each memory solution (ReasoningBank and ExpIdx), we build a memory store by splitting the dataset into experience tasks and evaluation tasks. By default, experience tasks contain 80% of the dataset (we also vary this proportion in Figure 2) and evaluation tasks include the rest. We first run the baseline solution on all experience tasks (model used here is denoted as the experience model), and collect generated reasoning traces. Each memory solution then extracts reusable experience and insights from these traces and indexes them into its memory store. We then evaluate the baseline solution on the evaluation tasks (model used here is denoted as the evaluation model), both with and without memory. We use a static memory store instead of updating it continuously (e.g., after every N tasks) to enable controlled comparisons, particularly to study how performance depends on the number of stored experiences and on the experience model (Section 5).
Metrics. We measure performance and resource usage in two phases. The online phase covers solving the evaluation tasks, and the indexing phase covers building the additional indexes each method uses, i.e., constructing the memory store from experience-task traces (ReasoningBank and ExpIdx) or enriching the corpus offline (EnrichIndex). All dollar costs are computed by tracking input and output token usage and applying the corresponding API pricing.
• Online metrics. For the online phase, we report the average answer score and the average online cost. The answer score is computed by comparing the predicted answer to the ground-truth answer (details in Section D). The online cost includes all runtime expenses incurred while solving the evaluation tasks, including any charges for retrieving from the memory store or enriched index, and is reported in dollars per thousand tasks.
• Indexing metrics. For the indexing phase, we report the indexing cost and the storage footprint. The indexing cost is the expense of extracting information from experience-task traces and populating the memory store, or of enriching the corpus offline (details in Section A.2). The storage footprint is the size of the additional indexes each method maintains beyond the original corpus. The baseline solution builds no additional indexes, so it incurs no indexing cost and has no storage footprint.
4.2 RESULTS
Table 2 presents the answer scores and online costs of all methods across all datasets and models. Two key findings emerge: (i) ExpIdx achieves the highest average score at the lowest average online cost. Averaged across both evaluation models, ExpIdx attains the highest answer score, a relative improvement of 3.9% over the strongest baseline, EnrichIndex. It also has the lowest online cost, reducing cost by 20.8% relative to the baseline solutions. These results underscore the benefits of artifact-grounded memory over no memory, abstracted memory, and offline enrichment. (ii) Results on Spider and MMQA demonstrate cross-task generalization. MMQA (a factoid QA dataset) and Spider (a text-to-SQL dataset) share the same table corpus, and the MMQA memory store is built entirely from Spider's reasoning traces. The fact that ExpIdx can leverage this memory to improve accuracy and reduce cost shows that experiences grounded in a shared corpus transfer effectively across task types.
Furthermore, Table 3 shows that ExpIdx reduces average indexing cost by and storage footprint by relative to the strongest baseline, EnrichIndex. This is because EnrichIndex requires scanning every document, causing both financial cost and storage footprint to scale directly with corpus size. This makes it inefficient for large corpora or scenarios where full-corpus access
Table 2: Performance on files, codebases, documents, and tables. We report cost in dollars per thousand tasks. To compute cost, we track the number of input and output tokens and apply the appropriate API pricing. Base stands for the baseline solutions, Base+X stands for augmenting the baseline solutions with X. RB stands for ReasoningBank (Ouyang et al., 2025). EI stands for EnrichIndex (Chen et al., 2025a). EXP stands for our method, ExpIdx. Higher scores are better and lower costs are better. †EnrichIndex is not evaluated on SQA, since it requires offline access to the full corpus, whereas SQA queries Semantic Scholar's 238M+ papers online. *Cross-task generalization between text-to-SQL tasks and factoid QA over a shared database. MMQA is evaluated using a memory store constructed from the reasoning traces of Spider tasks.
| Locomo | SWE-bench-ver. | SQA | Freshstack | Musique | Spider (Text-to-SQL) | MMQA* (Factoid QA) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Score | Cost ($) | Score | Cost | Score | Cost | Score | Cost | Score | Cost | Score | Cost | Score | Cost | |
| Gemini-3-Flash (experience and evaluation model) | ||||||||||||||
| Base | 88.8 | 155.2 | 76.5 | 990.9 | 88.7 | 21.6 | 73.0 | 40.1 | 67.0 | 91.2 | 71.0 | 37.1 | 91.0 | 61.3 |
| Base+RB | 87.9 | 125.6 | 76.5 | 883.3 | 87.1 | 22.5 | 70.1 | 38.3 | 74.0 | 115.4 | 70.0 | 41.4 | 92.0 | 54.8 |
| Base+EI | 86.0 | 105.3 | 78.6 | 919.8 | —† | —† | 74.0 | 42.9 | 70.0 | 40.9 | 72.0 | 35.6 | 90.0 | 42.6 |
| Base+EXP | 92.5 | 93.4 | 81.6 | 782.0 | 90.6 | 21.0 | 73.3 | 33.8 | 78.0 | 66.5 | 75.0 | 22.0 | 92.0 | 32.3 |
| GPT-5-Mini (experience and evaluation model) | ||||||||||||||
| Base | 82.2 | 14.2 | 58.2 | 27.9 | 81.8 | 45.0 | 66.6 | 23.6 | 62.0 | 8.45 | 57.0 | 2.27 | 84.0 | 3.47 |
| Base+RB | 83.2 | 13.4 | 59.2 | 29.6 | 80.0 | 58.3 | 67.5 | 23.6 | 67.0 | 9.54 | 57.0 | 3.86 | 85.0 | 4.80 |
| Base+EI | 88.8 | 7.66 | 61.2 | 26.9 | —† | —† | 67.9 | 19.2 | 63.0 | 7.70 | 60.0 | 1.91 | 87.0 | 2.96 |
| Base+EXP | 88.8 | 7.03 | 60.2 | 22.1 | 85.0 | 45.5 | 70.2 | 22.1 | 68.0 | 8.91 | 65.0 | 2.88 | 89.0 | 3.69 |
| Experience model | Evaluation model | Score | Online Cost ($) | |
|---|---|---|---|---|
| Base | — | GPT-5-Mini | 82.2 | 14.2 |
| Base | — | Gemini-3-Flash | 88.8 | 155.18 |
| Base+EXP | GPT-5-Mini | GPT-5-Mini | 88.8 | 7.03 |
| Base+EXP | Gemini-3-Flash | Gemini-3-Flash | 92.5 | 93.4 |
| Base+EXP | Gemini-3-Flash | GPT-5-Mini | 92.5 | 7.50 |
Table 4: Experience as teacher-student learning. Experiences from a stronger model (Gemini-3-Flash) enable a weaker model (GPT-5-Mini) to reach comparable performance.

Figure 2: ExpIdx improves accuracy and decreases online cost as more tasks are indexed.
is impractical, as with the live Semantic Scholar corpus in SQA. In contrast, ExpIdx's costs scale primarily with the number of tasks for which experiences are stored, not with corpus size. Compared with ReasoningBank, ExpIdx has a comparable indexing cost and a storage footprint of the same order of magnitude, while Table 2 shows that it improves the average answer score by and reduces average online cost by .
Table 3: Indexing cost ($) and storage footprint (MB) of each method, averaged across datasets.
| Base+RB | Base+EI | Base+EXP | ||||
|---|---|---|---|---|---|---|
| Cost | Storage | Cost | Storage | Cost | Storage | |
| Gemini-3-Flash | 0.503 | 4.20 | 93.4 | 1108.7 | 0.628 | 15.5 |
| GPT-5-Mini | 0.398 | 4.19 | 34.2 | 1110.7 | 0.421 | 14.9 |
Qualitative examples. We manually reviewed the agents' task-solving traces and selected representative examples illustrating how ExpIdx benefits the base agent through both single-artifact and artifact-pair experiences (Section 3.1). Details are provided in Section C.
5 ANALYSIS
Section 4 demonstrates that ExpIdx outperforms the baseline solutions, abstracted memory, and offline enrichment. This advantage comes from ExpIdx's ability to reuse artifact knowledge captured from prior tasks. Such prior experience depends on two factors: (i) the experience model that originally produced the reasoning traces that are later extracted and indexed as experiences, and (ii) the number of experiences in the memory store. In this section, we analyze ExpIdx's performance along both dimensions using the Locomo dataset. We also analyze sensitivity to the model used for artifact relevance analysis (Section 3.2), and perform an ablation that removes the lightweight reflection step (Section 3.3).
Experience as teacher-student learning. In Section 4, the experience model used to solve the experience tasks is the same as the evaluation model used to solve the evaluation tasks. Table 4 examines a different setting: a stronger experience model (Gemini-3-Flash) paired with a weaker evaluation model (GPT-5-Mini). We observe that, for the same evaluation model, performance improves as the experience model improves. Remarkably, the weaker evaluation model paired with the stronger experience model reaches performance comparable to the stronger evaluation model, but at substantially lower cost. This result shows that experiences serve as a mechanism for teacher-student learning, enabling a weaker model to benefit from experiences of a stronger model.
Performance varying size of memory store. Experiments in Section 4 used 80% of the dataset to construct the memory store S. To test the robustness of ExpIdx to different sizes of S, we vary the proportion of the dataset to 20%, 40%, and 60%. Figure 2 summarizes the results. Two patterns emerge: (i) Performance at all sizes of S outperforms the 0% setting (i.e., the baseline solution without memory), indicating that ExpIdx is robust and consistently benefits from experience. (ii) As the size of S increases, both answer quality and cost efficiency improve, showing that ExpIdx effectively leverages larger experience pools to deliver better outcomes.
Table 5: Score using different relevance models.
| GPT-5-Mini | Nemotron-3-Ultra | Mimo-V2.5 | |
|---|---|---|---|
| Gemini-3-Flash | 92.5 | 92.5 | 91.6 |
| GPT-5-Mini | 88.8 | 89.7 | 88.8 |
Nemotron-3-Ultra (Blakeman et al., 2026) and that both alternative models achieve performance Sensitivity to the artifact-relevance model. As mentioned in Section 3.2, we utilized GPT-5-Mini for artifact relevance analysis and presented its results in Section 4. To demonstrate robustness, we evaluated two highly popular open-source alternatives based on usage rankings from OpenRouter: Mimo-V2.5 (Team et al., 2026). Table 5 shows comparable to GPT-5-Mini.
Table 6: Score with and without reflection.
| With reflection | Without reflection | |
|---|---|---|
| Gemini-3-Flash | 92.5 | 91.6 |
| GPT-5-Mini | 88.8 | 85.0 |
Ablation of lightweight reflection. As mentioned in Section 3.3, ExpIdx uses a lightweight reflection step that prompts the task-solving model to (1) assess the relevance of the retrieved experience and artifacts and disregard irrelevant ones, and (2) verify experiences against the current artifacts, giving them priority over past experiences in the event of discrepancies caused by hallucinations, errors, or outdated information. Table 6 shows that removing this reflection step leads to a drop in answer score, indicating that reflection helps mitigate noise and errors.
6 CONCLUSION
Memory systems aim to give agentic AI the statefulness needed to learn from prior tasks. Although existing work explores many forms of “memory,” such as user preferences, factual attributes, and general reasoning patterns, these approaches fall short for a common and highly impactful scenario: knowledge-intensive tasks over a shared corpus of artifacts, where humans naturally accumulate experiential knowledge about those artifacts through repeated task solving. ExpIdx addresses this gap by introducing artifact-grounded memory, a framework that captures and reuses knowledge about artifacts derived from past reasoning traces. It represents experience at two levels: single-artifact experience, which records how an artifact contributed to earlier tasks, and artifact-pair experience, which captures structural relationships between artifacts. When a new task arrives, ExpIdx retrieves these experiences, aiming to rapidly surface the full set of relevant artifacts. Across a wide range of tasks and corpora, including scientific literature, conversational histories, and codebases, our method consistently improves answer quality while reducing computational cost. We further observe that artifact-grounded experience supports cross-task generalization and enables effective teacher-student learning, underscoring its broader utility. We hope this work encourages a shift from non-grounded memory designs toward memory representations that are explicitly tied to artifacts.
AI USE STATEMENT
In this work, we used generative AI tools for proofreading the paper and to assist in implementing parts of the ExpIdx prototype. We have not used generative AI tools for any other tasks with required disclosure. We have reviewed all AI-assisted work. We checked and manually integrated all LLM-suggested proofreading changes. Additionally, we manually reviewed all LLM generated code and tested it for correctness by manually checking the program's output on the datasets used in this paper.
REFERENCES
Anthropic. Memory tool. https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool. Accessed: 2026-04-28.
Aaron Blakeman, Aaron Thomas, Aastha Jhunjhunwala, Abhibha Gupta, Abhinav Khattar, Adam Rajfer, Adi Renduchintala, Adil Asif, Aditya Vavre, Adriana Flores Miranda, et al. Nemotron 3 ultra: Open, efficient mixture-of-experts hybrid mamba-transformer model for agentic reasoning. arXiv preprint arXiv:2606.15007, 2026.
Jonathan Bragg, Mike D'Arcy, Nishant Balepur, Dan Bareket, Bhavana Dalvi, Sergey Feldman, Dany Haddad, Jena D Hwang, Peter Jansen, Varsha Kishore, et al. Astabench: Rigorous benchmarking of ai agents with a scientific research suite. arXiv preprint arXiv:2510.21652, 2025.
Jonathan D Chang, Andrew Drozdov, Shubham Toshniwal, Owen Oertell, Alexander Trott, Jacob Portes, Abhay Gupta, Pallavi Koppol, Ashutosh Baheti, Sean Kulinski, et al. Karl: Knowledge agents via reinforcement learning. arXiv preprint arXiv:2603.05218, 2026.
Peter Baile Chen, Tomer Wolfson, Michael Cafarella, and Dan Roth. Enrichindex: Using llms to enrich retrieval indices offline. arXiv preprint arXiv:2504.03598, 2025a.
Peter Baile Chen, Yi Zhang, Dan Roth, Samuel Madden, Jacob Andreas, and Michael Cafarella. Log-augmented generation: Scaling test-time reasoning with reusable computation. arXiv preprint arXiv:2505.14398, 2025b.
Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, and Deshraj Yadav. Mem0: Building production-ready ai agents with scalable long-term memory. arXiv preprint arXiv:2504.19413, 2025.
Darren Edge, Ha Trinh, Newman Cheng, Joshua Bradley, Alex Chao, Apurva Mody, Steven Truitt, Dasha Metropolitansky, Robert Osazuwa Ness, and Jonathan Larson. From local to global: A graph rag approach to query-focused summarization. arXiv preprint arXiv:2404.16130, 2024.
Mitko Gospodinov, Sean MacAvaney, and Craig Macdonald. Doc2query–: when less is more. In European Conference on Information Retrieval, pp. 414–422. Springer, 2023.
Bernal J Gutiérrez, Yiheng Shu, Yu Gu, Michihiro Yasunaga, and Yu Su. Hipporag: Neurobiologically inspired long-term memory for large language models. Advances in neural information processing systems, 37:59532–59569, 2024.
Aaron Jaech, Adam Kalai, Adam Lerer, Adam Richardson, Ahmed El-Kishky, Aiden Low, Alec Helyar, Aleksander Madry, Alex Beutel, Alex Carney, et al. Openai o1 system card. arXiv preprint arXiv:2412.16720, 2024.
Carlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. Swe-bench: Can language models resolve real-world github issues? arXiv preprint arXiv:2310.06770, 2023.
Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in neural information processing systems, 33: 9459–9474, 2020.
Xingyu Li, Rongguang Wang, Yuying Wang, Mengqing Guo, Chenyang Li, Tao Sheng, Sujith Ravi, and Dan Roth. PAR -RAG: Planned Active Retrieval and Reasoning for Multi-Hop Question Answering. arXiv preprint arXiv:2603.29085, 2026.
Adyasha Maharana, Dong-Ho Lee, Sergey Tulyakov, Mohit Bansal, Francesco Barbieri, and Yuwei Fang. Evaluating very long-term conversational memory of llm agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 13851–13870, 2024.
OpenAI. Memory faq. https://help.openai.com/en/articles/8590148-memory-faq. Accessed: 2026-04-28.
Siru Ouyang, Jun Yan, I Hsu, Yanfei Chen, Ke Jiang, Zifeng Wang, Rujun Han, Long T Le, Samira Daruki, Xiangru Tang, et al. Reasoningbank: Scaling agent self-evolving with reasoning memory. arXiv preprint arXiv:2509.25140, 2025.
Mark Raasveldt and Hannes Mühleisen. DuckDB: an Embeddable Analytical Database. In Proceedings of the 2019 International Conference on Management of Data, SIGMOD '19, pp. 1981–1984, 2019.
Yiheng Shu, Saisri Padmaja Jonnalagedda, Xiang Gao, Bernal Jiménez Gutiérrez, Weijian Qi, Kamalika Das, Huan Sun, and Yu Su. Remem: Reasoning with episodic memory in language agent. arXiv preprint arXiv:2602.13530, 2026.
Amanpreet Singh, Joseph Chee Chang, Dany Haddad, Aakanksha Naik, Jena D Hwang, Rodney Kinney, Daniel S Weld, Doug Downey, and Sergey Feldman. Ai2 scholar qa: Organized literature synthesis with attribution. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations), pp. 513–523, 2025.
Mirac Suzgun, Mert Yuksekgonul, Federico Bianchi, Dan Jurafsky, and James Zou. Dynamic cheatsheet: Test-time learning with adaptive memory. In Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 7080–7106, 2026.
Xiaomi MiMo Team, Anqi Liu, Aoxin Ma, Bo Chen, Bo Yang, Chen Wang, Chen Zhang, Chengda Tang, Chengwei Wang, Chiheng Lou, et al. Full-pipeline inference optimization for mimo-v2. 5 series: Pushing hybrid swa efficiency to the limit. arXiv preprint arXiv:2607.13095, 2026.
Nandan Thakur, Jimmy Lin, Sam Havens, Michael Carbin, Omar Khattab, and Andrew Drozdov. Freshstack: Building realistic benchmarks for evaluating retrieval on technical documents. arXiv preprint arXiv:2504.13128, 2025.
Harsh Trivedi, Niranjan Balasubramanian, Tushar Khot, and Ashish Sabharwal. Musique: Multihop questions via single-hop question composition. Transactions of the Association for Computational Linguistics, 10:539–554, 2022.
Xingyao Wang, Yangyi Chen, Lifan Yuan, Yizhe Zhang, Yunzhu Li, Hao Peng, and Heng Ji. Executable Code Actions Elicit Better LLM Agents. In Forty-first International Conference on Machine Learning, ICML '24, 2024. URL https://openreview.net/forum?id=jJ9BoXAfFa.
Xingyao Wang, Boxuan Li, Yufan Song, Frank F. Xu, Xiangru Tang, Mingchen Zhuge, Jiayi Pan, Yueqi Song, Bowen Li, Jaskirat Singh, Hoang H. Tran, Fuqiang Li, Ren Ma, Mingzhang Zheng, Bill Qian, Yanjun Shao, Niklas Muennighoff, Yizhe Zhang, Binyuan Hui, Junyang Lin, Robert Brennan, Hao Peng, Heng Ji, and Graham Neubig. OpenHands: An Open Platform for AI Software Developers as Generalist Agents. In The Thirteenth International Conference on Learning Representations, ICLR '25, 2025. URL https://openreview.net/forum?id=0Jd3ayDDoF.
Jian Wu, Linyi Yang, Dongyuan Li, Yuliang Ji, Manabu Okumura, and Yue Zhang. Mmqa: Evaluating llms with multi-table multi-hop complex questions. In The thirteenth international conference on learning representations, 2025.
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik R Narasimhan, and Yuan Cao. React: Synergizing reasoning and acting in language models. In The eleventh international conference on learning representations, 2022.
Tao Yu, Rui Zhang, Kai Yang, Michihiro Yasunaga, Dongxu Wang, Zifan Li, James Ma, Irene Li, Qingning Yao, Shanelle Roman, et al. Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task. In Proceedings of the 2018 conference on empirical methods in natural language processing, pp. 3911–3921, 2018.
Yanzhao Zhang, Mingxin Li, Dingkun Long, Xin Zhang, Huan Lin, Baosong Yang, Pengjun Xie, An Yang, Dayiheng Liu, Junyang Lin, et al. Qwen3 embedding: Advancing text embedding and reranking through foundation models. arXiv preprint arXiv:2506.05176, 2025.
A IMPLEMENTATION DETAILS OF ExpIdx
A.1 EXPERIENCE INJECTION
As described in Section 3.3, a standard search framework takes a query q as input and returns a set of artifacts A along with their IDs . Using q and , we perform experience retrieval to obtain artifacts with associated past experiences signals. For each artifact_id, these signals include its classification as relevant, irrelevant, or inconclusive, as well as associated experience snippets (Section 3.1). We then modify the original set of artifacts A to become as follows:
• Artifacts in classified as irrelevant are removed if they were in A
• Artifacts classified as relevant are either retained (if already in A) or introduced (if not originally in A), and their content enriched with relevant experience snippets
• Artifacts classified as inconclusive remain unchanged if they were in A
The model then receives instead of the original A.
A.2 EXPERIENCE INDEXING
Here, we look at how ExpIdx extracts experiences from past reasoning traces and indexes them into a persistent memory store, which enables it to accumulate experience over time.
Extraction from reasoning traces. We extract both single-artifact and artifact-pair experience from the reasoning traces generated during past task solving. Concretely, we construct a complete reasoning trace by concatenating all rounds of the model's internal reasoning (Jaech et al., 2024), explicit thinking traces (Yao et al., 2022), and final answers, including any citations to artifacts (Singh et al., 2025). From this full trace, we process each mentioned artifact by prompting an off-the-shelf LLM (GPT-5-Mini by default) to generate its contribution summary and to extract snippets based on the cited content. Using the set of all artifacts referenced in the trace, we then prompt the same LLM to infer relationships between artifact pairs. We provide full prompt details in Section B.3. In the running example in Figure 1, the reasoning trace for task 1 mentions artifacts sales1, sales2, costs1.pdf. An LLM then extracts from the trace single-artifact experiences such as A and B, as well as artifact-pair experiences such as C.
Indexing. We store single-artifact and artifact-pair experiences in a database (DuckDB (Raasveldt & Mühleisen, 2019) in our case). After a batch of tasks completes, we apply the extraction process described above to the reasoning traces of every completed task, producing a set of single-artifact and artifact-pair experiences. To support retrieval (Section 3.2), we compute embeddings of the task descriptions and contribution summaries using an off-the-shelf text embedding model (Qwen3-8B-Embedding (Zhang et al., 2025)) and then insert these experiences and embeddings into the database.
B PROMPTS
B.1 PROMPT FOR ARTIFACT RELEVANCE ANALYSIS
We provide the prompt we use to analyze artifact relevance in Table 7.
Table 7: Prompt for analyzing artifact relevance.
| Artifact relevance analysis |
|---|
| Given a question and a set of artifacts, each including a list of prior experiences (where each experience consists of a contribution summary, and associated snippets from the artifact), your task is to evaluate, for each artifact, whether its prior experience is (1) relevant to the provided question; (2) irrelevant to the provided question; or (3) inconclusive. |
| For each artifact, you should also evaluate its relevance based on its relationships with previously identified useful artifacts: <artifact_ids> |
| Your output should be a JSON list containing, for each artifact, the artifact ID, your judgment ("relevant", "irrelevant", or "inconclusive"), and, when applicable, the IDs of the relevant experience. |
| Question:<question> |
| Artifacts:<artifacts> |
B.2 PROMPT FOR INJECTING EXPERIENCES IN MODEL SYSTEM PROMPT
We provide the system prompt we use when injecting retrieved experiences in Table 8.
Table 8: System prompt for injecting retrieved experiences.
| System message |
|---|
| You are given a set of artifacts with past experiences, each containing an artifact ID, past user questions, descriptions of how the artifact was used to answer them, and the specific snippets that were used. |
| When handling a new task, you should:(1) Consult the experiences as prior examples. Use them to guide your reasoning, retrieval strategy, and expectations about how artifacts may be relevant.(2) Determine relevance. Identify which, if any, of the past experiences apply to the new task. If none are relevant, continue normally without forcing a connection.(3) Always verify against the current artifacts. The experiences are helpful context, but the actual artifacts available now take priority. If there is any discrepancy, updated or current file contents override the past experiences. |
| Past experiences:<artifact id='...'><experience>Question: ... |
| Contribution summary: ... |
| Snippets: ...</experience> |
| <experience>...</experience></artifact> |
B.3 PROMPT FOR EXTRACTING EXPERIENCES FROM REASONING TRACES
We provide the prompt we use to generate contribution summaries and relationships in Table 9.
Table 9: Prompt for generating contribution summary and relationships.
| Single-artifact experience |
|---|
| Given a question and its corresponding response, summarize how each artifact in <artifact IDs> contributes to addressing the question. For each artifact, include its artifact_id and a concise description of its contribution in a few sentences. |
| Question: <question> |
| Response: <response> |
| Artifact-pair experience |
|---|
| Given a question and its corresponding response, identify direct relationships between pairs of artifacts mentioned in the response. Do not include pairs of artifacts with no direct relationships. |
| Question: <question> |
| Response: <response> |
C QUALITATIVE EXAMPLES
C.1 OVERVIEW
To show how ExpIdx works and the benefits of our experience representation in Section 3.1, we conduct a brief qualitative analysis with concrete examples.
Standard agentic solution
User task: Which year did Jolene start practicing yoga?

grep -n "Jolene|jolene|yoga" -R . || true
./session22.md:51:Taking breaks [...]
./session24.md:16:Relationships with [...]
./session9.md:10:So much has been [...]
./session13.md:53: Have you considered [...]
(... 490 more lines omitted ...)
nl -ba ./session24.md | sed -n '1,120p'
B
(... 61 lines omitted ...)
nl -ba ./session9.md | sed -n '1,120p'
nl -ba ./session22.md | sed -n '1,140p'
(... 66 and 106 lines omitted ...)
Final response: The year is not specified. Jolene [...]
Agentic solution using ExperienceIndex
User task: Which year did Jolene start practicing yoga?
Prior experience about session13.md
Prior task: How long has Jolene been doing yoga?
Contribution summary: The file [...] supports the answer that she has been doing yoga for about three years.
Line 67: I've been doing them sporadically for about 3 years now and they've had a real positive effect on me.
sed -n '50,70p' ./session13.md:53
E
(Session from 3:56 pm on 6 June, 2023)
I've been doing them sporadically for about 3 years now and they've had a real positive effect on me.
(... 19 more lines omitted ...)
Final response: The answer is 2020. She said she's been doing yoga "sporadically for about 3 years now", which places the start at about 2020.
Figure 3: An example Locomo task where ExpIdx surfaces files and snippets from relevant prior single-artifact experiences, which helps the agent efficiently reach the correct answer.
Standard agentic solution
User task: How many distinct orders that are currently 'On Road' have at least one 'music' product item with a status of 'Payed'?
vector_search_over_tables(query: "orders On Road music product Payed distinct orders 'On Road' 'music' 'Payed'")
Order_Items_d9a3 Products_46df
(... 3 other tables omitted ...)
Reasoning: I will filter "music" product using Products_46df
.product_category_code = 'music' ...
...
Agentic solution using ExperienceIndex
User task: How many distinct orders that are currently 'On Road' have at least one 'music' product item with a status of 'Payed'?
vector_search_over_tables(query: "orders On Road music product Payed distinct orders 'On Road' 'music' 'Payed'")
Order_Items_d9a3 Products_eafb Products_46df
Introduced via relationship with Order_Items_d9a3:
Order_Items_d9a3.product_id = Products_eafb.product_id
(... 3 other tables omitted ...)
Reasoning: I wonder if 'music' might be listed as a product name in a products table [...] I'll use SQL to search both Products_46df and Products_eafb to see what I can find [...]
Figure 4: An example MMQA task where ExpIdx surfaces a table the vector search missed (Products_eafb), which ultimately helps the agent reach the correct answer.
Single-artifact experience filters irrelevant information. Figure 3 presents a Locomo example illustrating how current agentic solutions become incorrect and inefficient when handling long conversation histories (stored as files) without ExpIdx. Without knowing which files matter, the model resorts to a generic keyword search that returns both the relevant files and many superficially matching but irrelevant ones, driving up computational cost. Overwhelmed by this noise A, the model inspects only a subset of relevant files B, ultimately failing to find the correct answer C. In contrast, ExpIdx surfaces only the specific files and snippets that matter based on prior experience D. The model simply checks whether these files contain the necessary information E, and then produces the answer F. Here, leveraging single-artifact experience improves answer quality by reducing context load and making task-solving more efficient. The full example appears in Tables 10 and 11.
Artifact-pair experience improves information coverage. Figure 4 shows an example from MMQA, showing how factoid QA over structured tables can fail when prior experience is not reused. Without knowing which tables matter, the model relies on a retrieval tool that returns only a subset of the relevant tables . Believing this partial set to be complete, the model proceeds with incomplete evidence and produces an incorrect answer . With ExpIdx, even when the retriever alone cannot gather all necessary tables, ExpIdx introduces neighbor artifacts to surface the full set of relevant tables , enabling the model to answer correctly . Table 12 shows the detailed example.
C.2 SINGLE-ARTIFACT EXPERIENCE
Table 10 shows a standard agentic solution on a Locomo task. Table 11 shows the solution when ExpIdx is used on the same task.
Table 10: Standard agentic solution on an example Locomo task.
| Task |
|---|
| Which year did Jolene start practicing yoga? |
Assistant messages
... Tool call: grep -n "Jolene|jolene|yoga" -R /files || true Tool response: /files/session22_5:33 pm on 26 August, 2023.md:51:Taking breaks, doing some stretching/yoga, or just going for a walk is really helpful. And don't forget to get enough sleep and take time for self-care. Finding a balance between work and taking care of yourself is important. What self-care activities have you been doing lately? ... /files/session24_2:14 pm on 3 September, 2023.md:16:Relationships with family and friends are so vital. My yoga pals have been my second family - we've held each other up through a lot. The other day I found this old photo. That was when I first started doing yoga. My mum was my biggest fan and source of motivation. She'd often come to my classes with me. ... /files/session9_11:22 am on 13 March, 2023.md:10:So much has been going on lately. I started this yoga class in the neighborhood - it's such a good feeling! Now I get to share the exercise with my neighbors and watch it really transform them. ... /files/session13_3:56 pm on 6 June, 2023.md:53: Have you considered taking some breaks and finding activities like yoga to help you relax and unwind? That might make a difference. (...490 lines omitted ...)
Tool call: nl -ba /files/session24_2:14\ pm\ on\ 3\ September,\ 2023.md | sed -n '1,120p' Tool response: (...61 lines omitted...)
Tool call: nl -ba /files/session9_11:22\ am\ on\ 13\ March,\ 2023.md | sed -n '1,120p' Tool response: (...66 lines omitted...)
Tool call: nl -ba /files/session22_5:33\ pm\ on\ 26\ August,\ 2023.md | sed -n '1,140p' Tool response: (...106 lines omitted...)
Assistant:The year is not specified. Jolene confirms she practices yoga ("I've been into yoga and meditation lately") but no conversation entry gives a specific year when she began. Another transcript notes "That was when I first started doing yoga," yet it also does not state a year. Therefore the files do not specify the year Jolene started yoga.
Table 11: ExpIdx on the same Locomo example as Table 10. Green text refers to changes due to ExpIdx.
| System prompt (ExpIdx) |
|---|
| You are given a set of files with past experiences, each containing a file path, past user questions, descriptions of how the file was used to answer them, and the specific snippets that were used. |
| When handling a new task, you should: |
| (1) Consult the experiences as prior examples. Use them to guide your reasoning, retrieval strategy, and expectations about how files may be relevant. |
| (2) Determine relevance. Identify which, if any, of the past experiences apply to the new task. If none are relevant, continue normally without forcing a connection. |
| (3) Always verify against the current files. The experiences are helpful context, but the actual files available now take priority. If there is any discrepancy, updated or current file contents override the past experiences. |
| Past experiences: |
| <file file_path=/files/session13_3:56 pm on 6 June, 2023.md> |
| <experience> |
| Question: |
| How long has Jolene been doing yoga? |
| Contribution summary: |
| The cited file (/files/session13_3:56 pm on 6 June, 2023.md) contains the transcript line where Jolene says, "I’ve been doing them sporadically for about 3 years now" (line 67). That direct quote from the session serves as the primary evidence supporting the answer that she has been doing yoga for about three years. |
| Snippets: |
| line 67: I’ve been doing them sporadically for about 3 years now and they’ve had a real positive effect on me. |
| </experience> |
| </file> |
| Task |
|---|
| Which year did Jolene start practicing yoga? |
| Assistant messages |
|---|
| Tool call: sed -n ‘50,70p’ /files/session13_3:56\ pm\ on\ 6\ June,\ 2023.md:53 |
| Tool response: |
| I’ve been doing them sporadically for about 3 years now and they’ve had a real positive effect on me. |
| (...19 lines omitted...) |
| Assistant: The answer is 2020. She said she’s been doing yoga “sporadically for about 3 years now”, which places the start at about 2020. |
C.3 ARTIFACT-PAIR EXPERIENCE
Table 12 illustrates an example where ExpIdx leverages artifact-pair experience.
Table 12: On MMQA, the result becomes correct once the new tables introduced through edge connections by ExpIdx are incorporated. Green text refers to changes due to ExpIdx.
Task
How many distinct orders that are currently ‘On Road’ have at least one ‘music’ product item with a status of ‘Payed’?
Assistant messages
Tool call: vector_search(query: "orders On Road music product Payed distinct orders 'On Road' 'music' 'Payed'")
Tool response: (...3 tables omitted ...) Table: Order_Items_d9a3...
Table: Products_46df... Sample rows: | product_id | color_code | product_category_code | product_name | typical_buying_price | typical_selling_price | product_description | other_product_details | |---|---|---|---|---|---| | | : | : | : | : | : | | : | : | : | : | : | : | | 1 | '4' | 'Spices' | 'cumin' | " | '2878.3' | 'et' | None | | 2 | '2' | 'Spices' | 'peper' | '352447.2874677' | '1892070.2803543' | 'rerum' | None |
Table: Products_eafb...
| Sample rows: | product_id | product_name | product_details |
|---|---|---|---|
| : | : | : | : |
| 1 | 'food' | None | |
| 2 | 'book' | None | |
| (Introduced via a relationship with Order_Items_d9a3: Order_Items_d9a3.product_id = Products_eafb.product_id) |
Assistant:ReAct: I will filter “music” product using Products_46df.product_category_code = ‘music’... ReAct with ExpIdx: I wonder if ‘music’ might be listed as a product name in a products table...I’ll use SQL to search both Products_46df and Products_eafb to see what I can find...
D EVALUATION DETAILS
For each dataset, we sample evaluation tasks from the full collection to include a set of roughly 100 tasks.
For Swebench-verified, we report the answer score as the percentage of issues successfully resolved, following the evaluation protocol in Jimenez et al. (2023).
For Spider, we use execution accuracy (Yu et al., 2018), assigning a score of 1 when the predicted SQL query yields the same output as the ground-truth query and 0 otherwise.
For MMQA, Musique, and Locomo, the answer score is based on LLM-judged correctness, comparing the predicted answer with the ground-truth answer. For MMQA and Musique, we adopt the judge prompt from Li et al. (2026). For Locomo, we use the prompt from Chhikara et al. (2025).
For SQA and Freshstack, we compute the answer score using an LLM-judged rubric-based score (normalized to the range 0-1), comparing the predicted answer with human-designed rubrics. For SQA, we use the prompt from Bragg et al. (2025). For Freshstack, we use the prompt from Chang et al. (2026).
Following the setup in Bragg et al. (2025), we use Gemini-2.5-Flash as the judge LLM for all datasets requiring LLM-judge-based scoring.