atlas

Research map / Architectures and efficiency / Attention and transformers

Rethinking Transformer for Long Contextual Histopathology Whole Slide Image Analysis

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Block-sparse attention kernels · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes LongMIL, a local-global hybrid Transformer for whole slide image MIL that uses a 2-D local attention mask (computed chunk-wise) plus a final global attention layer to overcome the low-rank bottleneck and quadratic cost of full self-attention.

Problem

Transformer-based multiple instance learning for gigapixel histopathology WSIs suffers from a low-rank attention bottleneck (sequence length far exceeds embedding size), quadratic cost, and poor extrapolation to shape-varying slides, while prior fixes (region slicing in HIPT, Nystromformer in TransM

Approach

Argue that the attention matrix's rank is bounded by the embedding size for long WSI sequences, and show that a local band attention mask raises the rank (lower bound n-b) and reduces cost to linear via chunked computation; combine two local-attention layers with a 2x2 pooling and one full global attention layer, using 2-D Euclidean locality rather than 1-D sequence locality.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use LongMIL instead of Full AttentionWSI tumor subtyping · BRACS (ViT-S Lunit)F1: 0.689 0.036 -> 0.706 0.025Helped
use LongMIL instead of Full AttentionWSI tumor subtyping · BRACS (ViT-S DINO)F1: 0.648 0.028 -> 0.657 0.026Helped
use LongMIL instead of Full AttentionWSI survival prediction · COADREADC-index: 0.603 0.048 -> 0.624 0.057Helped
use LongMIL instead of Full AttentionWSI tumor subtyping · BRACS (UNI)F1: 0.715 0.043 -> 0.728 0.045Helped
use LongMIL instead of Full AttentionWSI tumor subtyping · BRACS (GigaPath)F1: 0.663 0.023 -> 0.673 0.023Hurt
replace global full attention with linear attention (ablation)LongMIL · BRACS tumor subtyping (20x)F1: 0.706 0.025 -> 0.693 0.024Hurt
replace global full attention with linear attention (ablation)LongMIL · BRACS tumor subtyping (40x)F1: 0.624 0.060 -> 0.622 0.055Hurt
increase patch size from 224 to 448 (ablation)LongMIL with UNI features · BRACS tumor subtypingF1: 0.728 0.05 -> 0.722 0.04Hurt
replace global full attention with V-Mamba (ablation)LongMIL · BRACS tumor subtypingF1: 0.706 0.025 -> 0.693 0.024Hurt
train on small WSIs and test on larger unseen WSIs using LongMILWSI tumor subtyping · BRACS extrapolationperformanceHelped

Surprising findings

Limitations

Experimental setup

Datasets: BRACS TCGA-BRCA TCGA-COADREAD TCGA-STAD

Benchmarks: BRACS TCGA-BRCA TCGA-COADREAD TCGA-STAD

Metrics: macro-F1 macro-AUC C-index

Baselines: AB-MIL DS-MIL CLAM-SB DTFD-MIL TransMIL HIPT Full Attention GigaPath WSI head

Builds on: TransMIL HIPT FlashAttention RoPE ALiBi

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy