AI summary · arXiv: 2501.00663v1 · cs.LG

Titans: Learning to Memorize at Test Time

Ali Behrouz, Peilin Zhong, Vahab Mirrokni

Original paper · DOI Submitted to arXiv on 31 Dec. 2024 License: CC BY 4.0

How to read this summary? Illustrated guide

The essentials

  • Novel approach to designing a long-term neural memory module
  • Prioritization of events that violate expectations for better memorization
  • Introduction of a decaying mechanism to manage limited memory capacity
  • Optimization of meta neural network with mini-batch gradient descent, momentum, and weight decay
  • Titans architecture with three hyper-heads: Core, Long-term Memory, and Persistent Memory
  • Three variants of Titans incorporating memory as context, layer, or gated branch
  • Experimental evaluations demonstrating superiority over modern recurrent models and hybrid variants
  • Outperformance of Transformers in various tasks and context window sizes
  • Training procedures involving LLama 2 tokenizer, AdamW optimizer, cosine annealing schedule, batch size, and weight decay settings
  • Superior performance of the neural memory module in Titans compared to other models including Transformer++

Key points written by AI: they may contain errors, check them against the paper.

AI-generated keywords: Neural Memory Module Titans Architecture Long-Term Memory Decaying Mechanism Experimental Evaluations

Read further

  • Comprehensive Summary
  • Layman's Summary
  • Blog article
  • Original abstract
This paper presents a novel approach to designing a long-term neural memory module that can effectively learn to memorize at test time and incorporate it into an architecture. Inspired by human long-term memory systems, the neural memory module prioritizes events that violate expectations, making them more memorable. A decaying mechanism is introduced to better manage limited memory capacity by considering the proportion of memory size and data surprise. This mechanism optimizes a meta neural network with mini-batch gradient descent, momentum, and weight decay. The Titans architecture consists of three hyper-heads: Core for short-term memory processing using attention with a limited window size, Long-term Memory for storing long past information, and Persistent Memory for encoding task-independent knowledge. Three variants of Titans incorporate memory as context, layer, or gated branch. Experimental evaluations on various tasks demonstrate the superiority of Titans over modern recurrent models and hybrid variants. They also outperform Transformers with the same context window size and show competitive performance with Transformers using the entire context while scaling effectively to larger than 2M context window sizes. The training procedures involve using LLama 2 tokenizer with a vocabulary size of 32K and training length of 4K tokens. AdamW optimizer with a learning rate of 4𝑒-4 and cosine annealing schedule are employed with a batch size of 0.5M tokens and weight decay of 0.1. In language modeling tasks focusing on perplexity and accuracy measures, the neural memory module in Titans outperforms other models including Transformer++, showcasing the importance of weight decay and momentum in achieving superior performance.

Was this synthesis useful?

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Figures and plots

Ask about a figure by number or use its question button to request visual analysis. Up to two figures and four image panels per question. Values read from plots are approximate; check the original data.

AI assistant instructions?

Tools for this paper

Explain it differently 3 free rewrites left today
Save to a collection Group papers in collections to compare them, chat with them and export them. Create a free account Log in

Advanced tools Premium

For researchers who follow a field closely: citation alerts, journal-club slides, version comparison and Zotero export. Discover Premium

Zotero
Citation alerts
Journal club Premium+ Slides to present it
Talk about it in public Premium+ Press kit: release, questions, hype check

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.