TL;DR
This paper reproduces and extends the FIRST approach for efficient listwise reranking using large language models (LLMs). By leveraging only the first token's output for ranking and a specialized learning-to-rank objective, FIRST significantly reduces inference latency (21-42%) without sacrificing effectiveness. The study validates FIRST across diverse datasets and models, finding that while LLM pre-training aids zero-shot reranking, it might paradoxically hinder FIRST fine-tuning.
What Problem Does This Paper Address?
Large Language Models (LLMs) have shown great promise as powerful tools for information retrieval, particularly in document reranking. However, their application as listwise rerankers is hampered by high computational demands, leading to slow inference times. Traditional LLM reranking methods often frame the task as a generation problem, requiring the LLM to produce a complete permutation of document identifiers. This auto-regressive generation, coupled with the massive size of LLMs, results in significant latency, making real-world deployment challenging. Furthermore, the standard language modeling (LM) objective used for training LLMs is not inherently optimal for ranking tasks, as it penalizes all incorrect rankings equally, failing to prioritize the most relevant documents.
Methods
The paper focuses on reproducing and extending the FIRST (Faster Improved Listwise Reranking with Single Token Decoding) approach. The core of FIRST lies in two key innovations:
- Single-Token Decoding: Instead of generating a full sequence of document identifiers, FIRST derives the ranking solely from the relative magnitudes of the output logits of the first generated identifier token. This drastically reduces the computational burden of generation.
- Learning-to-Rank Objective: FIRST incorporates a weighted pairwise learning-to-rank loss alongside the traditional language modeling loss. This specialized loss function prioritizes accurate ranking of more relevant documents, addressing the suboptimality of the standard LM objective for ranking.
The authors fine-tune various LLM backbones (e.g., Zephyrß, Mistral-7B, LLaMA-3.1) using this combined "FIRST objective." They also investigate the impact of different first-stage retrievers and compare FIRST-trained models against models trained solely with the LM objective.
Datasets
The study utilizes several datasets for evaluation:
- BEIR and MS MARCO datasets: These were used in the original FIRST study for evaluating effectiveness across various domains.
- TREC Deep Learning Track datasets (DL19-22): These collections, based on the MS MARCO v1 and v2 passage corpora, were used to extend the evaluation to new domains and assess robustness. DL19-20 contain ~8.8 million passages, while DL21-22 use the larger ~138 million passage MS MARCO v2 corpus.
The training data used was the same as in the original FIRST paper: 40K GPT-4 labeled rerank instances, converted to use alphabetical identifiers for single-token identification.
Key Insights and Ideas
- FIRST is reproducible and effective: The paper successfully reproduces the original FIRST results and demonstrates that it can achieve comparable or even superior effectiveness to traditional LLM rerankers.
- Significant latency reduction: The single-token decoding strategy leads to substantial speedups (21-42%) without compromising ranking quality, making LLM reranking more practical.
- LM pre-training helps zero-shot, but might hinder FIRST fine-tuning: While LLM pre-training improves a model's ability to perform zero-shot reranking using the FIRST strategy, fine-tuning a model directly with the FIRST objective (rather than fine-tuning an LLM-trained model) yields better results. This suggests a complex relationship where LM pre-training might not be entirely beneficial for downstream FIRST fine-tuning.
- First-stage retriever quality matters, but with diminishing returns: The effectiveness of the first-stage retriever strongly influences the final reranking performance, but improvements from increasingly sophisticated retrievers show diminishing returns, a pattern consistent with traditional LLM rerankers.
- FIRST objective is robust across domains and backbones: The study validates FIRST's effectiveness on diverse TREC datasets and shows that applying the FIRST objective to various LLM architectures can lead to improved performance over the original implementation.
Key Results
- Latency Reduction: FIRST achieved a 21%-42% reduction in inference latency compared to full sequence generation across various models and benchmarks.
- Effectiveness:
- FirstMistral, a model fine-tuned with the FIRST objective, achieved the highest nDCG@10 scores on 8 out of 11 datasets from the original FIRST study.
- On TREC DL19-22, models trained with the FIRST objective achieved effectiveness comparable to or better than traditional LLM rerankers (e.g., RankZephyrg).
- FirstMistral even surpassed RankZephyrg's average nDCG@10 on TREC DL19-22.
- Zero-Shot Performance: Models trained solely on the LM objective (like RankZephyr) showed surprising zero-shot reranking capabilities using only first-token logits, validating the hypothesis that LLM training implicitly improves single-token reranking.
- Fine-tuning Impact: FirstZephyrß (fine-tuned directly with FIRST) consistently outperformed FirstRankZephyr (sequentially fine-tuned on LLM then FIRST), indicating that LLM pre-training might hinder subsequent FIRST fine-tuning.
Limitations and Future Work
- LLM Pre-training Paradox: The finding that LLM pre-training might hinder FIRST fine-tuning is counterintuitive and raises questions about the optimal relationship between language modeling and ranking objectives. This suggests future research into alternative learning-to-rank losses and their interaction with single-token reranking.
- FirstLLaMA Performance: The relatively poor effectiveness of FirstLLaMA, despite its rapid convergence in ranking loss, points to potential areas for improvement in its training or architecture for this specific task.
- First-Stage Retriever Dynamics: While patterns of diminishing returns were observed, further investigation into the specific interactions between different first-stage retrievers and FIRST rerankers could be beneficial.
- Computational Cost of Fine-tuning: While inference is faster, the initial fine-tuning of LLMs with the FIRST objective still requires significant computational resources. Exploring more efficient fine-tuning methods could be a future direction.
Summary updated