# Block Delta Memory (BDM): Sparse Recurrent Memory with Dense Execution

- **ID:** 1060
- **Kind:** code
- **URL:** https://github.com/p0rc314in/bdm
- **Authors:** porcelain (@p0rc314in)
- **Venue:** GitHub / X (independent)
- **Publisher:** GitHub / X (independent)
- **Published:** 2026
- **Source:** github
- **Language:** en
- **Access:** https://github.com/p0rc314in/bdm ; X thread https://x.com/p0rc314in/status/2103509078169600374 ; dump /workspace/curator/research/bdm-p0rc314in-2103509078169600374-20260925
- **License:** unspecified for original code; SDM-extracted shell CC BY-NC 4.0 (THIRD_PARTY_NOTICES); FLA optional MIT
- **License family:** Not stated (auto-classified)
- **Tags:** bdm, block-delta-memory, recurrent-memory, deltanet, gdn2, sdm, sequence-mixer, sparse-routing, product-key, mixture-of-memories, p0rc314in, porcelain
- **Topics:** recurrent memory; sequence mixers; sparse routing; Gated DeltaNet; long-context LM
- **Added:** 2026-09-25
- **Verified:** 2026-09-25
- **Research status:** done
- **Needs deep evaluation:** yes
- **Page:** https://papers.projxon.ai/entries/1060

## 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.

## Attributes

- **Purpose:** Replace attention with a sparse-routed bank of dense GDN2 memories so capacity grows while per-token work stays nearly flat
- **Scale:** WikiText 8L×128 ~15–17M / ~354M tok; BabyLM 16L×512 86.34M / ~1.7B tok; N=2048 K=64 (8 banks×8); H200 sweep N=T to ~1M rows
- **Domain:** recurrent memory; sequence mixers; sparse routing; Gated DeltaNet; long-context LM
- **Used for:** Attention alternatives; sparse recurrent memory vs SDM/GDN2; agent memory-budget vs context-window; local unified-memory decode
- **Time period:** X thread 2026-09-25T15:37:00Z; GitHub README present at catalog time; cataloged 2026-09-25
- **Author type:** independent researcher

## From the source (fetched 2026-10-03)

- **Repository:** p0rc314in/bdm (GitHub)
- **Created:** Sep 17, 2026 (GitHub)
- **Last push:** Sep 25, 2026 (GitHub)
- **Stars:** 8 (GitHub)
- **Forks:** 0 (GitHub)
- **Main language:** Python (GitHub)

## Research notes

- Hudson linked X 2026-09-25. Intro t.co/Qwdq3ZUFjl is VIDEO-ONLY (not paper). Primary artifact found in thread final reply t.co/cYCqCoxmBB → https://github.com/p0rc314in/bdm (README+APPENDIX+implementation/bdm|bsdm+reproduction). arXiv phrase search Block Delta Memory / ti Block Delta: 0 hits — no invented id. HF hub: no matches. Dedup clear vs BDM/Block Delta Memory/p0rc314in/2103509078169600374/github.com/p0rc314in/bdm. Related prior: SDM 2607.07386; GDN2 2605.22791 (catalog 636); MoM 2502.13685; author SDM forks residualized-sdm-routing, productkey-init-sdm, copy-on-write-sdm, elastic-sdm. Package name block-sparse-delta-memory / Python bsdm; THIRD_PARTY_NOTICES: SDM-extracted shell CC BY-NC 4.0; no blanket license on original files. Dump /workspace/curator/research/bdm-p0rc314in-2103509078169600374-20260925/. Sheets not synced. Discord empty. Cataloged 2026-09-25 18:19 ET.

## Similar entries

- [ID Balancing: Stable Training of Extremely Sparse MoE via PID-Based Load Control](https://papers.projxon.ai/entries/833) (paper, #833)
- [Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling](https://papers.projxon.ai/entries/1244) (paper, #1244)
- [Balancing Memory Pathways: Analyzing and Improving Memory Utilization in Hybrid LMs](https://papers.projxon.ai/entries/1282) (paper, #1282)
- [MoBA: Mixture of Block Attention for Long-Context LLMs](https://papers.projxon.ai/entries/707) (paper, #707)
- [Block Sparse Attention with Log-Linear Complexity](https://papers.projxon.ai/entries/1086) (paper, #1086)
- [LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoning](https://papers.projxon.ai/entries/821) (paper, #821)
