MiniRAG:迈向极简的检索增强生成
MiniRAG: Towards Extremely Simple Retrieval-Augmented Generation
AI总结:
针对小型语言模型在RAG系统中性能受限的问题,提出极简系统MiniRAG,通过异构图索引和拓扑增强检索技术,在仅用25%存储空间下实现与大模型相当的性能。
摘要:
对高效且轻量级的检索增强生成(RAG)系统的日益增长的需求,凸显了在现有 RAG 框架中部署小型语言模型(SLMs)时所面临的重大挑战。由于 SLMs 的语义理解和文本处理能力有限,当前方法面临严重的性能下降,这在资源受限场景下的广泛采用造成了障碍。为了解决这些根本限制,我们提出了 MiniRAG,一种专为极致简单和高效而设计的全新 RAG 系统。MiniRAG 引入了两项关键技术创新:(1)一种语义感知的异构图索引机制,将文本块和命名实体结合在统一结构中,减少对复杂语义理解的依赖;(2)一种轻量级的拓扑增强检索方法,利用图结构进行高效的知识发现,而无需高级语言能力。我们的大量实验表明,即使使用 SLMs,MiniRAG 也能取得与基于 LLMs 的方法相当的性能,同时仅需 25% 的存储空间。此外,我们还贡献了一个综合基准数据集,用于在具有复杂查询的真实设备端场景下评估轻量级 RAG 系统。我们在以下网址完全开源了我们的实现和数据集:https://github.com/HKUDS/MiniRAG。
英文摘要:
The growing demand for efficient and lightweight Retrieval-Augmented Generation (RAG) systems has highlighted significant challenges when deploying Small Language Models (SLMs) in existing RAG frameworks. Current approaches face severe performance degradation due to SLMs' limited semantic understanding and text processing capabilities, creating barriers for widespread adoption in resource-constrained scenarios. To address these fundamental limitations, we present MiniRAG, a novel RAG system designed for extreme simplicity and efficiency. MiniRAG introduces two key technical innovations: (1) a semantic-aware heterogeneous graph indexing mechanism that combines text chunks and named entities in a unified structure, reducing reliance on complex semantic understanding, and (2) a lightweight topology-enhanced retrieval approach that leverages graph structures for efficient knowledge discovery without requiring advanced language capabilities. Our extensive experiments demonstrate that MiniRAG achieves comparable performance to LLM-based methods even when using SLMs while requiring only 25\% of the storage space. Additionally, we contribute a comprehensive benchmark dataset for evaluating lightweight RAG systems under realistic on-device scenarios with complex queries. We fully open-source our implementation and datasets at: https://github.com/HKUDS/MiniRAG.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。