AI Cloud Architect

Gemma explained: EmbeddingGemma Architecture and Recipe

GoogleHow-to by Henrique Schechter Vera, Juyeong Ji and Sahil DuaGoogle Developers Blog

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Explains how EmbeddingGemma was built from a Gemma 3 model, how it forms embeddings with mean pooling and projections, its three training losses, and its training stages.

Who it is for

Engineers choosing or training a text embedding model for search or RAG who want to understand how EmbeddingGemma works.

Key points

  • Starts from a 300M parameter Gemma 3 model, adapted to an encoder-decoder and initialized from the encoder.
  • Outputs 768-dimensional embeddings; Matryoshka training allows truncation to 512, 256 or 128 dimensions.
  • Quantization-aware training provides int4 and mixed-precision versions with reduced memory footprint.

Timeline

  1. Earlier stepIntroducing EmbeddingGemma: The Best-in-Class Open Model for On-Device Embeddings · Google · Announcement
  2. This postGemma explained: EmbeddingGemma Architecture and Recipe
  3. Later stepBring multimodal semantic search to the edge with EmbeddingGemma 2 · Google · AnnouncementAlso published by Google Developers Blog, Google AI (The Keyword), Google DeepMind Blog
  4. Later stepRead the EmbeddingGemma 2 technical report. · Google · Announcement