AlignRAG: An Adaptable Framework for Resolving Misalignments in Retrieval-Aware Reasoning of RAG

Jiaqi Wei, Hao Zhou, Xiang Zhang, Di Zhang, Zijie Qiu, Jinzhe Li, Wanli Ouyang, Siqi Sun · OpenReview

Abstract

Retrieval-augmented generation (RAG) has become a widely adopted paradigm for enabling knowledge-grounded large language models (LLMs). However, standard RAG pipelines often fail to ensure that model reasoning remains consistent with the evidence retrieved, leading to factual inconsistencies or unsupported conclusions. In this work, we reinterpret RAG as Retrieval-Augmented Reasoning and identify a central but underexplored problem: Reasoning Misalignment—the divergence between an LLM's internal reasoning trajectory and the evidential constraints provided by retrieval. To address this issue, we propose AlignRAG, a novel iterative framework grounded in Critique-Driven Alignment (CDA). At the heart of AlignRAG lies a contrastive critique synthesis mechanism that generates retrieval-sensitive critiques while mitigating self-bias. This mechanism trains a dedicated retrieval-augmented Critic Language Model (CLM) using labeled critiques that distinguish between evidence-aligned and misaligned reasoning. Empirical evaluations show that our 8B-parameter CLM improves performance over the Self-Refine baseline by 12.1% on out-of-distribution tasks and outperforms a standard 72B-parameter CLM by 2.2%, while remaining compatible with existing RAG architectures as a plug-and-play module.

Introduction: The Reasoning Misalignment Problem

While significant research has focused on improving retrieval and generation components of RAG, the "Reasoning Gap"—where models ignore or contradict retrieved evidence—remains a critical failure mode. We identify three primary types of Reasoning Misalignment:

  1. Relevance Misjudgment: The model fails to recognize the relevance of retrieved information.
  2. Query-Evidence Mapping Failure: The model cannot connect specific query components to the provided evidence.
  3. Synthesis Error: The model understands the evidence but fails to integrate it, often defaulting to internal biases.

The AlignRAG Framework

AlignRAG treats reasoning as an iterative, optimizable process rather than a single-shot generation. The framework introduces a dedicated Critic Language Model (CLM) to evaluate and refine reasoning paths.

Overview of the AlignRAG framework, illustrating the retrieval process, contextual granularity hierarchy, and contrastive critique synthesis for training the CLM.

Critique-Driven Alignment (CDA)

Instead of one pass, the system enters a loop. An initial response is generated, the CLM evaluates it against the evidence, and the generator refines the answer based on that critique. To make the system efficient, the CLM can output a special [Good] token to stop iterations dynamically.

Contrastive Critique Synthesis (CCS)

To overcome "self-preference bias," where models favor their own outputs, we utilize CCS. The CLM is trained on pairs of "weak" (misaligned) and "strong" (aligned) reasoning paths, teaching it to specifically identify where logic deviates from retrieved text.

Contextual Granularity Hierarchy

The CLM is trained on a diverse dataset where evidence quality ranges from "not relevant" to "complete." This ensures robustness against the noisy retrieval common in real-world applications.

Experimental Results

We evaluated AlignRAG across seven benchmarks, including in-domain (e.g., PopQA, TriviaQA) and out-of-distribution (HotpotQA, SQuAD) datasets.

Average performance comparison between Vanilla RAG, Self-Refine, and AlignRAG (Ours) across In-Domain and Out-of-Distribution tasks.

Key findings include:

  • Efficiency and Scale: A specialized 8B-parameter CLM outperformed a general 72B-parameter CLM by 2.2%, demonstrating that targeted critique training is more effective than raw scale.
  • Robustness: AlignRAG improved performance over the "Self-Refine" baseline by 12.1% on out-of-distribution tasks, showcasing strong generalization capabilities.
  • Plug-and-Play Utility: The framework acts as a modular addition to existing RAG pipelines, providing immediate accuracy boosts without requiring architectural changes to the base generator.

Conclusion

AlignRAG addresses the fundamental issue of reasoning misalignment in RAG systems. By shifting the focus from "generating a string" to "optimizing a reasoning artifact" through a dedicated, contrastively-trained critic, we significantly improve the factual reliability and robustness of knowledge-grounded LLMs.

Summary updated

BibTeX
@misc{wei2025alignrag,
  author = {Jiaqi Wei and Hao Zhou and Xiang Zhang and Di Zhang and Zijie Qiu and Wei Wei and Jinzhe Li and Wanli Ouyang and Siqi Sun},
  title = {{AlignRAG: An Adaptable Framework for Resolving Misalignments in Retrieval-Aware Reasoning of RAG}},
  year = {2025},
  eprint = {2504.14858},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.14858},
}
Figure