Language-Conditional Forgetting for Agent Memory

LLM agents can now keep a persistent memory: after each task they write down short lessons or reusable routines ("to filter by price, open the sidebar first") and retrieve them on later tasks. This raises success rates on English web benchmarks. Separately, multilingual agent benchmarks show that the same models lose 9 to 20 points when the user, the website, or the tools operate in another language. Nobody has asked what happens when you carry an English-built memory into those other languages.

We propose to measure, for every stored lesson, whether it helps or hurts in each language. We then delete or quarantine lessons for exactly the languages where they hurt. The bet is that a lesson's value depends on the language. A routine written as "delete the contact named {name}" generalizes cleanly across websites in English. In a language without plural marking, the same abstraction may license the agent to delete every matching contact. If that bet holds, the right form of forgetting for agent memory is per language rather than global, and it should be estimated by deliberately withholding lessons rather than by counting how often they are used.

Core Claim

The claim is that the usefulness of an experiential memory item is language-conditional. English-induced memory transferred off-English contains a measurable fraction of items that are net-positive in English but net-negative in specific target languages. Pruning by an estimated per-language utility should close more of the multilingual gap, using fewer target-language episodes, than three alternatives: keeping everything, pruning globally, or building a fresh memory per language.

The classical form of this idea is the utility problem from explanation-based learning. Quantitative Results Concerning the Utility of Explanation-Based Learning showed that learned search-control rules must be kept only if their measured savings exceed their matching cost. Disabling that pruning degraded Blocksworld performance by 65%. We keep the cost-benefit form and change two things.

The first change is the benefit term. It becomes a causal estimate obtained by randomly withholding an item. In current LLM memories, usage counts are confounded with task difficulty.

The second change is that both benefit and cost are indexed by language. X-WebAgentBench reports that non-Latin scripts cost at least twice the tokens of English. The price of placing an item in context is therefore itself language-dependent.

Concretely, for item $m$ and language $\ell$ we estimate

$$U(m,\ell) = \Pr[\text{success} \mid m \text{ shown}, \ell] - \Pr[\text{success} \mid m \text{ withheld}, \ell] - \lambda \, c(m,\ell),$$

where $c(m,\ell)$ is the item's token length when rendered for language $\ell$, and $\lambda$ converts tokens into success-rate units. The value of $\lambda$ is set by the deployment's token budget.

Per-language estimates will be noisy, so we shrink each $U(m,\ell)$ toward the item's cross-language mean with a simple hierarchical model. An item is removed for language $\ell$ only when the posterior probability that $U(m,\ell)<0$ exceeds a threshold. The same item stays available elsewhere.

Research Program

Memory construction. We build memory in English with a ReasoningBank-style pipeline. ReasoningBank distills titled reasoning units from both successes and failures. We also include an Agent-Workflow-Memory-style variant. Agent Workflow Memory induces parameterized routines with variables such as {product-name}.

These two papers supply the method. Both are English-only, and both name forgetting or consolidation as unsolved, which is the gap we fill.

Deployment and estimation. We deploy the memory on target-language episodes. On each retrieval, every candidate item is withheld independently with probability $\varepsilon$. That randomization yields an unbiased estimate of each item's effect, using only episodes the agent runs anyway.

This estimate differs from the dynamic scoring in From Interactions to Principles (EvolveR). EvolveR combines retrieval frequency with task outcome and raised the share of "Ideal" principles in its top tier from 26% to 82%. Its score is global, it is applied to English multi-hop QA, and it credits an item whenever it co-occurs with success. We test directly whether that co-occurrence credit misranks items once the language changes.

The approach also contrasts with the LRU cap in Failures Pave the Way (TRAN). TRAN evicts rules by recency alone and was evaluated on single-turn English classification.

Diagnosis. We tag each pruned item-language pair with the failure it caused. We use the error taxonomy of OmnilingualGAIA2, which separates reasoning and orchestration breakdowns (55% of failures) from translation defects (34%). We also check for morphological mismatches of the kind M2C documents, where up to half of errors in some languages are morphological near-misses.

This diagnosis tests the tension between two findings. On one side, abstraction is what makes plans transfer: CPL gets +12.2 on HumanEval from math-only plan learning, and Agent Workflow Memory gains 8.9 to 14.0 points across domains. On the other side, abstraction may strip the markers that non-English execution needs. If the harmful items cluster as over-general routines in languages without number marking, the tension is real, and pruning is a stopgap for a representation problem. If they do not cluster, that is evidence that cross-lingual transfer of procedural memory is mostly safe.

