BEE-RAG: Balanced Entropy Engineering for Retrieval-Augmented Generation

Authors

  • Yuhao Wang Gaoling School of Artificial Intelligence, Renmin University of China Beijing Key Laboratory of Research on Large Models and Intelligent Governance
  • Ruiyang Ren Gaoling School of Artificial Intelligence, Renmin University of China
  • Yucheng Wang Baidu Inc.
  • Jing Liu Baidu Inc.
  • Xin Zhao Gaoling School of Artificial Intelligence, Renmin University of China Beijing Key Laboratory of Research on Large Models and Intelligent Governance
  • Hua Wu Baidu Inc.
  • Haifeng Wang Baidu Inc.

DOI:

https://doi.org/10.1609/aaai.v40i40.40664

Abstract

With the rapid advancement of large language models (LLMs), retrieval-augmented generation (RAG) has emerged as a critical approach to supplement the inherent knowledge limitations of LLMs. However, due to the typically large volume of retrieved information, RAG tends to operate with long context lengths. From the perspective of entropy engineering, we identify unconstrained entropy growth and attention dilution due to long retrieval context as significant factors affecting RAG performance. In this paper, we propose the balanced entropy-engineered RAG (BEE-RAG) framework, which improves the adaptability of RAG systems to varying context lengths through the principle of entropy invariance. By leveraging balanced context entropy to reformulate attention dynamics, BEE-RAG separates attention sensitivity from context length, ensuring a stable entropy level. Building upon this, we introduce a zero-shot inference strategy for multi-importance estimation and a parameter-efficient adaptive fine-tuning mechanism to obtain the optimal balancing factor for different settings. Extensive experiments across multiple RAG tasks demonstrate the effectiveness of BEE-RAG.

Downloads

Published

2026-03-14

How to Cite

Wang, Y., Ren, R., Wang, Y., Liu, J., Zhao, X., Wu, H., & Wang, H. (2026). BEE-RAG: Balanced Entropy Engineering for Retrieval-Augmented Generation. Proceedings of the AAAI Conference on Artificial Intelligence, 40(40), 33737–33745. https://doi.org/10.1609/aaai.v40i40.40664

Issue

Section

AAAI Technical Track on Natural Language Processing V