A Matrix with Steps: An Episodic and Procedural Memory Method for Tool-Using Agents and Robots
Jürgen Paulhart, Peter Schüller
Abstract
Agents that call tools and robots that execute tasks are challenged by two shortcomings: they repeat what failed before, and they learn from runs that they only believe succeeded. We describe the construction of a memory that addresses both, built for a production agent platform. Every run is recorded as an episode, and only an outcome confirmed by an external check, a test, a tool result or a person counts; the agent's own claim never does. What is learned from episodes is kept in a memory with two parts: an associative matrix, written with the delta rule, which finds the procedure that applies to a situation; and a section of ordered, addressable step records that answers what comes after a given step, where a step is a goal of the agent, not a motion. Because the matrix sums its associations, it keeps no order and cannot return or delete a single one; it serves as the finder, and order, outcome counts and deletion live in the records. We describe how execution outcomes are stored, how episodes are recalled and used for solving tasks, and the file format that stores the memory. In simulation, a robot that judged its own success and stopped when it believed it was done reported 96\% of its tasks as done and solved 35\%; with external verification it solved 79%. In a store of 100000 synthetic episodes (457MB on disk), the oldest episode was still found first, no episode from another person's memory was returned, and a success vouched for only by the model was never recalled; a lookup took 16ms on a laptop and 40ms on a server node (median). Task outcomes were measured up to about 10000 confirmed records, where the exact records solved every revisit at the first attempt.
Create a lesson
Related papers
Keep the Process, Change the Supplier: Runtime Governance for Tool-Using AI Agents
Shared title terminology · Deepak Waghmare, Shaad Sufi
AdMem: Expectation-Grounded Procedural Memory for Long-Horizon Task-Solving Agents
Shared title terminology · Runzhe Wang, Huilin Lu, Shengjie Liu et al.
ToolGraph as a Q-Function for Test-Time Scaling of Tool-Use Agents
Shared title terminology · Ke Shen, Ankita Bhaumik, Li Dong et al.
Bel: Step-Level Policy Improvement of Visual Agents Without Training
Shared title terminology · Jiajun Fan, Ziwen Wang, Zhaoyu Zhu et al.
AstronautBench: Measuring Agent Self-Improvement Across Episodes Through Knowledge, Evidence, and Progress
Shared title terminology · Congyuan Yu, Runping Tian
How Much Should an Agent Remember? Deployment Lessons from Self-Distilled Memory for LLM Agents
Shared title terminology · K. R. Jayaram, Vatche Isahagian, Aswath Vaithinathan Aravindan et al.