Large language models for cancer registry abstraction: a real-world evaluation across models, variables, and cancer types
Preprint
Abstract
Cancer registries enable cancer surveillance at the population level. These registries require significant human-time to read through many different parts of the electronic health record, including structured data and lengthy, free-text clinical reports, to abstract values for hundreds of required variables. Large language models (LLMs) offer the possibility to significantly improve this process by supporting and speeding up cancer registry data abstraction. However, it is unclear how well these models perform at real-world cancer registry abstraction involving multiple cancer types and large patient volumes. Here, we evaluate five foundational LLMs for their ability to reliably abstract cancer registry variables. We leverage hospital cancer registry data from a large regional health system as the ground truth and use LLMs to abstract from clinical reports eight registry variables for 5,939 patients with seven different cancer types. We use a zero-shot prompting strategy to compare LLM ability on commonly abstracted cancer variables with different data types. The results show that larger and more advanced models (Claude Sonnet 4.5, GPT-OSS-120b, GPT-OSS-20b) generally outperform smaller models (Gemma 12b, LLaMA 3.1 8b). The best performing models show F1 scores around 0.8 for cancer registry variables with low cardinality (grade, summary stage, laterality), with only slightly lower F1 scores for variables with high cardinality (primary site, regional nodes examined, regional nodes positive). On the more complex task of precise date extraction, all models showed decreased performance on both diagnosis and treatment dates (exact accuracy ∼0.55 for the best performing models), which increased to ∼0.85 for a tolerance within ±30 days. These results quantify the performance of various models as well as the potential and limitations of LLMs in cancer registry abstraction tasks. Author Summary: Cancer registries help us understand who gets cancer, how it is treated, and how outcomes change over time. Today, trained registrars read many parts of the medical record and manually enter hundreds of details, leading to significant delays before cancer researchers can use this data. We tested whether Large Language Models could help with this work. Using clinical reports from 5,939 patients across seven cancer types at a large regional comprehensive cancer center, we asked five different models to capture key cancer registry fields such as where the cancer started, how advanced it is, the tumor’s grade, and the date of diagnosis. In our study, larger models were generally more accurate than smaller ones, and some open-source models performed comparably to proprietary options. Dates were the hardest information to capture precisely. We provide a realistic benchmark for speeding registry workflows in consultation with cancer registrars.Keywords
This publication has 25 references indexed in Scilit:
- Real-world application of large language models for automated TNM staging using unstructured gynecologic oncology reportsnpj Precision Oncology, 2025
- Using natural language processing to extract information from clinical text in electronic medical records for populating clinical registries: a systematic reviewJournal of the American Medical Informatics Association, 2025
- A software pipeline for medical information extraction with large language models, open source and suitable for oncologynpj Precision Oncology, 2025
- Comparison of Frontier Open-Source and Proprietary Large Language Models for Complex DiagnosesJAMA Health Forum, 2025
- NLP for Analyzing Electronic Health Records and Clinical Notes in Cancer Research: A ReviewJournal of Pain and Symptom Management, 2025
- Lost in the Middle: How Language Models Use Long ContextsTransactions of the Association for Computational Linguistics, 2024
- Same Task, More Tokens: the Impact of Input Length on the Reasoning Performance of Large Language Models2024
- LooGLE: Can Long-Context Language Models Understand Long Contexts?2024
- Large language models are few-shot clinical information extractors2022
- Variability in date of prostate cancer diagnosis: a comparison of cancer registry, pathology report, and electronic health data sourcesAnnals of Epidemiology, 2014