Reusing Retained History for Fast Prefill after Agent Context Compaction
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 19:45 UTC · 3552dc402f15 ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "auOviHWaS9"- }- ],- "title": "Reusing Retained History for Fast Prefill after Agent Context Compaction",- "authors": [],- "abstract": "Long-running AI agents often shorten their conversations by replacing older mes\u0002sages with a summary while keeping recent messages unchanged. When the model resumes, it normally processes these retained messages again, even though it has already computed and saved their internal key–value (KV) states. Reusing those states could save time, but the messages now follow a different history and appear at different positions. We study a simple reuse policy: process the new summary, move the cached keys to the retained messages’ new positions, and keep their cached values. To assess whether this shortcut preserves the agent’s next decision, we compare its replies with fresh computation of the same com\u0002pressed input. We measure overall reply similarity, content agreement in both directions, and differences in proposed tool actions. In targeted Qwen3-8B re\u0002plays, full-reply BGE-M3 similarity ranges from 0.780 to 1.000, yet replies that score as similar can propose different code edits. Separately, at measured native Mistral-Medium-3.5-128B compaction points, reuse makes the input-processing step 13.80× faster in geometric mean than the fastest measured fresh implementa\u0002tion, once the caches are prepared. Reuse therefore saves substantial computation in this measured setting, but leaves a semantic gap that task success or a single similarity score alone cannot characterize.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "5f2c4c22-2604-4d7f-90ca-fe4426e99cd6"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "Reusing Retained History for Fast Prefill after Agent Context Compaction",+ "authors": [],+ "abstract": "Long-running AI agents often shorten their conversations by replacing older mes\u0002sages with a summary while keeping recent messages unchanged. When the model resumes, it normally processes these retained messages again, even though it has already computed and saved their internal key–value (KV) states. Reusing those states could save time, but the messages now follow a different history and appear at different positions. We study a simple reuse policy: process the new summary, move the cached keys to the retained messages’ new positions, and keep their cached values. To assess whether this shortcut preserves the agent’s next decision, we compare its replies with fresh computation of the same com\u0002pressed input. We measure overall reply similarity, content agreement in both directions, and differences in proposed tool actions. In targeted Qwen3-8B re\u0002plays, full-reply BGE-M3 similarity ranges from 0.780 to 1.000, yet replies that score as similar can propose different code edits. Separately, at measured native Mistral-Medium-3.5-128B compaction points, reuse makes the input-processing step 13.80× faster in geometric mean than the fastest measured fresh implementa\u0002tion, once the caches are prepared. Reuse therefore saves substantial computation in this measured setting, but leaves a semantic gap that task success or a single similarity score alone cannot characterize.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}