Gemma explained: EmbeddingGemma Architecture and Recipe- Google Developers Blog
Sep 29, 2025Henrique Schechter Vera, Juyeong Ji, Sahil Dua

Summary
This post details the architecture and training recipe of EmbeddingGemma, a new text embedding model derived from Gemma 3. It explains how text is converted into embeddings using a transformer, pooling, and dense layers, and describes the three weighted loss functions (NCE, GOR, Geometric Embedding Distillation) used for training. It also introduces Matryoshka Representation Learning (MRL) for flexible embedding dimensionality and outlines the development recipe including encoder-decoder training, pre fine-tuning, fine-tuning, model souping, and Quantization-Aware Training (QAT).
More from the Predictive APIs and Machine Learning Integration trail
- Expanding Choice in Gemini Enterprise Agent Platform: Introducing Grounding with Parallel Web Search- Google Developers Blog
- Evolving Spec-Driven Development: Conductor Now Supports Antigravity- Google Developers Blog
- Building scalable AI agents with modular prompt transpilation- Google Developers Blog
- LiteRT.js, Google's high performance Web AI Inference- Google Developers Blog
- Gemma 4 12B: The Developer Guide- Google Developers Blog