[Paper Review] Bridging the Domain Divide: Supervised vs. Zero-Shot Clinical Section Segmentation from MIMIC-III to Obstetrics
The paper introduces an Obstetrics Notes Collection (ONC) and compares supervised transformer models (trained on MIMIC-III-derived data) against zero-shot instruction-tuned LLMs for clinical section segmentation, finding in-domain superiority for supervised models but stronger cross-domain generalization and robust performance of zero-shot LLMs after addressing hallucinations.
Clinical free-text notes contain vital patient information. They are structured into labelled sections; recognizing these sections has been shown to support clinical decision-making and downstream NLP tasks. In this paper, we advance clinical section segmentation through three key contributions. First, we curate a new de-identified, section-labeled obstetrics notes dataset, to supplement the medical domains covered in public corpora such as MIMIC-III, on which most existing segmentation approaches are trained. Second, we systematically evaluate transformer-based supervised models for section segmentation on a curated subset of MIMIC-III (in-domain), and on the new obstetrics dataset (out-of-domain). Third, we conduct the first head-to-head comparison of supervised models for medical section segmentation with zero-shot large language models. Our results show that while supervised models perform strongly in-domain, their performance drops substantially out-of-domain. In contrast, zero-shot models demonstrate robust out-of-domain adaptability once hallucinated section headers are corrected. These findings underscore the importance of developing domain-specific clinical resources and highlight zero-shot segmentation as a promising direction for applying healthcare NLP beyond well-studied corpora, as long as hallucinations are appropriately managed.
Motivation & Objective
- Introduce Obstetrics Notes Collection (ONC), a de-identified obstetrics H&P notes dataset annotated for section segmentation.
- Evaluate in-domain generalization of transformer-based supervised models trained on MedSecId (MIMIC-III-derived) to the ONC dataset.
- Conduct head-to-head comparison of supervised transformers with zero-shot instruction-tuned LLMs for clinical section segmentation.
- Investigate hallucinations in zero-shot LLMs and apply postprocessing corrections to improve alignment with canonical headers.
Proposed method
- Fine-tune transformer-based models on MedSecId for 51 (including <none>) section labels, using line-level classification and a CRF variant for sequence labeling.
- Treat lines as independent inputs in the line-level setup to align with transformer token limits; apply 100-token truncation per line.
- Implement Transformer + CRF to model inter-line label dependencies within full notes, with note-level batching (batch size = 1) for contextual learning.
- Evaluate zero-shot LLMs (Mistral-7B-Instruct, Llama 3.1-8B-Instruct, Qwen-2.5-32B-Instruct, Llama 3.3-70B-Instruct) using an instruction-tuned prompt to assign section headers to each line, with postprocessing to extract predictions.
- Identify and quantify hallucinations (headers not in the valid label set) and apply GPT-4o based postprocessing to map hallucinated headers to valid labels.
- Analyze errors with an LLM-based classifier to categorize omissions, label confusion, valid local interpretation, and other errors.
Experimental results
Research questions
- RQ1How well do supervised transformer models trained on MIMIC-III (MedSecId) generalize to obstetrics notes (ONC)?
- RQ2How do zero-shot instruction-tuned LLMs perform on clinical section segmentation in both in-domain and out-of-domain settings?
- RQ3What is the impact of hallucinations in zero-shot LLM outputs, and can simple post-hoc correction mitigate them?
- RQ4Does incorporating sequence modeling (CRF) improve line-level or note-level segmentation performance over line-only transformers?
- RQ5Is domain-specific data (ONC) necessary to achieve robust segmentation in specialized subdomains?
Key findings
- Supervised models outperform zero-shot LLMs on MedSecId (in-domain) segmentation.
- Zero-shot LLMs show stronger out-of-domain adaptability after hallucination corrections, with substantial macro F1 gains post-mitigation.
- CRF-based augmentation provides modest gains for some models, particularly in line-level predictions.
- Zero-shot LLMs achieve relatively better performance on ONC due to smaller label space, and Llama 3.3-70B-Instruct often yields the highest overall performance after corrections.
- Hallucination rates vary by model (e.g., Mistral highest) and significantly impact macro F1; corrections via GPT-4o improve macro F1 by 9% to 33%.
- Wilcoxon tests show Llama 3.3-70B-Instruct significantly outperforms the strongest supervised model on per-note macro F1 (p < 4.88e-17) even with hallucinations, with further gains after correction (p < 3.75e-17).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.