Discover ComputingOpen accessComputer science

LiveCtx context selection at query time for long conversational histories

Yu Liu, Chuanshuang Wang

National University of Defense Technology

Key points

From the paper's conclusion
  • In a fixed 50-question analysis, Adaptive used 42.2% fewer compression calls than per-session compression but retained fewer official target fragments.

Abstract

Abstract Long-running conversational agents must answer current questions from histories that can exceed a configured request budget. Sliding windows and rolling summaries reduce or rewrite history using rules that are not conditioned on the content of a later question. LiveCtx instead preserves the original sessions and selects context after the question arrives. Its Adaptive assembly policy uses the full history when it fits the budget; otherwise it retrieves complete selected sessions, leaves them unchanged when they fit, and compresses the selected set only once when it remains over budget. On 500 LongMemEval-S questions with Qwen3-Max generation and a common 131,072-character client budget, Adaptive achieved 79.8% and 81.8% accuracy when assessed independently by two automated graders. It exceeded Filter, which used the same retrieved sessions without generative compression, by 4.4 and 5.0 percentage points. The advantage was concentrated in the 342 over-budget retrieved sets and became small at the 160K-character budget, when 472 of 500 sets fit unchanged. In a fixed 50-question analysis, Adaptive used 42.2% fewer compression calls than per-session compression but retained fewer official target fragments. The evaluated policy therefore delayed lossy reduction until the question was known while keeping the original history available for later queries.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers