UltraBERT-150M Reranker
A single 151,624,705-parameter reranker: 0.75 × selected original + 0.25 × 40% checkpoint, interpolated in FP32. Identical non-parameter buffers are retained. No training or doubled inference ensemble is involved. Both parents share the same architecture and initialization lineage.
Results and limitations
| 40% checkpoint contribution | NanoBEIR mean nDCG@10 ↑ | Exact Quora MSE ↓ |
|---|---|---|
| 0% | 0.677384617 | 0.821492 |
| 25% | 0.682822225 | 3.483629 |
| 50% | 0.682101090 | 3.935570 |
| 75% | 0.677651377 | 1.494638 |
| 100% | 0.672344558 | 0.431949 |
The 25% contribution was selected on the same pinned 13-task NanoBEIR suite, batch24, BF16 forward, BM25 top100 without positive injection. Parent controls reproduce the original reported nDCG values. The merge gains 0.544 points on a 0–100 scale over the better parent and improves 9/13 categories against it. This is selection-set tuning, not an independent test or a Decision Index result.
Absolute score regression becomes worse. Quora MSE is computed as the sum of per-pair squared errors divided by all 5,000 rows, and is distinct from previously reported Trainer eval_loss. This model is a ranking candidate, not an improvement in calibrated score prediction. It does not retain the strongest score from each parent in every category.
| Category | Original | 40% parent | Merged | Change vs original |
|---|---|---|---|---|
| MSMARCO | 73.24 | 72.31 | 70.79 | -2.45 |
| NFCorpus | 37.06 | 33.00 | 36.36 | -0.70 |
| NQ | 76.91 | 77.19 | 77.84 | +0.93 |
| FiQA2018 | 54.68 | 56.74 | 56.38 | +1.70 |
| Touche2020 | 58.61 | 54.64 | 60.73 | +2.12 |
| SciFact | 77.67 | 74.04 | 78.44 | +0.78 |
| HotpotQA | 93.05 | 93.33 | 93.87 | +0.82 |
| ArguAna | 69.63 | 72.05 | 69.32 | -0.31 |
| FEVER | 92.38 | 93.26 | 93.76 | +1.37 |
| DBPedia | 69.94 | 70.25 | 70.77 | +0.83 |
| ClimateFEVER | 42.57 | 44.56 | 43.71 | +1.14 |
| SCIDOCS | 40.23 | 35.04 | 39.01 | -1.22 |
| QuoraRetrieval | 94.64 | 97.65 | 96.70 | +2.06 |
Category scores above are nDCG@10 on a 0–100 scale. Full metrics, parent commit IDs, tensor-state hash, and reload check are in merge_report.json. All eight workers agreed on the selected merged state hash; fresh model loading and prediction agreement passed. The automatically generated model-card preview attempted FP32 FlashAttention and was replaced by this explicitly BF16 example.
Usage
Use the pinned versions in requirements.txt. Native UltraBERT support is required; no custom remote code is needed.
import torch
from sentence_transformers import CrossEncoder
model = CrossEncoder(
"ericlewis/ultrabert-150m-reranker",
revision="main",
device="cuda",
trust_remote_code=False,
model_kwargs={"attn_implementation": "kernels-community/flash-attn2@291664546de978ab2bb730554252e5e2c1099e4f"},
)
with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16):
scores = model.predict([
("What is the capital of France?", "Paris is the capital of France."),
("What is the capital of France?", "Berlin is the capital of Germany."),
])
print(scores)
Sort scores descending for relevance. Outputs are unbounded and are not calibrated probabilities. The parents are retained on selected-parent and checkpoint-40pct; merge-75-25 also points to this balanced merge. Backbone and tokenizer: dmis-lab/UltraBERT-150M @545ac9d9c7aece444f014ada5a1e9818132b4d35. See the parent cards for training data, architecture and early-stop provenance. No corpus examples or optimizer states are distributed.
Targeted recovery experiments
We tested intact-parent heads and head-only blends, without further training. These do not fully recover the weak categories without tradeoffs. The balanced 75/25 merge remains the default.
| Variant | Mean nDCG | MS MARCO | ArguAna | NFCorpus | SCIDOCS | Exact Quora MSE |
|---|---|---|---|---|---|---|
| control | 68.28 | 70.79 | 69.32 | 36.36 | 39.01 | 3.484 |
| enc25_head0 | 68.37 | 71.16 | 69.50 | 36.46 | 39.26 | 9.783 |
| enc25_head100 | 68.18 | 70.92 | 68.31 | 36.27 | 38.67 | 10.338 |
| enc50_head0 | 66.83 | 69.26 | 71.29 | 35.71 | 37.70 | 29.962 |
| enc50_head100 | 68.14 | 71.41 | 70.07 | 35.37 | 37.75 | 4.756 |
| enc0_head25 | 67.52 | 72.00 | 68.27 | 36.73 | 39.99 | 2.573 |
| enc0_head50 | 67.64 | 71.83 | 69.16 | 36.62 | 39.80 | 9.824 |
| enc0_head100 | 66.99 | 71.54 | 68.61 | 36.38 | 39.78 | 24.498 |
| enc100_head25 | 63.84 | 65.84 | 72.25 | 33.09 | 35.12 | 32.563 |
enc25_head0 means 25% later-checkpoint encoder weights and the intact original head; enc50_head100 means a 50/50 encoder and the intact later head. control is the full 75/25 merge. Keeping the original head partially improves MS MARCO and ArguAna but raises exact Quora MSE from 3.484 to 9.783. The 50/50 encoder with later head recovers more of those categories, but lowers the mean and raises MSE. These are measured tradeoffs, not a universal recovery.
Release compatibility and archive
This is now the canonical repository for the evaluated modular reranker. Main previously contained a different custom-code Transformers release. That entire release, including its original model card and full-BEIR results, is preserved at legacy-before-ettin-20261117. Existing users of its custom AutoModel loader should pin that revision. Current main uses the Sentence Transformers CrossEncoder loading example above and pinned requirements. The legacy full-BEIR results do not describe this model and are not comparable to the NanoBEIR selection scores reported here.
The older ultrabert-150m-ettin-reranker repository remains an experiment archive so existing links and revision pins keep working. No new training was run for these merges.