How Much Conversation History Does an AI Agent Need?

Danny Kim, Fernando KocharXiv 2026 · arXiv

TL;DR

This paper quantifies the "cost-score tradeoff" in AI agents, revealing that reducing conversational history from 10 to 3 passages slashes token usage by nearly 68% while only incurring a ~5.5 point drop on a 100-point benchmark. However, the authors warn that "safe" context reduction is highly dependent on message dependencies; specifically, simple recency-based memory often fails when answers depend on references to earlier assistant offers.

What Problem Does This Paper Address?

As Large Language Models (LLMs) move toward "infinite" context windows, the practical bottleneck shifts to cost and latency. AI agents typically use Retrieval-Augmented Generation (RAG) to pull relevant snippets from long conversation histories.

The authors tackle a fundamental engineering question: How much history is "enough"? If we provide too little, the agent lacks the evidence to answer correctly. If we provide too much, we waste tokens and money. Crucially, the paper investigates not just the volume of history (the budget), but the policy for which messages to keep (retention), especially when a user's request refers back to a specific previous offer or state.

Methods

The researchers employed two primary experimental designs:

  1. Fixed-Budget Experiment: Using a fixed pipeline (BM25 retrieval and a Qwen2.5-14B reader), they varied the number of retrieved passages (1, 3, 5, 10, and 20). This allowed them to measure how "score" (assigned by an LLM judge) changes relative to "token cost."
  2. Controlled Retention Experiment: They designed a "frozen task" to test how different memory policies handle dependencies. They compared:
  3. Direct Assignment: The user explicitly states a value (e.g., "Set item to shuttle").
  4. Reference-Dependent: The user refers to a previous assistant offer (e.g., "I'll take that shuttle offer"). They then tested whether "User-history retention" (keeping all user messages) outperformed simple "Token-matched recency" (keeping the most recent N tokens).

Datasets

  • BEAM: A benchmark containing synthetic conversation histories, human-validated probing questions, and rubrics. The authors used 1,100 questions from the 100K and 500K tiers.
  • Controlled Retention Stimuli: A newly introduced set of 128 stimuli per reader designed to isolate information loss. It uses a "task grammar" to track whether an agent can reconstruct a state (item, place, duration) based on varying levels of retained history.

Key Insights and Ideas

  • Diminishing Returns of Context: While more passages generally lead to higher scores, the gain per token shrinks at higher budgets. Moving from 10 to 20 passages nearly doubles the token cost for a negligible 2.39-point gain.
  • The Abstention Paradox: Interestingly, smaller context budgets actually improved scores for questions that required abstention (saying "I don't know"). When the model has less information, it is naturally more likely to admit it doesn't have the answer, which aligns with the "correct" behavior for unanswerable questions.
  • The "Reference" Trap: A major "aha moment" is the failure of user-centric retention. While keeping all user messages helps Qwen solve 100% of "direct" requirements, it fails 100% of the time if the answer depends on an assistant's earlier offer that was evicted from memory.
  • Judge Fragility: The authors conducted a scoring audit, finding that the LLM judge (GPT-4o-mini) often disagreed with rubrics or missed nuances. This suggests that benchmark "scores" should be viewed as a proxy for credit, not a definitive measure of source-grounded correctness.

Key Results

The primary quantitative finding is the stark tradeoff between efficiency and performance:

The token-score tradeoff across passage budgets. Reducing from 10 to 3 passages saves 67.8% tokens for a 5.45 point loss.
  • 3 vs. 10 Passages: 67.8% fewer reader tokens; 5.45 points lower assigned score.
  • Retention Policy: For Qwen, user-history retention preserved the full state in 64/64 direct cases but 0/64 reference cases. Simple recency only managed 20/64 for both.
  • Model Variance: While Qwen showed clear patterns, the Mistral-7B model produced "near-floor" results in the retention tasks, highlighting that memory policy effectiveness is highly model-dependent.
Figure 2: A dependency removed by retention. The rows isolate the decisive messages in two versions of a frozen task; columns show the full source, retained text and visible item. A: e14 names offer e13, so removing e13 leaves the item unresolved. A later offer of the same value cannot resolve that reference. B: e14 states the value directly, so it survives. Both variants retain place and duration. Oracle restoration repairs the source dependency but also changes padding and position. This schematic describes task grammar; model outcomes are measured separately.

Limitations and Future Work

  • Pipeline Specificity: The results are tied to a specific retriever (BM25) and reader (Qwen2.5). Different architectures might yield different tradeoff curves.
  • Synthetic vs. Natural: The retention experiments used synthetic "frozen" tasks. Future work should validate these findings on natural, messy human conversations.
  • Evaluation Gap: The study highlights a desperate need for "source-grounded" quality measures—human-in-the-loop audits that verify if an answer is actually supported by the original history, not just the retrieved snippets.
  • Cost Modeling: The authors suggest future evaluations should account for the total monetary cost, including retrieval and judging, to provide a true "dollars-per-point" metric.

Summary updated

Abstract

How does using less conversational history change reader-token use and benchmark scores? We examine this question on 1,100 BEAM questions. We held the retrieval ranking and reader constant across five fixed passage budgets, and mean assigned scores rose as the passage budget grew. The score gain per additional token became smaller at the upper tested budgets. Answerable questions generally received higher scores with more context. Pooled abstention scores sometimes rose as the passage budget shrank. We also tested message retention in a controlled task with explicit conversational-state targets and compared retained user messages with token-matched recency. Qwen matched the full state more often for direct requirements when user messages were retained. Its full-state matching declined when answers depended on references to earlier offers. Mistral produced near-floor results across the retention conditions. A scoring audit leaves the correctness of BEAM answers unresolved. These experiments characterize the token and score consequences of the tested memory budgets. Reliable budget selection depends on retaining the evidence each question requires and validating the measure used to assess answer quality.
BibTeX
@misc{kim2026how,
  author = {Danny Kim and Fernando Koch},
  title = {{How Much Conversation History Does an AI Agent Need?}},
  year = {2026},
  eprint = {2611.09662},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.09662},
}
Figure