explainx.ai350K+ learn from us
TrendingAI News TodayExplainx for Business
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

follow on google

Add explainx.ai as a preferred source

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

community

Join the community

learn

mind: share how you thinkpathways — start freeworkshopsbootcampscoursescompare Explainxcertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcpestacktoolsmdx readeragentsllmsdesignsdictionarypeopleagi trackerfelony benchranks

company

aboutvisionmissionteaminstructorsteach on explainxpartnershipscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportcontactprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

explainx.ai

On this page

  • TL;DR: the two mechanisms
  • Why builders are looking past "just buy more HBM"
  • Architecture walkthrough
  • Long-context memory adaptation on Qwen3.5
  • Systems numbers at 1M context
  • How to try MemOnce this week
  • Limitations the authors and page imply
  • Where MemOnce fits in your roadmap
  • What we are watching next
  • Related reading
← Back to blog

explainx / blog

MemOnce: Scalable LLM Memory With One KV Decode Per Query

Research, Open Source, Long Context, KV Cache, Inference

Part of AI Research

MemOnce (arXiv 2611.27973) caches compact final-layer states once, retrieves them once per query, and decodes layer KV on demand. Authors report 1313× cache cut and 6.9× faster prefill at 1M context on Qwen3.5-4B.

Nov 24, 2026·8 min read·Yash Thakker
add explainx.ai
go deep
MemOnce: Scalable LLM Memory With One KV Decode Per Query

MemOnce is a new open research architecture for long-horizon language models that tries to escape the linear GPU memory growth of classic KV caches without giving up the fine-grained recall people expect from full attention. arXiv 2611.27973, posted November 20, 2026 by Chang Nie, Chaoyou Fu, Songlin Liu, Yiqing Hu, and Caifeng Shan (Nanjing University and University of Science and Technology of China affiliations per arXiv and Hugging Face Papers), ships with a project page and GitHub repo Clare-Nie/MemOnce. The headline systems claim: at 1M tokens on adapted Qwen3.5-4B, ~1,313× smaller active memory state cache, 6.9× faster prefill, and +5.77% on their long-memory benchmark average—author-reported numbers you should treat as reproducibility targets, not vendor SLAs.

Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

TL;DR: the two mechanisms

table · 3 cols
PieceWhat it doesWhy it matters
Memory encoder-decoderCaches only a small trailing subset of final-layer hidden states in one global memory bank, then projects retrieved states back into per-layer KV when an attention block needs themAvoids storing L layers × T tokens of KV for the full history
Memory sparse attentionFor each new continual input, computes which memory slots matter once, then reuses the same sparse indices across layersStops every layer from re-scanning the entire past at full density
Hybrid backboneAlternates linear-time blocks (paper cites Gated DeltaNet) with MemOnce attention blocksBlends cheap local mixing with selective recall

The slogan on the project page—write once, index once, decode on demand—is the implementation story in one line.

Why builders are looking past "just buy more HBM"

Long-context agent ribbon passing through a window, illustrating MemOnce memory pressure on agent harnessesLong-context agent ribbon passing through a window, illustrating MemOnce memory pressure on agent harnesses

Agent harnesses that loop for hours—Codex jobs, support bots, coding CLIs—hit the same wall vLLM versus SGLang customers debate daily: context length is not free. Every token in history adds KV tensors across every attention layer. Prefill cost scales quadratically in the naive attention case, and decode keeps rereading that cache.

Research teams attack that bottleneck from several angles. Zyphra ZHA sparsifies which keys each query sees. NVIDIA sparse attention co-design chases hardware-aligned sparsity. MemOnce is another entry: learned memory states plus structured sparsity, aimed at native memory inside the model rather than only external retrieval.

If you run multi-day agent evaluations, the interesting question is whether MemOnce's bounded cache changes dollars per successful task more than a bigger GPU does.

Architecture walkthrough

