Manuscript Offprint

arXiv:2610.10091

ExperienceIndex: Artifact-Grounded Memory

Peter Baile Chen, Geoffrey X. Yu, Xinming Liu, Samuel Madden, Dan Roth, Jacob Andreas, Doug Downey, Michael Cafarella

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 t1t_{1} 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 t2t_{2} 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).

References (39)