Chopper 0.31B: reranker and context compressor in one pass
0.31B parameters · about 50 ms per question on an RTX 3090 (20 snippets, ~2,400 tokens) · MIT
Reads the passages your retriever found and, in a single forward pass, (1) scores every passage, like a reranker, and (2) cuts out chops: the exact sentences that answer the question, typically 2–5% of the text, never rewritten.
This repository holds the same weights as the mmbert-base/ folder of wiiiktor/chopper_mmbert
(the main repository: all variants, full results), packaged on its own so leaderboards can list it by size.
Also a reranker, in the same pass. Every passage gets a relevance score (mean p(KEEP) of its 16 most likely tokens):
| nDCG@10, 8-language rerank holdout (400 queries) | |
|---|---|
| this model | 0.973 |
| bge-reranker-v2-m3 | 0.984 |
| Qwen3-Reranker-0.6B | 0.977 |
On MTEB (submitted, pending review: results#850):
HotpotQAHardNegatives NDCG@10 0.876 reranking the top 100 of uibk-embedding-v1 (board best so far: gemini-embedding-001
0.870), WikipediaRerankingMultilingual 0.972, RuBQReranking 0.816, HotpotQA-PLHardNegatives 0.757. Lists of more than 50
candidates are ranked in rounds (chopper-rag ≥ 0.1.11 rerank(): blocks of 50, best 25 of each read together, best 10
read once more); details.
# pip install chopper-rag
from chopper_rag import Chopper
ch = Chopper.from_pretrained(repo="wiiiktor/chopper-0.31B", variant="base")
question = "Who founded the company that makes the drink?"
out = ch.run(question, passages) # passages: list of strings from your retriever
out.chops # exact quotes
ch.rerank(question, passages) # [(passage_index, score), ...], best first
Code, training recipe and benchmarks: github.com/wiiiktor/chopper_demo.