cd /news/artificial-intelligence/titan-llama-retrofitting-pre-trained… · home › topics › artificial-intelligence › article
[ARTICLE · art-150383] src=machinebrief.com ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Titan-Llama: Retrofitting Pre-trained LLMs with External Neural Memory Modules

A post-training method called Titan-Llama retrofits pre-trained attention-based language models with hierarchical neural memory modules that update parameters at test time, according to a paper posted to arXiv (2610.19210v1). On Llama-3.2-1B-Instruct, Titan-Llama raised accuracy over segmented attention windows from 23.87% to 40.51% on QuALITY and from 14.50% to 40.75% on LongHealth, while inference benchmarks showed more than 20% faster prefill, 37% faster decode at medium context lengths, and 24% lower steady-state decode memory usage. The authors released the code on GitHub, describing the approach as a practical route to adapting pre-trained transformers for efficient long-context inference.

by read1 min views1 publishedOct 15, 2026

arXiv:2610.19210v1 Announce Type: new Abstract: Transformers are efficient to pre-train at scale because attention permits parallel computation across sequence positions, but long-context inference requires increasingly large KV caches. Efficient recurrent alternatives reduce the asymptotic complexity of inference, but their sequential dependence limits token-wise parallelism during training, making them harder to scale. Further, the current paradigm of extending long context tasks creates competing notions of retaining information precisely and keeping long-context inference efficient. To address this gap, we introduce Titan-Llama, a post-training method for retrofitting attention-based language models with a hierarchical memory architecture that updates parameters at test-time. Titan-Llama applies a blockwise attention mask and preserves full-fidelity attention over recent tokens while compressing historical context into recurrent, fixed-size neural memory modules (NMMs). Our formulation allows pre-trained attention layers to be replaced without training a new language model from scratch. On Llama-3.2-1B-Instruct, Titan-Llama raises accuracy over segmented attention windows from 23.87% to 40.51% on QuALITY and from 14.50% to 40.75% on LongHealth. Inference benchmarks show more than 20% faster prefill, 37% faster decode at medium context lengths, and 24% lower steady-state decode memory usage in the evaluated configurations. Together, these results demonstrate that incorporating memory architecture mechanisms that utilize test-time training effectively modulates long-context behavior of pre-trained models, offering a practical route to adapting pre-trained transformers for efficient long-context inference. Our code is released on Github \href{https://github.com/sarahpannn/titans-pytorch/tree/main}{GitHub}

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @titan-llama 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/titan-llama-retrofit…] indexed:0 read:1min 2026-10-15 · —