LongMem
https://arxiv.org/abs/2306.07174
Trainable SideNet module selectively retrieves relevant cached key-value pairs from memory banks during decoding.
At a glance
- Type
- Trainable SideNet over memory bank
- Tier
- T4
- Created
- 2023-06
- Latest release
- no-release no-release
- License
- Apache-2.0
- GitHub
- 826★ Python
- Pricing
- not applicable — research paper
- Funding
- not applicable — not commercial
Taxonomy
- storage
- kv-cache
- retrieval
- similarity
- persistence
- long-term
- update
- append-only
- unit
- kv-token
- governance
- opaque
- conflict
- n/a
When to use
Optimised for: not applicable - research paper
Anti-fit: not applicable - research paper
Pros & cons
Pros
Long-term memory module for transformer LMs.
Cons
Preprint; memory module pretraining cost.
Claims & capabilities
Frozen backbone LLM + adaptive residual side-network as memory retriever/reader; ~65K token memory bank. Headline: 40.5% identification accuracy on ChapterBreak vs. GPT-3 28% with 313x fewer parameters; -1.38 to -1.62 perplexity on PG-22; baselines: Memorizing Transformer (MemTRM) and reproduced GPT-2 (407M Alibi); primary datasets: ChapterBreak, PG-22, ArXiv papers, plus ICL on SST-2/MR/Subj/SST-5/MPQA.
Technical surface
- API surface
- not applicable — research paper
- Backend storage
- not applicable — research paper
- Deployment
- not applicable — research paper
- Embedding model
- not applicable — research paper
- Multi-tenancy
- not applicable — research paper
- MCP
- not applicable — research paper, no deployed product
- A2A
- not applicable — research paper, no deployed product
- OpenTelemetry
- not applicable — research paper, no deployed product
Similar systems
Other recent method papers — theorized, no distinct product in the catalog, ranked by inbound references.
- Compressive Transformer T3
Maintains recent states in full resolution while compressing older memories with learned compression functions. DeepMind.
- MemGPT v2 / agent-tools T3
Already in catalog as the foundational MemGPT paper. Note: Letta is the productionised successor (cross-listed).
- Transformer-XL T3
Extends context through segment-level recurrence + caching of hidden states from prior segments. Foundational long-context architecture.
- Generative Agents T3
Park et al. — landmark agent-simulation paper. Reflection + memory stream + retrieval enable believable agent behavior.
- MemoryBank T3
Enhances LLMs with long-term memory. Early influential paper.
- Reflexion T3
Language agents with verbal reinforcement learning.
Related systems
References (1)
- Transformer-XL cites — S2 isInfluential citation