Home Knowledge Base Fusion-in-Decoder (FiD)

Fusion-in-Decoder (FiD) is the retrieval-augmented generation architecture that processes multiple retrieved documents independently through the encoder and fuses information from all documents in the decoder through cross-attention — enabling scalable multi-document reasoning without the context-length limitations of concatenation-based approaches — the architectural pattern that became the standard backbone for retrieval-augmented question answering and knowledge-grounded generation systems.

What Is Fusion-in-Decoder?

Why FiD Matters

FiD Architecture

Encoding Phase (Parallelized):

Fusion Phase (Decoder):

FiD Behavior Analysis

Number of Passages (k)Natural Questions (EM)Encoding CostDecoder Cost
1044.1%LowLow
2548.2%MediumMedium
5050.1%MediumHigher
10051.4%HighHighest

Log-linear improvement: Performance scales logarithmically with number of passages — strong early gains with diminishing returns beyond 50 passages.

FiD vs. Alternative Fusion Strategies

StrategyApproachMax PassagesQuality
ConcatenationAll passages in one encoder input~5–10Limited by context length
FiDIndependent encoding, decoder fusion50–100+Best for many passages
RerankingSelect best single passage1 (final)Loses multi-document info
IterativeSequential document readingVariableComplex, slower

Fusion-in-Decoder is the architectural workhorse of retrieval-augmented generation — solving the fundamental scalability problem of multi-document reasoning by separating independent passage understanding (encoder) from cross-document information synthesis (decoder), enabling systems to effectively aggregate knowledge from dozens of retrieved documents into coherent, informed answers.

fusion-in-decoder (fid)fusion-in-decoderfidrag

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.