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 stores two types of knowledge:
- Single-Artifact Experiences: Summaries of how a specific document or table contributed to a past task, including relevant snippets and metadata.
- 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.
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.
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