Ettin Reranker from Hugging Face: 6 Models for Precise Search Reranking

Hugging Face introduced Ettin Reranker — a family of 6 rerankers ranging from 17 million to 1 billion parameters. The models are built on ModernBERT and trained using distillation on 143 million examples. The models leverage Flash Attention 2 for acceleration and advanced optimization techniques. The most compact version runs 19 times faster than a major competitor while losing only 0.5% in accuracy, making it practical for resource-constrained applications.

AI-processed from Hugging Face Blog; edited by Hamidun News
Ettin Reranker from Hugging Face: 6 Models for Precise Search Reranking
Source: Hugging Face Blog. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHugging Face Blog ↗
Editor-in-Chief
First stepa fast embedding model retrieves the top-K candidates
Second stepthe reranker re-sorts these K candidates with high precision
Resultbetter quality without excessive computational costs

Hugging Face released a family of 6 Ettin rerankers based on ModernBERT architecture. These state-of-the-art models are designed for secondary reranking of search results, trained using distillation from a larger model.

What is a Reranker

A reranker (cross-encoder) is a special class of models that takes a pair (query, document) as input and outputs a single relevance score. The key difference from standard embedding models: a reranker encodes both sequences jointly, allowing them to see each other through all transformer layers. This makes rerankers much more accurate but also computationally expensive.

How It Works in Practice

Standard search uses a retrieve-then-rerank pattern:

  • First step: a fast embedding model retrieves the top-K candidates
  • Second step: the reranker re-sorts these K candidates with high precision
  • Result: better quality without excessive computational costs

This pattern is more efficient than running the reranker on the entire corpus. Ettin models are trained specifically for this scenario.

Architecture and Optimizations

All models in the family use ModernBERT as a foundation with several key optimizations:

  • Flash Attention 2 for attention acceleration
  • Unpadded sequences — each layer sees only actual tokens
  • CLS pooling instead of mean pooling (proven more accurate in ablation)
  • Special architecture: Transformer → Pooling → Dense layer → LayerNorm → Dense layer

Unpadded sequences provide a particular boost. Thanks to this, the 150M model runs 2.3 times faster than two other 150M models based on ModernBERT. The overall acceleration from bf16 + Flash Attention + unpadding reaches 1.7–8.3x depending on model size.

Performance in Numbers

On the MTEB(eng, v2) benchmark, even the compact versions impress:

  • 17M version processes 7517 pairs per second (on H100)
  • 32M — 6602 pairs per second
  • 150M — 3237 pairs per second (2.3x faster than competitors)
  • 1B version runs 2.4x faster than the teacher model (1.54B)

This means that for most applications, there is a version that is both fast and accurate.

What This Means

Ettin Reranker makes high-precision search more accessible. The compact versions allow reranking to be integrated even in applications with limited computational resources, while the larger versions compete with state-of-the-art. Distillation on open data means anyone can reproduce the results and train their own version.

Story

Key Questions Answered

What is a Reranker?

A reranker (cross-encoder) is a special class of models that takes a pair (query, document) as input and outputs a single relevance score. The key difference from standard embedding models: a reranker encodes both sequences jointly, allowing them to see each other through all transformer layers. This makes rerankers much more accurate but also computationally expensive.

How It Works in Practice?

Standard search uses a retrieve-then-rerank pattern: First step: a fast embedding model retrieves the top-K candidates Second step: the reranker re-sorts these K candidates with high precision Result: better quality without excessive computational costs This pattern is more efficient than running the reranker on the entire corpus. Ettin models are trained specifically for this scenario.

What are the key details on Architecture and Optimizations?

All models in the family use ModernBERT as a foundation with several key optimizations: Flash Attention 2 for attention acceleration Unpadded sequences — each layer sees only actual tokens CLS pooling instead of mean pooling (proven more accurate in ablation) Special architecture: Transformer → Pooling → Dense layer → LayerNorm → Dense layer Unpadded sequences provide a particular boost. Thanks to this, the 150M model runs 2.3 times faster than two other 150M models based on ModernBERT. The overall acceleration from bf16 + Flash Attention + unpadding reaches 1.7–8.3x depend

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Private AI Builders Community · Vibe Club

Ship AI Faster with Founders, Engineers & Weekly Architecture Reviews

Inside Vibe Club (hamidun.com/club) — weekly live masterminds with Zhemal Khamidun, Tech Radar, full LMS access, and 370+ production Claude Code skills.

Join Vibe Club →Explore Hamidun Academy
What do you think?
Loading comments…