> ## Documentation Index
> Fetch the complete documentation index at: https://agentconcepts.io/llms.txt
> Use this file to discover all available pages before exploring further.

# consolidation

> Dual-timescale memory: knowledge acquired fast and instance-bound in a plastic store is re-represented into a slow, stable store when recurrence warrants it. The transfer carries an abstraction, not a copy, and amortizes the cost of re-deriving the same knowledge.

<Badge>biology</Badge> <Badge>computer-science</Badge> <Badge>law</Badge> <Badge>linguistics</Badge> <Badge>psychology</Badge>

# Consolidation

## Description

A system maintains two memory stores on different timescales: a **fast store** that is plastic, quickly written, and instance-bound (episodic memory, phenotypic plasticity, in-context activations, an interpreter), and a **slow store** that is stable, slowly written, and generalized (neocortical schemas, the genome, model weights, compiled code). Knowledge lands in the fast store first, because that's what the fast store is for — immediate adaptation to novelty. Consolidation is the recurrence-gated transfer from fast to slow: when the same content keeps proving useful — the environment is stable, the problem recurs — it gets **re-represented** into the slow store as a generalization over episodes, not a copy of any one of them.

Two pressures make the dual-store architecture worth its complexity, and they are the diagnostic for the form. First, the **stability–plasticity dilemma**: a single store fast enough to learn from one exposure will overwrite what it already knows (catastrophic interference); a store slow enough to preserve structure can't adapt in the moment. Splitting the timescales dissolves the dilemma — which is the argument of complementary learning systems in neuroscience. Second, **amortization**: fast-store handling is expensive or fragile *per use* (re-deriving the inference each time, carrying the context, interpreting the bytecode). Consolidation pays a one-time transfer cost so recurring uses become cheap. The recurrence gate is what keeps the trade honest — consolidating a one-off wastes the transfer cost and pollutes the slow store; failing to consolidate a hot path pays the fast-store tax forever.

The signature that distinguishes consolidation from its neighbors: **both stores persist and keep their jobs**. The fast store is not scaffolding to be torn down and not a draft awaiting promotion — after the transfer it goes on catching the next novel instance. And the payload is an abstraction: what the slow store receives is a schema, a fixed trait, a circuit, a compiled routine — a generalization the system never experienced as any single episode.

## Triggers

**User-initiated:** User describes knowledge, behavior, or computation living in an ephemeral/expensive form and asks whether/when to make it permanent — "should this memory become a doc-level rule," "when do we stop recomputing this," "the model only gets this right with examples in the prompt." Vocabulary cues: "consolidate," "replay," "proceduralize," "compile it," "hot path," "in-context vs in-weights," "muscle memory."

**Agent-initiated:** Agent notices the same content being re-derived in the fast store repeatedly — the same context re-supplied, the same inference re-run, the same workaround re-invented. Candidate inference: *"this is recurring — what's the gate, and what's the abstraction that should land in the slow store?"* Conversely: something is being permanently encoded on one occurrence — *"has this actually recurred, or are we consolidating a one-off?"*

**Situation-shape signals:** Two stores with visibly different write-costs and use-costs; recurrence statistics being tracked (or conspicuously not tracked); complaints that adaptation is fast but nothing sticks (all fast store), or that the system is reliable but can't adapt (all slow store).

## Exclusions

* **Single-store gradual learning** — practice that improves one store's contents without a fast/slow split (a skill curve, a tuned parameter) is [learning-curve](/concepts/learning-curve) territory; consolidation's specific work is the *transfer between two co-existing stores on different timescales*.
* **Promotion of a single artifact at a threshold** — one draft becoming the canonical doc is [graduation-promotion](/concepts/graduation-promotion) (lifecycle + projection on one lineage). Consolidation abstracts *across multiple episodes* into a generalization, and both stores persist with their jobs intact.
* **Verbatim copies for access speed** — a cache derives a possibly-stale copy from a canonical source to sit closer to the consumer ([caching](/concepts/caching)); consolidation runs the other direction (episodic → canonical) and the payload is a re-representation, not a copy.
* **External support becoming internal structure** — that boundary-crossing is [internalization](/concepts/internalization). Consolidation happens *within* one system, between its own fast and slow stores.

## Structure