The MemOnce project page breaks training and inference into three public steps:

  1. Write — cache memory only once. Only final-layer hiddens for a short tail enter the global bank. Earlier layers never keep their own duplicate token caches for the whole transcript.
  2. Index — retrieve once per query. Given a new user or tool message, MemOnce scores memory slots one time and fixes sparse indices for that turn.
  3. Read — decode KV on demand. Retrieved vectors expand into the key/value tensors each attention layer consumes, while much of the backbone stays frozen during adaptation experiments.

The paper argues this coupling yields linear-time complexity in their setup and a constant GPU memory budget for the active memory state, as opposed to unbounded KV growth.

MemOnce pretraining benchmark table comparing Transformers, GDN, and MemOnce at 400M scaleMemOnce pretraining benchmark table comparing Transformers, GDN, and MemOnce at 400M scale Image: Chang Nie et al., MemOnce project

Pretraining from scratch (FineWeb-Edu)

On roughly 400M-parameter runs, MemOnce posts validation perplexity 10.77 at compression ratio r = 1 and 10.89 at r = 8, beating a 365M Transformer baseline at 10.97 in the public table. Against Gated DeltaNet (GDN) and YOCO, MemOnce claims better average zero-shot scores on eight reasoning-style tasks while using 64× depth–time cache compression with under 0.3% accuracy loss between r = 1 and r = 8 in their scaling chart narrative.

Those are pretraining results, not a productized Qwen drop. They matter because they show the stack is meant as a foundation architecture, not only a LoRA bolt-on.

Long-context memory adaptation on Qwen3.5

The more product-facing section adapts Qwen3.5-2B and 4B "full context" baselines to MemOnce and tests MemBench, LoCoMo, LongMemEval, and PersonaMem out to ~1M tokens on the hardest persona split.

table · 3 cols
ModelOverall long-memory average (project table)Delta vs full-context baseline
Qwen3.5-4B full context54.30%—
MemOnce-4B (authors)60.07%+5.77 points
Qwen3.5-2B full context49.33%—
MemOnce-2B (authors)51.17%+1.84 points

The authors position MemOnce as the first native memory model in their comparison set to beat the full-context Qwen baseline on that average, ahead of M+, Metis, δ-Mem, and EvoEmbedding in the same table. Independent labs have not yet published conflicting numbers on Hugging Face or Hacker News as of this writing.

Systems numbers at 1M context

MemOnce inference scalability chart showing KV cache reduction and prefill speed at 1M contextMemOnce inference scalability chart showing KV cache reduction and prefill speed at 1M context Image: Chang Nie et al., MemOnce project

The project page's inference scalability panel is what most infra engineers will screenshot:

table · 2 cols
Metric (Qwen3.5-4B + MemOnce, 1M context)Claim on project page
Active GPU memory state cache~25 MB, 1,313× smaller than compared baseline
Prefill latency6.9× faster
Decoding throughput3.5× higher (29.3 tok/s cited)
Retrieval plus KV decode overhead64.2 ms end-to-end in one table row

Map those against how you already budget speculative decoding and prefix caching on the same GPUs. MemOnce is not a drop-in flag on vLLM today; it is a research codebase you would integrate only after reading their hybrid block schedule.

How MemOnce compares to other KV research lines on this blog

Several 2026 papers attack the same GPU footprint problem with different geometry. Multi-Branch Transformer Joint-KV shares keys across branches to deduplicate storage. NVIDIA's compaction study argues many agent traces can summarize away without quality loss. MemOnce instead learns a memory bank and rehydrates KV only where attention fires, which is closer to native recurrent memory than to post-hoc summarization. None of these are interchangeable flags; each needs your workload trace—codegen sessions look different from PersonaMem personas.

If you teach long-context design in a workshop cohort, use MemOnce as a reading assignment: ask students to reproduce one 128K row and explain whether sparse indices stay stable when users edit earlier messages. That exercise surfaces whether agent products need retrieval or learned memory first.

