ReFusion: Improving Natural Language Understanding with Computation-Efficient Retrieval Representation Fusion
Shangyu Wu, Ying Xiong, Yufei Cui, Xue Liu, Buzhou Tang, Tei-Wei Kuo, Chun Jason Xue
TL;DR
ReFusion addresses the inefficiency of retrieval-augmented approaches in non-knowledge-intensive tasks by directly fusing retrieval representations into hidden states rather than concatenating long retrieval contexts. It introduces a computation-efficient framework with a retriever module, a retrieval fusion module featuring a learnable reranker and an ordered-mask scheme, and an adaptive retrieval integrator that searches for layer-wise best combinations via bi-level optimization. Across 15 NKI tasks, ReFusion delivers superior and more robust performance than strong baselines, while significantly reducing the computational burden compared to retrieval-concatenation methods. The work demonstrates a practical, scalable approach to integrating external knowledge into transformers, with potential for further gains through additional ranking schemes and hyperparameter tuning.
Abstract
Retrieval-based augmentations (RA) incorporating knowledge from an external database into language models have greatly succeeded in various knowledge-intensive (KI) tasks. However, integrating retrievals in non-knowledge-intensive (NKI) tasks is still challenging. Existing works focus on concatenating retrievals with inputs to improve model performance. Unfortunately, the use of retrieval concatenation-based augmentations causes an increase in the input length, substantially raising the computational demands of attention mechanisms. This paper proposes a new paradigm of RA named \textbf{ReFusion}, a computation-efficient Retrieval representation Fusion with bi-level optimization. Unlike previous works, ReFusion directly fuses the retrieval representations into the hidden states of models. Specifically, ReFusion leverages an adaptive retrieval integrator to seek the optimal combination of the proposed ranking schemes across different model layers. Experimental results demonstrate that the proposed ReFusion can achieve superior and robust performance in various NKI tasks.
