---
title: 'Procedural Memory: Definition & Uses in AI'
url: https://www.emergentmind.com/topics/procedural-memory
type: topic
---

# Procedural Memory: Definition & Uses in AI

Procedural memory is memory for learned skills, routines, habits, and action sequences: the capacity to perform an activity—“knowing how”—without necessarily recalling explicit instructions or the episode in which the skill was acquired. In cognitive science it is generally distinguished from declarative memory, which concerns consciously accessible facts and events. In artificial-intelligence research, “procedural memory” is used both as an architectural analogy for the pattern-completion competence of transformer-based large language models (LLMs) and as a design concept for persistent, reusable, and updateable agent knowledge about how to act. Contemporary systems operationalize it as textual procedures, state–action–result exemplars, workflow graphs, executable skills, parameterized adapters, activation-space steering vectors, or combinations of these representations.

## 1. Cognitive and neuropsychological foundations

Procedural memory is associated with non-declarative learning: skills and habits acquired through repetition and practice. Repeated piano practice, for example, strengthens action tendencies until performance becomes relatively automatic. The supplied research links this function to basal-ganglia learning systems while contrasting it with declarative memory systems associated with explicit facts and experiences [2505.03434].

Procedural memory is primarily concerned with **how to perform** an action. Semantic memory is concerned with what is true, which concepts exist, or which rules are relevant; episodic memory concerns particular events and experiences; associative learning links states, actions, events, and outcomes. These functions overlap but are not interchangeable. A system may express a fact without reliably storing or verifying it, represent a rule without knowing which action has historically worked, or estimate action–outcome relationships without communicating the resulting decision naturally [2505.03434].

### Procedural memory and dementia

Early-stage dementia provides an important distinction between preservation of previously learned procedures and acquisition of new ones. Older adults with cognitive decline may retain embodied, sensorimotor patterns acquired through repeated practice even when semantic comprehension, episodic recollection, and new learning deteriorate. A person may continue opening KakaoTalk, sending a message, checking a train schedule, taking a photograph, or playing music without being able to explain the application’s purpose or learn an unfamiliar device from scratch [2507.10102].

The persistence of familiar digital routines is therefore not equivalent to intact general digital literacy. Previously learned, embodied routines may continue through procedural memory, whereas late adoption of unfamiliar technologies may be extremely difficult. Caregivers described this persistence as “embodied familiarity,” including the ability to listen to music, watch church videos on YouTube, send family photographs, make telephone calls, and check weather or transportation information [2507.10102].

Procedural memory interacts with **symbolic anchors**: recognizable and emotionally meaningful elements such as family photographs, names, familiar faces, application icons, music, religious content, and familiar contacts. The routine supplies the action sequence, while the symbolic anchor supplies recognition, motivation, and personal meaning. These anchors can support autonomy, emotional engagement, and social connection. Conversely, unfamiliar anthropomorphic devices, motion sensors, or technologies perceived as surveillant may produce fear, symbolic resistance, delegation, or withdrawal [2507.10102].

The South Korean dementia-care study was based on in-depth interviews with 11 professional caregivers and used constructivist grounded theory, constant comparison, memo-writing, member checks, peer debriefing, thick description, and an audit trail. Its limitations include the absence of direct interviews with people living with dementia, concentration on early-stage cognitive decline, a small culturally specific sample, and the observational nature of caregiver-mediated evidence [2507.10102].

## 2. Procedural competence in large language models

LLMs are described as possessing a computational function analogous to procedural memory rather than a biological memory system. Their parameters encode regularities extracted from large corpora, and self-attention estimates relationships among tokens to generate likely continuations. A prompt normally activates a learned pattern of response rather than retrieving a persistent autobiographical or episodic memory [2505.03434].

This analogy explains capabilities including:

- **Text generation**: fluent continuations arise from learned linguistic, rhetorical, and stylistic patterns.
- **Code completion**: error messages, function signatures, and partial programs activate familiar repair and completion patterns.
- **Conversational coherence**: attention to preceding tokens supports local or session-level coherence.
- **Instruction following and chain-of-thought**: these can be treated as learned procedures or procedural extensions rather than evidence of human-like semantic understanding or associative memory.

The analogy does not imply that LLMs literally possess a biological basal ganglia. It characterizes their dominant computational function as repeated statistical association embedded in parameters and used for automated pattern completion [2505.03434].

