학술

Generative AI for structured epidemiological information extraction: Comparing in-context learning and fine-tuning approaches

PLOS ONE
CC BY
이 매체는 공공·자유 라이선스로 본문을 직접 표시합니다.

Figures
Abstract
Accurate and timely extraction of epidemiological information from unstructured outbreak reports is critical for effective public health surveillance and response. Advances in generative artificial intelligence (AI), particularly large language models (LLMs), offer promising tools for automating this process. In this paper we compare in-context learning and parameter-efficient fine-tuning approaches across multiple popular LLMs to extract structured epidemiological information from the World Health Organization Disease Outbreak News curated database. Our results demonstrate that fine-tuning significantly enhances extraction accuracy, achieving strong agreement with expert-curated reference annotations on this benchmark, and with the potential to accelerate outbreak detection from unstructured moderated news and reports. Notably, moderately sized fine-tuned models also perform robustly, suggesting feasibility for deployment in resource constrained settings. These findings support the integration of LLMs into epidemic intelligence pipelines, underscoring the potential of generative AI in transforming outbreak investigations and facilitating faster dissemination of results, thereby supporting global health initiatives.
Citation: Consoli S, Bertolini Agnoletto L, Stefanovitch N, Biazzo I, Spagnolo L, Espinosa L, et al. (2026) Generative AI for structured epidemiological information extraction: Comparing in-context learning and fine-tuning approaches. PLoS One 21(12): e0364093. https://doi.org/10.1371/journal.pone.0364093
Editor: Thiago P. Fernandes, Federal University of Paraiba, BRAZIL
Received: April 6, 2026; Accepted: November 18, 2026; Published: December 3, 2026
Copyright: © 2026 Consoli et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: • The DON dataset used in the present study is available from the original authors at https://github.com/cghss/dons, doi:10.5281/zenodo.6374495. • The datasets generated and analysed comparing in-context learning and fine-tuning over the large language models, including the generated outputs and plots for evaluation and analysis, are available via the Joint Research Centre Data Catalogue at http://data.europa.eu/89h/82f2fcbc-e93c-4702-a690-c5639797df10. • All the Python scripts used in the work on the various generative AI techniques and the instructions on how to deploy and run them, are available via the code development platform for open source projects from the European Union institutions at the repository: https://code.europa.eu/dighealth/EpiGenAI-Extraction. • The fine-tuned open-source models (LoRA adapter weights) are available via Hugging Face at https://huggingface.co/AI4PH (EpiLLaMA-3.3-70B, EpiQwen2.5-7B, and EpiMistral-7B).
Funding: The author(s) received no specific funding for this work.
Competing interests: The authors have declared that no competing interests exist.
Introduction
In an era where the volume of real-time information continues to increase, it is essential for critical applications such as public health surveillance and epidemic intelligence to design systems able to process such flows while providing actionable insights. Recent advances in artificial intelligence (AI) mark a promising avenue toward this goal, opening new possibilities but also presenting new challenges to be solved. The confluence of AI and public health [1,2] represents a transformative journey towards smarter epidemic intelligence and health threats management [3,4]. In this context, accurate and rapid extraction of epidemiological information is crucial to effective outbreak response and public health decision making [5,6]. The World Health Organization (WHO) Disease Outbreak News (DONs) [7,8] serves as a vital resource for global epidemic intelligence providing updates on acute public health events, according to Article 11.4 of the International Health Regulations [9]. However, the vast amount of data presented in unstructured formats poses significant challenges for timely and effective information extraction. Recent advances in AI [2,10], particularly in the domain of Large Language Models (LLMs) [11,12], offer promising solutions to these challenges of extracting structured information from unstructured outbreak reports [4,13]. LLMs are a type of generative AI models that utilise deep learning [14] algorithms (involving billions of parameters) trained on vast text corpora in a self-supervised manner [15] leveraging the Transformers architecture [11,12,16]. LLMs, with their ability to understand and generate human-like text, have shown great potential in advanced and general-purpose language tasks, where traditional natural language processing techniques often fall short in performance without extensive and costly fine-tuning efforts [12]. LLMs have revolutionised data extraction processes by enabling more intuitive interactions with complex datasets [2,15].
These significant advances in generative AI have enabled breakthroughs in healthcare diagnostics, medical imaging, personalized treatment, and patient monitoring [2,10]. However, these advances are accompanied by significant challenges, including the risk of hallucinations and factual inaccuracies, concerns regarding data privacy, limited interpretability of model outputs, and regulatory uncertainty surrounding AI deployment in clinical settings [2,10]. Building on these healthcare applications, such capabilities open new avenues for leveraging generative AI technologies to enhance the accuracy of information processing in public health and epidemiology for the analysis of disease outbreaks, surveillance, and response to public health threats [4]. This potential becomes especially critical in contexts where timely and accurate information is essential for policy makers to mobilize resources, coordinate response efforts, and prepare the public for emerging health risks [17].
More broadly, long-standing challenges in infectious disease epidemiology, such as the need for timely surveillance, rapid data integration, and global coordination [18], are now being addressed through significant initiatives that leverage these AI advances, such as the “Advanced Technology for Health Intelligence and Action IT System (ATHINA)” by the EC Health Emergency Preparedness and Response Authority (HERA), the “Epidemic Intelligence from Open Sources (EIOS)” initiative [19,20] of WHO, and the recently launched U.S. “Biothreats Emergence, Analysis and Communications Network (BEACON)” system [21]. These initiatives aim to improve the timely detection of disease outbreaks worldwide by leveraging alternative data sources, such as curated epidemic news articles and social media, alongside advanced technologies for epidemiological surveillance, to address the delays often encountered in official statistics [22].
The application of LLMs in public health has predominantly focused on specific areas, such as symptom extraction during the COVID-19 pandemic [23,24]. However, a gap remains in systematically exploring the applications of these models across a broader spectrum of disease outbreaks. Furthermore, while LLMs have been employed in various epidemic intelligence tasks, there is limited research comparing different LLM adaptation strategies, such as prompt-based methods like in-context learning [12,25–27] and parameter-modification approaches like model fine-tuning [28,29], to optimise their performance for epidemiological data extraction.
In this paper, we address these gaps by presenting a comprehensive study on the application of generative AI and LLMs for extracting epidemiological information from WHO DONs. Specifically, we explore and compare in-context learning and fine-tuning approaches across various popular LLMs to enhance the effectiveness of structured data extraction. Our study includes a detailed evaluation of model performance using ROUGE metrics, providing insights into the robustness and scalability of these AI techniques in operational settings. Given the vast amount of data, such as the 0.5 million articles processed daily by systems such as EIOS [19,20], effective and accurate processing is crucial for outbreak detection beyond the scope of WHO DONs. We demonstrate that parameter-efficient fine-tuning significantly improves extraction accuracy, indicating feasibility for deployment in resource-constrained environments and highlighting the transformative potential of AI in public health intelligence. Ultimately, our research aims to facilitate integration with global epidemic intelligence systems, supporting the development of surveillance pipelines for accurate daily monitoring of disease outbreaks.
Related work
The application of AI in public health surveillance has evolved considerably over the past two decades. Early efforts focused on internet-based monitoring systems for real-time disease tracking [30] and social media surveillance tools for automated early warning [31]. Multilingual event extraction systems were developed to address the challenge of language diversity in global surveillance [32], while machine learning classifiers were applied to the automated detection of disease outbreak-related articles from online sources [33]. Shifting from detection to prediction, ensemble models were introduced for forecasting epidemic trajectories under data and model uncertainty [34]. In parallel, text mining approaches were applied to extract epidemiological information from unstructured data sources, such as ProMED-mail [35], focusing on outbreak trend analysis [36] and automated summarisation of epidemic alerts using natural language processing techniques [37]. These findings highlighted the broader applicability of AI in optimising public health surveillance systems. For comprehensive reviews of methods and data sources in disease outbreak detection and forecasting, the reader is referred to [4,38].
More recently, there has been a significant shift towards leveraging generative AI and LLMs for epidemic intelligence tasks, demonstrating their potential to improve the timeliness and accuracy of information processing during public health emergencies. Kwok et al. [39] investigated the role of ChatGPT in developing disease transmission models, showcasing how LLMs can assist public health practitioners in shaping effective response strategies. Espinosa et al. [40] evaluated LLMs for extracting public opinions on vaccination from social media, highlighting their potential as scalable surveillance tools. Du et al. [41] presented a framework that reformulates infectious disease forecasting as a text-reasoning problem using multimodal LLMs, offering complementary insights into the application of generative AI in public health. These studies demonstrate a growing interest in applying LLMs to various public health tasks, though none of them specifically focused on comparing different LLM adaptation strategies for the task of structured epidemiological information extraction from outbreak reports.
Among the most directly relevant prior works, the study in [23] performed a comparative analysis evaluating the performance of various LLMs against traditional information extraction methods for symptom detection from clinical records in the context of COVID-19, providing insights into the strengths and limitations of LLMs in this area. Similarly, Bizel-Bizellot et al. [24] explored the use of generative AI models to extract records of COVID-19 transmission from free-text survey responses, highlighting a practical application of LLMs in epidemiological research. While both studies provide valuable insights into LLM-based extraction capabilities, they are limited to symptom extraction within the context of a single disease (COVID-19) and do not compare in-context learning against fine-tuning approaches. The study in [42] explored the extraction of epidemiological information from WHO Disease Outbreak News [7,8] using an ensemble of LLMs [12,43] and the development of a knowledge graph from these data, enhancing the understanding of public health dynamics. However, this earlier work did not systematically compare different adaptation strategies or evaluate the effect of varying the number of in-context examples on extraction performance.
Despite the valuable contributions of all these works to the application of generative AI in epidemic intelligence, a systematic comparison of LLM adaptation strategies, specifically, in-context learning [12,25] with varying numbers of examples versus parameter-efficient fine-tuning [28,29], for structured epidemiological information extraction across multiple models remains unexplored. The present study addresses this gap by providing such a comparison across seven LLMs of different sizes and specialisations, using a well-established epidemiological benchmark (the WHO DONs curated database), and evaluating performance across a wide range of in-context learning configurations as well as LoRA-based fine-tuning.
Materials and methods
WHO disease outbreak news
The WHO Disease Outbreak News (DONs) is a critical platform for communicating timely updates on confirmed and potential acute public health threats globally [7]. Since its establishment in January 1996, this publicly accessible resource, available at https://www.who.int/emergencies/disease-outbreak-news/, has consistently provided critical information on various health incidents, aiding both health authorities and the public in understanding ongoing outbreaks. WHO DONs focuses on disseminating information about confirmed or potential health events, including disease outbreaks with significant international health consequences, diseases with known causes that might spread worldwide, and situations that could affect public health measures, travel, or trade. With more than 3,000 curated English reports on epidemics published since its inception, WHO DONs have become a trusted and authoritative source for detailed information on disease characteristics, impacted regions, and suggested public health responses [7].
To facilitate working with this volume of unstructured data, Carlson et al. [8] introduced the WHO DON Database, a retrospective collection that organises and curates structured information manually extracted from historical WHO DONs reports. According to its developers, this database compiles information from numerous WHO reports, including data up to the entire year of 2019 and comprising 3,338 records overall, converting the unstructured narrative texts into a systematically analysable data set [8]. All reports in the WHO DONs curated database are written in English [No multilingual data were used in this study, since the original WHO DONs are only available in English.]. To enhance its utility for global health research, they established a standardised framework for sharing epidemiological information, making WHO DONs a more valuable resource for researchers and public health experts.
The creation of the WHO DONs curated database involved extracting key epidemiological details from the WHO DONs, including outbreak type, geographical location, case counts, and response measures, to enable more accessible and detailed analyses [8]. This structured format allows researchers and public health experts to conduct longitudinal studies on disease emergence patterns and to assess the effectiveness of public health responses over time. For an example of how the WHO DONs curated database entries are used in our extraction pipeline, including the input text and the corresponding structured output format, see S1 Appendix.
Our study leverages the WHO DONs curated database to assess, validate, and train advanced generative AI techniques, aiming to enhance the extraction and analysis of epidemiological information. The goal of this study is to systematically compare in-context learning and parameter-efficient fine-tuning approaches across multiple LLMs for extracting structured epidemiological information from WHO DONs, and to evaluate their accuracy, robustness, and feasibility for deployment in resource-constrained public health surveillance settings.
Large language models
For comprehensive reviews of LLMs in healthcare and infectious disease management, readers are referred to [2,4]. Here, we provide a concise overview of the specific LLM concepts and techniques relevant to our epidemiological extraction task.
A language model is a computational framework designed to understand, generate, and manipulate human language [44]. It predicts the likelihood of a sequence of words, enabling a variety of natural language processing tasks such as translation, summarisation, and information extraction. Traditional language models relied on simpler statistical methods, such as n-grams, which were limited in handling long-range dependencies and semantic understanding [44]. The evolution from basic models to more sophisticated ones began with the shift from the bag-of-words approach [45] to the use of word embeddings [46,47]. Bag-of-words models represented text as unordered collections of words, disregarding syntax and semantics [45]. Word embeddings introduced a more nuanced representation by mapping words to continuous vector spaces, capturing semantic relationships between words [46]. This paved the way for more advanced models capable of understanding context and meaning [47,48]. Furthermore, the introduction of the Transformer architecture [11,12] marked a significant advance in language modelling. Transformers [16], powered by attention mechanisms [11], excel in capturing contextual relationships in text over long distances, overcoming the limitations of recurrent neural networks [49]. The scalability and efficiency of Transformers laid the foundation for the development of LLMs, which can process large amounts of data and perform complex language tasks with remarkable accuracy [2,10,44].
In recent years, prompt engineering [26,27] has emerged as a critical technique for enhancing the performance of LLMs. It involves crafting specific input prompts that guide the model in generating desired outputs [26]. This approach leverages the background knowledge of LLMs to perform tasks with minimal task-specific data, making them highly adaptable and efficient [27]. Among the various prompt engineering strategies, in-context learning [12,25] and chain-of-thought [50] are prominent. In-context learning involves providing the model with a few examples of the task within the input prompt, allowing it to infer the task requirements from these examples [12,25]. This learning capability enables LLMs to generalise from limited data effectively. The chain-of-thought approach can further enhance model reasoning by structuring prompts that guide the model through a logical sequence of steps, improving its ability to solve complex reasoning and mathematical problems [50].
Given that LLMs are inherently designed to process natural language, we transformed the structured epidemiological data from WHO DONs into textual prompts that encapsulate the following epidemiological features: disease classification (DiseaseLevel1, DiseaseLevel2), geographical location (Country, ISO, OutbreakEpicenter), numbers of cases and deaths (CasesTotal, CasesSuspected, CasesProbable, CasesConfirmed, Deaths), and temporal information including outbreak start (OutbreakStartYear, OutbreakStartMonth, OutbreakStartDay), outbreak detection (OutbreakDetectionYear, OutbreakDetectionMonth, OutbreakDetectionDay), verification (OutbreakVerificationYear, OutbreakVerificationMonth, OutbreakVerificationDay), and end dates (OutbreakEnd, OutbreakEndYear, OutbreakEndMonth, OutbreakEndDay).
This prompt-based approach ensures compatibility with the models’ instruction-tuning background and enables the application of generative and discriminative language modelling techniques to the information extraction task of disease outbreak events. By expressing structured inputs in natural language, we bridge the gap between tabular data and text-based generative AI models, thereby facilitating their deployment in this epidemiological setting.
To explore the potential of instruction-tuned LLMs for epidemiological information extraction, we selected representative popular models with different characteristics. Specifically, we used LLaMA [51–53] and Mistral [54,55], two widely adopted general-purpose models; a LLaMA variant, namely MedLLaMA, and Meditron, two LLMs specialised in biomedical text; T5 [56], a versatile encoder-decoder architecture known for its strong generalisation capabilities across natural language processing (NLP) tasks; and Qwen [57], a robust decoder-only model characterised by strong reasoning capabilities, particularly in complex problem-solving scenarios. In our LLMs choice, we limited to non-commercial models only, to ensure efficient utilisation of resources while maintaining the flexibility to customise and fine-tune these models for our specific epidemiological information extraction tasks. We note that, following recent discourse on the terminology of openness in AI [58], these models are more precisely described as “open-weights” rather than “open-source,” since their pre-training data and, in some cases, training code are not fully disclosed by the model providers. Throughout this paper, we use the term “open-weights” to denote models whose trained parameters are publicly available for download, fine-tuning, and deployment, without implying full compliance with traditional open-source software definitions. In addition, the size of the models in terms of number of parameters was also conditioned by the available hardware for this study, further influencing our selection of LLMs to ensure compatibility and optimal performance. In particular, the computations for our study leveraged the JRC Big Data Analytics Platform [59] infrastructure and were conducted specifically on a Linux cluster system featuring an Ubuntu 22.04.5 LTS operating system, powered by an Intel Xeon Platinum 8470 CPU architecture with 208 CPUs, 1TB of RAM and 8 H100 NVIDIA GPUs for accelerated processing.
Table 1 summarises the key characteristics of the LLMs evaluated in this study. The selection was designed to cover a range of model sizes (from 770M to 70B parameters), architectural paradigms (decoder-only and encoder-decoder), and domain specialisations (general-purpose and biomedical), in order to assess how these factors influence performance on the epidemiological information extraction task. All models are decoder-only architectures except T5, which uses an encoder-decoder design. The inclusion of both general-purpose models (LLaMA, Mistral, Qwen, T5) and domain-specific biomedical models (MedLLaMA, Meditron) allows us to evaluate whether pre-training on medical corpora provides an advantage for this task. Detailed descriptions of each model are provided in S2 Appendix.
In-context learning
In-context learning (iCL) [12] is a paradigm where an instruction-tuned language model performs new tasks by conditioning on a prompt containing a limited number of example input-output pairs, without altering the model’s internal parameters through gradient updates. Unlike traditional supervised learning, which requires explicit training and parameter optimisation, iCL leverages the model’s latent knowledge acquired during instruction-tuning to recognise and generalise task-specific patterns solely from the context provided at inference time [25]. This mechanism allows the model to implicitly engage in pattern recognition or function approximation based on demonstrated examples, “learning” how to map inputs to outputs within the given prompt. This novel learning paradigm represents a significant technological shift, transforming LLMs into flexible task solvers capable of on-the-fly adaptation through prompt engineering, thus democratising access to advanced language understanding across diverse applications [60].
This approach has several important implications [25]. Since the model’s weights remain unchanged, the training overhead is eliminated, allowing new tasks to be addressed immediately. This makes iCL a flexible and computationally efficient technique [60]. Moreover, the success of iCL heavily depends on the model’s scale and the richness of its background knowledge, as larger models with extensive instruction-tuning are better equipped to infer underlying relationships within a few demonstrations [12]. Finally, the effectiveness of iCL can be influenced by the choice and ordering of examples in the prompt, as the model uses these contextual cues to extrapolate rules or heuristics applicable to the task at hand [61].
In summary, iCL enables LLMs to perform a wide range of NLP tasks, such as classification, question-resolution, and structured information extraction, with minimal manual effort. In the context of epidemiological information extraction, iCL allows models to dynamically adapt to new outbreak data formats or domain-specific terminologies by simply presenting relevant annotated examples in the input prompt. This facilitates rapid prototyping and deployment of extraction systems without the need for costly and time-consuming supervised fine-tuning.
In our analysis, we compared the iCL capability of different popular models to identify optimal iCL configurations that maximise extraction accuracy while maintaining computational efficiency [The code was developed in Python and all the scripts and the instructions on how to deploy and run them are available at https://code.europa.eu/dighealth/EpiGenAI-Extraction.]. First, we processed each epidemiological report with a preliminary summarisation step. If it exceeded the context length value for the input of the LLM at hand, we split the text in pieces and summarised it with the following prompt:
Given some epidemiological TEXT in triple backtick (“‘ ”’), summarise it focusing on any aspects that are relevant to the reported disease outbreak, place and time of the infectious disease outbreak occurred, and the derived contingencies.
Never invent or guess data.
Write no explanations or notes.
“‘{TEXT}”’.
Then, we used the following prompt to guide the iCL process to extract epidemiological information for the report:
Given some TEXT in triple backtick (“‘ ”’) extract disease outbreak information from the given text and format it as JSON.
Use “None” for missing information.
Never invent or guess data.
{few-shot examples}
Now extract information from this TEXT in the same JSON format:
“‘{TEXT}”’.
See S1 Appendix for an example of detailed iCL prompt construction using two shots originating from the WHO DONs curated database. The prompt begins by instructing the model to extract disease outbreak information from the given piece of text, encapsulated within triple backticks (“’), and to format the extracted information as a JSON object. This structured format ensures clear and consistent data representation, facilitating subsequent analysis and integration into epidemiological databases. Please note that to handle incomplete data, the prompt specifies using “None” for any missing information, thus maintaining data integrity and preventing the model from inventing or guessing details. Following these initial instructions, the prompt included a few examples that demonstrated the desired input-output mappings. These examples served as contextual guides, allowing the model to understand the task requirements and generalise from these examples. Importantly, the set of allowable JSON variable names (i.e., the target schema comprising the 23 epidemiological features) is not explicitly enumerated in the instruction portion of the prompt. Instead, the models learn which fields to extract and how to name them exclusively from the few-shot examples provided in the prompt, each of which contains a complete JSON object with all expected keys.
Finally, the prompt directed the model to apply the same extraction and formatting logic to a new text, denoted [TEXT], ensuring that the model consistently adhered to the format and rules described in the prompt. This approach leverages the model’s instruction-tuned capabilities while allowing for dynamic adaptation to specific information extraction tasks without modifying the model’s underlying parameters.
Fine-tuning
Fine-tuning represents a critical step for adapting instruction-tuned LLMs to specialised tasks requiring high precision and domain-specific knowledge [28,29]. Although LLMs acquire broad knowledge through extensive training on diverse text corpora [12], achieving optimal performance in specialised applications such as structured epidemiological information extraction often requires systematic parameter modification beyond their zero-shot capabilities. In this section, we describe the foundations and implementation protocols employed in our fine-tuning approach, with particular emphasis on Parameter-Efficient Fine-Tuning (PEFT) techniques [29] that balance computational feasibility with performance optimisation.
The exploration of LLMs fine-tuning in our epidemiological context derives from the inherent limitations of general-purpose language models when confronted with tasks demanding strict domain-specific precision. Although LLMs leverage billions of parameters trained on vast text corpora, their learned knowledge might require refinement for specialised extraction tasks. In extracting epidemiological data from WHO DONs reports, the challenge involves identifying all the distinct structured features including disease classifications, geographical indicators, outbreak epicentres, confirmed cases and deaths. Fine-tuning addresses this by updating internal parameters to acquire domain-specific behaviours [28].
The decision to explore model fine-tuning rather than relying exclusively on in-context learning was based on the requirements of the specific task (i.e., extracting epidemiological features from WHO DONs). In-context learning conditions models on prompts containing a few examples without modifying weights, offering computational efficiency [25]. However, for applications requiring consistent structural output, parameter modification might provide some advantages. Fine-tuning explicitly trains model weights against a large amount of structured input-output pairs, encoding formatting rules and consistency requirements directly into learned representations [62]. This ensures robust structural adherence that prompt-based methods cannot reliably guarantee for outputs requiring complex, rigid structural compliance.
Our fine-tuning process2 relied on high-quality instruction data instances derived from the WHO DONs curated database. Structured epidemiological data were transformed into instruction-formatted input-output pairs, where inputs comprised textual reports, and outputs consisted of JSON objects with the extracted features. In this setting, the target JSON schema (i.e., the set of allowable variable names) is learned by the models during training through repeated exposure to thousands of structured input-output examples, each containing the complete set of 23 epidemiological keys. The instruction-input-output prompt used for the training was the following:
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Given some TEXT in triple backtick (“‘ ”’) extract disease outbreak information from the given text and format it as JSON.
Return a list containing one JSON object per outbreak mentioned. Always return a list of JSON objects, even for single outbreaks.
Use “None” for missing information. If no outbreak information is found, return an empty list [ ].
Never invent or guess data.
### Input:
“‘{TEXT}”’.
### Output:
{[JSON objects]}.
We performed stratified five-fold cross-validation [13], partitioning the WHO DONs dataset into five approximately equal folds while preserving the distribution of the disease labels across folds; in each iteration, we trained on four folds and evaluated on the remaining fold, rotating across folds to assess robustness and generalisation. Stratification maintains consistent distribution of critical epidemiological characteristics across training and validation partitions, minimising sampling bias and ensuring performance metrics accurately reflect generalised extraction capabilities. To prevent data leakage across folds, each cross-validation iteration was initialised from the same original pre-trained LLM checkpoint with freshly created LoRA adapters, ensuring that no learned parameters carried over between folds. Each fold-specific model was trained independently using only the corresponding training partition, and evaluation was performed exclusively on the held-out fold. This procedure guarantees that no information from the evaluation data influenced model training at any stage.
In addition to these safeguards at the model level, the following measures were taken to prevent information leakage at the data level. Exact duplicates were removed prior to cross-validation, and records sharing the same input text but associated with different target extractions (e.g., a single WHO DON report documenting outbreaks in multiple countries) were grouped together so that they always appear within the same fold. This grouping ensures zero text overlap between training and evaluation partitions across all folds. We note that follow-up reports of the same outbreak event (e.g., successive updates on the same disease in the same country) may appear in different folds; however, since these reports contain genuinely different textual content and different extracted epidemiological data, they represent independent extraction tasks. Our evaluation target is text-level extraction accuracy—assessing whether the model can correctly extract structured information from a given report—rather than event-level generalisation to entirely unseen outbreaks.
In addition, to tackle challenges related to computational resource demands, memory requirements, and training duration, we adopted Parameter-Efficient Fine-Tuning (PEFT) methodologies [29]. These methodologies modify only a small, targeted subset of model parameters while preserving extensive general knowledge acquired during instruction-tuning. PEFT techniques achieve performance comparable to full fine-tuning while reducing computational costs and lowering data requirements [29].
Among PEFT approaches, we selected Low-Rank Adaptation (LoRA) [63] for its ability to minimise trainable parameters while introducing no additional inference latency during deployment. LoRA operates on the empirical observation that when adapting large models to new tasks, resulting modifications to vast weight spaces often reside within low-dimensional subspaces [64]. LoRA constrains updates to frozen weight matrices by substituting them with low-rank decompositions of the form , where and with rank [64]. Intuitively, A acts as a down-projection that compresses the layer input into a compact r-dimensional subspace, while B acts as an up-projection that expands this compressed representation back to the original output dimensionality; their product BA thus forms a rank-r approximation of the full-size weight update . Following standard practice [64], A is initialised with small random values and B is initialised to zero, so that at the start of training and the adapted model initially reproduces the behaviour of the frozen pre-trained model before gradually learning task-specific updates. During training, the original weights remain frozen, and only parameters within low-rank matrices are optimised, drastically reducing trainable parameter counts. The modified forward pass integrates low-rank contributions through , where represents a scaling factor applied to the low-rank update.
Our specific LoRA configuration employed a rank of r = 16 and scaling factor of , balancing parameter efficiency and adaptation capacity. This rank selection maximised efficiency, reducing trainable parameters to a smaller fraction of the original model size [62,63]. This reduction required a balanced scaling to ensure sufficient magnitude for encoding structural consistency. The scaling ratio maintained the influence of low-rank adaptation, enabling effective learning despite minimal parameter modifications. LoRA adapters were strategically targeted at query, key, value, output, gate, and projection components within the Transformer attention mechanism, as these components govern how models retrieve and combine contextual information during sequence processing [64]. Finally, a dropout rate of 0.05 was applied to LoRA layers to prevent overfitting during adaptation.
The obtained fine-tuned open-weights models (LoRA adapter weights) are made available via Hugging Face at https://huggingface.co/AI4PH/EpiLLaMA-3.3-70B, https://huggingface.co/AI4PH/EpiQwen2.5-7B, and https://huggingface.co/AI4PH/EpiMistral-7B.
Evaluation metrics
We evaluated model performance using Recall-Oriented Understudy for Gisting Evaluation (ROUGE) scores [66,67]. Although originally developed for summarisation tasks, these metrics are applicable to our text-to-graph epidemiological information extraction framework by treating each extracted information as a single-sentence summary representation. Our method could be reconducted to a text-to-graph task because it involved mapping unstructured text inputs to structured graph-like outputs, where each element of extracted epidemiological data represented nodes and relationships within a graph structure. Specifically, we serialised each extracted graph pattern—comprising nodes such as disease names, countries, and various epidemiological indicators, along with their relational edges—into a string representation. This enabled systematic comparison between model predictions and the gold-standard graph patterns annotated in the WHO DONs curated database, where each serialised graph functioned as a single-sentence summary for evaluation purposes. We employed the Hugging Face ROUGE implementation (https://huggingface.co/spaces/evaluate-metric/rouge) and reported all scores as the harmonic mean of precision and recall.
N-gram Based Metrics: Rouge-N
Rouge-n metrics evaluate the overlap of n-grams between candidate and reference graphs. For a pair of graphs , Rouge-n is computed as:
(1)where n denotes the n-gram length, and represents the number of overlapping n-grams between the reference graph gref (target output) and the candidate graph gcand (model prediction). We focused on Rouge-1 and Rouge-2, corresponding to unigram and bigram overlap, respectively. Notably, Rouge-n metrics are order-independent at the level of individual n-grams, capturing lexical overlap without requiring sequential matching.
Sequence-based metrics: Rouge-L and Rouge-Lsum
Rouge-L evaluates the longest common subsequence (LCS) between candidate and reference graphs, thus, capturing word-order dependencies within the matched sequence. The metric was computed as:
(2)(3)(4)where denotes the longest common subsequence between the candidate and reference graphs, represents the total number of unigrams in a graph, and is typically set to 1, which assigns equal weight to precision and recall in the F-measure calculation [66]. This balanced configuration is appropriate for most evaluation scenarios where neither over-generation (low precision) nor under-generation (low recall) should be preferentially penalized [67].
Rouge-Lsum extends Rouge-L by computing LCS scores at a more granular level. Rather than treating the entire graph as a single sequence, Rouge-Lsum splits the representation into sentence-level units (based on newline delimiters), computes the LCS for each sentence pair independently, and aggregates the results:
(5)where N is the number of sentences, and s(i) denotes the i-th sentence in the respective graph. In our implementation, the JSON output is serialized with indented formatting (one key-value pair per line), so that each epidemiological field (e.g., “Country”: “Cape Verde”) occupies a separate line. Consequently, Rouge-Lsum effectively evaluates extraction accuracy at the individual field level, computing the LCS independently for each epidemiological attribute. This provides a more granular assessment than Rouge-L, which treats the entire serialized output as a single sequence. For a concrete example of the serialized JSON format, see Appendix S1.
Semantic similarity metrics: BERTScores
To complement the lexical overlap measures provided by ROUGE, we also employ BERTScore [68], which evaluates semantic similarity between candidate and reference outputs using contextualised embeddings. While ROUGE compares outputs based on their actual words, BERTScore assesses how well two text strings align in their overall semantic meaning, capturing cases where the model produces semantically correct extractions that may differ in surface form from the reference.
Given a candidate graph gcand and a reference graph gref, BERTScore utilizes a multi-step procedure to determine word-level alignments based on contextualized embeddings. The semantic similarity between aligned tokens is measured using cosine similarity [13], which is then used to compute three distinct performance dimensions: BERTScore Precision (PrecisionBERT), BERTScore Recall (RecallBERT), and the BERTScore F1 (F1BERT). Specifically, the recall component is defined as [68]:
(6)where represents the cosine similarity between the embeddings of reference token and candidate token . Similarly, PrecisionBERT is calculated by normalizing the sum over the candidate tokens, and the F1BERT provides the harmonic mean. We employed the Hugging Face BERTScore implementation (https://huggingface.co/spaces/evaluate-metric/bertscore) with the roberta-large model for computing contextualised embeddings, and report all three BERTScore components (Precision, Recall, and F1) alongside the ROUGE scores.
Metrics complementarity and interpretation
The use of multiple evaluation metrics provides complementary perspectives on model performance, which is particularly valuable given the complex nature of LLM-based graph extraction. Traditional graph extraction pipelines decompose the task into distinct stages—co-reference resolution, named entity recognition, entity disambiguation, and relationship classification—allowing errors to be attributed to specific components. In contrast, LLMs entangle all these stages into a single end-to-end process, complicating error analysis. The metrics we employ offer different diagnostic insights into this unified extraction process.
Rouge-1 serves as a direct measure of entity and relation token recognition, capturing whether the model identifies the correct lexical units, although it cannot distinguish between entities and relations. Rouge-2 and Rouge-L introduce ordering constraints: Rouge-2 through bigram matching and Rouge-L through longest common subsequence alignment. The performance gap between Rouge-1 and these sequence-aware metrics indicates whether recognised elements appear in the correct order—a proxy for proper graph structure formation. However, both metrics remain susceptible to confounding factors such as entity ambiguity and unresolved co-reference issues. Lastly, Rouge-Lsum provides sentence-level granularity, which is particularly relevant when graph patterns are organised into distinct extractive units that should be evaluated independently rather than as a monolithic sequence. BERTScore complements these lexical measures by capturing semantic equivalence beyond surface-form matching. This is particularly relevant for epidemiological extraction, where a model might produce semantically correct values (e.g., abbreviations, alternative spellings, or equivalent numerical representations) that would receive low ROUGE scores due to lexical mismatch. By combining ROUGE (lexical) and BERTScore (semantic) metrics, we ensure a comprehensive evaluation framework that captures both exact field-level matches and broader semantic correctness of the extracted information. These characteristics made the comparative analysis of all metrics essential for a thorough evaluation.
Statistical analysis of model comparison
To provide a robust comparison of the performance of the different fine-tuned models, we assessed the statistical significance of their performance differences across all evaluation metrics (both ROUGE and BERTScore). For each metric, and for each outbreak sample in the held-out data, we ranked the compared models according to their metric values, assigning rank 1 to the model achieving the best performance on that instance. We then applied the Friedman test [69,70], a non-parametric rank-based test suitable for comparing multiple related samples, to assess whether there were systematic differences in the model rankings. When the Friedman test rejected the null hypothesis of equivalent performance, we performed Nemenyi post-hoc pairwise comparisons to identify which specific pairs of models differed significantly. The Nemenyi test evaluates whether the difference in average ranks between two models exceeds a critical difference (CD) threshold. To control for the inflated Type I error arising from multiple pairwise comparisons, we applied the Bonferroni correction [69,70]: with three fine-tuned models, three pairwise comparisons are performed, so the nominal significance level () was divided by the number of comparisons to yield an adjusted threshold of , corresponding to a Bonferroni-corrected critical difference of CD = 0.106. The same procedure was applied independently to each ROUGE metric (Rouge-1, Rouge-2, Rouge-L, and Rouge-Lsum) and to each BERTScore component (Precision, Recall, and F1). The corresponding results are reported in the Fine-Tuning Analysis section.
Results
All the generated outputs and plots used for the evaluation and analysis are publicly available through the Joint Research Centre Data Catalogue at: http://data.europa.eu/89h/82f2fcbc-e93c-4702-a690-c5639797df10.
In-context learning analysis
Our analysis systematically explored the impact of varying numbers of examples on extraction accuracy, ranging from 0 to 32 examples. Specifically, we evaluate eight distinct iCL settings: 0, 1, 2, 4, 6, 8, 16, and 32 examples provided in the input prompt. This progressive evaluation allows us to assess how each model’s extraction capability evolves with increasing contextual guidance, thereby identifying optimal configurations that balance computational efficiency with performance. For each configuration, we computed ROUGE and BERTScore metrics to quantify the alignment between model predictions and gold-standard annotations from the WHO DONs curated database.
Fig 1 presents the ROUGE scores (Rouge-1, Rouge-2, Rouge-L, and Rouge-Lsum) obtained by each iCL model across all the examples. The x-axis represents the number of in-context examples (NiCL), ranging from NiCL = 0 to NiCL = 32, while the y-axis displays the corresponding ROUGE score values.
Fig 2 presents the corresponding BERTScore metrics (Precision, Recall, and F1) for the same iCL configurations. The BERTScore results corroborate the patterns observed with ROUGE: LLaMA 3.3-70B and Qwen 2.5-7B Instruct achieve the highest semantic similarity scores, while domain-specific and smaller models show lower performance. Notably, BERTScore values are generally higher than ROUGE scores across all models, reflecting the fact that semantic embeddings can capture meaning equivalence even when surface forms differ. The consistent agreement between ROUGE and BERTScore trends validates that the lexical overlap measured by ROUGE faithfully reflects the underlying semantic quality of the extractions. The numerical values underlying Figs 1 and 2, together with those underlying the fine-tuning results reported below, are provided in S3 Appendix.
Figs 1 and 2 show inconsistent behaviour across models. Some LLMs exhibit a strong positive correlation between ROUGE scores and the number of in-context learning examples, whilst for others performance decreases after a few examples. For all models, the most substantial performance increase occurred in the low iCL regime, moving from NiCL = 0 to NiCL = 4, approximately. Beyond around NiCL = 8, the curves began to flatten, showing a clear phenomenon of diminishing returns [71] where additional shots yield only marginal or noisy gains. This saturation is consistent with theoretical analyses of in-context learning as approximate Bayesian inference [72], where each additional example provides diminishing marginal information gain. For weaker models, performance not only saturates but actively degrades at higher shot counts, likely due to context overflow effects [73] and attention dilution over increasingly long prompts. In addition, while LLMs have the ability to take long contexts as input, their performance often reaches its highest value when relevant information is at the beginning or end of the input context, and can significantly decrease when relevant information is in the middle of long contexts (i.e., context overflow), even for explicitly long-context models [73]. In particular, while the LLaMA 3.3-70B and Qwen 2.5-7B Instruct models experienced a significant performance plateau, all other models, including the LLaMA 3.1-8B, MedLLaMA 3-8B, and Meditron-7B, consistently had lower performance, resulting in a complete failure in the extracted epidemiological information as NiCL approached larger values. The exception to this trend was the Mistral-7B-OpenOrca model, which, despite an initial decline after NiCL = 4, eventually stabilised at a plateau with Rouge scores of around 0.6 as NiCL increased. Detailed per-metric ROUGE analyses with 99% confidence intervals are provided in S4 Appendix.
Fine-tuning analysis
Building upon the insights gained from the iCL analysis, we selected the most promising LLMs to undergo parameter-efficient fine-tuning using the LoRA methodology described in the Methods section. Specifically, we chose LLaMA 3.3-70B and Qwen 2.5-7B Instruct, which demonstrated superior performance in the iCL experiments, and additionally included Mistral-7B-OpenOrca to extend our portfolio of fine-tuned models and assess whether fine-tuning could substantially improve its relatively modest iCL performance. For clarity and consistency throughout this analysis, we refer to the fine-tuned versions of these models as EpiLLaMA 3.3-70B, EpiQwen 2.5-7B, and EpiMistral-7B, respectively.
As detailed in the Methods section, we employed five-fold stratified cross-validation over the WHO DONs curated database to ensure robust evaluation and minimise sampling bias. Each fold was trained independently, with hyperparameters maintained constant across all experiments to enable fair comparison. The fine-tuning process exhibited stable convergence characteristics across all models. The training loss curves demonstrated consistent monotonic decrease throughout the optimisation process, achieving convergence within the allocated training resources. The larger EpiLLaMA 3.3-70B model required approximately 30 hours of training per fold on our 8xH100 GPU infrastructure, reflecting the computational demands associated with adapting models at this scale. In contrast, the smaller 7B parameter models (EpiQwen 2.5-7B and EpiMistral-7B) demonstrated greater training efficiency, requiring approximately 20–22 hours per fold. This substantial reduction in training time, while maintaining high performance, highlights the practical advantages of parameter-efficient models for resource-constrained deployment scenarios.
The training loss trajectories further confirmed the stable convergence of our training procedure. The complete training loss trajectory figures for all models across all five folds are provided in S6 Appendix. Notably, all models benefited from the LoRA adaptation strategy, with the low-rank updates successfully encoding the structural patterns and domain-specific terminology characteristic of epidemiological reports without catastrophic forgetting of general language capabilities.
The results obtained in terms of ROUGE scores across all five folds and their aggregated overall performance are systematically presented in Tables 2–5, with an aggregated visual comparison provided in Fig 3. The corresponding BERTScore results are presented in Tables 6–8 and Fig 4, confirming the same performance hierarchy across models with high semantic similarity scores (all exceeding 0.95). These results reveal several insights into the effectiveness of fine-tuning for epidemiological information extraction.
Grouped bar chart displaying mean scores for Rouge-1, Rouge-2, Rouge-L, and Rouge-Lsum metrics across the different Epi model variants. Each model is represented by a different colored bar, with bars grouped by metric type. Error bars indicate standard deviation across multiple evaluation runs. Higher scores indicate better extraction quality and similarity to the reference epidemiological information.
Grouped bar chart displaying mean scores for BERTScore Precision, Recall, and F1 metrics across the different Epi model variants. Each model is represented by a different colored bar, with bars grouped by metric type. Error bars indicate standard deviation across multiple evaluation runs. Higher scores indicate better semantic similarity to the reference epidemiological information.
Table 2 presents Rouge-1 scores, measuring unigram overlap between predicted and reference extractions. The results show high performance across all models, with overall scores exceeding 0.899 in all cases. EpiLLaMA 3.3-70B achieved the highest overall Rouge-1 score of 0.937, with highest Rouge-1 score in two folds and values ranging across folds from 0.915 to 0.952. EpiQwen 2.5-7B had the second highest overall score with a value of 0.918, showing some variation across folds (notably a decrease to 0.856 in fold 2, and increasing again to 0.942 in fold 3). Although EpiMistral-7B had the lowest overall score, this value can still be considered high (0.899), with fold-specific performance ranging from 0.884 to 0.923.
Table 3 shows Rouge-2 scores, evaluating bigram overlap and providing insight into the models’ ability to maintain correct word ordering and structural relationships in the extracted information. As expected, Rouge-2 scores were lower than Rouge-1 due to the more stringent matching requirement of this metric; however, the values of Rouge-2 scores were still very high. EpiLLaMA 3.3-70B also had the highest overall score with a value of 0.896, demonstrating strong structural coherence in its extractions, with fold-specific scores ranging from 0.855 to 0.921. EpiQwen 2.5-7B achieved an overall score of 0.864, showing highest variation across folds, ranging from 0.767 in fold 2 to 0.903 in fold 3. EpiMistral-7B had an overall score of 0.853, with stable performance across folds, ranging from 0.826 to 0.884. The gap between Rouge-1 and Rouge-2 scores was narrower for EpiLLaMA 3.3-70B (0.041 difference) compared to the other models (from 0.046 to 0.054 difference).
Table 4 presents Rouge-L scores, which measure the longest common subsequence between candidate and reference extractions, thereby capturing sequential coherence beyond simple n-gram matching. The results mirror the patterns observed in Rouge-1 and Rouge-2, with EpiLLaMA 3.3-70B achieving the highest overall score of 0.928, followed by EpiQwen 2.5-7B at 0.908 and EpiMistral-7B at 0.889. The close alignment between Rouge-L and Rouge-1 scores (differences of 0.009 to 0.010) across all models indicates that the extracted information maintains strong sequential structure that closely reflects the reference annotations. This coherence is particularly important for downstream applications where the extracted epidemiological data must be interpretable and usable by public health practitioners.
Table 5 displays Rouge-Lsum scores, which compute longest common subsequence matches at the sentence level before aggregation. Notably, Rouge-Lsum scores are remarkably similar to Rouge-L scores across all models and folds, with differences typically within 0.001 to 0.002 points. This convergence occurs because the serialized graph representations of epidemiological extractions in our framework are predominantly single-sentence or short multi-sentence structures. Consequently, the sentence-level decomposition performed by Rouge-Lsum yields minimal granularity benefits compared to the sequence-level Rouge-L computation. The near-identical scores (EpiLLaMA 3.3-70B: 0.929 vs. 0.928; EpiQwen 2.5-7B: 0.908 vs. 0.908; EpiMistral-7B: 0.887 vs. 0.889) confirm that all models maintain consistent structural coherence regardless of the evaluation granularity, further validating the quality and reliability of the fine-tuned extraction systems.
Tables 6, 7, 8 present the BERTScore results across all five folds, with aggregated visual comparison provided in Fig 4. All three fine-tuned models achieve BERTScore values exceeding 0.95, indicating very high semantic similarity between the predicted and reference extractions. EpiLLaMA 3.3-70B and EpiMistral-7B achieve nearly identical BERTScore performance (overall F1 of 0.981 and 0.985 respectively), while EpiQwen 2.5-7B follows closely with an overall F1 of 0.965. The narrower performance gap between models in BERTScore compared to ROUGE suggests that all fine-tuned models produce semantically correct extractions, with the differences captured by ROUGE reflecting primarily surface-form variations rather than meaning discrepancies.
A detailed feature-level performance analysis of the best-performing model (EpiLLaMA 3.3-70B) across all individual epidemiological attributes, along with a comparative evaluation of Rouge-1 against traditional classification metrics, is presented in S5 Appendix.
Finally, we report the statistical comparison of the performance of the three fine-tuned models (EpiLLaMA 3.3-70B, EpiQwen 2.5-7B, and EpiMistral-7B). As described in the Evaluation Metrics section (Statistical Analysis of Model Comparison), for each metric we ranked the models on every outbreak sample, applied the Friedman test to assess overall differences in model rankings, and, when significant, performed Nemenyi post-hoc pairwise comparisons with Bonferroni correction (adjusted threshold , corresponding to a critical difference of CD = 0.106).
Based on the Friedman Test, we found a statistically significant difference between the evaluated ranks at the 0.1% significance level for all the four ROUGE metrics (p << 10–6 across all metrics), rejecting the null hypothesis of equivalent model performance.
The Nemenyi post-hoc analysis with Bonferroni correction revealed statistically significant rank differences for all three pairwise comparisons. As shown for each metric in Tables 9, 10, 11, Table 12, all pairwise comparisons produced absolute differences exceeding the critical difference threshold of 0.106 at the adjusted alpha level of 0.000333, achieving statistical significance as indicated by the three asterisks (***) in the tables. This established a clear performance hierarchy: EpiLLaMA 3.3-70B > EpiQwen 2.5-7B > EpiMistral-7B. These findings confirmed that the observed performance gaps reported in Tables 2–5 of the main text are not attributable to random variation in the evaluation data but represent genuine, reproducible differences in model capabilities for epidemiological information extraction.
The same statistical analysis was conducted for the BERTScore metrics, yielding consistent results. Based on the Friedman Test, we found a statistically significant difference between the evaluated ranks at the 0.1% significance level for all three BERTScore metrics (p << 10–6 across all metrics), rejecting the null hypothesis of equivalent model performance. The Nemenyi post-hoc analysis with Bonferroni correction again revealed statistically significant rank differences for all pairwise comparisons, as shown in Tables 13, 14, 15. All absolute rank differences exceeded the critical difference threshold of 0.106, establishing the same performance hierarchy observed with ROUGE: EpiLLaMA 3.3-70B > EpiQwen 2.5-7B > EpiMistral-7B.
Discussion
The aim of this work was to compare in-context learning and fine-tuning approaches to enhance the extraction of epidemiological information from curated outbreak reports, thereby improving public health surveillance capabilities.
Performance saturation and degradation
A consistent phenomenon observed during our in-context learning experiments was performance plateau, and eventual degradation in model performance. This was shown across multiple models, as the number of examples (NiCL) increased beyond a certain threshold. The limited representational capacity of the attention mechanism, also referred to as attention dilution [74], within the underlying Transformers architecture is a key contributor to this phenomenon. Its effective rank is bounded by the number of shots and the embedding dimension (). As a result, additional demonstrations may not contribute to new information once this limit is reached [74]. When the context length exceeds this capacity, new examples no longer introduce meaningful information. This leads to the performance plateau or degradation we observed.
The high computational cost associated with very long contexts also contributes to this effect. The self-attention mechanism requires a quadratic complexity in time and memory, , with respect to the input sequence length, n. This introduces significant latency and cost. Moreover, it often necessitates input truncation for long-context iCL [75]. This practical limitation discourages the use of NiCL values beyond the observed optimal point.
In-context learning: Model comparison and recommendations
When examining the performance of all iCL models (Figs 1–2, and the confidence-interval figures in S4 Appendix), we observed that the larger LLaMA 3.3-70B model was the strongest across all shot counts. It demonstrated the best iCL generalisation and asymptotic performance, plateauing at the highest overall ROUGE scores at approximately 16 NiCL (Rouge-1 = 0.840; Rouge-2 = 0.698; Rouge-L = 0.824; Rouge-Lsum = 0.841). Qwen 2.5-7B Instruct was the second best model, with performance stabilised at approximately 16 NiCL as well, closely matching LLaMA 3.3-70B (Rouge-1 = 0.819, Rouge-2 = 0.682, Rouge-L = 0.801, and Rouge-Lsum = 0.819). The BERTScore metrics confirmed the same ranking, with LLaMA 3.3-70B and Qwen 2.5-7B Instruct achieving the highest semantic similarity scores across all NiCL configurations.
The Mistral-7B-OpenOrca Instruct model ranked third overall. Its performance dropped between 4 and 8 NiCL before reaching a plateau. Its ROUGE and BERTScore scores were lower than LLaMA 3.3-70B and Qwen 2.5-7B Instruct.
As expected from model scaling laws [72], the larger LLaMA 3.3-70B model consistently outperformed the smaller LLaMA 3.1-8B and MedLLaMA 3-8B. The performance gap between the 70B and 7B/8B models widened as NiCL increased. This suggests that larger models are better equipped to leverage information from iCL demonstrations.
Notably, the T5 model’s encoder-decoder architecture did not provide any performance benefits over decoder-only models and showed poor results across all NiCL values. This finding suggests that decoder-only architectures are well-suited for our task. This is due to the fact that sequential generation of structured outputs aligns naturally with auto-regressive language modelling.
Including LLMs specifically tuned for the health domain, such as MedLLaMA 3-8B and Meditron-7B, did not offer significant advantages in domain adaptation. Their performance was subpar and did not exceed that of general-purpose models like LLaMA, Qwen, and Mistral in an in-context learning setting, a finding consistent across both ROUGE and BERTScore metrics. This suggests that domain-specific instruction-tuning does not necessarily lead to better downstream performance in this specific task. Furthermore, the health domain pre-training of MedLLaMA 3-8B and Meditron-7B was likely too generic relative to the specific epidemiological information extraction task, thus providing no added benefit in a comprehensive iCL setting. In contrast, the general-purpose models adapted and learned effectively through the iCL paradigm.
Overall, no significant crossovers were observed where a model with a low ceiling overtook a more effective model early on. Instead, LLaMA 3.3-70B and Qwen 2.5-7B Instruct maintained their highest performance across all number of examples, demonstrating the best sample accuracy at low shots and the highest ceiling (highest plateau). Based on the trade-off between performance gain and practical cost, these two models are recommended for the epidemiological information extraction task, with a number of examples equal to NiCL = 16. This value captures most of the performance gain for these models before their performance curves flatten, providing near-maximum quality while maintaining manageable prompt length and cost. Any marginal gain in ROUGE beyond NiCL = 16 is negligible and does not justify the additional resource consumption. These findings from the ROUGE analysis are further corroborated by the BERTScore metrics (Fig 2), which assess semantic similarity beyond lexical overlap. The BERTScore results exhibit the same model ranking and performance trends, confirming that the patterns observed are not artefacts of the lexical evaluation approach but reflect genuine differences in extraction quality.
Fine-tuning: Performance gains and model comparison
Turning to the results achieved through fine-tuning, we see that EpiLLaMA 3.3-70B consistently outperforms the other models across all evaluation metrics, both ROUGE and BERTScore, confirming its superior performance in the iCL experiments. However, this performance advantage comes at a considerable computational cost; it requires approximately 50% more training time per fold and significantly greater memory resources during both training and inference.
EpiQwen 2.5-7B emerged as a compelling alternative, achieving results remarkably close to EpiLLaMA 3.3-70B (within 0.019 to 0.032 points across ROUGE metrics, and within 0.004 points in BERTScore F1) despite being an order of magnitude smaller (7B vs. 70B parameters). This efficiency makes EpiQwen 2.5-7B particularly attractive for deployment scenarios where computational resources are limited or rapid inference is required. The improvements in training effectiveness (20–22 hours vs. 30 hours per fold) and reduced memory footprint during inference further enhance its practical applicability.
EpiMistral-7B, while ranking last among the fine-tuned models, still demonstrated strong absolute performance (overall ROUGE scores exceeding 0.85 and BERTScore F1 of 0.985) and represented a viable option for resource-limited environments.
Essentially, when we compared the fine-tuned models against their iCL counterparts, we observed substantial performance improvements that validated the investment in parameter adaptation. EpiLLaMA 3.3-70B achieved an overall Rouge-1 score of 0.937 compared to its iCL plateau of approximately 0.840 (at NiCL = 16), representing an improvement of nearly 10 percentage points. Similarly, EpiQwen 2.5-7B improved from 0.819 (iCL) to 0.918 (fine-tuned), a gain of approximately 10 percentage points. Notably, EpiMistral-7B demonstrated a dramatic improvement from approximately 0.60 (iCL plateau) to 0.899 (fine-tuned), nearly a 30 percentage point increase. This substantial enhancement suggests the underlying architecture of Mistral-7B-OpenOrca is well-suited when properly adapted for the task through parameter updates.
Moreover, the performance gap between models narrowed considerably after fine-tuning. In the iCL setting, LLaMA 3.3-70B held a leading position over smaller models, with performance differences exceeding 20 percentage points in some configurations. Post fine-tuning, the maximum difference between the other two models, EpiLLaMA 3.3-70B and EpiMistral-7B, was approximately four percentage points (0.937 vs. 0.899 in Rouge-1). This narrowing is even more pronounced in BERTScore, where EpiMistral-7B (F1 = 0.985) actually matches EpiLLaMA 3.3-70B (F1 = 0.981), suggesting that all fine-tuned models produce semantically equivalent extractions despite surface-form differences captured by ROUGE. This indicates that parameter-efficient fine-tuning effectively democratises high-quality extraction performance across diverse model architectures and scales.
Limitations
Several limitations of this study should be acknowledged. First, regarding study design and generalisability, our evaluation relies on a single, expert-curated benchmark, the WHO DONs curated database, which consists of English-language, retrospective reports documenting already-known outbreaks up to 2019. Consequently, the reported performance may not transfer directly to the noisier, higher-volume, and multilingual information streams (e.g., unmoderated news, social media, and other open-source intelligence) that operational surveillance systems process in real time, and adaptation to such sources would be required before deployment. Moreover, because records sharing the same input text were grouped within the same fold, our evaluation targets text-level extraction accuracy rather than event-level generalisation to entirely unseen outbreaks. Second, concerning the evaluation methodology and metrics, ROUGE and BERTScore quantify, respectively, the lexical and semantic agreement between model outputs and reference annotations; while complementary, they do not, by themselves, establish operational accuracy, safety, or readiness for deployment, and our study did not include a human-expert comparator against which human-level performance could be benchmarked. Third, from a modelling standpoint, we did not perform extensive hyperparameter optimisation, and model selection was based on the checkpoint achieving the lowest training loss rather than on a separate validation set or a prespecified validation metric. Because training loss typically keeps decreasing even after generalisation performance has started to deteriorate, this criterion is not the most standard practice and may, in principle, favour an overly fitted checkpoint. Although the reported scores are computed on held-out folds that played no role in checkpoint selection, this criterion was not compared against validation-based selection, and intermediate checkpoints were not evaluated on held-out data. The effect of this choice on generalisation, and whether it led to under- or over-estimation of performance, therefore cannot be fully established from our analyses. Although the high and consistent performance across the five folds is encouraging, it does not by itself rule out overfitting of the selected checkpoints. Finally, with respect to computational efficiency, parameter-efficient fine-tuning, and in particular adapting the 70B-parameter model, remains resource-intensive (requiring multiple H100 GPUs and tens of hours per fold), and we did not systematically benchmark per-document inference latency or throughput at the scale required by operational epidemic-intelligence pipelines. Addressing these limitations, through multilingual and real-time data sources, validation-based model selection, human-centred evaluation, and efficiency benchmarking, represents an important direction for future work.
Implications for public health surveillance
The results achieved through fine-tuning confirmed the superiority of this approach over in-context learning for epidemiological information extraction on this benchmark. The consistently high ROUGE scores (>0.85) and BERTScore values (>0.95) across all models and metrics indicate that fine-tuned LLMs can extract structured epidemiological information from WHO DONs reports with high agreement with the reference annotations. The consistency of these scores across different data partitions indicates stable performance across the folds. This capability has the potential to address a critical bottleneck in global health surveillance, where timely extraction and standardisation of outbreak data from narrative reports is essential for rapid analysis of the situation and timely response.
All three fine-tuned models achieved high agreement with the reference annotations on this benchmark. While WHO DONs serve as a high-quality benchmark for developing and validating our extraction methods due to their standardized structure and expert curation, it is important to acknowledge that DONs represent retrospective, curated reports that document already-known outbreaks rather than real-time surveillance data. The primary public health value of our work lies in the potential to transfer these methods to upstream, real-time information sources including unmoderated news articles, outbreak reports, social media feeds, and other open-source intelligence streams processed by real-world surveillance systems. Models trained and validated on the structured DONs dataset can serve as a foundation for adaptation to these noisier, higher-volume sources, thereby enabling earlier outbreak detection before events reach the stage of official WHO reporting. This pathway from benchmark validation to operational deployment in real-time surveillance represents the critical public health application of our approach. We emphasise, however, that our findings establish strong benchmark performance rather than demonstrated operational readiness: the present results indicate that these models provide a promising foundation for such integration, which would nonetheless require further adaptation, prospective validation on real-time sources, and human-centred evaluation of operational accuracy and safety before deployment. Notably, EpiLLaMA 3.3-70B shows a narrower gap between Rouge-1 and Rouge-2 scores (0.041 difference) compared to other models (0.046 to 0.054 difference). This suggests that the larger model produces more structurally coherent outputs with better preservation of word order. This is crucial for maintaining the integrity of epidemiological relationships in extracted data.
The choice among the three models can be guided by the specific operational requirements: EpiLLaMA 3.3-70B for scenarios demanding maximum accuracy regardless of computational cost; EpiQwen 2.5-7B for balanced performance and efficiency suitable for most deployment contexts; and EpiMistral-7B for resource-constrained environments where good performance is still achievable with minimal infrastructure.
Furthermore, the narrow gap between fine-tuned models suggests that the epidemiological information extraction task, once properly learned through parameter adaptation, is within the capability range of moderately-sized LLMs (7B parameters). This finding has important implications for the democratisation of AI-powered public health surveillance, as it indicates that even organisations with limited computational resources can deploy effective extraction systems without requiring access to the largest available models.
Conclusion
This study provides a comprehensive comparison of in-context learning and fine-tuning approaches for automated epidemiological information extraction from WHO Disease Outbreak News reports. Our findings demonstrated that parameter-efficient fine-tuning using LoRA substantially outperformed in-context learning across all evaluated models. Moreover, fine-tuned variants achieved strong extraction performance on this benchmark, as measured by ROUGE and BERTScore agreement with expert-curated reference annotations. These results indicate a promising foundation for epidemic intelligence applications; however, operational readiness was not evaluated in this study, and deployment would require further adaptation, prospective validation on real-time sources, and human-centred evaluation of operational accuracy and safety, as discussed in the Limitations.
The success of moderately-sized fine-tuned models in this task suggests that effective AI-powered surveillance tools may be feasible to develop and run in resource-constrained environments, subject to the validation discussed above. Our research contributes to the ongoing efforts to enhance global health surveillance capabilities, offering insights into the broader applicability of LLMs in public health and expanding the toolkit available for epidemic intelligence. The methodological framework and empirical insights presented provide a foundation for future work towards integrating generative AI into real-time public health surveillance pipelines, with the aim of contributing to faster outbreak detection and more informed and timely response.
Supporting information
S1 Appendix. In-context learning prompt example.
Example of the construction of an in-context learning prompt with two shots taken from the WHO DONs curated database (“Yellow fever in Liberia” and “Viral haemorrhagic fever/Marburg in Democratic Republic of Congo - Update 11”), applied to a text from the “Dengue in the Americas” report.
https://doi.org/10.1371/journal.pone.0364093.s001
(PDF)
S2 Appendix. Detailed descriptions of the large language models.
Detailed descriptions of the large language models evaluated in this study: LLaMA 3, Mistral, Meditron, T5, and Qwen.
https://doi.org/10.1371/journal.pone.0364093.s002
(PDF)
S3 Appendix. Numerical values underlying Figs 1–3.
Tables reporting the numerical values underlying Figs 1–3: the mean ROUGE and BERTScore values obtained by each iCL model at each number of in-context examples (Figs 1 and 2), and the overall fine-tuning ROUGE values as mean half standard deviation, matching the error bars (Fig 3).
https://doi.org/10.1371/journal.pone.0364093.s003
(PDF)
S4 Appendix. In-context learning ROUGE score analysis with confidence intervals.
Rouge-1, Rouge-2, Rouge-L, and Rouge-Lsum scores obtained by each iCL model at increasing numbers of in-context examples, with shaded bands representing 99% confidence intervals, and a discussion of the observed patterns.
https://doi.org/10.1371/journal.pone.0364093.s004
(PDF)
S5 Appendix. Single-feature performance analysis.
Average weighted F1, precision, recall, and Rouge-1 for each epidemiological feature extracted by the best-performing fine-tuned model (EpiLLaMA 3.3-70B), and a discussion of the agreement between Rouge-1 and traditional classification metrics.
https://doi.org/10.1371/journal.pone.0364093.s005
(PDF)
S6 Appendix. Training loss trajectories.
Training loss trajectories of the three fine-tuned models (EpiLLaMA 3.3-70B, EpiMistral-7B, and EpiQwen 2.5-7B) across the five cross-validation folds.
https://doi.org/10.1371/journal.pone.0364093.s006
(PDF)
Acknowledgments
We would like to thank the colleagues of the Digital Health Unit (JRC.F7) at the Joint Research Centre of the European Commission for helpful guidance and support. The views and opinions expressed herein are the authors’ own and do not necessarily state or reflect an official position of the European Commission. We would like to acknowledge the GPT@JRC initiative for providing access to the LLMs used in this study. We extend our gratitude also to the JRC Big Data Analytics Platform for providing secure access to various AI models. Finally, we would like to thank the colleagues contributing to the WHO Epidemic Intelligence from Open Sources (EIOS) initiative for the helpful suggestions and support during the development of this work.
References
- 1. Brownstein JS, Rader B, Astley CM, Tian H. Advances in artificial intelligence for infectious-disease surveillance. New England Journal of Medicine. 2023;388(17):1597–607.
- 2. Zhang K, Meng X, Yan X, Ji J, Liu J, Xu H, et al. Revolutionizing health care: The transformative impact of large language models in medicine. J Med Internet Res. 2025;27:e59069. pmid:39773666
- 3. Salathé M, Bengtsson L, Bodnar TJ, Brewer DD, Brownstein JS, Buckee C, et al. Digital epidemiology. PLoS Comput Biol. 2012;8(7):e1002616. pmid:22844241
- 4. Omar M, Brin D, Glicksberg B, Klang E. Utilizing natural language processing and large language models in the diagnosis and prediction of infectious diseases: A systematic review. Am J Infect Control. 2024;52(9):992–1001. pmid:38588980
- 5. Polgreen PM, Chen Y, Pennock DM, Nelson FD. Using internet searches for influenza surveillance. Clin Infect Dis. 2008;47(11):1443–8. pmid:18954267
- 6. Warsame A, Murray J, Gimma A, Checchi F. The practice of evaluating epidemic response in humanitarian and low-income settings: A systematic review. BMC Med. 2020;18(1):315. pmid:33138813
- 7. Lata H, Saad Duque NJ, Togami E, Miglietta A, Perkins D, Corpuz A, et al. Disseminating information on acute public health events globally: Experiences from the WHO’s Disease Outbreak News. BMJ Glob Health. 2024;9(2):e012876. pmid:38413101
- 8. Carlson CJ, Boyce MR, Dunne M, Graeden E, Lin J, Abdellatif YO, et al. The World Health Organization’s disease outbreak news: A retrospective database. PLOS Glob Public Health. 2023;3(1):e0001083. pmid:36962988
- 9.
World Health Organization. International Health Regulations, Second Edition. 2005. https://www.afro.who.int/sites/default/files/2017-06/international_health_regulations_2005.pdf
- 10. Bedi S, Liu Y, Orr-Ewing L, Dash D, Koyejo S, Callahan A, et al. Testing and evaluation of health care applications of large language models: A systematic review. JAMA. 2025;333(4):319–28. pmid:39405325
- 11.
Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN, et al. Attention is all you need. Advances in neural information processing systems. 2017. 5999–6009.
- 12.
Brown TB, Mann B, Ryder N, Subbiah M, Kaplan J, Dhariwal P. Language models are few-shot learners. In: Advances in neural information processing systems. 2020.
- 13.
Consoli S, Reforgiato Recupero D, Petkovic M. Data science for healthcare - methodologies and applications. Springer Nature; 2019. https://doi.org/10.1007/978-3-030-05249-2
- 14.
Goodfellow AC, Bengio Y. Deep learning. MIT Press; 2016.
- 15.
Wei J, Tay Y, Bommasani R, Raffel C, Zoph B, Borgeaud S. Emergent abilities of large language models. 2022.
- 16.
Wolf T, Debut L, Sanh V, Chaumond J, Delangue C, Moi A, et al. Transformers: State-of-the-art natural language processing. In: Proceedings of the 2020 conference on empirical methods in natural language processing: System demonstrations. 2020. 38–45. https://doi.org/10.18653/v1/2020.emnlp-demos.6
- 17. Kissler SM, Tedijanto C, Goldstein E, Grad YH, Lipsitch M. Projecting the transmission dynamics of SARS-CoV-2 through the postpandemic period. Science. 2020;368(6493):860–8.
- 18. Lewnard JA, Reingold AL. Emerging challenges and opportunities in infectious disease epidemiology. Am J Epidemiol. 2019;188(5):873–82. pmid:30877295
- 19.
World Health Organization. EIOS: Epidemic intelligence from open sources. 2024. Accessed 2025 October 1. https://www.who.int/initiatives/eios
- 20.
Spagnolo L, Abdelmalik P, Doherty B, Fabbri M, Linge J, Marin Ferrer M, et al. Integration of the Epidemic Intelligence from Open Sources (EIOS) and the INFORM suite. EUR 30353 EN. Luxembourg: Publications Office of the European Union; 2020. https://doi.org/10.2760/958918
- 21. Bhadelia N. An improved alert system for emerging infectious diseases. JAMA. 2025;333(2):115–6. pmid:39504043
- 22. Paolotti D, Carnahan A, Colizza V, Eames K, Edmunds J, Gomes G, et al. Web-based participatory surveillance of infectious diseases: The Influenzanet participatory surveillance experience. Clin Microbiol Infect. 2014;20(1):17–21. pmid:24350723
- 23. Thakkar V, Silverman GM, Kc A, Ingraham NE, Jones EK, King S, et al. A comparative analysis of large language models versus traditional information extraction methods for real-world evidence of patient symptomatology in acute and post-acute sequelae of SARS-CoV-2. PLoS One. 2025;20(5):e0323535. pmid:40373001
- 24. Bizel-Bizellot G, Galmiche S, Lelandais B, Charmet T, Coudeville L, Fontanet A, et al. Extracting circumstances of Covid-19 transmission from free text with large language models. Nat Commun. 2025;16(1):5836. pmid:40593634
- 25.
Dong Q, Li L, Dai D, Zheng C, Ma J, Li R, et al. A survey on in-context learning. In: Proceedings of the 2024 conference on empirical methods in natural language processing. 2024. 1107–28. https://doi.org/10.18653/v1/2024.emnlp-main.64
- 26. Wang L, Chen X, Deng X, Wen H, You M, Liu W, et al. Prompt engineering in consistency and reliability with the evidence-based guideline for LLMs. NPJ Digit Med. 2024;7(1):41. pmid:38378899
- 27. Zaghir J, Naguib M, Bjelogrlic M, Névéol A, Tannier X, Lovis C. Prompt engineering paradigms for medical applications: Scoping review. J Med Internet Res. 2024;26:e60501. pmid:39255030
- 28. Anisuzzaman DM, Malins JG, Friedman PA, Attia ZI. Fine-tuning large language models for specialized use cases. Mayo Clin Proc Digit Health. 2024;3(1):100184. pmid:40206998
- 29. Ding N, Qin Y, Yang G, Wei F, Yang Z, Su Y, et al. Parameter-efficient fine-tuning of large-scale pre-trained language models. Nat Mach Intell. 2023;5(3):220–35.
- 30. Keller M, Freifeld CC, Brownstein JS. Automated vocabulary discovery for geo-parsing online epidemic intelligence. BMC Bioinformatics. 2009;10:385. pmid:19930702
- 31. Espinosa L, Wijermans A, Orchard F, Höhle M, Czernichow T, Coletti P, et al. Epitweetr: Early warning of public health threats using Twitter data. Euro Surveill. 2022;27(39):2200177. pmid:36177867
- 32. Lejeune G, Brixtel R, Doucet A, Lucas N. Multilingual event extraction for epidemic detection. Artif Intell Med. 2015;65(2):131–43. pmid:26228941
- 33. Torii M, Yin L, Nguyen T, Mazumdar CT, Liu H, Hartley DM, et al. An exploratory study of a text classification framework for Internet-based surveillance of emerging epidemics. Int J Med Inform. 2011;80(1):56–66. pmid:21134784
- 34. Chowell G, Luo R, Sun K, Roosa K, Tariq A, Viboud C. Real-time forecasting of epidemic trajectories using computational dynamic ensembles. Epidemics. 2020;30:100379. pmid:31887571
- 35. Madoff LC, Woodall JP. The internet and the global monitoring of emerging diseases: lessons from the first 10 years of ProMED-mail. Arch Med Res. 2005;36(6):724–30. pmid:16216654
- 36. You J, Expert P, Costelloe C. Using text mining to track outbreak trends in global surveillance of emerging diseases: ProMED-mail. J Royal Stat Soc Series A: Stat Soc. 2021;184(4):1245–59.
- 37. Chang Y-C, Chiu Y-W, Chuang T-W. Linguistic pattern-infused dual-channel bidirectional long short-term memory with attention for dengue case summary generation from the program for monitoring emerging diseases-mail database: Algorithm development study. JMIR Public Health Surveill. 2022;8(7):e34583. pmid:35830225
- 38. Babanejaddehaki G, An A, Papagelis M. Disease outbreak detection and forecasting: A review of methods and data sources. ACM Trans Comput Healthcare. 2025;6(2):1–40.
- 39. Kwok KO, Huynh T, Wei WI, Wong SYS, Riley S, Tang A. Utilizing large language models in infectious disease transmission modelling for public health preparedness. Comput Struct Biotechnol J. 2024;23:3254–7. pmid:39286528
- 40. Espinosa L, Salathé M. Use of large language models as a scalable approach to understanding public health discourse. PLOS Digit Health. 2024;3(10):e0000631. pmid:39401186
- 41. Du H, Zhao Y, Zhao J, Xu S, Lin X, Chen Y, et al. Advancing real-time infectious disease forecasting using large language models. Nat Comput Sci. 2025;5(6):467–80. pmid:40481184
- 42. Consoli S, Coletti P, Markov PV, Orfei L, Biazzo I, Schuh L, et al. An epidemiological knowledge graph extracted from the World Health Organization’s Disease Outbreak News. Sci Data. 2025;12(1):970. pmid:40494870
- 43.
Consoli S, Markov P, Stilianakis NI, Bertolini L, Gallardo AP, Ceresa M. Epidemic information extraction for event-based surveillance using large language models. In: Proceedings of Ninth International Congress on Information and Communication Technology (ICICT 2024). LNNS. Lecture Notes in Networks and Systems; 2024. 241–52.
- 44. Saleh Y, Abu Talib M, Nasir Q, Dakalbab F. Evaluating large language models: A systematic review of efficiency, applications, and future directions. Front Comput Sci. 2025;7.
- 45.
Shao Y, Taylor S, Marshall N, Morioka C, Zeng-Treitler Q. Clinical text classification with word embedding features vs. bag-of-words features. In: Proceedings - 2018 IEEE International conference on big data. 2018. 2874–8. https://doi.org/10.1109/BigData.2018.8622345
- 46.
Selva Birunda S, Kanniga Devi R. A review on word embedding techniques for text classification. Lecture notes on data engineering communications technologies. Springer Singapore; 2021. 267–81. https://doi.org/10.1007/978-981-15-9651-3_23
- 47. Trott S, Jones C, Chang T, Michaelov J, Bergen B. Do large language models know what humans know?. Cog Sci. 2023;47(7):e13309.
- 48.
Reimers N, Gurevych I. Sentence-BERT: Sentence embeddings using siamese BERT-networks. In: Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), 2019. 3980–90. https://doi.org/10.18653/v1/d19-1410
- 49.
Devlin J, Chang M-W, Lee K, Toutanova K. BERT: Pre-training of deep bidirectional transformers for language understanding. In: Proceedings of the 2019 conference of the north american chapter of the association for computational linguistics: human language technologies, volume 1 (Long and Short Papers), 2019. 4171–86. https://doi.org/10.18653/v1/n19-1423
- 50.
Wei J, Wang X, Schuurmans D, Bosma M, Ichter B, Xia F. Chain-of-thought prompting elicits reasoning in large language models. 2023. https://doi.org/arXiv:2201.11903
- 51.
Touvron H, Lavril T, Izacard G, Martinet X, Lachaux MA, Lacroix T. LLaMA: Open and efficient foundation language models. 2023. https://doi.org/arXiv:2302.13971
- 52.
Touvron H, Martin L, Stone K, Albert P, Almahairi A, Babaei Y. Llama 2: Open foundation and fine-tuned chat models. 2023. https://doi.org/arXiv:2307.09288
- 53.
Grattafiori A, Dubey A, Jauhri A, Pandey A, Kadian A, Al-Dahle A. The Llama 3 herd of models. 2024. https://doi.org/arXiv:2407.21783
- 54.
Jiang AQ, Sablayrolles A, Mensch A, Bamford C, Chaplot DS, de las Casas D. Mistral 7B. 2023. https://arxiv.org/abs/2310.06825
- 55.
Lian W, Goodson B, Wang G, Pentland E, Cook A, Vong C. MistralOrca: Mistral-7B model instruct-tuned on filtered OpenOrcaV1 GPT-4 dataset. HuggingFace; 2023. https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca
- 56.
Raffel C, Shazeer N, Roberts A, Lee K, Narang S, Matena M. Exploring the limits of transfer learning with a unified text-to-text transformer. 2023. https://doi.org/arXiv:1910.10683
- 57.
Yang A. Qwen2.5 technical report. 2025. https://arxiv.org/abs/2412.15115
- 58. Widder DG, Whittaker M, West SM. Why “open” AI systems are actually closed, and why this matters. Nature. 2024;635(8040):827–33. pmid:39604616
- 59. Soille P, Burger A, De Marchi D, Kempeneers P, Rodriguez D, Syrris V, et al. A versatile data-intensive computing platform for information retrieval from big geospatial data. Future Generat Comp Syst. 2018;81:30–40.
- 60.
Mueller A, Webson A, Petty J, Linzen T. In-context learning generalizes, but not always robustly: The case of syntax. 2024. https://doi.org/arXiv:2311.07811
- 61.
Han C, Wang Z, Zhao H, Ji H. Understanding emergent in-context learning from a kernel regression perspective. 2025. https://arxiv.org/abs/2305.12766
- 62. Pratap S, Aranha AR, Kumar D, Malhotra G, Iyer APN, Shylaja S. The fine art of fine-tuning: A structured review of advanced LLM fine-tuning techniques. Natural Lang Process J. 2025;11:100144.
- 63.
Yu Y, Yang C-HH, Kolehmainen J, Shivakumar PG, Gu Y, Ren SRR, et al. Low-rank adaptation of large language model rescoring for parameter-efficient speech recognition. In: 2023 IEEE Automatic Speech Recognition and Understanding Workshop (ASRU). 2023. 1–8. https://doi.org/10.1109/asru57964.2023.10389632
- 64.
Hu EJ, Shen Y, Wallis P, Allen-Zhu Z, Li Y, Wang S. LoRA: Low-rank adaptation of large language models. 2021. https://doi.org/arXiv:2106.09685
- 65. Wu C, Qiu P, Liu J, Gu H, Li N, Zhang Y, et al. Towards evaluating and building versatile large language models for medicine. NPJ Digit Med. 2025;8(1):58. pmid:39865143
- 66.
Lin CY. ROUGE: A package for automatic evaluation of summaries. Text summarization branches out. Barcelona, Spain: Association for Computational Linguistics; 2004.
- 67. Auriemma Citarella A, Barbella M, Ciobanu MG, De Marco F, Di Biasi L, Tortora G. Assessing the effectiveness of ROUGE as unbiased metric in Extractive vs. Abstractive summarization techniques. J Comp Sci. 2025;87:102571.
- 68.
Zhang T, Kishore V, Wu F, Weinberger KQ, Artzi Y. BERTScore: Evaluating text generation with BERT. In: International conference on learning representations (ICLR). 2020. https://openreview.net/forum?id=SkeHuCVFDr
- 69.
Corder GW, Foreman DI. Nonparametric statistics for non-statisticians: A step-by-step approach. Wiley Online Library; 2011. https://doi.org/10.1002/9781118165881
- 70. Madjarov G, Kocev D, Gjorgjevikj D, Džeroski S. An extensive experimental comparison of methods for multi-label learning. Pattern Recog. 2012;45(9):3084–104.
- 71.
Hong Z, Ajith A, Pauloski J, Duede E, Chard K, Foster I. The diminishing returns of masked language models to science. In: Findings of the association for computational linguistics: ACL 2023. 2023. 1270–83. https://doi.org/10.18653/v1/2023.findings-acl.82
- 72.
Arora A, Jurafsky D, Potts C, Goodman N. Bayesian Scaling Laws for In-Context Learning. In: Proceedings of the 2nd conference on language modeling (COLM). Montreal, Canada; 2025. https://arxiv.org/abs/2410.16531
- 73. Liu NF, Lin K, Hewitt J, Paranjape A, Bevilacqua M, Petroni F. Lost in the middle: How language models use long contexts. Transac Assoc Comp Ling. 2024;12:157–73.
- 74.
Zhang Y, Singh A, Latham P, Saxe A. Training dynamics of in-context learning in linear attention. In: International conference on learning representations (ICLR); 2025.
- 75.
Cao B, Cai D, Lam W. InfiniteICL: Breaking the limit of context window size via long short-term memory transformation. In: Findings of the association for computational linguistics: ACL 2025, 2025. 11402–15. https://doi.org/10.18653/v1/2025.findings-acl.595

관련 뉴스