Towards Adaptive Memory-Based Optimization for Enhanced Retrieval-Augmented Generation

Qitao Qin, Yucong Luo, Yihang Lu, Zhibo Chu, Xiaoman Liu, Xianwei MengACL 2025

Introduction

Retrieval-Augmented Generation (RAG) has become a cornerstone for grounding Large Language Models (LLMs) in external knowledge. However, the traditional "retrieve-then-read" paradigm often struggles with complex, multi-hop queries where information is fragmented across multiple sources. Current systems face three primary challenges: information fragmentation, a lack of strategic control over the search process, and the "noise problem," where irrelevant content in retrieved documents leads to model hallucinations.

The Amber Framework

To address these limitations, we introduce Amber (Adaptive memory-based optimization for enhanced RAG). Amber shifts the RAG process from a linear sequence to an iterative, collaborative refinement loop.

The Amber framework architecture, featuring iterative loops for content filtering, memory updating, and adaptive information collection.

The framework consists of three core modules:

  1. Multi-granular Content Filter (MCF): This module employs a two-stage filtering process. First, a fine-tuned LLM filters at the chunk level to discard irrelevant documents. Second, it performs sentence-level extraction to isolate high-signal information, significantly reducing noise before it reaches the reasoning stage.
  2. Agent-based Memory Updater (AMU): Instead of simple concatenation, Amber utilizes a triadic multi-agent system to synthesize information into a coherent "memory note." A Reviewer evaluates correctness, a Challenger identifies potential contradictions or flaws, and a Refiner synthesizes this feedback into a clean update.
  3. Adaptive Information Collector (AIC): Acting as the system's controller, the AIC determines if the current memory is sufficient to answer the query. If insufficient, it generates a new, targeted search query to bridge the knowledge gap, initiating the next iteration.

Evaluation and Results

Amber was evaluated across a spectrum of benchmarks, including single-hop (SQuAD, NQ, TriviaQA), multi-hop (2WikiMQA, HotpotQA), and long-form (ASQA) question-answering tasks.

Performance comparison (F1-score) between Amber and vanilla RAG across different retrieval depths (top-k).

The results demonstrate Amber's significant superiority over existing methods. On the complex 2WikiMQA dataset, Amber achieved an accuracy of 56.0%, a substantial improvement over vanilla RAG (35.4%) and previous state-of-the-art adaptive methods like Self-RAG (46.4%). Furthermore, Amber showed consistent performance gains across various base models, including Qwen2-7b and Llama3-8b.

Key Insights

  • Refined Memory vs. Raw Context: Synthesizing information into a distilled "memory note" helps LLMs avoid the "lost in the middle" phenomenon common with long, noisy contexts.
  • Adversarial Refinement: The inclusion of a "Challenger" agent is crucial for preventing echo chambers and reducing the likelihood of accepting hallucinated information.
  • Hierarchical Filtering: Multi-granular filtering (chunk and sentence level) is essential for maintaining high signal-to-noise ratios in the retrieved data.

Conclusion and Future Work

While Amber offers a powerful solution for complex RAG tasks, it introduces higher computational latency due to its iterative nature and multi-agent interactions. Future research will focus on optimizing these interactions for efficiency and exploring more generalizable fine-tuning strategies for the content filtering modules.

Summary updated

BibTeX
@inproceedings{qin2025towards,
  author = {Qitao Qin and Yucong Luo and Yihang Lu and Zhibo Chu and Xiaoman Liu and Xianwei Meng},
  title = {{Towards Adaptive Memory-Based Optimization for Enhanced Retrieval-Augmented Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure