bioRxivBioinformaticsPreprint
Hierarchical temporal transformer for cancer grade prediction and cross cancer transfer learning from pathology reports
Nura BrimoiD, Rajneesh AnandiD, Hassan HarbiD, Arıyan TeimooriiD
Abstract
Language models for cancer clinical reports carry two blind spots. They read each report in isolation, ignoring how a patients disease changes across visits, and they are evaluated only on cancer types present in their training data. We present the Hierarchical Temporal Transformer (HTT), a two-level architecture that addresses both. Level 1 encodes each report with BiomedBERT adapted by low-rank adaptation (LoRA). Level 2 is a temporal transformer that reads a patients full report sequence using a continuous-time positional encoding built from the measured number of days between visits, with learnable cancer-type embeddings supplying per-family conditioning. Two experiments test the two capabilities separately, since no fully open corpus contains longitudinal reports for many cancer types. On a controlled synthetic corpus of sequential radiology reports, in which progression phrases are inserted from templated trajectories, HTT reaches a validation AUROC of 0.942 against 0.881 for a single-report baseline and transfers to held-out pancreatic cancer at 0.995 against 0.949 while the two models are indistinguishable on a 60-patient test set. On 4,786 real pathology reports from the TCGA-Reports corpus spanning 14 cancer types HTT predicts tumor grade for three types withheld entirely from training, reaching AUROC 1.000 on thyroid carcinoma, 0.960 on sarcoma and 0.808 on lung squamous cell carcinoma. The mean held-out AUROC of 0.923 equals the in-distribution test AUROC of 0.923, so transfer to unseen cancer families incurred no measurable penalty. Ablation on the real corpus shows that the transfer is carried by the pre-trained encoder rather than by the temporal components, which, with one report per patient, contribute 0.39 AUROC points. Grade-related pathological language therefore appears to be learnable in a cancer-type agnostic way, which points toward unified cancer NLP systems that require no per-type retraining.
- organism: human
- assay: electronic health records
- research focus: differential expression
- approach: deep learning
- Citations
- 0
Reproducibility 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, … Dilek Cokeliler Serdaroglu·bioRxiv·Nov 6, 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
- Digital profiling of cancer transcriptomes from histology images with grouped vision attention
Yuanning Zheng, Marija Pizurica, … Olivier Gevaert·bioRxiv·Sep 28, 2023
- High-Performance Classification of Breast CancerHistopathological Images Using Fine-TunedVision Transformers on the BreakHis Dataset
Venkat Gella·bioRxiv·Aug 17, 2024
- RadMultiBench: A Reproducible Dual-Task Benchmark Exposing the Limits of Pre-Trained Vision-Language Models Across Thoracic and Breast Imaging
Md Nahin Alam, Md Tanjil Rahman, … Mohammad Ashrafuzzaman Khan·bioRxiv·Nov 6, 2026