Abstract
The UW-BioNLP team secured first place in the ChemoTimelines 2025 challenge by developing a high-performance pipeline to extract chemotherapy treatment timelines from raw clinical notes. Their winning approach leveraged a fine-tuned Qwen3-14B model combined with advanced reasoning ("thinking") modes and Direct Preference Optimization (DPO), achieving a top official test score of 0.678. This work demonstrates the efficacy of supervised fine-tuning and specialized reasoning strategies in navigating the complexities of clinical narratives.
Introduction
Electronic Health Records (EHRs) are a critical resource for clinical research, yet essential data—such as chemotherapy start and end dates—is often buried in unstructured clinical narratives. Extracting these timelines is difficult due to clinical complexity (e.g., regimen deviations), linguistic ambiguity in temporal expressions, and the high volume of notes per patient. The ChemoTimelines 2025 shared task (Subtask 2) challenged participants to build end-to-end systems that transform raw EHR notes into structured patient-level timelines of systemic anticancer treatments (SACT).
Methods
The UW-BioNLP system employs a two-step workflow: Note-Level Extraction followed by Timeline Aggregation. The team explored four primary extraction strategies:
- Prompting Baseline: Zero-shot and few-shot prompting using the Qwen3 model family.
- "Thinking" Mode (CoT): Utilizing Chain-of-Thought reasoning to allow the model to process extraction logic before generating structured JSON.
- Dictionary-Enhanced Extraction: A pipeline using a curated drug dictionary (from HemOnc.org) for initial tagging, followed by LLM-based verification and relation extraction.
- Supervised Fine-Tuning (SFT) & DPO: The most successful approach, involving fine-tuning Qwen3-14B on gold-standard annotations and refining it with Direct Preference Optimization (DPO) to prioritize high recall.
For the aggregation phase, the team used Timenorm to standardize relative time expressions into ISO dates and implemented a deduplication script to merge events across multiple notes.
Data
The study utilized the ChemoTimelines 2025 dataset, comprising clinical notes for patients with breast cancer, melanoma, and ovarian cancer. The dataset was partitioned into training (69 patients, 2,910 notes), development (27 patients, 1,272 notes), and test sets (53 patients, 2,121 notes).
Results
The SFT Qwen3-14B model achieved the highest official score on the test set. Performance across various submission strategies is summarized below.
Ablation studies across different model sizes and methods revealed that the 14B parameter model consistently outperformed both smaller models and significantly larger variants, such as the 32B or 30B-A3B models. This suggests that for specialized clinical tasks, model architecture and tuning are more critical than raw parameter count.
Discussion and Key Insights
Several key insights emerged from the study:
- The Power of Reasoning: Enabling "thinking" modes significantly reduced false positives by allowing the model to internally verify if a drug was a valid SACT (e.g., correctly excluding Neulasta).
- Normalization Bottlenecks: Superior note-level extraction did not always lead to better final timelines, as the accuracy of date normalization remains a primary hurdle for clinical NLP.
- Reasoning-Output Mismatch: In some cases, the model's internal reasoning correctly identified a false positive, yet the final JSON output still included the error—a specific type of hallucination where the final output fails to align with internal logic.
Conclusion
The UW-BioNLP team's success at ChemoTimelines 2025 demonstrates the effectiveness of fine-tuned medium-sized LLMs and reasoning-based extraction for clinical timeline construction. Future work will explore dynamic few-shot retrieval and Reinforcement Learning to better align model reasoning with final structured outputs.
Summary updated