Baselines

No memory. The naive reference point is the same backbone agent with no memory. On X-WebAgentBench, the file reports GPT-4o at an average task score of 37.11 across 14 languages (X-WebAgentBench). On OmnilingualGAIA2, it reports Claude 4.7-Opus at 82.7% pass@3 in English versus 73.6% off-English (OmnilingualGAIA2). We rerun the no-memory condition ourselves on our backbones rather than relying on these figures.

Unpruned transferred memory. The strongest existing method is the full English ReasoningBank memory carried over unchanged and retrieved by multilingual embeddings. On WebArena-Shopping in English, ReasoningBank reports 49.7% success without test-time scaling. The file reports no result on Lacuna for any memory-augmented agent on X-WebAgentBench or OmnilingualGAIA2. Establishing that number is itself a contribution.

Global empirical pruning. This is the main ablation, and it isolates our key ingredient. It uses the same withholding estimator but pools across languages. We also run EvolveR's frequency-times-outcome score and TRAN-style LRU at a matched memory size.

Fair comparison. All conditions share the backbone, the memory-induction episodes, and the retrieval top-k. They also share an identical budget of target-language episodes for estimation and adaptation. Each condition gets the same hyperparameter search budget, tuned on a held-out language. Only the pruning rule differs.

What counts as winning. Language-conditional pruning beats the baselines if it beats both unpruned and global pruning on held-out target-language tasks with non-overlapping bootstrap intervals, at equal or lower context tokens. The gain must hold in at least the non-Latin and number-marking-poor languages (Hindi, Chinese, Japanese, Indonesian) where we predict it.

Why not just…?

Why not just translate everything to English and use the English memory as is? OmnilingualGAIA2 attributes only 34% of off-English failures to translation and 55% to genuine orchestration breakdowns. It also shows that translated prompts mismatch untranslated interface strings. Still, this is a real competitor for memory specifically. We run translate-test, where the query and observations are translated to English before retrieval, as a full condition under the same episode budget. If it matches our method, we will report that the language-conditional effects are artifacts of retrieval mismatch rather than item value.

Why not just build a separate memory online in each target language? This is the most serious threat. It needs no transfer at all, and ReasoningBank-style self-evolution needs no human demonstrations. Our claim is about sample efficiency, so we plot success against the number of target-language episodes for per-language-from-scratch, unpruned transfer, and our method. If from-scratch catches up within a few hundred episodes, the value of transfer is small. We would then reframe the contribution as the estimator and diagnosis rather than the transfer.

Why not just prune globally, since a bad lesson is probably bad everywhere? If item utility is language-invariant, global pruning wins, because it pools data. The first decisive check below measures exactly that heterogeneity before any comparison of end performance. If heterogeneity is absent, the per-language machinery is unnecessary, and we drop it.

Why not just use a bigger model? OmnilingualGAIA2's Qwen size ladder found the multilingual gap widening with active parameters. We nonetheless run the full study on two backbone scales to see whether harmful item-language pairs shrink with scale.

Proposed Experiments and Decisive Checks

Testbeds. The primary testbed is X-WebAgentBench. Memory is induced on its English shopping tasks, and estimation and evaluation run on disjoint task splits in the other 13 languages. The secondary testbed is OmnilingualGAIA2 (10 languages, pass@3), excluding its reported 6.4% unsolvable tasks. As a cross-domain probe, we test shopping-induced memory on GAIA2 tool tasks.

Backbones. We use an open-weight mid-size model, which the OmnilingualGAIA2 numbers suggest has a large gap (Qwen-3.6-35B-A3B shows 18.4 points), and one frontier API model.

Metrics. We report task success, steps, total context tokens, and the rate of trajectory loops beyond five steps, which X-WebAgentBench identifies as the dominant failure.

Check 1: is utility heterogeneous across languages? Using the withholding estimator, we test for an item-by-language interaction in a mixed-effects model of success. We report the fraction of items whose English utility is significantly positive while some target-language utility is significantly negative. A near-zero fraction falsifies the core claim.

Check 2: does the item-level signal turn into end performance? We compare language-conditional pruning against the baselines above at matched episode budgets, with learning curves.

Check 3: does the diagnosis match the hypothesized mechanism? We test whether harmful pairs are concentrated in parameterized routines, as opposed to prose lessons, and in languages lacking number marking. We also test whether adding a language-specific guard clause to a harmful item restores its utility, instead of deleting it. A positive result there would point future work toward typology-aware abstraction rather than forgetting.