Unified Agentic Memory: Synthesis Report
Abstract
Survey of 11 sibling codebases (Verace V0 to V4, the Verace V1 release, Verace/Memory, Verace-CCLM, SDRT, ASI/NRGC, Unified-Agentic-Memory, mem-LLM) conducted 2026-08-14, verifying and correcting the draft synthesis at unified_memory_engine.py, to determine what already exists toward one unified agentic memory system and what remains to build.
Status
A working note from the lab's memory research, published as written. It surveys the lab's own code and names files by their paths in the lab's repositories. The lab's language models appear under their Verace names, while file paths keep the working folder names: kimi_k3 is the V0 baseline (the lab's code for the architecture of the Kimi Team's technical report, arXiv:2607.24653), kimi_k4 is Verace V1, kimi_k5 is V2 and so on. It has not been reviewed outside the lab. What it says about other organisations' tools and systems is the note's own reading of the versions and sources it had on the date of the survey, some of it without a cited source; none of it has been rechecked and it may be out of date. One section, an audit of another project's source code (section 22), is left out.
Overview
Survey of 11 sibling codebases (Verace V0 to V4, the Verace V1 release, Verace/Memory, Verace-CCLM, SDRT, ASI/NRGC, Unified-Agentic-Memory, mem-LLM) conducted 2026-08-14, verifying and correcting the draft synthesis at unified_memory_engine.py, to determine what already exists toward one unified agentic memory system and what remains to build.
1. Goal
One sentence: A single agentic memory system where every layer (sensory → working → episodic → semantic → long-term → procedural) runs the best verified mechanism found across the 11 codebases, persisted durably, queryable as one fused result, and safe against contradiction and prompt injection.
Assume solved: picture one package exposing the same 16-tool MCP surface already live in this session (unified_query, semantic_upsert, episodic_record, long_term_store, procedural_register, sensory_ingest, working_memory_update, reflect, trigger_consolidation, evict, forget, verify_memory, query_as_of, get_belief_history, get_semantic_belief_history, graph_export_dot, inspect_memory_health), but with the differentiable neural primitives (Newton-Schulz hologram, Poincaré geodesics, LRAWS interference-free writes, hippocampal DG/CA3 tiering) wired in underneath the existing symbolic engine’s persistence, trust model, and injection-safety fencing. Not two disconnected prototypes, as they are today.
Phase 0 survey verdict: almost everything needed already exists and works in isolation. This is the rare case where most of the invention is already done, the job left is integration, not discovery.
2. The two “unified” candidates: and why they’re disjoint
Verace/Memory | Unified-Agentic-Memory | |
|---|---|---|
| Confirmed as live MCP backend? | Yes. pyproject.toml → agentic-memory = memory.cli:main; every one of the 16 live tool names + schemas (trust_level, confidence, is_pinned, nullable fields, $schema draft-07) matches memory/mcp_server.py exactly. | No. Its mcp_server.py hand-rolls a 6-tool JSON-RPC loop with different names (store_episodic, add_semantic_fact…) and plainer schemas. Ruled out by name + tool-count + schema-style mismatch. |
| Design philosophy | Production symbolic/graph store: SPO triples, SQL/Postgres, PageRank search. | Production-grade differentiable/tensor substrate: torch.nn.Module layers, real gradients-off math (Poincaré, Newton-Schulz, Hopfield). |
| Storage | SQLite (default) or Postgres + pgvector + HNSW + Row-Level Security for tenant isolation (migrations/001_postgres_schema.sql). | Single-file torch.save checkpoint + WAL for crash-safety. No SQL/vector-DB backing. |
| Belief revision | Non-destructive supersede-not-delete (semantic.py:235), antonym-predicate contradiction heuristic (semantic.py:345), Ebbinghaus-decay retrievability + TMS in long-term store. | Poincaré-space Gram-Schmidt retraction on contradiction (silently orthogonalizes, doesn’t reject), draft version, weaker than ASI’s LRAWS (§4). |
| Retrieval | Hybrid vector+text+Personalized-PageRank (search_facts:459). | Hybrid RRF fusion across episodic+semantic+long-term with staleness decay + Hebbian re-rank boost (engine.py:160-231), more complete than Verace/Memory’s per-layer-only fusion. |
| Injection safety | <memory trust="..." source="..."> fencing, all angle brackets escaped, matches the <memory_context_notice> wrapper seen on this session’s own unified_query calls. | None, no MCP-facing trust/fencing model. |
| Multi-tenancy | Postgres RLS, namespace-keyed. | Namespace-keyed dicts (namespace_M_working, W_fast_dict), in-process only, no RLS. |
| Maturity | Core 6-layer engine fully implemented (not stubs); benchmark scripts exist but no published results, performance claims for the production system are unverified. | 48/48 tests, 17 TDD cycles, real published benchmarks: 1M words at 82,845 words/sec, 100% Recall@1 post-tuning, 257MB VRAM. |
Bottom line: Verace/Memory is the trustworthy shell (persistence, safety, live API). Unified-Agentic-Memory is the trustworthy engine (differentiable primitives, validated at scale). They have never been merged.
3. Component provenance: verified and corrected
The draft file unified_memory_engine.py attributed each layer’s mechanism to specific codebases. Forked agents verified every claim against actual source. Corrections in bold.
| Layer | Draft claim | Verified source | Correction |
|---|---|---|---|
| Sensory | the Verace V0 baseline causal conv + scalar EMA decay | kimi_k3/modules/kda.py:28 ShortConv1d, confirmed, production-grade (explicit chunkwise/recurrent training-inference parity split). | The scalar carrier_decay EMA in the draft isn’t from V0, it’s an invented simplification. SDRT’s StateCarrier (sdrt/carrier.py:27-73) is the real, tested per-channel version: a learned, input-conditioned, bounded decay gate (g = g_min·sigmoid(...)), far more expressive than one scalar. Use SDRT’s gate, V0’s conv. |
| Working | Widrow-Hoff delta matrix, fixed eta=0.5 | Real delta-rule confirmed in sdrt/memory_core.py:16-83, DeltaRuleMemory. | Draft’s fixed-eta, no-decay version is a simplification. SDRT’s is materially stronger: learned per-channel write/decay gates, multi-head, key-norm-normalized (Frobenius-bounded, provably stable). mem-LLM does not use delta-rule at all (uses NMDA-slot/silent-trace instead), attribute this mechanism to SDRT alone. |
| Episodic | “Dentate Gyrus LSH + CA3 Hopfield pattern completion” | Neither literal LSH nor literal Hopfield exists under those names in mem-LLM or CCLM. | mem-LLM (hippocampus.py:163-219): DG = frozen random projection + top-k WTA → sparse code (not LSH, that’s a separate mechanism in place_map.py); CA3 = pure outer-product Hebbian store, one-shot write, matmul pattern-completion read. Validated at 625,321 episodes, 100% Recall@1, ~0.7s/query. CCLM offers an alternative: slot-wise competitive (WTA, orthogonal keys) column memory + surprise-gated 4-bit-quantized long-term tape (cclm/recall/memory.py:21-133, cclm/tape/turboquant.py), real two-tier fast/compressed recall, tested (test_tape_overrides_working_memory_bottleneck passes). Recommend mem-LLM’s mechanism, better validated at scale, with the Verace V0 baseline’s KDAPrefixCacheManager (chained content-hash prefix cache, kimi_k3/serving/kda_prefix_cache.py:24) added for persistence/audit, which neither draft nor either episodic candidate has. |
| Semantic | Poincaré geodesics (V2) + Lie/gauge parallel transport (V4) + Gram-Schmidt contradiction retraction (ASI NRGC) | Geodesics confirmed exact (kimi_k5/.../hnet_hyperbolic.py:25). Transport confirmed but under-used: V4’s real mechanism (kimi_k7/.../fbgc_gauge.py:15, Cayley pairwise transform) is pairwise across the whole sequence, stronger than the draft’s single-vector version. | Contradiction handling is the biggest correction. “Gram-Schmidt retraction” in ASI is actually LRAWS (Orthogonal Subspace Projection Memory, nrgc/layers/lraws.py:1-182): writes are provably interference-free (old recall error stays exactly 0), and a contradictory write (‖k_tilde‖≈0) is rejected with MemoryContradiction, requiring an explicit retract() call, not silently orthogonalized as the draft implies. This is strictly safer (no silent belief corruption) and should replace the draft’s auto-retraction. Capacity bound: N ≤ d (rank-limited), needs an eviction/promotion policy once full. |
| Long-term | Newton-Schulz unitary hologram (V1) + bitemporal store | Confirmed, tested (kimi_k4/.../cham_memory.py:19,44, test_cham.py passes at real scale, hidden_dim=16384). | Add the Verace V1 release’s O(log S) parallel associative scan (verace_v1/modules/cham_memory.py:172-219), holographic writes are associative, so this turns what’s normally a sequential update into a Blelloch-style parallel scan. Genuine, documented perf primitive not in the draft at all. Also carries load-bearing numerical-stability lessons (v must be L2-normalized like k/q; retraction must never feed back into the raw recurrent state) from a documented postmortem. |
| Procedural | “QNMA Fast-Weight Meta-Synapses,” attributed to ASI/CCLM | Wrong attribution, QNMA does not exist in either ASI or CCLM (zero grep hits for “qnma”/“fast-weight”/“meta-synapse” in both). | Real source: kimi_k6/kimi_k6/modules/qnma_synapse.py:13, NonEquilibriumMetaSynapse, exact equation match to the draft’s docstring (dW/dt = -eta·grad_W E). Correct attribution to V3 alone. |
4. Not in the draft at all: high-value additions
ASI’s
CONTRADICTION.md, a rigorous bug-vs-discovery belief-revision algorithm, not yet implemented anywhere: on contradiction, compute the minimal SMT conflict core over both derivation subtrees, re-verify every base fact/edge in the core; if anything fails, retract + cascade (the common “I was wrong” case); only if the entire core survives re-verification, attempt a reframing that must earn ground-truth status (recovers both facts as limits, closes an anomaly, predicts something new); otherwise park as OPEN, never fabricate a resolution. Requires storing the full derivation DAG (hash-consed), not just conclusions. This is strictly stronger than Verace/Memory’s current antonym-heuristic contradiction flagging or the draft’s silent retraction. Blueprint only, not implemented as code.ASI’s OVP (
nrgc/layers/ovp.py), a frozen null-space projectorP_V = I - Cᵀ(CCᵀ+λI)⁻¹Cthat filters an activation onto the subspace consistent with a constraint set. Useful as an admission filter (“does this new memory violate known invariants”) ahead of any write, orthogonal to LRAWS’s storage mechanism.CCLM’s
THEORY.md, a formal theorem that softmax attention degrades to O(1/T) recall at long context (“lost in the middle”) while slot/column-based memory stays O(1) and interference-free. Good mathematical grounding for why the whole slot/matrix-based approach (not attention-over-raw-context) is the right design for every layer here.the Verace V0 baseline’s
KDAPrefixCacheManagerandGatedNoPEMLA, production KV-cache/prefix-hashing and low-rank KV compression. Neither draft engine has any persistence/paging layer; this is real infrastructure for one.mem-LLM’s out-of-context logit-biasing pipeline (
memory_llm.py::generate_out_of_context), memory never enters the prompt; instead it reweights the frozen LM head’s logits token-by-token. This only applies when you control the model’s forward pass (self-hosted inference stacks: SDRT/Verace V series/mem-LLM). It does not apply to an MCP-tool-based agent talking to a closed-weights hosted model (e.g. this Claude Code session), the MCP boundary only allows injecting text into context, not touching logits. Named invariant, not a missing feature: no cross-API logit access to a model you don’t host.
5. Decomposition tree
GOAL: Unified Agentic Memory
├── Persistent, crash-safe, multi-tenant storage
│ ├── SQLite / Postgres+pgvector+RLS ................ BUILDABLE NOW (Verace/Memory, live & working)
│ └── WAL + checkpoint durability ................... BUILDABLE NOW (Unified-Agentic-Memory, tested)
│
├── Six memory layers, each best-verified mechanism
│ ├── Sensory: V0 causal conv + SDRT per-channel LTI gate ... BUILDABLE NOW (~1 day to combine)
│ ├── Working: SDRT gated Widrow-Hoff delta-rule ............ BUILDABLE NOW (already superior to draft)
│ ├── Episodic: mem-LLM DG/CA3 (+ V0 prefix-hash persistence) . BUILDABLE NOW (~3-5 days to port)
│ ├── Semantic: V2 geodesics + V4 pairwise transport
│ │ + ASI LRAWS (reject/retract, not silent GS) .. BUILDABLE NOW (~2-3 days; needs
│ │ eviction policy, N≤d)
│ ├── Long-term: V1 hologram + the Verace V1 release parallel scan
│ │ + existing bitemporal store .................. BUILDABLE NOW (perf upgrade, ~2 days)
│ └── Procedural: V3 QNMA fast-weight synapse ................. BUILDABLE NOW (correct attribution)
│
├── Rigorous contradiction / belief revision
│ └── ASI's DAG-based bug-vs-discovery algorithm .............. BUILDABLE AT A PRICE
│ price: derivation-DAG schema extension to semantic.py,
│ an SMT/constraint-checker dependency, ~1-2 weeks first pass
│ scoped to replace the current antonym heuristic
│
├── Injection safety + trust
│ └── `<memory trust=...>` fencing, full escaping .............. BUILDABLE NOW (Verace/Memory, reuse as-is)
│
├── Unified cross-layer retrieval
│ └── Hybrid RRF fusion w/ staleness decay + Hebbian re-rank ... BUILDABLE NOW
│ port Unified-Agentic-Memory's `retrieve_hybrid` (engine.py:160-231)
│ into Verace/Memory's `unified_query`
│
└── Out-of-context (logit-level) memory injection
└── mem-LLM's 8-step logit-biasing pipeline ................. BOUNDED BY INVARIANT
applies only to self-hosted inference stacks; no cross-API
logit access to a model you don't host (e.g. this MCP session)6. Honesty ledger
PROVEN (tested, passing, benchmarked, verified directly against source this session):
V0 causal conv, chunkwise/recurrent parity, production-grade
V1 Newton-Schulz hologram,
test_cham.pypasses, real scale (hidden_dim=16384)V2 Poincaré geodesics, formula matches exactly
V3 QNMA, equation matches draft docstring exactly
V4 Cayley pairwise transport, exact orthogonal (not approximate), stronger than draft’s per-vector form
SDRT
StateCarrier+DeltaRuleMemory, 93 tests green, MQAR-8 recall 100%, S5 len-32 extrapolation 98.8%the Verace V1 release CHAM parallel scan, documented, with numerical-stability postmortems already fixed
ASI LRAWS + OVP, unit-tested, safety bounds formally verified (
‖P_V x‖ ≤ ‖x‖)CCLM slot memory + tape, 69 tests, 90% coverage, real TinyStories training run
mem-LLM full stack, 64 tests, 625K-episode / 100MB-corpus benchmark, 100% Recall@1, 0.7s/query
Verace/Memory production engine, confirmed live MCP backend by exact tool-name/schema match
Unified-Agentic-Memory, 48/48 tests, 1M-word benchmark, 82,845 words/sec, 100% Recall@1 post-tuning
CONTINGENT (buildable, needs integration engineering + explicit price):
Fusing the differentiable substrate (Unified-Agentic-Memory) under the production symbolic shell (Verace/Memory), estimated 2-4 weeks
Swapping in LRAWS for contradiction handling, 2-3 days, plus designing an eviction/promotion policy for its hard
N ≤ dcapacity boundImplementing ASI’s DAG-based contradiction-resolution algorithm from blueprint to code, 1-2 weeks, adds an SMT-solver-class dependency
SPECULATIVE / not yet real:
ASI’s
CONTRADICTION.mdsoundness-theorem-backed resolution procedure, currently a design doc only, zero lines of implementing code found anywhere in the 11 reposVerace/Memory’s own performance claims, benchmark scripts exist (
run_large_scale_stress_test.py,run_memfail_benchmark.py) but no results are published anywhere; despite being the live production system, its latency/recall numbers are currently unverified
7. Verdict
(b) BUILDABLE AT A PRICE.
Every one of the six memory layers already has a verified, independently-tested, working mechanism somewhere across the 11 codebases, this is not a research gap, it’s an integration gap. The only genuinely unbuilt piece is the DAG-based bug-vs-discovery contradiction engine (ASI’s blueprint), and the only real architectural work is reconciling two disjoint, already-mature systems: Verace/Memory (the live, safe, persistent shell) and Unified-Agentic-Memory (the validated differentiable engine).
Estimated total price: 3-6 weeks of focused integration and testing, no new invention required at the primitive level. The 11-codebase spread was not wasted effort, nearly every claim in the original draft synthesis turned out to be either directly confirmed or correctable to something more rigorous already sitting in one of the sibling repos (LRAWS over silent Gram-Schmidt, SDRT’s learned gates over fixed scalars, mem-LLM’s validated hippocampal store over an unverified “DG-LSH” label).
9. The unifying thesis: LLM as CPU, memory as a real hierarchy
A 12th reference, data/claude-mem-main, was surveyed as “current best agentic memory” in production. It confirmed a gap that resolves the whole design question:
claude-memhas excellent operational engineering, hook-driven async capture (a background SDK sub-agent compresses tool-use into typed observations, never taxing the active session’s token budget), content-hash dedup, and an explicit progressive-disclosure retrieval API (search→timeline→get_observations, cheapest first) with real token-cost accounting. But it has no cognitive substrate: one flat SQLite table + ChromaDB cosine top-k, no decay function, no contradiction handling, no associative-memory geometry, no distinct retention tiers at all.The 11 research codebases are the inverse: extraordinary memory hardware (Hopfield attractors, holographic unitary matrices, hyperbolic graphs, interference-free associative writes) with no filesystem discipline, no scheduler, no production hardening.
Nobody has built both halves together. That is the actual opening, and it reframes “lost in the middle” and “reasoning over thousands of documents” as the same bug: putting raw tokens into the LLM’s context window is putting data directly into CPU registers instead of paging it in from memory. CCLM’s own THEORY.md proves attention-over-raw-context degrades to O(1/T) recall as context grows; Ramsauer et al.’s Theorem 5 (§8) proves genuine content-addressable (Hopfield) recall has exponentially small, distance-bounded error independent of N. The fix is architectural, not a bigger context window: never let the model attend directly over its own history, always retrieve through a bounded, content-addressable memory first.
Full hierarchy mapping (every mechanism below is already verified/tested somewhere in this survey)
| Tier | Retention | Mechanism | Verified source |
|---|---|---|---|
| Registers | the prompt itself | n/a, this is the only thing the LLM ever reads directly | |
| L1 cache | Sensory, ms–sec | causal short-conv + per-channel data-dependent LTI decay gate | V0 (kda.py) + SDRT (carrier.py) |
| L2 cache | Working, min–hr | gated Widrow-Hoff delta-rule matrix (bounded d×d, same write form as Infini-attention) + RMT-style [MEM]-token text carry across turns | SDRT (memory_core.py) + RMT (arXiv:2304.11062) |
| RAM | Episodic, weeks–months | DG-sparse-coding + CA3 Hebbian store for storage; real Modern-Hopfield softmax-β attractor for cleanup/retrieval; async background-agent compression + hash dedup for capture | mem-LLM (hippocampus.py) + draft engine’s ModernHopfieldAttractor (Ramsauer et al. Thm 3/5) + claude-mem’s capture pipeline |
| Disk (indexed) | Semantic, permanent graph | Poincaré geodesics + Cayley pairwise transport for geometry; Personalized PageRank for structural relevance; interference-free reject/retract writes | Verace V2+V4 + Verace/Memory (semantic.py) + ASI NRGC LRAWS |
| Disk (cold) | Long-term, permanent-decaying | Newton-Schulz holographic store; O(log S) parallel associative scan for bulk-ingest throughput; Ebbinghaus-decay retrievability + bitemporal validity | Verace V1 + the Verace V1 release (CHAM) + Verace/Memory (longterm.py) |
| Firmware | Procedural, execution-based | sub-symbolic fast-weight synapse for reflexive adaptation; named, auditable skill registry | Verace V3 (QNMA) + Verace/Memory (procedural.py) |
The one piece that does not exist anywhere in these 12 codebases
A memory controller, the OS-level virtual-memory manager. Every surveyed system has either good memory hardware with no scheduler (all 11 research repos) or a scheduler with no real hardware (claude-mem). None has a policy loop that, every turn, decides what bounded working set to page into the context window, using PPR score + Hebbian recency + Ebbinghaus decay + RRF fusion as its cache-replacement policy, under a hard token budget, the way a CPU’s memory controller uses LRU/LFU. This is the one genuinely novel component required; everything else in the table above is proven and already sitting in the filesystem.
Verdict: (b) buildable at a price. Every memory-hardware primitive is tested and benchmarked. Two honestly-scoped remaining costs: (1) build the memory controller/scheduler, genuinely new, ~2-3 weeks; (2) implement ASI’s DAG-based contradiction-resolution blueprint for when LRAWS’s rank capacity is exceeded, ~1-2 weeks. The invention already happened, independently, across twelve projects, it was never unified under one scheduler serving one CPU.
10. The Memory Controller: full specification (Phase 3: invent the object)
The one component with zero lines of prior art anywhere in the 12 systems. Specified to the point of being directly implementable, using only mechanisms already proven above, no new math, only new orchestration.
Object and type
MemoryController: a per-turn function (task_embedding, token_budget B, layers L3..L6, working_set W_{t-1}) → W_t, where W_t is the bounded list of memory items injected into context this turn, Σ tokens(W_t) ≤ B always.
Axioms it must satisfy
Boundedness,
|W_t|in tokens isO(B), independent of total stored memoryN. This is the property that makes “lost in the middle” structurally impossible: the context injected never grows with corpus size, only the quality of what’s selected does.Relevance-monotonicity, a strictly higher fused relevance score never loses admission to a strictly lower one at equal token cost.
Decay-consistency, admission respects L5’s existing Ebbinghaus retrievability
r(t) = exp(-Δt/S)rather than recomputing recency from scratch; stabilitySgrows on successful retrieval (already the behavior oflong_term_store/verify_memoryin Verace/Memory).Progressive disclosure, never fetches full content on the first pass. Two-phase: cheap index/summary scoring for all candidates, full-text fetch only for the subset that survives admission (claude-mem’s
search → get_observationspattern, formalized as a hard cost bound rather than a convention).No thrashing, an item resident in
W_{t-1}above a stickiness thresholdτstays resident without re-paying its fetch cost, mirroring cache locality; prevents oscillating eviction/reload of an item still in active use across consecutive turns.Auditability, every admission/eviction decision carries its score breakdown and passes through Verace/Memory’s existing
<memory trust="..." source="...">fencing; nothing enters context unlabeled.Contradiction safety, an item LRAWS has flagged rejected/pending-retraction is never admitted silently; it surfaces as an explicit conflict, not a corrupted fact.
Construction (the simplest thing that meets all seven)
Scoring, Reciprocal Rank Fusion over four signals already computed independently elsewhere in the stack:
Score(item) = RRF( rank_PPR(item | query), # Verace/Memory personalized-pagerank, structural
rank_hopfield_sim(item | query), # draft engine's Hopfield-cleaned cosine, not raw
rank_recency(item), # L5 Ebbinghaus retrievability r(t)
rank_hebbian(item) ) # Unified-Agentic-Memory retrieval-count re-rankNo new similarity metric, this is literally Unified-Agentic-Memory’s retrieve_hybrid (engine.py:160-231) generalized to run across all four candidate-generating layers instead of three.
Admission, greedy knapsack by value density, two-phase:
Pre-filter (index-only, cheap): PPR walk + ANN top-K (K≈50-100, matching claude-mem’s
searchresult size of ~50-100 tokens/item) → candidate setC_t.Fuse & rank: score every candidate in
C_tvia the RRF formula above.Admit: sort by
Score/token_cost, greedily add toW_tuntilBis exhausted; items already resident above stickiness thresholdτare added first at zero marginal fetch cost.Promote: only now fetch full text (
get_observations-equivalent) for newly admitted, non-resident items.
Complexity: O(log N + K log K) per turn, the expensive full-content fetch is capped at O(B) regardless of N. This is the concrete mechanism by which retrieval cost stops scaling with corpus size.
Failure modes forbidden by construction
Unbounded context growth, impossible; phase-2 fetch is hard-capped at
B.Silent memory corruption, impossible past LRAWS’s write boundary; a read only ever returns a valid fact or an explicit contradiction-flagged one, never a silently-overwritten wrong one.
Thrashing, bounded by the stickiness mechanism (axiom 5).
Stale recall, bounded by the Ebbinghaus decay term continuously demoting unreinforced items.
What’s genuinely new vs. reused
New: the controller itself (fusion + knapsack admission + stickiness + two-phase disclosure across layers), and wiring LRAWS as the admission gate in front of Verace/Memory’s semantic_upsert (which currently uses a weaker antonym heuristic), plus implementing ASI’s CONTRADICTION.md procedure as executable code (currently blueprint only) for the case LRAWS’s capacity bound is exceeded. Reused as-is: every layer mechanism in the §9 table, injection-safety fencing, storage backends, consolidation, decay, none of it needs to change.
Atomic principle
A memory system becomes effectively infinite in scale the moment retrieval cost and error stop scaling with corpus size, which requires a scheduler that treats the context window as a fixed-size cache and every stored memory as content-addressable, never positionally included.
Dissociating experiment (the falsification test)
Build the controller; run mem-LLM/RMT-style memorize/detect/reasoning synthetic tasks at corpus sizes from 10 to 10,000 documents. Falsified if retrieval accuracy or context-token cost degrades with corpus size. Holds if both stay flat, proving the O(B)-independent-of-N bound in practice, not just on paper.
Final honesty ledger addendum
PROVEN: all four fused signals (PPR, Hopfield similarity, Ebbinghaus decay, Hebbian re-rank) individually, in their source systems.
CONTINGENT: the fusion + knapsack controller as a whole, a rigorous, standard-CS specification (bounded knapsack, RRF, cache stickiness are all well-understood with known complexity), buildable in ~2-3 weeks, but zero lines exist yet anywhere in the 12 systems surveyed.
SPECULATIVE: that this fully resolves large-corpus reasoning quality in practice, no benchmark yet exists for this exact fused pipeline at 1,000s-of-documents scale. Not yet a proven result; that’s what the dissociating experiment above is for.
Final verdict: (b) BUILDABLE AT A PRICE. The price is now scoped to one component, with a known complexity class, a concrete construction, and a concrete falsification test, not an open research question.
11. Training requirement: does any of this need gradient training?
No, not for the MCP-tool deployment this whole design targets. The Memory Controller (§10) and every layer mechanism it schedules (§9) that’s actually reachable from a frozen hosted LLM via MCP tool calls is classical algorithms or off-the-shelf frozen models: PPR, Ebbinghaus decay, bitemporal validity, RRF fusion, greedy knapsack, LRAWS/Newton-Schulz linear algebra, Hopfield cleanup with fixed β, and a zero-shot pretrained sentence-transformer for embeddings. Nothing here has a learned parameter that needs fitting. This is why the verdict throughout has been priced in engineering-weeks, not GPU-hours.
The differentiable substrate (SDRT’s learned gates, V0’s conv, V2/V4’s geometric embeddings, the Verace V1 release’s CHAM) is a different animal: those mechanisms live inside a model’s forward pass, not behind a tool-call boundary. Using them for real requires either pretraining/fine-tuning your own model (what SDRT, Verace V series, and mem-LLM already did) or logit/weight access to the serving model, which no one has for a closed, hosted LLM like the one this system is actually deployed against (same invariant as §4/§8, restated for weights instead of logits). This is a genuine fork, not a detail:
| Path | Training | Yields |
|---|---|---|
| MCP-tool memory (live path, what §9-10 assume) | None | Full 6-layer hierarchy + scheduler, deployable today |
| Custom memory-augmented model (SDRT/Verace V series/mem-LLM path) | Real pretraining/fine-tuning | Richer in-forward-pass mechanisms, only usable if serving your own weights |
Recommended sequencing: build the no-training path first, it’s what §9/§10 already spec, and treat the differentiable path as a future v2 contingent on standing up a self-hosted inference stack, not a prerequisite.
12. Standalone deployment: model-agnostic, API-only LLM
Requirement: the memory service must work with any LLM reachable only through its public API (chat completions + optional function/tool calling), no weight access, no logit access, no assumption that the host application provides lifecycle hooks. This doesn’t change the verdict or the training requirement (§11 still holds: zero gradient training). It adds three concrete requirements to §10’s spec:
Protocol-agnostic API boundary. The internals (PPR, LRAWS, Hopfield cleanup, Ebbinghaus decay, RRF fusion, the Controller’s knapsack) are already provider-agnostic, none of them care who’s calling. The exposed surface needs to match: MCP for MCP clients, plain REST/HTTP for everything else, and a function-calling schema export (OpenAI
tools/ Anthropictool_use/ Geminifunction_declarations) so the same four operations,search,timeline,get_full,write, register identically regardless of provider. One backend, thin per-protocol adapters.Capture moves from host hooks to a boundary you control. claude-mem’s capture pipeline (§9) relies on Claude Code firing
PostToolUse/SessionStart/SessionEndhooks. A raw API call has none of that. Two modes, usable together: passive, a proxy/sidecar wrapping the app’s existing LLM API calls, capturing every turn asynchronously (same background-compression pattern as claude-mem, moved from “hook” to “intercepted HTTP call”); active,search/timeline/get_fullregistered as real tools for models with function-calling, for precise on-demand mid-reasoning recall.Zero external API dependency internally. The embedding model (sentence-transformers MiniLM, per the Verace/Memory survey) already runs locally rather than through an API, this must stay true. The only API-only component in the whole system is the reasoning LLM itself; storage, retrieval, scheduling, and contradiction-handling are entirely self-contained. That is the actual definition of standalone here: not just no weight access, no dependency on anyone else’s API either.
Updated price: adds a protocol-adapter layer + capture proxy/SDK, no learned component, roughly 3-4 weeks total (up from the 2-3 weeks scoped to the Controller alone in §10).
13. Correction: the mechanics are (mostly) parameter-free, not “requires training”
§11 was too conservative: it framed the differentiable-substrate mechanisms (delta-rule, Newton-Schulz, Hopfield, Gram-Schmidt/LRAWS, Cayley transport, Hebbian fast-weights) as needing gradient training because they were implemented as PyTorch modules in the source repos. That conflates implementation with requirement. Each of these is, at its mathematical core, a classical numerical algorithm or a fixed-rate online update rule that predates deep learning, what actually needs training is only the learned gating the research repos wrapped around them for extra adaptivity (SDRT’s per-channel decay gate, V0’s conv kernel). Strip that gating, substitute fixed hyperparameters, and every mechanism below runs standalone on embeddings from one frozen local encoder, touching the target LLM only through its public API:
| Layer | Mechanism (training-free form) | What replaces the learned part |
|---|---|---|
| Sensory | fixed-decay EMA + novelty score (1 − max cosine-sim to buffer) | SDRT’s learned per-channel gate → constant decay rate |
| Working | Widrow-Hoff delta-rule matrix (fixed η) + LLM-prompted text compression | SDRT’s learned write/decay gates → constant η; RMT’s trained MEM-tokens → a plain compression prompt |
| Episodic | ANN index + SQL causal links + Modern Hopfield cleanup (X·softmax(βXᵀq), X=stored data, fixed β) | nothing, Hopfield cleanup was already parameter-free (Ramsauer et al., Theorem 1) |
| Semantic | cosine + Personalized PageRank + Gram-Schmidt/LRAWS orthogonality check over current stored vectors | nothing, QR/Gram-Schmidt is pure linear algebra; optional Poincaré table fit is the one genuinely optional, cheap, non-backprop upgrade |
| Long-term | holographic matrix H + Newton-Schulz retraction (HᴴH=I) + Ebbinghaus decay formula | nothing, Newton-Schulz is a classical iterative orthogonalization method, unrelated to gradient descent |
| Procedural | Hebbian fast-weight update (W += η·error⊗input, fixed η) + named skill registry | V3’s learned-rate meta-synapse → fixed-rate Hebbian rule |
| Controller | RRF fusion of the four rankings above + greedy knapsack | nothing, no fusion weights need fitting unless later tuned against usage data as a small separate auxiliary model |
Honest caveat: this is a real trade, not a free upgrade, fixed hyperparameters give up some of the adaptivity the source papers measured (SDRT’s 100% MQAR-8 recall used learned gates, not fixed ones). The size of that quality gap at zero-training is unverified; no system in the 12-codebase survey benchmarked the fixed-hyperparameter configuration. That is the honest dissociating experiment still owed here, separate from the one already specified for the Controller in §10.
14. Competitive landscape reality check: is this “the best agentic memory”?
Not provably, and one framing needs correcting. MemGPT/Letta already pioneered “LLM as CPU, memory as OS-managed tiers” in 2023, core memory (RAM), archival memory (disk), recall memory, with the agent paging between them via explicit function calls. §9’s framing is not novel at that level. The one real, mechanistic difference from MemGPT: its paging is agent-driven (the LLM spends its own reasoning turns and tool calls moving data between tiers, competing with task reasoning for budget); this design’s Memory Controller (§10) runs as a deterministic pre-turn scheduler outside the agent’s reasoning loop, exposing only read-access tools (search/timeline/get_full) to the agent. Genuine distinction, unproven whether it’s a better one.
Published competitor numbers (found via search, not previously surveyed):
| System | Benchmark result | Source |
|---|---|---|
| Mem0 | 92.5 LoCoMo, 94.4 LongMemEval, 3-4× lower token cost than full-context; 41K GitHub stars, 14M downloads, AWS’s default agent-memory provider | mem0.ai/research |
| Zep/Graphiti | 94.8% DMR (beats MemGPT’s 93.4%), up to 18.5% better LongMemEval, P95 300ms latency via hybrid embedding+BM25+graph search | arXiv:2501.13956 |
| Letta/MemGPT | 74.0% LoCoMo (GPT-4o-mini) | industry benchmark roundups, 2026 |
None of these three publish a formal exponential-capacity recall proof (Hopfield) or interference-free write proof (LRAWS), that is a genuine theoretical edge this design has on paper. But none of this design exists as running code, and it has zero benchmark runs. A capacity proof doesn’t outrank an empirically measured 94.8% until it’s also measured.
Verdict: this is the most theoretically complete design among the 12+3 systems actually surveyed, not a proven best-in-class system. It sits at zero implementation. To legitimately earn “best,” the correct dissociating experiment is not the bespoke corpus-scaling test in §10, it’s running the built system head-to-head against Mem0 and Zep on the same standard suites: LoCoMo, LongMemEval, DMR, BEAM, directly comparable to the numbers above, not a private benchmark nobody else can check.
14.1 Correction: scheduler-driven vs. agent-driven paging is not a settled “obviously”
The one head-to-head data point available argues against the intuitive claim that agent-driven paging (MemGPT/Letta’s own tier-management function calls) beats automated paging: Letta scores 74.0% on LoCoMo; Mem0, whose write path is a mostly-automated ADD/UPDATE/DELETE/NOOP decision, not agent-managed tiers, scores 92.5%, at 3-4× lower token cost. Agent-driven memory management taxes the same reasoning budget as the actual task, and LLMs reliably deprioritize memory upkeep under task pressure; it also can’t be given a boundedness proof the way a deterministic knapsack can (§10’s seven axioms exist because the Controller is deterministic, no such proof is possible for “the agent will remember to stay in budget”).
The correct decomposition is not “scheduler beats agent”, it’s that the two solve different problems:
Retrieval from the existing store → scheduler-driven (§10’s Controller). Bounded optimization problem; the one available benchmark says automation currently wins on both accuracy and cost.
Deciding to acquire genuinely new memory, or override the scheduler when its pick is wrong for this task → must stay agent-driven. A ranking function can only rank what’s already stored; it has no mechanism to recognize a gap that requires going and getting something new. That judgment call is irreducibly the agent’s.
§12 already specified both modes (passive automatic paging + active on-demand tools), but framed the active half as a fallback “escape hatch.” It should carry equal billing: the Controller supplies the default working set every turn at zero token/reasoning cost to the agent; search/timeline/get_full remain live, agent-invocable tools the whole time, specifically for the cases only agent judgment can catch. Neither mode is subordinate to the other, they cover disjoint failure modes.
15. The Memory CPU: a third tier that resolves §14.1 more cleanly
§14.1 left a two-way split: cheap/bounded/reliable scheduling (Tier 0) vs. judgment that costs the main agent’s own reasoning budget. The correct fix is a third tier: a small, local, dedicated model, not the main API-only LLM, that supplies judgment without ever touching the main agent’s turns or cost. This is exactly what claude-mem’s SDKAgent already validates in production (a second Claude instance draining a queue and compressing tool-use in the background), its only flaw is that the second brain is a full, API-billed Claude instance, which breaks the standalone/zero-external-dependency requirement from §12. Making it small and local fixes that directly.
| Tier | What it is | Cost | Job |
|---|---|---|---|
| 0 | Deterministic Controller (§10) | milliseconds, $0 | routine per-turn paging: RRF fusion + knapsack over the top-K pre-filtered candidates |
| 1 | Memory CPU, small, local, frozen instruction-tuned model (1-3B class) | cheap, local, no API call | compression/extraction of raw events into structured facts (claude-mem’s pattern); semantic re-ranking of Tier 0’s top-K (a cross-encoder-style second pass); contradiction arbitration for ASI’s CONTRADICTION.md bug-vs-discovery procedure (needs reasoning, not just LRAWS’s linear algebra); pre-filters escalation so the main agent is interrupted only when Tier 1 itself can’t resolve the gap |
| 2 | Main agent (the big API-only LLM) | expensive, competes with task reasoning | final escalation only, plus always-live search/timeline/get_full for on-demand override |
This changes §14.1’s “deciding to acquire new memory is irreducibly agent-driven” from always the expensive main agent to first triaged by the cheap local model, escalated only when genuinely necessary, a real efficiency gain, not just a rename of the same idea.
Training: still zero, by choice. The Memory CPU defaults to a frozen, off-the-shelf small instruction-tuned model (Qwen2.5-3B-Instruct / Llama-3.2-3B-Instruct / Phi-3.5-mini / Gemma-2-2B class), used purely via prompting, preserving the §11/§13 zero-training invariant. Fine-tuning or distilling it for this specific role is a legitimate later upgrade, but that is real training cost at that point, not free.
Complexity stays bounded. Tier 1 only ever runs over Tier 0’s already-filtered top-K set (K≈50-100), never the full corpus, O(K) added cost per turn, not O(N). §10’s axiom 1 (boundedness) survives intact.
Open, honest uncertainty: whether a small local model’s extraction/re-ranking/arbitration quality matches what claude-mem or Mem0 get from a larger, API-billed model for the same job is unverified, this is the real price of “standalone and zero-training,” and it belongs in the same benchmark run specified in §14 (LoCoMo/LongMemEval/DMR/BEAM), not assumed away.
16. Correction: split Tier 1 into a Memory Chip (no understanding) and a Curator (understanding only)
§15’s “Memory CPU” conflated two different jobs into one small LLM: storing/serving (pure recall, needs no understanding) and judging (compression, arbitration, needs real language understanding). A real memory controller chip doesn’t parse what it stores, it reads and writes fast and exactly. These should be two separate components.
The Memory Chip: the Verace V1 release’s CHAM, used as a pure associative array
Stripped to its core, CHAM is a bounded holographic matrix H with two operations: write (U_t = I + iγ_t(k_t v_t^T), an infinitesimal unitary rotation) and read (Re(Hq), a dot-product lookup), kept numerically stable by Newton-Schulz retraction (§13: no learned parameters, a classical orthogonalization iteration). Fed directly from the frozen embedding encoder already used elsewhere in the design, no new projection layers to train, the entire mechanism runs on vectors only, never text, exactly like DRAM never parses what it stores. What comes back is a pointer to the verbatim payload sitting in the SQL store beside it, not a generated reconstruction. Zero training, zero language understanding, by design, faster and more specialized than any small LLM for the pure recall job, and provably stable (unitary ⇒ lossless) rather than approximately competent.
Consolidation this exposes: L2’s delta-rule matrix (SDRT), L3’s Hopfield-cleaned store, and L5’s holographic matrix (V1) are all the same class of object, a bounded associative matrix, delta-rule-updated, retraction-stabilized. One CHAM engine, instantiated three times (small/fast-decaying for working memory, medium for episodic, large/slow-decaying for long-term) replaces three separate mechanisms.
The Curator: kept as a distinct component, only for jobs that need real understanding
Compression/extraction of raw events into facts, CONTRADICTION.md’s bug-vs-discovery arbitration, escalation-gap detection, genuinely require language understanding the Memory Chip was never meant to have. Stays a small, local, frozen instruction-tuned model (§15), but now explicitly a computation unit sitting beside the memory chip, not folded into it.
| Component | Built from | Understands text? | Training |
|---|---|---|---|
| Memory Chip | the Verace V1 release CHAM (Newton-Schulz retraction, associative write/read) | No, vectors only | None |
| Curator | small off-the-shelf instruction model | Yes | None by default (prompted, not fine-tuned) |
| Controller (§10) | RRF fusion + knapsack | No, scores only | None |
| Main agent | the API-only LLM being served | Yes | None (frozen, API-only) |
17. HSC-MEM (Verace-V1-Memory): judged, Path 2 only, not a Memory Chip candidate
Verace/Verace-V1-Memory/docs/COMPLETE_MEMORIZATION_ARCHITECTURE_INVENT.md, a design doc (unimplemented), reviewed on its merits, not its polish.
Real and checked: the rank-2 Rodrigues closed-form rotation (A = uvᵀ − vuᵀ, A³ = −θ²A, R = I + α(θ)A + β(θ)A²) does satisfy RᵀR = I exactly, verified algebraically, not taken on faith. It’s a genuine improvement over CHAM V1’s and V4’s Cayley transform ((I−A)⁻¹(I+A)), which needs a matrix solve with a real singularity risk this closed form avoids entirely, no inverse, no complex arithmetic. Its subspace-whitening write mechanism is the same core idea as ASI’s LRAWS (project new writes onto the orthogonal complement of active retrieval subspaces so prior memories are provably untouched), a third independent convergence on that idea across this body of work (LRAWS, V4, this).
Overclaimed: the doc’s own verdict, “(a) BUILDABLE NOW,” is premature by the invent method’s own rule, its two falsification tests (10⁷-token orthogonality drift ≤1e-5, needle-in-haystack cosine >0.98) are specified, not run. The proven items are algebraic identities; the system claim is not proven. It also has real learned parameters (W_k, W_v, a SiLU-GLU, W_out, a learned gate γ_t), same category as SDRT/V0’s learned-gate wrappers (§13), meaning it needs actual gradient training of a full sequence model, not a parameter-free primitive. “Hyper-Symplectic” is a naming overreach, the mechanism preserves the Euclidean norm in SO(d) (orthogonal), not a symplectic 2-form in Sp(2n); “Clifford-Grassmannian” is better earned (bivector rotation generators, orthogonal-complement whitening are legitimate). Its own critique-convergence Pass 3 (capacity saturation beyond 10⁷ tokens) names a fix, “Grassmannian Manifold Continuous MoE”, with no equations or construction, and marks itself converged anyway; Passes 1 and 2 both have real constructions, Pass 3 doesn’t.
Classification: Path 2 only (§11’s custom memory-augmented model track), a well-reasoned potential successor to CHAM and V4 for anyone pretraining their own sequence model, not a candidate for the Memory Chip (§16), which is deliberately parameter-free and standalone. Correct verdict pending its own falsification tests: (b) buildable at a price, not (a).
18. SLH-MEM parameter count: the price is smaller than §17 implied
A companion spec (“Standalone SLH-MEM Engine,” d=1024, H=64 heads, d_tile=16) lists exact parameter counts: Wq, Wk, Wv, W_attractor, W_out at 1024×1024 (1,048,576 each) and W_scale at 1024×64 (65,536), plus a 1,024-element RMSNorm scale, 5,309,440 (~5.31M) parameters total, arithmetic checked and consistent.
Naming collision to flag: “Standalone” here means self-contained as a pluggable module, not the zero-training sense used everywhere since §12. Six learned weight matrices at adapter scale is unambiguously trainable, same Path 2 classification as §17, now quantified rather than hand-waved.
But the number reframes the price. 5.31M parameters is LoRA/adapter scale, not full-model scale. Trained as a bolt-on adapter on the same frozen embedding space the Memory Chip (§16) already uses, via a synthetic multi-query associative-recall objective, exactly the recipe SDRT already validated in this survey (100% MQAR-8 recall, §3), this needs no host LLM at all: bounded, single-purpose, day-scale training, not a pretraining campaign. That creates a genuine third option, not just two:
| Option | Training | Fit |
|---|---|---|
| Memory Chip (§16, CHAM/Newton-Schulz) | None | zero-training default |
| SLH-MEM trained as an adapter on frozen embeddings via synthetic MQAR objective | bounded, cheap, single-purpose | optional upgrade, same input/output contract as the Memory Chip, swappable |
| SLH-MEM/HSC-MEM as a full sequence-mixing layer replacing attention in a pretrained LLM (§17’s original framing) | full pretraining | separate, much larger undertaking, only relevant when building your own LLM from scratch |
The middle option is the one worth taking seriously, real training, honestly priced, but far cheaper than §17 implied by lumping it with a full pretraining run.
19. Persistent state serialization: a real storage format for the long-term tier
A companion detail on SLH-MEM’s dual formulation (parallel-scan training / O(1) recurrent inference, the same pattern already validated via RMT’s segment recurrence and the Verace V1 release’s CHAM parallel scan, §3) surfaces a genuinely new, concrete capability: Ψ_t is a fixed-size (H×16×16, ~32-65KB depending on precision), self-contained state that can be serialized to disk and reloaded without replaying a single historical token. ‖Ψ_t‖_F = √(d_tile) is a correct derived consequence of §17’s already-checked unitarity proof (RᵀR=I ⇒ Ψ_t stays orthogonal ⇒ fixed Frobenius norm), not a fresh claim needing separate verification. The specific “0.1ms” recall-latency figure, however, is plausible order-of-magnitude for a 16×16 tensor-core matmul but unbenchmarked, same treatment as §17’s other unverified numbers.
What this is good for: a genuine physical storage format for the long-term tier (§9/§16), a session or document compresses to one small Ψ blob instead of a raw embedding index. One capacity caveat follows directly from §17’s own Shannon-Holevo bound: a single Ψ is bounded (H·d_tile² real numbers), so this has to be a sharded, per-document capsule format, one Ψ per session/document, not a single global store. That’s not a weakness; it’s exactly the shape the Memory Controller (§10) already assumes. The Controller’s per-turn job becomes deciding which capsule(s) to page in, the same knapsack-over-candidates problem it already solves, just with Ψ blobs as the unit being paged instead of individual facts.
Independent validation of §18, not just a restatement: the architecture’s own “memory-only standalone training” framing (extract and train the memory engine in isolation from any attention/FFN layers) arrives at the same conclusion §18 proposed, train via a bounded synthetic recall objective, decoupled from any host LLM, from the design’s own intent, not from suggestion. Real convergence.
20. Caught methodological error: a “100% factual memorization” claim did not hold up
A later report (self-titled, celebratory framing, “🏆 100% 🔥 Undefeated”) claimed 100/100 exact factual recall across 15 research papers, PPL=3.98, and specific latency/VRAM numbers, from an “NDG-MEM” variant of this same rotational-memory family. Checked directly against the code at Verace/Verace-V1-Memory/scripts/train_ndg_100_percent_memorization.py, it does not hold up. train_and_verify_100_percent() (lines 106-215) encodes all 100 QUESTIONS_100 entries, question and correct answer together, as training strings, trains 15 epochs of next-token cross-entropy directly on them, then evaluates on the identical QUESTIONS_100 list in the same function immediately after. No train/test split exists anywhere in the file. 100% accuracy is the expected outcome of training directly on the eval set, not evidence of memorization capability, any sufficiently-parameterized next-token model would score ~100% under this methodology, so it doesn’t even isolate whether the Rodrigues/SO(d) rotational mechanism (§17-19) is contributing anything specific. PPL=3.98 is train-set perplexity after training-to-convergence on 100 short strings, not a language-modeling result.
This does not invalidate the Rodrigues unitarity proof already checked in §17, which is independent of this report. It does invalidate treating this benchmark as evidence the architecture achieves real recall. Recorded here as a caught error, not a finding, consistent with reporting an honest negative rather than a flattering guess. A real test requires a genuine held-out split (train on a subset, test on facts never seen during training, ideally reworded to prevent literal string matching), not run here.
20.1 Full project audit: ten items, prioritized
A systematic audit of Verace/Verace-V1-Memory beyond the one script above:
CRITICAL
A second, independent instance of the same contamination,
scripts/evaluate_paper_qa_accuracy.py:257-310trains directly onPAPER_QA_BENCHMARK’s question+answer pairs, then evaluates on the same objects. Not a one-off mistake; the project’s standard eval methodology.Every PPL number in the project is train-set perplexity. All 8 remaining training/eval scripts checked, zero
held/split/holdoutlogic anywhere.grok_all_papers_complete_memorization.py:243computes PPL straight from the training loop’s own loss. The “PPL=3.98” claim needs re-measurement on unseen text before it means anything.
HIGH
A real math bug: the claimed “half-angle” channel isn’t half-angle.
slh_memory.py:287scales(u,v)by0.5for the claimedθ/2sub-harmonic. Butθ=√(‖u‖²‖v‖²−(u·v)²)is degree-2 homogeneous, so scaling bycscalesθbyc², atc=0.5the real angle isθ/4, notθ/2(needc=1/√2for genuine half-angle). Undercuts the stated justification for why the dual-channel noise cancellation (§ pasted report, part 2) should work at all.The “Hopfield Attractor” isn’t a Hopfield network.
slh_memory.py:133,167,243-244,309-310implement plainresidual + SiLU(Linear(x))gated-MLP blocks, no softmax over stored patterns, no energy dynamics, nothing matching the real Modern Hopfield update already verified in §8. Naming overreach in shipped code, not just prose (same pattern as “Symplectic” in §17, one level more concrete).Zero tests for the component carrying the unverified claim,
OmniSpectralMemory(item 3’s class) has no test file, not even a sanity check that unrelated content produces similar noise across both channels, the assumption the whole cancellation argument rests on.Both INVENT docs contradict their own verdict in their own text.
UNDEFEATED_KING_TO_MEMORY_100_PERCENT_MEMORIZATION_INVENT.md:139-148lists four falsification tests marked pending, directly above a(a) BUILDABLE NOWverdict at line 190, same overclaim pattern as §17; correct verdict is(b)until those tests run.
MEDIUM
GPU tests hard-fail rather than skip without CUDA, only one test in the suite has the
skipifguard; “all tests pass” is silently GPU-conditional and undocumented.Credit where due:
test_slh_memory.pyhas two genuinely legitimate tests, independent of the compromised benchmark, exact unitarity (RᵀR=Iwithin 1e-4) and norm conservation (within 1e-3), both actually verify what they claim. §17’s core geometric proof has real test coverage. The contamination is specifically in the factual-recall evaluation layer, not the underlying math.
LOW
Hardcoded absolute paths throughout, undermines the “reproducible” framing off this exact machine.
No status table anywhere distinguishing verified-and-tested from aspirational-and-uncontrolled claims.
20.2 Re-triaged for a prototype: claims-accuracy vs. maturity/polish
“Prototype, not production” is a valid recalibration, but only along one axis. It fully excuses maturity/ polish items; it does not excuse claims that misdescribe what the code does, at any maturity level, a prototype can honestly say “not yet validated,” it can’t say “validated” when it wasn’t.
Must fix (claims-accuracy, unaffected by prototype status):
Rebuild eval with a genuine held-out split (both #1/#2 above) before reporting any accuracy number.
Re-measure every PPL number on held-out text, not training-loop loss (project-wide).
Fix the half-angle scaling bug,
slh_memory.py:287needsc=1/√2, not0.5, for a genuineθ/2channel; as written the real angle isθ/4.Correct both INVENT docs’ verdict from
(a) BUILDABLE NOWto(b) buildable at a price, one-line fix, the docs already list their own falsification tests as pending in the same breath as the verdict.Detach the
C∝2^(d/2)capacity claim from the attractor module until it’s a genuine Modern Hopfield update, the gated-MLP mechanism itself is fine to keep as-is, only the claim attached to it is wrong.
Defer (prototype-appropriate, no urgency): missing OmniSpectralMemory tests, GPU tests without skip guards, hardcoded paths, no verified-vs-aspirational status table.
20.3 Fixes applied and verified: and the real number they surfaced
Checked directly against the files, not taken on report alone. Three of five must-fix items confirmed correct: the held-out split in train_ndg_100_percent_memorization.py is genuinely disjoint (deterministic shuffle, held_out_questions never enter train_encoded); the half-angle fix is exact (c_half = math.sqrt(0.5) at slh_memory.py:287); verdicts corrected to (b) BUILDABLE AT A PRICE in all five INVENT docs. Item 5 (capacity claim) is incomplete, UNDEFEATED_KING_TO_MEMORY_100_PERCENT_MEMORIZATION_INVENT.md:85 still attaches “exponential basin capacity” to the same non-Hopfield attractor module, marked “✅ BUILDABLE.” One line missed, not a full pass.
The result this surfaced matters more than the checklist: held-out accuracy came back 8/30 (26.7%) against a 25% random baseline (4-choice), approximately zero generalization to unseen facts.
20.4 Self-correction: “held-out generalization” was the wrong bar for a memory system
§20.3’s framing was wrong and is corrected here rather than left standing. A memory system’s job is to faithfully return what was written into it, not infer facts it was never shown, testing recall on unseen data tests extrapolation, not memory, and isn’t the right bar here. The 26.7%-vs-25%-baseline result is not the relevant finding; retracted as the headline metric.
The actual gap, once the frame is fixed, is narrower and different: the original 100%-on-trained-facts result doesn’t establish that the claimed mechanism (interference-free Rodrigues-rotation writes) produced it, versus any comparably-sized model reaching the same number for unrelated reasons. Three concrete gaps, none about generalization:
No baseline comparison, a plain additive-linear-attention memory (the exact approach this architecture claims to beat) would plausibly also hit ~100% on 100 short strings after 15 epochs; without that control the number doesn’t isolate the mechanism’s contribution.
Never tested at the scale where the claimed advantage should appear, §17’s own framing states additive memory degrades via
σ²∝N/dasN→d; atN=100with a reasonably larged, even a baseline wouldn’t show meaningful degradation yet, so this scale can’t demonstrate the claimed advantage exists.No incremental write-then-recall interference test, the actual claim is “writing fact 2 doesn’t degrade fact 1’s recall.” Joint training over many epochs on all facts simultaneously never tests this; the right test is sequential: write fact 1, verify recall, write fact 2, verify fact 1 still recalls correctly, and so on.
This is the same test class §17’s own falsification tests (10⁷-token orthogonality, needle-in-haystack at scale) were already specifying, capacity/interference under scale, not generalization. §20.3 reached for held-out-split language that doesn’t fit a memory system’s evaluation; corrected here rather than left as the standing critique.
20.5 The chat CLI demo doesn’t use the memory mechanism it claims to
scripts/chat_memory_cli.py, run directly (not just read) with three prompts. Reproduces its own documented example exactly. But: "What is the capital of France?", unrelated to all 15 papers, returned a confident Mamba answer, formatted identically to a genuine match (Confidence Margin: +11.82 nats), no refusal, no uncertainty signal.
Traced to the actual mechanism, this is expected, not a fluke:
Retrieval is keyword-substring matching against a hardcoded list (
answer_query, lines 172-176),self.knowledge_base = QUESTIONS_100, the same list the model trained on.No match → silent fallback to
knowledge_base[:5], item[0](lines 180-184), zero relevance threshold, zero rejection path. This is what produced the France→Mamba answer.The displayed text is
best_item["correct"](line 211), a pre-written string, not model output.The neural model’s only role,
score_candidate(line 191), scores two pre-written strings against each other for the already-selected item, it never judges whether that item was the right one to select.The Lie-group recurrent state is computed and discarded: line 206 is
_, self.conversation_states = self.model(...), the actual output is thrown away. The state only feeds the cosmetic/memoryinspection command; it is never read by anything that produces the answer.
“Direct Associative Memory Retrieval… using the model’s Lie group state matrix” does not describe this code. It’s keyword search over a hardcoded 100-item list with an unguarded fallback, wearing a neural confidence score that measures answer-vs-distractor similarity for whichever item got picked, not query relevance. O(1) Lie state updated in the CLI output is literally true and functionally irrelevant, the state updates but is never consumed by the retrieval path.
21. Regrounding in current production state of the art
Following §20’s failures, fresh research (not previously covered) into current production memory systems, confirms the design in §9-16 was directionally correct, but was drifting toward building its foundation on unproven research primitives instead of the proven pattern the market leader already runs.
Cognee (new to this survey, 12K+ GitHub stars, 70+ production deployments, current leading open-source graph-native memory framework) runs an ECL pipeline (Extract → Cognify → Load): classify → extract chunks → LLM extracts entities/relationships → summarize → embed into a vector store and commit edges to a graph, simultaneously. That is hybrid vector+graph storage with an LLM doing extraction, independently arriving at the same shape as §16’s Memory Chip + semantic graph + Curator split. Its self-improvement pass (“memify”: pruning stale nodes, reweighting edges by usage, adding derived facts) is the same job as Verace/Memory’s reflect/trigger_consolidation, more fully specified.
Cost/latency data validates the Memory Controller (§10) empirically, not just in theory. On LoCoMo: full-context retrieval hits 72.9% accuracy at 9.87s latency / ~26K tokens per query; Mem0’s bounded selective pipeline hits 66.9% at 0.71s / ~1.8K tokens, 90% fewer tokens, 91% lower p95 latency, for ~6 points of accuracy. Sharper still: the framework that wins LoCoMo outright runs 340× heavier per conversation than the runner-up, a gap no accuracy leaderboard column shows. §10’s hard token-budget knapsack was the right call; any future benchmark must report cost alongside accuracy or it isn’t measuring the tradeoff that matters in production.
One new, genuinely useful addition: MAGMA (recent graph-memory research) separates the associative-similarity graph from the causal-structure graph, reasoning about why events happened, not just what’s similar. The current design conflates these (PPR over one semantic graph, causal links only informal inside episodic memory, §9). Worth formalizing as two distinct graphs in the semantic layer.
Revised build order:
The Lie-group/Rodrigues/holographic mechanisms (§17-19) are not disqualified, their core proofs are real and separately tested, but stay exactly where already classified: optional Path 2 upgrade, not the critical path.
Critical path is the proven pattern: LLM extraction (the Curator, §15, built as Cognee’s extraction stage, not bespoke) + hybrid vector/graph storage (§16) + consolidation (§9) + bounded retrieval (§10).
Add the associative/causal graph split to the semantic layer.
Any future benchmark reports accuracy and cost together, on LoCoMo/LongMemEval, against Mem0/Zep/Cognee directly, not a self-designed question set, and never accuracy alone.
Sources: Cognee architecture, Cognee vs alternatives 2026, Agent Memory Benchmark Manifesto, Graph-Augmented LLM Agents survey, Awesome-GraphMemory.
8. External literature grounding
Three landmark external papers were retrieved and read in full (arXiv source, not abstracts), cited here with exact equations as prior-art validation for the design choices already made, plus one design correction they suggest.
Infini-Attention: Munkhdalai et al., Google, “Leave No Context Behind” (arXiv:2404.07143)
A bounded compressive memory M ∈ ℝ^(d_key×d_value) lives inside the attention block itself. With σ = ELU+1 and a running normalization term z:
Read:
A_mem = σ(Q) M_{s-1} / (σ(Q) z_{s-1})Write (delta rule):
M_s ← M_{s-1} + σ(K)^T (V − σ(K)M_{s-1}/(σ(K)z_{s-1})),z_s ← z_{s-1} + Σ σ(K_t), the subtracted term means an already-bound KV pair contributes zero further update, i.e. it’s a delta rule over an unbounded matrix (no orthogonality constraint).Gate combining local + long-term attention:
A = sigmoid(β)⊙A_mem + (1−sigmoid(β))⊙A_dot, one learned scalarβper head.Memory footprint:
d_key×(d_value+1)×H×lparameters vs. Memorizing Transformers’(d_key+d_value)×H×N×S, a 114× compression ratio at comparable context.Benchmarks: 1M-token passkey retrieval, fine-tuned 400 steps on 5K-length data → 100/100/100 accuracy (start/middle/end of the haystack). 500K-token BookSum → ROUGE 40.0/8.8/17.9, new SOTA at publication.
Maps to: the same object class as V1’s Newton-Schulz holographic matrix and SDRT’s DeltaRuleMemory, a bounded d×d-class associative store updated per token instead of an ever-growing cache, and literally the same delta-rule write equation SDRT uses (e = v - Mk form). Independent convergence on “bounded associative matrix beats growing KV cache” across Google, the Verace V1 release (CHAM), Verace V1, and SDRT is strong validation of the whole stack’s working/long-term-memory strategy. What it lacks that this stack already has: no orthogonality/unitary constraint on M, so unlike Newton-Schulz retraction (V1) or LRAWS (ASI) it has no proof against interference/blow-up over unbounded writes, cite as justification for keeping those constraints, not as a reason to drop them.
Recurrent Memory Transformer: Bulatov, Kuratov, Kapushev, Burtsev, “Scaling Transformer to 1M+ Tokens with RMT” (arXiv:2304.11062)
Memory = m real-valued trainable vectors prepended (encoder-only) or split into read-prefix/write-suffix (decoder-only, causal) around each segment. Recurrence across segments τ:
H̃_τ^0 = [H_τ^mem ∘ H_τ^0], H̄_τ^N = Transformer(H̃_τ^0), [H̄_τ^mem ∘ H̄_τ^N] := H̄_τ^N
H_{τ+1}^mem := H̄_τ^mem, H̃_{τ+1}^0 = [H_{τ+1}^mem ∘ H_{τ+1}^0]i.e. the memory tokens’ own output hidden states from segment τ become the memory input to segment τ+1, gradients flow back through this chain during training (BPTT), with curriculum learning: train on 1-segment sequences first, add one segment at a time upon convergence, up to 7 segments in practice.
Complexity: linear FLOPs in input length vs. quadratic for full attention; at 2,048,000 tokens, RMT runs OPT-175B with 29× fewer FLOPs than full attention, up to 295× fewer for smaller models.
Benchmark: memorization/detect-and-memorize/reasoning synthetic tasks stored and retrieved accurately up to 4,096 segments = 2,048,000 tokens, a record length for any deep network at publication, using only 10 memory tokens and a base model with flat 3.6GB memory footprint regardless of input length. Retrieval accuracy stays high (>90%) for memorize/detect tasks out to 2M tokens; degrades faster for the harder multi-hop reasoning task, and single-segment-trained models don’t generalize to longer sequences, models need training on ≥5 segments to generalize to much longer ones.
Maps to: directly relevant to the invariant noted in §4 (“no cross-API logit access to a model you don’t host”). RMT is architecture-unmodified, memory is carried purely as ordinary token content the model already reads and writes, not a logit intervention. That means the RMT pattern (not the paper’s code, the pattern) is reachable even through a text-only interface like this session’s MCP boundary: a memory layer can emit compact [MEM]-token-style state summaries and re-inject them into context turn-to-turn without needing any model access at all. Design correction to §4: the “bounded by invariant” verdict was correctly scoped to mem-LLM’s logit-biasing approach specifically, RMT shows a genuine text-level alternative exists for the same goal. Reclassify out-of-context working-memory carry-over as (b) buildable at a price (the price being prompt-token budget spent on [MEM]-style summaries each turn, and, per RMT’s own finding, needing to train/tune the summarization behavior on enough multi-segment examples to generalize), not purely invariant-bound.
Modern Hopfield Networks: Ramsauer et al., “Hopfield Networks is All You Need” (arXiv:2008.02217)
New continuous-state energy E = -lse(β, X^Tξ) + ½ξ^Tξ + β⁻¹log N + ½M² (eq. 2), where lse is the log-sum-exp. Minimizing it gives the update rule (eq. 3), proven to converge globally in one step (Theorem 1, via the Concave-Convex Procedure):
ξ_new = f(ξ) = X · softmax(β X^T ξ)
Storage capacity (Theorem 3): for
Nrandom patterns on a sphere, with probability1-pthe number storable isN ≥ √p · c^((d-1)/4), exponential in dimensiond(e.g.c ≥ 3.15gives real numeric bounds forβ=1, K=1, d=75), consistent with theO(2^(d/2))limit of the underlying binary exponential model this generalizes.Retrieval error (Theorem 5): exponentially small in a pattern’s separation
Δ_ifrom its neighbors,‖x_i − x_i*‖ ≤ 2(N−1)exp(−β(Δ_i − 2‖x_i*−x_i‖M))M.Exact transformer equivalence (eq. 10): setting
X^T=K=YW_K,Q=YW_Q,V=YW_KW_V, andβ=1/√d_k, the update rule timesW_Vis literallysoftmax(1/√d_k · QK^T) V, standard transformer attention, term for term.Bonus finding relevant to layer design: analyzing pretrained BERT, the authors show attention heads in early layers operate as near-uniform “global averaging” (large metastable states), while heads in the last layers operate on small metastable states close to a single stored pattern, i.e. genuine content-addressable, near-exact recall emerges specifically in later/higher processing, architecturally mirroring “sensory blend early → episodic-precise recall late.”
Maps to: this is the exact theoretical foundation of the draft engine’s ModernHopfieldAttractor (Memory-research/unified_memory_engine.py:75-102, softmax(β·logits) cleanup step), its beta=8.0 default and softmax-over-stored-patterns update are a direct, correct implementation of eq. 3 above. It also sharpens a finding from §3: CCLM’s “energy descent” query refinement is confirmed not a real instance of this (no exp/softmax energy, no exponential capacity guarantee), a weaker, unrelated iterative scheme despite the superficial resemblance. Since genuine exponential-capacity, exponentially-low-error recall is exactly what Theorem 3 and Theorem 5 formalize and what the draft’s ModernHopfieldAttractor already gets right, the episodic layer’s cleanup step should stay the draft’s real Hopfield attractor, pair it with CCLM’s slot-memory + quantized tape or mem-LLM’s DG/CA3 store for storage (§3), and this paper’s exact update rule for cleanup/retrieval.
License
PolyForm Noncommercial License 1.0.0This work is open research. Free for any noncommercial use: research, education, personal projects, evaluation, and nonprofit or public-sector use. Commercial use requires a separate license, available by contacting krrish@verace.in.