DMA: Online RAG Alignment with Human Feedback

Yu Bai, Yukai Miao, Dawei Wang, Li Chen, Fei Long, Rundi Zhai, Dan Li, Yanyu Ren, Tianfeng Liu, Hongtao Xie, Ce Yang, Xuhui CaiarXiv 2025 · OpenReview

Abstract

Retrieval-augmented generation (RAG) systems often rely on static retrieval, limiting adaptation to evolving intent and content drift. We introduce Dynamic Memory Alignment (DMA), an online learning framework that systematically incorporates multi-granularity human feedback to align ranking in interactive settings. DMA organizes document-, list-, and response-level signals into a coherent learning pipeline: supervised training for pointwise and listwise rankers, policy optimization driven by response-level preferences, and knowledge distillation into a lightweight scorer for low-latency serving. Throughout this paper, memory refers to the model's working memory, which is the entire context visible to the LLM for In-Context Learning. We adopt a dual-track evaluation protocol mirroring deployment: (i) large-scale online A/B ablations to isolate the utility of each feedback source, and (ii) few-shot offline tests on knowledge-intensive benchmarks. Online, a multi-month industrial deployment further shows substantial improvements in human engagement. Offline, DMA preserves competitive foundational retrieval while yielding notable gains on conversational QA (TriviaQA, HotpotQA). Taken together, these results position DMA as a principled approach to feedback-driven, real-time adaptation in RAG without sacrificing baseline capability.

Introduction

Retrieval-Augmented Generation (RAG) has become the standard for grounding Large Language Models (LLMs) in factual data. However, current deployments suffer from three structural gaps: static retrieval models that fail to adapt to content drift, context bottlenecks where limited "working memory" is filled with suboptimal information, and a lack of principled feedback loops to pipe human preferences back into the retrieval stage.

DMA addresses these by framing RAG retrieval as a learnable policy. It focuses on Context Engineering: the task of optimally curating the specific information visible to the LLM's context window at any given moment.

The DMA Framework

The DMA architecture treats the RAG pipeline as a dynamic system that evolves based on active and passive human feedback. The framework operates across three primary stages: preference alignment, model warmup, and multi-task alignment.

The DMA framework integrates active and passive human feedback across multiple levels to align the RAG retrieval policy.

As shown in the framework overview, DMA captures signals at three granularities:

  1. Document-level (Pointwise): Feedback on whether a specific snippet is useful.
  2. List-level: Evaluation of whether a set of retrieved documents provides sufficient coverage.
  3. Response-level (Comparative): Direct user preference between two different generated answers.

Multi-Granularity Feedback and Optimization

To bridge the gap between complex preference modeling and real-time serving requirements, DMA employs a teacher-student distillation approach. Heterogeneous signals are used to train "teacher" models: a reward model scores document lists, and a listwise policy is optimized using Proximal Policy Optimization (PPO) to maximize that reward.

The technical pipeline for multi-task alignment, showing the transition from listwise and response-level feedback to a distilled GBDT student model.

To maintain sub-10ms latency in production, the knowledge from these high-capacity teacher models is distilled into a lightweight Gradient-Boosted Decision Tree (GBDT). This student model performs the actual reranking, ensuring the system remains responsive while benefiting from complex alignment logic.

Experimental Evaluation

DMA was evaluated through a dual-track approach involving both industrial deployment and public benchmarks.

Online Industrial Impact

In a multi-month Randomized Controlled Trial (RCT) for a major telecommunications provider, DMA improved session-level human satisfaction by +15.26 percentage points, representing a 24.57% relative improvement over strong static baselines like BGE-Reranker. A key finding was the "Hierarchy of Utility": list-level feedback proved to be the most powerful signal for improvement, outperforming fine-grained votes on individual snippets.

Offline Benchmarks

On knowledge-intensive datasets, DMA demonstrated superior performance in conversational contexts:

  • TriviaQA: 68.81% Hit@1
  • HotpotQA: 33.92% Hit@1

These results indicate that DMA not only adapts to specific industrial needs but also generalizes well to standard retrieval tasks.

Conclusion

DMA provides a principled method for aligning RAG retrieval with human intent in real-time. By redefining "memory" as the active context window and utilizing a multi-task alignment strategy, the framework achieves significant gains in user satisfaction without sacrificing latency. Future work will explore cross-layer alignment to tune retrieval and generation simultaneously, further closing the gap between information retrieval and natural language synthesis.

Summary updated

BibTeX
@misc{bai2025dma,
  author = {Yu Bai and Yukai Miao and Dawei Wang and Li Chen and Fei Long and Rundi Zhai and Dan Li and Yanyu Ren and Tianfeng Liu and Hongtao Xie and Ce Yang and Xuhui Cai},
  title = {{DMA: Online RAG Alignment with Human Feedback}},
  year = {2025},
  eprint = {2511.04880},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.04880},
}
Figure