Hypothesis-Conditioned Query Rewriting for Decision-Useful Retrieval
Organizations: Graduate School of AI, KAIST, Republic of Korea · School of Electrical Engineering, KAIST, Republic of Korea · Department of Industrial Engineering, Yonsei University, Republic of Korea
Abstract
Retrieval-Augmented Generation (RAG) improves Large Language Models (LLMs) by grounding generation in external, non-parametric knowledge. However, when a task requires choosing among competing options, simply grounding generation in broadly relevant context is often insufficient to drive the final decision. Existing RAG methods typically rely on a single initial query, which often favors topical relevance over decision-relevant evidence, and therefore retrieves background information that can fail to discriminate among answer options. To address this issue, here we propose Hypothesis-Conditioned Query Rewriting (HCQR), a training-free pre-retrieval framework that reorients RAG from topic-oriented retrieval to evidence-oriented retrieval. HCQR first derives a lightweight working hypothesis from the input question and candidate options, and then rewrites retrieval into three targeted queries that seek evidence to: (1) support the hypothesis, (2) distinguish it from competing alternatives, and (3) verify salient clues in the question. This approach enables context retrieval that is more directly aligned with answer selection, allowing the generator to confirm or overturn the initial hypothesis based on the retrieved evidence. Experiments on MedQA and MMLU-Med show that HCQR consistently outperforms single-query RAG and re-rank/filter baselines, improving average accuracy over Simple RAG by 5.9 and 3.6 points, respectively. Code is available at https://anonymous.4open.science/r/HCQR-1C2E.
Figures & tables
| MedQA | MMLU-Med | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Method | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Average | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Average |
| CoT | 58.0 | 69.0 | 72.8 | 84.1 | 71.0 | 66.3 | 75.0 | 82.9 | 90.2 | 78.6 |
| Simple RAG | 55.6 | 66.8 | 71.3 | 82.7 | 69.1 | 64.5 | 74.7 | 81.8 | 88.9 | 77.5 |
| Rerank-RAG | 56.8 | 67.3 | 72.1 | 83.3 | 69.9 | 67.1 | 75.8 | 82.3 | 90.1 | 78.8 |
| Rewriting | 58.9 | 67.5 | 73.1 | 83.3 | 70.7 | 67.0 | 74.7 | 82.5 | 88.8 | 78.2 |
| HyDE | 61.0 | 69.3 | 71.4 | 82.9 | 71.1 | 67.8 | 76.5 | 82.6 | 89.4 | 79.1 |
| MedQA | MMLU-Med | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Method | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Average | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Average |
| Simple RAG | 30.0 | 30.0 | 30.0 | 30.0 | 30.0 | 48.7 | 48.7 | 48.7 | 48.7 | 48.7 |
| Rerank-RAG | 44.1 | 44.1 | 44.1 | 44.1 | 44.1 | 56.8 | 56.8 | 56.8 | 56.8 | 56.8 |
| Rewriting | 45.2 | 51.2 | 62.2 | 65.6 | 56.1 | 51.4 | 53.7 | 56.7 | 59.1 | 55.3 |
| HyDE | 51.6 | 54.5 | 52.8 | 54.6 | 53.4 | 43.0 | 46.2 | 44.3 | 46.3 | 44.9 |
| MAIN-RAG | 23.7 | 26.4 | 24.7 | 26.7 | 25.4 | 35.6 | 36.7 | 33.7 | 36.5 | 35.6 |
| Method | Entailed | Useful | Not Useful |
|---|---|---|---|
| Simple RAG | 14.3 | 25.1 | 60.7 |
| Rerank-RAG | 19.9 | 30.6 | 49.5 |
| Rewriting | 19.6 | 36.1 | 44.3 |
| HyDE | 16.6 | 32.5 | 50.8 |
| MAIN-RAG | 11.6 | 18.9 | 69.5 |
| HCQR (ours) | 34.7 | 41.5 | 23.8 |
| Label | MedQA | MMLU-Med |
|---|---|---|
| Entailed | 94.4 / +8.2 | 95.4 / +5.1 |
| Useful | 77.9 / +4.2 | 83.9 / +1.3 |
| Not Useful | 57.6 / -5.8 | 70.2 / -3.2 |
| Method | MedQA | MMLU-Med |
|---|---|---|
| Rewriting | 70.7 | 78.2 |
| Rewriting options | 71.3 | 79.2 |
| HCQR options | 73.1 | 79.9 |
| HCQR | 75.0 | 81.1 |
| Method | MedQA | MMLU-Med |
|---|---|---|
| HCQR | 75.0 | 81.1 |
| HCQR (Support) | 72.4 | 79.0 |
| HCQR (Distinction) | 73.2 | 80.1 |
| HCQR (Key Features) | 73.0 | 80.5 |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| MedQA | MMLU-Med | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Method | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Average | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Average |
| Rewriting | 58.9 | 67.5 | 73.1 | 83.3 | 70.7 | 67.0 | 74.7 | 82.5 | 88.8 | 78.2 |
| Rewriting options | 57.0 | 68.3 | 75.8 | 84.1 | 71.3 | 67.5 | 77.2 | 83.7 | 88.4 | 79.2 |
| HCQR options | 61.1 | 71.6 | 75.3 | 84.5 | 73.1 | 69.1 | 77.3 | 83.7 | 89.4 | 79.9 |
| HCQR (ours) | 63.4 | 73.0 | 77.9 | 85.8 | 75.0 | 68.6 | 79.7 | 85.4 | 90.6 | 81.1 |
| MedQA | MMLU-Med | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Method | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Average | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Average |
| HCQR (ours) | 63.4 | 73.0 | 77.9 | 85.8 | 75.0 | 68.6 | 79.7 | 85.4 | 90.6 | 81.1 |
| HCQR | 62.1 | 70.1 | 73.8 | 83.5 | 72.4 | 66.9 | 77.1 | 83.0 | 88.9 | 79.0 |
| HCQR | 61.2 | 71.5 | 74.0 | 86.3 | 73.2 | 69.2 | 78.7 | 83.4 | 89.0 | 80.1 |
| HCQR | 61.3 | 70.9 | 74.3 | 85.6 | 73.0 | 68.2 | 77.8 | 86.0 | 90.1 | 80.5 |
| MedQA | MMLU-Med | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Method | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Average | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Average |
| Rewriting | 45.2 | 51.2 | 62.2 | 65.6 | 56.1 | 51.4 | 53.7 | 56.7 | 59.1 | 55.3 |
| Rewriting options | 51.1 | 62.9 | 71.8 | 76.4 | 65.6 | 56.8 | 61.3 | 64.8 | 66.3 | 62.3 |
| HCQR options | 61.0 | 70.5 | 70.5 | 80.5 | 70.6 | 57.0 | 61.1 | 64.2 | 67.5 | 62.4 |
| HCQR (ours) | 73.4 | 81.8 | 83.2 | 89.8 | 82.1 | 65.8 | 69.1 | 72.5 | 73.7 | 70.3 |
| MedQA | MMLU-Med | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Method | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Average | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Average |
| HCQR (ours) | 73.4 | 81.8 | 83.2 | 89.8 | 82.1 | 65.8 | 69.1 | 72.5 | 73.7 | 70.3 |
| HCQR | 55.0 | 62.1 | 66.5 | 70.9 | 63.6 | 48.5 | 52.3 | 55.2 | 55.8 | 53.0 |
| HCQR | 60.8 | 71.7 | 70.1 | 80.4 | 70.8 | 53.5 | 57.4 | 61.8 | 64.2 | 59.2 |
| HCQR | 63.1 | 73.0 | 74.2 | 82.6 | 73.2 | 51.6 | 57.0 | 60.8 | 63.0 | 58.1 |
| MedQA | MMLU-Med | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | Label | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Avg. | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Avg. |
| Simple RAG | Entailed | 6.0 | 6.0 | 6.0 | 6.0 | 6.0 | 22.5 | 22.5 | 22.5 | 22.5 | 22.5 |
| Useful | 24.0 | 24.0 | 24.0 | 24.0 | 24.0 | 26.2 | 26.2 | 26.2 | 26.2 | 26.2 | |
| Not Useful | 70.0 | 70.0 | 70.0 | 70.0 | 70.0 | 51.3 | 51.3 | 51.3 | 51.3 | 51.3 | |
| Rerank-RAG | Entailed | 10.7 | 10.7 | 10.7 | 10.7 | 10.7 | 29.1 | 29.1 | 29.1 | 29.1 | 29.1 |
| Useful | 33.4 | 33.4 | 33.4 | 33.4 | 33.4 | 27.7 | 27.7 | 27.7 | 27.7 | 27.7 | |
| MedQA | MMLU-Med | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | Label | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Avg. | Llama3.2 3B | Llama3.1 8B | Qwen3 4B | Qwen3 30B | Avg. |
| Simple RAG | Entailed | 93.5 / +9.1 | 93.5 / +9.1 | 93.5 / +9.1 | 93.5 / +9.1 | 93.5 / +9.1 | 97.1 / +6.1 | 97.1 / +6.1 | 97.1 / +6.1 | 97.1 / +6.1 | 97.1 / +6.1 |
| Useful | 85.6 / +5.9 | 85.6 / +5.9 | 85.6 / +5.9 | 85.6 / +5.9 | 85.6 / +5.9 | 88.1 / +0.7 | 88.1 / +0.7 | 88.1 / +0.7 | 88.1 / +0.7 | 88.1 / +0.7 | |
| Not Useful | 64.5 / -4.9 | 64.5 / -4.9 | 64.5 / -4.9 | 64.5 / -4.9 | 64.5 / -4.9 | 71.9 / -5.2 | 71.9 / -5.2 | 71.9 / -5.2 | 71.9 / -5.2 | 71.9 / -5.2 | |
| Rerank-RAG | Entailed | 97.8 / +8.1 | 97.8 / +8.1 | 97.8 / +8.1 | 97.8 / +8.1 | 97.8 / +8.1 | 95.6 / +6.0 | 95.6 / +6.0 | 95.6 / +6.0 | 95.6 / +6.0 | 95.6 / +6.0 |
| Useful | 81.6 / +5.2 | 81.6 / +5.2 | 81.6 / +5.2 | 81.6 / +5.2 | 81.6 / +5.2 | 82.1 / -2.0 | 82.1 / -2.0 | 82.1 / -2.0 | 82.1 / -2.0 | 82.1 / -2.0 | |
Retrieval-Augmented Generation
Retrieval-augmented generation connects language models to external knowledge so answers can use current, domain-specific evidence.
See all 792 papers