<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Biomedical Evidence Retrieval with Agentic RAG and Dual Text Encoders</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Dhruv Goyal</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ema Seibert</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ryan Ding</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Matteo Migliarini</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kevin Zhu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Algoverse AI Research</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Indian Institute of Technology Bombay</institution>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Sapienza, University of Rome</institution>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>University of California</institution>
          ,
          <addr-line>Irvine</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>University of California</institution>
          ,
          <addr-line>San Diego</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2026</year>
      </pub-date>
      <abstract>
        <p>We propose an agentic RAG framework for biomedical evidence retrieval that uses iterative query refinement across PubMed and MIMIC-IV clinical notes. Using dual domain-specific encoders and self-critique loops, our system achieves competitive results on PMC-Patients and PubMedQA benchmarks, demonstrating the value of adaptive retrieval for clinical decision support.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Agentic AI</kwd>
        <kwd>Retrieval-Augmented Generation</kwd>
        <kwd>Clinical AI</kwd>
        <kwd>Healthcare</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Retrieval-Augmented Generation (RAG) has
emerged as a leading approach for
evidencebased retrieval, combining dense retrieval with
generation [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. In medicine, this paradigm
was adapted using domain-specific models like
BioBERT[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] to handle specialized
terminology [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], yet traditional RAG pipelines are
often static, retrieving once without adapting
their reasoning. A more advanced paradigm,
Agentic RAG, extends this by embedding
autonomous decision-making and iterative
relfection into the retrieval loop [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. These
systems use agentic control flows, such as
corrective feedback or query routing, to achieve
more adaptive and reliable reasoning [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ].
To address the need for structured evaluation
in this area, this work benchmarks an
agentic RAG framework on established biomedical
QA datasets [
        <xref ref-type="bibr" rid="ref7 ref8 ref9">7, 8, 9</xref>
        ] and the Patients-PMC
benchmark [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] to assess its generalization for
clinical cohort discovery.
      </p>
      <p>MIMIC-IV
Pubmed</p>
      <p>ClinicalBERT
PubMedBERT</p>
      <p>Question</p>
      <p>Clinical Query
Literature Lookup</p>
      <p>Past Records
retrieve
Agent
re-rank
reflect
refine
Evidence Retrieval
LLM Summary
Agent Reasoning</p>
      <p>Generate
85.23
64.44
48.22
15.03
10.58</p>
    </sec>
    <sec id="sec-2">
      <title>2. Methodology</title>
      <p>
        Our system employs an agentic RAG framework that iteratively refines queries and integrates evidence
from biomedical literature (PubMed) and clinical notes (MIMIC-IV). The core is a dual-encoder retrieval
pipeline orchestrated by an agentic control loop (Figure 1). We encode queries and documents using two
specialized models: PubMedBERT for literature and ClinicalBERT for clinical notes, enabling parallel
searches [
        <xref ref-type="bibr" rid="ref3">3, 11</xref>
        ]. Retrieved documents are then merged and refined using a cross-encoder reranker.
      </p>
      <p>Instead of a single pass, an agentic loop assesses evidence quality. If deemed insuficient, the agent
triggers a refinement action before re-querying, employing two main strategies: Pseudo-Relevance
Feedback (PRF), which refines the query embedding using top-ranked documents, and Query
Decomposition for complex questions. The loop terminates upon result convergence or after a fixed number of
iterations. Finally, a large language model (LLM) synthesizes the refined evidence into a concise, cited answer.
Our full code is available at https://github.com/Dhruv-Git21/Agentic-Biomedical-Retrieval-System.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Results</title>
      <p>
        We evaluate our agentic retrieval system on the PMC-Patients benchmark: covering Patient-to-Article
Retrieval (PAR) and Patient-to-Patient Retrieval (PPR) [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]; and the reasoning-free setting of PubMedQA.
      </p>
      <p>As shown in Table 1, our framework achieves competitive results across all tasks. On the PAR task,
the system attains high performance. This strong result is expected, as PAR is a known-item retrieval
task where high semantic overlap exists between the patient description and the target article. While
the model also performs competitively on the more challenging PPR task, the PAR scores highlight the
system’s strength in precise evidence matching.</p>
      <p>On PubMedQA, our framework attains an accuracy of 82.09%, outperforming key baselines such
as BioBERT (80.80%). This demonstrates its efectiveness on standard biomedical question-answering
benchmarks Table 2.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion</title>
      <p>In this work, we demonstrated the efectiveness of an agentic RAG framework for complex biomedical
retrieval. Our system achieved competitive performance on the PMC-Patients and PubMedQA
benchmarks, highlighting the advantages of agentic strategies over static pipelines. By enhancing retrieval
precision and adaptability, these systems represent a promising path toward developing more reliable
tools for evidence-based medicine.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Related Works</title>
      <p>
        Biomedical RAG Foundational RAG models combined dense retrieval with generation for
opendomain QA [
        <xref ref-type="bibr" rid="ref1">1, 16</xref>
        ]. In medicine, this paradigm was adapted using domain-specific pretrained models
like BioBERT and PubMedBERT to handle specialized terminology [
        <xref ref-type="bibr" rid="ref2 ref3">2, 3</xref>
        ]. More recent systems like
Med-PaLM 2 have integrated retrieval-based grounding with instruction tuning to achieve expert-level
performance on medical benchmarks [17]. These works establish the value of domain-specific retrieval
but often rely on single-pass, non-adaptive pipelines.
      </p>
      <p>
        Agentic and Hybrid Retrieval To overcome the limitations of static retrieval, recent research has
focused on more dynamic, agentic architectures. Methods like Corrective RAG (CRAG) introduce
self-reflection, where the system assesses retrieval quality and triggers query reformulation if the
evidence is weak [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Adaptive RAG classifies queries to follow diferent reasoning paths (e.g., simple
vs. multi-hop) [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], while others integrate knowledge graphs to support complex, multi-step biomedical
reasoning [18]. These approaches motivate our focus on evaluating the practical benefits of such agentic
strategies. To improve retrieval quality, hybrid methods combining lexical (e.g., BM25) and semantic
search are common [19, 20], and query expansion using medical ontologies like UMLS remains a critical
step for bridging the vocabulary gap between user questions and scientific literature [21, 22].
Medical QA Benchmarks Our evaluation relies on established medical question-answering
benchmarks that test a range of reasoning skills. These include PubMedQA (yes/no/maybe questions based
on abstracts), BioASQ (idealized answer generation from multiple documents), and MedMCQA
(largescale multiple-choice questions from medical exams) [
        <xref ref-type="bibr" rid="ref7 ref8 ref9">7, 8, 9</xref>
        ]. These datasets provide a standardized
foundation for assessing the performance of RAG systems.
Thanks to Algoverse Research for hosting and sponsoring this research. Also thanks to Kevin Han and
Ben Liu for their support and feedback early in the development of this idea.
      </p>
    </sec>
    <sec id="sec-6">
      <title>Declaration on Generative AI</title>
      <p>During the preparation of this work, the authors used Claude and other Large Language Models in order
to: rephrase paragraphs, shorten text passages, and assist in code writing. After using these services, the
authors reviewed and edited the content as needed and take full responsibility for the publication’s content.
[11] E. Alsentzer, J. R. Murphy, W. Boag, W.-H. Weng, D. Jin, T. Naumann, M. B. A. McDermott,
Publicly available clinical BERT embeddings, in: Proceedings of the 2nd Clinical Natural Language
Processing Workshop (ClinicalNLP@NAACL), 2019, pp. 72–78.
[12] Y. Zhang, H. Cheng, Z. Shen, X. Liu, Y.-Y. Wang, J. Gao, Pre-training multi-task contrastive learning
models for scientific literature understanding, in: Findings of EMNLP’23, 2023, pp. 12259–12275.
[13] Y. Gu, R. Tinn, H. Cheng, et al., Domain-specific language model pretraining for biomedical nlp,
arXiv preprint arXiv:2007.15779 (2020).
[14] M. Yasunaga, J. Leskovec, P. Liang, Biolinkbert: Pre-trained biomedical language model for
biomedical text mining, in: Findings of ACL 2022, 2022.
[15] R. Luo, et al., Biogpt: Generative pre-trained transformer for biomedical text generation and
mining, Briefings in Bioinformatics (2022).
[16] K. Guu, K. Lee, Z. Tung, P. Pasupat, M.-W. Chang, Realm: Retrieval-augmented language model
pre-training, in: Proceedings of the 37th International Conference on Machine Learning (ICML),
PMLR, 2020. URL: https://proceedings.mlr.press/v119/guu20a/guu20a.pdf.
[17] K. Singhal, T. Tu, J. Gottweis, et al., Toward expert-level medical question answering with large
language models, Nature Medicine (2024). URL: https://www.nature.com/articles/s41591-024-03423-7.
doi:10.1038/s41591-024-03423-7.
[18] N. Matsumoto, J. Moran, H. Choi, M. E. Hernandez, M. Venkatesan, P. Wang, J. H. Moore, Kragen:
a knowledge graph-enhanced rag framework for biomedical problem solving using large language
models, Bioinformatics 40 (2024) btae353. URL: https://academic.oup.com/bioinformatics/article/
40/6/btae353/7687047. doi:10.1093/bioinformatics/btae353.
[19] S. Robertson, H. Zaragoza, The probabilistic relevance framework: Bm25 and beyond, Foundations
and Trends in Information Retrieval 3 (2009) 333–389.
[20] M. Luo, A. Mitra, T. Gokhale, C. Baral, Improving biomedical information retrieval with neural
retrievers, in: AAAI, 2022. URL: https://arxiv.org/abs/2201.07745.
[21] A. R. Aronson, Efective mapping of biomedical text to the umls metathesaurus: The metamap
program, in: Proceedings of the AMIA Symposium, 2001, pp. 17–21.
[22] F. Liu, I. Vulić, A. Korhonen, N. Collier, Self-alignment pretraining for biomedical entity
representations, in: Findings of ACL, 2021. URL: https://arxiv.org/abs/2010.11784.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>P.</given-names>
            <surname>Lewis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Perez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Piktus</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Petroni</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Karpukhin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Goyal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Küttler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lewis</surname>
          </string-name>
          , W.-t. Yih,
          <string-name>
            <given-names>T.</given-names>
            <surname>Rocktäschel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Riedel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Kiela</surname>
          </string-name>
          ,
          <article-title>Retrieval-augmented generation for knowledge-intensive nlp tasks</article-title>
          ,
          <source>in: Advances in Neural Information Processing Systems (NeurIPS)</source>
          ,
          <year>2020</year>
          . URL: https: //arxiv.org/abs/
          <year>2005</year>
          .11401.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>J.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Yoon</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Kim</surname>
          </string-name>
          , et al.,
          <article-title>Biobert: a pre-trained biomedical language representation model for biomedical text mining</article-title>
          ,
          <source>Bioinformatics</source>
          <volume>36</volume>
          (
          <year>2020</year>
          )
          <fpage>1234</fpage>
          -
          <lpage>1240</lpage>
          . URL: https://academic.oup.com/ bioinformatics/article/36/4/1234/5566506.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Gu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Tinn</surname>
          </string-name>
          , H. Cheng, et al.,
          <article-title>Domain-specific language model pretraining for biomedical natural language processing</article-title>
          ,
          <source>ACM Transactions on Computing for Healthcare</source>
          (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>A.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Ehtesham</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Kumar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Talaei</surname>
          </string-name>
          <string-name>
            <surname>Khoei</surname>
          </string-name>
          ,
          <article-title>Agentic retrieval-augmented generation: A survey on agentic rag</article-title>
          ,
          <source>arXiv preprint arXiv:2501.09136</source>
          (
          <year>2025</year>
          ). URL: https://arxiv.org/abs/2501. 09136. doi:
          <volume>10</volume>
          .48550/arXiv.2501.09136.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>S.-Q.</given-names>
            <surname>Yan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.-C.</given-names>
            <surname>Gu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zhu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.-H.</given-names>
            <surname>Ling</surname>
          </string-name>
          ,
          <article-title>Corrective retrieval augmented generation</article-title>
          ,
          <source>arXiv preprint arXiv:2401.15884</source>
          (
          <year>2024</year>
          ). URL: https://arxiv.org/abs/2401.15884. doi:
          <volume>10</volume>
          .48550/arXiv. 2401.15884.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>S.</given-names>
            <surname>Jeong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Baek</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Cho</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. J.</given-names>
            <surname>Hwang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Park</surname>
          </string-name>
          , Adaptive-RAG:
          <article-title>Learning to adapt retrieval-augmented large language models through question complexity, in: Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), Association for Computational Linguistics</article-title>
          , Mexico City, Mexico,
          <year>2024</year>
          , pp.
          <fpage>7036</fpage>
          -
          <lpage>7050</lpage>
          . URL: https://aclanthology.org/
          <year>2024</year>
          .
          <article-title>naacl-long</article-title>
          .
          <volume>389</volume>
          /. doi:
          <volume>10</volume>
          .18653/ v1/
          <year>2024</year>
          .
          <article-title>naacl-long</article-title>
          .
          <volume>389</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Q.</given-names>
            <surname>Jin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Dhingra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W. W.</given-names>
            <surname>Cohen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Lu</surname>
          </string-name>
          ,
          <article-title>Pubmedqa: A dataset for biomedical research question answering</article-title>
          ,
          <source>in: Proceedings of EMNLP-IJCNLP</source>
          <year>2019</year>
          ,
          <article-title>Association for Computational Linguistics</article-title>
          , Hong Kong, China,
          <year>2019</year>
          , pp.
          <fpage>2567</fpage>
          -
          <lpage>2577</lpage>
          . URL: https://aclanthology.org/D19-1259/.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>G.</given-names>
            <surname>Tsatsaronis</surname>
          </string-name>
          , G. Balikas,
          <string-name>
            <given-names>P.</given-names>
            <surname>Malakasiotis</surname>
          </string-name>
          , I. Partalas,
          <string-name>
            <given-names>M.</given-names>
            <surname>Zschunke</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. R.</given-names>
            <surname>Alvers</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Weissenborn</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Krithara</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Petridis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Polychronopoulos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Almirantis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Pavlopoulos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Baskiotis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Gallinari</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Artières</surname>
          </string-name>
          , A.
          <string-name>
            <surname>-C. Ngonga Ngomo</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          <string-name>
            <surname>Heino</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          <string-name>
            <surname>Gaussier</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Barrio-Alvers</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Schroeder</surname>
            , I. Androutsopoulos,
            <given-names>G. Paliouras,</given-names>
          </string-name>
          <article-title>An overview of the bioasq large-scale biomedical semantic indexing and question answering competition</article-title>
          ,
          <source>BMC Bioinformatics 16</source>
          (
          <year>2015</year>
          )
          <article-title>138</article-title>
          . URL: https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-015-0564-6. doi:
          <volume>10</volume>
          .1186/ s12859-015-0564-6.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>A.</given-names>
            <surname>Pal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. K.</given-names>
            <surname>Umapathi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Sankarasubbu</surname>
          </string-name>
          ,
          <article-title>Medmcqa: A large-scale multi-subject multi-choice dataset for medical domain question answering</article-title>
          ,
          <source>in: Proceedings of the Conference on Health, Inference, and Learning</source>
          , volume
          <volume>174</volume>
          ,
          <string-name>
            <surname>PMLR</surname>
          </string-name>
          ,
          <year>2022</year>
          , pp.
          <fpage>248</fpage>
          -
          <lpage>260</lpage>
          . URL: https://proceedings.mlr.press/ v174/pal22a.html.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Jin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Peng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Yu</surname>
          </string-name>
          ,
          <article-title>A large-scale dataset of patient summaries for retrieval-based clinical decision support systems</article-title>
          .,
          <source>Scientific data 10 1</source>
          (
          <year>2023</year>
          )
          <article-title>909</article-title>
          . URL: https://api.semanticscholar. org/CorpusID:266360591.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>