TL;DR
Retrieval-Augmented Generation (RAG) often suffers because Large Language Models (LLMs) prefer the fluent, question-focused style of generated text over the disorganized nature of raw retrieved documents, even when the generated text contains hallucinations. To fix this, the authors introduce QREAM, a plug-and-play framework that rewrites retrieved documents into a question-oriented style while strictly preserving factual accuracy. By distilling this capability into a lightweight 1B model, QREAM achieves up to an 8% accuracy boost with negligible latency overhead.
What Problem Does This Paper Address?
Standard RAG systems typically rely on two types of external context: raw retrieved documents (which are factually accurate but often messy and full of redundant info) or LLM-generated text (which is clean and question-focused but prone to hallucinations).
Interestingly, LLM "readers" exhibit a strong stylistic bias: they heavily prefer fluent, structured text that directly addresses the prompt. When presented with a mix of contexts, an LLM will frequently favor a beautifully written, hallucinated answer over a disorganized but factually correct retrieved document. The authors realize that the utility of retrieved information is severely bottlenecked by its presentation.
Methods
The authors propose QREAM (Question-oriented document Rewriting for Effective Answering Models), which transforms raw retrieved documents to match the question-focused style of generated text while keeping the facts intact. It operates via a two-stage Explore-then-Distill paradigm:
- Stage I: In-Context Stylistic Exploration (QREAM-ICL): An LLM teacher uses "stylistic seeds" (unrelated questions paired with generated background text) to iteratively rewrite retrieved documents. Crucially, using completely unrelated questions as seeds disentangles style from content, forcing the rewriter to mimic the structural pattern without hallucinating the content of the seeds.
- Stage II: Distillation via Bidirectional Denoising (QREAM-FT): Because iterative prompting can introduce noise or hallucinations, the authors implement a dual-criteria rejection sampling filter. It checks candidate rewrites on two fronts: Downstream Utility (does the rewrite actually help the reader predict the correct answer?) and Upstream Fidelity (is the rewrite factually consistent with the raw retrieval?). The purified data is then used to train a lightweight student model (Llama-3.2-1B).
Datasets
The framework was evaluated on four widely recognized Open-Domain Question Answering (ODQA) benchmarks covering both single-hop and multi-hop reasoning:
- Natural Questions (NQ)
- TriviaQA (TQA)
- HotpotQA
- 2WikiMultiHopQA (2WikiMQA)
Key Insights and Ideas
- Presentation is a Bottleneck: LLMs are easily misled by style. If a hallucinated document looks well-structured and question-focused, the LLM reader will often pick it over a messy, accurate retrieved document.
- The Student Can Outperform the Teacher: Thanks to the bidirectional denoising process, the 1B student model (QREAM-FT) learns from a much cleaner data distribution than what the 8B teacher model originally generated, allowing it to match or even exceed the teacher's accuracy.
- Disentangling Style from Content: By using unrelated questions as few-shot exemplars, the model successfully learns how to structure a document without copying the actual facts of the exemplar.
Key Results
- Substantial Accuracy Gains: QREAM consistently outperforms standard RAG pipelines and compression baselines. The gains are particularly pronounced on multi-hop datasets (HotpotQA and 2WikiMQA), where QREAM-FT improves absolute accuracy by roughly 8% over standard RAG.
- Massive Speedup: QREAM-FT (1B) delivers a ~13× speedup over the QREAM-ICL teacher (reducing latency from 2.41s to 0.18s), making it highly practical for real-time deployment.
- Neutralizing Stylistic Bias: The authors tested the models in an adversarial "Context-Conflicting" setting (where the reader is simultaneously given a correct retrieved document and an incorrect generated document). Standard RAG scored a dismal 19.4% accuracy on NQ because the reader was fooled by the style of the hallucinated text. Replacing raw retrievals with QREAM rewrites restored accuracy to 77.4%.
Limitations and Future Work
QREAM's performance is inherently tied to the quality of the initial retrieval. Because it functions as a post-processing module, it cannot fix deficiencies caused by a poor retriever (e.g., if the correct information was never fetched in the first place). The authors note that future work should explore the joint optimization of both the retrieval and rewriting processes to overcome this limitation.
Summary updated