Introduction
Retrieval-Augmented Generation (RAG) has become a cornerstone for enhancing Large Language Models (LLMs) by grounding them in external knowledge. The effectiveness of RAG systems hinges on the quality of the retrieved information, typically managed through a two-stage pipeline: a broad initial retrieval followed by a precise reranking step. Researchers at LG AI Research have introduced PFiD (Passage Fusion-in-Decoder), a novel reranking architecture designed to bridge the gap between document-level and passage-level relevance.
The Granularity Gap in Reranking
Existing rerankers generally fall into two categories, each with distinct trade-offs. Single-Passage Cross-encoders (SPC), such as MonoT5, are highly accurate for individual passages but suffer from high computational costs and a lack of global document context. Conversely, Multi-Passage Cross-encoders (MPC), like the original Fusion-in-Decoder (FiD), can process multiple passages simultaneously. However, standard MPC models often struggle with fine-grained passage ranking because they rely on implicit signals, such as decoder cross-attention, which are not optimized for distinguishing relative relevance between passages.
Passage Fusion-in-Decoder (PFiD)
PFiD addresses these limitations by extending the FiD architecture with two primary innovations:
- Document-Level Scoring: The model is trained to output a document-level relevance score based on the probability of generating a "true" token, enabling effective coarse-grained ranking.
- Inter-passage Attention: This explicit mechanism allows the model to compare passages before they reach the decoder. By passing the initial hidden states of all passages through a single-layer Transformer, PFiD can better differentiate the relative importance of each segment.
The model utilizes a multi-task loss function to jointly optimize for document classification and passage-level ranking.
Experimental Evaluation
The performance of PFiD was benchmarked using the MIRACL dataset, which provides segmented document collections ideal for multi-granularity tasks. The evaluation focused on two key areas: document retrieval (reranking the top 100 BM25 results) and passage ranking within those documents.
Results and Discussion
PFiD demonstrates a superior balance of accuracy and efficiency. In document retrieval tasks, it achieved an MRR@10 of 0.7231, outperforming both traditional MPC models and the slower SPC baselines. In passage ranking, PFiD significantly outperformed standard FiD and approached the accuracy of RankT5 while being approximately 4.6x faster.
A critical advantage of PFiD is its robustness in complex RAG scenarios. As shown in the following plots, PFiD consistently maintains high nDCG@10 scores as the number of passages and documents increases, highlighting its ability to effectively filter noise in multi-document contexts.
Conclusion
PFiD represents a significant step forward in multi-granularity ranking. By introducing explicit inter-passage attention, it overcomes the "granularity gap" inherent in previous architectures. Its ability to provide high-quality document and passage rankings with significantly lower latency makes it a highly practical solution for real-world RAG applications. Future work will explore scaling these mechanisms to larger model architectures and further refining training strategies.
Summary updated