During inference, a conventional transformer generally performs a forward computation using fixed parameters. It does not ordinarily consolidate a new experience into durable memory, autonomously revise its attention mechanisms, or modify its weights in response to newly discovered regularities. Outputs are probabilistic predictions based on corpus regularities rather than direct access to verified truth. Hallucinations or confabulations occur when fluent statistical continuation is not grounded in the external world [2505.03434].

This procedural competence is strongest in **kind environments**: settings with stable rules, repetitive patterns, and immediate, unambiguous feedback. Chess, standardized testing, cooking recipes, compiler-error repair, standard code idioms, and conventional document formats exemplify such conditions. Even there, procedural competence may overfit training distributions and fail on edge cases [2505.03434].

It is weaker in **wicked environments**, where rules shift, feedback is sparse or delayed, novelty and distribution shift are normal, action–outcome relationships are uncertain, and adaptation is required. Entrepreneurship, healthcare diagnosis, customer engagement, and complex real-world decision-making exhibit these characteristics. An LLM may produce a plausible recommendation but lack an intrinsic mechanism to retain an ambiguous outcome, relate it to prior interactions, maintain competing hypotheses, and revise future policy [2505.03434].

The limitations commonly associated with standard LLM operation include:

1. **Persistent state**: prior interactions are not retained unless inserted into a later prompt.
2. **Long-term continuity**: finite context windows constrain the amount of history carried forward.
3. **Memory consolidation**: summaries and stored records may imitate memory without integrating experience into structured, flexibly retrievable knowledge.
4. **Dynamic revision**: retrieval-augmented generation supplies documents as static context but does not naturally reconcile or revise them during interaction.
5. **Inference-time meta-learning**: newly discovered regularities do not normally modify parameters or attention mechanisms.

Fine-tuning is not presented as a complete solution because it can overwrite earlier capabilities, cause catastrophic forgetting, and be expensive or operationally unsuitable for rapid adaptation [2505.03434].

## 3. Representations and architectures

Procedural memory in AI is not a single representation. Research systems differ in the object stored, the retrieval index, the update mechanism, and whether the memory remains external or is distilled into model parameters.

### External textual procedures and trajectories

The $Mem^p$ framework represents procedural memory as reusable knowledge about how to perform a task: action sequences, tool-use patterns, planning heuristics, recovery strategies, and environment-specific routines. It distinguishes fine-grained trajectory memory from higher-level script memory. Trajectories preserve tools, action order, observations, intermediate states, and recovery behavior; scripts summarize subgoals, constraints, recurring environment facts, mistakes, and correction tactics [2508.06433].

The framework defines three lifecycle operations:

- **Build**: construct memories from completed trajectories.
- **Retrieve**: select relevant memories for a new task.
- **Update**: add, revise, validate, or discard memories after new experience.

Trajectory, script, and combined “Proceduralization” conditions generally outperform no-memory operation on TravelPlanner and ALFWorld. In the reported experiments, combining complete retrieved trajectories with a high-level script often gives the strongest results. Query-based and AveFact retrieval outperform random sampling, while excessive retrieval can hurt through context-length pressure, irrelevant procedures, and conflicting memories [2508.06433].

### State-indexed procedural recall

PRAXIS stores local state–action–result exemplars rather than complete textual workflows. Each memory records the environmental state before an action, the agent’s internal directive, the action, and the resulting environmental state. Retrieval first matches environmental state using intersection-over-union and length overlap, then orders candidates by internal-state similarity [2511.22074].

This representation is designed for stateful web environments in which small interface details—cookie banners, form layouts, selected filters, dialogs, and page-specific controls—determine which action is appropriate. The system stores experiences externally without modifying foundation-model weights. On the REAL benchmark, which contains 11 deterministic website replicas and 112 everyday tasks, PRAXIS increased mean accuracy from 40.3% to 44.1%, reliability from 74.5% to 79.0%, and reduced average steps from 25.2 to 20.2 [2511.22074].

### Scenario-indexed and utility-managed procedures

ReMe represents an experience as a usage scenario, procedural content, keywords, confidence, and tools used. Its lifecycle consists of multi-faceted distillation, context-adaptive reuse, and utility-based refinement. Successful trajectories yield success patterns; failed trajectories yield failure triggers and prevention strategies; comparative analysis identifies differences between high- and low-scoring attempts [2512.10696].

