Pathology Foundation Model · Open Research

PuzzleTuning

Only 1% of data to build pathology foundation model.

Building a pathology foundation model with only 1% of the data: explicitly learning pathology-specific structural relationships, preserving general visual knowledge through prompt tuning, and progressively adapting to different feature scales via curriculum learning.

3M pre-training tiles100+ datasets7 benchmark datasetsBest on 5 / 7
Core Insight

Teaching Foundational Model to Restore a Batch of Puzzles

A batch of pathology images is cut into patches. Under a fix-position ratio, some are assigned as position patches that stay behind as hints, while the relation patches are shuffled in place across images into the Puzzle state, then restored by the model. The batch below is 4 images, m = 9 patches each, at a 1/3 fix-position ratio.

  1. Patching & identity assignment

    Every image in the batch is cut into m patches, and those m patches form that image’s bag. Under the fix-position ratio, r of them are picked as position patches (blue); the remaining m − r are relation patches (yellow).

  2. In-place shuffle

    Relation patches are swapped only across these bags, always staying in the same (X, Y) cell — that is what “in-place” means. Position patches never move at all, which yields the Puzzle state.

  3. Puzzle restoring

    At decoding time the original position tokens replace the encoded ones as a hint of the puzzle starting point; the decoder then reconstructs the relation patches, supervised by the original images themselves.

Relation patch · shuffled across imagesPosition patch · kept as hint
Why PuzzleTuning

Scale alone does not tell a model what matters in pathology.

Conventional SSL learns from unlabeled pathology images, but the training objective may remain generic. PuzzleTuning starts from two explicit questions: what relationships are essential in pathology, and how can natural-image knowledge be preserved rather than overwritten?

01 · Pathology focus

Explicitly model pathology-specific structure

Pathology combines local homogeneity, global heterogeneity, spatial continuity and biological entities at different scales. The pre-training task should target these relationships rather than discover them only implicitly.

02 · Domain bridge

Keep general vision knowledge while adding domain knowledge

Instead of fully rewriting an ImageNet-pretrained backbone, prompt tokens carry pathology-specific bridging knowledge while the backbone is frozen during pre-training.

Three pathology priors

Teach the model the relationships pathologists rely on.

PuzzleTuning defines three task focuses — appearance consistency, spatial consistency and restoration understanding — mapped to grouping, junction and semantic-alignment relationships.

Original Fig. 1 · Pathological patch relationships under inter-image mixing.
Original Fig. 1 · Pathological patch relationships under inter-image mixing.
Grouping relationship

Appearance consistency

Patches from the same image tend to share coherent appearance. Mixing organs or conditions exposes consistent versus conflicting features.

Junction relationship

Spatial consistency

Adjacent patches carry continuous textures and structures. Restoring their junctions forces the model to understand local tissue composition.

Semantic alignment

Restoration understanding

Correcting shuffled or missing regions requires semantic alignment across cells, clusters, glands and tissue-level structures.

Core mechanism

Make puzzles. Understand relationships. Restore pathology.

A batch of pathology images is split into patches. Relation patches are shuffled across images while position patches remain as hints. The encoder learns the relational structure and a low-level decoder reconstructs the original batch under self-supervision.

Make puzzles. Understand relationships. Restore pathology.
01

Puzzle making

Split images into patch bags; randomly assign fixed-position and relation identities; shuffle relation patches in-place across the batch.

02

Puzzle understanding

The ViT encoder uses prompt tokens to learn grouping, junction and restoration relationships while preserving the general backbone.

03

Puzzle restoring

Position patches provide hints; a decoder reconstructs relation patches and is supervised against the original images.

Explicit domain bridging

Preserve general vision. Inject pathology knowledge efficiently.

Two complementary mechanisms control the bridge: compact prompt tokens encode the additional domain knowledge, while curriculum learning progressively increases puzzle difficulty and traverses feature scales.

Prompt tuning: knowledge without overwriting

Prompt tuning: knowledge without overwriting

