Newsroom Wire

US11-14 18:21⏱ 4 min read

Stanford Research Open-Sources Memorilla, a Latent Memory Module for Frozen LLMs

Stanford researchers have released Memorilla, an open-source memory system for LLMs.The Memorilla memory system reads a whole document collection and hands a frozen LLM just 16 memory tokens.On FactKG, a frozen Qwen3-8B scored 84.33% with Memorilla, against 80.43% with every document in context.

It did that with 108x fewer document tokens.Code, training recipes and checkpoints are public under Apache 2.0.You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.

Memorilla is a memory module that turns a document collection into 16 vectors for a frozen LLM. The work comes from Jure Leskovec’s SNAP group, with co-authors from Toronto, Penn and MIT.

A frozen LLM can only use what sits in its context window. Full-context prompting grows slower as history grows. Retrieval pastes the chunks most similar to the question, and can miss weaker clues. Memorilla takes a third route: it learns what each question needs from the whole store.

Only the memory module trains: 194,123,776 parameters for the 8B decoder. Training runs in 3 stages. Stage 1 uses about 1.98M Wikipedia paraphrase-reconstruction examples. Stage 2 adds about 1.34M examples from 10 QA and summarization datasets. Stage 3 fine-tunes on all 8 benchmarks. The full recipe takes about 19 hours on 4 H100 GPUs.

All baselines use the same frozen Qwen3-8B, per the paper’s main table. Scores are self-reported by the research team.

Memorilla loses on 3 benchmarks. On PubMedQA it scores 59.00%, while LLMLingua-2 reaches 69.00%. Those abstracts total only 324 tokens, so compression has little to gain. MemoRAG leads on PersonalizationV4 (67.88% vs 66.65%) and NarrativeQA ROUGE-L (20.51 vs 19.31). MemoRAG used about 690x and 50x more document tokens there.

Compression peaks on NarrativeQA: 16 tokens replace 67,385 document tokens, a 4,212x cut. As agent memory, 8 memory tokens lift a Qwen3-4B TextWorld agent from 18.6% to 24.2% average success.

On 1 H100, Memorilla answers in 0.74 s at 512 documents (about 128K tokens). Full context slows from 0.75 s to 19.9 s, which is 27x slower. The memory module itself takes about 2 ms.

An optional memory cache precomputes cross-attention keys and values. On 1 B200, a question then takes 8.1 ms at 1M documents and 33 ms at 4M. With torch.compile, the 1M case drops to 5.0 ms. The cache costs 80 GiB at 4M documents.

Install with uv on Linux, then load MemoryVLLM.from_pretrained. The first run downloads about 25 GB of models. Checkpoints live at memorilla/Memorilla-Qwen3-8B as Stage 1, 2, 3, PV4 and PMv2 folders.

Each checkpoint must run with the decoder it was trained with (evaluation docs). Custom data needs parquet files with collection_id, question, answer and documents columns. The research team also released PersonalizationV4: 149 synthetic users, 200 conversations each, under CC BY 4.0.

Benchmark scores come from Memorilla’s paper, which ran every baseline on the same Qwen3-8B. Licenses come from each project’s repository.

Check out the paper, browse the GitHub repo, and download the checkpoints. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.

Wait! are you on telegram? now you can join us on telegram as well.

Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us

Asif Razzaq is the CEO of Marktechpost AI Media Inc..As a visionary entrepreneur and engineer, Asif is committed to harnessing the potential of Artificial Intelligence for social good.His most recent endeavor is the launch of an Artificial Intelligence Media Platform, Marktechpost, which stands out for its in-depth coverage of machine learning and deep learning news that is both technically sound and easily understandable by a wide audience.

The platform boasts of over 2 million monthly views, illustrating its popularity among audiences.

What 70,000+ AI engineers read before standup

Get the AI releases that matter, before they trend.

Model releases, open weights, agents and papers with code — the 5 that matter, in 1 email. Free.

Get the stories that didn’t make it on the homepage.

Last issue: ▲ what's inside: openbot 1.0, aws emulator, gemini decisions, pan 2

The newsletter 70,000+ AI builders read

Model releases, open weights and papers with code — in 1 email. Free.

▲ AI DEV SIGNALS · FREE NEWSLETTER

Get the AI releases that matter, before they trend.

70,000+ AI builders · Past issues →

Our GPULeaderBoard Chrome Extension is live

The newsletter 70,000+ AI builders read. Model releases, tools and research, without the hype.

Practitioner-first AI/ML news and analysis, read by 1M+ developers and researchers every month.

Snapshot for aggregated reading; content from the public web, © the original publishers.

AI NewsCove

Opening article…