Papers › Hierarchical Vision Transformers for Context-Aware Prostate Cancer Grading in Whole...

Hierarchical Vision Transformers for Context-Aware Prostate Cancer Grading in Whole Slide Images

19 Dec 2023arXiv:2312.12619archive 2025-07-28

Clément Grisi, Geert Litjens, Jeroen van der Laak

Vision Transformers (ViTs) have ushered in a new era in computer vision, showcasing unparalleled performance in many challenging tasks. However, their practical deployment in computational pathology has largely been constrained by the sheer size of whole slide images (WSIs), which result in lengthy input sequences. Transformers faced a similar limitation when applied to long documents, and Hierarchical Transformers were introduced to circumvent it. Given the analogous challenge with WSIs and their inherent hierarchical structure, Hierarchical Vision Transformers (H-ViTs) emerge as a promising solution in computational pathology. This work delves into the capabilities of H-ViTs, evaluating their efficiency for prostate cancer grading in WSIs. Our results show that they achieve competitive performance against existing state-of-the-art solutions.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2312.12619")

Code

Syntology Ran 14 of 19 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong; 11 ran with no contract checked.

By repository: official repository: 19 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

computationalpathologygroup/hvit officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 14 ran; 1 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · our draft was wrong
11ran
5unverified

Licence: 19 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from computationalpathologygroup/hvit. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Attn_Net_Gated computationalpathologygroup/hvit/source/models.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 109e97d9a3c6b17b · report
Block computationalpathologygroup/hvit/source/models.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 83d4c1f6303ecaa4 · report
ConcatPositionalEmbedding2d computationalpathologygroup/hvit/source/models.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 620e931f00251ba0 · report
ConcatPositionalEncoding2d computationalpathologygroup/hvit/source/models.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 0a3b5d37d669d254 · report
MaskedAttention computationalpathologygroup/hvit/source/models.py official repository ran no licence file found · pointer only · d2443081f4921696 · report
PatchEmbed computationalpathologygroup/hvit/source/models.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 16025d8d9a13d2e3 · report
PositionalEmbedding computationalpathologygroup/hvit/source/models.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 5d23b5913fda3916 · report
PositionalEmbedding2d computationalpathologygroup/hvit/source/models.py official repository ran no licence file found · pointer only · ecfcaba95ba51cdb · report
PositionalEncoding computationalpathologygroup/hvit/source/models.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · b21e4f9392078920 · report
PositionalEncoding2d computationalpathologygroup/hvit/source/models.py official repository ran no licence file found · pointer only · 6f9101487bc42c8a · report
VisionTransformer computationalpathologygroup/hvit/source/models.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 21750327371e6568 · report
cantor_diagonal computationalpathologygroup/hvit/source/models.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · a87d41ec94f92a58 · report
get_device computationalpathologygroup/hvit/source/models.py official repository ran · our draft was wrong no licence file found · pointer only · fb13ca0930097c7e · report
update_state_dict computationalpathologygroup/hvit/source/models.py official repository ran · our draft was wrong no licence file found · pointer only · 9114e49a481b9af9 · report
HIPT computationalpathologygroup/hvit/source/models.py official repository unverified no licence file found · pointer only · 098340e97cabebbb · report
PositionalEncoderFactory computationalpathologygroup/hvit/source/models.py official repository unverified no licence file found · pointer only · 98c9ed729c6642c3 · report
VisionTransformer4K computationalpathologygroup/hvit/source/models.py official repository unverified no licence file found · pointer only · e353b917cb5de54e · report
vit4k_xs computationalpathologygroup/hvit/source/models.py official repository unverified no licence file found · pointer only · 8b71227b950d880f · report
vit_small computationalpathologygroup/hvit/source/models.py official repository unverified no licence file found · pointer only · 5850dd9f88778641 · report

Tasks

whole slide images

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections