arXiv:2611.00518cs.AIOct 2026

Manuscript Offprint

arXiv:2611.00518

Agentic Context Management for Multi-Turn Human-AI Conversations

Matthew Ho, Chenglong Wang, Baolin Peng, Nebojsa Jojic, Philippe Laban, Michel Galley, Jianfeng Gao, Lianhui Qin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models degrade in multi-turn conversation partly because of context pollution: the model’s own earlier outputs stay in context and anchor later turns, so an early misreading of the user’s intent can persist after the user corrects it. Assistant omission (AO), which drops every assistant message, removes this pollution but fails when interaction is referential: drafts, decisions, and tool-call results may exist only in assistant turns, and later turns refer back to them. We propose Agentic Conversation Context Curation (AC3), a training-free, inference-time method in which a separate analyzer (1) consolidates the task specification from the user’s messages alone, (2) audits the assistant’s prior outputs against it, and (3) edits the context, either appending the analysis or discarding the assistant side and rebuilding the context from the specification. Building the analyzer exposed a second finding: pollution is contagious. An analyzer that sees the assistant’s reasoning while extracting the specification can do worse than no intervention at all, and instructing it to ignore them did not close the gap, so we exclude assistant turns structurally. On Lost in Conversation (replaying difficulty-selected instances), where AO is an oracle by construction, AC3 closes 55–84% of the gap between full context and AO on three of four tasks and exceeds AO on the fourth, and an LLM that faithfully summarizes the history does not reproduce the gain even with more compute. On real human-AI conversations from WildChat, a GPT-5-mini judge prefers AC3’s next turn over both full context and AO in every configuration of our main WildChat table, although this preference depends on the judge; on CollabLLM the results are mixed. In stateful tool use (tau2-bench), AO collapses to 0% on every model; AC3 does not collapse, but no AC3 operator beats full context. Detector studies show that Reset removes injected pollution but is not span-selective, which locates the gain in rebuilding the specification rather than in preserving selected assistant spans.

1 Introduction

Multi-turn interaction is the dominant mode of use for large language models, from coding assistants to computer-use agents such as OpenClaw [OpenClaw, 2026]. Yet LLMs perform substantially worse in multi-turn settings than on equivalent single-turn tasks: Laban et al. [2025] report an average drop of 39% across 15 models and 6 task domains, even in conversations of only ~8 turns. They also identify the self-reinforcing dynamic behind the drop: early errors about the user’s intent are recorded in the assistant’s own messages and bias later turns, so errors compound instead of being corrected as new user information arrives. Huang et al. [2026] call this context pollution, study it in real human-AI conversations, and show that a coarse fix works surprisingly well: assistant omission (AO), which discards all assistant messages from the context.

Preprint.

Figure

Figure 1: The value of omitting assistant turns falls as task referentiality grows. Results for one respondent (gpt-5.4) on the four benchmarks, ordered by how much the next user turn depends on the assistant's prior turns. Values are taken from Table 2 (LiC, CollabLLM, tau2-bench) and Table 3 (WildChat); the AC3 bar is the best operator for this respondent on each benchmark (on WildChat, best against AO). On LiC, where the user's messages together fully specify the task, AO is strong and AC3 is higher still. On CollabLLM, AC3-Reset (62.5) is one problem out of 40 ahead of AO (60.0) and three ahead of full context (55.0). On WildChat, a GPT-5-mini judge prefers AC3-Reset's next turn over both AO and full context (dashed line: parity). On tau2-bench, where tool-call results live only in assistant turns, AO collapses to 0% and AC3 does not collapse, but full context remains best.

AO works when the user's messages so far, taken together, contain enough information to complete the task; we call such turns self-contained. Many turns are instead referential: the correct response depends on content that exists only in earlier assistant turns. In plain chat, users build on what the assistant wrote ("sharpen sentence 2"; "add a column to that query"). In tool use, the dependence is on environment state, a case we call stateful: tool-call results and prior decisions are recorded only in assistant turns. For referential turns, removing assistant messages deletes the content that the next turn depends on.