Start from natural-image pretrained ViT weights, freeze backbone parameters during PuzzleTuning, and update only additional prompt tokens that explicitly carry domain-bridging knowledge.

Curriculum: easy-to-hard, scale by scale

Curriculum: easy-to-hard, scale by scale

The fix-position ratio decreases to increase shuffling difficulty, while patch size cycles across scales so the model learns relationships from larger structures down to finer morphology.

Data & downstream scope

One pre-training recipe, multiple organs, scales and tasks.

PuzzleTuning is evaluated from subcellular and cellular ROIs to tissue-level regions, nuclei segmentation, and whole-slide classification — a deliberate test of whether the learned representation transfers across pathology scales.

CPIA-mini distribution and representative image scales.
CPIA-mini distribution and representative image scales.
1,081CAM16 ROIs · lymph nodesTissue-scale classification
1,417pRCC ROIs · kidneyGlandular-scale classification
5,088ROSE ROIs · pancreasCellular classification
14,514WBC ROIs · bloodSubcellular 5-class classification
7,904PanNuke ROIs · multiple tissues5-class nuclei segmentation
2,063LUAD & LUSC WSIs · lungWhole-slide classification
Foundation model comparison

Competitive with billion-tile foundation models — using 3M tiles.

Under the reported identical fine-tuning protocol, PuzzleTuning achieves the highest Accuracy and F1 on five of seven evaluated datasets. It is not the top model on pRCC or WBC, which are shown explicitly below.

F1 score: PuzzleTuning vs best competing foundation model

Vision-only and vision-language pathology foundation models include GigaPath, UNI/UNI2, Virchow2, CONCH and MUSK.

Best on 5 / 7 datasets
PuzzleTuningStrongest competing baseline
CAM16PuzzleTuning leads
PuzzleTuning
95.83
Virchow2
95.61
pRCCUNI2 leads
PuzzleTuning
93.54
UNI2
95.37
ROSEPuzzleTuning leads
PuzzleTuning
92.52
GigaPath
90.08
WBCGigaPath leads
PuzzleTuning
97.36
GigaPath
98.81
MHISTPuzzleTuning leads
PuzzleTuning
88.06
Virchow2
86.35
TCGA-CRC-MSIPuzzleTuning leads
PuzzleTuning
90.16
UNI2
90.02
OsteosarcomaPuzzleTuning leads
PuzzleTuning
97.85
UNI2
97.68

Bars are normalized within each card for visual comparison; the numeric F1 values are the reported scores.

ROI classification

95.83CAM16 Acc / F1

Across CAM16, pRCC, ROSE and WBC, PuzzleTuning reports the strongest overall performance against same-scale SSL baselines.

ROSE 93.27 Acc · 92.52 F1
WBC 98.49 Acc · 97.36 F1

Nuclei segmentation

80.05DICE · ViT+pt

PuzzleTuning transfers to low-level vision with CellViT/CellVPT, showing that the representation is not limited to classification.

VPT+pt: 79.97 DICE · 72.18 Jaccard

Whole-slide classification

87.42VPT feature extraction Acc

At WSI scale, PuzzleTuning improves both feature extraction and downstream feature-modeling stages in the reported experiments.

VPT+pt feature modeling: 79.45 Acc
CLS

ROI classification vs. SSL SOTA

Table II compares PuzzleTuning with 12 representative SSL pre-training baselines. Each card below contrasts PuzzleTuning with the strongest non-Puzzle baseline on that ROI dataset.

Best on 4 / 4 ROI datasets
PuzzleTuningStrongest competing baseline
CAM16+1.76
PuzzleTuning
95.83
MaskFeat
94.07
pRCC+0.06
PuzzleTuning
93.54
MAE
93.48
ROSE+0.77
PuzzleTuning
92.52
TransPath
91.75
WBC+0.54
PuzzleTuning
97.36
SimCLR
96.82

Metric shown: F1 (%). Strongest competing baselines are MaskFeat, MAE, TransPath (BYOL) and SimCLR respectively.

SEG

Nuclei segmentation transfer

Table III evaluates CellViT / CellVPT transfer under four downstream tuning modes. PuzzleTuning is best or near-best across the board, while remaining clearly competitive even in the single setting where MaskFeat is slightly higher.

Best DICE on 3 / 4 transfer settings
PuzzleTuningStrongest competing baseline
ViT+ft-0.21
PuzzleTuning
79.80
MaskFeat
80.01
ViT+pt+0.14
PuzzleTuning
80.05
MAE
79.91
VPT+ft+0.20
PuzzleTuning
79.80
MAE
79.60
VPT+pt+0.13
PuzzleTuning
79.97
MAE
79.84

Metric shown: DICE (%). Settings are ViT+ft, ViT+pt, VPT+ft and VPT+pt.

WSI

Whole-slide classification transfer

Table IV reports WSI transfer in both the feature-extraction stage (CLAM) and the feature-modeling stage (GTP). The strongest gains appear when prompt tokens are preserved during WSI transfer.

Best slide-level accuracy: 87.42
PuzzleTuningStrongest competing baseline
Extract · VPT+4.60
PuzzleTuning
87.42
ImageNet ViT
82.82
Model · ViT+pt+0.31
PuzzleTuning
78.22
ImageNet
77.91
Model · VPT+ft+1.23
PuzzleTuning
79.14
MAE
77.91
Model · VPT+pt+1.54
PuzzleTuning
79.45
ImageNet / SimMIM
77.91

Metric shown: Accuracy (%). Each block compares PuzzleTuning with the strongest non-Puzzle baseline for that transfer setting.

What the model learns

Restoration quality reveals more coherent local morphology.

The reconstruction studies compare the proposed shuffled auto-encoder (PuzzleTuning) with MAE. The reported visualizations show smoother, more coherent reconstructed patches and better continuity with visible hint regions.

Permuted/masked inputs, reconstructed outputs and combined images for PuzzleTuning versus MAE.
Permuted/masked inputs, reconstructed outputs and combined images for PuzzleTuning versus MAE.
Zoomed reconstruction comparison.
Zoomed reconstruction comparison.
Original → puzzle → restored pathology samples.
Original → puzzle → restored pathology samples.
Class-activation visualizations across CAM16, pRCC, ROSE and WBC examples.
Class-activation visualizations across CAM16, pRCC, ROSE and WBC examples.
Ablation insights

The gains come from design choices, not only more data.

The manuscript ablates the restoration objective, prompt design, curriculum schedule, shuffling group size, prompt-token count and the fraction of CPIA-mini used for pre-training.

Puzzles beat masking

Replacing MAE masking with multiple puzzle restoration improves the best accuracy by +1.48, +4.09, +3.29 and +1.11 pts across the four ROI tasks.

20

Compact prompts work best

A 20-token prompt budget gives the strongest overall result; 100–200 tokens can dilute attention and overfit cohort-specific texture.

Moderate puzzle complexity

Shuffling 8 images balances difficulty and learnability across heterogeneous tissue tasks; very small groups make the task too easy.

1%

Data-efficient activation

With only 1% of CPIA-mini, the model already reaches 94.17 CAM16 Acc and 92.07 ROSE Acc, while additional data benefits more diverse morphologies.

MethodCAM16 F1pRCC F1ROSE F1WBC F1MHIST F1CRC-MSI F1Osteosarcoma F1
GigaPath94.9195.1190.0898.8184.9389.6496.61
UNI295.2195.3789.5898.7183.9690.0297.68
Virchow295.6194.2487.8398.2186.3589.2596.61
CONCH95.1589.2787.6697.2084.4987.4895.18
MUSK95.0988.5186.5698.1682.9485.9095.18
PuzzleTuning95.8393.5492.5297.3688.0690.1697.85

Reported average top-5 downstream fine-tuning results; see the PuzzleTuning manuscript for full protocols, p-values and complete model set.

Open research

A foundation-model direction beyond brute-force scaling.

PuzzleTuning explores a complementary route: explicitly encode pathology structure and domain bridging so strong representations can emerge without relying only on billion-tile corpora and extreme compute.