ReMe retrieves experiences by usage-scenario embeddings, optionally reranks them, rewrites them for the current task, and tracks retrieval count $f(E)$ and successful-use count $u(E)$. Its empirical utility estimate is $\widehat{U}(E)=u(E)/f(E)$. With $\alpha=5$ and $\beta=0.5$, an experience becomes eligible for removal after at least five recalls when its average utility is no more than one half [2512.10696].

### Procedures as graphs

Procedural Graphs organize procedural knowledge into $(\text{procedure},\text{relation},\text{procedure})$ structures analogous to knowledge graphs’ $(\text{entity},\text{relation},\text{entity})$ representation. Nodes represent tools, actions, reasoning steps, skills, verification operations, or task states. Edges encode relations such as `LEADS_TO`, `TRIGGERS`, `PROVIDES_INPUT_FOR`, and `CONVERGES_TO`; edge attributes specify conditions, guidance, and pitfalls [2609.09153].

At inference time, the system localizes the active node, retrieves a directed neighborhood, and translates that subgraph into situational guidance. The graph biases the solver without deterministically forcing an action. A validation gate accepts only structurally valid mutations that do not decrease held-out performance; rejected edits are retained in rejection memory to discourage repetition [2609.09153].

SPEM uses a related two-level design: Atomic Skill Memory stores individual skills with semantic embeddings and execution feedback, while Skill-DAG Memory stores directed acyclic graphs distilled from successful executions. When no reusable DAG exists, Skill-GNN selects and organizes atomic skills using task, state, history, and inter-skill relations. Successful executions are compressed through backward slicing into reusable DAG templates [2610.26995].

In ALFWorld, SPEM reduced successful trajectories from an average of 13.4 steps to DAG backbones averaging 6.0 steps, pruning 54.9% of operations. In an exact-template analysis, steps decreased from 11.42 to 6.26, tokens from 23.77K to 11.93K, and runtime from 28.01 to 20.88 seconds [2610.26995].

### Executable skills and structured procedural-episodic memory

ProcMEM defines an executable Skill as a triplet consisting of an activation condition, an ordered execution procedure, and a termination condition. Skills are selected from a dynamic pool, guide a frozen LLM’s primitive actions, and terminate when their stopping condition is satisfied or their activation condition ceases to hold [2602.01869].

APEX-EM combines episodic and procedural information in structured Experience nodes. These include goal reflection, procedure reflection, evidence, execution traces, error registries, patches, quality scores, and success or failure status. Its PRGII workflow—Plan, Retrieve, Generate, Iterate, Ingest—retrieves positive and negative procedural examples, generates an artifact, validates it iteratively, and stores the resulting experience in a procedural knowledge graph [2603.29093].

### Parameterized and neural procedures

VLA-Pro stores task-specific LoRA adapters paired with structured procedural states describing action type, object geometry, end-effector orientation, and target relation. At inference time, relevant adapters are retrieved and dynamically fused for the current action chunk. The base VLA remains frozen, while the temporary fused adapter modifies perception-to-action computation [2605.29562].

Neural Procedural Memory (NPM) instead stores contrastive activation-space representations. Successful and degenerate trajectories are converted into positive–negative hidden-state pairs, and a principal activation direction is injected into the model’s residual stream. NPM therefore guides execution without inserting textual instructions into the prompt or changing model weights [2606.29824].

## 4. Learning, refinement, and memory management

Procedural-memory systems differ sharply in how they learn from success, failure, and changing environments.

### Positive and negative experience

Systems that store only successful trajectories can preserve useful routines but lack explicit information about failure boundaries, incorrect assumptions, and recovery. ReMe uses failure-aware reflection but admits a failure-derived procedure only after a subsequent reflected trial succeeds [2512.10696]. APEX-EM stores failures as structured negative examples with error classes, root-cause hypotheses, recovery procedures, and patches [2603.29093].

CONTRAMEM obtains supervision from disagreement among heterogeneous models attempting the same task. Its Reflector compares correctness, efficiency, recovery, and failure modes, then distills Function Cards for app-level tool contracts and Skill Cards for task-level decision rules. A localized Curator may add, patch, merge, narrow, or reject a candidate. On GAIA2/ARE, the curated bank contained 256 Skill Cards and 74 Function Cards; localized curation reduced an append-only bank from 273 to 205 cards while improving GPT-5.5 success on four non-temporal abilities from 65.0% to 71.9% [2608.22533].

