BGE City Reranker v0.3.1
A city-domain cross-encoder for ranking retrieved data descriptions against a query. It fine-tunes the BAAI BGE Reranker v2 M3 model and is intended for the reranking stage of retrieval pipelines. The model scores (query, candidate description) pairs; it does not generate answers.
Load and score
from sentence_transformers import CrossEncoder
model = CrossEncoder("aer0vane/bge-city-reranker-v0.3.1", max_length=256)
query = "Find population data for Tampines in 2019"
descriptions = [
"Resident population by planning area, subzone, age, sex, dwelling type, and year",
"Bus passenger volume by hour and transport node",
]
scores = model.predict([(query, text) for text in descriptions])
ranked = sorted(zip(scores, descriptions), reverse=True)
Training
- Base architecture:
BAAI/bge-reranker-v2-m3(XLM-RoBERTa cross-encoder). - Initialization: the local
bge-city-weak-v0.1checkpoint, itself initialized from the BAAI model. - Final stage: 2 epochs; batch size 8; gradient accumulation 2; learning rate
5e-6; max length 256; seed 42. - Supervision: 5,000 sampled T2Ranking triplets combined with LocalSearchBench answer-name-matching weak labels. The LocalSearchBench labels are weak labels, not human judgments.
- Query-group split was used for validation. Training examples and source datasets are not included in this repository.
Validation results
| Validation subset | Initial nDCG@10 | Fine-tuned nDCG@10 | Initial MRR@10 | Fine-tuned MRR@10 |
|---|---|---|---|---|
| Mixed held-out set | 0.9211 | 0.9299 | 0.8936 | 0.9055 |
| LocalSearchBench weak-label subset | 0.8281 | 0.8318 | 0.7688 | 0.7736 |
| T2Ranking supervised-triplet subset | — | 0.9734 | — | 0.9640 |
These are local grouped validation results from the training pipeline. The mixed set includes T2Ranking supervision and city-domain weak labels; they are not an independent human-labeled city benchmark. The manifest records the split sizes and configuration.
License
The base model is published under Apache-2.0. This checkpoint is marked Apache-2.0; review the upstream model and training-data terms for your intended use.