We propose Agentic Conversation Context Curation (AC3), a training-free, inference-time method that runs inside the agent harness before each assistant turn (Figure 3). A separate LLM, the analyzer, (1) extracts a consolidated task specification from the user's messages alone, (2) audits the assistant's prior outputs against that specification, and (3) edits the context with one of three operators: Augment appends the analysis to the conversation, Reset replaces the conversation with the specification and the prior work the analyzer judged correct, and Rewrite has an LLM restructure the conversation around the specification. Augment, which only adds information, fires on every turn after a short warm-up; Reset and Rewrite, which remove content, act only when the analyzer flags an issue. Our default configuration, Gated Reset, additionally skips the first user turns and caps the number of resets. With Reset, the mechanism is simple to state: AC3 detects pollution, discards the assistant side, and rebuilds the specification from the user side, so the assistant continues from what the user asked for rather than from its own invalidated reasoning. In stateful settings the analyzer also records the tool state it has observed, so that a rebuild can carry forward the state the next action needs.

Unlike pollution-oriented interventions such as AO and ERGO [Khalid et al., 2025], which remove or rewrite context wholesale once triggered, AC3 audits the assistant's prior work against a user-grounded specification; unlike context management for long-horizon agents [Schroeder et al., 2025, Zhang et al., 2026a, Sun et al., 2025, inter alia], which compacts a trajectory to fit a token budget, it targets correctness in ongoing dialogue (Section 7). In spirit it is a use of test-time compute [Wei et al., 2023, Wang et al., 2023b, Yao et al., 2023, Snell et al., 2024], spent on curating the input context rather than on searching over outputs.

Building the analyzer exposed an unexpected finding: pollution is contagious. A model tasked with auditing the conversation anchors on the assistant's prior reasoning if it can see it. When the specification extractor sees assistant turns, accuracy falls below that of no intervention on two of three LiC tasks, and asking the extractor to reason only from user-stated requirements does not close the gap (Section 5.6; Appendix D). Context management must therefore apply to the context manager itself: each analyzer step sees only the conversation slices its role requires, and we enforce this structurally rather than by prompting.

We evaluate on four benchmarks ordered by referentiality (Figure 1). In Lost in Conversation (LiC) [Laban et al., 2025], each instance is a single-turn question sharded across turns, so the user's messages together fully specify the task and AO is a design oracle. There, in replay mode on difficulty-selected instances, Gated Reset closes 55–84% of the gap between full context and AO on math, code, and actions and exceeds AO on database (e.g., 15.8%→64.4% on code, a mean of three reruns), and Reset improves over full context in 33 of 36 paired comparisons across three further respondent models on a second difficulty-selected pool. On real human-AI conversations from WildChat [Zhao et al., 2024], a GPT-5-mini judge prefers every AC3 configuration in Table 3 over both AO and full context, although the preference depends on the judge (Section 6). On CollabLLM [Wu et al., 2025b], near the middle of the spectrum, results are mixed: relative to full context, Reset ranges from −0.1 to +7.5pp across respondents and AO from 0.0 to +5.0pp, gaps of at most three problems out of 40. On stateful tool use in tau2-bench [Barres et al., 2025], AO collapses to 0% on every respondent because tool-call results live only in assistant turns. AC3 remains viable, meaning it does not collapse (Gated Reset scores 7–12pp below full context, not significantly at N=3), but no AC3 operator beats full context there.

Our contributions are:

  • An account of when discarding assistant turns works (self-contained vs. referential turns) that explains AO's range from design oracle to 0% (Section 2).

  • AC3, in which an analyzer shielded from the assistant's turns rebuilds the task specification from the user side and edits the context (Section 3), and the finding that pollution is contagious, which makes that shielding a structural requirement (Section 5.6).

  • An evaluation on four benchmarks of increasing referentiality, with matched-compute baselines and a detector evaluation that locates the gain in the rebuild rather than in span-selective editing (Section 5).