### Utility, validation, and forgetting

Dynamic management is necessary because append-only memory accumulates redundancy, stale procedures, harmful advice, and conflicting rules. ReMe prunes low-utility memories; MAGNET uses retrieval frequency and an Ebbinghaus-like retention score to make frequently accessed workflows decay more slowly; AdMem merges and prunes memories using retrieval statistics and reward-based usefulness estimates [2512.10696] [2601.19199] [2606.06787].

MAGNET separates procedural memory, which captures stable task intent across changing workflows, from stationary memory, which links visual features to stable UI semantics. This division addresses workflow drift and appearance drift separately. On AndroidWorld, its success rate increased from 31.14% before iterative adaptation to 40.98% after three iterations while retrieval of Amex-derived procedural memories fell from 100% to 26% [2601.19199].

AdMem integrates semantic, episodic, and procedural memory with short-term and long-term stores. An actor produces an action and expected outcome; a critic evaluates the outcome and generates a procedural reflection; a memory agent retrieves, merges, and prunes persistent entries. Its multi-epoch Jericho experiment increased task completeness from 45.0% in the first epoch to 60.0% in the third epoch [2606.06787].

### Co-evolution and parameter internalization

Procedural memory can remain external or be distilled into model parameters. PMD maintains three levels—raw experience, problem-specific insights, and cross-problem behaviors—and uses memory-conditioned self-distillation to train a student policy. The memory is a training scaffold and is discarded at inference. On Qwen3-8B, PMD improved over SDPO from 74.4 to 77.2 on SciKnowEval and from 47.9 to 51.7 on LiveCodeBench [2607.01480].

PMD’s ablations indicate that policy and memory must co-evolve. Evolving memory with a frozen policy, or evolving the policy against frozen memory, performs worse than the complete system. This distinguishes PMD from external retrieval systems: its objective is not persistent runtime memory, but internalization of procedural information into the policy.

## 5. Applications

### Workplace and tool-use agents

AFTER evaluates procedural skills across 382 enterprise tasks, six professional roles, and 22 skills. It distinguishes local improvement from cross-task, cross-role, and cross-model transfer. One refinement round improved aggregate complete-task accuracy by 3.7–6.7 points across reported model scales. Diverse multi-model traces achieved 73.1% cross-model test accuracy, compared with 36.0–59.4% for single-model trace sources [2606.23127].

The benchmark demonstrates that specificity and generality can conflict. A skill may improve its source tasks while becoming specialized to one role or model. PDF processing, for example, can mean structured ingestion for a data scientist or executive summarization for a project manager. Cross-role application of role-specific skills reduced performance by 4.8–7.5 points in the reported PDF experiments [2606.23127].

### Computer-use agents

CONTRAMEM targets stateful computer-use tasks requiring tool contracts, asynchronous observations, reads and writes, recovery, and completion checks. On held-out GAIA2/ARE tasks, its shared multi-model bank increased macro-average success from 26.2% without memory to 55.3%, and transferred unchanged to Qwen3.7 Plus, where success increased from 18.5% to 35.5% [2608.22533].

Procedural Graphs similarly target long-horizon tool use, delayed effects, and prerequisite-sensitive execution. Across ALFWorld, WebArena, and OfficeBench under AutoGen and DyLAN, the framework achieved the highest task scores among compared methods in all six settings. Under AutoGen, it improved over no-added-memory baselines by 29.85, 25.86, and 13.00 percentage points, respectively [2609.09153].

### GUI and web interaction

MAGNET addresses mobile-GUI drift by combining intent-level procedural workflows with visual stationary memory. Its procedural workflows use high-level steps and placeholders rather than fixed coordinates or exact pixels. The procedural component supports task decomposition; stationary memory grounds an abstract step to the current visible control [2601.19199].

PRAXIS addresses web browsing through state-dependent recall. It stores local transitions grounded in environmental and internal state, allowing procedures to be recalled when a similar interface configuration reappears [2511.22074].

### Robotics and vision-language-action models

