Large Language Model (LLM) agents are notoriously "forgetful" and computationally expensive. Every time an agent is asked to perform a task—whether it is booking a flight or editing an image—it typically starts its reasoning process from scratch. This leads to high latency, significant token costs, and a frustrating lack of consistency.
A new research direction addresses this by treating agentic workflows not as one-off reasoning problems, but as a library of reusable procedures. By caching successful action sequences as "macros" or "muscle memory," agents can bypass expensive reasoning steps for recurring tasks, effectively evolving their capabilities post-deployment.
The Reasoning Tax and the Fast Path
The core intuition behind this direction is that reasoning is a "slow" process that should only be used for novelty. In human cognition, we don't "reason" about how to tie our shoes every morning; we execute a motor program. Current agents, however, pay a "reasoning tax" on every step.
To solve this, researchers like Advait Gupta and Tianyi Zhou propose a "Fast-Slow" architecture. In their work on FaSTA*, they demonstrate that agents can "mine" successful tool sequences from past interactions. When a similar task appears, the agent takes a "fast path," executing a symbolic subroutine instead of invoking a slow, search-based planner. This approach can handle over 90% of subtasks, cutting execution costs in half.
Memory as Muscle Memory
This procedural caching is often framed as a specialized form of memory. Unlike standard Retrieval-Augmented Generation (RAG), which retrieves facts, these systems retrieve trajectories.
Yunfei Feng and colleagues describe this in MOBIMEM as a "memory-centric" architecture. By storing and replaying successful interaction sequences, mobile agents achieve a 9x speedup. This functions as a lightweight muscle memory: the agent recognizes a trigger (e.g., "order my usual coffee") and immediately executes the corresponding UI actions without needing to "think" about where the buttons are.
Similarly, Mobile-Agent-E, developed by Zhenhailong Wang and Heng Ji, uses a dual-memory system of natural language "Tips" and executable "Shortcuts." These shortcuts are macros with defined preconditions, allowing the agent to skip redundant planning steps for complex, multi-app tasks.
Survival of the Fittest Actions
If an agent caches every sequence it ever tries, its memory will eventually become cluttered with inefficient or failed attempts. To prevent this, the research has moved toward "self-regulating" or "evolutionary" memory systems.
In the Darwinian Memory System (DMS), Hongze Mi and Yibo Feng treat action snippets like organisms in an ecosystem. Only the most reliable and efficient snippets survive. This training-free evolution allows open-source models to eventually outperform much larger proprietary models like GPT-4o by simply refining their library of "vetted" procedures over time.
Scaling to Robotics and Simulations
The benefits of procedural caching extend beyond mobile UIs into physical and social domains:
- Robotics: In ManiAgent, Yi Yang and Tiancai Wang use caching for recurring manipulation sub-tasks. Instead of generating a new plan for "grasping a cup," the robot retrieves a parameterized action sequence, reducing the latency inherent in Vision-Language-Action (VLA) models.
- Social Simulations: Yangbin Yu and Qin Zhang introduced Affordable Generative Agents (AGA), which uses "Lifestyle Policies." By caching behavioral patterns, they reduced token consumption by 96%, proving that agents don't need to reason about their daily routines to remain believable.
Why It Works
Procedural caching works because it shifts the burden of performance from inference-time reasoning to retrieval-time recognition. By identifying that a current goal matches a previously solved problem, the agent transforms a complex planning task into a simple execution task. This not only saves time and money but also increases stability; a cached, verified macro is far less likely to hallucinate than a model generating a plan from scratch.