Memory Processes · Retrieval and Surfacing

Context-Dependent Retrieval

Example

You remember a personal conversation with Joy while on a nature walk. Later she says "remember what I told you on our walk?", and the setting, which you never deliberately stored, brings back the conversation.

01

Context-Dependent Retrieval in Humans

Definition

The surroundings and internal state present when something is encoded become part of the memory trace by default, and reinstating them at retrieval aids access to what was stored alongside them (⁠Smith & Vela, 2001⁠). The governing principle is broader than any one kind of surround: a cue works to the extent that it matches what was actually encoded, not to the extent that it is associated with the target in general, which is why a strong preexperimental associate of a studied word can fail to retrieve it while a weak word that happened to be present at study retrieves it easily (⁠Tulving & Thomson, 1973⁠). The effect is conditional rather than uniform: it shrinks when conceptual or associative processing at encoding draws attention away from the surroundings, and grows over longer retention intervals (⁠Smith & Vela, 2001⁠). Across types it is also conditional on the retrieval test: state-dependent effects are found almost exclusively when recall is attempted without explicit reminders, and rarely when a study-list cue or a literal copy of the target is presented at test (⁠Eich, 1980⁠).

Neural Substrate

The neural evidence below characterises environmental, spatial, and situational context. No source in hand addresses the neural substrate of state-dependent or mood-dependent context, so nothing in this section extends to those two types.

Context representation is attributed to a posterior medial system whose core cortical components are the parahippocampal and retrosplenial cortices, connected via the cingulum bundle to the anterior thalamic nuclei, mammillary bodies, pre- and parasubiculum, and the default network, and dissociable from an anterior temporal system centred on perirhinal cortex that handles item and entity representation (⁠Ranganath & Ritchey, 2012⁠). Human evidence carries most of the weight here. Source memory studies find parahippocampal activity increasing selectively at encoding and retrieval of items whose context is successfully remembered, while retrosplenial activity accompanies successful recollection of contextual detail at retrieval and is often negatively associated with successful encoding. Damage to right parahippocampal cortex impairs object-location memory and can leave patients unable to recognise familiar buildings or rooms, and retrosplenial damage produces retrograde amnesia for autobiographical events and topographical amnesia, a condition in which scene recognition is intact but cannot be used to orient (⁠Ranganath & Ritchey, 2012⁠).

Non-human work fills in the division of labour between the two regions. Rats with lesions of the postrhinal cortex, the rodent homologue of parahippocampal cortex, fail to discriminate novel from familiar object-context configurations while exploring novel objects normally, whereas retrosplenial lesions impair recognition of novel locations and object-location associations with object recognition spared; both lesions disrupt contextual fear conditioning. Monkeys with parahippocampal lesions are impaired on delayed non-matching to place. At the cellular level the two regions differ in kind: postrhinal cortex contains place cells with larger fields and greater sensitivity to changes in environmental cues than hippocampal place cells, while retrosplenial cortex has no place cells but does have head direction cells. The authors summarise the division as parahippocampal cortex representing the visuospatial context and retrosplenial cortex integrating the information needed to orient within it (⁠Ranganath & Ritchey, 2012⁠).

The further claim that the hippocampus binds content to context is a hypothesis in this source rather than a finding, and the authors say so directly. They propose that hippocampal processing sharpens representations within each system and integrates across them through the dentate gyrus and CA3, but state that they can only speculate, because few studies have investigated when and how neocortical areas interact with the hippocampal formation, and because the interactions that have been studied appear to occur under restricted conditions owing to strong long-range inhibition of perirhinal, parahippocampal, and retrosplenial inputs to the hippocampus (⁠Ranganath & Ritchey, 2012⁠).

02

AI at a Glance

In humans the surroundings and internal state present at encoding are stored alongside the target by default and can later cue it back, an effect that is modest on average, larger across long retention intervals, suppressed when encoding invites associative processing, and, for the state-dependent type at least, detectable almost only when retrieval proceeds without explicit reminders (⁠Smith & Vela, 2001⁠; ⁠Eich, 1980⁠; ⁠Tulving & Thomson, 1973⁠). In the AI systems assessed, context functions as a retrieval cue only when it is supplied deliberately inside the query, and accuracy on such cues collapses as the cue comes to match more events, with no published work testing whether an incidentally present surround is captured at all (⁠Huet et al., 2025⁠); the closest named mechanisms are the context window, retrieval-augmented generation over an external memory layer, and the key projections of attention layers (⁠Dinh et al., 2026⁠).

  • Context window: the span of text a model can hold in a single forward pass, within which everything is simultaneously available and beyond which nothing persists (⁠Huet et al., 2025⁠).
  • Key projection: the transformation an attention layer applies to each stored token to produce the index against which an incoming query is matched (⁠Dinh et al., 2026⁠).
03

Context-Dependent Retrieval in AI

How Far It Has Been Measured

Measurement in AI: Indirectly Measured

AI Memory Performance: Not Yet Compared

Where It Lives in the System

What Has Been Measured

  • For what a model learned in training, cue dependence has been studied under another name, the reversal curse: a preprint found GPT-4 answered celebrity-parent questions correctly 79% of the time when cued in the direction the fact is usually written, but 33% when cued in reverse, whereas the same facts presented in the conversation could be reversed (⁠Berglund et al., 2023⁠).
  • Within the context window (what a model can see in the current conversation), retrieval suffers when the question shares few words with the stored fact: at 32,000 tokens, 11 of 13 long-context models fell below half their short-text score, and even the strongest, GPT-4o, dropped from 99.3% to 69.7%; this mirrors cue-trace overlap but has no human baseline (⁠Modarressi et al., 2025⁠).
  • A 2024 preprint gave one model (Mistral-7B) Tulving and Watkins's cue-valence experiment, built on encoding specificity, with the word list still visible in the chat: associative cues recalled targets about as often as in the original human data (0.49 and 0.38 vs 0.52 and 0.43), while rhyme cues did far worse (0.11 and 0.14 vs 0.45 and 0.43) (⁠Chauvet, 2024b⁠).
  • Not yet compared: an AI has no physical surroundings, but the context of a conversation can be matched or changed between learning and test, and Tulving's paradigms have been run on a model; these same-paradigm results still cannot be scored under the rules: the preprints (this one also ran Tulving's recognition-versus-recall test, with copy-cue recall 0.46 vs 0.69) give only human proportions from the 1970s-80s, with no sample size or statistical test, test one small model, and the rhyme gap partly reflects the model's weak rhyme knowledge rather than context matching (⁠Chauvet, 2024a⁠).
  • Induction heads (attention components that find an earlier occurrence of the current word and retrieve what followed it) behave like the temporal-context model of human free recall across five model families from GPT-2 to Llama-3-8B, with fitted context-drift parameters in the range of human data (N = 171); this compares the shape of a recall bias on still-visible text, not retrieval success (⁠Li et al., 2024⁠).
  • A 2026 preprint gave Llama 3.1 8B and 70B a whole novel in context and 97 readers the same 296 which-came-first judgments from memory; both showed the human distance effect, 8B did not differ from people and 70B beat them at one distance range, and one 'time-reinstatement' attention head drove performance (ablation cost 10-15%), but it tests memory for the order of events rather than retrieval helped by a matching context, so it is not used for this rating (⁠Pink et al., 2026⁠).
  • For saved memory, a 2026 preprint that stored each fact in an AI agent's long-term memory together with a narrative of the situation in which it was learned raised cross-session recall on the LongMemEval benchmark from 53.5% to 73.7%, an engineering use of encoding specificity with no human comparison (⁠Stern & Nadel, 2026⁠).

Purpose and Execution of Memory: Foundational Differences Between Human and AI Memory Architectures, and Implications

Elizabeth K. Bayardelle, PhD and Jennifer L. Thompson, PhD

About & How to Cite