bioRxiv Science⌕ Search

bioRxiv · 10.64898/2026.09.09.750492

Hierarchical temporal transformer for cancer grade prediction and cross cancer transfer learning from pathology reports

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Brimo, N., Anand, R., Harb, H., Serdaroglu, D. C.. 2026-09-15. Hierarchical temporal transformer for cancer grade prediction and cross cancer transfer learning from pathology reports. https://doi.org/10.64898/2026.09.09.750492

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Inferring cascade drivers of VEXAS syndrome by a causal machine learning tool CauNagi

VEXAS syndrome is an adult-onset severe autoinflammatory disease caused by somatic mutations in UBA1, yet the cascade mechanisms linking primitive hematopoietic abnormalities to mature myeloid dysfunctions remain largely unknown. Identifying master regulators of a progressive disease, a black-box process, from complex transcriptomic data also remains challenging. To address this challenge, we developed CauNagi, a computational framework for prioritizing cascade candidate regulators (CCRs). CauNagi integrates a causal representation learning module derived from CausCell with an iterative deep learning backbone adapted from UNAGI; in addition, CauNagi extends these two components with a unique downstream module for CCRs analysis designed to characterize regulatory propagation across hierarchical cellular states. Mechanistically, CauNagi iteratively integrates causal disentangled representation learning with (1) disease-stage cell-state trajectory reconstruction and (2) dynamic regulatory analysis. Benchmarking on single-cell transcriptomic datasets showed that CauNagi preserved cell-type structure in idiopathic pulmonary fibrosis (IPF) and enriched known acute myeloid leukemia(AML)-associated genes among its top-ranked global regulators. When applied to VEXAS syndrome, CauNagi readily revealed inflammatory responses, endoplasmic reticulum stress, and myeloid bias, consistent with the disease features. Furthermore, the CCRs analysis module of CauNagi assisted us in identifying 36 causal drivers, with SPI1, NFKB1, STAT3, and FOS prioritized as high-confidence regulatory hubs linking aberrant myeloid differentiation and inflammatory programs. These findings were further supported by an independent single-cell transcriptomic dataset from a murine VEXAS model. Overall, CauNagi provides a computationally efficient and systematic framework for identifying candidate causal regulators. Beyond hematopoietic diseases, CauNagi may also be applicable to other progressive disorders for which multistage single-cell transcriptomic datasets are available. CauNagi is available at https://github.com/steamed-stuffed-bun/CauNagi.

bioinformatics↗

Inferential boundaries of age prediction: why prediction does not establish biological age measurement

Chronological-age clocks reconstruct age from biological measurements, yet their outputs are interpreted as biological age, gaps as ageing acceleration and intervention-associated decreases as rejuvenation. We show that age supervision identifies an age-task statistic, not a biological-age construct, and establish how this distinction changes biomarker construction and validation. Even at the population optimum, the same observable distribution and age-prediction performance admit incompatible biological-age interpretations. Resolving this ambiguity requires assumptions or evidence beyond the age task. Squared-error age loss penalizes within-age output dispersion without defining its biological direction. Given age and background, a gap re-expresses the compressed score; exact age recovery eliminates it even when heterogeneity remains in the measurements. Shared biological covariance permits genuine prognostic value without establishing construct identity. After allogeneic haematopoietic stem-cell transplantation, recipient-blood scores showed excess donor-lineage affiliation under a score-pairing null. In NHANES, age-trained scores improved held-out five-year mortality prediction beyond age and background, yet direct modelling of source measurements and mortality supervision at matched scalar capacity yielded further gains. The intended biological object must therefore guide study design, measurement selection and representation; validation must establish the claimed measurement relation rather than rely on age-prediction success alone.

bioinformatics↗

DisenTE: Sparse Pattern-Context Modeling for Interpretable Translation-Efficiency Matrix Completion

Partially observed object-by-context matrices arise across data-rich science, where dominant object effects can obscure smaller but informative context-dependent variation. We study this problem in a translation-efficiency atlas of 9,494 5' UTRs across 78 cellular and tissue contexts. We present DisenTE, a sequence-conditioned neural model that combines separate sequence and context branches with a sparse low-rank pattern-context channel. Each module pairs a sequence-derived activation with context-specific deployment weights, forming a dictionary whose sequence and context components can be examined separately. Under five-fold within-panel entry masking, DisenTE achieves a UTR-centered residual Spearman correlation of 0.641 +/- 0.005, compared with 0.304 +/- 0.003 for the strongest reference model. The learned dictionary retains 11 of 20 candidate modules. CTM 6 has the largest overlap with an external TOP set and a cap-proximal pyrimidine pattern; CTMs 5 and 7 also overlap the set but have purine-containing consensuses. The evidence supports CTM 6 as a TOP sequence anchor and CTMs 5 and 7 as TOP-set-associated factors. On this dataset, DisenTE improves completion over the evaluated references and provides module-level summaries of its fitted context-dependent variation.

bioinformatics↗