Exploring transformer models: Fine-tuning VS inference on relation extraction from biomedical texts

Biomedical data continues to grow significantly, coming from different sources and being updated daily. This makes manual extraction not only time-consuming but also impossible to keep up with due to this constant increase. In this context, biomedical relation extraction, which aims to automate the discovery of relationships between entities from free texts, becomes an essential step for knowledge discovery. While fine-tuning Transformer models such as T5, PubMedBERT, BioBERT, ClinicalT5, and RoBERTa has shown satisfactory results, it requires specific datasets, which are time-consuming to create and costly since they require domain experts. One ideal solution is the use of Generative Artificial Intelligence (GenAI), as it is directly applicable to a problem without the need for data creation. In this paper, we explore these generative large language models (LLMs) to evaluate whether they can be reliable when it comes to processing biomedical data. To do so, we study the relation extraction task of four major biomedical tasks, namely chemical-protein relation extraction, disease-protein relation extraction, drug-drug interaction, and protein-protein interaction. To address this need, our study focuses on comparing the performance of fine-tuned Transformer models with generative models such as Mistral-7B, LLaMA2-7B, GLiNER, LLaMA3-8B, Gemma, RAG, and Me-LLaMA-13B, using the same datasets in both experiments, showing that fine-tuned Transformer models achieve performance levels roughly twice those obtained by generative LLMs. These models require more pretraining on specific data, as demonstrated by Me-LLaMA (pretrained on MIMIC-III), which shows a significant improvement in performance compared to the model pretrained on a general domain. In terms of performance, fine-tuned Transformer models on domain-specific biomedical data achieved average scores ranging from <b>84.42</b> to <b>90.35</b>, while generative models obtained significantly lower scores, between <b>36.64</b> and <b>53.94</b>. Among the generative LLMs, LLaMA3-8B, RAG, and Me-LLaMA-13B achieved the top three scores, with Me-LLaMA, pretrained on MIMIC-III, reaching <b>45.76</b>, illustrating the benefit of domain-specific pretraining.

Authors

Institutions

Publication Details

Journal
Computational and Structural Biotechnology Journal
Published
2025-12-20
DOI
https://doi.org/10.1016/j.csbj.2025.12.004
Citations
1
Primary Topic
Biomedical Text Mining and Ontologies
Type
article
Field-Weighted Citation Impact
0.81
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Exploring transformer models: Fine-tuning VS inference on relation extraction from biomedical texts

Mourad Sarrouti, Saïd Najah, Hajar El janah, Youness Nachid-Idrissi
1 citations
Computational and Structural Biotechnology Journal
Biomedical Text Mining and Ontologies
0.81
article

Exploring transformer models: Fine-tuning VS inference on relation extraction from biomedical texts

Mourad Sarrouti, Saïd Najah, Hajar El janah, Youness Nachid-Idrissi
article en
1 citations

Abstract

Biomedical data continues to grow significantly, coming from different sources and being updated daily. This makes manual extraction not only time-consuming but also impossible to keep up with due to this constant increase. In this context, biomedical relation extraction, which aims to automate the discovery of relationships between entities from free texts, becomes an essential step for knowledge discovery. While fine-tuning Transformer models such as T5, PubMedBERT, BioBERT, ClinicalT5, and RoBERTa has shown satisfactory results, it requires specific datasets, which are time-consuming to create and costly since they require domain experts. One ideal solution is the use of Generative Artificial Intelligence (GenAI), as it is directly applicable to a problem without the need for data creation. In this paper, we explore these generative large language models (LLMs) to evaluate whether they can be reliable when it comes to processing biomedical data. To do so, we study the relation extraction task of four major biomedical tasks, namely chemical-protein relation extraction, disease-protein relation extraction, drug-drug interaction, and protein-protein interaction. To address this need, our study focuses on comparing the performance of fine-tuned Transformer models with generative models such as Mistral-7B, LLaMA2-7B, GLiNER, LLaMA3-8B, Gemma, RAG, and Me-LLaMA-13B, using the same datasets in both experiments, showing that fine-tuned Transformer models achieve performance levels roughly twice those obtained by generative LLMs. These models require more pretraining on specific data, as demonstrated by Me-LLaMA (pretrained on MIMIC-III), which shows a significant improvement in performance compared to the model pretrained on a general domain. In terms of performance, fine-tuned Transformer models on domain-specific biomedical data achieved average scores ranging from <b>84.42</b> to <b>90.35</b>, while generative models obtained significantly lower scores, between <b>36.64</b> and <b>53.94</b>. Among the generative LLMs, LLaMA3-8B, RAG, and Me-LLaMA-13B achieved the top three scores, with Me-LLaMA, pretrained on MIMIC-III, reaching <b>45.76</b>, illustrating the benefit of domain-specific pretraining.

Computational and Structural Biotechnology JournalVol. 31
Theravance Biopharma (United States) (US), Sidi Mohamed Ben Abdellah University (MA)
Openalex Percentile: Top 20%
Biomedical Text Mining and Ontologies
0.81
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.