<img src="https://mintcdn.com/agentconcepts/9eOkZUoy4VLomDmH/concepts/_assets/consolidation-slots.svg?fit=max&auto=format&n=9eOkZUoy4VLomDmH&q=85&s=091c670ffe1995eb63c8a33b723c8c7c" alt="Internal structure of consolidation: a table of its component slots and the concepts that fill them." style={{ width: "100%" }} width="735" height="372" data-path="concepts/_assets/consolidation-slots.svg" />

\= **two stores on different timescales + a recurrence gate + an abstracting transfer**. The fast store buys immediate plasticity at high per-use cost; the slow store buys cheap reliable reuse at high write cost; the gate decides which fast-store contents have recurred enough to justify the transfer; the re-representation is what actually moves — a generalization over episodes, never a verbatim copy.

## Relationships

<img src="https://mintcdn.com/agentconcepts/9eOkZUoy4VLomDmH/concepts/_assets/consolidation-neighborhood.svg?fit=max&auto=format&n=9eOkZUoy4VLomDmH&q=85&s=7cea66a27a730b24ef508e9d5680accc" alt="Relationship neighborhood of consolidation: a graph of the concepts it connects to and the concepts it is a part of." style={{ width: "100%" }} width="780" height="1040" data-path="concepts/_assets/consolidation-neighborhood.svg" />

* [graduation-promotion](/concepts/graduation-promotion) — *contrast* — one artifact promoted along one lifecycle vs. many episodes compressed into one abstraction, with both stores surviving the transfer.
* [caching](/concepts/caching) — *contrast* — near-duals: canonical→consumer verbatim copy vs. episodic→canonical abstracted transfer. Which store is authoritative for the moved content flips between the two.
* [internalization](/concepts/internalization) — *contrast* — outside→inside boundary crossing vs. inside fast→slow timescale crossing; sequential in skill learning (internalize the scaffold, then proceduralize with practice).
* [eager-vs-lazy](/concepts/eager-vs-lazy) — consolidation is a policy for *switching* from lazy to eager on the paths that recurrence proves hot.
* [chunking](/concepts/chunking) — the consolidated abstraction becomes a unit for downstream processing.
* [gate](/concepts/gate) — the recurrence gate is the load-bearing control point; a consolidation story without an explicit gate is usually either premature encoding or an unpaid fast-store tax.

## Examples

