ExperienceIndex: Artifact-Grounded Memory

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

TL;DR

ExperienceIndex (ExpIdx) is a novel memory layer that allows AI agents to remember specific details about the documents, code, and tables ("artifacts") they interact with. By grounding memory in these artifacts rather than just user preferences or abstract reasoning patterns, ExpIdx enables agents to solve complex tasks with up to 11% higher accuracy while cutting operational costs by half.

What Problem Does This Paper Address?

When a human expert works with a specific set of documents—say, a lawyer with case files or a developer with a codebase—they don't start from scratch every time. They build "mental sticky notes": “This table contains revenue data for 2022,” or “Ignore that specific file; it’s a deprecated draft.” This accumulated experience allows them to quickly zero in on the right information for new tasks.

Current AI agents lack this "artifact-grounded" memory. Most existing memory solutions focus on either user profiles (preferences and history) or abstract reasoning patterns (how to solve a math problem). When faced with a massive corpus of data, agents often perform redundant, expensive, and error-prone searches because they don't "remember" what they learned about those specific files in previous sessions. This leads to high latency, increased API costs, and incomplete answers.

Methods

The authors introduce ExperienceIndex (ExpIdx), a lightweight middleware layer that sits between an agent's search tools and the model itself.

ExpIdx optimizes the search process by providing the agent with relevant artifacts and relationships derived from past experiences.

ExpIdx stores two types of knowledge:

  1. Single-Artifact Experiences: Summaries of how a specific document or table contributed to a past task, including relevant snippets and metadata.
  2. Artifact-Pair Experiences: Structural connections discovered during reasoning, such as identifying that two different tables can be joined via a specific column (e.g., "Delaware" or a "Product ID").

The workflow is designed to be non-invasive. When a new task arrives, ExpIdx retrieves relevant past experiences based on semantic similarity. It then uses a "relevance analysis" step (powered by a smaller, cheaper LLM) to prune irrelevant data. Finally, it injects these insights directly into the agent's prompt and modifies tool outputs to include "neighboring" artifacts that the agent might have otherwise missed.

Datasets

The researchers evaluated ExpIdx across a diverse suite of knowledge-intensive benchmarks to prove its generality:

  • Locomo: Conversational QA over long-term file histories.
  • SWE-bench-ver: Resolving real-world software issues in codebases.
  • SQA & Freshstack: Long-form generation and technical documentation tasks.
  • Musique: Multi-hop question answering.
  • Spider & MMQA: Text-to-SQL and factoid QA over relational databases.
Table 1: Details on datasets and baseline solutions.

Key Insights and Ideas

  • Artifacts as Anchors: By tying memory to specific data objects rather than users, the memory becomes useful for anyone working on that corpus, not just the original user.
  • Cross-Task Generalization: The authors found that experiences gained from one type of task (like writing SQL queries) effectively transfer to different tasks (like answering plain-text questions) as long as they share the same underlying data artifacts.
  • Teacher-Student Learning: A particularly powerful finding is that a high-end model (like Gemini-3-Flash) can "seed" the ExperienceIndex. A much smaller, cheaper model (like GPT-5-Mini) can then use that index to reach performance levels comparable to the larger model at a fraction of the cost.
  • Incremental Growth: Unlike "offline enrichment" methods that require scanning an entire database upfront, ExpIdx grows organically. It only indexes what the agent actually uses, making it far more efficient for massive, live corpora like scientific literature.

Key Results

ExpIdx consistently outperformed both standard agents and existing memory baselines:

  • Accuracy: Improved answer quality by up to 11.0 points.
  • Cost: Reduced online API costs by up to 50.5% by minimizing the number of reasoning rounds and search calls.
  • Efficiency: Compared to offline indexing (EnrichIndex), ExpIdx reduced average indexing costs by 115x and storage footprints by 73x.
Figure 2: ExpIdx improves accuracy and de- creases online cost as more tasks are indexed.
Table 3: Indexing cost ($) and storage footprint (MB) of each method, averaged across datasets.

Limitations and Future Work

The authors acknowledge a few areas for further exploration:

  • Cold Start: ExpIdx requires a few initial tasks to be solved "the hard way" before it can begin providing benefits.
  • Data Evolution: The current system assumes a relatively static corpus. Future work is needed to handle "stale" experiences when artifacts are updated or deleted (e.g., version control in codebases).
  • Multi-modality: While the framework is modality-agnostic, the current evaluation focused primarily on text and tables. Testing on images, video, or audio artifacts remains a future direction.

Summary updated

Abstract

Knowledge-intensive tasks require answering many questions by reasoning about a shared corpus of artifacts (e.g., court cases, or scientific literature). 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. ExperienceIndex 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, ExperienceIndex 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, ExperienceIndex 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.
BibTeX
@misc{chen2026experienceindex,
  author = {Peter Baile Chen and Geoffrey X. Yu and Xinming Liu and Samuel Madden and Dan Roth and Jacob Andreas and Doug Downey and Michael Cafarella},
  title = {{ExperienceIndex: Artifact-Grounded Memory}},
  year = {2026},
  eprint = {2610.10091},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.10091},
}
Figure