Tom Aarsen's Ettin Rerankers Beat 500M Models at 17M Parameters
A new family of six open cross-encoder rerankers built on Ettin ModernBERT distills a 1.5B teacher into models from 17M to 1B parameters.
ProTakeaways
- Six new open cross-encoder rerankers from 17M to 1B params, all Apache 2.0, released on Hugging Face.
- Built on Ettin ModernBERT encoders with native 8192 token context support.
- Distilled from mxbai-rerank-large-v2 using pointwise MSE on ~143M teacher-scored triples.
- 17M model beats every ms-marco-MiniLM variant on MTEB while running nearly 2x faster than L6-v2.
- 1B student matches 1.54B teacher within 0.0001 NDCG@10 at 2.4x throughput on an H100.
- Full training data and 150-line recipe published for reproducible fine-tuning on custom domains.
The reranker slot in the retrieval stack has been running on aging infrastructure for years. The MS MARCO MiniLM cross-encoders that ship as the default in most retrieve-then-rerank pipelines date to 2021, and they still pull millions of downloads a month because nothing small and open has meaningfully replaced them. A new family of six drop-in replacements changes that.
Tom Aarsen has released six Sentence Transformers CrossEncoder rerankers, along with the full training data and recipe. The models are built on the Ettin ModernBERT encoders from Johns Hopkins, and they range from 17M to 1B parameters. All are Apache 2.0 licensed, support up to 8K token context, and work out of the box with three lines of Sentence Transformers code.
Six sizes, one recipe
The lineup shares one architecture and one training recipe. Only the learning rate and batch size change between models:
cross-encoder/ettin-reranker-17m-v1(17.6M params, 256 hidden, 7 layers)cross-encoder/ettin-reranker-32m-v1(32.8M params, 384 hidden, 10 layers)cross-encoder/ettin-reranker-68m-v1(68.6M params, 512 hidden, 19 layers)cross-encoder/ettin-reranker-150m-v1(150.9M params, 768 hidden, 22 layers)cross-encoder/ettin-reranker-400m-v1(401.6M params, 1024 hidden, 28 layers)cross-encoder/ettin-reranker-1b-v1(1.00B params, 1792 hidden, 28 layers)
A reranker is a neural model that takes a (query, document) pair and outputs a single relevance score. Because that joint encoding is expensive, the standard pattern is to retrieve top-K candidates with a fast embedding model and then re-order just those K with a cross-encoder. The design goal for this family is a clean Pareto frontier across that workload.
Why the numbers matter
The interesting comparison is against the legacy MiniLM cross-encoders that most production stacks still ship. On MTEB(eng, v2) Retrieval, averaged across six embedder pairings, the new 17M model scores 0.5576 NDCG@10 versus 0.5066 for ms-marco-MiniLM-L12-v2 (33M) and 0.4979 for ms-marco-MiniLM-L4-v2 (19M). The 32M variant beats the 568M BAAI/bge-reranker-v2-m3 at roughly a seventeenth of the parameter count.
Moving up, the 150M edges out Qwen3-Reranker-0.6B at about a quarter of its size, and the 1B lands within 0.0001 NDCG@10 of its 1.54B teacher. The compressed picture on MTEB(eng, v2) Retrieval:
| Model | Params | MTEB NDCG@10 |
|---|---|---|
| Qwen3-Reranker-4B | 4.02B | 0.6367 |
| mxbai-rerank-large-v2 (teacher) | 1.54B | 0.6115 |
| ettin-reranker-1b-v1 | 1.00B | 0.6114 |
| ettin-reranker-400m-v1 | 401M | 0.6091 |
| ettin-reranker-150m-v1 | 151M | 0.5994 |
| ettin-reranker-68m-v1 | 68.6M | 0.5915 |
| ettin-reranker-32m-v1 | 32.8M | 0.5779 |
| ettin-reranker-17m-v1 | 17.6M | 0.5576 |
| ms-marco-MiniLM-L12-v2 | 33.4M | 0.5066 |
| ms-marco-MiniLM-L4-v2 | 19.2M | 0.4979 |
Small and fast at the same time
Throughput usually cuts the opposite way from quality, but the 17M model wins on both axes. On an H100 at bf16 with Flash Attention 2, it hits 7517 query-document pairs per second, versus 4029 for ms-marco-MiniLM-L4-v2 and 3817 for ms-marco-MiniLM-L6-v2. On a consumer RTX 3090, the 17M pushes 9008 pairs per second, higher than its H100 number because at that size raw compute is not the bottleneck.
Two engineering choices explain the speed gap against other ModernBERT-based rerankers at the same size. First, the backbone is loaded through AutoModel rather than AutoModelForSequenceClassification, which lets the modular Transformer propagate unpadded inputs through every layer instead of running dense compute on padding tokens. Second, the classification head is a four-module stack (CLS pooling, GELU dense, LayerNorm, linear score) built from Sentence Transformers modules. The recommended configuration is straightforward:
from sentence_transformers import CrossEncoder
model = CrossEncoder(
"cross-encoder/ettin-reranker-150m-v1",
model_kwargs={
"dtype": "bfloat16",
"attn_implementation": "flash_attention_2",
},
)
scores = model.predict([
("Where was Apple founded?", "Apple Inc. was founded in Cupertino in 1976."),
("Where was Apple founded?", "The Fuji apple is a cultivar from the 1930s."),
])
Compared to fp32+SDPA, the bf16+FA2+unpadded configuration runs 1.7x faster on the 17M and 8.3x faster on the 1B. Most of that gain comes from bf16 itself. FA2 with padded inputs, which is what you get if you just flip a flag on a wrapped model, is actually slower than plain bf16+SDPA at every size because the kernel pays bookkeeping cost without benefit.
The training recipe is the story
All six models sit on a clean Pareto curve because they were trained the same way: pointwise MSE distillation from a strong teacher, no contrastive loss, no hard-negative mining tricks per size.
- Teacher:
mixedbread-ai/mxbai-rerank-large-v2(1.54B). - Loss: MSE on the teacher's raw logits, roughly in the range -12 to 22, without rescaling.
- Data: about 143M (query, document, teacher_score) triples assembled from LightOn's pre-training and fine-tuning corpora, released as
cross-encoder/ettin-reranker-v1-data. - Duration: one epoch, with the same warmup and eval schedule across all sizes.
The argument against the traditional recipe is practical. Human-labeled triples are expensive, produce false positives when combined with hard-negative mining, and reduce a continuous notion of relevance to a binary label. Distilling raw teacher scores skips all of that. The student inherits the teacher's calibration and judgement, and the same simple loss scales from 17M to 1B without per-size tuning beyond the learning rate.
The full training script is around 150 lines. Every model in the family was produced by changing a single ENCODER_SIZE variable. To train a stronger reranker in your own domain, point the same script at your data and swap in a better teacher.
Long context, thanks to ModernBERT
The six backbones come from the Ettin encoder suite from Johns Hopkins, ModernBERT-style models with unpadded attention, RoPE positional encodings, and GeGLU activations, pretrained on 2T tokens of open-license data. They natively support 8192-token context, a genuine change from the MS MARCO MiniLM family, which caps at 512 tokens and forces long documents to be chunked before reranking.
The practical implication is that these models can rerank long documents whole, or rerank sections of research papers, contracts, and code without the artifacts introduced by aggressive truncation.
What this changes for retrieval stacks
If you have a retrieve-then-rerank pipeline built on any MS MARCO MiniLM cross-encoder, the 17M or 32M is a one-line swap that improves both quality and latency. If you have been reaching for a 500M-plus reranker for accuracy, the 150M matches or beats most of that tier while running roughly twice as fast as its 150M ModernBERT peers Alibaba-NLP/gte-reranker-modernbert-base and ibm-granite/granite-embedding-reranker-english-r2. If you were running the 1.54B mxbai-rerank-large-v2, the 1B student is 2.4x faster on an H100 while sitting within 0.0001 of the teacher on MTEB.
The broader signal is that the reranker frontier is now dominated by ModernBERT-family backbones and open distillation recipes. Cross-encoders trained years ago on binary MS MARCO labels are no longer the strong default. If you maintain a retrieval system, this is a good moment to re-benchmark the reranker slot against the new family and decide whether the legacy default still earns its keep.