Google Research has presented two research papers, Titans and MIRAS, focused on memory in artificial intelligence models. Their authors investigate how systems can retain important information when processing long documents, conversations, and data streams without relying solely on revisiting or compressing previous context.
Titans proposes a specific family of models with a long-term memory module. MIRAS, in turn, provides a more general framework for designing and comparing sequence models in which memory is treated as a manageable component.
Why long contexts are challenging
Language models can access previous tokens through an attention mechanism. However, as the volume of text grows, repeatedly processing previously encountered information becomes increasingly computationally demanding.
Another approach is to compress past context into an internal representation and pass it forward. This helps limit computational costs, but compression can eliminate details that may be needed later.
Both papers consider an alternative: memory that the model can update as it processes data. The goal is to select information to retain, rather than simply review past text or condense it into a compact state.
Titans: long-term memory updated during processing
In Titans, the long-term memory module is a deep neural network that learns as data arrives. The researchers designed it to retain more complex information than a simple, fixed-size summary of past context.
To select information, the architecture uses a ‘surprise’ metric. It reflects the discrepancy between what the model already remembers and new data. This signal helps determine which information should be selected for long-term storage.
A second mechanism, momentum, sustains attention to the surrounding sequence after the initial signal. This allows the model to store details associated with a surprising event, even if none of them individually produces a strong signal.
Finally, adaptive forgetting gradually weakens old or less useful information, making room for new information. Together, these mechanisms determine what to notice, how much related data to retain, and what to forget over time.
Titans is presented not as a complete replacement for existing architectures, but as an additional mechanism that can be combined with them. Its purpose is to improve the handling of long contexts without having to revisit the entire previous input each time.
MIRAS: a framework for designing models with memory
MIRAS examines sequence models through the lens of associative memory: the system learns to establish connections between pieces of data, while an internal objective function determines how those connections are formed.
The authors identify four key design choices for such a model. The first is the memory structure, ranging from simple vectors to the deep multilayer perceptrons used in Titans. The second is the objective function, or attention prioritization mechanism, which determines how memory highlights and connects incoming information.
The third choice concerns memory stability and retention: learning new data must be balanced with preserving the previous state. The fourth is the memory update algorithm, such as gradient descent methods that allow the model to learn during testing.
This framework makes it possible to examine different architectures through common principles of storing, matching, and updating information. MIRAS is intended both to explain systems such as Titans and to support the development of new models.
What the tests showed
According to the researchers, in long-context tests, Titans handled sequences of more than 2 million tokens and achieved higher information retrieval accuracy than the baseline models tested.
In the BABILong test, which requires reasoning based on facts hidden in large documents, Titans outperformed larger models, including GPT-4, despite having substantially fewer parameters. This is the result of a specific test, not a reason to consider Titans better at every task.
In the MIRAS paper, the authors also presented three new sequence model variants with different strengths and weaknesses. According to their evaluation, these variants outperformed the transformers and linear recurrent neural networks they were compared with across a range of applied tasks.
The researchers’ conclusions
The Titans paper shows how combining local context processing with separate long-term memory can help handle long inputs. The authors of MIRAS propose a more general foundation for designing and comparing systems capable of managing memory.
The Google publication also connects this research to ideas from online optimization and associative memory. The results suggest that managed memory is promising for long contexts, although the comparisons presented apply to specific models and tests.
Discussion
Sign in or create an account, to join the discussion.