SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.19720 · NeurIPS · 2024

FAST: A Dual-tier Few-Shot Learning Paradigm for Whole Slide Image Classification

Shuo Wang, Linhao Qu, Xiaoyuan Luo, Manning Wang, Kexue Fu, Ying Xiong, Ilias Maglogiannis, Longxiang Gao

arXiv · PDF · Open in the Atlas

Code that ran

14 of 17 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 12 failures of our instrument; 3 no recorded run), measured 2026-11-22; 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/2409.19720.json · badge: /api/ran/2409.19720.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
fukexue/FAST canonical (classifier label)
classifier basis: census
13 ran · 2 no recorded run
fukexue/fast canonical (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
FunctionStatusWhere it lives
AlexNet_CIFAR10_attention Ran
ran on a synthesized input · constructed an object; no result was computed
fukexue/fast/models/learnable_prompt.py
pointer only (licence: NONE) · get_code("015136437f28c6ba")
How it ran

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

alexnet Ran
ran; our contract draft was wrong, not the code
fukexue/FAST/models/alexnet.py
pointer only (licence: NONE) · get_code("1352df0a3319e2e7")
How it ran

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

alexnet_MNIST Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
fukexue/FAST/models/alexnet.py
pointer only (licence: NONE) · get_code("76bb126e7ce54fba")
How it ran

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

conv3x3 Ran
ran; our contract draft was wrong, not the code
fukexue/FAST/models/resnetv1.py
pointer only (licence: NONE); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
How it ran

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

elu_feature_map Ran
ran, honoured the contract we drafted
fukexue/FAST/models/linear_attention.py
pointer only (licence: NONE) · get_code("0d5505bd782b4a89")
How it ran

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

elu_feature_map Ran
ran; our contract draft was wrong, not the code
fukexue/FAST/FAST_CAMELYON_CLIP_Train.py
pointer only (licence: NONE) · get_code("da63f97238fd433d")
How it ran

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

elu_feature_map Ran
ran; our contract draft was wrong, not the code
fukexue/FAST/FAST_TCGA_RENAL_CLIP_Train.py
pointer only (licence: NONE) · get_code("660bb1c1cfb15688")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fukexue/FAST 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_pathological_tissue_level_prompts Ran
ran; our contract draft was wrong, not the code
fukexue/FAST/FAST_CAMELYON_CLIP_Train.py
pointer only (licence: NONE); the stored copy get_code serves, from miccaiif/top, is pointer only (licence: NONE) · get_code("d58fdc4f1e79465d")
How it ran

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

k_means_clustering Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
fukexue/FAST/select_method.py
pointer only (licence: NONE) · get_code("409e7a46044e5655")
How it ran

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

list_print_format Ran
ran; our contract draft was wrong, not the code
fukexue/FAST/FAST_TCGA_RENAL_CLIP_Train.py
pointer only (licence: NONE) · get_code("379b5ec8ccdf7c7d")
How it ran

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

make_layers_features Ran
ran; our contract draft was wrong, not the code
fukexue/FAST/models/alexnet.py
pointer only (licence: NONE) · get_code("71a8b60d245a6336")
How it ran

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

mini_batch_k_means Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
fukexue/FAST/select_method.py
pointer only (licence: NONE) · get_code("49a25b4e286a26bb")
How it ran

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

resnet18 Ran
ran; our contract draft was wrong, not the code
fukexue/FAST/models/resnetv1.py
pointer only (licence: NONE) · get_code("b073ea484dc3837e")
How it ran

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

resnet34 Ran
ran; our contract draft was wrong, not the code
fukexue/FAST/models/resnetv1.py
pointer only (licence: NONE) · get_code("5edd587f0ca09bf9")
How it ran

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

MIL_CLIP Not yet run
unverified (harvested, no recorded run)
fukexue/fast/models/learnable_prompt.py
pointer only (licence: NONE) · get_code("b510e26c50954d65")
How it ran

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

build_model Not yet run
unverified (harvested, no recorded run)
fukexue/FAST/clip/model.py
pointer only (licence: NONE); the stored copy get_code serves, from Sheldon04/NeRP, is pointer only (licence: NONE) · get_code("c47aa9e5b049a11d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fukexue/FAST 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_clip_to_cpu Not yet run
unverified (harvested, no recorded run)
fukexue/FAST/FAST_CAMELYON_CONCH_Train.py
pointer only (licence: NONE) · get_code("b272fde70a038dd8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fukexue/FAST 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 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 2 the same month, 3 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
conv3x3 686 other papers
622 dated earlier, 6 the same month, 41 later, 17 same year, order not determinable · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
build_model 119 other papers
83 dated earlier, 4 the same month, 25 later, 5 same year, order not determinable, 2 undated
1809.11096 (2018-09)
Large Scale GAN Training for High Fidelity Natural Image Synthesis
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2104.14294 (2021-04)
Emerging Properties in Self-Supervised Vision Transformers
and 116 more not named here
elu_feature_map 14 other papers
11 dated earlier, 2 later, 1 same year, order not determinable · 2 only as an assembly brick
2104.00680 (2021-04)
LoFTR: Detector-Free Local Feature Matching with Transformers
2203.09645 (2022-03)
MatchFormer: Interleaving Attention in Transformers for Feature Matching
2203.10981 (2022-03)
MonoDTR: Monocular 3D Object Detection with Depth-Aware Transformer
and 11 more not named here
resnet18 4 other papers
4 dated earlier
1911.05371 (2019-11)
Self-labelling via simultaneous clustering and representation learning
2211.15059 (2022-11)
Learning Dense Object Descriptors from Multiple Views for Low-shot Category Generalization
2308.01698 (2023-08)
Balanced Destruction-Reconstruction Dynamics for Memory-replay Class Incremental Learning
and 1 more not named here
alexnet 1 other paper
1 dated earlier
2307.02249 (2023-07)
Rethinking Multiple Instance Learning for Whole Slide Image Classification: A Good Instance Classifier is All You Need
alexnet_MNIST 1 other paper
1 dated earlier
2307.02249 (2023-07)
Rethinking Multiple Instance Learning for Whole Slide Image Classification: A Good Instance Classifier is All You Need
get_pathological_tissue_level_prompts 1 other paper
1 dated earlier
2305.17891 (2023-05)
The Rise of AI Language Pathologists: Exploring Two-level Prompt Learning for Few-shot Weakly-supervised Whole Slide Image Classification
load_clip_to_cpu
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2305.17891 (2023-05)
The Rise of AI Language Pathologists: Exploring Two-level Prompt Learning for Few-shot Weakly-supervised Whole Slide Image Classification
make_layers_features 1 other paper
1 dated earlier
2307.02249 (2023-07)
Rethinking Multiple Instance Learning for Whole Slide Image Classification: A Good Instance Classifier is All You Need
resnet34 1 other paper
1 dated earlier
1911.05371 (2019-11)
Self-labelling via simultaneous clustering and representation 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-22.

Repositories linked to this paper

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

Abstract

The expensive fine-grained annotation and data scarcity have become the primary obstacles for the widespread adoption of deep learning-based Whole Slide Images (WSI) classification algorithms in clinical practice. Unlike few-shot learning methods in natural images that can leverage the labels of each image, existing few-shot WSI classification methods only utilize a small number of fine-grained labels or weakly supervised slide labels for training in order to avoid expensive fine-grained annotation. They lack sufficient mining of available WSIs, severely limiting WSI classification performance. To address the above issues, we propose a novel and efficient dual-tier few-shot learning paradigm for WSI classification, named FAST. FAST consists of a dual-level annotation strategy and a dual-branch classification framework. Firstly, to avoid expensive fine-grained annotation, we collect a very small number of WSIs at the slide level, and annotate an extremely small number of patches. Then, to fully mining the available WSIs, we use all the patches and available patch labels to build a cache branch, which utilizes the labeled patches to learn the labels of unlabeled patches and through knowledge retrieval for patch classification. In addition to the cache branch, we also construct a prior branch that includes learnable prompt vectors, using the text encoder of visual-language models for patch classification. Finally, we integrate the results from both branches to achieve WSI classification. Extensive experiments on binary and multi-class datasets demonstrate that our proposed method significantly surpasses existing few-shot classification methods and approaches the accuracy of fully supervised methods with only 0.22% annotation costs. All codes and models will be publicly available on https://github.com/fukexue/FAST.

For agents

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

get_harvested_code_for_paper("2409.19720")
get_code_for_paper("2409.19720")
have("2409.19720")

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

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

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

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

Connect an agent — have() is free.