SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2408.11505 · 2024

MSCPT: Few-shot Whole Slide Image Classification with Multi-scale and Context-focused Prompt Tuning

arXiv · PDF · Open in the Atlas

Code that ran

2 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 1 failure of our instrument; 6 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2408.11505.json · badge: /api/ran/2408.11505.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
hanminghao/mscpt canonical (classifier label)
classifier basis: census
2 ran · 6 no recorded run
FunctionStatusWhere it lives
get_transforms_ctranspath Ran
ran; our contract draft was wrong, not the code
hanminghao/mscpt/plot_heatmap.py
pointer only (licence: NONE) · get_code("c8ea5e13d55dab48")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanminghao/mscpt 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.

tokenize Ran
ran, honoured the contract we drafted
hanminghao/mscpt/plot_heatmap.py
pointer only (licence: NONE) · get_code("046182617bffcc33")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanminghao/mscpt 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.

create_model Not yet run
unverified (harvested, no recorded run)
hanminghao/mscpt/model/mscpt.py
pointer only (licence: NONE) · get_code("b000f5642bcb508b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanminghao/mscpt 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.

load_ctranspath_clip Not yet run
unverified (harvested, no recorded run)
hanminghao/mscpt/select_5X_pic.py
pointer only (licence: NONE) · get_code("c9da2b5ee1ea9a52")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanminghao/mscpt 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.

load_pretrained_tokenizer Not yet run
unverified (harvested, no recorded run)
hanminghao/mscpt/model/mscpt.py
pointer only (licence: NONE) · get_code("38d0516eda8ab2da")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanminghao/mscpt 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.

load_pretrained_tokenizer Not yet run
unverified (harvested, no recorded run)
hanminghao/mscpt/plot_heatmap.py
pointer only (licence: NONE) · get_code("181d436278a87802")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanminghao/mscpt 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.

load_pretrained_tokenizer Not yet run
unverified (harvested, no recorded run)
hanminghao/mscpt/select_5X_pic.py
pointer only (licence: NONE) · get_code("eb89822d372a593b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanminghao/mscpt 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.

load_pretrained_tokenizer Not yet run
unverified (harvested, no recorded run)
hanminghao/mscpt/.history/plot_heatmap_20250507134241.py
pointer only (licence: NONE) · get_code("7b8b35ae6c093998")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanminghao/mscpt 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 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 6 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
get_transforms_ctranspath 1 other paper
1 dated earlier
2406.05205 (2024-06)
CPLIP: Zero-Shot Learning for Histopathology with Comprehensive Vision-Language Alignment
tokenize 1 other paper
1 dated earlier
2406.05205 (2024-06)
CPLIP: Zero-Shot Learning for Histopathology with Comprehensive Vision-Language Alignment

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

Multiple instance learning (MIL) has become a standard paradigm for the weakly supervised classification of whole slide images (WSIs). However, this paradigm relies on using a large number of labeled WSIs for training. The lack of training data and the presence of rare diseases pose significant challenges for these methods. Prompt tuning combined with pre-trained Vision-Language models (VLMs) is an effective solution to the Few-shot Weakly Supervised WSI Classification (FSWC) task. Nevertheless, applying prompt tuning methods designed for natural images to WSIs presents three significant challenges: 1) These methods fail to fully leverage the prior knowledge from the VLM's text modality; 2) They overlook the essential multi-scale and contextual information in WSIs, leading to suboptimal results; and 3) They lack exploration of instance aggregation methods. To address these problems, we propose a Multi-Scale and Context-focused Prompt Tuning (MSCPT) method for FSWC task. Specifically, MSCPT employs the frozen large language model to generate pathological visual language prior knowledge at multiple scales, guiding hierarchical prompt tuning. Additionally, we design a graph prompt tuning module to learn essential contextual information within WSI, and finally, a non-parametric cross-guided instance aggregation module has been introduced to derive the WSI-level features. Extensive experiments, visualizations, and interpretability analyses were conducted on five datasets and three downstream tasks using three VLMs, demonstrating the strong performance of our MSCPT. All codes have been made publicly accessible at https://github.com/Hanminghao/MSCPT.

For agents

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

get_harvested_code_for_paper("2408.11505")
get_code_for_paper("2408.11505")
have("2408.11505")

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

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

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

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

Connect an agent — have() is free.