qwen3-0.6b-reranker-ed
Pointwise entity-disambiguation reranker from the paper When Does Reasoning Help Entity Disambiguation? Small LLMs In-Domain and Under Shift (Findings of EACL 2027). It is Qwen3-Reranker-0.6B (in its sequence-classification conversion) fine-tuned with LoRA (merged) on ZELDA as a pointwise reranker.
| ZELDA (acc.) | ZESHEL, true zero-shot (norm. acc.) |
|---|---|
| 78.7 | 66.0 |
Usage
The model scores each (mention in context, candidate) pair; the mention is marked with [ ]. Pick the highest-scoring candidate, or keep the top 10 as a shortlist for a selection model.
from vllm import LLM
PREFIX = '<|im_start|>system\nJudge whether the Document meets the requirements based on the Query and the Instruct provided. Note that the answer can only be "yes" or "no".<|im_end|>\n<|im_start|>user\n'
SUFFIX = "<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n"
TASK = "Given a text with a mention enclosed between the '[' and ']' characters, retrieve relevant entities that the mention refers to."
text = "[Jordan] scored 45 points as the Bulls beat the Jazz in Game 6."
candidates = [
("Jordan", "Jordan is a country in Western Asia."),
("Michael Jordan", "Michael Jordan is an American former professional basketball player."),
("Jordan River", "The Jordan River is a river in the Middle East."),
]
query = f"{PREFIX}<Instruct>: {TASK}\n<Query>: {text}\n"
documents = [f"<Document>: {t} ({d}){SUFFIX}" for t, d in candidates]
llm = LLM("samyhaff/qwen3-0.6b-reranker-ed", runner="pooling")
scores = [o.outputs.score for o in llm.score(query, documents)]
print(max(zip(scores, [t for t, _ in candidates]))[1]) # Michael Jordan
Full pipeline and evaluation: github.com/samyhaff/ed-study.
Citation
@inproceedings{haffoudhi2027reasoning,
title = {When Does Reasoning Help Entity Disambiguation? Small {LLM}s In-Domain and Under Shift},
author = {Haffoudhi, Samy and Suchanek, Fabian M. and Holzenberger, Nils},
booktitle = {Findings of the Association for Computational Linguistics: EACL 2027},
year = {2027},
eprint = {2611.30334},
archivePrefix = {arXiv}
}