Large-Scale Biomedical RAG: Corpus Scaling, Document Representation, and Efficiency Trade-offs
Organizations: HiTZ Basque Center for Language Technology, University of the Basque Country (EHU), P.º Rafael Moreno "Pitxitxi", 2, Bilbao, 48013, Biscay, Spain
Abstract
We present a controlled, large-scale evaluation of how corpus scale, document representation, and reranking affect the effectiveness and efficiency of biomedical Retrieval-Augmented Generation (RAG) systems. Retrieval collections were progressively expanded while retaining the relevant source documents, enabling consistent comparisons across corpus sizes. We compared abstract, flat full-text, and hierarchical full-text representations across first-stage retrieval, reranking, and end-to-end multiple-choice question answering. Configurations selected on development data were evaluated on five external biomedical benchmarks and a held-out test set, while retrieval latency and index storage were measured to quantify operational cost. Performance patterns observed with small or controlled collections did not consistently persist as collections grew, and the usefulness of reranking depended on the corpus and retrieval setting. RAG improved three of four model configurations across the external benchmarks, with mean gains of up to 9.6 percentage points, and improved all four configurations on the held-out test set by 10.2-30.3 points. Abstract retrieval performed best when reference evidence was abstract-aligned, whereas full-text representations were generally more effective when richer evidence was needed. Hierarchical representation matched or outperformed flat full-text retrieval in most end-to-end comparisons while requiring 67% fewer indexed units and 44-56% less storage. These findings show that corpus scale should be treated as an explicit evaluation variable in biomedical RAG, and that the most appropriate design depends on evidence format, model behavior, and operational constraints.
Figures & tables
| Reference | Max. index | Biomed. | Scaling | Doc. repr. | Efficiency |
| Borgeaud et al. [ 4 ] | 28B units | – | – | – | |
| Izacard et al. [ 13 ] | 387M units | – | – | – | – |
| Ning et al. [ 29 ] | 264M units | – | – | ||
| Tao et al. [ 42 ] | n.r. | – | – | ||
| Otegi et al. [ 31 ] | 400K units | – | – | ||
| Xiong et al. [ 48 ] | 54.2M units | – | – | – |
| Retrieval units | ||||||
| Corpus | Scale | Factor ( ) | Source docs | Abstract | Full-text | TreeRAG |
| PubMed | Control | 1.0 | 0.3K | 0.3K | 11.2K | 2.6K |
| Tiny | 6.6 | 1.8K | 1.8K | 53.4K | 15.9K | |
| Small | 44.1 | 11.8K | 11.8K | 330.6K | 105.7K | |
| Medium | 292.6 | 78.4K | 78.4K | 2.2M | 700.2K | |
| Large | 1942.2 | 520.5K | 520.5K | 14.4M | 5.2M | |
| RAG | ||||||
| Model | Corpus | Dataset | LLM-only | Abstract | Full-text | TreeRAG |
| Gemma-3 | PubMed | MMLU-Med | 57.4 | +7.2 | +7.8 | +8.5 |
| MedQA-US | 46.1 | +11.0 | +13.4 | +10.8 | ||
| MedMCQA | 44.9 | +1.8 | +5.0 | +7.4 | ||
| PubMedQA | 51.4 | +0.6 | +5.4 | +3.4 | ||
| BioASQ-Y/N | 70.2 | +8.3 | +4.7 | +8.3 | ||
Retrieval-Augmented Generation
Retrieval-augmented generation connects language models to external knowledge so answers can use current, domain-specific evidence.
See all 792 papers