MemTensor's MemT-1.0 Squeezes Chat History Into a Fixed-Size Memory State
MemTensor releases MemT-1.0-Flash, a 288B parameter model that stores conversation memory directly in a trainable latent state instead of context tokens.
Takeaways
- MemTensor released MemT-1.0-Flash, a 288B total / 17B active memory-native LLM fine-tuned from DeepSeek-V4-Flash.
- Persistent latent memory stays fixed-size, cutting storage roughly 66x versus a 128K KV cache.
- Architecture adds a Native Memory Block with local memory matrix plus trainable gated hyper memory.
- Trained with a two-stage pipeline on 34B tokens; MIT licensed weights on Hugging Face.
- Ranks first among parametric-memory methods on 11 benchmarks; textual RAG still wins on long-history recall.
- Session API supports save and resume of memory state as safetensors files for per-user persistence.
MemTensor has released MemT-1.0-Flash, an open-weight language model built on DeepSeek-V4-Flash. During a conversation, the model updates a fixed-size memory state that later requests can consult without replaying the full transcript through the context window.
The approach gives developers another way to carry information across sessions. A conventional key-value cache stores attention data for prior tokens and grows with the sequence, while retrieval-augmented generation stores source text outside the model and inserts relevant passages into each request. MemT compresses earlier interactions into a learned tensor, reducing storage and input length at the cost of verbatim recall and source provenance.
- Storage claim: MemTensor reports roughly 66-fold lower storage than a full-context KV cache at a 128K-token history.
- Persistence: Applications can save and restore each session’s memory as a safetensors file.
- Serving: The release includes vLLM and SGLang recipes for self-hosted inference.
- License: MemTensor publishes the weights under MIT terms. Flash users must also review the original DeepSeek backbone terms.
Two models, sharply different footprints
The MemT-1.0 release includes Flash for large-scale deployment and Nano for single-node experimentation. Both use mixture-of-experts backbones, which activate only part of the model for each token.
| Model | Backbone | Total parameters | Active parameters | Shared memory parameters | Dynamic session state |
|---|---|---|---|---|---|
| MemT-1.0-Nano | Qwen3.6-35B-A3B | 36B | 3B | 451M | 10M |
| MemT-1.0-Flash | DeepSeek-V4-Flash | 288B | 17B | 3.61B | 336M |
The trainable memory parameters belong to the model and are shared across sessions. The dynamic state changes as each conversation progresses, so applications need a separate state for every active session. Current-turn tokens continue to use the backbone’s ordinary attention path and KV cache.
Two blocks share the memory job
MemT adds a Native Memory Block alongside the backbone’s attention path. The module separates changing session data from the learned machinery that reads and updates it:
- Local Memory Block: Maintains a fixed-shape, multi-channel matrix that evolves across turns or segments.
- Hyper Memory Block: Supplies trainable query, key, and value projections plus erase, write, forget, and output gates.
During generation, memory attention reads the current state, normalizes and gates the result, then adds it to the backbone attention output. At the end of a turn or segment, a gated delta-network rule called stable GDN-2 applies token-level updates for future requests. The design draws from recent gated linear-attention research while retaining the transformer backbone.
The fixed shape keeps historical storage constant as earlier turns accumulate. Compression remains lossy: the state can retain useful facts and patterns without guaranteeing exact quotations, complete event histories, or citations to the original turns.
Checkpoints turn memory into application state
The session API can serialize the dynamic tensor and restore it later. The model card presents the following pattern, with memory enabled for the turn that introduces information:
session = model.create_session(tokenizer)
session.chat(
"I have a kitten named memmy...",
enable_memory=True
)
session.save_state("memmy_memory.safetensors")
restored = model.create_session(
tokenizer,
state="memmy_memory.safetensors"
)
response = restored.chat("How old is my kitten?")
Serialized state supports per-user assistant memory, resumable agents, and workflows that delete transcripts after updating the model state. Applications should pin the model and tokenizer versions used to create each checkpoint because the release does not establish compatibility across future memory-module revisions.
A saved tensor still contains information derived from a user’s conversation. Teams should treat it as sensitive data, encrypt it at rest and in transit, isolate tenants, enforce deletion policies, and test whether private details can be extracted through repeated queries. Systems that require audits, exact records, or user-visible citations should retain an authorized source of truth alongside the latent state.
Benchmarks show the compression cost
According to MemTensor’s technical report, the team attached the memory module to pretrained backbones and used a two-stage training pipeline covering 34 billion tokens. The report also introduces Mixture-of-Storage, a scheme for scaling capacity across memory components in a manner similar to routing across mixture-of-experts components.
Across 11 reported memory benchmarks, Flash and Nano rank first and second among the evaluated parametric-memory methods. Systems that retain and search textual history remain ahead overall, especially when long inputs demand exact evidence retrieval. Developers comparing architectures should reproduce the tests with their own turn lengths, update boundaries, state precision, and retrieval baselines.
Use cases depend on recall requirements
| Workload | Suggested role | Main constraint |
|---|---|---|
| Assistant preferences | Carry stable user details across sessions | Conflicting or outdated preferences require explicit update policies |
| Long-running agents | Store procedural experience without inserting it into every prompt | Compressed experience may omit steps needed for exact reproduction |
| Document search | Combine with retrieval for broad personalization | Exact passages and citations still require source text |
| Audited workflows | Use as an optimization beside an authorized record | Latent state provides limited provenance and inspection |
The report demonstrates procedural memory in long-horizon coding tasks. Retrieved experience is written into native memory and accessed during execution, improving reported task performance without adding the experience text to the active task context.
Serving costs move to per-session state
Flash contains 288 billion total parameters even though its mixture-of-experts routing activates 17 billion for each token. Operators still need enough storage and device capacity for the full weight set, making multi-GPU inference the practical deployment path. Nano reduces the footprint to 36 billion total parameters and targets single-node experiments.
Concurrent sessions also affect capacity planning because Flash reports 336 million values of dynamic state per session, compared with 10 million for Nano. Actual memory consumption depends on tensor precision, device placement, paging, and serialization format, so teams should benchmark state transfer and residency alongside token throughput.
The model card provides vLLM and SGLang self-hosting recipes but does not list a managed inference endpoint. Production evaluations should cover state-loading latency, batching behavior, tenant isolation, checkpoint durability, and the effect of different segment boundaries on recall.
Three ways to carry history
| Approach | Primary advantage | Primary cost |
|---|---|---|
| Long context | Preserves original tokens for direct attention | KV-cache and compute costs grow with sequence length |
| External retrieval | Preserves searchable sources, quotations, and citations | Requires document storage, indexing, retrieval, and prompt space |
| MemT state | Keeps historical state fixed in size and removes old text from later prompts | Compresses details and provides limited provenance |
For developers and researchers, MemT-1.0 provides a downloadable implementation of persistent parametric memory at a scale rarely available in open weights. Its construction on existing pretrained backbones also gives other teams a concrete path for testing similar modules without funding a full pretraining run. The remaining research question is how closely fixed-size learned memory can approach text-based retrieval as histories grow and recall requirements become more exact.