Lune

ACL2026Top-tier venue

Attention Weights as an Indicator: Analyzing and Improving Document Utilization in Retrieval-Augmented Generation

Jing Jin, Yuhan Song, Wen Luo, Houfeng Wang

2026Year

Abstract

The generation of Retrieval-Augmented Generation (RAG) models is affected by factors such as the quality and order of input documents, indicating that their ability to utilize documents remains underdeveloped. This ability encompasses not only identifying useful documents from inputs but also minimizing positional bias and filtering irrelevant documents. To achieve this, key challenges include the model's internal estimation of document importance and positional bias. In this paper, we conduct a comprehensive study on the properties of attention weights, examining the impact of factors like aggregation methods, document quality, document position, token type, and so on. Based on our findings, we propose strategies to enhance document utilization from three perspectives: document ranking, placement, and filtering. Comprehensive experiments show that our method outperforms baselines and improves document utilization effectiveness in a trainingfree manner. 1

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext d75e5ce7-3905-4eac-8d40-234e8661b563

Builds on13

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines