Hindsight Agent Memory Architecture
Paper: Hindsight_Agent_Memory_Architecture.Pdf — arXiv:2512.12818v1 (Dec 2025)
Core Idea
HINDSIGHT treats agent memory as a structured, first-class substrate for reasoning rather than a thin RAG retrieval layer around a stateless LLM. It organises memory into four logical networks with three core operations.
Four-Network Memory Organisation
| Network | Contents | Role |
|---|---|---|
| World (W) | Objective facts about the external world | Statements independent of agent perspective |
| Experience (B) | Agent's own experiences, actions, recommendations | First-person biographical info |
| Opinion (O) | Subjective judgments with confidence scores c∈[0,1] |
Evolving beliefs, updated via reinforcement |
| Observation (S) | Preference-neutral entity summaries | Synthesised profiles from underlying facts |
Three Core Operations
- Retain → ingests conversation transcripts, extracts narrative facts (not fragmented), resolves entities, builds graph links (temporal, semantic, entity, causal)
- Recall → four-way parallel retrieval (semantic vector, BM25 keyword, graph spreading activation, temporal), fused via Reciprocal Rank Fusion + neural cross-encoder reranking, respects token budget
k - Reflect → preference-conditioned generation using retrieved memories + behavioural profile, forms/updates opinions
Key Components
TEMPR (Temporal Entity Memory Priming Retrieval)
- Implements Retain and Recall
- Narrative fact extraction via LLM (coarse-grained: 2–5 comprehensive facts per conversation, not fragmented utterances)
- Entity resolution with string similarity + co-occurrence + temporal proximity
- Memory graph with 4 edge types: entity, temporal (decay-weighted), semantic (cosine > threshold), causal (upweighted)
- Token-budget-aware retrieval: caller specifies how much context to retrieve
CARA (Coherent Adaptive Reasoning Agents)
- Implements Reflect
- Behavioural profile Θ = (Skepticism, Literalism, Empathy, Bias-strength)
- Each disposition 1–5, bias-strength β ∈ [0,1]
- Controls how opinions are formed and expressed
- Opinion reinforcement — when new facts arrive, related opinions are assessed (reinforce/weaken/contradict/neutral) and confidence scores updated
- Background merging — LLM-powered merge of agent biographical info, resolving conflicts in favour of newer info
Results
| Benchmark | Baseline (OSS-20B full-context) | Hindsight (OSS-20B) | Hindsight (OSS-120B) | Hindsight (Gemini-3) |
|---|---|---|---|---|
| LongMemEval | 39.0% | 83.6% (+44.6pp) | 89.0% | 91.4% |
| LoCoMo | 75.78% (Memobase best prior) | 83.18% | 85.67% | 89.61% |
Key finding: the memory architecture itself drives performance — the OSS-20B version (deployable on a single consumer GPU) beats full-context GPT-4o (60.2% → 83.6%).
Key Design Principles
- Epistemic clarity — facts, observations, and opinions kept structurally distinct
- Temporal awareness — every memory carries occurrence interval
(τs, τe)and mention timeτm - Entity-aware reasoning — multi-hop discovery via graph links
- Preference consistency — stable behavioural profile across sessions, with opinions that evolve via evidence-based reinforcement
Implications for Agent Design
- Memory should be structured, not just a retrieval index — separating evidence from inference enables traceable reasoning
- Opinion confidence allows agents to hold beliefs with appropriate strength and update them gracefully
- A small model (20B) + good memory architecture outperforms a frontier model with no structured memory
- Token-budget-aware retrieval lets agents trade off latency vs. coverage per query
Contemporary Research Landscape
Competing Memory Systems (referenced in Hindsight)
| System | Date | Key Approach | Differentiator |
|---|---|---|---|
| MemGPT (Packer) | 2023 | OS-like paging active↔archival | Pioneer of tiered context, but unstructured text blocks |
| Zep (Rasmussen) | Jan 2025 | Temporal knowledge graph (Graphiti) | Bi-temporal modeling, 94.8% DMR, 90% latency reduction vs baselines |
| A-MEM (Xu) ✦ | Feb 2025 | Zettelkasten method — atomic notes + LLM-generated links | Memory evolution: new notes update existing ones dynamically |
| Mem0 (Chhikara) | Apr 2025 | Dense retrieval + graph representations | Production-focused: 91% lower latency, 90% token savings |
| Memory-R1 (Yan) | Aug 2025 | RL (PPO/GRPO) for memory ops (ADD/UPDATE/DELETE) | Only 152 training QA pairs; learns when to write/update/forget |
| MemVerse (Liu) | Dec 2025 | Multimodal memory, hierarchical KG, periodic distillation | Fast parametric recall via distilled long-term→parametric knowledge |
| KARMA (Wang) | 2025 | 3D scene graphs for embodied/robotic agents | Spatial reasoning, not conversational |
✦ = Accepted at NeurIPS 2025
Very Recent Papers (Aug 2026)
-
HiGram — Hierarchical Graph Memory (Yue et al., 2608.05095) - Addresses flat-graph limitation: coarse-to-fine memory hierarchy - MicroGraph-based path-level localisation before rewriting - Coordinated rewriting: jointly revises intra-unit memory + inter-unit dependencies - Improves answer quality and token efficiency on conflict-aware benchmarks
-
ScrubJay-MEM (Bhandari et al., 2608.04746) - Bio-inspired: western scrub jay episodic memory → per-memory type-conditioned temporal decay - Each memory: What–Where–When tuple with estimated perishability ω and utility horizon η - Query-adaptive scoring, revised retroactively every n LLM calls - Introduces Temporal Generalization Test (TGT) with GenGap metric - +10–18% F1 over Mem0 on MemoryAgentBench EventQA-64k - Key insight: type-conditioned temporal decay is necessary for temporal reasoning over perishable facts
-
Memory Reward Inflation (Asadolahi et al., 2608.00017) - Self-improving agents: incorrect episodes get inflated rewards → preferentially reuse own mistakes - Formalises Echo Gap and Error-Independence Assumption (EIA) — proves EIA is necessary for correction - LUCID de-inflation algorithm: consistent gains on BIRD text-to-SQL - Key insight: memory scoring bias compounds under both rank-by-score and plain similarity retrieval
Surveys
- From Human Memory to AI Memory (Wu et al., Apr 2025) — 3D categorisation (object, form, time) with 8 quadrants; connects episodic/semantic memory to RAG/knowledge graphs
- Memory Mechanism Survey (Zhang et al., 2025b) — source, form, and operations taxonomy; notes parametric memory is hard to interpret
- Memory Quadruple Framework (Zhang et al., 2025a) — storage, persistence, access, controllability
Benchmarks
| Benchmark | Year | Scale | Key Test |
|---|---|---|---|
| LongMemEval | 2024 | 500 Q, up to 1.5M tokens | 5 abilities: IE, MR, TR, KU, ABS |
| LoCoMo | 2024 | 50 convos, avg 19.3 sessions | Long-term multi-session recall |
| MemoryBench | 2025 | Continual learning from feedback | Forgetting under new info |
| TGT (new) | 2026 | Held-out retention intervals | Temporal Generalisation Gap (GenGap) |
Where Hindsight Sits
Hindsight is the only architecture that: - Separates all four epistemic categories (World, Experience, Opinion, Observation) - Has configurable behavioural profiles (Skepticism/Literalism/Empathy + bias strength) - Supports opinion evolution with confidence scores and reinforcement - Uses four-way parallel retrieval (semantic + BM25 + graph spreading activation + temporal) with RRF + cross-encoder
Its main gap vs contemporary work: no RL-based memory operation decisions (Memory-R1), no multimodal support (MemVerse), no forgetting/decay mechanism (ScrubJay), and no hierarchical graph organisation (HiGram). The authors acknowledge RL-based joint optimisation of retain/recall/reflect as future work.
Code: https://github.com/vectorize-io/hindsight Benchmarks viewer: https://hindsight-benchmarks.vercel.app/