TAP-Path: Task-Adaptive Structural and Token Pruning for Efficient and Trustworthy Pathology Foundation Models
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
TAP-Path: Task-Adaptive Structural and Token Pruning for Efficient and Trustworthy Pathology Foundation Models Mehedi Hasan1 Ashfak Yeafi2 Md Khairul Islam3 1 Department of Computer Science and Engineering, Brac University, Dhaka, Bangladesh 2 EEE, Khulna University of Engineering & Technology, Khulna, Bangladesh 3 Mathematics and Computer Science, Hobart and William Smith Colleges, Geneva, NY, USA
arXiv:2609.04071v1 [cs.CV] 3 Sep 2026
mehedi.hasan1@g.bracu.ac.bd
yeafiashfak@gmail.com
Abstract
khairul.robotics@gmail.com
model efficiency.
Pathology foundation models have substantially improved transferable representation learning for histopathology, but recent gains increasingly rely on encoders with hundreds of millions of parameters and high inference cost. This creates a practical mismatch between representational scale and task-specific deployment, especially when a downstream application requires only a subset of the pretrained hierarchy. We propose TAP-Path, a task-adaptive compression framework that directly restructures a pretrained Virchow2 encoder rather than distilling it into a separate student. TAP-Path combines validation-driven transformer-block selection, physical removal of redundant blocks, input-adaptive patch-token pruning, multi-depth feature recovery, and a lightweight gated task head. The final model retains 24 of 32 transformer blocks and 70% of patch tokens after the pruning point, reducing encoder parameters by 24.96% (631.24M to 473.70M) and analytical encoder compute by 35.20% (340.13G to 220.40G FLOPs). Across three task-head optimization seeds, TAP-Path achieved 87.98±0.067% test accuracy, 81.26±0.49% balanced accuracy, and 82.38±0.48% macro-F1 on a 32-class histopathology benchmark, slightly exceeding full Virchow2 (86.89% accuracy) and UNI2-h (87.67%) while using fewer deployed parameters and substantially less analytical compute. Beyond predictive performance, we evaluate calibration, probabilistic quality, failure detection, rare-class behavior, and selective prediction. TAP-Path obtained a Brier score of 0.1800±0.0005 and failure-detection AUROC of 0.9047±0.0060. A validationonly rare-aware objective increased rare-class balanced accuracy in a secondary operating analysis, providing a complementary operating point that characterizes the trade-off between overall accuracy and minority-class sensitivity. Frozen external evaluation on 433 CPTAC samples yielded 91.22±0.83% accuracy and 91.10±0.81% balanced accuracy. These results indicate that task-adaptive structural and token sparsification can move large pathology foundation models toward a more favorable accuracy–efficiency operating point while preserving measurable reliability characteristics under internal and external evaluation. Keywords: Computational pathology; pathology foundation models; structural pruning; token pruning; trustworthy AI;
1
Introduction
Digital pathology has moved rapidly from task-specific convolutional pipelines toward large pretrained vision and vision–language foundation models. Models such as UNI, CONCH, Virchow, Prov-GigaPath, CHIEF, Hibou, GPFM, and PathOrchestra have demonstrated that large-scale selfsupervised, weakly supervised, or multimodal pretraining can produce reusable histopathology representations across cancer classification, biomarker prediction, retrieval, prognosis, and other downstream tasks [1, 2, 3, 4, 5, 6, 7, 8]. The emerging consensus, however, is not that a single foundation model is uniformly superior. Independent benchmarking has shown substantial task dependence, cohort dependence, sensitivity to adaptation strategy, and variation under external evaluation [9, 10, 11, 12]. This makes deployment efficiency and reliability increasingly important alongside raw predictive performance. The computational cost of contemporary pathology foundation models is particularly relevant. From a systems perspective, this mismatch is amplified at whole-slide scale. A tissue-rich WSI may generate thousands to tens of thousands of candidate tiles at diagnostic magnification, and the encoder is invoked repeatedly before slide-level aggregation or downstream decision logic. A reduction of one third in per-patch transformer compute therefore compounds across the entire WSI rather than saving only a single forward pass. This observation motivates task-specific restructuring of the patch encoder itself, rather than limiting efficiency analysis to the number of trainable downstream parameters. Virchow2 uses a ViT-H/14-scale encoder with approximately 632M parameters [3], while other leading models are similarly large. Wholeslide applications amplify this burden because a single slide may generate hundreds or thousands of patches. Even when a large encoder is frozen, its stored parameters and forward-pass operations remain present at inference. Parameter-efficient fine-tuning therefore reduces optimization cost but does not necessarily reduce the resident encoder or patch-level inference burden. Recent medical-image studies have increasingly recognized lightweight design as a distinct problem from parameter1
efficient adaptation [13, 14, 15]. In computational pathology, SUDA explicitly targets this problem by distilling heavy foundation models into lightweight students [16]. Distillation can be highly effective, but it changes the model family, requires a teacher–student transfer procedure, and may need to be repeated for new tasks or domains. This leaves an important complementary question: how much of an already pretrained large pathology encoder is actually necessary for a specific downstream task? Generic vision research suggests that substantial redundancy can exist both along transformer depth and within the token sequence. Structured sparsification and token-pruning approaches reduce computation by removing blocks, tokens, or interactions that contribute little to a target task [17, 18, 19, 20, 21]. Nevertheless, pathology foundation models are not ordinary ImageNet classifiers. Histopathological discriminative evidence may occupy small tissue regions, vary across magnification and morphology, and be especially sparse for low-prevalence classes. Aggressive pruning that looks attractive from a FLOP perspective can therefore erase diagnostically useful evidence. The desired objective is not maximum compression alone, but a validated Pareto operating point that preserves task utility while reducing genuine encoder cost. The design philosophy is similar to recent efficiency-oriented vision architectures that explicitly optimize accuracy against parameters and compute [22], but here the problem is addressed by restructuring a pretrained pathology foundation model rather than designing a new backbone from scratch. A second limitation of efficiency-only evaluation is that a compressed medical model can retain accuracy while becoming less trustworthy in ways that aggregate accuracy does not reveal. Calibration error, negative log-likelihood, Brier score, confidence-based failure detection, and selective risk quantify different aspects of whether predicted probabilities are useful for decision support [23, 24, 25]. Recent pathology work has likewise emphasized domain robustness, fairness, and vulnerability to non-biological scanner or laboratory variation [26, 27, 28]. Thus, a credible compression study in computational pathology should establish not only accuracy and compute reduction but also whether uncertainty remains informative, minority classes are characterized explicitly, and the locked model generalizes to an independent cohort. This study addresses these gaps with TAP-Path, short for TAP-Path, a task-adaptive structural and token pruning framework for pathology foundation models. TAP-Path begins from the pretrained Virchow2 encoder and performs validation-only structural analysis to identify a task-relevant subset of transformer blocks. Unlike freezing or masking, selected blocks are physically retained in the deployed encoder while unselected blocks are removed. The structurally compressed model is then paired with input-adaptive token pruning that preserves the prefix token and retains the most task-relevant patch tokens using a combined class-token similarity and feature-magnitude score. To compensate for information loss from shortening both depth and token sequence, TAP-Path collects multi-depth features from four locations in the retained hierarchy and fuses them through a learned soft gate before classification. The model is
selected entirely on training and validation data; the internal test set and CPTAC external cohort are evaluated only after configuration locking. The final single-head model is confirmed with three random seeds and evaluated with accuracy, balanced accuracy, macro-F1, rare-class balanced accuracy, calibration, probabilistic losses, failure-detection AUROC, runtime, parameters, analytical FLOPs, and frozen external performance. In this paper, we propose TAP-Path, a task-adaptive compression framework that restructures a pretrained pathology foundation model for efficient and reliable downstream deployment. The main contributions of this study are summarized as follows: • We propose TAP-Path, a task-adaptive compression framework that identifies task-relevant transformer depth and physically reconstructs a compact, non-contiguous subnetwork from the pretrained Virchow2 hierarchy. This enables direct compression of the foundation model without training or distilling a separate student network. • We develop an adaptive token-pruning and multi-depth recovery strategy that reduces redundant patch-token computation while preserving complementary representations from multiple stages of the compressed hierarchy. A learned gating mechanism integrates these representations for downstream prediction. • We systematically investigate the computational efficiency of pathology foundation models through deployed parameter count and analytical FLOPs, together with predictive performance. The proposed design reduces Virchow2 encoder parameters by 24.96% and FLOPs by 35.20%, demonstrating that substantial computational redundancy can be removed while preserving competitive performance on the 32-class pathology task. • We conduct a reliability-oriented evaluation relevant to trustworthy medical AI by examining calibration, failure awareness, selective prediction, rare-class behavior, and statistical uncertainty. We further evaluate the locked model on two independent CPTAC cohorts without external adaptation or threshold tuning to assess generalization beyond the development data. Together, these results show that task-specific structural and token redundancy can be removed from a large pathology foundation model while retaining competitive discrimination and informative uncertainty.
2
Related Work
2.1
Pathology foundation models
The current generation of computational-pathology foundation models has been driven by scale, data diversity, and self-supervised learning. UNI established a general-purpose pathology representation benchmark using large-scale selfsupervision [1]; CONCH extended the paradigm to paired pathology image–text learning [2]; Virchow showed the value 2
of million-slide-scale pretraining and a ViT-H backbone for common and rare cancers [3]; Prov-GigaPath introduced a whole-slide hierarchy trained on 1.3 billion tiles [4]; CHIEF combined tile-level and slide-level pretraining across multiple institutions [5]; and Hibou provided open DINOv2-based pathology encoders trained on more than one million WSIs [6]. Subsequent models have broadened clinical task coverage and pretraining strategies, including BEPH, GPFM, and PathOrchestra [29, 7, 8]. As the number of foundation models has grown, independent evaluation has become as important as model creation. Campanella et al. benchmarked public self-supervised pathology foundation models on clinical tasks [9]. Lee et al. systematically examined adaptation strategies and data-limited scenarios, finding that the preferred adaptation procedure depends on the downstream setting [10]. Neidlinger et al. evaluated 19 foundation models across external clinical cohorts and found that relative model ranking changes with the task and data regime [11]. A broader 2026 benchmark further compared general and pathology-specific vision and vision–language foundation models across multiple cohorts and task categories [12]. These studies motivate controlled same-task comparisons rather than relying on headline performance reported on unrelated benchmarks. Table 1 summarizes the most directly relevant foundation-model, adaptation, and pruning studies and highlights the methodological gap addressed by TAP-Path. The literature also increasingly separates representation quality from domain robustness. Knowledge-guided adaptation has been proposed to improve cross-domain generalization and fairness [26], while recent work demonstrates that pathology foundation models may encode scanner and laboratory signatures that can compromise robustness [27]. Domain-generalization surveys similarly emphasize explicit external evaluation and transparent reporting of data sources [28]. Our work follows this direction by locking the compressed architecture before independent CPTAC evaluation and by reporting probabilityquality and failure-detection measures in addition to class prediction.
2.2
tillation and domain adaptation; its student can approach the teacher with a small fraction of the parameters [16]. Distillation is therefore a strong point of comparison, but it answers a different question from ours. TAP-Path asks whether a large pretrained encoder can be restructured in place for a target task without building a separate student, thereby preserving the original representation family while physically eliminating task-redundant computation. This distinction matters because resource efficiency has become a first-class objective in medical imaging. Lightweight hybrid architectures have reduced model size in segmentation and histopathology-specific applications [13, 15]. One study by [15], explicitly evaluated model size, FLOPs, and MACs alongside predictive performance, illustrating the importance of quantitative efficiency assessment in histopathology models. Similarly, recent efficiency-oriented vision work such as AdaptViG evaluates a Pareto frontier between accuracy, parameters, and compute [22]. We adopt the same scientific principle—efficiency must be demonstrated quantitatively— but apply it to the task-specific compression of a pathology foundation model.
2.3
Transformer sparsification
The transformer architecture offers at least two complementary axes of redundancy: depth and tokens. Structured methods remove layers, heads, or channels, while token-pruning methods reduce the sequence length dynamically. Vision-specific token pruning has been revisited for dense prediction [17], graph-based propagation has been proposed to preserve token information under reduction [18], and Token Cropr demonstrated task-aware token removal across several vision problems [19]. Sparse structure exploration and learned tokenscoring networks further show that efficiency can be improved by searching for task-relevant computation rather than uniformly shrinking the network [20, 21]. Recent pathology-specific pruning evidence further supports the premise that transformer redundancy can be removed selectively. Boudissa et al. analyzed attention-head similarity and confidence in histopathology ViTs and showed that pruning redundant heads can preserve or even improve classification performance while reducing computational burden [31]. This work is complementary to TAP-Path: their unit of sparsification is the attention head in a distilled ViT, whereas our method physically selects non-contiguous transformer blocks and subsequently prunes patch tokens inside a large pretrained pathology foundation model. The distinction strengthens the motivation for testing structural redundancy directly in pathologyspecific transformers. Pathology introduces a special constraint: the discriminative region may be spatially sparse. Token removal therefore has to be conditioned on feature content, and the pruning ratio should be chosen on a locked validation protocol rather than assumed a priori. TAP-Path combines a block-level task relevance signal with an input-adaptive token score, then uses multidepth feature recovery to preserve information from distinct stages of the compressed hierarchy.
Efficient adaptation and compression
Several strategies can make foundation models easier to use downstream. Prompt tuning, adapters, and related parameterefficient methods update only a small portion of the model, reducing optimization memory and the number of trainable weights. For example, prompt-guided adaptive model transformation has been proposed for pathology classification using representative patch sampling, visual prompts, and adapters [30]; broader medical-image work has also demonstrated fewshot parameter-efficient tuning [14]. These approaches are useful when fine-tuning cost is the main bottleneck, but a frozen or adapter-tuned 600M-parameter encoder still executes most of the original forward pass. Knowledge distillation instead transfers knowledge to a smaller student. GPFM uses a unified expert/self-distillation framework during pretraining [7], and SUDA directly targets efficient pathology analysis by combining unsupervised dis3
2.4
Reliability and selective prediction
3.2
The internal representation is image-level but is deliberately constructed from multiple pathology regions. The final protocol uses a fixed 12-patch bag for every record. Patch selection was completed before TAP-Path architecture search and therefore does not use test-set model outcomes. Candidate regions were generated at multiple source crop sizes (224, 448, and 896 pixels) and subsequently resized to the encoder input resolution. To preserve scale coverage, the selector first reserves one high-confidence candidate from every available scale. Two additional high-entropy candidates are then forced into the bag so that difficult or ambiguous morphology is not systematically discarded. Remaining positions are filled by a combined utility criterion qi = 0.50 ci + 0.30 di + 0.20 hi , (1)
Modern neural networks can be accurate yet poorly calibrated, motivating temperature scaling and expected calibration error (ECE) [23]. Under dataset shift, uncertainty estimates can degrade even when in-distribution metrics appear strong [24]. Selective prediction addresses a complementary practical question: if the system abstains on its least-confident cases, how quickly does error risk decrease [25]? These concepts are particularly relevant to computational pathology, where externally acquired slides may differ in staining, preparation, scanner hardware, and population characteristics. Our operational trustworthiness analysis covers calibration (ECE), proper scoring rules (NLL and Brier), failure-detection AUROC, rareclass behavior, and risk–coverage. Together, these measures provide complementary evidence of probability quality, error awareness, selective-prediction behavior, and reliability under external evaluation. Their clinical interpretation requires prospective validation under the intended workflow.
3
Materials and Methods
3.1
Study design
Preprocessing and patch selection
The probabilities used by this selector are generated by a reproducible patch probe, not by TAP-Path itself. Specifically, Hibou-B patch embeddings are L2-normalized and a multinomial logistic-regression classifier is fitted on training patches only using the LBFGS solver, L2 penalty, C = 1.0, and the (q) fixed screening seed. For candidate patch i, if pi ∈ [0, 1]32 denotes the probe posterior, confidence and normalized predictive entropy are (q)
ci = max pik ,
(2)
k
The study followed a sequential model-selection and lockedevaluation protocol. Architecture screening and tokenretention selection were performed exclusively using the training and validation partitions. The internal test set was not used for transformer-block selection, token-retention selection, lossfunction selection, or calibration-hyperparameter optimization. After fixing the structural and token configuration, three independent task heads were trained using seeds 42, 123, and 2026. All external evaluations were subsequently performed using the locked configuration without external model adaptation or threshold optimization. This protocol maintains a strict separation between model development, internal testing, and external evaluation. The internal benchmark comprised 25,495 image-level records representing 32 cancer classes derived from The Cancer Genome Atlas (TCGA) [32]. The dataset was partitioned into 17,769 training, 3,867 validation, and 3,859 test images, with each image represented using the final 12-patch protocol. Table 2 summarizes the resulting data partitions. For independent external evaluation, we used 433 wholeslide images (WSIs) from the Clinical Proteomic Tumor Analysis Consortium (CPTAC), comprising 209 clear cell renal cell carcinoma (CCRCC) images [33] and 224 uterine corpus endometrial carcinoma (UCEC) images [34]. External evaluation was conducted at the image level using the locked model without external fitting or threshold optimization. Because the external cohorts represent only two of the 32 cancer classes included in the internal benchmark, external balanced accuracy was computed over the classes represented in CPTAC; metrics requiring averaging across all 32 internal classes were not used as primary measures of class-balanced external performance.
C 1 X (q) (q) hi = − pik log pik + ϵ , log C
C = 32.
(3)
k=1
Thus, the probe is a linear probabilistic readout of frozen HibouB features; it is neither a ResNet nor a zero-shot classifier. It is trained exclusively on the training split and is used only to construct the deterministic patch manifest. In Eq. (1), ci is the probe confidence from Eq. (2), di is the minimum cosine distance between candidate i and the already selected Hibou-B patch representations, and hi is the normalized entropy from Eq. (3). The selection procedure first reserves one highest-confidence patch from every available scale, then forces the two highest-entropy remaining patches, and finally fills the bag according to Eq. (1). The diversity term prevents collapse to near-duplicate tissue regions, whereas the entropy term deliberately preserves difficult regions. For source image I, stored crop center (xi , yi ), and source crop size si , the selected region is h si si si si i Pi = I y i − : yi + , xi − : xi + . (4) 2 2 2 2 Regions extending beyond the source boundary are padded with white background and resized to 224 × 224 pixels using bicubic interpolation. The resulting 12 regions are deterministic for a given manifest and are reused across compared encoders, preventing model-specific patch selection from contaminating the benchmark. Representative selected regions are shown in Fig. 1, while Fig. 2 documents the long-tailed class distribution.
4
Table 1: Representative recent pathology foundation-model studies most relevant to TAP-Path. Study
Year
Main strategy
Efficiency / adaptation
Gap addressed by TAP-Path
UNI [1] CONCH [2] Virchow [3] Prov-GigaPath [4] Lee et al. [10] SUDA [16] Boudissa et al. [31] PAMT [30] TAP-Path
2024 2024 2024 2024 2025 2026 2025 2026 –
General pathology FM Vision–language FM Large-scale pathology FM WSI foundation modeling PFM adaptation benchmark Efficient pathology adaptation Histology ViT pruning Prompt-guided adaptation Task-adaptive PFM compression
Frozen transfer Compact transferable encoder Scale-driven pretraining Hierarchical slide modeling PEFT / few-shot adaptation Teacher–student distillation Attention-head pruning Prompts / adapters Physical block + adaptive token pruning
No task-specific structural compression No in-place block/token pruning High inference footprint Focuses context, not encoder compression Trainable-efficiency, not physical reduction Requires a separate student Head-level, not PFM block+token pruning Full backbone largely retained Efficiency + reliability + frozen external validation
ACC
BLCA
LGG
BRCA
CESC
CHOL
COAD
ESCA
GBM
HNSC
KICH
KIRC
(a) Representative internal H&E patches. TCGA abbreviations identify the sampled cancer classes.
Original
H-flip
V-flip
90° rotation
Contrast
Brightness
(b) Representative label-preserving transformations used during training.
Figure 1: Representative data appearance and training-time augmentation. The pathology panel illustrates morphological heterogeneity across selected internal classes, while the augmentation panel shows the conservative geometric and photometric perturbations used to improve robustness. Validation, test, and external evaluations use deterministic unaugmented patches. Table 2: Dataset partitions used in the locked evaluation protocol. Partition
Images
Classes
Training Validation Internal test
17,769 3,867 3,859
32 32 32
Internal total External CPTAC
25,495 433
32 2 present classes
3.3
Data augmentation
Augmentation is restricted to transformations expected to preserve diagnostic class: horizontal/vertical reflection, 90◦ rotation, mild contrast perturbation, and mild brightness perturbation. An augmented patch is P̃ = Tθ (P ),
Tθ ∈ {Fh , Fv , R90 , Cδc , Bδb }.
(5)
Aggressive color remapping is avoided because staindependent appearance can carry diagnostic information. Validation, internal test, and external CPTAC evaluation use deterministic, unaugmented patches.
3.4
Data-integrity checks verify the canonical class mapping, finite feature values, feature/index row agreement, deterministic split membership, and absence of zero-vector embeddings. As visualized in Fig. 2, class imbalance is substantial, motivating balanced accuracy, macro-F1, rare-class analysis, and class-wise reliability rather than relying exclusively on top-1 accuracy.
Foundation-model baselines
Four pathology foundation encoders were retained as interpretable reference points: Hibou-B, CONCH, Virchow2, and UNI2-h. Hibou-B and CONCH represent smaller pathologyspecific encoders, while Virchow2 and UNI2-h represent the high-capacity regime. Comparisons use the same 32-class task and dataset partitions from the established benchmark. 5
Cancer class
Training-set class distribution
3.6
Stomach adenocarcinoma Glioblastoma multiforme Breast invasive carcinom Brain Lower Grade Glioma Lung squamous cell carci Sarcoma Lung adenocarcinoma Uterine Corpus Endometri Head and Neck squamous c Thyroid carcinoma Skin Cutaneous Melanoma Bladder Urothelial Carci Prostate adenocarcinoma Liver hepatocellular car Kidney renal clear cell Colon adenocarcinoma Cervical squamous cell c Testicular Germ Cell Tum Adrenocortical carcinoma Kidney renal papillary c Pancreatic adenocarcinom Thymoma Esophageal carcinoma Ovarian serous cystadeno Uterine Carcinosarcoma Mesothelioma Kidney Chromophobe Rectum adenocarcinoma Uveal Melanoma Pheochromocytoma and Par Cholangiocarcinoma Lymphoid Neoplasm Diffus
Task-adaptive block selection
Uniform truncation assumes that later blocks are always more expendable or that useful information is distributed monotonically with depth. We instead estimate the normalized residual change induced by each block. For a profiling sample x and block ℓ, let Hℓ−1 and Hℓ denote the token tensors immediately before and after the block. We define block novelty as q
2 1 N D ∥Hℓ − Hℓ−1 ∥F
νℓ (x) = q
0
200
400
600
800 1000 Training images
1200
1400
2 1 N D ∥Hℓ−1 ∥F + ϵ
,
where N is the token count, D is the embedding dimension, and ϵ = 10−8 prevents numerical instability. Profiling is restricted to the development subset and excludes internal test and CPTAC records. The dataset-level score is
1600
M
Figure 2: Training-set distribution of the 32 internal cancer classes. The long-tailed class frequencies motivate balanced, macro-averaged, and rare-class evaluation.
ν̄ℓ =
1 X νℓ (xm ). M m=1
(8)
To preserve low-level token formation and high-level semantic consolidation, the first four and final four blocks are anchored. For a target retained depth K, the remaining K − 8 blocks are selected from the middle hierarchy according to ν̄ℓ and then restored to their original order. Because transformer blocks preserve a constant hidden width, block excision does not create a dimensional mismatch. If Hℓ ∈ RN ×D is the residual stream after a retained block and blocks ℓ + 1, . . . , j − 1 are removed, the next retained block receives
We report each baseline’s measured downstream predictive metrics together with the parameter count and a consistently defined analytical encoder-FLOP estimate. The proposed method is initialized from Virchow2 because it provided a strong large-model baseline while exposing sufficient depth for structural analysis. For additional context, the study evaluated high-compute fusion systems. Virchow2+StaticTriFusion reached 87.43% accuracy with 81.78% macro-F1, and UNI2h+DenseTriGate reached 87.91% accuracy with 82.68% macroF1, but both execute three foundation representations simultaneously. Their approximate deployed backbone footprints are 808M/421.6G and 857M/532.4G (parameters/FLOPs), respectively, before small fusion-head overhead. These systems are therefore retained as high-compute context rather than direct deployment competitors.
Hj = Bj (Hℓ ).
(9)
The pretrained weights inside retained modules are unchanged; only the computational graph is shortened. The selected 24block configuration in the locked experiment retained original blocks S ⋆ = {1, . . . , 5} ∪ {14, . . . , 32}.
3.5
(7)
(10)
TAP-Path overview using one-based indexing for readability. The practical implementation physically replaces the original block list with the retained modules; consequently, omitted blocks no longer contribute stored encoder parameters or forward-pass computation. Structural candidates were screened against contiguousdepth controls and task-sparse variants. Candidate selection was validation-only and explicitly constrained by compression. The objective can be written as
Let the pretrained encoder contain L = 32 transformer blocks, F(X) = BL ◦ BL−1 ◦ · · · ◦ B1 (E(X)),
(6)
where E(·) denotes patch embedding plus prefix-token construction and Bℓ is transformer block ℓ in Eq. (6). TAP-Path transforms F into a task-specific sparse encoder FS,ρ parameterized by a retained block set S ⊂ {1, . . . , L} and tokenretention ratio ρ. The final model uses |S| = 24 and ρ = 0.70 after the pruning point. The design contains four coupled operations: (i) block novelty profiling and task-adaptive structural selection; (ii) physical removal of unselected transformer blocks; (iii) inputadaptive patch-token pruning; and (iv) gated recovery of features from four depths of the compressed hierarchy. The complete procedure is summarized in Algorithm 1 and illustrated in Fig. 3; Table 3 later contrasts the resulting system properties with the evaluated baselines.
max S
s.t.
Aval (S) RP (S) ≥ rP ,
(11) Aval (S) ≥ A⋆val − δ,
(12)
where RP = 1 − PS /Pfull is parameter reduction, rP is the required reduction, and δ is the allowed validation tolerance. This formulation avoids choosing the smallest network when its accuracy has already collapsed. 6
3.7
Adaptive token pruning
Each ut is projected to a 256-dimensional task space:
After structural selection, token reduction is applied within the compressed encoder. Let c ∈ RD denote the prefix/class token and pi ∈ RD a patch token. We first normalize both and compute a class-token similarity, ssim = i
p⊤ i c . ∥pi ∥2 ∥c∥2
zt = GELU(Wt LN(ut ) + bt ).
Instead of concatenating the four taps and treating them equally, an adaptive gate estimates their sample-specific contribution. Let zcat = [z1 ; z2 ; z3 ; z4 ]. (20)
(13)
The gate is
To avoid retaining only tokens aligned with the current class token, we add an activation-magnitude term. With per-image normalized magnitude ∥pi ∥2 − µ∥p∥ , smag = i σ∥p∥ + ϵ
α = softmax (Wg2 GELU (Wg1 LN(zcat ))) ,
4 X
αt = 1,
t=1
(21)
(14) and the fused feature becomes
the fixed development weighting prioritizes semantic alignment while retaining a secondary activation-magnitude cue; it is frozen before test evaluation. The combined token importance is si = 0.75 ssim + 0.25 smag . (15) i i
z=
4 X
αt zt .
(22)
t=1
The final classifier is a two-layer MLP with LayerNorm, a 512-unit hidden layer, GELU, dropout 0.18, and a 32-class output layer. This single task head contains 5.70M parameters; the deployed single-head model therefore contains 479.40M parameters in total.
The prefix token is always retained. Among Np patch tokens, the model keeps Kp = ⌈ρNp ⌉ . (16) patches with the largest si according to Eqs. (15)–(16), where ρ ∈ {1.00, 0.85, 0.70} was evaluated after structural locking. Token pruning begins at retained execution position max(1, round(24 × 0.55)) = 13, i.e., after the 13th block in the retained execution sequence. Ranking is recomputed for every patch and introduces no trainable token-router subnetwork. The analytical compute reduction arises from both fewer blocks and a smaller token sequence. If Φℓ (N ) denotes the FLOPs of transformer block ℓ at token count N , the compressed encoder cost is approximated by X X ΦTAP = Φℓ (N ) + Φℓ (Kp + Nprefix ), (17) ℓ∈Spre
(19)
3.9
Optimization objectives
For the primary single-head model, class weights are mild rather than fully inverse-frequency weighted: wc =
1 C
γ
N C nc
PC
j=1
N C nj
γ ,
γ = 0.20,
(23)
where nc is the number of training examples in class c. Weighted cross-entropy uses label smoothing ϵls = 0.01. To discourage degenerate single-tap gating, we define gate entropy
ℓ∈Spost
where Spre and Spost denote retained blocks before and after the pruning point.
H(α) = −
4 X
αt log(αt + ϵ)
(24)
t=1
3.8
Multi-depth feature recovery
and optimize
Compression can remove intermediate transformations that a downstream classifier would otherwise exploit. We therefore do not classify from only the final compressed token state. Four approximately evenly spaced taps are collected from the retained hierarchy. Four taps balance hierarchical coverage against projection/gating overhead and cached feature dimensionality. The effective token count Kt depends on tap location: taps before the pruning point observe the dense sequence, whereas later taps observe the retained 70% patch sequence. At tap t, the token sequence is normalized and summarized using the prefix token and mean patch token, " # Kt 1 X ut = LN(ct ) ; LN(pt,i ) . (18) Kt i=1
Lprimary = LCE − λH H(α),
λH = 0.002.
(25)
Rare-class sensitivity was investigated after the main architecture had been locked. Five validation-only objectives were compared: mild weighted cross-entropy, Balanced Softmax, logit adjustment with τ = 0.5, logit adjustment with τ = 1.0, and class-balanced focal loss. For logit adjustment, õc = oc + τ log(πc + ϵ),
(26)
where oc is class logit c and πc is the empirical training prior. This experiment is reported as an ablation of the same compressed architecture; it is not merged with the primary head to construct an artificial “best of all metrics” model. 7
TAP-Path: Task-Adaptive Pathology Foundation Model Compression and Reliable Inference 1. Multi-scale Patch Construction
H&E tissue / WSI internal 32-class cohort
2. Task-Adaptive Structural Compression
3. Token Pruning & Multi-depth Recovery
4. Reliable Prediction & Validation
Virchow2 pretrained hierarchy 32 transformer blocks
Patch tokens entering retained hierarchy ●●●●●●●●●●●●
Single calibrated 32-class task head
Adaptive token importance sᵢ = 0.75 sᵢˢⁱᵐ + 0.25 sᵢᵐᵃᵍ
Classification Accuracy · BA · Macro-F1 · Rare BA
Late-hierarchy token pruning ρ = 0.70 retention ✓● ×○ ✓● ✓● ×○ ✓●
Calibration Temperature scaling ECE · Brier · NLL
Multi-depth representation recovery T₁ T₂ T₃ T₄
Failure awareness 1 − max p(y|x) Failure AUROC · Risk–coverage
Multi-scale candidate regions 224 / 448 / 896 px
631.24 M encoder parameters
Lightweight frozen probe linear classifier on frozen embeddings
Task-specific block novelty profiling νℓ = RMS(Hℓ − Hℓ₋₁) / (RMS(Hℓ₋₁)+ε)
Representation diversity dᵢ
Block retention map
Confidence cᵢ
Predictive entropy hᵢ
Patch utility score qᵢ = 0.50cᵢ + 0.30dᵢ + 0.20hᵢ
B1–2 ✓
B3–4 ✓
B5 ✓
B6-7 ×
B8-9 ×
B1011 ×
B17– 18 ✓
B19– 20 ✓
B21– 22 ✓
B23– 24 ✓
B25– 26 ✓
B27– 28 ✓
B1213 ×
B14– 16 ✓
B29– 30 ✓
B31– 32 ✓
Physical encoder reconstruction 32 → 24 retained blocks
Deterministic H&E patch bag 12 selected regions
Four 256-D projections zₜ = GELU(Wₜ LN(uₜ)+bₜ)
non-contiguous task-adaptive subnetwork
fixed ordering for reproducibility
F frozen/reference
T trainable removed
✓ retained
×
Encoder parameters 631.24 M → 473.70 M
Learned soft gate α = softmax(g(z₁… z₄)) z = Σ αₜzₜ
Analytical encoder compute 340.13 G → 220.40 G FLOPs
≈25% structural reduction
Frozen external validation CPTAC-CCRCC · CPTAC-UCEC no encoder adaptation
Primary operating point 87.98% accuracy efficient + calibrated + externally evaluated
Figure 3: Architecture of the proposed TAP-Path framework. Multi-scale H&E regions are ranked to construct a deterministic 12-patch bag, followed by task-adaptive structural compression of the Virchow2 encoder to the locked one-based block set {1, . . . , 5} ∪ {14, . . . , 32} (24 of 32 blocks). Adaptive late-hierarchy token pruning retains 70% of informative tokens, while four intermediate feature representations are projected to 256 dimensions and adaptively combined through a learned soft gate before 32-class prediction. The resulting predictions are evaluated for classification performance, calibration, failure awareness, and frozen external generalization on CPTAC-CCRCC and CPTAC-UCEC. TAP-Path reduces the encoder from 631.24M to 473.70M parameters and the analytical encoder computation from 340.13 to 220.40 GFLOPs while achieving 87.98% internal test accuracy.
3.10
Training and model selection
Stage 4: full 12-patch feature extraction. The physically reconstructed encoder is run over the complete deterministic 12-patch bags. CUDA automatic mixed precision is enabled where supported. Screening encoder batch size is 4, final feature-extraction batch size is 6, and the development GPU is an NVIDIA GeForce RTX 5060 Ti with approximately 16 GB VRAM.
The optimization pipeline is separated into architecture selection and task-head learning so that the expensive foundation backbone is not repeatedly fine-tuned for every candidate. Stage 1: reduced class-aware screening. Structural search uses 1,400 training and 700 validation records selected deterministically with class awareness. Only the first two ranked patches per selected image are processed during screening. This subset exists solely to rank compression candidates efficiently.
Stage 5: task-head optimization. The single gated multitap head is trained on cached image-level compressed features for at most 130 epochs using AdamW, learning rate 7 × 10−4 , weight decay 2 × 10−4 , batch size 384, gradient clipping at 5, dropout 0.18, and early-stopping patience 18. Three seeds (42, 123, 2026) quantify optimization variability.
Stage 2: structural search. Contiguous-depth controls and non-contiguous task-sparse candidates are constructed from the frozen Virchow2 parent. Each candidate is evaluated using screening features and a lightweight validation probe. The selection criterion jointly considers validation utility and compression; internal test data are not used to choose retained blocks.
Stage 6: calibration and locked evaluation. Temperature scaling is fitted only to validation logits using LBFGS. The locked internal test set is then evaluated. CPTAC-CCRCC and CPTAC-UCEC are processed only after internal configuration locking; no external label, threshold, temperature, or architecture decision modifies TAP-Path. Structural-screening performance and final test performance are not directly comparable because they correspond to distinct experimental protocols. Screening uses a reduced class-aware subset and two patches per image for efficient candidate ranking, whereas final evaluation uses the complete deterministic
Stage 3: token-retention search. After the strongest compressed structures are identified, ρ ∈ {1.00, 0.85, 0.70} is evaluated on validation data. TaskSparse24 with ρ = 0.70 is locked before final representation extraction. 8
Algorithm 1 TAP-Path: task-adaptive structural and token pruning with multi-depth recovery Require: Pretrained Virchow2 encoder {Bℓ }32 ℓ=1 ; training set Dtr ; validation set Dva ; deterministic candidate-patch manifest Ensure: Compressed encoder FS ⋆ ,ρ⋆ and calibrated 32-class task head 1: Extract frozen Hibou-B candidate-patch embeddings and L2-normalize them 2: Fit the multinomial logistic patch probe on Dtr only 3: for each candidate patch i do 4: Compute probe confidence ci and entropy hi using Eqs. (2)–(3) 5: end for 6: for each image do 7: Reserve the highest-confidence patch at every available scale 8: Add the two highest-entropy remaining patches 9: while fewer than 12 patches are selected do 10: Compute confidence–diversity–entropy utility using Eq. (1) 11: Add the highest-utility remaining patch 12: end while 13: end for 14: Profile Virchow2 block novelty ν̄ℓ on development data using Eq. (7) 15: Construct contiguous-depth controls and non-contiguous task-sparse block candidates 16: for each candidate block set S do 17: Physically instantiate only blocks in S 18: Extract reduced-protocol screening features and fit the fixed lightweight validation probe 19: Record validation accuracy, BA, macro-F1, encoder parameters, and analytical FLOPs 20: end for 21: Lock the validation-Pareto structural candidate S ⋆ (24 of 32 blocks) 22: for ρ ∈ {1.00, 0.85, 0.70} do 23: Score tokens with Eq. (15); retain Kp tokens using Eq. (16) 24: Evaluate validation performance and analytical compute 25: end for 26: Lock ρ⋆ = 0.70 and rebuild the executable compressed encoder 27: for seed ∈ {42, 123, 2026} do 28: Extract the full deterministic 12-patch representation 29: Recover four hierarchy taps and compute the adaptive gate using Eq. (21) 30: Fuse taps using Eq. (22) and optimize the single 32-class head 31: Fit temperature scaling on validation logits only 32: Evaluate the locked internal test set and frozen CPTAC cohorts 33: end for 34: Report predictive, efficiency, calibration, failure-detection, selective-risk, rare-class, and bootstrap metrics
3.12
12-patch representation and the trained multi-depth recovery head.
3.11
Reliability metrics
For each trained seed, post-hoc temperature scaling is fitted on validation logits only. Given logits o and temperature T > 0, exp(oc /T ) pc = PC . j=1 exp(oj /T )
Common-probe diagnostic
To assess representation quality independently of modelspecific task heads, we additionally trained an identical lightweight probe on each frozen representation. Under this standardized readout, TAP-Path achieved approximately 85% accuracy, compared with approximately 88% using its proposed multi-depth gated head. The difference reflects the contribution of the task-specific multi-depth recovery mechanism to downstream prediction. Because the common-probe experiment evaluates representation quality under a standardized classifier rather than the complete TAP-Path inference architecture, it is reported as a complementary diagnostic analysis.
(27)
T is optimized by minimizing validation NLL. ECE is computed over 15 confidence bins, ECE =
B X |Ib | b=1
n
|acc(Ib ) − conf(Ib )| .
(28)
We additionally report multiclass Brier score n
C
1 XX Brier = (pic − yic )2 n i=1 c=1 9
(29)
Task-adaptive structural screening
and NLL. These measures are complementary: ECE summarizes bin-level calibration, while NLL and Brier are proper scoring rules sensitive to the full predictive distribution. For failure detection, each example receives an uncertainty score ui = 1 − max pic . (30)
Screening validation accuracy (%)
c
Ground-truth failures are ei = ⊮[arg maxc pic ̸= yi ]. The AUROC between ui and ei measures whether errors tend to receive higher uncertainty. Risk–coverage analysis sorts examples by confidence and evaluates error rate among the retained fraction. This supports a selective-prediction interpretation but is not presented as proof of clinical safety. Rare classes are defined from the training distribution using the lower quartile of positive class counts. Rare-class balanced accuracy is the unweighted mean recall over those classes: RareBA =
1 X TPc . |R| TPc + FNc
66 64 62 60 400
450 500 550 Encoder parameters (M)
600
Figure 4: Validation-only structural screening of contiguousdepth and task-adaptive sparse candidates.
(31)
4
Results
4.1
Structural compression
The first question was whether selecting blocks by taskdependent novelty provides a better compressed representation than simply truncating the model. Table 4 summarizes the validation-only screening. Full Depth32 achieved the highest absolute screening accuracy (72.96%) but retained the entire encoder. A contiguous Depth24 model reduced encoder parameters by 24.96% but reached 68.28% screening accuracy. At the same parameter count, TaskSparse24 improved screening accuracy to 69.79%, supporting the use of non-contiguous taskadaptive block retention. More aggressive TaskSparse22 and TaskSparse20 configurations reduced parameters by 31.20% and 37.43%, respectively, but incurred additional validation loss. Figure 4 visualizes the screening frontier. Importantly, the screening accuracies are not directly compared with the final test accuracies because they were obtained with a reduced screening protocol. Their purpose was model selection under equal candidate conditions.
Three independent seeds are reported as mean±SD. Stratified bootstrap confidence intervals are estimated from frozen test predictions using B = 2000 resamples: (32)
Because aligned prediction vectors are not available for every baseline, marginal confidence intervals are not used as a substitute for a paired superiority test. Small accuracy differences are therefore described as comparable/slightly higher performance, whereas parameter and FLOP reductions are reported as deterministic architectural differences.
3.14
68
350
Statistical analysis
B CI95 (m) = Q0.025 {mb }B b=1 , Q0.975 {mb }b=1 .
TaskSparse24 TaskSparse22 Depth24
70
58
c∈R
3.13
Depth32
72
Implementation details
Experiments were implemented in Python 3.11 with PyTorch and the timm model library. Foundation models were used as pretrained encoders; mixed-precision feature extraction was enabled on CUDA where supported. The reported development system used an NVIDIA GeForce RTX 5060 Ti GPU. Structural screening used a reduced validation protocol to avoid repeatedly executing all 12 patches for every candidate, whereas the locked winner was re-evaluated under the full 12-patch protocol. The final single-head task model used four taps, 256dimensional tap projections, dropout 0.18, up to 130 training epochs, early stopping with patience 18, AdamW with learning rate 7 × 10−4 and weight decay 2 × 10−4 , gradient clipping at 5, and three seeds (42, 123, 2026). The task-head batch size was 384 on cached image-level representations. Temperature scaling used LBFGS on the validation logits. The final runtime profile of the compressed model was 31.85±1.21 ms per image on the development GPU, corresponding to 31.40 images/s under the measured profiling configuration.
4.2
Token-pruning ablation
Token-retention results are shown in Table 5, and the corresponding validation trend is visualized in Fig. 5. For TaskSparse24, retaining 85% of patch tokens increased validation accuracy from 69.79% to 70.39% while reducing analytical FLOPs from 255.19G to 237.71G. Retaining 70% produced the strongest validation score (71.60%) and further reduced compute to 220.40G, a 35.20% reduction relative to full Virchow2. The same 70% ratio was less effective for TaskSparse22, indicating an interaction between structural depth and token sparsity rather than a universal benefit from dropping tokens. The validation results indicate that moderate adaptive token pruning can improve the accuracy–compute operating point after stable early representations have formed. This behavior is 10
Table 3: Method-level comparison of the evaluated foundation-model strategies. A checkmark indicates that the property is explicitly present in the evaluated system. Method
Physical compression
Adaptive token pruning
Multi-depth recovery
Reliability analysis
Frozen external test
– – – – – ✓
– – – – – ✓
– – – – ✓ ✓
– – – – partial ✓
✓ ✓ ✓ ✓ ✓ ✓
Hibou-B CONCH Virchow2 UNI2-h StaticTriFusion / DenseTriGate TAP-Path
Token-retention ablation
Table 4: Structural validation screen. Values are used only for architecture selection and are not the final 12-patch test performance. Acc. (%)
BA (%)
Params (M)
FLOPs (G)
Depth32 Depth28 Depth24 TaskSparse24 TaskSparse22 TaskSparse20
72.96 70.39 68.28 69.79 69.18 66.47
73.08 70.31 68.38 69.84 69.30 66.50
631.24 552.47 473.70 473.70 434.32 394.94
340.13 297.66 255.19 255.19 233.96 212.73
Screening validation accuracy (%)
Candidate
TaskSparse24 TaskSparse24 TaskSparse24 TaskSparse22 TaskSparse22 TaskSparse22
Tokens (%)
Acc. (%)
BA (%)
FLOPs (G)
100 85 70 100 85 70
69.79 70.39 71.60 69.18 68.73 67.98
69.84 70.42 71.64 69.30 68.56 67.97
255.19 237.71 220.40 233.96 218.07 202.33
70.5 70.0 69.5 69.0 68.5 70
75
80 85 90 Retained patch tokens (%)
95
100
Figure 5: Token-retention ablation after structural selection. The 70% TaskSparse24 configuration provides the best validation accuracy with the lowest compute among the displayed TaskSparse24 settings.
tains approximately 631–632M encoder parameters, whereas the physically compressed encoder contains 473.70M, corresponding to a 24.96% reduction. Including the task head, the deployed TAP-Path configuration contains 479.40M parameters, and analytical encoder FLOPs decrease from 340.13G to 220.40G (35.20%). Relative to UNI2-h, TAP-Path also operates with substantially fewer parameters and analytical FLOPs while achieving comparable or higher predictive performance. Hibou-B and CONCH occupy a lower-compute regime, whereas TAP-Path defines a favorable operating point within the high-performing large-foundation-model regime. Table 7 places the high-compute fusion experiments beside the single-backbone systems. These experiments show that comparable discrimination can also be obtained through multi-foundation-model fusion, but at substantially greater deployment-scale parameter and compute requirements. In contrast, TAP-Path achieves its operating point with a single physically compressed backbone. The Pareto view is clearer in Figs. 6 and 7. The corrected high-compute fusion references are included in both plots: Virchow2+StaticTriFusion reaches 87.43% accuracy and UNI2h+DenseTriGate reaches 87.91%, whereas TAP-Path reaches 87.98%. Including the high-compute fusion references further illustrates the resulting Pareto trade-off. TAP-Path achieves
consistent with removal of redundant or weakly aligned token content and motivates joint selection of structural depth and token retention under the validation protocol.
4.3
71.0
68.0
Table 5: Token-retention ablation for the locked structural candidates. Structure
TaskSparse22 TaskSparse24
71.5
Foundation-model comparison
Table 6 presents the central same-task comparison. The proposed single-head TAP-Path configuration achieved 87.98 ± 0.067% test accuracy across three seeds, compared with 86.89% for full Virchow2 and 87.67% for UNI2-h. The corresponding macro-F1 was 82.38±0.48%, compared with 80.94% for Virchow2 and 81.75% for UNI2-h, while balanced accuracy reached 81.26 ± 0.49%. These results place TAP-Path at the highest observed accuracy and macro-F1 among the evaluated single-backbone systems while substantially reducing the computational footprint of the large-model parent. Because paired baseline prediction files were unavailable, the comparison is reported as an observed performance difference without a paired significance test. The efficiency gains are substantial. Full Virchow2 con11
Table 6: Direct same-task comparison on the 32-class internal test set. TAP-Path values are mean±SD over three independently trained single heads. Arrows indicate preferred direction. Analytical FLOPs refer to the encoder and are used for relative efficiency comparison. Model Hibou-B CONCH Virchow2 UNI2-h TAP-Path (ours)
Params (M) ↓
FLOPs (G) ↓
Accuracy (%) ↑
BA (%) ↑
Macro-F1 (%) ↑
External Acc. (%) ↑
85.7 90.0 632.0 681.0 479.40
46.32 35.13 340.13 450.97 220.40
82.67 81.43 86.89 87.67 87.98±0.067
75.17 76.39 80.52 81.12 81.26±0.49
76.33 76.11 80.94 81.75 82.38±0.48
91.53 85.76 90.76 90.07 91.22±0.83
External accuracy is reported alongside the internal metrics to characterize transfer behavior across model scales; Hibou-B attains the highest raw accuracy on the two-class CPTAC cohort, while TAP-Path provides the strongest joint internal accuracy–efficiency operating point among the high-capacity systems.
Table 7: Broader experimental context including high-compute fusion references. Fusion parameter/FLOP values approximate the simultaneously deployed foundation encoders and therefore indicate deployment scale rather than trainable task-head size. System Virchow2 UNI2-h Virchow2+StaticTriFusion UNI2-h+DenseTriGate TAP-Path
Params (M)
FLOPs (G)
Accuracy (%)
Macro-F1 (%)
632.0 681.0 ∼808 ∼857 479.40
340.1 451.0 ∼421.6 ∼532.4 220.4
86.89 87.67 87.43 87.91 87.98
80.94 81.75 81.78 82.68 82.38
Accuracy-parameter trade-off
4.4
88
Internal test accuracy (%)
86 85 84 83 82 100
200
300
400 500 600 700 Deployed parameters (M) Hibou-B V2-StaticTri CONCH UNI-DenseTri Virchow2 TAP-Path UNI2-h
800
Full single backbone Full single backbone Three-FM fusion Three-FM fusion Compressed single backbone
Reliability analysis
Reliability is organized into three complementary questions. First, are predicted probabilities well behaved? This is assessed with ECE, NLL, and Brier score. Second, does confidence identify likely mistakes? This is assessed with failuredetection AUROC and selective risk–coverage. Third, does performance remain acceptable for low-frequency classes? This is assessed with rare-class balanced accuracy and classwise F1. Table 8 and Figs. 8–9 report these three views jointly. For the primary three-seed TAP-Path task head, ECE is 0.0301 ± 0.0022, NLL is 0.4694 ± 0.0015, Brier score is 0.1800 ± 0.0005, and failure-detection AUROC is 0.9047 ± 0.0060. These measurements indicate that TAP-Path maintains informative confidence estimates despite structural and token pruning. In particular, its Brier score and failuredetection AUROC improve over the full Virchow2 baseline, whereas UNI2-h remains marginally better in ECE and NLL. The reliability claim is therefore based on the joint behavior of several metrics rather than on a single calibration statistic. Rare-class sensitivity is evaluated on the same compressed encoder using the validation-selected rare-aware objective. This operating point achieves rare-class balanced accuracy 0.6864 ± 0.0216 and balanced accuracy 0.8229 ± 0.0038. We report that value in the reliability comparison because it is the dedicated minority-sensitive operating point of TAP-Path; the remaining TAP-Path entries in Table 8 are the primary threeseed reliability results. This distinction avoids understating the model’s validated rare-class capability while retaining the provenance of each metric. Figure 8 provides a direct visual comparison of the reliability profile, while Fig. 9 evaluates whether confidence can support selective prediction. At 60% internal coverage, TAP-Path re-
87
81
Deployment regime
900
Figure 6: Accuracy–parameter trade-off. Each operating point is labeled directly with model name and test accuracy; light guide lines preserve point–annotation correspondence.
87.98% accuracy using 479.40M deployed parameters and 220.40G analytical encoder FLOPs, while the fusion systems require substantially greater deployment-scale parameters and compute for similar predictive performance. 12
Reliability and rare-class profile
Accuracy-compute trade-off
Virchow2 UNI2-h TAP-Path
88
0.8
86
Metric value
Internal test accuracy (%)
87
85 84 83
0.6 0.4 0.2
82
0.0
81
100
200 300 400 Analytical encoder FLOPs (G) Hibou-B V2-StaticTri CONCH UNI-DenseTri Virchow2 TAP-Path UNI2-h
A
Rare B
TAP-Path selective risk-coverage 10
Brier ↓
Fail-AUROC ↑
Rare BA ↑
0.0368 0.0297 0.0301±.0022
0.1882 0.1825 0.1800±.0005
0.8920 0.8920 0.9047±.0060
0.6996 0.6931 0.6864±.0216
Selective risk (%)
ECE ↓
CPTAC Internal
12
Table 8: Reliability comparison for the large-model baselines and TAP-Path. TAP-Path ECE, Brier, and failure AUROC and Rare BA are the primary three-seed values at the operating point on the same compressed encoder.
Virchow2 UNI2-h TAP-Path
OC
AUR Failure
Figure 8: Reliability and rare-class profile of TAP-Path relative to full Virchow2 and UNI2-h. Lower ECE/Brier and higher failure AUROC/Rare BA are preferred.
Figure 7: Accuracy–compute trade-off. Direct annotations connect each model and test accuracy to its analytical encoder FLOP requirement.
Model
Brier
ECE
500
8 6 4 2
tains approximately 99.2% selective accuracy, and risk rises gradually as progressively less-confident cases are accepted. This monotonic behavior is consistent with a useful abstention signal: the model’s low-confidence subset is enriched for errors.
4.5
60
65
70
75 80 85 Coverage (%)
90
95
100
Figure 9: Selective risk–coverage behavior for TAP-Path on the locked internal and external evaluations.
Rare-class analysis achieved the highest validation accuracy (90.25%) among the tested objectives while raising rare-class BA from 67.39% for the mild-CE baseline to 69.68%. The validation trade-off is shown in Fig. 10, and classlevel behavior is summarized in Fig. 11. When the selected logit-adjusted head was repeated across three seeds on the locked compressed encoder, test rare-class BA increased to 68.64 ± 2.16%, balanced accuracy to 82.29 ± 0.38%, while accuracy decreased to 87.13 ± 0.68%. The comparison demonstrates a controllable operating trade-off within the same compressed encoder: rare-aware optimization increases minorityclass sensitivity while shifting the balance among aggregate accuracy, balanced accuracy, and macro-F1. Figure 11 further shows that the overall score is supported by strong discrimination in several well-represented classes: prostate adenocarcinoma reaches F1=0.996, testicular germ-cell tumors F1=0.986,
Following the reliability comparison in Table 8. Rare-class behavior was further examined under alternative optimization objectives while keeping the compressed TAP-Path encoder fixed. The primary calibrated configuration is denoted by P, whereas the validation-selected rare-aware configuration is denoted by R. This separation allows the effect of the taskhead objective on minority-class sensitivity to be evaluated independently of structural compression. The rare-aware objectives are therefore reported within the unified ablation analysis in Table 9, preserving the distinction between the primary operating point and alternative minoritysensitive objectives. Instead, Table 9 integrates the rare-aware objectives into the full ablation narrative alongside structural and token choices. On validation data, Balanced Softmax produced the highest rare-class balanced accuracy (70.55%) but reduced overall accuracy. Logit adjustment with τ = 1.0 13
Rare-aware objective trade-off
claim. The result supports frozen transfer across these two morphologies, not universal 32-class external generalization. Frozen external evaluation was performed on 433 CPTAC images after the internal architecture and task protocol were locked. Across three single-head seeds, TAP-Path achieved 91.22 ± 0.83% accuracy and 91.10 ± 0.81% balanced accuracy. External ECE was 0.0323 ± 0.0086 and failure-detection AUROC was 0.8974 ± 0.0089. These values indicate that the compressed representation remained useful outside the internal data source. The external task is simpler in class cardinality than the internal 32-class benchmark, so its higher raw accuracy should not be interpreted as evidence that CPTAC is “harder” or that generalization improves with domain shift. Instead, the correct interpretation is that the locked model transferred successfully to the two externally represented classes. Among the retained baselines, Hibou-B obtained a slightly higher external accuracy (91.53%), while TAP-Path exceeded Virchow2 and UNI2-h. The external experiment therefore provides evidence of transfer robustness for the two represented classes.
LA-tau1.0
Validation accuracy (%)
90.0
MildCELA-tau0.5
89.5
BalancedSoftmax
89.0 88.5 88.0 87.5
CBFocal_gamma1.5 67.5
68.0 68.5 69.0 69.5 70.0 Validation rare-class balanced accuracy (%)
70.5
Figure 10: Validation trade-off between overall accuracy and rare-class balanced accuracy for alternative task-head objectives on the fixed TAP-Path encoder. thyroid carcinoma F1=0.986, kidney renal clear-cell carcinoma F1=0.963, and lower-grade glioma F1=0.961. The most difficult classes include rectum adenocarcinoma (F1=0.174), mesothelioma (0.378), esophageal carcinoma (0.439), and cholangiocarcinoma (0.552). The normalized confusion matrix confirms that errors are concentrated in a limited subset of class pairs rather than being uniformly distributed across the 32-class taxonomy. This heterogeneity motivates reporting macro-F1 and rare-class BA alongside top-1 accuracy. The primary paper result therefore remains the single-head mildCE configuration in Table 6, with the rare-aware result used to explain the robustness/imbalance behavior of the architecture.
4.6
4.7
As shown in Fig. 13, PCA is used as a descriptive visualization of the locked compressed representation, not as a training signal. For standardized image-level feature matrix Z, the kth component is wk = arg
External validation is reported as two distinct disease cohorts. CPTAC-CCRCC contains 209 independent tumor cases mapped to the internal kidney renal clear-cell carcinoma class, and CPTAC-UCEC contains 224 independent tumor cases mapped to uterine corpus endometrial carcinoma. No CPTAC image or label is used for architecture selection, head optimization, calibration, or threshold tuning. Across the three primary single-head seeds, TAP-Path achieves 87.40±0.28% accuracy on CCRCC and 94.79±1.44% on UCEC. Pooled over 433 cases, accuracy is 91.22±0.83% and present-class balanced accuracy is 91.10±0.81%. Because each cohort corresponds to one mapped target class, cohortspecific recalls/accuracies can be recovered exactly from each frozen seed using aC + aU , 2 209aC + 224aU Accext = . 433
max
∥w∥2 =1, w⊥w<k
Var(Zw).
(35)
The projection in Fig. 13 shows that broad class-dependent structure remains visible after depth and token reduction, although substantial overlap is expected for a 32-class pan-cancer task.
External validation
BAext =
Representation analysis
4.8
Deployment efficiency
The final compressed encoder has 473.70M parameters and the single task head has 5.70M, giving 479.40M deployed parameters. Analytical encoder compute is 220.40G FLOPs. An independent profiler supported approximately 213.98G FLOPs for the measured execution path. On the NVIDIA GeForce RTX 5060 Ti development system, mean inference latency was 31.85 ms with 1.21 ms standard deviation, corresponding to 31.40 images/s. These numbers are hardware-specific and should not be generalized to clinical scanners or server deployments, but they confirm that the structural and token changes translate into an executable compressed model rather than only theoretical masking.
(33) (34)
4.9
Table 10 reports the cohort-specific values and Fig. 12 contrasts internal and external behavior. The cohort difference is meaningful: UCEC transfers more strongly than CCRCC under the locked model, demonstrating why external performance should not be collapsed into a single unqualified robustness
Bootstrap uncertainty
Figure 14 summarizes the resulting uncertainty. The 2,000resample stratified bootstrap gives approximate 95% intervals of 0.870–0.889 for accuracy, 0.793–0.831 for balanced accuracy, 0.805–0.839 for macro-F1, 0.568–0.698 for rare-class balanced accuracy, and 0.018–0.032 for ECE. The wider rare-class 14
Table 9: Unified ablation study. The table intentionally combines structural, token, and rare-aware objective experiments rather than creating a separate headline table for the rare-aware operating point. Screening values are validation-only and should not be compared directly with final 12-patch test results. Component
Variant
Acc. (%)
BA (%)
Macro-F1 (%)
Rare BA (%)
FLOPs (G)
Structure
Depth32 Depth24 TaskSparse22 TaskSparse24
72.96 68.28 69.18 69.79
73.08 68.38 69.30 69.84
71.67 67.30 68.01 68.54
– – – –
340.13 255.19 233.96 255.19
Token ratio
100% 85% 70%
69.79 70.39 71.60
69.84 70.42 71.64
68.54 69.10 70.32
– – –
255.19 237.71 220.40
Loss (validation)
Mild CE Balanced Softmax Logit adjustment τ = .5 Logit adjustment τ = 1 CB focal γ = 1.5
89.99 89.19 89.94 90.25 87.35
82.82 83.17 83.04 83.84 81.27
84.47 81.51 84.24 83.22 81.76
67.39 70.55 67.74 69.68 68.33
220.40 220.40 220.40 220.40 220.40
Rare-aware 3-seed test
selected τ = 1 head
87.13±.68
82.29±.38
80.74±.65
68.64±2.16
220.40
Table 10: Frozen TAP-Path validation on the two external CPTAC cohorts. Values are mean±SD across the three primary single-head seeds. Cohort
Cases
Accuracy (%)
CPTAC-CCRCC CPTAC-UCEC
209 224
87.40±0.28 94.79±1.44
Pooled CPTAC Present-class BA
433 433
91.22±0.83 91.10±0.81
5.2
The structural compression results demonstrate that TAP-Path establishes a favorable accuracy–efficiency operating point derived directly from a high-capacity pathology foundation model. Relative to the full Virchow2 backbone, TAP-Path removes approximately one quarter of the encoder parameters and more than one third of the analytical encoder FLOPs while maintaining strong predictive performance. Importantly, this reduction is achieved through task-adaptive physical reconstruction of the encoder rather than through masking or freezing redundant components. The resulting architecture therefore preserves the representational advantages of largescale pathology pretraining while reducing the computational burden associated with downstream inference. The concurrent improvements in test accuracy and macro-F1 further indicate that the removed structural components are not essential for the target classification task and that task-adaptive compression can produce a more efficient downstream representation without sacrificing predictive utility. This property distinguishes TAP-Path from parameterefficient fine-tuning approaches. Adapter- and prompt-based methods can substantially reduce the number of parameters updated during task adaptation, and approaches such as PAMT demonstrate the effectiveness of this strategy in computational pathology [30]. However, these methods primarily reduce optimization cost while retaining most of the pretrained backbone for inference. In contrast, TAP-Path directly reconstructs a smaller executable encoder by removing task-redundant transformer blocks, thereby reducing both deployed parameter count and analytical inference cost. This distinction is particularly relevant for pathology applications in which large numbers of image regions may need to be processed repeatedly and inference efficiency becomes an important deployment consideration. Knowledge-distillation approaches provide another complementary route toward model compression. Methods such as
interval reflects the smaller effective support of low-frequency classes.
5
Discussion
5.1
Whole-slide efficiency
The reported FLOP reduction is measured per encoder invocation, but digital pathology multiplies this saving across patch bags. Although the present experiments evaluate fixed imagelevel patch bags rather than end-to-end WSI inference, the per-patch analytical FLOP reduction can be extrapolated to illustrate potential whole-slide computational savings. If a WSI contributes NWSI encoded patches, Φslide ≈ NWSI Φpatch .
Structural compression rationale
(36)
For 10,000 encoded patches, reducing analytical cost from 340.13G to 220.40G FLOPs corresponds to roughly 1.20×1015 fewer floating-point operations before downstream aggregation. This is a theoretical compute estimate rather than a latency guarantee, yet it illustrates why a 35.20% per-patch reduction is meaningful at WSI scale. 15
Cancer class
TAP-Path class-wise F1 Prostate adenocarcinoma Testicular Germ Cell Tum Thyroid carcinoma Kidney renal clear cell Brain Lower Grade Glioma Glioblastoma multiforme Pheochromocytoma and Par Thymoma Sarcoma Breast invasive carcinom Liver hepatocellular car Uveal Melanoma Pancreatic adenocarcinom Kidney renal papillary c Ovarian serous cystadeno Lung adenocarcinoma Adrenocortical carcinoma Head and Neck squamous c Bladder Urothelial Carci Uterine Corpus Endometri Skin Cutaneous Melanoma Stomach adenocarcinoma Kidney Chromophobe Uterine Carcinosarcoma Lung squamous cell carci Cervical squamous cell c Lymphoid Neoplasm Diffus Colon adenocarcinoma Cholangiocarcinoma Esophageal carcinoma Mesothelioma Rectum adenocarcinoma 0
20
40
F1 score (%)
60
80
100
(a) Per-class F1. Rare classes are highlighted with the contrasting bar color.
(b) Row-normalized 32-class confusion matrix.
Figure 11: Class-level evaluation of TAP-Path on the locked internal test set. The balanced panel layout combines class-wise F1 and normalized confusion behavior to expose performance heterogeneity that is not visible from aggregate accuracy alone.
Frozen external validation 96
94.79%
94 Accuracy (%)
92
91.22%
90 88
87.40%
86 84 82
CPTAC-CCRCC
CPTAC-UCEC
Pooled CPTAC
Figure 12: Frozen external validation of TAP-Path on CPTACCCRCC and CPTAC-UCEC.
Figure 13: PCA of held-out TAP-Path image-level representations.
SUDA transfer knowledge from a larger teacher into a compact student architecture [16], enabling substantial reductions in model size through an additional teacher–student optimization stage. TAP-Path addresses a different compression objective: rather than replacing the pretrained foundation model with a separately trained student, it identifies and preserves the task-relevant structure within the pretrained model itself. Consequently, structural pruning, parameter-efficient adaptation, and knowledge distillation represent complementary strategies operating at different stages of the model lifecycle. Their combination provides a promising direction for future work, particularly through hybrid pruning–distillation frameworks that first remove task-redundant structure and subsequently transfer the retained knowledge into an even smaller deploy-
ment model.
5.3
Non-contiguous depth selection
The structural screen provides evidence that depth alone is not an adequate proxy for task relevance. At equal 24-block parameter count, TaskSparse24 outperformed contiguous Depth24 during validation screening. The result suggests that useful transformations are distributed non-uniformly through the pretrained hierarchy and that preserving selected late/middle blocks can recover information lost by naive truncation. This is consistent with the broad observation that pretrained transformer representations change qualitatively across depth. We deliberately anchored early and final blocks. The early 16
Stratified bootstrap 95% confidence intervals
compared large-model configurations, while ECE and NLL remained close to UNI2-h. A failure-detection AUROC of approximately 0.90 indicates effective ranking of incorrect predictions toward lower confidence, supporting confidenceguided selective review. Clinical operating thresholds and safety characteristics require prospective, workflow-specific evaluation beyond these statistical reliability measures. Rare-class analysis further characterizes how the optimization objective changes model behavior. The primary objective favors aggregate predictive performance, whereas the rareaware head increases rare-class balanced accuracy with a corresponding shift in overall accuracy. Reporting the two operating points separately provides a direct view of the accuracy– minority-sensitivity trade-off and preserves the metric provenance of each configuration.
ECE Rare BA Macro-F1 Balanced accuracy Accuracy 0
20
40 60 Metric value (%)
80
Figure 14: Stratified 95% bootstrap confidence intervals for the locked TAP-Path test evaluation.
5.6 anchor protects low-level patch/token formation, while the late anchor preserves semantic consolidation close to the original pretrained output. The middle selection is then allowed to adapt. Although the novelty score in Eq. (7) is simple, its practical advantage is that it is model-internal, label-efficient for profiling, and compatible with physical block removal. A limitation is that normalized residual change is not a causal attribution score; a block can have a small residual magnitude yet still be important through subtle feature refinement. Future work could compare the current score with gradient- or Hessian-based block saliency.
5.4
Independent evaluation is increasingly considered essential for pathology foundation models [9, 11, 27]. The CPTAC results show that TAP-Path maintains high accuracy and balanced accuracy after freezing the internal configuration. The difference in class cardinality prevents direct comparison of internal 32-class macro-F1 with an external two-class macro-F1, which is why the manuscript emphasizes present-class balanced accuracy externally. Across the independent CPTAC evaluation, TAP-Path maintained strong transfer performance after the internal configuration was frozen. Hibou-B achieved slightly higher raw CPTAC accuracy, consistent with prior evidence that foundation-model rankings vary across domains and tasks [11, 12]. For the studied 32-class task, the combined internal and external results position TAP-Path as an efficient high-capacity configuration with stable transfer behavior under the evaluated CPTAC cohorts.
Token-retention behavior
The token ablation is particularly useful because the selected 70% ratio simultaneously improved screening validation accuracy and reduced compute for TaskSparse24. One plausible interpretation is that class-token similarity plus magnitude suppresses redundant or weakly aligned patches after sufficient hierarchical processing. Similar motivations underlie task-aware token pruning in generic vision transformers [17, 19]. However, this effect was not universal: TaskSparse22 degraded as tokens were removed. Token sparsity therefore interacts with representational depth and should be selected jointly rather than treated as an independent compression knob. In pathology, this interaction deserves caution. Small discriminative regions can be clinically meaningful, so a high compression ratio could remove uncommon morphology. Our 70% setting was chosen by a validation Pareto rule and was not tuned on the test set. Moreover, rare-class behavior was evaluated explicitly. These safeguards reduce but do not eliminate the risk of token-pruning bias.
5.5
External transfer
5.7
Relation to efficient pathology methods
Recent pathology-efficiency studies provide important context for this work. SUDA achieves aggressive compression by transferring knowledge from a large teacher to a compact student [16], whereas PAMT reduces downstream computational requirements through representative patch selection and lightweight adaptation of frozen representations [30]. Other studies have explored resource-efficient architectures and accuracy–complexity trade-offs for histopathology analysis [15, 10]. Despite these advances, efficiency is commonly achieved through student-model distillation, input-level reduction, lightweight adaptation, or architectures specifically designed for efficient inference. TAP-Path addresses a complementary setting: task-adaptive compression of an already pretrained pathology foundation model. Rather than pretraining a new foundation model, distilling a separate student, or retaining the complete parent architecture, TAP-Path restructures the pretrained parent for the downstream task by preserving task-relevant depth, reducing redundant token computation, and recovering complementary intermediate representations
Reliability interpretation
The reliability analysis shows that the compressed model preserves informative probabilistic behavior alongside its efficiency gains. The single-head TAP-Path achieved the best Brier score and failure-detection AUROC among the directly 17
within a single compressed inference pathway. Accordingly, TAP-Path is evaluated through a joint accuracy–efficiency–reliability perspective that integrates predictive performance with computational cost and probabilistic behavior. The proposed framework preserves competitive predictive performance relative to substantially larger pathology foundation models while reducing both model size and computational demand. This efficiency is evaluated together with three-seed reproducibility, probability calibration, failureawareness analysis, and frozen external validation. Collectively, these evaluations examine whether a pretrained pathology foundation model can be structurally compressed for a specific downstream task while retaining predictive performance, computational efficiency, and informative confidence behavior.
6
ogy foundation model into a more efficient task-specific encoder without knowledge distillation. Starting from Virchow2, the method profiles task-relevant block novelty, physically retains 24 of 32 transformer blocks, adaptively preserves 70% of patch tokens after the pruning point, and recovers multidepth information through a gated single task head. The resulting encoder reduces parameters by 24.96% and analytical FLOPs by 35.20%. Across three independent single-head runs, TAP-Path achieves 87.98±0.067% internal test accuracy and 82.38±0.48% macro-F1, matching or slightly exceeding much larger Virchow2 and UNI2-h baselines on the studied task. The compressed model also preserves useful probabilistic behavior, including a Brier score of 0.1800 and failure-detection AUROC of 0.9047, while frozen CPTAC evaluation reaches 91.22±0.83% accuracy. The results support a practical conclusion: scaling pathology foundation models and compressing them for deployment are not mutually exclusive. A large pretrained hierarchy can contain downstream-task redundancy that is removable through validation-constrained structural and token sparsification. At the same time, compression should be evaluated beyond topline accuracy. Explicit reporting of calibration, error awareness, rare-class trade-offs, and independent external behavior is important for assessing whether the resulting efficiency gain remains suitable for trustworthy medical-AI research.
Limitations
Several directions remain for extending the present evaluation. First, TAP-Path contains 479.40M deployed parameters, placing it between compact encoders such as Hibou-B/CONCH and larger Virchow2/UNI2-h systems. Further compression could target lower-resource deployment settings. Second, analytical FLOPs provide a reproducible architecture-level efficiency measure, while end-to-end deployment also depends on hardware, energy consumption, WSI throughput, slide loading, tissue detection, patch extraction, and storage I/O. The measured 31.85 ms image-level latency therefore characterizes the evaluated hardware configuration and motivates broader systems-level benchmarking. Third, the current external evaluation covers CCRCC and UCEC, providing an independent transfer assessment for two classes represented in the internal taxonomy. Extending this protocol to additional cancer types, scanners, and institutions would enable broader pan-cancer robustness analysis. Fourth, the primary objective prioritizes aggregate performance, while the rare-aware analysis demonstrates that minority-class sensitivity can be increased within the same compressed encoder. This motivates future structural-selection criteria that incorporate class-frequency or minority-utility information directly during compression. Fifth, the block-novelty score quantifies normalized representational change and serves as a computationally efficient task-selection criterion. Future work can compare this criterion with gradient-, Hessian-, or attribution-based structural importance measures and examine how retained-block patterns transfer across endpoints. Finally, the present reliability analysis is statistical and model-centered; prospective clinical evaluation, reader studies, workflow-specific decision thresholds, and formal safety assessment are natural next steps for establishing clinical utility.
Data Availability The histopathology data analyzed in this study were derived from publicly available resources from The Cancer Genome Atlas (TCGA) [32] and the Clinical Proteomic Tumor Analysis Consortium (CPTAC) [33, 34]. TCGA data are accessible through the NCI Genomic Data Commons, while the corresponding CPTAC resources are available through NCIsupported data repositories. No external evaluation data were used for architecture selection or model optimization.
A
Reproducibility details
A.1
Primary training configuration
A.2
Experimental provenance
The manuscript separates architecture screening, primary task evaluation, common-probe diagnostics, rare-aware operatingpoint analysis, and external validation. Metrics are not silently transferred between these protocols. This distinction is essential because the common-probe analysis answers a representation-quality question, whereas the original TAP-Path task head defines the proposed deployed system.
References 7
Conclusion
[1]
We presented TAP-Path, a task-adaptive structural and token pruning framework for converting a large pretrained pathol18
R. J. Chen, T. Ding, M. Y. Lu, et al. “Towards a generalpurpose foundation model for computational pathology”.
Table 11: Primary training configuration. Setting
Value
Parent foundation model Retained blocks Patch-token retention Multi-depth taps Tap projection Dropout Optimizer Learning rate Weight decay Batch size Maximum epochs Early stopping Gradient clip Label smoothing Seeds Calibration
Virchow2 24/32 70% 4 256 0.18 AdamW 7 × 10−4 2 × 10−4 384 130 18 epochs 5 0.01 42, 123, 2026 validation-only temperature scaling
[10] J. Lee, J. Lim, K. Byeon, and J. T. Kwak. “Benchmarking pathology foundation models: Adaptation strategies and scenarios”. In: Computers in Biology and Medicine 190 (2025), p. 110031. DOI: 10.1016/j. compbiomed.2025.110031. [11] P. Neidlinger, O. S. M. El Nahhas, H. S. Muti, et al. “Benchmarking foundation models as feature extractors for weakly supervised computational pathology”. In: Nature Biomedical Engineering 10 (2026). Published online 2025, pp. 1113–1123. DOI: 10.1038/s41551025-01516-3. [12] R. Bareja et al. “A benchmark study of vision and pathology foundation models for computational pathology”. In: Nature Communications (2026). DOI: 10.1038/ s41467-026-76004-6.
In: Nature Medicine 30 (2024), pp. 850–862. DOI: 10. 1038/s41591-024-02857-3. [2]
M. Y. Lu, B. Chen, D. F. K. Williamson, et al. “A visuallanguage foundation model for computational pathology”. In: Nature Medicine 30 (2024), pp. 863–874. DOI: 10.1038/s41591-024-02856-4.
[3]
E. Vorontsov, A. Bozkurt, A. Casson, et al. “A foundation model for clinical-grade computational pathology and rare cancers detection”. In: Nature Medicine 30 (2024), pp. 2924–2935. DOI: 10 . 1038 / s41591 024-03141-0.
[4]
H. Xu, N. Usuyama, J. Bagga, et al. “A whole-slide foundation model for digital pathology from real-world data”. In: Nature 630 (2024), pp. 181–188. DOI: 10. 1038/s41586-024-07441-w.
[5]
X. Wang, J. Zhao, E. Marostica, et al. “A pathology foundation model for cancer diagnosis and prognosis prediction”. In: Nature 634 (2024), pp. 970–978. DOI: 10.1038/s41586-024-07894-z.
[6]
D. Nechaev, A. Pchelnikov, and E. Ivanova. “Hibou: A Family of Foundational Vision Transformers for Pathology”. In: arXiv preprint arXiv:2406.05074 (2024).
[7]
J. Ma, Z. Guo, F. Zhou, et al. “A generalizable pathology foundation model using a unified knowledge distillation pretraining framework”. In: Nature Biomedical Engineering 10 (2026). Published online 2025, pp. 545–564. DOI: 10.1038/s41551-025-01488-4.
[8]
[9]
[13] Kuang et al. “LW-CTrans: A lightweight hybrid network of CNN and Transformer for 3D medical image segmentation”. In: Medical Image Analysis 102 (2025), p. 103545. DOI: 10.1016/j.media.2025. 103545. [14] J. Silva-Rodriguez et al. “Towards Foundation Models and Few-Shot Parameter-Efficient Fine-Tuning for Volumetric Organ Segmentation”. In: Medical Image Analysis 103, 103596 (2025). DOI: 10.1016/j.media. 2025.103596. [15] M. F. Islam, M. T. Reza, M. A. Manab, et al. “Involutionbased efficient autoencoder for denoising histopathological images with enhanced hybrid feature extraction”. In: Computers in Biology and Medicine 192 (2025), p. 110174. DOI: 10.1016/j.compbiomed.2025. 110174. [16] L. Zhong, K. Qian, W. Zhao, et al. “SUDA: Simultaneous unsupervised knowledge distillation and adaptation of foundation models for efficient pathological image analysis”. In: Medical Image Analysis 113 (2026), p. 104177. DOI: 10.1016/j.media.2026. 104177. [17] Liu et al. “Revisiting Token Pruning for Object Detection and Instance Segmentation”. In: Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision. 2024, pp. 2658–2668. [18] Xu et al. “GTP-ViT: Efficient Vision Transformers via Graph-Based Token Propagation”. In: Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision. 2024, pp. 86–95. [19] Bergner et al. “Token Cropr: Faster ViTs for Quite a Few Tasks”. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2025, pp. 9740–9750.
F. Yan, J. Wu, J. Li, et al. “PathOrchestra: A Comprehensive Foundation Model for Computational Pathology with Over 100 Diverse Clinical-Grade Tasks”. In: arXiv preprint arXiv:2503.24345 (2025).
[20] An et al. “Sparse Structure Exploration and Reoptimization for Vision Transformer”. In: Proceedings of the 41st Conference on Uncertainty in Artificial Intelligence. Vol. 286. PMLR, 2025, pp. 111–131.
G. Campanella, S. Chen, M. Singh, et al. “A clinical benchmark of public self-supervised pathology foundation models”. In: Nature Communications 16 (2025), p. 3640. DOI: 10.1038/s41467-025-58796-1. 19
[21] Marchetti et al. “Efficient token pruning in Vision Transformers using an attention-based Multilayer Network”. In: Expert Systems with Applications 279 (2025), p. 127449. DOI: 10 . 1016 / j . eswa . 2025 . 127449. [22] M. Munir, M. M. Rahman, and R. Marculescu. “AdaptViG: Adaptive Vision GNN with Exponential Decay Gating”. In: arXiv preprint arXiv:2511.09942 (2025).
[32] The Cancer Genome Atlas Research Network et al. “The Cancer Genome Atlas Pan-Cancer analysis project”. In: Nature Genetics 45.10 (2013), pp. 1113–1120. DOI: 10. 1038/ng.2764. [33] D. J. Clark et al. “Integrated Proteogenomic Characterization of Clear Cell Renal Cell Carcinoma”. In: Cell 179.4 (2019), 964–983.e31. DOI: 10.1016/j.cell. 2019.10.007. [34] Y. Dou et al. “Proteogenomic Characterization of Endometrial Carcinoma”. In: Cell 180.4 (2020), 729– 748.e26. DOI: 10.1016/j.cell.2020.01.026.
[23] C. Guo, G. Pleiss, Y. Sun, and K. Q. Weinberger. “On Calibration of Modern Neural Networks”. In: Proceedings of the 34th International Conference on Machine Learning. Vol. 70. PMLR, 2017, pp. 1321–1330. [24] Y. Ovadia, E. Fertig, J. Ren, et al. “Can You Trust Your Model’s Uncertainty? Evaluating Predictive Uncertainty Under Dataset Shift”. In: Advances in Neural Information Processing Systems. Vol. 32. 2019. [25] Y. Geifman and R. El-Yaniv. “SelectiveNet: A Deep Neural Network with an Integrated Reject Option”. In: Proceedings of the 36th International Conference on Machine Learning. Vol. 97. PMLR, 2019, pp. 2151– 2159. [26] Y. Huang, W. Zhao, Z. Zhang, et al. “Knowledge-guided adaptation of pathology foundation models effectively improves cross-domain generalization and demographic fairness”. In: Nature Communications (2025). DOI: 10. 1038/s41467-025-66300-y. [27] J. Komen, E. D. de Jong, J. Hense, et al. “Towards robust foundation models for digital pathology”. In: Nature Communications 17 (2026), p. 5218. DOI: 10.1038/ s41467-026-73923-2. [28] M. Jahanifar, S. E. A. Raza, et al. “Domain Generalization in Computational Pathology: Survey and Guidelines”. In: ACM Computing Surveys 57.11 (2025). DOI: 10.1145/3729524. [29] Z. Yang, T. Wei, Y. Liang, et al. “A foundation model for generalizable cancer diagnosis and survival prediction from histopathological images”. In: Nature Communications 16, 2366 (2025). DOI: 10.1038/s41467025-57587-y. [30] Y. Lin, Z. Zhu, K.-T. Cheng, and H. Chen. “Promptguided foundation model tuning for pathology image classification”. In: Medical Image Analysis 113 (2026), p. 104214. DOI: 10 . 1016 / j . media . 2026 . 104214. [31] S. Boudissa, S. S. Debsarkar, H. Kawanaka, B. J. Aronow, and V. B. S. Prasath. “Vision Transformers for Histopathological Image Classification with Efficient Head Pruning”. In: Procedia Computer Science 270 (2025), pp. 2274–2283. DOI: 10.1016/j.procs. 2025.09.348.
20
Related documents
- CellPath-Bench: A Multidimensional Benchmark for Whole-Slide Cellular Representations in Pathology Foundation Models#662236
- CellPath-Bench: A Multidimensional Benchmark for Whole-Slide Cellular Representations in Pathology Foundation Models#661186
- CellPath-Bench: A Multidimensional Benchmark for Whole-Slide Cellular Representations in Pathology Foundation Models#480112
- MUFASA: An Information Utility-Aware Preprocessing Framework for Reliable Model Reasoning in Computational Pathology#819872
- MUFASA: An Information Utility-Aware Preprocessing Framework for Reliable Model Reasoning in Computational Pathology#809876
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive