Evaluating the Effectiveness of Cost-Efficient Large Language Models in Benchmark Biomedical Tasks

Israt Jahan, Md Tahmid Rahman Laskar, Chun Peng, Jimmy HuangarXiv 2025 · arXiv

TL;DR

This paper provides a comprehensive evaluation of cost-efficient, smaller Large Language Models (LLMs) across a variety of biomedical text and multimodal image tasks. The authors demonstrate that no single model dominates across the board, and strategically selected open-source models (<13B parameters) can match or even outperform closed-source counterparts while ensuring data privacy and lower inference costs.

What Problem Does This Paper Address?

While massive Large Language Models (LLMs) show immense promise in medicine—from drug discovery to automated radiology reports—their real-world deployment remains severely bottlenecked. The primary culprits are high computational and API costs, data annotation overhead, and severe privacy concerns associated with sending sensitive patient data to external APIs.

To make clinical AI practical, researchers are turning to smaller, cost-efficient models. However, we have lacked a systematic, head-to-head benchmarking of these lightweight models, particularly on multimodal tasks that combine text and medical imagery. This paper fills that gap by evaluating how well budget-friendly open-source and closed-source LLMs perform on benchmark biomedical tasks.

Methods

The authors evaluated the models in a zero-shot setting (meaning the models received no task-specific training data or examples in the prompt) using a single NVIDIA A100 GPU.

They compared two categories of cost-efficient models:

  1. Closed-source lightweight APIs: GPT-4o-Mini, Gemini-1.5-Flash, and Claude-3-Haiku.
  2. Open-source models (<13B parameters):
  3. Text tasks: LLaMA-3.1-8B-Instruct, Qwen-2.5-7B-Instruct, Mistral-7B-v0.3-Instruct, Phi-3.5-Mini-3.8B-Instruct, and two reasoning-focused distilled models (DeepSeek-R1-Distill-Qwen-7B and DeepSeek-R1-Distill-LLaMA-8B).
  4. Multimodal tasks: Phi-3.5-Vision, Qwen-2-VL, LLaVA-Next (Mistral-7B), Janus-Pro-7B, and LLaMA-3.2-11B-Vision.

Performance was measured using standard metrics: Accuracy, Precision, Recall, and F1-score for classification/NER, and ROUGE and BERTScore for generative tasks.

Datasets

The benchmarking suite spanned seven distinct datasets across two modalities:

Figure 1. An overview of the biomedical tasks evaluated in this paper. The images for ChEBI-20-MM and PathVQA are taken from Liu et al. [4] and He et al. [5].

Biomedical Text Data

  • Hallmarks of Cancer (HoC): Text classification across 10 cancer-related categories.
  • NCBI-disease: Named Entity Recognition (NER) for extracting disease entities.
  • PubMedQA: Question answering based on biomedical research articles.
  • MediQA-QS & MediQA-ANS: Medical question and answer summarization datasets.

Biomedical Image Data (Multimodal)

  • ChEBI-20-MM: Generating text captions from molecular structure images.
  • PathVQA: Visual question answering (binary Yes/No) on pathology images.

Key Insights and Ideas

  • No "One Model to Rule Them All": Specialization beats generalization. GPT-4o-Mini excels at text classification (HoC), Gemini-1.5-Flash dominates disease extraction (NCBI-disease), and Claude-3-Haiku takes the crown for medical question answering (PubMedQA).
  • Open-Source is Highly Competitive: For text tasks, open-source models like Qwen-2.5-7B-Instruct perform on par with the best closed-source models. In fact, LLaMA-3.1-8B-Instruct achieved the highest score of all tested models on the MediQA-ANS summarization task.
  • The Multimodal Pathology Blindspot: Many models failed spectacularly on pathology visual QA (PathVQA). For instance, GPT-4o-Mini scored a meager 8.27% accuracy. Only Gemini-1.5-Flash and Janus-Pro-7B managed to cross the 40% threshold, highlighting how difficult specialized medical image understanding remains for general lightweight models.
  • Asymmetric Scaling Behaviors: The authors ran scaling experiments comparing the smaller models to their larger siblings (e.g., Claude-3-Haiku vs. Opus, Qwen-2.5-1.5B vs. 7B). They discovered that while scaling up closed-source models consistently yields better performance, scaling down open-source models results in a drastic performance cliff.
Figure 2. Model Scaling Results on Multimodal QA (PathVQA), alongside Text-based Classification (HoC), NER (NCBI-Disease), and Summarization (MedQA-Ans).

Key Results

Text Processing Tasks

  • HoC (Classification): GPT-4o-Mini led with 63.04% accuracy, closely followed by the open-source Qwen-2.5-7B-Instruct at 62.41%.
  • PubMedQA: Claude-3-Haiku achieved the top accuracy (61.6%), with DeepSeek-R1-Distill-LLaMA-8B following at 59.6%.
  • NCBI-Disease (NER): Gemini-1.5-Flash vastly outperformed all other models with an F1-score of 51.26% (the next closest was DeepSeek-R1-Distill-Qwen-7B at 22.82%).

Multimodal Tasks

  • Molecular Image Captioning: Performance was relatively tight, led by Claude-3-Haiku (ROUGE-1: 22.03) and the open-source Janus-Pro-7B (ROUGE-1: 21.23).
  • PathVQA: Janus-Pro-7B achieved the highest accuracy at 41.19%, slightly edging out Gemini-1.5-Flash (40.28%).

Limitations and Future Work

The authors note that performance varies wildly depending on the specific dataset and task, meaning practitioners must still carefully map their specific clinical use case to the right model. Furthermore, the overall low scores on pathology image QA indicate that general-purpose cost-efficient models still require targeted domain-specific fine-tuning or continuous pre-training before they can be safely deployed in real-world clinical vision pipelines. Future work will focus on expanding these evaluations to even broader biomedical datasets.

Summary updated

Abstract

This paper presents a comprehensive evaluation of cost-efficient Large Language Models (LLMs) for diverse biomedical tasks spanning both text and image modalities. We evaluated a range of closed-source and open-source LLMs on tasks such as biomedical text classification and generation, question answering, and multimodal image processing. Our experimental findings indicate that there is no single LLM that can consistently outperform others across all tasks. Instead, different LLMs excel in different tasks. While some closed-source LLMs demonstrate strong performance on specific tasks, their open-source counterparts achieve comparable results (sometimes even better), with additional benefits like faster inference and enhanced privacy. Our experimental results offer valuable insights for selecting models that are optimally suited for specific biomedical applications.
BibTeX
@misc{jahan2025evaluating,
  author = {Israt Jahan and Md Tahmid Rahman Laskar and Chun Peng and Jimmy Huang},
  title = {{Evaluating the Effectiveness of Cost-Efficient Large Language Models in Benchmark Biomedical Tasks}},
  year = {2025},
  eprint = {2507.14045},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.14045},
}
Figure