{
  "id": 1421,
  "kind": "paper",
  "title": "Depth Memory",
  "summary": "Reframes depth mixing as memory management. The Depth Memory framework describes PreLN (one additive residual stream), Attention Residuals (a growing key–value cache of every earlier layer output — explicit depth memory), and mHC (an expanded residual stream — implicit depth memory) as streams with Read/Write operators, then proposes Linear Depth Memory (LDM): three streams per token — the standard residual stream, a fixed-size matrix-valued associative memory M, and an inverse-covariance stream P. M is maintained as the EXACT solution of a \"depth regression\" — least squares over past layers, fitting a linear map that reconstructs earlier layer outputs v_i from their keys k_i — solved online by recursive least squares (Sherman–Morrison) with learnable per-layer forgetting factors, dynamic importance weights, and a ridge penalty. Each write is an error-correcting rank-1 update M ← M + u·κᵀ (u = current prediction error, κ = RLS gain from P); reads add a gated memory retrieval to the residual stream, x + γ⊙M(g⊙q). Depth can afford the exact solve that sequence mixing cannot, because layers are already evaluated sequentially — this is test-time regression (delta rule / MesaNet lineage) transplanted from the sequence axis to the depth axis, and the fixed-size RLS state replaces AttnRes's depth-growing cache. Memory is split into G=16 groups with per-group covariance; main config D_k=8 (memory matrix 8D entries/token, 2× mHC's 4D). Hardware-aware implementation: the RLS recurrence is reversible, so the backward pass unwinds states from the final M instead of storing one per layer, and windowed writes (E=4) defer updates within a window — CuTe DSL kernels for Hopper/Blackwell. Results on FineWeb-Edu with per-method LR sweeps and ~1% extra parameters over PreLN: 400M (Llama-like, 50B tokens) validation PPL 12.08 vs Block AttnRes 12.12, mHC 12.23, Full AttnRes 12.35, PreLN 12.73 — lowest also on WikiText-2 (20.70) and LAMBADA (19.10); zero-shot average 50.46, second to Block AttnRes (50.61). 1.5B (Qwen-like, 100B tokens): validation PPL 9.15 vs mHC 9.25, Block AttnRes 9.26, PreLN 9.48; WikiText-2 14.21 and LAMBADA 8.42, both lowest; highest zero-shot average (59.71). A D_k=4 variant whose memory matrix matches mHC's state size still beats mHC on all three perplexities. Throughput (B200, 1.7B–14B): exceeds Full AttnRes in every setting and mHC in all training and most inference settings; competitive with Block AttnRes, especially in decode. Ablations (400M, 15B tokens): the separate residual stream is load-bearing — memory-only layer input (+1.88 PPL) or replacing the stream with the layer output (+0.87) both fall below PreLN (+0.78); replacing RLS with a delta rule (+0.06) or plain outer-product update (+0.07) still beats PreLN but not RLS; storing the residual stream instead of layer outputs hurts most among addressing choices (+0.33); disabling forgetting is a wash (−0.01). On the DepthBench aspect-ratio protocol, LDM beats PreLN at every width/depth ratio at 400M and 1.6B and is lowest at every 1.6B ratio; the deepest 400M shape is the lone exception (HC slightly better). Caveats: quality evidence stops at 1.5B / 100B tokens (larger scales appear only in throughput tests); LDM can add peak training memory; all results first-party, no independent reproduction.",
  "body": "",
  "notes": "Discovery: Hudson shared the @askalphaxiv post 2026-10-20 4:08 AM ET (~5.8K views; https://x.com/askalphaxiv/status/2112455949881573494; link https://alphaxiv.org/abs/2610.18809). Senior author Shiwei Liu is also senior author of DepthBench (ID 870; queue #42) — LDM's code builds on the DepthBench codebase and its aspect-ratio study follows the DepthBench protocol exactly; first author González-Martínez is a DepthBench co-author. Cluster: residual-stream expansion / depth mixing — #48 xHC (expands the residual stream itself and reads across streams), #11 MSAR (multi-stream attention residuals), #73 Hyperloop (mHC-style hyper-connections applied across loop iterations), #41 ScalingDepth (Keyu Wang's hub; Wang leads DepthBench). The design contrast worth keeping: xHC widens the stream, AttnRes keeps everything and attends back, mHC mixes a fixed expanded state with learned maps — LDM instead keeps the plain residual stream untouched and bolts on a fixed-size associative memory whose contents are the exact least-squares fit of past layer outputs, i.e. the \"memory as online regression\" framing of #56 (Alex Wang's associative-memory explainer) made literal over depth. Relevance to Hudson's stack: depth-axis and orthogonal to his 3:1 SWA:full-attention sequence mixing — a ~1%-parameter drop-in candidate for his pretraining runs, with the caveat that evidence is dense Llama/Qwen-like backbones at academic scale only (no MoE or hybrid-attention test, nothing above 1.5B quality). Code is unusually complete: training, eval, ablations, and throughput for LDM and all baselines, plus released checkpoints — the ablation table (esp. residual-stream interruption and solver swaps) is directly reusable as a checklist for any depth-mixing experiment. | License: paper arXiv default nonexclusive-distrib (verified via OAI record — no CC/custom marker); code MIT",
  "url": "https://arxiv.org/abs/2610.18809",
  "links": [],
  "authors": [
    "David González-Martínez*",
    "Philipp Nazari* (*equal contribution)",
    "T. Konstantin Rusch",
    "Shiwei Liu — ELLIS Institute Tübingen",
    "Max Planck Institute for Intelligent Systems",
    "Tübingen AI Center (Nazari also ETH Zürich",
    "Rusch also Liquid AI)"
  ],
  "tags": [],
  "topics": "",
  "venue": "arXiv cs.LG, v1 submitted 13 Oct 2026",
  "publisher": "",
  "source": "arxiv",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-10-20T00:00:00.000Z",
  "verified_at": "2026-10-20T00:00:00.000Z",
  "attrs": {},
  "enrichment": {},
  "enriched_at": null,
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "askalphaxiv",
    "legacy_paper_id": "1728"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-11-01T12:55:56.926Z",
  "updated_at": "2026-11-01T12:55:56.926Z",
  "page": "https://papers.projxon.ai/entries/1421",
  "markdown": "https://papers.projxon.ai/entries/1421.md",
  "api": "https://papers.projxon.ai/api/entries/1421",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 1269,
      "kind": "code",
      "title": "Agent Memory Repo (Cognition) — open spec for persistent agent memory",
      "summary": "Cognition open-sources its agent memory format as an open standard, usable with any agent (announced alongside Devin's 'Dreaming' feature, where Devin builds a persistent memory graph of how a user likes to work across sessions). The format is a git repo of Markdown: every session clones the latest memory, searches or follows links, updates entries as the agent learns (no human in the loop), and pushes after every edit. MEMORY.md is the entry point loaded at the start of every session; entries are one-line bullets with open [key: value] metadata (recommended: source link to the session where it was learned, added date); [[path]] cross-links connect files; history and versioning come from git. 'Dreaming' is a dedicated periodic agent with two jobs: add new memory (spot patterns across sessions) and clean up (merge duplicates, drop outdated entries, resolve contradictions). Composability: memories are folders — a session can clone several repos at once (personal + team + swarm folders), each keeping its own ownership/permissions/history, and the agent tracks who said what. Agent swarms coordinate via message-board folders (findings.md, questions.md) with git rejecting conflicting pushes, forcing the agent to reconcile both versions. Worked examples: four parallel agents diagnosing a 1-in-100 slow request by sharing measurements through the repo, and a saved SQL query reused across sessions. Open to contributions: https://github.com/AgentMemoryRepo/agentmemoryrepo. Notably complementary/contrastable with the pending proactivity items on agent memory: the two-tier Memorystore/AlloyDB blueprint (SQL-native vector + BM25 hybrid retrieval, compaction) and the 'docs, not memory' RAG-skeptic argument. Directly relevant to the user's unnamed AI agent app.",
      "url": "https://cognition.com/agent-memory-repo",
      "authors": [
        "Cognition (Walden Yan)"
      ],
      "tags": [
        "agent-memory",
        "cognition",
        "devin",
        "dreaming",
        "persistent-memory",
        "git",
        "markdown"
      ],
      "venue": "Open standard announcement, 5 Oct 2026 (cognition.com/agent-memory-repo)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-06T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1269",
      "markdown": "https://papers.projxon.ai/entries/1269.md",
      "api": "https://papers.projxon.ai/api/entries/1269"
    },
    {
      "id": 1060,
      "kind": "code",
      "title": "Block Delta Memory (BDM): Sparse Recurrent Memory with Dense Execution",
      "summary": "Block Delta Memory (BDM) is a recurrent sequence mixer that routes each token via an SDM-style product-key router to a sparse subset of small GDN2 memory banks, then updates selected banks as dense matrix states with a shared GDN2 controller (route-weighted decay/erase/write). On WikiText-103 (~15–17M, N=2048/K=64) BDM roughly matches attention on Adaptive Recall (span/overwrite/one-hop ~97–99% exact) with LM NLL near attention/SDM; H200 sweeps show decode nearly flat as capacity grows N=T, ~2× faster than SDM and within ~1.2–1.6× of GDN2. No arXiv; GitHub README+code.",
      "url": "https://github.com/p0rc314in/bdm",
      "authors": [
        "porcelain (@p0rc314in)"
      ],
      "tags": [
        "bdm",
        "block-delta-memory",
        "recurrent-memory",
        "deltanet",
        "gdn2",
        "sdm",
        "sequence-mixer",
        "sparse-routing",
        "product-key",
        "mixture-of-memories",
        "p0rc314in",
        "porcelain"
      ],
      "venue": "GitHub / X (independent)",
      "source": "github",
      "license": "unspecified for original code; SDM-extracted shell CC BY-NC 4.0 (THIRD_PARTY_NOTICES); FLA optional MIT",
      "published_year": 2026,
      "added_at": "2026-09-25T22:19:31.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": 8,
      "page": "https://papers.projxon.ai/entries/1060",
      "markdown": "https://papers.projxon.ai/entries/1060.md",
      "api": "https://papers.projxon.ai/api/entries/1060"
    },
    {
      "id": 1282,
      "kind": "paper",
      "title": "Balancing Memory Pathways: Analyzing and Improving Memory Utilization in Hybrid LMs",
      "summary": "Recurrent-attention hybrid LMs (e.g., Qwen3.5) interleave attention and recurrent layers as two complementary memory pathways: attention supports precise recall of earlier tokens, recurrent layers consolidate disparate information over long contexts. The paper shows hybrids rely substantially more on attention than on the recurrent state — and that standard SFT improves overall performance but does not fix the imbalance: the model becomes more reliant on attention-propagated information while recurrent-pathway use stays limited. Fix: an auxiliary loss that limits attention's access to earlier context while the recurrent state propagates through the full sequence, forcing the model to retain and use information through the recurrent pathway alongside attention. Results: overall performance improves with especially strong gains on longer-context and information-aggregation tasks; QA avg +4.6%, agentic tasks avg +12.1% across multiple hybrid LMs; also generalizes to attention-only models combining different memory types (+28.6%). Core message: simply providing multiple memory pathways does not ensure their effective use — targeted supervision is needed to coordinate them.",
      "url": "https://arxiv.org/abs/2610.06750",
      "authors": [
        "Hyunji Lee",
        "Joykirat Singh",
        "Zaid Khan",
        "Justin Chih-Yao Chen",
        "Elias Stengel-Eskin",
        "Alessandro Sordoni",
        "Arman Cohan",
        "Mohit Bansal"
      ],
      "tags": [
        "memory-pathways",
        "recurrent-attention-hybrid",
        "auxiliary-loss",
        "memory-utilization",
        "long-context",
        "agentic-tasks"
      ],
      "venue": "arXiv 2610.06750 (cs.CL, cs.AI), submitted 5 Oct 2026",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-06T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1282",
      "markdown": "https://papers.projxon.ai/entries/1282.md",
      "api": "https://papers.projxon.ai/api/entries/1282"
    },
    {
      "id": 1505,
      "kind": "post",
      "title": "Depth Hybrid Attention (DHA): Depth-Wise Value Mixing for Hybrid Attention Architectures",
      "summary": "An architectural add-on for hybrid attention: let layers mix information across DEPTH, not just across time. DHA extends the group's earlier Depth-Attention (validated in plain GQA) to hybrid stacks. The forward pass for each token maintains a per-token 'depth bank' holding KV anchors written by preceding layers. Before its temporal attention, each layer runs a depth router: (1) Read historical anchors from the bank, (2) Mix - value mixing in the form of attention over those anchors, (3) Write its own anchors to the bank. The mixed values then feed the layer's ordinary temporal attention, whose design is untouched. Because the bank is per-token and holds one anchor set per layer rather than per position, it does not grow with context length - the hybrid's low KV-cache footprint is retained, at 'very little' added compute and cache (their characterization). Two variants, each keeping separate depth banks per layer type so a layer only reads anchors from its own kind: Depth Window Attention (DWA) for GQA + sliding-window attention hybrids, routing at KV-group granularity while SWA layers keep their temporal window; and Depth Delta Attention (DDA) for MLA + Kimi Delta Attention (KDA) hybrids, where MLA routes in latent space and KDA mixes values across depths using normalized queries/keys with depth-specific logit scaling before its delta-attention update. Results (short-context suite of 8 benchmarks - ARC-Challenge, HellaSwag, MMLU, CMMLU, GSM8K, MBPP, CMATH, MMLU-Pro; averages): DWA 39.68 vs GQA+SWA 37.84 vs full GQA 38.06, with the gains concentrated in generation tasks (GSM8K 44.43 vs 38.36 hybrid / 37.60 full) and MMLU a small exception (45.51, below full GQA's 46.19); DDA 40.92 vs MLA+KDA 39.12 vs full MLA 38.19 (GSM8K 43.67, CMATH 51.64). The README also reports better loss curves and long-context retrieval vs both baseline classes, but those results are figures only, with no numbers in text. Caveats: a code/project release, not a paper - no arXiv version, no stated model scale, token count, or training setup behind the benchmark tables in the README, all results first-party (Nanbeige LLM Lab, BOSS Zhipin), repo created 2026-10-29 with 3 commits and no LICENSE file in the root at catalog time. Relevance: DWA targets exactly the GQA+SWA hybrid family - in a 3:1 SWA:full stack the depth axis is orthogonal to the temporal hybrid split, but note the constraint that banks are per layer type, so window layers never read anchors written by full layers and vice versa; DDA's KDA branch is the Gated DeltaNet family paired with MLA instead.",
      "url": "https://github.com/Nanbeige/Depth-Hybrid-Attention",
      "authors": [
        "Nanbeige LLM Lab (BOSS Zhipin / Kanzhun Limited)"
      ],
      "tags": [],
      "venue": "Project / code release (GitHub)",
      "source": "github",
      "license": "",
      "published_year": null,
      "added_at": "2026-11-03T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1505",
      "markdown": "https://papers.projxon.ai/entries/1505.md",
      "api": "https://papers.projxon.ai/api/entries/1505"
    },
    {
      "id": 549,
      "kind": "paper",
      "title": "Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory",
      "summary": "Mem0 incrementally extracts facts from message pairs (summary + last m=10 turns) then ADD/UPDATE/DELETE/NOOP against top-s=10 similar memories via GPT-4o-mini tool calls. Mem0^g stores entity–relation triplets in Neo4j. On LOCOMO (10 convos, ~600 turns / 26k tokens, ~200 Qs each), Mem0 J 66.88 overall vs OpenAI memory 52.90 / Zep 65.99 / full-context 72.90; single-hop J 67.13 and multi-hop 51.15 lead. Graph variant best on temporal (J 58.13) and competitive open-domain (75.71 vs Zep 76.60). p95 total latency 1.44s (91% below full-context 17.1s) at 1764 retrieved tokens vs 26k. Code https://github.com/mem0ai/mem0; research https://mem0.ai/research.",
      "url": "https://arxiv.org/abs/2504.19413",
      "authors": [
        "Prateek Chhikara",
        "Dev Khant",
        "Saket Aryan",
        "Taranjeet Singh",
        "Deshraj Yadav"
      ],
      "tags": [
        "mem0",
        "agent-memory",
        "locomo",
        "graph-memory",
        "rag",
        "neo4j",
        "latency"
      ],
      "venue": "arXiv / Mem0",
      "source": "",
      "license": "",
      "published_year": 2025,
      "added_at": "2026-10-01T16:45:05.207Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 722,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/549",
      "markdown": "https://papers.projxon.ai/entries/549.md",
      "api": "https://papers.projxon.ai/api/entries/549"
    },
    {
      "id": 466,
      "kind": "paper",
      "title": "Metis: Memory Foundation Model",
      "summary": "Defines memory foundation models: a persistent parametric memory state plus native remember/forget/update procedures executed in forward computation rather than external RAG. Metis blocks add a local dense memory matrix and a hyper-memory updater (Gated Delta Network) fused via memory attention; online maintenance is a gradient-free forward pass with frozen weights. Mid-trained on 357,137 primary + 609,443 auxiliary synthetic multi-step trajectories from 27 public benchmarks (~406M primary tokens). Under no-context eval, Metis-27B leads Temp-LoRA and δ-Mem on MemOps, LoCoMo (Gold), and NextMem, still well below full-context Qwen3.5. Releases Metis-4B/9B/27B. Long-horizon compression loss and latent confusion remain.",
      "url": "https://arxiv.org/abs/2607.26760",
      "authors": [
        "Zeyu Zhang",
        "Ziliang Guo",
        "Yihang Sun",
        "Xichong Zhang",
        "Xixuan Hao",
        "Zehao Lin",
        "Yang Zhang",
        "Xiaoyan Zhao",
        "Tong Shen",
        "Bo Tang",
        "Zhi-Qin John Xu",
        "Junchi Yan",
        "Haofen Wang",
        "Xu Chen",
        "Feiyu Xiong",
        "Zhiyu Li",
        "Tat-Seng Chua"
      ],
      "tags": [
        "metis",
        "memory-foundation-model",
        "agent-memory",
        "qwen3.5",
        "locomo",
        "memops",
        "memtensor",
        "gated-delta-network"
      ],
      "venue": "arXiv / MemTensor / Renmin University of China",
      "source": "arxiv",
      "license": "CC BY-NC-SA 4.0 (paper); Apache-2.0 (Metis-4B/9B/27B weights)",
      "published_year": 2026,
      "added_at": "2026-08-14T16:40:00.000Z",
      "has_dataset_profile": false,
      "license_class": "non-commercial",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 4,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/466",
      "markdown": "https://papers.projxon.ai/entries/466.md",
      "api": "https://papers.projxon.ai/api/entries/466"
    }
  ]
}
