mlsanityData to 14 Oct 2026

Accurate and Energy Efficient: Local Retrieval-Augmented Generation Models Outperform Commercial Large Language Models in Medical Tasks

arXiv 2506.20009 ↗First posted 24 Jun 2025cs.AI cs.CLcited by 2

On the map: Retrieval-augmented generation → Medical and biomedical RAG

Abstract (arXiv)

Background The increasing adoption of Artificial Intelligence (AI) in healthcare has sparked growing concerns about its environmental and ethical implications. Commercial Large Language Models (LLMs), such as ChatGPT and DeepSeek, require substantial resources, while the utilization of these systems for medical purposes raises critical issues regarding patient privacy and safety. Methods We developed a customizable Retrieval-Augmented Generation (RAG) framework for medical tasks, which monitors its energy usage and CO2 emissions. This system was then used to create RAGs based on various open-source LLMs. The tested models included both general purpose models like llama3.1:8b and medgemma-4b-it, which is medical-domain specific. The best RAGs performance and energy consumption was compared to DeepSeekV3-R1 and OpenAIs o4-mini model. A dataset of medical questions was used for the evaluation. Results Custom RAG models outperformed commercial models in accuracy and energy consumption. The RAG model built on llama3.1:8B achieved the highest accuracy (58.5%) and was significantly better than other models, including o4-mini and DeepSeekV3-R1. The llama3.1-RAG also exhibited the lowest energy consumption and CO2 footprint among all models, with a Performance per kWh of 0.52 and a total CO2 emission of 473g. Compared to o4-mini, the llama3.1-RAG achieved 2.7x times more accuracy points per kWh and 172% less electricity usage while maintaining higher accuracy. Conclusion Our study demonstrates that local LLMs can be leveraged to develop RAGs that outperform commercial, online LLMs in medical tasks, while having a smaller environmental impact. Our modular framework promotes sustainable AI development, reducing electricity usage and aligning with the UNs Sustainable Development Goals.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Medical and biomedical RAG, one of 15 directions in Retrieval-augmented generation. Builds on 11 of its 24 references that are in the map. First posted on arXiv 24 Jun 2025.

Builds on

11 of 24 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024Benchmarking Retrieval-Augmented Generation for Medicine20 Feb

Other references · 10

  1. 2020What Disease does this Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Examscited by 1,356
  2. 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,288
  3. 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,254
  4. 2024Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preferencecited by 1,184
  5. 2024The Faiss librarycited by 376
  6. 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 170
  7. 2025How Hungry is AI? Benchmarking Energy, Water, and Carbon Footprint of LLM Inferencecited by 76
  8. 2025Holistically Evaluating the Environmental Impact of Creating Language Modelscited by 26
  9. 2024ORAN-Bench-13K: An Open Source Benchmark for Assessing LLMs in Open Radio Access Networkscited by 24
  10. 2025Prompt engineering and its implications on the energy consumption of Large Language Modelscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024oRetrieval Augmented Generation for 10 Large Language Models and its Generalizability in Assessing Medical Fitness
  2. 2024Development and Testing of Retrieval Augmented Generation in Large Language Models -- A Case Study Report
  3. 2025Retrieval-Augmented Generation in Medicine: A Scoping Review of Technical Implementations, Clinical Applications, and Ethical Considerations
  4. 2026Pursuing Best Industrial Practices for Retrieval-Augmented Generation in the Medical Domain
  5. 2025Rethinking Retrieval-Augmented Generation for Medicine: A Large-Scale, Systematic Expert Evaluation and Practical Insights
  6. 2025Retrieval Augmented Generation Evaluation for Health Documents
  7. 2024A MapReduce Approach to Effectively Utilize Long Context Information in Retrieval Augmented Language Models
  8. 2025Leveraging Language Models and RAG for Efficient Knowledge Discovery in Clinical Environments