Pith. sign in

REVIEW 2 major objections 2 minor 24 references

Learning What Not to Forget: Long-Horizon Agent Memory from a Few Kilobytes of Learning

T0 review · 2 major / 2 minor · reviewed 2026-06-26 · grok-4.3

Pith's one-line read A few-kilobyte CPU-only scorer learns to retain only load-bearing history units and matches full-history accuracy for long-horizon LLM agents.

desk verdict LRE shows a lightweight learned eviction policy can handle agent memory effectively in the tested scenarios. read the letter →

arxiv 2606.20954 v1 pith:WZXV42ZW submitted 2026-06-18 cs.CL cs.AI

classification cs.CLcs.AI
keywords long-horizonagentsmemoryevictionrelevancescoringLLMcontextmanagementagentlearnedconversational
verification ladder T0 review T1 audit T2 compute T3 formal

The pith

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

The reading

The paper presents LRE, a small learned scorer that ranks past interaction units by relevance and keeps the critical ones verbatim while evicting the rest. This addresses the problem that fixed context windows force eviction in extended agent runs, where dropping a detail such as an access token or required path causes outright task failure. Under matched budgets LRE equals the accuracy of retaining every token, exceeds that baseline by 27 percent on the easiest tasks, and cuts peak context size by up to 52 percent with no compressor calls. The same scorer can be trained without external labels by replaying the agent’s own successful and failed traces, recovering 95 percent of supervised performance. The work therefore claims that cheap, proactive relevance ranking is sufficient to solve the fidelity side of memory management when future queries are unavailable.

What carries the argument

LRE (Learned Relevance Eviction), a small CPU-only scorer that ranks history units for verbatim retention without access to future queries.

What would settle it

A controlled run on a fresh task in which the LRE policy drops a detail required for success while the full-history policy retains it, producing a measurable drop in completion rate.

Watch

Extended reading notes

Core claim

LRE is a language-model-free scorer, a few kilobytes in size, that is trained to identify which units of accumulated interaction history are load-bearing and then retains those units by verbatim extraction. In agent experiments it matches the task accuracy obtained by keeping the entire history, exceeds that no-eviction baseline by 27 percent on the simplest tasks, finishes one looping task in 37 percent fewer calls, and solves 14 tasks that no other policy solves; on conversational memory it outperforms dense and token-pruning encoders at zero neural cost; and on LoCoMo reading it delivers the best budgeted answer quality while using 68 percent fewer tokens. Training can be annotation-free:

Load-bearing premise

A scorer trained only on the system’s own past behavior can reliably identify which history units will be load-bearing for unseen future tasks.

Editorial extensions

If this is right

  • On agent tasks LRE matches the accuracy of retaining the entire history while cutting peak context size up to 52 percent.
  • On the simplest tasks it exceeds the no-eviction baseline accuracy by 27 percent with zero compressor calls.
  • It finishes tasks where other policies loop and solves 14 tasks that no other run policy solves.
  • Annotation-free training on the agent’s own traces recovers 95 percent of the supervised scorer’s performance.
  • On conversational memory LRE outranks dense and token-pruning encoders at zero neural cost.

Reading between the lines

Editorial extensions of the paper, not claims the author makes directly.

  • The same lightweight ranking approach could be applied to other sequential systems that must discard state without knowing the next query in advance.
  • Because eviction decisions are made from past traces alone, the method may scale to multi-agent or distributed settings where sharing full histories is costly.
  • If the scorer generalizes across domains, it could reduce the need for ever-larger context windows in production agents.
  • The verbatim-retention design preserves exact state, which may matter for tasks where even small paraphrases break downstream correctness.
Share X Bluesky LinkedIn Reddit HN

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, simulated authors' rebuttal, and a circularity audit.

Referee Report

2 major / 2 minor

Summary. The manuscript introduces LRE (Learned Relevance Eviction), a few-kilobyte, CPU-only, language-model-free scorer that learns to identify and retain load-bearing units of interaction history for long-horizon LLM agents via verbatim extraction. It claims that under matched-budget comparisons, LRE matches the accuracy of retaining full history overall, exceeds the no-eviction baseline by 27% on simplest tasks, reduces peak context size by up to 52% with zero compressor calls, completes tasks where baselines loop (e.g., 37% fewer calls on one trace, solving 14 tasks no other policy solves), outperforms dense/token-pruning encoders on conversational memory at zero neural cost, achieves best budgeted answer quality on LoCoMo while using 68% fewer tokens, and recovers 95% of supervised effectiveness under annotation-free training on the system's own behavior.

