AI news
Yuanbao Reranker v1.5: 4B to 2.37B, 2.04 Points Gone
Short answer
- Tencent's Yuanbao Search team published Yuanbao-Reranker v1.5 on 30 November: two pruned rerankers at 2.370B and 0.410B, carved out of its own 4.022B and 0.596B v1 models.
- The 2B keeps 58.93% of its parent's parameters and gives up 2.04 points of nDCG@10 average, from 73.63 to 71.59.
- The unusual cut is attention heads: 32 query / 8 KV drop to 24 / 6 with the GQA group left at 4, which costs a measured 0.55.
- Every average in the eval table recomputes as a plain five-panel mean — the arithmetic checks out, which is not universal in this niche.
A reranker is the least glamorous part of a retrieval stack and the one most often sized by cost. Yuanbao's release is interesting mostly for what it publishes about its own trade-offs: a same-shape rival built from Qwen3 weights, the exact cost of each pruning axis, and a speedup number that was measured on a different checkpoint.
What was cut, and along which axes
The parent model is a 4.022B, 36-layer Qwen3-architecture cross-encoder that answers a two-token question: does this document satisfy this query. The 2B child is a contiguous prefix of that stack — the last twelve layers are simply dropped — with the feed-forward width and the head count narrowed at the same time.
| Property | v1 4B (parent) | v1.5 2B | v1.5 0.4B |
|---|---|---|---|
| Parameters | 4.022B | 2.370B (2,370,212,864) | 0.410B (410,155,520) |
| Layers | 36 | 24 | 18 (from 28) |
| FFN intermediate | 9,728 | 8,192 | 2,560 (from 3,072) |
| Query / KV heads | 32 / 8 | 24 / 6 | 16 / 8, untouched |
| Hidden / head dim | 2,560 / 128 | 2,560 / 128 | 1,024 / 128 |
| Parameters kept | — | 58.93% | 68.84% |
| Decoder FLOPs kept (T=2048) | — | 54.20% | 59.21% |
| Weight file | — | 4.41 GiB | 0.76 GiB |
Keeping the group size at four is the quiet engineering decision. Q32/KV8 and Q24/KV6 both give G = 4, so the pruned file still loads through a stock Qwen3ForCausalLM path with an edited config — no mask, no sparse kernel, no custom attention. The 0.4B sibling skips head pruning entirely and cuts only width and depth, retaining 68.84% of parameters for 59.21% of the FLOPs.
Two derived numbers are worth keeping. The 2.37B file is 4.41 GiB of BF16 weights; at 24 layers, 6 KV heads, 128 head dimensions and 2-byte caches it carries 73,728 bytes — 72 KiB — of KV per token, so the advertised 40,960-token position ceiling implies about 2.81 GiB of cache at full length. And a pointwise cross-encoder means one forward pass per candidate: at roughly 2N×T FLOPs, a 1,024-token query-document pair runs about 4.86 TFLOPs, so rescoring 100 candidates is near half a petaflop per query.
The bill for the cut, in points
The evaluation protocol is inherited from v1: rerank the Top-100 candidates retrieved by Qwen3-Embedding-0.6B across five panels, MTEB v1.38.9, FP16, nDCG@10 × 100. The table below is reproduced as published; the averages recompute exactly as a five-panel mean.
| Model | Params | CMTEB-R | MMTEB-R | BEIR | MLDR | MTEB-Code | Avg |
|---|---|---|---|---|---|---|---|
| Yuanbao v1.5 2B | 2.370 | 77.05 | 72.27 | 62.73 | 67.61 | 78.28 | 71.59 |
| Yuanbao v1 4B | 4.022 | 78.31 | 74.08 | 64.74 | 70.04 | 80.98 | 73.63 |
| Yuanbao v1.5, FFN + layers only | 2.527 | 77.23 | 72.54 | 62.91 | 68.86 | 79.15 | 72.14 |
| Qwen3-Reranker-4B, published | 4.022 | 76.05 | 71.29 | 63.66 | 69.35 | 80.33 | 72.13 |
| Qwen3-Reranker-4B, same 2.370B shape | 2.370 | 75.70 | 70.84 | 61.82 | 68.02 | 76.95 | 70.67 |
Read the Params column before the score. Only two rows sit at the same 2.370B shape, and there the tencent-trained file wins by 0.92: 71.59 against 70.67 for a Qwen3 derivative pruned with the same three axes. The head cut itself is priced separately — the 2.527B sibling keeps all 32 query and 8 KV heads, scores 72.14, so moving to Q24/KV6 buys 6.2% of parameters for 0.55 points.
Against its own parent the trade is blunt: 41% fewer parameters, 2.04 points gone. That is a worse quality-per-parameter rate than the 0.4B does — 31% fewer weights for 1.46 points — which suggests the 2B sits close to the point where head capacity starts to bind.
The panel spread matters more than the average. MTEB-Code loses the most, 80.98 down to 78.28 (−2.70), while BEIR holds at 62.73. A team that reranks code search should not read 71.59 as a uniform 2-point haircut.
Serving details that change your scores
Three things in the card are easy to miss and each one silently changes the output:
- Prompt layout is v1, not Qwen3. The serving string ends with four newlines after the assistant header, five newline tokens in total, and the relevance logits are read from that position. Using the Qwen3 template with its thinking block produces different token sequences and therefore different scores, with no error raised.
- Left padding only. Scoring reads
logits[0, -1]; right padding parks a pad token at that index and returns the pad token's logits without complaint. - Two single tokens decide. Relevance is
sigmoid(z_yes − z_no)with yes = 9693 and no = 2152. The card notes the margin and the two-token softmax rank identically, so either is safe for sorting — but neither is a calibrated probability you should threshold on a fixed 0.5.
There is no generation_config.json, deliberately: the model is trained for a two-token readout and generate() is the wrong path. The reference scorer loops over documents, one forward pass each — the reason the cost discussion above matters.
Before you ship it
Four caveats Tencent states, plus one mismatch:
- Latency was not measured here. The 1.49× median end-to-end speedup on 100-candidate FiQA2018 queries at candidate batch 1, single accelerator, eager PyTorch, was taken on the Qwen3 target of the same shape — not on this checkpoint. Treat it as a shape-level estimate.
- One run per target. No seeds, no variance, so differences of a few tenths sit inside run-to-run noise; the 0.55 head-pruning bill is one of those.
- No data and no teacher. The pipeline that produced the file is described, the corpus is not released, so the 71.59 cannot be regenerated from scratch.
- The licence metadata disagrees with the licence file. The Hugging Face card declares
license: otherwithtencent-yuanbao-reranker-license; the LICENSE file in the same repository says the weights are Apache-2.0, with third-party components under their original terms. Both are in the repo; a procurement review should read the file, not the tag. - Architecture lineage. The card credits Qwen3 and the tokenizer to Alibaba under Apache-2.0, which is why an unmodified
transformersstack can run it.
The useful takeaway for anyone sizing a retrieval stack: a 4B reranker cut to 2.37B costs about two nDCG@10 points on this vendor's own five panels, buys 45% of the decoder FLOPs, and needs 4.41 GiB instead of roughly 7.5 GiB. If your pipeline reranks 100 candidates per query, that is a real budget line — and the 0.4B at 69.50 is a cheaper starting point than its 27% smaller weight suggests.
Sources: tencent/Tencent-Yuanbao-Reranker-v1.5-2B model card, evaluation table, limitations, quick-start and prompt-template notes (checked 2026-12-02); tencent/Tencent-Yuanbao-Reranker-v1.5-0.4B model card for the smaller sibling's geometry, 68.84% parameter retention and 69.50 average (checked 2026-12-02); config.json of the 2B repository for layer, head and position values (checked 2026-12-02); LICENSE file in the 2B repository (checked 2026-12-02); Hugging Face model API entries for both repositories for exact parameter counts and timestamps (checked 2026-12-02).