<AccordionGroup>
  <Accordion title="McClelland, J.L., McNaughton, B.L. & O'Reilly, R.C. (1995), &#x22;Why there are complementary learning systems in the hippocampus and neocortex&#x22;, Psychological Review 102(3). · psychology" defaultOpen={true}>
    The complementary-learning-systems account: the hippocampus learns fast, sparsely, and episodically — one exposure is enough to bind an event — while the neocortex learns slowly, extracting statistical structure across many experiences into overlapping distributed representations. New memories depend on the hippocampus; over time, hippocampal replay (prominently during sleep) re-trains the neocortex, interleaving the new material with old so the cortex absorbs the generalization without catastrophically interfering with what it already encodes. The paper's core argument is architectural necessity: a single network cannot be both one-shot-plastic and interference-safe, so the brain splits the timescales and connects the halves with a replay-driven transfer.

    **Inference**: The canonical instance, with every role explicit — hippocampus as the fast store, neocortex as the slow store, replay statistics as the recurrence gate, and interleaved retraining as the abstracting transfer (the cortex ends up with the statistical structure of many episodes, not a copy of any one). The dual-store architecture is derived, not observed-and-shrugged-at: it exists *because* the stability–plasticity dilemma makes a single store impossible.
  </Accordion>

  <Accordion title="Waddington, C.H. (1953), &#x22;Genetic assimilation of an acquired character&#x22;, Evolution 7(2); Waddington, C.H. (1942), &#x22;Canalization of development and the inheritance of acquired characters&#x22;, Nature 150. · biology" defaultOpen={true}>
    Waddington exposed fruit-fly pupae to heat shock, inducing a plastic developmental response (crossveinless wings) in some individuals. Selecting and breeding the responders for generations produced flies that developed crossveinless wings *without any heat shock*: a trait first expressed only through environmentally-triggered plasticity became genetically fixed. Phenotypic plasticity is the fast store — within one lifetime, an organism adjusts its phenotype to environmental cues. Genetic evolution is the slow store — adaptive structure written into the genome over generations. When the environment applies the same pressure recurrently, selection moves the plastically-discovered trait into the genome, and the cue is no longer needed to produce it.

    **Inference**: Consolidation at the evolutionary timescale: plasticity as the fast store, the genome as the slow store, sustained environmental recurrence as the gate, and assimilation as the transfer. The amortization logic is exact — plastic responses cost the organism machinery and response lag every generation; a fixed trait is cheap and reliable once the environment has proven stable enough to warrant it. The related Baldwin effect adds the scaffolding twist: plasticity can smooth the fitness landscape and *accelerate* the genetic fixation it eventually makes redundant.
  </Accordion>

  <Accordion title="Ku, A.Y., Griffiths, T.L. & Chan, S.C.Y. (2026), &#x22;An evolutionary perspective on modes of learning in Transformers&#x22;, ICLR (arXiv:2505.09855); Singh, A. et al. (2023), &#x22;The Transient Nature of Emergent In-Context Learning in Transformers&#x22;, NeurIPS. · computer-science" defaultOpen={true}>
    Transformers carry the same knowledge in two places: in-context learning (ICL) modulates inference through information held ephemerally in activations, and in-weights learning (IWL) fixes it permanently in parameters. Singh et al. showed emergent ICL can be transient — it appears early in training and fades as the network shifts the task knowledge into its weights. Ku, Griffiths & Chan formalize when each mode wins: environmental *stability* (does the task persist across episodes?) favors IWL, while volatility with reliable contextual cues favors ICL — and they map ICL-to-IWL transience explicitly onto Waddington's genetic assimilation. They also show acquisition cost matters: networks adopt whichever mode is cheaper to learn first, regardless of which is asymptotically better.

    **Inference**: The form recurring in a third substrate — activations as the fast store, weights as the slow store, distributional stability across training as the recurrence gate, and the induced weight circuit as the re-representation (the network ends up encoding the mapping, not the prompts that taught it). That the same stability-gated plastic-to-fixed dynamics emerge from gradient descent, selection over genotypes, and hippocampal replay is the multiple-instantiation evidence that the structure belongs to the problem — amortizing recurring inference — rather than to any one mechanism.
  </Accordion>

  <Accordion title="Aycock, J. (2003), &#x22;A brief history of just-in-time&#x22;, ACM Computing Surveys 35(2); HotSpot JVM and V8 tiered-compilation architecture documentation. · computer-science">
    Tiered JIT runtimes (HotSpot, V8) run code through an interpreter or baseline compiler first: every method executes immediately, flexibly, and slowly. Profiling counters track invocation and loop-iteration counts, and when a method crosses a hotness threshold, the optimizing compiler translates it into fast native code — specialized using the type profiles the interpreted executions accumulated. Cold code stays interpreted forever, and that's correct: compilation costs real time and memory, so spending it on code that runs once is a loss. Deoptimization completes the loop — if a speculation the compiled code relies on turns out wrong, the runtime falls back to the interpreter tier.

    **Inference**: Consolidation as deliberate engineering policy: interpreter tier as the fast store, native code as the slow store, hotness counters as an explicit, tunable recurrence gate, and profile-guided optimization as the abstracting transfer (the compiled method encodes a generalization over observed executions — the type profile — not any single run). The name "HotSpot" *is* the recurrence gate. Deoptimization shows the mature version of the form keeps the transfer reversible: the fast store persists precisely so the system can fall back when the consolidated generalization stops holding.
  </Accordion>

  <Accordion title="Anderson, J.R. (1982), &#x22;Acquisition of cognitive skill&#x22;, Psychological Review 89(4); Anderson, J.R. (1987), &#x22;Skill acquisition: Compilation of weak-method problem solutions&#x22;, Psychological Review 94(2). · psychology">
    In ACT-R's account of skill acquisition, a novice solves problems by holding declarative knowledge (facts, instructions, worked examples) in memory and interpreting it with general-purpose weak methods — slow, effortful, working-memory-hungry. With practice, knowledge compilation converts recurring interpretive sequences into productions: condition-action rules that fire directly without retrieving or interpreting declarative facts. The compiled skill runs fast, resists working-memory load, and no longer needs the original instructions — which is why experts often can't articulate rules they demonstrably use. The declarative system stays online for whatever is still novel.

    **Inference**: Consolidation at the timescale of individual skill learning: declarative memory plus interpretation as the fast store, procedural productions as the slow store, practice repetition as the recurrence gate, and compilation as the re-representation — the production encodes the recurring condition-action structure abstracted from many interpreted episodes, not a recording of one. The expertise-inarticulacy effect is a signature prediction of the form: after the transfer, the slow store's content is no longer in the representational format the fast store could report on.
  </Accordion>

  <Accordion title="Bybee, J. (2006), &#x22;From usage to grammar: The mind's response to repetition&#x22;, Language 82(4); Hopper, P.J. & Traugott, E.C. (2003), Grammaticalization, 2nd ed. (Cambridge University Press). · linguistics">
    Grammatical structure emerges from usage frequency. A free, compositional phrase — assembled on the fly and interpreted from its parts — becomes, through massive repetition across a speech community, a fixed construction with its own entry: English "going to" (motion verb plus purpose clause) compressed into the future marker "gonna"; "while" (a noun meaning time) hardened into a subordinating conjunction. High-frequency sequences phonetically reduce, lose compositional transparency, and acquire grammatical functions their parts never had. Novel phrases continue to be assembled compositionally — the productive syntax doesn't go away; only the recurrent paths crystallize.

    **Inference**: Consolidation distributed across a community of speakers: online compositional assembly as the fast store, the conventionalized grammar/lexicon as the slow store, community-wide usage frequency as the recurrence gate, and the fixed construction as the re-representation — "gonna" is not a stored recording of any utterance but an abstraction over millions of them, with its own reduced form and shifted meaning. The example widens the form's range: the two stores here live in no single head, showing consolidation can run over a population's aggregate statistics.
  </Accordion>

  <Accordion title="The codification of commercial common law into the Uniform Commercial Code (American Law Institute & Uniform Law Commission, 1952); general accounts of the common-law-to-statute codification movement. · law">
    Common-law adjudication is case-by-case: each dispute is resolved on its facts, guided by precedent, producing a growing body of instance-bound rulings. When a doctrine has been litigated often enough that its shape is stable across many cases, codification distills the accumulated rulings into statute — the Uniform Commercial Code, for instance, distilling decades of scattered commercial case law into uniform statutory provisions that supersede it. The statute is not a compilation of the cases; it is an abstraction over them, stating the rule the cases collectively converged on. Courts keep deciding novel disputes case-by-case, and today's edge cases become raw material for tomorrow's revisions.

    **Inference**: Institutional consolidation: case-by-case adjudication as the fast store, the statutory code as the slow store, doctrinal stability across accumulated litigation as the recurrence gate, and the drafted general rule as the re-representation. The amortization is legible in practitioner costs — researching a codified rule is cheap; reconstructing it from a line of cases is expensive. And the gate's failure modes are visible policy debates: codify too early and the statute freezes a doctrine still finding its shape; too late and every transaction pays the case-law research tax.
  </Accordion>

  <Accordion title="Wang, G. et al. (2023), &#x22;Voyager: An Open-Ended Embodied Agent with Large Language Models&#x22;, arXiv:2305.16291. · computer-science">
    Voyager, an LLM agent playing open-ended Minecraft, solves each new task by in-context reasoning: prompting, acting, and iterating on environment feedback until a working program emerges. Solutions that verify get distilled into a persistent skill library — named, executable programs indexed for retrieval — so later tasks compose stored skills instead of re-deriving them from scratch. The in-context loop remains the engine for whatever is genuinely new; the library grows as verified solutions accumulate, and the agent's capability compounds because recurring subproblems (crafting tools, fighting mobs) stop consuming fresh reasoning.

    **Inference**: Consolidation in the agent-memory substrate: the in-context reasoning loop as the fast store, the curated skill library as the slow store, verified task success as the (weak, single-success) recurrence gate, and the cleaned-up executable skill as the re-representation. The form's diagnostic questions become design questions for any such architecture: what recurrence statistics should gate promotion into the library (one success is a permissive gate), and what abstraction should the transfer carry — a verbatim program, or a generalization over multiple successful episodes?
  </Accordion>
</AccordionGroup>
