TL;DR
Remembering how you solved a problem in the past isn't enough if you can't tell where you currently are in a new one. MetaDecomp teaches LLM agents to learn reusable workflows alongside an evolving, abstract map of task progress—and whenever it discovers a crucial new distinction, it goes back to reorganize its old memories. The result is an agent that plans better, adapts on the fly, and solves complex multi-step tasks using fewer tokens.
What Problem Does This Paper Address?
Imagine you’re in a kitchen, tasked with putting a clean mug on a shelf. Whether you are holding a mug or a plate doesn't really change the recipe of actions you need. However, whether that mug is clean or dirty changes everything: one path goes straight to the shelf, the other detours to the sink.
Current LLM agents often build "procedural memories"—libraries of skills, workflows, or insights distilled from past successes. The catch? Storing successful routines isn't enough for long-horizon tasks. If an agent’s representation of progress is too coarse (e.g., recording only "holding object" and ignoring "cleanliness"), it merges histories that actually require completely different next steps. To reuse past experience effectively, an agent has to jointly figure out what workflows exist and which abstract details of the world actually matter for choosing between them.
Methods
MetaDecomp tackles this with an in-context meta-learning framework—meaning the LLM's weights stay frozen while external memory evolves—split into two coupled loops:
- Separating Roles from Progress: Instead of memorizing specific objects, MetaDecomp learns a state schema ($\Sigma$) that separates concrete entities ("roles" like
mugorplate) from abstract progress conditions ("fields" likeheld: 1,cleaned: 0). - Procedural Memory as a Multigraph: States are nodes in a graph. Connecting them are transition DAGs (Directed Acyclic Graphs)—reusable mini-workflows of operations and their prerequisite dependencies.
- The Outer Loop (Learning & Historical Reprojection): Across batches of successful training runs, the agent proposes new state distinctions (e.g., realizing
cleanedmatters) and extracts procedures. Crucially, what’s novel here is historical reprojection: when the state schema expands, MetaDecomp revisits raw past execution traces, re-evaluates what states those old runs were actually in, and untangles procedures that were previously lumped together. - The Inner Loop (Test-Time Adaptation): With memory frozen at test time, a planner refines an initial task plan (by default, cached decompositions from a baseline called MPO) using stored procedures. If the actor stalls mid-task, the planner projects current observations into the learned state space, finds shortest paths to target states in its memory graph, and splices applicable steps into the plan.
Datasets
- Main Evaluations: ALFWorld (134 unseen household text-manipulation tasks across 6 types) and ScienceWorld (211 interactive scientific experiment tasks across 10 categories).
- Zero-Shot Transfer Panel: The authors introduce a 480-task eight-benchmark fusion panel to test cross-domain transfer, drawing 60 tasks each from TWC, Coin, Map Reader, Arithmetic, TextCraft, Sorting, BabyAI, and WebShop.
Key Insights and Ideas
- Hindsight reorganizes foresight: If you learn a new concept today, your interpretation of yesterday's experiences should change. Ablating historical reprojection drops performance noticeably (from 88.81% to 82.84% on ALFWorld, and 72.20 to 62.92 on ScienceWorld), proving that re-indexing old memories under new schemas is vital.
- The "Partial Coverage" Trap: When transferring a frozen ALFWorld memory to the 8-benchmark fusion panel, high memory coverage boosted success by +12.05 percentage points, and low coverage did almost nothing (+0.76 pp) because unmatched states simply weren't recalled. Surprisingly, partial coverage actively hurt performance (-3.02 pp). When old memories match early steps of a new task, they lure the planner down familiar paths that leave later preconditions unsupported.
- States and procedures need each other: Supplying only learned states or only learned procedures—or severing the links between them—consistently degrades performance. Knowing how to do things is much less useful without knowing when they apply.
Key Results
Evaluated across five model–benchmark pairings over three seeds, MetaDecomp takes the top spot in four of them:
- ALFWorld: Achieves 86.3% mean success with Qwen3-4B (beating MPO at 79.9% and SkillOpt at 70.4%) and 94.5% with Qwen3-8B.
- ScienceWorld: Leads on smaller models with mean scores of 57.1 (Qwen3-8B) and 69.5 (Qwen3.5-9B). On the largest model (Qwen3.5-27B), SkillOpt edges it out (85.5 vs. MetaDecomp's 82.1).
- Efficiency: MetaDecomp uses fewer inference tokens than ReAct and AutoRefine across all five settings (e.g., 103.3K tokens/task vs. ReAct's 149.8K on ScienceWorld/Qwen3.5-9B), and requires 30.6%–63.1% fewer training tokens than SkillOpt.
Limitations and Future Work
- Negative transfer under partial overlap: As both the cross-benchmark fusion study and certain ScienceWorld tasks (like Mendelian Genetics) show, partially matching procedures can steer the planner into incomplete continuations.
- Exact-match bottlenecks: Online path recall during stalled executions requires the current state projection to exactly match the field values of a stored state; as schemas grow finer, exact-match recall coverage can shrink.
- Error propagation & scoping: Learning spaces are currently predefined per task type or group, and the authors note in their ethics statement that procedural memory can propagate incorrect behaviors across tasks if stored procedures aren't validated. Future systems will need better ways to match learned procedures to a new task's full preconditions and remaining work before committing to reuse.
Summary updated