SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.12619 · NeurIPS · 2023

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

Clément Grisi, Geert Litjens, Jeroen Van Der Laak

arXiv · PDF · Open in the Atlas

Code that ran

14 of 19 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (9 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 11 have no contract verdict; 2 failures of our instrument; 5 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2312.12619.json · badge: /api/ran/2312.12619.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
computationalpathologygroup/hvit reimplementation (classifier label)
classifier basis: classifier_2025
14 ran · 5 no recorded run
FunctionStatusWhere it lives
Attn_Net_Gated Ran
ran on a synthesized input · constructed an object; no result was computed
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("109e97d9a3c6b17b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Block Ran
ran on a synthesized input · constructed an object; no result was computed
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("83d4c1f6303ecaa4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ConcatPositionalEmbedding2d Ran
ran on a synthesized input · constructed an object; no result was computed
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("620e931f00251ba0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ConcatPositionalEncoding2d Ran
ran on a synthesized input · constructed an object; no result was computed
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("0a3b5d37d669d254")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MaskedAttention Ran
ran on a synthesized input
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("d2443081f4921696")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PatchEmbed Ran
ran on a synthesized input · constructed an object; no result was computed
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("16025d8d9a13d2e3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PositionalEmbedding Ran
ran on a synthesized input · constructed an object; no result was computed
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("5d23b5913fda3916")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PositionalEmbedding2d Ran
ran on a synthesized input
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("ecfcaba95ba51cdb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PositionalEncoding Ran
ran on a synthesized input · constructed an object; no result was computed
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("b21e4f9392078920")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PositionalEncoding2d Ran
ran on a synthesized input · constructed an object; no result was computed
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("6f9101487bc42c8a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

VisionTransformer Ran
ran on a synthesized input · constructed an object; no result was computed
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("21750327371e6568")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cantor_diagonal Ran
ran, honoured the contract we drafted
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("a87d41ec94f92a58")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_device Ran
ran; our contract draft was wrong, not the code
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("fb13ca0930097c7e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

update_state_dict Ran
ran; our contract draft was wrong, not the code
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("9114e49a481b9af9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

HIPT Not yet run
unverified (harvested, no recorded run)
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("098340e97cabebbb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

PositionalEncoderFactory Not yet run
unverified (harvested, no recorded run)
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("98c9ed729c6642c3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

VisionTransformer4K Not yet run
unverified (harvested, no recorded run)
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("e353b917cb5de54e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

vit4k_xs Not yet run
unverified (harvested, no recorded run)
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("8b71227b950d880f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

vit_small Not yet run
unverified (harvested, no recorded run)
computationalpathologygroup/hvit/source/models.py
pointer only (licence: NONE) · get_code("5850dd9f88778641")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, computationalpathologygroup/hvit when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 18 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
Attn_Net_Gated
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
2206.02647 (2022-06)
Scaling Vision Transformers to Gigapixel Images via Hierarchical Self-Supervised Learning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2312.12619")
get_code_for_paper("2312.12619")
have("2312.12619")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2312.12619.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2312.12619.svg)](https://syntology.ai/paper/2312.12619)

Connect an agent — have() is free.