Snuffy: Efficient Whole Slide Image Classifier
Hossein Jafarinia, Alireza Alipanah, Danial Hamdi, Saeed Razavi, Nahal Mirzaie, Mohammad Hossein Rohban
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/jafarinia/snuffyOfficialIn paperpytorch★ 54
Abstract
Whole Slide Image (WSI) classification with multiple instance learning (MIL) in digital pathology faces significant computational challenges. Current methods mostly rely on extensive self-supervised learning (SSL) for satisfactory performance, requiring long training periods and considerable computational resources. At the same time, no pre-training affects performance due to domain shifts from natural images to WSIs. We introduce Snuffy architecture, a novel MIL-pooling method based on sparse transformers that mitigates performance loss with limited pre-training and enables continual few-shot pre-training as a competitive option. Our sparsity pattern is tailored for pathology and is theoretically proven to be a universal approximator with the tightest probabilistic sharp bound on the number of layers for sparse transformers, to date. We demonstrate Snuffy's effectiveness on CAMELYON16 and TCGA Lung cancer datasets, achieving superior WSI and patch-level accuracies. The code is available on https://github.com/jafarinia/snuffy.
Tasks
Benchmark Results
| Dataset | Model | Metric | Claimed | Verified | Status |
|---|---|---|---|---|---|
| CAMELYON16 | Snuffy (SimCLR Exhaustive) | AUC | 0.97 | — | Unverified |
| CAMELYON16 | Snuffy (MAE Adapter) | AUC | 0.91 | — | Unverified |
| CAMELYON16 | Snuffy (DINO Exhaustive) | AUC | 0.99 | — | Unverified |
| Elephant | Snuffy | AUC | 0.97 | — | Unverified |
| Musk v1 | Snuffy | ACC | 0.96 | — | Unverified |
| Musk v2 | Snuffy | ACC | 0.79 | — | Unverified |
| TCGA | Snuffy (SimCLR Exhaustive) | ACC | 0.95 | — | Unverified |