Article Complete
AIM
Google Unveils RecurrentGemma, Moves Away From Transformer Based Models
Google Unveils RecurrentGemma, Moves Away From Transformer Based Models
Attention Shifted, Again

Google Unveils RecurrentGemma, Moves Away From Transformer Based Models

Griffin architecture achieves faster inference for long sequences by using a mix of local attention and linear recurrences, replacing global attention.

Published Updated

Key takeaways

  • Google introduces RecurrentGemma, a new language model based on the innovative Griffin architecture.
  • Achieve faster inference for long sequences by utilizing local attention and linear recurrences.
  • Enjoy reduced memory footprint, making it ideal for devices with limited capacity like single GPUs.
  • Experience competitive performance with fewer training tokens compared to previous models like Gemma-2B.
  • Benefit from increased throughput, enabling higher token generation per second during inference tasks.
5 min

At Google Cloud Next ’24, Google unveiled a new model RecurrentGemma 2B, a family of open-weights Language Models by Google DeepMind, based on the novel Griffin architecture. 

This architecture achieves fast inference when generating long sequences by replacing global attention with a mixture of local attention and linear recurrences.

Google released a pre-trained model with 2B non-embedding parameters, and an instruction tuned variant. Both models achieve comparable performance to Gemma-2B despite being trained on fewer tokens. RecurrentGemma-2B is pre-trained on 2T tokens in contrast, Gemma-2B was pre- trained on 3T tokens.

https://twitter.com/JeffDean/status/1777771058092966391

One of RecurrentGemma's key strengths lies in its reduced memory footprint. This feature is particularly valuable for generating longer samples on devices with constrained memory capacities, including single GPUs and CPUs. 

https://twitter.com/rohanpaul_ai/status/1777747790564589844

By optimising memory usage, RecurrentGemma empowers users to tackle more complex tasks without encountering memory bottlenecks. The efficiency gains of RecurrentGemma extend to its throughput capabilities. Thanks to its lower memory demands, this model excels at performing inference tasks with larger batch sizes. 

This translates into a significant increase in token generation per second, especially when dealing with lengthy sequences. Such enhanced throughput is a boon for tasks requiring rapid and continuous data processing.

Google also released JAX code to evaluate and fine-tune RecurrentGemma, including a specialised Pallas kernel to perform linear recurrence on TPUs. Additionally, the company provided a reference for the PyTorch implementation.

Membership

Stay ahead with AI insights.

Unlimited access to premium articles, exclusive analysis, and the stories shaping India's AI economy.

Subscribe now

AIM Americas

1190 Miraloma Way Suite P, Sunnyvale, CA 94085

AIM India

1st Floor, Sakti Statesman, Bellandur, Bengaluru – 560103

Β© 2026 AIM. All rights reserved.