ModernBERT-base reranker, full finetune on GooAQ
A CrossEncoder reranker fully finetuned from answerdotai/ModernBERT-base. It is the full-finetuning baseline for the LoRA model omkar334/reranker-ModernBERT-base-gooaq-lora.
from sentence_transformers import CrossEncoder
model = CrossEncoder("omkar334/reranker-ModernBERT-base-gooaq-bce")
scores = model.predict([("how do i bake bread?", "Knead the dough, let it rise, and bake at 220C.")])
Results
| NanoBEIR nDCG@10 (reranking top-100) | MSMARCO | NFCorpus | NQ | Mean |
|---|---|---|---|---|
ModernBERT-base LoRA omkar334/reranker-ModernBERT-base-gooaq-lora | 0.6209 | 0.4004 | 0.5404 | 0.5205 |
ModernBERT-base full finetune (this model) omkar334/reranker-ModernBERT-base-gooaq-bce | 0.4447 | 0.3749 | 0.3946 | 0.4047 |
GooAQ held-out dev nDCG@10 (reranking 30 mined candidates, measured at the end of training): LoRA 0.7663, full finetune 0.7740. NanoBEIR numbers come from a fresh fp32 reload of the saved checkpoint. Re-evaluating the same weights varies slightly: the full finetune's mean ranged 0.3957 to 0.4067 across in-memory, fp32-reload and Hub-load evaluations, the LoRA model's 0.5205 to 0.5209.
Training recipe
- Data: first 100k pairs of sentence-transformers/gooaq (1,000 held out), with 5 mined hard negatives per question (
static-retrieval-mrl-en-v1),BinaryCrossEntropyLoss(pos_weight=5). - 1 epoch, batch size 64, bf16, seed 12, single run.
- Full finetune, learning rate 2e-5 (the defaults of
training_gooaq_bce.py). - Scripts:
examples/cross_encoder/training/peft/training_gooaq_lora.py(LoRA) andexamples/cross_encoder/training/rerankers/training_gooaq_bce.py(full finetune) in sentence-transformers.
Limitations
Single seed, trained on GooAQ only, evaluated on three NanoBEIR subsets. These NanoBEIR scores are below cross-encoder/ms-marco-MiniLM-L6-v2 (0.6072 mean), which is already trained on MS MARCO. This checkpoint demonstrates the LoRA vs. full-finetune tradeoff; it is not a state-of-the-art reranker.