LLM Predicts Cancer Progression With High Accuracy Across Cancer Types

Anyi Li and colleagues at Memorial Sloan Kettering Cancer Center in collaboration with researchers at University of California, San Francisco trained a LLM on real-world clinical oncology data to predict cancer progression. The LLM predicted progression with high accuracy and consistency across cancer types. This is the first oncology specific LLM, using real clinical datasets, to be validated across institutions. An article about this work entitled "Large language model trained on clinical oncology data predicts cancer progression" was published this week in Nature Portfolio Digital Medicine.

“Woollie successfully brings together oncology-specific knowledge with the advanced reasoning and conversational abilities of a modern LLM. Our analysis also shows both the feasibility and importance of cross-institutional validation, which increases general, real-world applicability. This represents an important step toward AI tools that can reliably support oncologists and researchers.”Anyi Li, PhD, Chief of Computer Service, Department of Medical Physics, Memorial Sloan Kettering, and a senior author of the study

Woollie is an open-source, oncology-specific LLM trained on real-world data from MSK across lung, breast, prostate, pancreatic, and colorectal cancers. Woolie was externally validated using an independent dataset from 600 unique patients from UCSF focusing on lung, breast, and prostate cancers. External validation confirmed Woollie’s ability to consistently apply its expertise across various settings, showing its broad utility and effectiveness across diverse healthcare environments. The team implemented an innovative stacked fine-tuning approach and tailored prompting strategies during training. This project involved fine-tuning, prompting, scaling, deployment, and resource management—all at a scale that would be hard to replicate outside of a collaborative setting such as the one used in this study.

Implications for integrating LLMs into oncology

➡️ It's possible to align and fine-tune LLMs within oncology without losing prior knowledge by selecting high-quality datasets and using stacked alignment.

➡️ Baseline benchmarks should not be the only metrics for evaluating LLM performance. The results of this study highlight the importance of cross-institutional validation.

➡️ Knowledge transfer between proprietary data and standard benchmarks is not evident. The inclusion of oncology domain knowledge from radiology enhanced the model’s performance on standard medical benchmarks.

Stacked refinement of Woollie models, from pre-training to oncology domain fine-tuning.

Mitigating Catastrophic Forgetting

"Catastrophic forgetting" in LLMs refers to a phenomenon where a neural network abruptly loses previously learned knowledge when trained on new tasks or data. Fine-tuning on specific tasks such as medical terminology might degrade the model's general language capabilities or performance. This creates a trade-off between specialization and maintaining broad competence. This happens because when an LLM is fine-tuned on new data or tasks, it can overwrite the patterns that represented old knowledge and "forget" what it learned earlier. This can be sudden and severe and the model can completely lose the ability to perform tasks. Researchers are working to create LLMs that can learn continuously without losing valuable prior knowledge.

To reduce catastrophic forgetting in Woollie, researchers used the stacked alignment strategy. This approach enabled performance improvements by progressively building on previously trained models. A comparison among Llama, Woollie Foundation, Woollie Medicine, and Woollie models clearly shows incremental performance improvements across benchmarks. The results suggest that the stacked alignment strategy effectively counteracts the problem of catastrophic forgetting.

MSK dataset includes 38,719 reports from 3402 patients.
UCSF dataset includes 600 reports from 600 unique patients distinct from the MSK data.

Highlights

  1. Researchers trained a family of 14 distinct Woollie models using a stacked alignment and fine-tuning process.
  2. The performance of Woollie models and baseline Llama models was assessed across 11 standard benchmarks in 4 different sizes resulting in a total of 176 tests.
  3. They assessed the models’ performance by calculating accuracy, precision, F1 scores, and MCC on the test datasets.
  4. Accuracy was chosen as the primary metric for comparison.
  5. Accuracy is widely used in open leaderboards for open-source LLMs, making it easier for performance comparisons.
  6. Other metrics aligned with the overall model performance.
  7. Woollie surpassed ChatGPT in medical benchmarks and excelled in 8 non-medical benchmarks.
  8. When compared to Llama models, Woollie models exhibited superior capabilities in logic, conversation, and reasoning tasks.
  9. In non-medical benchmarks, particularly in conversation-centric tests, the larger Woollie models outperformed their Llama equivalents, with the 65B model showing the most significant advantage.
  10. In the medical domain, the Woollie models significantly outperformed the Llama models in tests such as PubMedQA, MedMCQA, and USMLE.
  11. Woolie achieved an overall AUROC of 0.97 for cancer progression prediction on MSK data, including an AUROC of 0.98 for pancreatic cancer.
  12. On UCSF data, it achieved an overall AUROC of 0.88, excelling in lung cancer detection with an AUROC of 0.95.
  13. The Woollie 65B model’s performance on PubMedQA matched GPT-4’s accuracy of 0.804 and significantly surpassed ChatGPT 3.5-turbo’s accuracy of 0.7165.
Woollie and Llama models across 11 tests is depicted in a heatmap. Color intensity in each cell reflects the mean relative performance in each test.

Future Work

Dr. Anyi Li has dedicated over a decade to pioneering the integration of AI into clinical workflows focusing on improving efficiency, reducing costs, and enhancing patient safety. He leads multidisciplinary teams at Memorial Sloan Kettering developing and deploying clinical-grade AI solutions that optimize operations and elevate patient care. Team members who worked on Woollie have expertise in medical physics, radiation oncology, radiology, medical oncology, and cancer data science initiatives.

The results of this study underscore Woollie’s efficacy in general medical contexts and validate the effectiveness of the stacked alignment strategy, which incorporates domain-specific knowledge while maintaining robust performance across broader conversational and reasoning tasks. This work demonstrates that LLMs can classify outcomes and develop a deep understanding of oncology terminology, cancer pathways, and underlying biology. The methods, which are generalizable to other LLM frameworks, sets a strong precedent for applying LLMs to a variety of tasks in cancer clinics. The team has already started prototyping and piloting other operational components inspired by this work and is expanding the concept into multiple specialized agents trained at different levels of expertise.

Model parsing of disease trajectories and biology among different malignancies.

References

Large language model trained on clinical oncology data predicts cancer progression, Nature Portfolio Digital Medicine, July 2, 2025

Authors: Anyi Li, Menglei Zhu, Hui Lin, Jue Jiang, Abbas J. Jinia, Justin Jee, Karl Pichotta, Michele Waters, Doori Rose, Nikolaus Schultz, Sulov Chalise, Lohit Valleru, Olivier Morin, Jean Moran, Joseph O. Deasy, Shirin Pilai, Chelsea Nichols, Gregory Riely, Lior Z. Braunstein.

Copyright © 2025 Margaretta Colangelo. All Rights Reserved.