How to try MemOnce this week

  1. Read the paper — arXiv PDF for training objectives and ablations.
  2. Clone the repo — github.com/Clare-Nie/MemOnce for configs; star count was modest on November 24 but the README and checkpoints are the gate that matters.
  3. Reproduce one row — pick PersonaMem ~128K before chasing 1M; confirm GPU model, batch, and precision match the paper before quoting throughput externally.
  4. Compare honestly — run the same prompt suite on dense KV with your existing inference server so savings are net of integration tax.

The Hugging Face entry includes arxiv:2611.27973 and hf papers read 2611.27973 CLI instructions if you pipe papers into local research agents—use your normal data-handling policy before sending proprietary chats through any experimental stack.

Limitations the authors and page imply

  • Scope is memory architecture, not tool-use reliability or safety alignment. Better long recall does not fix bad actions from agents; pair model work with evaluation harnesses and policy checks.
  • 1M-token claims need your hardware profile. A 25 MB active state still sits beside weights, activations, and framework overhead.
  • Competing memory papers land weekly on Hugging Face; MemOnce is one encode-once design among surveys of memory-centric compression the Librarian bot lists near this entry.
  • No major lab product ships MemOnce yet. Contrast with frontier sparse attention research that already targets production stacks.

Where MemOnce fits in your roadmap

table · 3 cols
If you are building…MemOnce may help when…Safer default today
Personal agents with week-long threadsYou control the base model and can fine-tuneRAG + summarization with audited retrieval
On-prem long-context chatYou can allocate engineering to custom inferenceQuantized KV and context pruning in vLLM
Research prototypesYou need a published baseline beyond RMT / Titans style papersStart from arXiv + GitHub before promising customers 1M

None of that replaces workshop training on agent harness design—architecture papers change cost curves, not operator discipline.

What we are watching next

  • Independent replications on Hugging Face Spaces or GitHub issues with conflicting throughput numbers.
  • Integration patches for PyTorch training loops beyond the authors' Qwen3.5 adaptation recipe.
  • Downstream embeddings: the paper claims zero-shot representation tasks; if code or weights for those heads ship, compare against whichever embedding endpoint you already use in production RAG.

We will add an update if peer review, v2 arXiv, or major inference engine adoption appears.

Related reading

  • What is the KV cache?
  • vLLM vs SGLang in 2026
  • Zyphra hierarchical attention on Qwen3.6-35B
  • NVIDIA sparse attention co-design
  • Hugging Face agentic evaluation guide
  • Duopra full-duplex agency
  • Speculative decoding explained
  • Mobile agent testers with Claude Code Actions

Benchmarks and tables follow the MemOnce project page and arXiv 2611.27973 as of November 24, 2026.

Spotted something out of date? Let us know.
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

  • ✓ Free
  • ✓ One email a day, no spam
  • ✓ Unsubscribe anytime
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

View Yash Thakker in People in AI →

Related posts

Nov 18, 2026

Multi-Branch Transformer (MBT): Parallel Blocks, Joint-KV, and 51% Faster Decoding

Researchers from UIUC, Cornell, Rice, and Michigan introduce Multi-Branch Transformers that run parallel block stacks, fuse them, and share KV caches. On MoE models up to 2.1B parameters, Balanced MBTs beat matched sequential Transformers and decode up to 51.4% faster on an H200.

Nov 18, 2026

NVIDIA Sparse Attention Co-Design: Eight Rules for 128K+ Context on GPUs

On November 17, 2026 NVIDIA published a hardware-aware sparse attention primer for model developers. It explains why the indexer—not core attention—often dominates at 128K tokens, and lists eight design guidelines tuned with production FP8 kernels.

Nov 16, 2026

MMFlash: Speculative Decoding for Vision-Language Models Explained

Text-only speculative decoding is mature; multimodal models stall when drafters guess image-conditioned tokens poorly. MMFlash from National University of Singapore measures visual dependence per token, upweights hard visual guesses, and sparsifies video attention—claiming up to 3.58× lossless speedups versus EAGLE-3 and DFlash baselines.