CORD: Balancing COnsistency and Rank Distillation for Robust Retrieval-Augmented Generation

Youngwon Lee, Seung-won Hwang, Daniel F. Campos, Filip Gralinski, Zhewei Yao, Yuxiong He · DOI

Introduction

Retrieval-Augmented Generation (RAG) has become a standard for grounding Large Language Models (LLMs) in external knowledge. However, these models often suffer from position bias, where they disproportionately favor information at the beginning or end of a context window—the "lost in the middle" phenomenon. While common fixes involve training on randomized document orders to encourage order-agnosticism, this often ignores the rank prior: the inherent value of the retriever's ordering. CORD (COnsistency and Rank Distillation) addresses this by adaptively balancing consistency with the need to respect high-quality rankings.

Methodology: Consistency and Rank Distillation

CORD introduces a dual-objective framework to improve RAG robustness:

  1. Consistency Regularization (CO): The model is trained on pairs consisting of the original retriever-ordered context ($c$) and a shuffled version ($c'$). Using Jensen-Shannon Divergence (JSD), CORD ensures the model's internal probability distributions for the ground-truth answer remain stable across these variations, effectively distilling "dark knowledge" from the ordered to the unordered state.
  2. Adaptive Rank Distillation (RD): To prevent the model from "unlearning" the retriever's expertise, CORD employs score-aware sampling. It identifies the largest "gaps" in retriever confidence scores, maintaining the order of high-confidence documents while shuffling lower-confidence noise. This teaches the model to trust top-tier results while remaining resilient to permutations in the rest of the list.

The Consistency Paradox

A core insight of the CORD framework is the "Consistency Paradox." In scenarios where a retriever is highly reliable (Scenario A), forcing order-agnosticism can actually degrade performance because the model stops utilizing the valuable rank signal. Conversely, in noisy environments (Scenario B), consistency training is vital.

The Consistency Paradox: Scenario A (reliable retriever) vs. Scenario B (noisy retriever).

As shown in the figure above, CORD is designed to navigate both extremes by interpolating between perfectly ranked and totally random contexts based on the retriever's confidence.

Experimental Results

The researchers evaluated CORD using the Phi-3 3B model across diverse benchmarks, including MS MARCO, HotpotQA, and NaturalQuestions (NQ).

Comprehensive performance comparison of CORD against base models and standard fine-tuning.

Key findings include:

  • MS MARCO: CORD achieved a 44.74 ROUGE-L score. Notably, standard consistency-only approaches dropped to 36.87, highlighting the danger of ignoring rank priors in professional-grade search tasks.
  • Hallucination Mitigation: In the Multi-Needle "I don't know" (MN-IDK) task, CORD reached 98.83% accuracy, a massive improvement over the base model's 54.82%. This demonstrates a significant reduction in hallucinations when evidence is missing.
  • Generalization: CORD consistently outperformed both the base model and standard NLL-based fine-tuning across all tested datasets.

Conclusion and Future Directions

CORD demonstrates that balancing rank-awareness with order-consistency provides a "best of both worlds" strategy for RAG. While the current study focused on the 3B parameter scale, future work will explore the scalability of these distillation effects to larger models (70B+) and the impact of using different retrievers during training versus inference.

Summary updated

BibTeX
@inproceedings{lee2025cord,
  author = {Youngwon Lee and Seung-won Hwang and Daniel F. Campos and Filip Gralinski and Zhewei Yao and Yuxiong He},
  title = {{CORD: Balancing COnsistency and Rank Distillation for Robust Retrieval-Augmented Generation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-short.66},
}
Figure