Article complete

Google’s New AI Architecture ‘Titans’ Can Remember Long-Term Data

Titans are more effective than Transformers and modern linear RNNs.

Modern Google building exterior with the logo prominently displayed, surrounded by greenery and clear blue skies.

Key takeaways

  • Google's Titans architecture enhances long-term memory capabilities in AI systems.
  • Titans outperform Transformers and RNNs in processing long sequences of data.
  • Achieved exceptional results on the BABILong benchmark, exceeding GPT-4 and Llama3 models.
  • Titans are built using Pytorch and JAX, with code release planned for future access.
  • Researchers aim to solve traditional AI challenges by integrating short-term and long-term memory.

Takeaways drafted with AI from the article text.

The architecture, created by researchers Ali Behrouz, Peilin Zhong, and Vahab Mirrokni, has been designed to combine short-term and long-term memory to solve problems traditional AI struggles with. 

“Titans are implemented in Pytorch and JAX, and we intend to make the code we used to train and evaluate our models available soon,” the researchers mentioned in the official paper. 

Better Than Transformers

The researchers tested Titans on tasks such as language modelling, long-term reasoning, and time series forecasting. It outperformed existing architectures like Transformers and Recurrent Neural Networks (RNNs), which demonstrated its ability to process long sequences more efficiently.

On the BABILong benchmark, the Memory as Context (MAC) variant achieved exceptional results. “Titans are more effective than Transformers and modern linear RNNs,” Behrouz announced on X. 

The development could benefit applications like document analysis, time series forecasting, and genomics. By combining long-term memory with current data, Titans may improve machine learning systems’ ability to solve complex, real-world problems.

This architecture ensures balanced processing of recent and historical data and overcomes limitations in handling long sequences.

How Does it Work?

Horneman took to LinkedIn to give his insights on the key differences between traditional standard attention mechanisms and Titans. 

Transformers are effective for short-term tasks but require significant computing power for longer contexts. Newer models are faster but often lose important details over time. 

Titans combine attention mechanisms with a neural long-term memory module, enabling the model to memorise and utilise information during test time. 

The Titans architecture introduces a neural memory module that learns what to remember and what to forget during real-time operations. This approach allows it to handle millions of data points without losing accuracy.

Titans introduce three architectural variants: MAC, Memory as Gating (MAG), and Memory as a Layer (MAL). 

In the MAC configuration, Titans segment inputs, even those as large as context windows in current LLMs, retrieve historical memory for relevant segments and update the memory based on attention outputs. Each variant has strengths and is suited for different tasks.

Behrouz explained that Titans’ innovation lies in mimicking human memory. While our short-term memory is highly accurate but limited to brief windows, Titans rely on other memory systems to store information for the long term. 

Similarly, Titans use attention as short-term memory for immediate dependencies and a neural memory module as long-term memory to capture distant dependencies. This design effectively balances recent and historical data.

Drawing further inspiration from how humans prioritise memorable events, Titans determine which tokens to store based on their ‘surprise’ value. 

Events that violate expectations trigger attention, but the initial surprise and the cumulative decay of relevance over time drive long-term memorisation.

Published

Spotted an error? Tell our editors. Read our editorial standards and corrections.

Selling to AI teams? Put your brand in front of the 5M+ people who read AIM every month. Plan a campaign

About the author

Technology Journalist

All stories
Belamy · Daily

The day’s AI news, before your first meeting.