Anyone who has worked on a RAG system has probably experienced this dilemma:
Vector retrieval is fast, but the recall quality often leaves something to be desired.
Switching to a cross-encoder reranker improves accuracy, but the painfully slow inference speed—especially with long documents—makes users want to refresh the page in frustration.
To address this pain point, a collaboration between the Harbin Institute of Technology (Shenzhen) and the Shenzhen Bay Area IoT Network Research Institute recently open-sourced a fascinating new reranker model series: KaLM-Reranker-V1. It dramatically boosts long-document reranking efficiency by several times, or even a hundredfold, while maintaining extremely high accuracy.
01 / How Does It Achieve "Fast and Accurate"?
Traditional Cross-Encoders are slow because, for every new query, the model must concatenate the "query" and the "entire document" and perform a full Self-Attention calculation from scratch. The longer the document, the exponentially higher the computational cost.
KaLM-Reranker introduces an architecture called Fast But Not Late Interaction (FBNL). Simply put, it achieves a "decoupling":
Documents are pre-stored: The encoder can pre-encode documents offline, generating a reusable representation.
Only the query is computed: During online inference, the decoder only needs to process the incoming Query while performing cross-attention with the already-compressed document representations.
This way, there's no need to re-process thousands of words of long text for every new query, causing a dramatic drop in computational load.
02 / Compression Technology Like "Matryoshka Dolls"
Decoupling alone isn't enough. If the document representations take up too much space, memory and transmission become bottlenecks. A very clever design was introduced here: Matryoshka Embedding Pooling.
During training, this allows for documents to be compressed along the sequence dimension using mean pooling at different ratios. This means that during actual deployment of the same model, you can flexibly adjust the compression ratio based on available hardware resources and latency requirements:
For ultimate speed: Compress the document more aggressively to minimize computational overhead.
For ultimate accuracy: Reduce the compression ratio to retain more details.
This flexible "efficiency-effectiveness" trade-off leaves enormous tuning space for practical engineering implementation.
03 / Benchmark Results: Just How Fast Is It?
No matter how good the technology sounds, it all comes down to the benchmarks. On the widely recognized BEIR benchmark for retrieval, KaLM-Reranker demonstrates exceptional value for performance:
Lightweight Nano version (0.27B): Achieves an average nDCG@10 of 57.41. It is about 10 times more efficient than the well-known gte-reranker-base while maintaining excellent accuracy.
Flagship Large version (4B): Achieves an average nDCG@10 of 62.87. Compared to its peer, bge-reranker-v2-gemma, it is nearly 2 times more efficient.
Particularly in long-document scenarios, the FLOPs for online decoding are significantly reduced because it avoids recomputing the full text. Simulation data from the paper shows a theoretical efficiency improvement of up to 203.4 times for long texts.
Furthermore, the model employs a multi-stage training strategy, including general-purpose learning without instructions, task-specific instruction fine-tuning, and knowledge distillation using a teacher model. This gives it an extremely strong ability to differentiate against "hard negatives"—irrelevant documents that look deceptively similar to the target.
Closing Thoughts
In real-world RAG applications, performance is often the "last mile" that determines the user experience. The open-sourcing of KaLM-Reranker-V1 provides a very practical balance point between the high accuracy of a Cross-Encoder and the low latency of a Bi-Encoder. Its improvement in long-document processing efficiency, in particular, holds significant practical value for scenarios like document-based Q&A and knowledge base retrieval.
Which Reranker are you currently using in your RAG tasks? Have you encountered any performance bottlenecks with long-text retrieval? Feel free to share your thoughts in the comments.
Reference:
KaLM-Reranker-V1: Fast but Not Late Interaction for Compressed Document Reranking: https://arxiv.org/pdf/2606.22807
Past Highlights:
Overcome Paper Anxiety! An Automated AI Deep-Reading Workflow Saves You 2 Hours Daily
Sun Yat-sen University FlashVLM: Text-Guided Multimodal Visual Token Selection
TokenGS: A Framework for Decoupling Input Pixels & Predicting 3DGS via Learnable Tokens
CAS ThinkStream: Look, Think, Speak—Towards Streaming Video Reasoning!
Zhejiang University VideoHV-Agent: A Multi-Agent Framework for Long Video Understanding
Tsinghua SwiftVLM: Cross-Layer Token Bypass for Accelerated Multimodal Inference
Zhejiang University VisionTrim: Unified Visual Token Compression for Speedier Multimodal Inference
One Token is Enough! A New Method for Performance Boost via Xiaohongshu's DLM
Zhejiang University CtrlCoT: A Semantic Abstraction + Token Trimming CoT Compression Framework