How TITANS adds long term memory to AI models

TL;DR
TITANS introduces a memory framework that lets AI models memorize at test time, not just during training. It uses three memory types—core short term, long term, and persistent memory—to handle dependencies beyond standard context windows. A surprise-based memory update helps retain important information while scaling to very large context sizes.
Transcript
Google research just dropped a new paper that might be the successor to the seminal attention is all you need paper that started this entire new AI wave this paper details an approach called Titans which details a way to give models memory much more akin to how human memory works with long-term memory and it happens during inference time with an in... Read More
Key Insights
- TITANS adds a multi memory architecture with core short term memory, long term memory, and persistent memory to extend context beyond traditional transformers.
- The approach models memory updates at test time during inference, enabling the model to memorize information without retraining.
- A surprise-based memory mechanism prioritizes memorable events, causing high initial attention that decays over time to manage memory resources.
- Long term memory encodes past history into model parameters, effectively storing abstractions of earlier information.
- Persistent memory stores task knowledge as learnable parameters that are independent of input data, aiding reproducibility and quick recall.
- Three architectural variants offer different trade offs between memory size, latency, and accuracy, allowing tailored deployments.
- The Titans framework targets a quadratic cost in context handling and seeks to mitigate it by memory augmentation rather than brute force scaling.
- Results indicate Titans can scale to context windows larger than 2 million tokens while maintaining or improving accuracy across benchmarks.
Install to Summarize YouTube Videos and Get Transcripts
Explore YouTube Video Summarizer or Get YouTube Transcript Extractor
Questions & Answers
Q: What is TITANS and how does it differ from standard transformers?
TITANS is a family of deep models that introduces three memory modules—core short term memory, long term memory, and persistent memory—to store and manage information across very long input sequences. Unlike standard transformers, which rely on fixed context windows with quadratic time and memory costs, TITANS uses memory updates at test time to retain important information. This design aims to model dependencies more accurately, allow context windows to grow beyond traditional limits, and reduce reliance on retraining for new data.
Q: How does test time memorization work in TITANS?
Test time memorization refers to updating the model’s memory representations during inference rather than only during pretraining. TITANS encodes past history into a long term memory module that learns which past events to store and recall during the current prompt. This mechanism enables the model to remember relevant information across long interactions, improving handling of long range dependencies while avoiding unnecessary updates to parameters that would slow inference.
Q: What role does the surprise mechanism play in TITANS memory?
The surprise mechanism makes events that violate expectations more memorable. When something unexpected occurs, the model increases its memory allocation to that event, creating a stronger memory trace. Over time, memory decay reduces the emphasis on these events, balancing the memory load. This mirrors human memory dynamics and helps the model prioritize information that is likely to be useful for future prompts.
Q: What are the three memory components in TITANS?
The three memory components are core memory for the immediate flow of data, long term memory for storing abstractions of past history, and persistent memory which captures task knowledge as learnable parameters independent of specific inputs. Together, they enable short term processing, long term retention, and stable knowledge that can be reused across tasks and prompts.
Q: What are the variants of TITANS and their trade offs?
TITANS offers three variants with different balances of speed, memory capacity, and accuracy. One variant emphasizes dense memory for high accuracy with potentially higher latency. Another focuses on lighter memory usage for faster inference with some trade off in memory depth. The third balances the two to fit practical deployment constraints, enabling scalable long context processing.
Q: How does TITANS handle very large context windows like millions of tokens?
TITANS scales context handling by augmenting the model with a dedicated memory system rather than relying solely on the transformer’s fixed attention. The memory modules store and retrieve information during inference, effectively expanding the usable context. This approach allows the model to recall relevant past information without suffering the quadratic costs of expanding attention over all tokens.
Q: What domains were tested to evaluate TITANS?
The paper reports experiments across language modeling, common sense reasoning, genomics, and time series tasks. In these domains, TITANS demonstrated improved efficiency and accuracy compared with baselines while enabling context windows larger than traditional limits. These results suggest broader applicability for long range dependencies across diverse data types.
Q: Why is memory at test time considered advantageous for AI models?
Test time memory allows models to adapt to new information without full retraining, reducing downtime and computational cost. By updating memory representations during inference, the model can remember relevant recent inputs and apply that knowledge to future prompts. This dynamic memory mechanism can improve performance on tasks requiring long term dependencies and fast adaptation to new data.
Summary & Key Takeaways
-
TITANS places memory modules between input processing and output generation to enable long term retention, addressing the restricted context window in traditional Transformers. The architecture comprises core, long term, and persistent memory with multiple variants to balance speed, accuracy, and memory capacity. Experimental results show improved performance on long context tasks.
-
The system emphasizes test time memorization, meaning updates occur during inference rather than only during pretraining. It introduces a surprise mechanism to prioritize memorable events, decaying importance over time, which aligns with human-like memory dynamics and improves efficiency in handling large sequences.
-
Overall, TITANS represents a structured approach to augmenting AI with multi-layer memory, achieving larger effective context windows while maintaining performance across language modeling, reasoning, and time series tasks.
Read in Other Languages (beta)
Share This Summary 📚
Summarize YouTube Videos and Get Video Transcripts with 1-Click
Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator
Explore More Summaries from Matthew Berman 📚






Summarize YouTube Videos and Get Video Transcripts with 1-Click
Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator