This post is for people who run LLM agents through an API or an automation tool and keep hitting the same wall: the task runs long, and the agent loses track of what it already learned. Three arXiv preprints from late October and early November 2026 go after that problem from three different places. MEMOIR changes how an external memory store ranks and merges what it keeps. MemSidecar moves memory lookups off the main agent’s path. ASTC compresses old context inside the model itself.
All three are preprints. arXiv moderation is not peer review, so every number below is the authors’ own result on their own setup, and the papers may not have been peer reviewed yet.

The problem in one paragraph
A long-horizon agent piles up more history than it can carry into each call, so something has to decide what gets stored, what comes back into the prompt, and when. The common answers fail in known ways: importance scores set at write time and never revised, summaries that drop a fact a later step needs, and retrieval that stalls the agent while it waits.
MEMOIR: re-rank memories by whether they actually helped
MEMOIR: A Training-Free Memory Lifecycle for Long-Horizon LLM Agents (arXiv 2611.07631, submitted November 5, 2026).
What it changes. Most memory systems score a memory once, when they write it. MEMOIR keeps revising that score. After each query, an attribution step estimates which retrieved memories supported the answer and raises their retrieval priority. The retrieval score combines semantic, lexical, temporal, importance and diversity signals, and a UCB-style exploration bonus gives rarely retrieved memories a chance. Consolidation, merging memories to shrink the store, runs offline and is applied only when a judge ensemble finds that the answer-relevant evidence is still there. Nothing is trained.
Reported results. On 1,905 deduplicated question-answer pairs from the LoCoMo benchmark, MEMOIR reports that its full retrieval stack raises evidence recall@5 by 11.92 percentage points over plain cosine similarity. That headline figure is a descriptive comparison with no inferential statistics behind it. Against a hybrid retriever without the feedback step, confidence-gated feedback adds 1.50 points and raw self-feedback 1.13. On LongMemEval-S, where each of 500 questions gets a fresh store and the LoCoMo-tuned BM25 term is off, context recall is 86.40% for cosine against 86.60% for MEMOIR, which MEMOIR treats as a no-harm check rather than a reproduction. Writing a memory takes 6.8 ms at the median with no LLM call, against roughly 110 ms for baselines that extract facts at write time, measured on one RTX 3090. For consolidation, 100 judge-approved merges showed 0 evidence losses in an independent audit (one-sided 95% upper bound: 2.95%), while the audit found evidence lost in 18 of 100 merges made without the gate. The gated merges shrank the active store by only 1.42%.
Limits. Most results come from ten LoCoMo conversation stores, and LongMemEval does not exercise repeated feedback. The lexical attribution misses paraphrases, numbers and short evidence; the counterfactual variant tracks retrieval success more closely but has much higher latency. Self-feedback can reinforce irrelevant evidence when the model is confidently wrong. The merge gate is an empirical check, not a guarantee. MEMOIR’s reproducibility appendix lists the final experiment-repository revision and the exact package versions as not retained. A code link is given in the paper.
MemSidecar: take memory scheduling off the agent’s critical path
Who Schedules Agent Memory? A Sidecar Approach to Long-Horizon Tasks (arXiv 2611.00779, submitted October 31, 2026).
What it changes. The question here is who decides when to look memory up. Usually the main agent has to notice the need, call retrieval and wait. MemSidecar gives that job to a separate component with two modes. Hooks push a bound memory to the main agent when an execution event matches a predefined condition. Foresight runs an independent agent that predicts likely queries from the initial instruction and a memory topic directory, retrieves results in parallel while the main agent works, and serves matching cached results when the real request arrives. Memory sits in a Global layer reused across tasks and a Workspace layer for one workspace. In the experiments, GPT-5.4-mini runs the tasks and Qwen3-8B handles memory management, retrieval and prediction.
Reported results. On MCP-Persona, 173 English tasks with 724 checkpoints across collaboration, content management, social media and email tools, MemSidecar reports an Overall checkpoint score of 41.23% for Hooks and 44.34% for Foresight. The strongest external baseline in the comparison, the DeepSeek Harness MCP-memory integration (DSH), scores 36.53%. Per task, Hooks takes 82.5 seconds with 1,720 retrieve tokens and Foresight 109.7 seconds with 2,288, while DSH takes 147.3 seconds. On MemoryArena, which chains dependent tasks across sessions, complete-task success rates are 13.41% for Hooks and 15.41% for Foresight. Training is optional: the main results use an untrained Foresight predictor, and SFT plus reinforcement learning on that predictor lifts MCP-Persona to 49.17%.
Limits. The two modes trade against each other. On MCP-Persona, Foresight scores higher but spends more retrieve tokens and more time per task than Hooks; on MemoryArena, Hooks finishes sooner. Running both together reached 46.13% on MCP-Persona, 1.80 points over Foresight alone, at the cost of 0.19K more retrieve tokens and 12.6 more seconds per task. The evaluation covers MCP-Persona and MemoryArena. No code link appears on the paper’s arXiv page as of November 12, 2026.
ASTC: compress context inside the model, keep exact values exact
In-Model Context Compression with Agentic Soft Tokens for Long-Horizon LLM Agents (arXiv 2610.41291, submitted October 30, 2026).
What it changes. Instead of rewriting old context into shorter text with an external compressor, ASTC compresses tool observations inside the model’s own forward pass. It targets hybrid Gated Delta Network (GDN)-attention models. The GDN recurrent state is used to check which spans the model has already absorbed. Those spans are merged into “agentic soft tokens”, while exact values such as paths, identifiers and checksums stay as ordinary tokens. The shorter sequence cuts attention work for the current step and leaves a smaller KV cache that later steps reuse. No training is needed.
Reported results. With a frozen Qwen3.5-9B model, ASTC reports results on three benchmarks covering API interaction, office automation and multi-question information gathering. On AppWorld, accuracy is 33.33% against 32.14% uncompressed, with 19.30% fewer end-to-end attention pairs. On OfficeBench, accuracy is 47.37% against 48.42%, with 50.68% fewer attention pairs. On 8-Objective QA, exact match is 30.56% against 28.28%, with attention pairs almost unchanged at 98.51% of the uncompressed run. On AppWorld, ASTC is the only method in the comparison that improves accuracy while lowering all three workload measures. ASTC also reports that the trained compressors it is compared with need 15.4 to 103.7 times more attention pairs per successful task. On the larger Qwen3.8-27B, accuracy on all 168 AppWorld Test-Normal tasks slips from 78.57% to 77.98% with 35.57% fewer attention pairs. It is one sampling stream with settings picked after exploring the Test split, not an independent blind test or a seed average.
Limits. This is a serving-side technique. It reads GDN states and rewrites the KV cache, so it needs a hybrid GDN-attention model whose weights and inference stack you run yourself. A hosted chat API does not expose either. The error check covers hidden-state reconstruction, not downstream attention scores, and the exact-value protection can miss some fields. Accuracy dipped slightly on OfficeBench and on the 27B model. The paper links its code on GitHub.
Side by side
| Paper | Where memory lives | Training needed | Code | Reported result | Benchmarks |
|---|---|---|---|---|---|
| MEMOIR (2611.07631) | External store: retrieval ranking plus offline merges | No | Linked in the paper | +11.92 pp evidence recall@5 over cosine on 1,905 LoCoMo QA pairs; 6.8 ms writes with no LLM call | LoCoMo, LongMemEval |
| MemSidecar (2611.00779) | A scheduler beside the main agent, over Global and Workspace memory | No for the main results; optional SFT + RL for the Foresight predictor | No link on the arXiv page | MCP-Persona Overall 44.34% (Foresight) and 41.23% (Hooks) vs 36.53% for DSH; 109.7 s and 82.5 s per task vs 147.3 s | MCP-Persona, MemoryArena |
| ASTC (2610.41291) | Inside the model: soft tokens and a smaller KV cache | No, but needs a hybrid GDN-attention model you serve | GitHub link in the paper and on its arXiv page | Up to 50.68% fewer attention pairs (OfficeBench, 47.37% vs 48.42% accuracy); AppWorld 33.33% vs 32.14% | AppWorld, OfficeBench, 8-Objective QA |
The numbers in each row come from different benchmarks and different setups, so they do not rank the three methods against each other.
What you can apply now
MEMOIR and MemSidecar sit outside the model, so their ideas carry over to models you call over an API. ASTC only applies if you serve your own open-weight model.
- Update memory priority after use, not only at write time. In MEMOIR, confidence-gated feedback adds 1.50 points of evidence recall@5 over a hybrid retriever without feedback (0.42, not significant, without the exploration bonus); the 11.92 points compare the full retrieval stack with plain cosine. Log which items each answer used and feed that back into ranking.
- Gate that feedback. In MEMOIR’s ablation, confidence-gated feedback added 1.50 points against 1.13 for raw self-feedback, and confidently wrong answers can reinforce irrelevant evidence. Skip the update when the answer is unverified.
- Check merges and summaries of memory, and keep the originals. In MEMOIR’s audit, 18 of 100 unchecked merges lost evidence, against 0 of 100 with a judge gate. MEMOIR also archives the originals so a merge can be rolled back.
- Don’t make the main agent wait for memory. In MemSidecar’s MCP-Persona runs, Hooks took 82.5 seconds per task and Foresight 109.7, while DSH, a different memory system, took 147.3, so the gap does not isolate scheduling. Foresight scored highest.
- When you compress tool output, keep exact values verbatim. ASTC names irreversible loss of exact values as the risk of compressors that prune or rewrite text, and it reports a sharp accuracy drop when its own exact-value protection is removed. If you summarize tool output with an API model, keep IDs, file paths, checksums and numbers word for word.
Here is a minimal sketch of the first two points, written for this post. It is not MEMOIR’s implementation; the weights are placeholders to tune on your own data.
import math
class Memory:
def __init__(self, text, emb):
self.text, self.emb = text, emb
self.priority = 0.0 # learned from use, starts neutral
self.shown = 0 # times retrieved
def score(mem, query_emb, total_queries, w_prio=0.3, c=0.1):
sim = cosine(mem.emb, query_emb) # your embedding similarity
bonus = c * math.sqrt(math.log(total_queries + 1) / (mem.shown + 1))
return sim + w_prio * mem.priority + bonus
def retrieve(store, query_emb, total_queries, k=5):
top = sorted(store, key=lambda m: score(m, query_emb, total_queries),
reverse=True)[:k]
for m in top:
m.shown += 1
return top
def after_answer(retrieved, answer, confident, lr=0.2):
if not confident: # gate: no update on unverified answers
return
words = set(answer.lower().split())
for mem in retrieved:
mem_words = set(mem.text.lower().split())
credit = len(words & mem_words) / (len(mem_words) or 1)
mem.priority = (1 - lr) * mem.priority + lr * credit
Word overlap has the weakness MEMOIR reports for its lexical variant: it misses paraphrases and short numeric evidence.
Papers
- MEMOIR: A Training-Free Memory Lifecycle for Long-Horizon LLM Agents: arXiv 2611.07631, submitted November 5, 2026
- Who Schedules Agent Memory? A Sidecar Approach to Long-Horizon Tasks: arXiv 2611.00779, submitted October 31, 2026
- In-Model Context Compression with Agentic Soft Tokens for Long-Horizon LLM Agents: arXiv 2610.41291, submitted October 30, 2026 · code
All three were at version 1 on arXiv as of November 12, 2026.





Leave a Reply