Abstract
An emerging recipe for achieving state-of-the-art effectiveness in neural document re-ranking involves utilizing large pre-trained language models—e.g., BERT—to evaluate all individual passages in the document and then aggregating the outputs by pooling or additional Transformer layers. A major drawback of this approach is high query latency due to the cost of evaluating every passage in the document with BERT. To address this challenge, we adopt an intra-document cascading strategy, which prunes passages of a candidate document using a less expensive model, called ESM, before running a scoring model that is more expensive and effective, called ETM. Our experiments on the MS MARCO and TREC Deep Learning Track benchmarks suggest that the proposed Intra-Document Cascaded Ranking Model (IDCM) leads to over 400% lower query latency by providing essentially the same effectiveness as the state-of-the-art BERT-based document ranking models.
Introduction
In the world of Information Retrieval (IR), large language models like BERT have set new benchmarks for accuracy. However, they come with a massive "latency tax." Because BERT has a limited input length, ranking a long document requires splitting it into many passages, scoring each one individually, and then aggregating the results. This process is computationally expensive and scales poorly with document length—making it a challenge for real-time production systems where "tail latency" (the worst-case wait time) must be minimized.
Methodology: The Intra-Document Cascade
The authors propose a two-stage architecture called the Intra-Document Cascaded Ranking Model (IDCM). By using a lightweight "scout" model to prune irrelevant passages before the heavy-duty BERT model ever sees them, they achieve significant efficiency gains.
- The Efficient Student Model (ESM): A lightweight "selector" based on a variation of Conv-KNRM (a CNN-based ranking model). It is extremely fast because it avoids the quadratic complexity of Transformer self-attention. Its job is to score all passages and pick the top $k$ (e.g., $k=4$).
- The Effective Teacher Model (ETM): A high-capacity model (such as DistilBERT). This model only processes the $k$ passages selected by the ESM.
- The Aggregator: A simple linear layer that combines the scores from the selected passages into a final document score.
The "Secret Sauce": Knowledge Distillation
The most novel part of the methodology is the training of the ESM. Rather than training it on sparse ground-truth relevance labels, the authors use Knowledge Distillation. They treat the expensive BERT model as a "teacher" and train the cheap ESM "student" to mimic the teacher's passage-level preferences. Using a ranking-aware loss function (nDCG2) was crucial; the student only needs to learn which passages BERT would rank in its top-$k$, rather than predicting exact scores.
Experimental Results
The models were evaluated on the MS MARCO and TREC Deep Learning Track 2019 benchmarks, focusing on documents up to 2,000 tokens in length.
Key Insights
- 4x Speedup: IDCM achieved over 400% lower query latency compared to the "All-BERT" baseline. The ESM is so fast that it can triage 40 passages in the same amount of time it takes BERT to score just one.
- No Accuracy Trade-off: On the TREC-DL’19 benchmark, IDCM with $k=4$ achieved an nDCG@10 of 0.688, matching the performance of the full BERT model that looked at all 40+ passages.
- Predictable Latency: By fixing the number of passages ($k$) that BERT sees, the latency becomes largely independent of document length. This "chops off" the long tail of the latency distribution, which is a major win for systems engineering.
Conclusion and Future Work
IDCM demonstrates that cascading inside the document is vital for making Transformers practical in IR. While the current model uses a fixed $k$, future work may explore dynamic $k$ selection—adjusting the number of passages based on query complexity or document length to further optimize the efficiency-effectiveness curve.
Summary updated