TL;DR
Memory-augmented LLM agents seem to bypass the classic stability-plasticity dilemma of continual learning by storing experiences externally instead of updating weights. However, this paper reveals that the dilemma doesn't disappear—it simply shifts to the retrieval level, where old and new memories compete for space within the LLM's limited context window. By analyzing memory representation and organization, the authors show that poorly designed external memory can cause severe negative transfer and forgetting.
What Problem Does This Paper Address?
In traditional parametric continual learning (CL), sequential training causes "catastrophic forgetting" because new gradient updates overwrite old knowledge in the model's weights. Equipping LLM agents with external memory databases seems like an elegant fix: keep the core LLM weights frozen, log experiences on the fly, and retrieve them when needed.
The authors argue that this setup doesn't actually solve the fundamental challenges of continual learning; it just relocates them. Instead of interference in the weight space, agents face interference in the retrieval space. When an agent transitions from Task A to Task B, irrelevant or mismatched memories can cause retrieval pollution, valid memories can be crowded out due to context competition, and an expanding database can lead to memory dilution. This paper provides the first controlled, systematic study of how external memory behaves under sequential task shifts.
Methods
To systematically evaluate memory dynamics, the authors introduce a $(k, v)$ framework that decouples memory along two design axes:
- Value ($v$) - Memory Representation: How experiences are stored. The authors compare Raw representations (full action-observation trajectories) against Insight representations (abstract, high-level strategies distilled by an LLM).
- Key ($k$) - Memory Organization & Access: How memories are indexed and queried. They test three configurations:
- Cond-Agg (Conditional-Aggregated): Insights from an entire episode are bundled together and retrieved once at the start of a new episode.
- Cond-Ind (Conditional-Individual): Insights are stored and indexed individually, allowing the agent to retrieve specific snippets from different past episodes at the start of a task.
- Cond-Step (Conditional-Step): Uses individual storage but re-queries the memory pool periodically during execution to dynamically update guidance.
The evaluation protocol measures Forward Transfer (FWT) (how much Task A helps or hurts Task B) and Backward Transfer (BWT) (how much learning Task B degrades performance on Task A). They also introduce a fine-grained diagnostic that splits test sets into "easy" (baseline-success) and "hard" (baseline-fail) subsets to pinpoint exactly where memory helps or hurts.
Datasets
The authors evaluate their framework using two sequential-task environments:
- ALFWorld: A text-based embodied environment. The agents transition from an easier task (Task A:
pick_and_place) to a procedurally harder task requiring an extra step (Task B:pick_clean_place). - BabyAI: A grid-world navigation environment. The agent moves from a heterogeneous set of tasks (Task A:
action_obj_door) to a highly homogeneous search task (Task B:find_obj).
Key Insights and Ideas
- Abstraction is a Safety Net: Raw trajectories are riddled with task-specific details. When an agent moves from an easy task to a harder one, retrieving raw trajectories can trick the agent into executing locally plausible but globally incorrect actions. Abstract insights strip away this noise, making cross-task reuse significantly safer.
- Within-Task Performance is a Trap: A memory design that looks phenomenal when evaluated on a single task distribution can completely fall apart under a task shift. For instance, Raw trajectories provide a massive boost within the same task family, but cause severe negative transfer when the task changes.
- Negative Transfer Targets the Vulnerable: The subset diagnostics reveal that negative transfer is not evenly distributed. Easy cases remain solvable regardless of memory pollution, but hard cases—which depend heavily on retrieved guidance—suffer drastically when fed mismatched procedural details.
- Retrieval Diversity Collapse: Finer memory granularity (storing individual insights) sounds strictly better than bundling them. However, if the target task is highly homogeneous (like BabyAI's grid search), similar queries will repeatedly pull the exact same few entries, rendering a large memory pool practically useless.
- The Retrieval Stability-Plasticity Trade-off: Finer storage granularity can maximize an agent's adaptability to a new task (plasticity), but it simultaneously accelerates memory dilution, making it harder to surface old memories during backward evaluation (stability).
Key Results
- Value Representation: In the A $\rightarrow$ B task sequence, storing Raw trajectories led to negative forward transfer across both environments ($-9.5\%$ in ALFWorld, $-7.5\%$ in BabyAI). Switching to Insight representations flipped this to positive forward transfer ($+6.5\%$ in ALFWorld, $+9.0\%$ in BabyAI).
- Hard Case Vulnerability: In ALFWorld (A $\rightarrow$ B) using Raw memory, performance on the easy subset slightly improved ($+4.6\%$), but the hard subset plummeted by $-26.1\%$, illustrating how cross-task noise disproportionately breaks difficult cases.
- Memory Organization Trade-offs: In BabyAI (A $\rightarrow$ B), the fine-grained
Cond-Indconfiguration achieved the highest forward transfer ($+15.0\%$) but also triggered the worst forgetting on previous tasks (BWT of $-10.0\%$), exposing a clear retrieval-level stability-plasticity dilemma.
Limitations and Future Work
The authors acknowledge that their study prioritizes controlled, deep analysis over massive scale. Limitations include:
- Scope: The experiments are restricted to two environments with one task pair each.
- Retrieval Mechanism: The framework relies entirely on a sparse text retriever (BM25). Performance might differ with dense vector embeddings or hybrid retrieval strategies.
- Sample Size: Due to resource constraints, quantitative results are averaged over two independent runs.
Future work includes expanding task coverage, evaluating more sophisticated dense retrievers, and developing algorithms that can dynamically manage memory consolidation to mitigate dilution and pollution automatically.
Summary updated