Granite Embedding Models

Parul Awasthy, Aashka Trivedi, Yulong Li, Mihaela A. Bornea, David Cox, Abraham Daniels, Martin Franz, Gabe Goodhart, Bhavani Iyer, Vishwajeet Kumar, Luis A. Lastras, J. Scott McCarley, Rudra Murthy, Vignesh P, Sara Rosenthal, Salim Roukos, Jaydeep Sen, Sukriti Sharma, Avirup Sil, Kate Soule, Md. Arafat Sultan, Radu FlorianarXiv 2025 · DOI

Abstract

IBM Research has introduced the Granite Embedding Models, a family of efficient, encoder-based models designed specifically for high-performance retrieval. Released under the permissive Apache 2.0 license, these models span dense and sparse architectures for both English and Multilingual tasks. By leveraging advanced distillation techniques from large-scale decoders, the Granite family outperforms many popular open-source alternatives while remaining small enough for low-latency enterprise deployment.

Introduction

While Large Language Models (LLMs) can generate high-quality text embeddings, using them for retrieval at scale is often impractical due to massive memory footprints and high inference latency. Consequently, smaller "encoder-only" models (like BERT or RoBERTa) remain the industry standard for production search and RAG (Retrieval-Augmented Generation) systems.

However, many existing high-performing encoder models are trained on datasets with restrictive, non-commercial licenses (such as MS-MARCO). Furthermore, there is a constant trade-off between model size (accuracy) and speed (latency). The Granite team sought to build a family of models that are commercially "clean," highly efficient, and capable of handling both dense and sparse retrieval across multiple languages.

Methodology

The Granite family utilizes several sophisticated training strategies to achieve high performance within a compact parameter budget. The English models are based on RoBERTa, while multilingual models use XLM-RoBERTa. They offer two main sizes: a "base" 12-layer version and a "distilled" 6-layer version for ultra-low latency.

Architectural specifications for the Granite Embedding model family.

Key Training Innovations

  • Retrieval-Oriented Pretraining (RetroMAE): Instead of standard masked language modeling, the models use an asymmetric workflow where a moderately masked input is used to reconstruct an aggressively masked version, forcing the model to capture deeper semantic meaning.
  • Knowledge Distillation from Decoders: A standout technique involved using a Mistral-7B-Instruct-v0.2 model as a "teacher." The team distilled the teacher's similarity score distributions into the smaller Granite encoders, allowing them to mimic the reasoning capabilities of a 7-billion-parameter model.
  • Model Merging: To balance general-purpose performance with specialized domain knowledge, the authors used model merging techniques to combine specialized checkpoints without losing general accuracy.
  • Sparse Retrieval: For the sparse model, a novel NORM loss was implemented alongside standard FLOPs regularization to ensure efficient, weighted bag-of-words representations.

Data Strategy

The models were trained on a mix of curated, high-quality data, notably excluding MS-MARCO to ensure a commercially friendly license. Training data included:

  • Public Data: Wikipedia, StackExchange, Arxiv, PubMed, and various QA pairs (NQ, SQuAD, HotpotQA).
  • Synthetic Data: LLMs were used to generate high-quality multilingual queries for Wikipedia paragraphs in 12 target languages.
  • Internal Benchmarks: Evaluation included standard public benchmarks like BEIR and MTEB, alongside internal IBM datasets like ClapNQ and Red Hat Query Retrieval to test enterprise-specific performance.

Performance Evaluation

The Granite models demonstrate competitive accuracy and superior speed compared to established baselines. On the BEIR benchmark, the granite-embedding-125m-english model achieved an nDCG@10 of 52.3, outperforming e5-base-v2 (50.3) and performing comparably to bge-base-en-v1.5.

Average performance of Granite Embedding models compared to open-source alternatives across five datasets.

Key Results

  • Efficiency: The 30M English model offers a ~4x speedup over the 125M version with minimal decay in retrieval accuracy. It clocks in at just 0.16 seconds per query on a single A100 GPU.
  • Internal Superiority: On IBM-specific enterprise tasks, Granite models consistently outperformed Nomic, BGE, and E5 models.
  • Zero-Shot Code Retrieval: Despite no specific code training, the models showed strong performance on the COIR benchmark, outperforming similar-sized models.

Conclusion and Future Work

The Granite Embedding Models prove that high-quality synthetic data and smart distillation can match or exceed the performance of models trained on license-restricted datasets. While the multilingual models currently lag slightly in Chinese-specific tasks due to the exclusion of certain datasets, the team plans to expand the high-performance language list and refine synthetic data generation in future updates. These models represent a significant step forward for commercially viable, low-latency enterprise search solutions.

Summary updated

BibTeX
@misc{awasthy2025granite,
  author = {Parul Awasthy and Aashka Trivedi and Yulong Li and Mihaela A. Bornea and David Cox and Abraham Daniels and Martin Franz and Gabe Goodhart and Bhavani Iyer and Vishwajeet Kumar and Luis A. Lastras and J. Scott McCarley and Rudra Murthy and Vignesh P and Sara Rosenthal and Salim Roukos and Jaydeep Sen and Sukriti Sharma and Avirup Sil and Kate Soule and Md. Arafat Sultan and Radu Florian},
  title = {{Granite Embedding Models}},
  year = {2025},
  eprint = {2502.20204},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.20204},
}
Figure