Transformer 的计算复杂度随输入规模呈二次方增长,这限制了大语言模型(LLMs)在训练和推理中的输入上下文窗口大小。与此同时,基于检索增强生成(RAG)的模型通过使用检索系统过滤不必要的信息,能够更好地处理更长的上下文。然而,大多数 RAG 方法仅基于初始查询进行检索,对于需要更深层推理的复杂问题可能效果不佳。我们提出了一种新方法,内循环记忆增强树检索(ILM-TR),该方法涉及内循环查询,不仅基于查询问题本身,还基于中间发现。在推理时,我们的模型从 RAG 系统中检索信息,整合来自长文档在不同抽象层级上的数据。基于检索到的信息,LLM 生成文本并存储在一个名为短期记忆(STM)的区域中,然后利用这些文本制定下一个查询。该检索过程重复进行,直到 STM 中的文本收敛。我们的实验表明,基于 STM 的检索相比传统的检索增强 LLM 有所改进,特别是在长上下文测试中,如 Multi-Needle In A Haystack(M-NIAH)和 BABILong。
英文摘要:
Transformers have a quadratic scaling of computational complexity with input size, which limits the input context window size of large language models (LLMs) in both training and inference. Meanwhile, retrieval-augmented generation (RAG) besed models can better handle longer contexts by using a retrieval system to filter out unnecessary information. However, most RAG methods only perform retrieval based on the initial query, which may not work well with complex questions that require deeper reasoning. We introduce a novel approach, Inner Loop Memory Augmented Tree Retrieval (ILM-TR), involving inner-loop queries, based not only on the query question itself but also on intermediate findings. At inference time, our model retrieves information from the RAG system, integrating data from lengthy documents at various levels of abstraction. Based on the information retrieved, the LLM generates texts stored in an area named Short-Term Memory (STM) which is then used to formulate the next query. This retrieval process is repeated until the text in STM converged. Our experiments demonstrate that retrieval with STM offers improvements over traditional retrieval-augmented LLMs, particularly in long context tests such as Multi-Needle In A Haystack (M-NIAH) and BABILong.
A Query-Aware Multi-Path Knowledge Graph Fusion Approach for Enhancing Retrieval-Augmented Generation in Large Language Models
School of Computer and Communication Engineering, University of Science and Technology Beijing(计算机与通信工程学院,北京科技大学);Blekinge Institute of Technology(布莱金厄学院)
Failures Are the Stepping Stones to Success: Enhancing Few-Shot In-Context Learning by Leveraging Negative Samples
Chengdu Institute of Computer Applications, Chinese Academy of Sciences(中国科学院成都计算机应用研究所);University of Chinese Academy of Sciences(中国科学院大学);Institute of Multidisciplinary Research for Advanced Materials (IMRAM), Tohoku University(东北大学多学科先进材料研究所)
GPTSee: Enhancing Moment Retrieval and Highlight Detection via Description-Based Similarity Features
School of Physics and Electronics, Hubei Normal University(湖北师范大学物理与电子科学学院);School of Electronic Science and Engineering, Nanjing University(南京大学电子科学与工程学院)
Enhancing LLM Tool Use with High-quality Instruction Data from Knowledge Graph
Ant Group, China(蚂蚁集团);School of Computer Science and Technology, Xi’an Jiaotong University, China(西安交通大学计算机科学与技术学院);School of Distance Education, Xi’an Jiaotong University, China(西安交通大学继续教育学院)
Enhancing Adversarial Transferability by Balancing Exploration and Exploitation with Gradient-Guided Sampling
School of Computer Science & Software Engineering, Shenzhen University, China(深圳大学计算机科学与软件工程学院);Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ), Shenzhen, China(广东省人工智能与数字经济发展实验室(深圳));Guangdong Provincial Key Laboratory of Intelligent Information Processing, Shenzhen University, China(广东省智能信息处理省级重点实验室);School of Computer Science, University of Exeter, U.K.(埃克塞特大学计算机科学学院);Department of Computing and Information Technology, Great Bay University, China(大鹏大学计算与信息技术系);Computer Vision Institute, School of Artificial Intelligence, Shenzhen University, China(人工智能学院计算机视觉研究所)
PankRAG: Enhancing Graph Retrieval via Globally Aware Query Resolution and Dependency-Aware Reranking Mechanism
College of Computer Science, Beijing university of technology, Beijing, China(北京理工大学计算机科学学院);Department of Computer Science and Engineering, Bologna University, Bologna, Italy(博洛尼亚大学计算机科学与工程系)
$\texttt{MixGR}$: Enhancing Retriever Generalization for Scientific Domain through Complementary Granularity
Technical University of Darmstadt(达姆施塔特工业大学);Carnegie Mellon University(卡内基梅隆大学);University of Washington(华盛顿大学);University of Pennsylvania(宾夕法尼亚大学);Tencent AI Lab(腾讯AI实验室)
LevelRAG: Enhancing Retrieval-Augmented Generation with Multi-hop Logic Planning over Rewriting Augmented Searchers
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Chinese Academy of Sciences(中国科学院);University of Chinese Academy of Sciences(中国科学院大学);Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳))