Hierarchical Temporal Transformer for Cancer Grade Prediction and Cross-Cancer Transfer Learning from Pathology Reports
nura BrimoiD, Rajneesh AnandiD, Anshuman SabathiD, Hassan HarbiD, Dilek Cokeliler Serdaroglu
Abstract
Background: Language models for cancer reports usually read one document at a time and are tested on tumour types seen in training. Continuous-time sequence models address the first gap, but whether they use visit timing, not just order, is seldom tested. Methods: We developed the Hierarchical Temporal Transformer (HTT), which encodes reports with adapted BiomedBERT and reads the sequence with a cancer-type-conditioned temporal transformer. We evaluated it against best-possible AUROC ceilings on two synthetic benchmarks, one with the label stated in the text and one recoverable only from tumour sizes and visit intervals (ten seeds). Diagnostics led to an interval-aware time code (HTT-IA). On 4,786 TCGA pathology reports in 14 types, three types were withheld, and a text-only HTT was compared with a survival model. Results: On the phrase benchmark HTT reached AUROC 0.931 +/- 0.012 against 0.913 +/- 0.007 for a last-report baseline (+0.018, 95% CI -0.009 to +0.050); dates cannot raise the ceiling there. On the growth benchmark the initial time code scored 0.790, equal to a no-time model (0.787), whereas HTT-IA reached 0.843 (+0.053, 0.026 to 0.082) against ceilings of 0.894 without and 0.979 with dates. On unseen tumour types HTT reached 0.925 +/- 0.007, equal to in-distribution performance and to a single-report baseline. Text-only macro C-index was 0.592 (CALM 0.626-0.652). Conclusion: Cross-type transfer is carried by the pre-trained encoder. Visit timing is used only when the data make it identifiable and the time code is on a clinical scale. Ceilings, order-only ablations and re-dating probes are inexpensive checks for such models.
02 /Specification & Classification
Click any tag to browse matching papersReproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Hierarchical temporal transformer for cancer grade prediction and cross cancer transfer learning from pathology reports
Nura Brimo, Rajneesh Anand, … Arıyan Teimoori·bioRxiv·Sep 15, 2026
- BulkRNABert: Cancer prognosis from bulk RNA-seq based language models
Maxence Gélard, Guillaume Richard, … Paul-Henry Cournède·bioRxiv·Jun 18, 2024
- Classifying tumors from broad category to hierarchical molecular subtype: an interpretable hierarchical framework for precision oncology
- High-Performance Classification of Breast CancerHistopathological Images Using Fine-TunedVision Transformers on the BreakHis Dataset
Venkat Gella·bioRxiv·Aug 17, 2024
- Digital profiling of cancer transcriptomes from histology images with grouped vision attention
Yuanning Zheng, Marija Pizurica, … Olivier Gevaert·bioRxiv·Sep 28, 2023
- Multimodal histopathologic models stratify hormone receptor-positive early breast cancer
Kevin Michael Boehm, Omar S. M. El Nahhas, … Jakob Nikolas Kather·Nature CommunicationsPeer-reviewed·Mar 1, 2025