TRITRANS: Spatial-Depth Transformer for 3D Computational Pathology

Jiali Hu, Jiawen Li, Yuxuan Chen, Yonghong He, Ximing LiarXiv 2026

TL;DR

Diagnosing disease from a single, flat 2D tissue slice is like trying to understand the plot of a movie by looking at a single frame. New 3D microscopy captures hundreds of sequential tissue depths, and TRITRANS introduces a clever two-stage Transformer that reads each 2D slice spatially before connecting the dots across depth—achieving a new state-of-the-art in 3D cancer diagnosis without blowing up your GPU memory.

What Problem Does This Paper Address?

For over a century, pathology has been a two-dimensional science: shave a microscopic slice off a biopsy, put it on a glass slide, and inspect it. Today, volumetric imaging (like open-top light-sheet microscopy) lets us scan intact, 3D tissue blocks into sequential stacks of hundreds of high-resolution 2D "optical sections." Because biological structures wind and twist through space, a tumor gland that looks benign in one flat slice might reveal malignant architecture just a few micrometers deeper.

Figure 1. Morphological variations across specimen depth in the 3D histopathology specimen. ROIs refer to regions of interest.

Inspecting hundreds of high-res slices per patient by hand is virtually impossible, so we need AI. In standard 2D computational pathology, huge slide images are chopped into small patches, passed through a pre-trained 2D vision model, and combined using Multiple Instance Learning (MIL)—essentially treating a slide as an unordered "bag" of patches under a single patient label.

When researchers try to stretch this 2D playbook to 3D volumes, they hit a wall:

  • Dump everything into one giant bag: Destroys all spatial and depth coordinates.
  • Fuse only neighboring slices (2.5D): Misses long-range patterns across the whole depth of the tissue.
  • Use generic 3D video/volume encoders: Loses the rich histological knowledge baked into massive 2D pathology foundation models.
  • Run full self-attention on every patch in 3D: Computationally explosive.

The core challenge is figuring out how to leverage powerful 2D pathology encoders while still modeling global relationships both across each slice and down through the entire tissue depth.

Methods

The authors propose TRITRANS (Triage Transformer), which tames the computational beast by factorizing 3D volume modeling into two sequential stages: look around first, then look down.

Figure 2. Overview of our TRITRANS model. First, spatially aligned patches from multi-depth sections are encoded by a frozen pathology encoder. Then, the intra-plane Transformer aggregates patch features with spatial positional encoding (PE) into the section-level plane token. Finally, the inter-depth Transformer fuses plane tokens across depth with depth positional encoding into a specimen token for specimen-level prediction.
  1. Standard Preprocessing & 2D Encoding: First, the system creates a unified tissue mask across all $L$ depth sections and crops spatially aligned $224 \times 224$ patches. Each patch is fed through a frozen, pre-trained 2D pathology foundation model (the authors test H0-mini, UNI, and CONCH) to extract rich histological features.
  2. Stage 1 – Intra-Plane Transformer (Novel Application): Within each individual 2D optical section, patch tokens are stamped with 2D sinusoidal spatial positional encodings (their normalized $x, y$ grid coordinates) alongside a learnable summary token called a plane token. Two Transformer layers let every patch in that slice talk to every other patch, distilling the entire 2D slice's spatial layout into its updated plane token.
  3. Stage 2 – Inter-Depth Transformer (Novel Application): Now, instead of thousands of patches, each slice is represented by a single plane token. The model stacks all $L$ plane tokens, stamps them with 1D sinusoidal depth positional encodings (tracking how deep each slice sits relative to the top), and prepends a learnable specimen token. Two more Transformer layers model global dependencies across the entire depth stack, outputting a final specimen token used to classify the tissue as normal or tumor.

Datasets

No new datasets were introduced; the authors evaluate TRITRANS on two public H&E-stained 3D pathology datasets:

  • Esophageal Cancer Screening: A development cohort of 103 specimens from 24 patients (6,978 optical sections) and a held-out test set of 30 specimens from 5 patients (231 optical sections).
  • Prostate Risk Assessment: A development cohort of 121 specimens from 54 patients (3,993 optical sections) and a held-out test set of 29 specimens from 29 patients (261 optical sections).

Key Insights and Ideas

  • Order matters—read the page before reading the book: What happens if you flip the pipeline, tracking a tiny $(x,y)$ column down through depth first and aggregating spatially second? Performance drops sharply—by 7.63% on esophagus and 4.60% on prostate in mean balanced accuracy. Building a spatially coherent picture of each 2D tissue plane first gives the depth model a much cleaner signal to work with.
  • Simple pooling leaves major accuracy on the table: Swapping out either Transformer stage for standard mean or gated-attention pooling hurts performance, especially inside the 2D plane (where removing self-attention drops esophageal balanced accuracy by up to 18.2%). Tissue regions need to actively compare notes, not just get averaged together.
  • Where you are is what you are: Stripping away either the 2D spatial coordinates or the 1D depth coordinates consistently degrades accuracy across all encoders. Both axes carry vital diagnostic context.
  • Uneven diagnostic clues: Visualizing the model's attention across depth shows sharp spikes and valleys, confirming visually that malignant structures are scattered unevenly through 3D space—easily missed if a pathologist happens to cut a single 2D slice in one of the "valleys."

Key Results

Evaluated across three foundation encoders against five 2D and 3D baselines (MeanMIL, ABMIL, TransMIL, TRICARE, and TRIPATH), TRITRANS sweeps the board:

  • 3D Specimen-Level Classification: Outperforms the runner-up in mean balanced accuracy across encoders by 5.50% on the esophageal dataset and 5.37% on the prostate dataset. Highlights include an AUC of 0.874 on esophagus (with CONCH, beating the best baseline by 11.7%) and a balanced accuracy of 0.735 on prostate (with CONCH, +8.4% over TRICARE).
  • Local 2.5D Triage: Even when restricted to a narrow 3-slice window (predicting a target slice using only its immediate neighbors), TRITRANS beats TRICARE—a model specifically built for 2.5D triage—improving mean balanced accuracy by 5.57% (esophagus) and 5.70% (prostate).
  • Qualitative Interpretability: Multi-level attention maps pinpoint both the most suspicious optical depths and the exact malignant glands (such as crowded dysplastic or infiltrative neoplastic glands) within those slices.

Limitations and Future Work

  • Small 3D Cohorts & Overfitting Risk: 3D pathology datasets are still relatively small. In ablations, increasing network depth from 2 to 3 Transformer blocks per stage actually lowered accuracy, pointing to overfitting on limited specimen counts. To combat data scarcity, the authors plan to pre-train TRITRANS by transferring knowledge from massive 2D slide datasets.
  • Single Magnification: Currently, slices are processed at a single resolution; future work aims to incorporate hierarchical, multi-scale tissue modeling (zooming in and out like a pathologist).
  • Scaling to Ultra-Large Volumes: For massive future 3D specimens with even greater depth and area, standard self-attention could become a bottleneck again, prompting plans to explore more computationally efficient sequence modeling.

Summary updated

BibTeX
@misc{hu2026tritrans,
  author = {Jiali Hu and Jiawen Li and Yuxuan Chen and Yonghong He and Ximing Li},
  title = {{TRITRANS: Spatial-Depth Transformer for 3D Computational Pathology}},
  year = {2026},
  eprint = {2611.38102},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38102},
}
Figure