TAP-Path: Task-Adaptive Structural and Token Pruning for Efficient and Trustworthy Pathology Foundation Models
Abstract
Pathology foundation models improve transferable representation learning for histopathology, but recent gains often rely on encoders with hundreds of millions of parameters and high inference cost. 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 pruning, 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 test accuracy, balanced accuracy, and macro-F1 on a 32-class histopathology benchmark, compared with 86.89% for full Virchow2 and 87.67% for UNI2-h. TAP-Path achieved a Brier score of and failure-detection AUROC of . A validation-only rare-aware objective improved rare-class balanced accuracy in a secondary operating analysis. Frozen external evaluation on 433 CPTAC samples yielded accuracy and balanced accuracy. These results show that task-adaptive structural and token sparsification can improve the accuracy-efficiency trade-off of large pathology foundation models while preserving reliability under internal and external evaluation.
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI
Related papers
STAR-Pro: Stage-Wise Token Adaptive Reduction with Progressive Refinement for Efficient Large Vision-Language Models
Shared title terminologycs.CVYichen Guo, Tinghao Wang, Qizhe Zhang et al.
PURA: Video Token Pruning via Unified Spatiotemporal Redundancy Assessment
Shared title terminologycs.CVYuyao Sun, Hongli Yuan, Shuang Li et al.
Adapting Vision Foundation Models to Acoustics for Pose-Free 3D Sonar Reconstruction
Shared title terminologycs.CVKevin Zhang, Jingxi Chen, Mohamad Qadri et al.
Conserved Immune Topology Improves Pathology Foundation Model Generalization for Cross-Cancer MSI-H Prediction
Shared title terminologycs.CVDasari Naga Raju
FAVE: Foveated Adaptive Visual Encoding for Efficient Fine-Grained Visual Understanding
Shared title terminologycs.CVAmitangshu Mukherjee, Kaushik Roy
Who Speaks for the Pruned? Visual Token Pruning as Coverage Optimization
Shared title terminologycs.CVQingchan Zhu, Weihang You, Hanqi Jiang et al.