Significance. If the reported empirical results hold under the described conditions, the work offers a practical, low-overhead solution to the fidelity problem of memory eviction in LLM agents, where future queries are unavailable and exact state retention is decisive. The annotation-free training result and outperformance on agent traces and LoCoMo are notable strengths, as is the explicit positioning against compressor-based and full-history baselines.

major comments (2)
  1. [Abstract and experimental results] The central claim that the scorer generalizes to unseen future tasks without access to the future query itself (weakest assumption noted in the reader's report) requires explicit validation in the experimental section; the abstract reports 95% recovery under annotation-free training, but without details on how training traces were constructed or held-out task distributions, it is unclear whether this tests the no-future-query regime or merely replays similar behaviors.
  2. [Abstract] Soundness is limited by the absence of methodological details, error bars, dataset descriptions, and statistical significance tests in the reported performance numbers (e.g., the 27% improvement and 52% context reduction); these must be supplied with precise definitions of 'simplest tasks,' agent traces, and matched-budget controls to allow evaluation of the accuracy-cost plane claims.
minor comments (2)
  1. Clarify the exact architecture and training objective of the 'few kilobytes' scorer, including input features and how 'load-bearing' labels are derived in the annotation-free case.
  2. Provide the full set of baselines and their implementation details for the conversational memory and LoCoMo evaluations to ensure reproducibility.

Simulated Author's Rebuttal

2 responses · 0 unresolved

We thank the referee for the constructive review. We address each major comment below with targeted revisions to improve clarity and completeness while preserving the manuscript's core contributions.

read point-by-point responses
  1. Referee: [Abstract and experimental results] The central claim that the scorer generalizes to unseen future tasks without access to the future query itself (weakest assumption noted in the reader's report) requires explicit validation in the experimental section; the abstract reports 95% recovery under annotation-free training, but without details on how training traces were constructed or held-out task distributions, it is unclear whether this tests the no-future-query regime or merely replays similar behaviors.

    Authors: The annotation-free regime trains exclusively on the agent's own past interaction traces, which by design contain no information about future queries. Evaluation occurs on held-out task distributions drawn from the same benchmark but excluded from training. We will expand the experimental section with a dedicated subsection detailing trace construction (sequences of agent actions and observations), the train/test split (chronological or task-ID based to ensure no leakage), and explicit confirmation that scoring and training use only historical data. This will directly validate the no-future-query generalization claim. revision: yes

  2. Referee: [Abstract] Soundness is limited by the absence of methodological details, error bars, dataset descriptions, and statistical significance tests in the reported performance numbers (e.g., the 27% improvement and 52% context reduction); these must be supplied with precise definitions of 'simplest tasks,' agent traces, and matched-budget controls to allow evaluation of the accuracy-cost plane claims.

    Authors: The body of the manuscript already defines 'simplest tasks' (shortest-horizon agent traces), 'agent traces' (full sequences of LLM calls, observations, and memory states), and matched-budget controls (identical token limits across policies). However, the abstract omits error bars, significance tests, and concise definitions. We will revise the abstract to incorporate brief definitions and add error bars plus statistical tests (e.g., paired t-tests) to the key quantitative claims in the experimental section and a new summary table. Some methodological depth will remain in the main text due to abstract length limits, but the abstract will become self-contained for the reported numbers. revision: partial

Circularity Check

0 steps flagged · score 0.0 of 10

No circularity; empirical method with external validation

full rationale

The paper describes an empirical learned scorer (LRE) for history eviction, trained on agent traces or self-behavior and evaluated on accuracy, cost, and task completion metrics across agent and conversational benchmarks. No equations, derivations, or uniqueness theorems are presented that could reduce to self-definition or fitted inputs. All load-bearing claims rest on reported experimental outcomes (e.g., 95% recovery under annotation-free training, 27% outperformance on simple tasks) rather than any internal construction that equates prediction to input by design. Self-citations are absent from the provided text, and the method is externally falsifiable via the described benchmarks.

Assumptions & free parameters 0 free parameters · 0 assumptions · 0 invented entities

Abstract supplies no information on free parameters, axioms, or invented entities.

how reviews work

0 comments
Cite this review

Pith. "Pith review of Learning What Not to Forget: Long-Horizon Agent Memory from a Few Kilobytes of Learning." pith.science (2026). https://pith.science/paper/WZXV42ZW

@misc{pith2026260620954,
  author       = {Pith},
  title        = {Pith review of: Learning What Not to Forget: Long-Horizon Agent Memory from a Few Kilobytes of Learning},
  year         = {2026},
  howpublished = {\url{https://pith.science/paper/WZXV42ZW}},
  note         = {Machine review of arXiv:2606.20954}
}
read the original abstract

Long-running language-model systems accumulate interaction history that outgrows the context window, so they must continually evict. When an eviction policy drops a load-bearing detail, for example an access token issued at login or a path the next call needs, the action fails. We present LRE (Learned Relevance Eviction), a few kilobytes, CPU-only, language-model-free scorer that learns which units of history are load-bearing and keeps them by verbatim extraction. Under a matched-budget comparison, in our experiment, no baseline dominates LRE on the accuracy-cost plane. On agents, LRE matches the accuracy of keeping the entire history overall. On the simplest tasks, it exceeds that no-eviction baseline by 27%, while requiring zero compressor calls and reducing peak context size by up to 52%. A controlled study trace shows LRE completes tasks where the others loop, finishing one such task in 37% fewer calls than keeping everything and solving 14 tasks where no other run policy does. On conversational memory, LRE outranks dense and token-pruning encoders at zero neural cost. In downstream evaluation, LRE gives the best budgeted answer quality on LoCoMo reading 68% fewer tokens. Its supervision can also be annotation-free: training only on the system's own behavior recovers 95% of the supervised scorer's effectiveness. We argue that, because memory eviction in LLM agents is a fidelity problem, it requires a deployable proactive policy where the future query is unavailable and exact state is decisive, and that cheap learned relevance can be sufficient.

Figures

Figures reproduced from arXiv: 2606.20954 by the authors.

Figure 1
Figure 1. How an agent evicts decides whether it fin￾ishes. Context tokens per generation on one AppWorld task (d194965_2) under four policies at a 2048-token budget. No-compression grows unbounded (∼12.6k tokens); FIFO and LLM compression (ACON) stay bounded but lose the load-bearing content. ACON does 49 llm + 8 compressor calls. LRE keeps the relevant turns verbatim with a few kilobyte CPU scorer and com￾pletes in 19 calls… view at source ↗
Figure 2
Figure 2. Top (agent, AppWorld). Across a think/act/call/observe loop, a credential observed at step 3 and an identifier produced at step10 scroll far behind the budget cursor. LRE ranks them load-bearing and keeps them verbatim, so the login at step 17 succeeds. Bottom (conversation, LoCoMo conv). An identity fact stated at turn 5 of a 419-turn, 19-session history answers a question asked more than 400 turns later. LRE keeps… view at source ↗
Figure 3
Figure 3. LRE: budgeted extractive eviction. The cap [PITH_FULL_IMAGE:figures/full_fig_p004_3.png] view at source ↗
Figures from the paper (10 more)
Figure 4
Figure 4. Figure 4: The self-supervised label in each domain, on [PITH_FULL_IMAGE:figures/full_fig_p004_4.png]
Figure 5
Figure 5. Figure 5: Task success versus peak input tokens on [PITH_FULL_IMAGE:figures/full_fig_p005_5.png]
Figure 6
Figure 6. Figure 6: Gold recall versus retention budget on both benchmarks. On LoCoMo, LRE retains more gold evidence [PITH_FULL_IMAGE:figures/full_fig_p007_6.png]
Figure 7
Figure 7. Figure 7: LoCoMo evaluation pipeline for query-agnostic context eviction in LRE. [PITH_FULL_IMAGE:figures/full_fig_p011_7.png]
Figure 8
Figure 8. Figure 8: LongMemEvalS evaluation pipeline for session-level context eviction under query-dependent retrieval. high computational cost of full leave-one-group-out evaluation over 500 questions. A critical challenge in LongMemEvalS is cross-question session reuse. To address this…
Figure 9
Figure 9. Figure 9: AppWorld: agentic evaluation of LRE under token budget constraints and Pareto efficiency criteria. [PITH_FULL_IMAGE:figures/full_fig_p015_9.png]
Figure 10
Figure 10. Figure 10: Domain A (agent): shared eviction trigger; methods differ only in [PITH_FULL_IMAGE:figures/full_fig_p016_10.png]
Figure 11
Figure 11. Figure 11: Domain B (conversational): shared score-then-retain eviction, with each baseline’s per-unit score. [PITH_FULL_IMAGE:figures/full_fig_p018_11.png]
Figure 12
Figure 12. Figure 12: Recovery of true TGC by replay ($0, no LLM call): [PITH_FULL_IMAGE:figures/full_fig_p021_12.png]
Figure 13
Figure 13. Figure 13: Downstream answer quality versus token cost under a [PITH_FULL_IMAGE:figures/full_fig_p024_13.png]

Discussion (0). Continue with ORCID to comment.

Reference graph

Works this paper leans on

24 extracted references · 3 canonical work pages

  1. [1]

    What Deserves Memory: Adaptive Memory Distillation for LLM Agents

    Evaluating very long-term conversational memory of llm agents. InProceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 13851– 13870. Henry B Mann and Donald R Whitney. 1947. On a test of whether one of two random variables is stochasti- cally larger than the other.The annals of mathemati- ca...

  2. [2]

    In Findings of the Association for Computational Lin- guistics: ACL 2024, pages 963–981

    Llmlingua-2: Data distillation for efficient and faithful task-agnostic prompt compression. In Findings of the Association for Computational Lin- guistics: ACL 2024, pages 963–981. Joon Sung Park, Joseph O’Brien, Carrie Jun Cai, Mered- ith Ringel Morris, Percy Liang, and Michael S Bern- stein. 2023. Generative agents: Interactive simulacra of human behavi...

  3. [3]

    LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory

    Appworld: A controllable world of apps and people for benchmarking interactive coding agents. InProceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 16022–16076. Di Wu, Hongwei Wang, Wenhao Yu, Yuwei Zhang, Kai-Wei Chang, and Dong Yu. 2024. Longmemeval: Benchmarking chat assistants on long-...

  4. [4]

    Agentfold: Long-horizon web agents with proac- tive context management.arXiv preprint arXiv:2510.24699, 2025

    Agentfold: Long-horizon web agents with proactive context management.arXiv preprint arXiv:2510.24699. Zhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen, Lianmin Zheng, Ruisi Cai, Zhao Song, Yuan- dong Tian, Christopher Ré, Clark Barrett, and 1 oth- ers. 2023. H2o: Heavy-hitter oracle for efficient generative inference of large language models.Ad- vance...

  5. [5]

    Data structure.Each sample corresponds to a dialogue turn ui, and all turns within a conversation form a group g∈ {1, . . . ,10} . The task is to assign a relevance score to each turn without conditioning on a specific downstream query. About 24% of dialogue turns are considered truly relevant (gold evidence across questions)

  6. [6]

    In the supervised setting, a turn is labeled positive (yi = 1) if it appears in the gold evidence set of any question associated with its conversation

    Label construction.We consider two labeling regimes. In the supervised setting, a turn is labeled positive (yi = 1) if it appears in the gold evidence set of any question associated with its conversation. Because these labels are pooled across all the questions tied to the conversation, it yields a query-agnostic relevance signal. The model learns to iden...

  7. [7]

    Bye!”, “Take care!

    Splitting and leakage-free training.We use a Leave-One-Group-Out (LOGO) protocol over the 10 conversations. In each fold, one full conversation is held out for evaluation while the remaining nine are used for training. To prevent information leakage, the vectorizer and StandardScaler are fitted strictly on training data within each fold. A deduplication g...

  8. [8]

    A logistic regression model is trained to estimate relevance scores pi =P(y i = 1|u i) using these features

    Feature representation and scoring.Each unit is mapped to a feature vector combining: (i) a TF-IDF representation of the text, and (ii) six trajectory features: position, recency, length, digit count, question-marker presence, and capitalized-word count (Table 6). A logistic regression model is trained to estimate relevance scores pi =P(y i = 1|u i) using...

Show all 24 references
  1. [9]

    For intrinsic evaluation, we compute ROC-AUC over held-out folds (Section E)

    Evaluation and downstream usage.The model is evaluated both intrinsically and extrinsically. For intrinsic evaluation, we compute ROC-AUC over held-out folds (Section E). For extrinsic evaluation, retained dialogue turns are passed verbatim into a downstream QA model. Performa...

  2. [10]

    Each group consists of approximately 50 sessions forming a retrieval haystack

    Data structure and eviction units.The dataset (longmemeval_s) contains up to 500 questions, where each question defines an independent group. Each group consists of approximately 50 sessions forming a retrieval haystack. The task is highly sparse, with only 5% of sessions are ...

  3. [11]

    In the supervised setting, a session is labeled positive (yi = 1) if its session ID appears in the question- specific answer_session_ids

    Label construction. In the supervised setting, a session is labeled positive (yi = 1) if its session ID appears in the question- specific answer_session_ids. In the self-supervised setting, a proxy label is assigned if the session contains at least 40% token overlap with the e...

  4. [12]

    high computational cost of full leave-one-group-out evaluation over 500 questions

    Splitting and leakage prevention.We use grouped K-fold cross-validation with k= 5 due to the 11 Require:LongMemEval S datasetD={(u i, yi, gi)}with up to 500 questions Require:TF-IDF vectorizerϕ, scalerσ, classifierf Require:Dedup flagdedup 1:Dataset structure 2:Each groupg i i...

  5. [13]

    A logistic regression model outputs relevance scores pi =P(y i = 1|u i) without access to the downstream question context

    Feature representation and scoring.Each session is represented using a fusion of: (i) TF-IDF lexical features, and (ii) six standardized trajectory features. A logistic regression model outputs relevance scores pi =P(y i = 1|u i) without access to the downstream question context

  6. [14]

    For downstream evaluation, retained sessions are passed to a QA model (gpt-4.1-mini), and responses are scored using a stronger LLM judge (gpt-4o)

    Evaluation protocol.LongMemEval S is evaluated on both retrieval quality and downstream task performance.For relevance prediction, we compute ROC-AUC. For downstream evaluation, retained sessions are passed to a QA model (gpt-4.1-mini), and responses are scored using a stronge...

  7. [15]

    This produces full execution trajectories containing interleaved Python code actions and environment observations, which are used as training data for the LRE scorer

    Trajectory generation and training data.We first execute an unevicted baseline agent ("nocomp") on the AppWorld training split consisting of 90 tasks. This produces full execution trajectories containing interleaved Python code actions and environment observations, which are u...

  8. [16]

    Let zi denote an identifier introduced at stepi

    Self-supervised labeling via quotation reuse.Since no human relevance annotations are available, we construct a zero-supervision label using a hindsight reuse criterion. Let zi denote an identifier introduced at stepi. The label is defined as: •y i = 1ifz i is reused in at lea...

  9. [17]

    Scorer training.The logistic regression scorer ( s90) is evaluated under a Leave-One-Task-Out (LOGO) protocol

  10. [18]

    When the context length exceeds the token budget (B= 2048 ), the eviction module is triggered

    Inference and eviction loop.During evaluation on test task splits, the agent operates in a ReAct-style loop. When the context length exceeds the token budget (B= 2048 ), the eviction module is triggered. LRE performs CPU-based scoring of historical units. Units are ranked by s...

  11. [19]

    keep everything

    Evaluation and Task Goal Completion (TGC).AppWorld evaluates success using Task Goal Completion (TGC), computed via hidden unit tests that operate on the final environment state. A known failure mode isself-reported success bias, where task success is determined from the agent...

  12. [20]

    Keep all sections relevant and concise

  13. [21]

    Use reusable structured formats when summarizing artifacts

  14. [22]

    Ensure agent can resume task with no loss of information

  15. [23]

    Include key info from errors or failed attempts to prevent repeated mistakes

  16. [24]

    Request $28 privately on Venmo from my roommate, Melissa, with a note, ‘For the movie tickets’

    Preserve all essential artifacts and data needed to complete the task. ### [Output Format] Do not include the input or any additional explanation. Only return the formatted summary. C.2 Conversational domain Every conversational method reduces to a per-unitkeep-score(higher me...

Pith tools

Reviewed June 26, 2026 · model on record in the stance chip above.