[Paper Review] Pre-computed memory or on-the-fly encoding? A hybrid approach to retrieval augmentation makes the most of your compute
This paper proposes lumen, a hybrid retrieval-augmented generation framework that pre-computes most passage representations in memory while using a fine-tuned, question-conditioned live encoder to update them on-the-fly. It achieves performance close to full Fusion-in-Decoder (FiD) with significantly reduced FLOPs—outperforming both pure memory and FiD approaches under any given compute budget, especially at scale.
Retrieval-augmented language models such as Fusion-in-Decoder are powerful, setting the state of the art on a variety of knowledge-intensive tasks. However, they are also expensive, due to the need to encode a large number of retrieved passages. Some work avoids this cost by pre-encoding a text corpus into a memory and retrieving dense representations directly. However, pre-encoding memory incurs a severe quality penalty as the memory representations are not conditioned on the current input. We propose LUMEN, a hybrid between these two extremes, pre-computing the majority of the retrieval representation and completing the encoding on the fly using a live encoder that is conditioned on the question and fine-tuned for the task. We show that LUMEN significantly outperforms pure memory on multiple question-answering tasks while being much cheaper than FiD, and outperforms both for any given compute budget. Moreover, the advantage of LUMEN over FiD increases with model size.
Motivation & Objective
- To address the high computational cost of encoding retrieved passages in retrieval-augmented language models like Fusion-in-Decoder (FiD).
- To overcome the performance degradation of pure memory-based approaches, which encode passages independently of input queries.
- To design a hybrid system that balances efficiency and performance by pre-computing most representations while conditioning final encoding on the input question.
- To demonstrate that this hybrid approach achieves superior performance-compute trade-offs, especially as model scale increases.
Proposed method
- lumen splits the encoder into two components: a frozen memory encoder that pre-computes passage representations from a pre-trained model, and a fine-tuned live encoder that updates these representations on-the-fly.
- During inference, the question is encoded first, then concatenated with each pre-computed passage representation to condition the live encoder.
- The live encoder is fine-tuned end-to-end for the downstream task, enabling it to adapt passage representations to the specific input query.
- The final updated representations are fed into the decoder, following the standard FiD architecture.
- The proportion of live layers is adjustable, allowing a smooth trade-off between compute cost and performance.
- Transfer learning from a related task (e.g., Natural Questions) improves performance, especially with smaller live encoders or on low-resource datasets.

Experimental results
Research questions
- RQ1Can a hybrid approach that pre-computes most passage representations while updating them on-the-fly achieve better performance-compute trade-offs than pure memory or full FiD?
- RQ2How does the performance of the hybrid approach scale with model size compared to FiD and memory-only baselines?
- RQ3To what extent can transfer learning from a related task improve the performance of the live encoder component in the hybrid setup?
- RQ4What proportion of live layers is sufficient to achieve near-FiD performance while significantly reducing FLOPs?
Key findings
- lumen achieves performance comparable to full FiD using only one-third of the live layers and FLOPs at the T5-XXL scale.
- On the Natural Questions dev set, lumen with just 10% of live layers achieves an exact match score of 54.5%, approaching FiD’s 56.2% with much lower compute.
- The performance gap between lumen and FiD decreases with model scale, and lumen’s advantage increases at larger model sizes.
- Transfer learning from Natural Questions closes most of the performance gap between lumen and FiD, especially when using small live encoders or on TriviaQA.
- lumen outperforms both pure memory and FiD for any given computational budget, making it the most efficient choice across all compute regimes.
- The hybrid design enables a smooth, continuous trade-off between compute cost and performance, with minimal loss in accuracy even at low live-layer proportions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.