Evaluating Large Language Models for Public Health Classification and Extraction Tasks
Joshua Harris, Timothy Laurence, Leo Loman, Fan Grayson, Toby Nonnenmacher, Harry Long, Loes WalsGriffith, Amy Douglas, Holly Fountain, Stelios Georgiou, Jo Hardstaff, Kathryn Hopkins, Y-Ling Chi, Galena Kuyumdzhieva, Lesley Larkin, Samuel Collins, Hamish Mohammed, Thomas Finnie, Luke Hounsome, Michael Borowitz, Steven Riley
TL;DR
Problem: determining how well open-weight LLMs perform on public health free-text classification and extraction tasks. Approach: automated domain-specific evaluation across 16 tasks in burden, risk factors, and interventions using 11 open-weight LLMs with zero-shot prompting, plus GPT-4 comparisons; performance measured primarily by $micro\text{-}F1$ and $macro\text{-}F1$, with INT-4 AWQ quantization experiments. Findings: Llama-3.3-70B-Instruct often leads among open-weight models (8/16 tasks); many tasks exceed $0.80$ $micro\text{-}F1$, while some tasks (e.g., BioDex Drugs Extraction, Contact Classification) remain challenging; few-shot prompting yields major gains on hard tasks; GPT-4 series can match or exceed open-weight models on subset, with comparable overall performance in several cases. Significance: demonstrates promising potential for open-weight LLMs to support public health surveillance, research, and interventions, while highlighting task-dependent limitations and the need for careful validation, domain-specific annotation, and advanced prompting pipelines for robust real-world deployment.
Abstract
Advances in Large Language Models (LLMs) have led to significant interest in their potential to support human experts across a range of domains, including public health. In this work we present automated evaluations of LLMs for public health tasks involving the classification and extraction of free text. We combine six externally annotated datasets with seven new internally annotated datasets to evaluate LLMs for processing text related to: health burden, epidemiological risk factors, and public health interventions. We evaluate eleven open-weight LLMs (7-123 billion parameters) across all tasks using zero-shot in-context learning. We find that Llama-3.3-70B-Instruct is the highest performing model, achieving the best results on 8/16 tasks (using micro-F1 scores). We see significant variation across tasks with all open-weight LLMs scoring below 60% micro-F1 on some challenging tasks, such as Contact Classification, while all LLMs achieve greater than 80% micro-F1 on others, such as GI Illness Classification. For a subset of 11 tasks, we also evaluate three GPT-4 and GPT-4o series models and find comparable results to Llama-3.3-70B-Instruct. Overall, based on these initial results we find promising signs that LLMs may be useful tools for public health experts to extract information from a wide variety of free text sources, and support public health surveillance, research, and interventions.
