Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models
Paper β’ 2506.05176 β’ Published β’ 85
How to use Muzian/minimind-rerank-moe with sentence-transformers:
from sentence_transformers import CrossEncoder
model = CrossEncoder("Muzian/minimind-rerank-moe")
query = "Which planet is known as the Red Planet?"
passages = [
"Venus is often called Earth's twin because of its similar size and proximity.",
"Mars, known for its reddish appearance, is often referred to as the Red Planet.",
"Jupiter, the largest planet in our solar system, has a prominent red spot.",
"Saturn, famous for its rings, is sometimes mistaken for the Red Planet."
]
scores = model.predict([(query, passage) for passage in passages])
print(scores)
A Mixture-of-Experts cross-encoder reranker built on the MiniMind-3-MoE backbone (198M total / 64M active). The MoE counterpart of MiniMind-Rerank-Dense.
Same pointwise yes/no design as the Dense version: given a query and document, the model predicts whether the next token is ζ― (relevant) or ε¦ (irrelevant). The softmax probability of ζ― is the relevance score.
| Model | MAP@10 | Accuracy |
|---|---|---|
| Rerank-Dense (64M) | 0.915 | 85% |
| Rerank-MoE (198M-A64M) | 0.604 | 88% |
π‘ Counterintuitive: MoE's training accuracy (88%) is higher than Dense (85%), yet its MAP@10 (0.604) is far lower (Dense: 0.915). Why?
- Pointwise β Ranking: MoE excels at binary classification (yes/no), but ranking requires fine-grained discrimination between "very relevant" vs "somewhat relevant." MoE's top-1 routing fragments the sequence across experts, making it harder to form a coherent global relevance signal.
- Consistent with embedding findings: just as MoE underperforms Dense on STS (0.422 vs 0.478), the MoE architecture hurts representation quality at small scales.
Recommendation: for reranking, use MiniMind-Rerank-Dense β smaller, faster, and scores 50% higher.
| Config | Value |
|---|---|
| Training data | T2Reranking, 80k pairs (80/20 split, no leakage) |
| Epochs | 3 |
| Batch size | 16 |
| Learning rate | 1e-5 (cosine) |
| Final loss | 0.28 |
| Final accuracy | 88% |
| Item | Value |
|---|---|
| Architecture | MiniMind-3-MoE (4 experts, top-1) |
| Total params | 198M |
| Active params | 64M |
| Scoring | pointwise yes/no |
| Target tokens | ζ― (357) / ε¦ (1332) |
Apache 2.0
Base model
jingyaogong/minimind-3