Abstract
Retrieval-augmented generation models offer many benefits over standalone language models: besides a textual answer to a given query they provide provenance items retrieved from an updateable knowledge base. However, they are also more complex systems and need to handle long inputs. In this work, we introduce FiD-Light to strongly increase the efficiency of the state-of-the-art retrieval-augmented FiD model, while maintaining the same level of effectiveness. Our FiD-Light model constrains the information flow from the encoder (which encodes passages separately) to the decoder (using concatenated encoded representations). Furthermore, we adapt FiD-Light with re-ranking capabilities through textual source pointers, to improve the top-ranked provenance precision. Our experiments on a diverse set of seven knowledge intensive tasks (KILT) show FiD-Light consistently improves the Pareto frontier between query latency and effectiveness. FiD-Light with source pointing sets substantial new state-of-the-art results on six KILT tasks for combined text generation and provenance retrieval evaluation, while maintaining reasonable efficiency.
Introduction
Retrieval-Augmented Generation (RAG) has become the gold standard for building AI that grounds its responses in factual evidence rather than relying solely on internal parameters. The current state-of-the-art architecture, Fusion-in-Decoder (FiD), achieves high accuracy by retrieving dozens of passages and "fusing" their encoded representations in a decoder. However, FiD is notoriously slow due to the decoder bottleneck. Standard FiD concatenates every token from every retrieved passage; with 40 passages, the decoder may process over 10,000 vectors per generated token. Analysis reveals that approximately 93% of inference time is spent in the decoder, making these models expensive and slow for real-time use.
Methodology
FiD-Light addresses these efficiency and effectiveness challenges through two primary innovations:
- Encoder-to-Decoder Compression: Instead of passing all encoded tokens for a passage to the decoder, FiD-Light compresses each passage into a fixed number of $k$ vectors (typically 8 to 64). This reduces the decoder's input length from $O(n \times \text{passage length})$ to $O(n \times k)$, significantly alleviating the computational burden.
- Source Pointing ($SP$) with Re-ranking: To improve provenance (identifying the correct source document), the model is trained to output textual "source pointers" (e.g.,
index: 2). These pointers are used to re-rank the original candidate list, moving the cited documents to the top. This mechanism makes the system more robust than models that rely solely on direct generative output for attribution.
Evaluation and Results
The researchers evaluated FiD-Light using the KILT (Knowledge Intensive Language Tasks) benchmark, covering seven diverse tasks including Open Domain QA (NQ, HotpotQA, TriviaQA), Fact Verification (FEVER), and Slot Filling (T-REx, zsRE).
FiD-Light establishes a new Pareto frontier for the trade-off between latency and effectiveness. Notably, FiD-Light (T5-Base) with 40 passages is faster than a standard FiD model using only 10 passages, while delivering superior accuracy.
Key results include:
- State-of-the-Art Performance: FiD-Light set new SOTA records on 6 out of 7 KILT tasks for combined text generation and source attribution metrics.
- Significant Gains: On HotpotQA, it achieved a +11.1 point (+61.3% relative) improvement in KILT Exact Match (K-EM) over previous benchmarks.
Discussion
The success of FiD-Light highlights that full encoder output is not necessary for effective generation; high information density allows for significant compression without losing critical signals. While the model currently struggles to point to more than two passages consistently—partly due to noise in the KILT ground truth—it represents a major step toward practical, high-performance RAG systems.
Reference: Hofstätter, S., Chen, J., Raman, K., & Zamani, H. (2022). FiD-Light: Efficient and Effective Retrieval-Augmented Text Generation. arXiv:2209.14290.
Summary updated