Text Ranking
Transformers
Safetensors
multilingual
t5gemma2
text2text-generation
reranker
encoder-decoder
FBNL
Retrieval
RAG
Yuki131 commited on
Commit
0a6dfa4
·
verified ·
1 Parent(s): 518e1a6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +125 -0
README.md CHANGED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - multilingual
4
+ base_model:
5
+ - google/t5gemma-2-1b-1b
6
+ pipeline_tag: text-ranking
7
+ datasets:
8
+ - KaLM-Embedding/KaLM-embedding-finetuning-data
9
+ - Shitao/bge-m3-data
10
+ tags:
11
+ - reranker
12
+ - encoder-decoder
13
+ - FBNL
14
+ - Retrieval
15
+ - RAG
16
+ license: apache-2.0
17
+ library_name: transformers
18
+ ---
19
+
20
+
21
+
22
+
23
+ <h1 align="center">KaLM-Reranker-V1: Fast but Not Late Interaction for Compressed Document Reranking</h1>
24
+
25
+
26
+ <p align="center">
27
+ <a href="https://huggingface.co/collections/KaLM-Embedding/lychee-kalm-reranker">
28
+ <img src="https://img.shields.io/badge/%F0%9F%A4%97_Collection-Model-ffbd45.svg" alt="HF Collection">
29
+ </a>
30
+ <a href="https://arxiv.org/abs/2506.20923">
31
+ <img src="https://img.shields.io/badge/Paper-KaLM--Reranker--V1-d4333f?logo=arxiv&logoColor=white&colorA=cccccc&colorB=d4333f&style=flat" alt="Paper">
32
+ </a>
33
+ <a href="https://github.com/KaLM-Embedding">
34
+ <img src="https://img.shields.io/badge/GitHub-Code-blue.svg?logo=github&" alt="GitHub Code">
35
+ </a>
36
+ </p>
37
+
38
+
39
+ We present `KaLM-Reranker-V1`, a fast but not late-interaction (FBNL) reranker that decouples query and passage computation while retaining expressive relevance modeling.
40
+
41
+ Built on an encoder-decoder architecture, KaLM-Reranker-V1 uses the encoder to pre-encode passages with Matryoshka embedding pooling, while the decoder models the system instruction, user instruction, and query intent; cross-attention then captures relevance between the query context and passage representations.
42
+ This design makes KaLM-Reranker-V1 efficient through decoupled passage encoding, yet not late interaction, by preserving rich relevance modeling through cross-attention.
43
+
44
+ We instantiate KaLM-Reranker-V1 in three sizes, `Nano`, `Small`, and `Large`, with `0.27B`, `1B`, and `4B` activated parameters, respectively.
45
+
46
+
47
+ ![kalm-reranker-v1 architecture](./assets/framework.jpg)
48
+
49
+
50
+ Extensive experiments on BEIR, MIRACL, and LMEB show that the KaLM-Reranker-V1 series achieves competitive reranking performance compared with strong industrial rerankers while significantly reducing online overhead.
51
+
52
+ # Model Details
53
+ | Models | Activated Params. | Non-Embedding Params. | Embedding Params. | #Layers | Sequence Length | Document Token Dim. | MEP Support | Instruction Aware |
54
+ | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- |
55
+ | [KaLM-Reranker-V1-Nano](https://huggingface.co/KaLM-Embedding/KaLM-Reranker-V1-Nano) | 0.27B | 100M | 168M | 18 | 128K | 640 | 1x-32x | Yes |
56
+ | [KaLM-Reranker-V1-Small](https://huggingface.co/KaLM-Embedding/KaLM-Reranker-V1-Small) | 1B | 698M | 302M | 26 | 128K | 1152 | 1x-32x | Yes |
57
+ | [KaLM-Reranker-V1-Large](https://huggingface.co/KaLM-Embedding/KaLM-Reranker-V1-Large) | 4B | 3209M | 675M | 34 | 128K | 2560 | 1x-32x | Yes |
58
+
59
+
60
+ # Prompt Template
61
+ ```python
62
+ f"<Document>: {document}"
63
+
64
+ ```
65
+ ```python
66
+ (
67
+ f"<bos><start_of_turn>user\n"
68
+ f"Judge whether the Document meets the requirements based on the Query and the Instruct provided. Note that the answer can only be \"yes\" or \"no\".\n\n"
69
+ f"<Instruct>: {task_instruction}\n"
70
+ f"<Query>: {query}<end_of_turn>\n"
71
+ f"<start_of_turn>model\n\n\n\n"
72
+ )
73
+
74
+ ```
75
+
76
+ ![kalm-reranker-v1 template](./assets/template.jpg)
77
+
78
+
79
+ # Evaluation
80
+ ## BEIR
81
+ On BEIR, KaLM-Reranker-V1 achieves state-of-the-art performance, on par with strong industrial models such as the Qwen3-Reranker series.
82
+ ![beir](./assets/beir.jpg)
83
+ ## MIRACL
84
+ On MIRACL, despite not being extensively trained on multilingual data, KaLM-Reranker-V1 still shows excellent reranking performance.
85
+ ![miracl](./assets/miracl.jpg)
86
+ ## LMEB
87
+ On LMEB, reranking models demonstrate a clear advantage, with even the 0.27B Nano model remaining competitive with 7–12B embedding models.
88
+ ![lmeb](./assets/lmeb.jpg)
89
+ ![lmeb_emb](./assets/lmeb_emb.jpg)
90
+
91
+ # Usage
92
+
93
+
94
+ # Citation
95
+ If you find this model useful, please cite our papers.
96
+ ```
97
+ @misc{zhao2026kalmreranker,
98
+ title={KaLM-Reranker-V1: Fast but Not Late Interaction for Compressed Document Reranking},
99
+ author={Xinping Zhao and Jiaxin Xu and Ziqi Dai and Xin Zhang and Shouzheng Huang and Danyu Tang and Xinshuo Hu and Meishan Zhang and Baotian Hu and Min Zhang},
100
+ year={2026},
101
+ archivePrefix={arXiv},
102
+ primaryClass={cs.CL},
103
+ }
104
+
105
+ @inproceedings{zhao2026kalmembeddingv2,
106
+ title={KaLM-Embedding-V2: Superior Training Techniques and Data Inspire A Versatile Embedding Model},
107
+ author={Xinping Zhao and Xinshuo Hu and Zifei Shan and Shouzheng Huang and Yao Zhou and Xin Zhang and Zetian Sun and Zhenyu Liu and Dongfang Li and Xinyuan Wei and Youcheng Pan and Yang Xiang and Meishan Zhang and Haofen Wang and Jun Yu and Baotian Hu and Min Zhang},
108
+ booktitle={The Fourteenth International Conference on Learning Representations},
109
+ year={2026},
110
+ url={https://openreview.net/forum?id=Y7qzhvWhcz}
111
+ }
112
+
113
+ @misc{hu2025kalmembedding,
114
+ title={KaLM-Embedding: Superior Training Data Brings A Stronger Embedding Model},
115
+ author={Xinshuo Hu and Zifei Shan and Xinping Zhao and Zetian Sun and Zhenyu Liu and Dongfang Li and Shaolin Ye and Xinyuan Wei and Qian Chen and Baotian Hu and Haofen Wang and Jun Yu and Min Zhang},
116
+ year={2025},
117
+ eprint={2501.01028},
118
+ archivePrefix={arXiv},
119
+ primaryClass={cs.CL},
120
+ url={https://arxiv.org/abs/2501.01028},
121
+ }
122
+ ```
123
+
124
+ ## Contact
125
+ If you encounter any issues, feel free to contact us via the email: <zhaoxinping@stu.hit.edu.cn>