VLA-Pro treats procedural memory as parameterized motor adaptation. Task-specific LoRA adapters transfer manipulation behavior across objects, poses, spatial relations, and action patterns. On RoboTwin, relative improvements reached 76% for X-VLA, 207% for RDT, and 47% for $\pi_{0.5}$. On real-world held-out manipulation tasks, average success increased from 5.8% to 65.0% [2605.29562].

### Multi-agent collaboration

SEPM extends procedural memory to teams by coupling procedures with task-dependency graphs, shared blackboards, agent ownership, handoffs, evidence, and verified state. It distinguishes goal, plan, and world-state divergence and propagates corrections through affected dependencies. Explicit graphs outperformed textual procedures by 17.16 points on ALFWorld, 8.13 on WebArena, and 12.34 on OfficeBench [2610.14515].

## 6. Evaluation, limitations, and open problems

Procedural memory is evaluated through task success, partial and complete accuracy, reward, execution steps, token usage, runtime, reliability, transfer, reuse, and survival over long horizons. Different systems emphasize different metrics. $Mem^p$ reports TravelPlanner constraint scores and ALFWorld success and steps; PRAXIS reports accuracy, reliability, and interaction steps; ReMe uses Avg@4 and Pass@4; AFTER uses partial test-pass accuracy and complete-task accuracy; Procedural Graphs additionally evaluate long-horizon survival, tool calls, and capital raised [2508.06433] [2511.22074] [2512.10696] [2606.23127] [2609.09153].

Several limitations recur across the literature.

**Representation dependence**: retrieval quality depends on how states, tasks, procedures, or skills are represented. Poor state encodings cause false similarity; overly specific trajectories transfer poorly; overly abstract scripts omit execution details; graph abstractions depend on suitable node vocabularies and relation types.

**Context and retrieval interference**: retrieving too many memories consumes context, introduces irrelevant or conflicting procedures, and can reduce performance. This effect appears in $Mem^p$, PRAXIS, ReMe, NPM, VLA-Pro, and SPEM [2508.06433] [2511.22074] [2512.10696] [2605.29562] [2606.29824] [2610.26995].

**Failure attribution**: a single unsuccessful trajectory may not identify the actual cause of failure. LLM judges and reflectors can generate plausible but incorrect causal explanations, while success alone does not guarantee that a trajectory is optimal or broadly reusable.

**Staleness and distribution shift**: interface redesigns, changing APIs, role changes, nonstationary environments, and altered user behavior can invalidate formerly successful procedures. Explicit deprecation, conflict resolution, versioning, and environment-dependent applicability remain incomplete in many systems.

**External-memory dependence**: non-parametric systems avoid weight updates and catastrophic forgetting but incur retrieval, indexing, storage, prompt, and inference costs. Systems such as PMD instead absorb memory into parameters, but then face policy drift, teacher self-reinforcement, and the difficulty of distinguishing procedural knowledge from semantic knowledge [2607.01480].

**Safety and privacy**: procedural memories may contain credentials, sensitive URLs, private data, unsafe actions, or harmful recommendations. APEX-EM, CONTRAMEM, Procedural Graphs, and SEPM emphasize provenance, evidence, privacy validation, rollback, rejection memory, and safety gates, but these are safeguards rather than complete guarantees [2603.29093] [2608.22533] [2609.09153] [2610.14515].

**Generalization**: transfer across tasks, roles, models, objects, and environments is not automatic. AFTER shows that local improvement can coexist with poor transfer; VLA-Pro reports failures under highly novel combinations; Procedural Graphs and SEPM remain dependent on their node, relation, and workflow abstractions [2606.23127] [2605.29562] [2609.09153] [2610.14515].

Open problems include continuous retrieval during long-horizon execution, causal estimation of memory utility, explicit conflict and merge mechanisms, scalable memory stores, calibrated confidence, safe exploration, privacy-preserving provenance, richer state abstraction, cross-model and cross-role transfer, and evaluation in genuinely nonstationary environments. A further unresolved question is whether procedural memory should remain external, be represented in neural activations, be stored as parameterized adapters, or be distilled into model weights. The current research landscape treats these as complementary design points rather than mutually exclusive alternatives.

Procedural memory is therefore best understood as a family of representations and mechanisms for retaining reusable action knowledge. Its common objective is to convert experience from a disposable trajectory into a conditional, verifiable, and reusable capability: what to do, when to do it, what to expect, how to recover, and when to stop.

Source: https://www.emergentmind.com/topics/procedural-memory