Article Complete
AIM
Google Unveils Gecko, a Versatile Text Embedding Model Distilled from Large Language Models
Google Unveils Gecko, a Versatile Text Embedding Model Distilled from Large Language Models
Synthetic Serenade

Google Unveils Gecko, a Versatile Text Embedding Model Distilled from Large Language Models

Gecko is trained on an LLM-generated synthetic dataset FRet that contains LLM-ranked positives and negatives.

Published Updated

Key takeaways

  • Google introduces Gecko, a versatile text embedding model leveraging large language models for enhanced performance.
  • Gecko employs a two-step distillation process to generate high-quality, synthetic training data for embeddings.
  • The model enables improved natural language processing tasks like document retrieval and classification using fewer resources.
  • Gecko aims to consolidate multiple embedding tasks into a single, efficient model, enhancing usability.
  • LLMs' vast knowledge supports Gecko's ability to learn effectively from diverse data sources.
5 min

Google has announced Gecko, a compact and versatile text embedding model powered by the vast world knowledge of large language models (LLMs). 

Text embedding models represent natural language as dense vectors, positioning semantically similar text near each other within the embedding space. Or in simple terms, text embedding models are like translators for computers. They take text and convert it into numbers in a way the computer can understand.

The numerical representations, also known as embeddings, capture semantic information about the words or sentences in the text. By allowing computers to process natural language, these embeddings are used to carry out a wide range of downstream tasks including document retrieval, sentence similarity, classification, and clustering. 

Instead of building separate embedding models for each downstream task, there has been a push for creating a single model that can support many tasks. However, such general-purpose text embedding models require large amounts of training data to comprehensively cover desired domains and skills. This is where LLMs can be leveraged, as done by Google in this research. 

“LLMs contain vast knowledge across various domains and are known to be exceptional few-shot learners”. Google’s approach leverages insights from knowledge distillation to create Gecko, a two-step LLM-powered embedding model. 

“Our two-step distillation process begins with generating diverse, synthetic paired data using an LLM. Next, we further refine the data quality by retrieving a set of candidate passages for each query, and relabeling the positive and hard negative passages using the same LLM.” 

So basically, starting with a large corpus of unlabeled passages, the team used a few-shot prompted LLM to generate a relevant task and query for each passage. They then embedded the concatenated task and query using a pretrained embedding model to obtain nearest neighbor passages, used an LLM to rerank the passages, and obtained positive and negative passages based on the LLM scores. This approach helped Gecko achieve strong retrieval performance. 

The research showed that training Gecko on an LLM-generated synthetic dataset, FRet, containing LLM-ranked positives and negatives alone can lead to significantly improvement, setting a strong baseline as a zero-shot embedding model on the Massive Text Embedding Benchmark (MTEB).

“By combining this LLM-generated and LLM-ranked data with human-annotated data, our model, Gecko-1B with 768-dimensional embeddings, achieves the best performance on the popular MTEB benchmark among the models with compatible embedding dimensions and model sizes. It achieves an average score of 66.31, competing with 7x larger models and 5x higher dimensional embeddings”, the research mentioned. 

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.