TL;DR
CLIN (Continual Learning from Interactions) is a new framework for language agents that builds a dynamic, evolving memory of "causal abstractions"—essentially learning the underlying rules of how a world works rather than just memorizing specific steps. By reflecting on its successes and failures, CLIN significantly outperforms existing reflective agents like Reflexion, showing a 23-point lead in ScienceWorld and demonstrating a remarkable ability to transfer knowledge to entirely new tasks and environments.
What Problem Does This Paper Address?
Large Language Models (LLMs) are increasingly used as agents to solve tasks in simulated environments, but they have a "memory" problem. Traditional Reinforcement Learning (RL) requires thousands of trials and expensive model fine-tuning to learn a task. On the other hand, recent "reflective" agents (like Reflexion) try to learn from trial and error by storing textual "hints" in memory.
However, these hints are often too specific—for example, "I should go to desk 1 to find the lamp." If the agent moves to a new room where the lamp is on a shelf, that memory becomes useless or even distracting. The gap the authors address is the lack of generalization: how can an agent learn high-level principles that apply across different environments and tasks without needing to update the underlying model's parameters?
Methods
CLIN introduces a novel architecture composed of four main modules:
- Controller: A frozen LLM that takes the current task, a selection of relevant memories, and the trial history to generate a high-level goal (e.g., "find water").
- Executor: Another LLM that translates that goal into a specific, valid action within the environment (e.g., "go to kitchen").
- Simulator: The external environment (like ScienceWorld) that provides observations and rewards.
- Memory Generator: An LLM that reflects on a completed trial to update the agent's persistent memory.
The "secret sauce" is the Causal Abstraction format. Instead of free-form text, the Memory Generator is prompted to use specific templates:
- “X is NECESSARY to Y” (e.g., "Opening the fridge is necessary to access apple juice.")
- “X DOES NOT CONTRIBUTE to Y” (e.g., "Moving to another room does not contribute to freezing mercury.")
CLIN performs two types of learning:
- Adaptation (Within-episode): Retrying the same task in the same environment, refining the memory after each attempt.
- Generalization (Cross-episode): When faced with a brand-new task, CLIN generates a "meta-memory" by summarizing the most successful causal rules from previous, different tasks to jumpstart its performance.
Datasets
The authors evaluated CLIN on two primary benchmarks:
- ScienceWorld: A complex, text-based environment featuring 18 classes of science-related tasks (e.g., thermodynamics, genetics). These tasks are "long-horizon," often requiring a median of 37 steps to solve.
- ALFWorld: A benchmark based on household tasks (e.g., "put a clean sponge in the cabinet"). It is generally simpler and requires fewer steps than ScienceWorld.
Key Insights and Ideas
- Structure Matters: The move from free-form "hints" to structured causal abstractions is vital. Causal rules act as a linguistic "action model" that describes the physics or logic of the world, which is inherently more portable than specific instructions.
- Memory Pruning: CLIN’s memory is not just a growing list; it is dynamic. The system performs "saliency-based pruning," dropping unhelpful or erroneous insights and keeping those that lead to higher rewards.
- The Meta-Memory Jumpstart: One of the most striking findings is that CLIN can look at its "best" memories from past tasks to form a generalized strategy for a new one. This allows the agent to start a new task with a non-zero success rate, whereas most agents start from scratch.
- Efficiency Gains: CLIN doesn't just get smarter; it gets faster. As the agent learns, the number of steps required to complete a task decreases significantly.
Key Results
- Superior Adaptation: In ScienceWorld, CLIN-ADAPT outperformed Reflexion by 23 points. In ALFWorld, it showed a 1.4-point improvement over state-of-the-art reflective agents.
- Strong Generalization: When moved to unseen environments, CLIN achieved a 21-point performance boost in ScienceWorld and an 11-point boost in ALFWorld compared to its base performance.
- Human Validation: A human evaluation of the generated memories showed that while initial "meta-memories" were about 72% correct, they improved to over 90% correctness after just a few trials of adaptation.
- Ablation Success: Removing the "controller" (the goal-setting step) caused an 18-point drop in average reward, proving that hierarchical planning is essential for complex tasks.
Limitations and Future Work
- Exploration vs. Exploitation: CLIN is unlikely to generate insights about activities it hasn't observed yet. The authors suggest that integrating a "curiosity-driven" agent could help CLIN explore more of the environment to find even more causal rules.
- Initial Errors: Sometimes the initial "meta-memory" generated for a new task can be overly specific or slightly wrong, requiring a few trials to "debug" the memory.
- Environment Complexity: The gains in ALFWorld were smaller than in ScienceWorld, likely because ALFWorld tasks are simpler and leave less room for complex causal learning to show its value.
Summary updated