Freeing Activation Memory for Task Adaptation of Pathology Foundation Models: Layer-Selective Freezing and Partial Low-Rank Adaptation

Boyu Fan, Neeraj Kumar, Ali Kamali, Swaraj Nanda, Gabriele Campanella, Zachariya Yazdani, Amir Momeni Boroujeni, Ruchika Verma, Siddharth Singi, Jie-Fu Chen, Cem Komurcuoglu, David Kim, Jamal Benhamida, Gregory M. Goldgof, Orly Ardon, Chad VanderbiltOpenReview 2027 · Submission to ICLR 2027 · Withdrawn

Its authors withdrew this paper, so there is no full text to read or summarize.

Abstract

Task Adaptation of Pathology Foundation Models (TAPFM, \citealp{kumar2025tapfm}) showed that a vision-transformer (ViT) pathology foundation model (PFM) and an attention-based multiple instance learning (MIL) aggregator can be jointly fine-tuned on a single GPU by detaching gradients between two separate computational graphs. This makes end-to-end adaptation practical without the multi-GPU clusters used by prior work, but the number of tiles that can be sampled per whole-slide image (WSI) per training step remains small (e.g., 100 tiles for GigaPath), because activation memory for backpropagation through a giant ViT scales with both the number of tiles and the number of transformer blocks. Motivated by the observation in TAPFM that task-adaptation gradients concentrate in the final transformer blocks with negligible updates to earlier layers, we translate this empirical finding into an actionable memory-saving mechanism. We introduce and compare three single-GPU strategies for GigaPath: (i) low-rank adaptation (LoRA) applied to all transformer blocks, which reduces gradient and optimizer-state memory; (ii) freezing all but the last $N$ transformer blocks, which additionally removes the frozen prefix from the autograd graph and eliminates its activation memory; and (iii) a hybrid that freezes all but the last $N$ blocks and applies LoRA only within those unfrozen blocks, combining both memory savings. Empirically, these strategies raise the maximum tiles-per-WSI-per-epoch achievable on a single H200 from TAPFM's original 100 to 300 (LoRA-only), 500 (freeze-last-N only), and 1000 (freeze-last-N + LoRA) with $N \in \{9,11\}$, respectively. We provide a memory-decomposition analysis that explains why LoRA alone does not reduce activation memory while layer freezing does, formalize the hybrid strategy as a generalization of TAPFM's detached dual-gradient update restricted to a block subset, and show across institutional and external cohorts that the proposed configurations retain strong FGFR3 and EGFR mutation-prediction performance while offering task-dependent trade-offs between predictive accuracy and resource efficiency. Our results suggest that removing activation-memory bottlenecks is a viable path toward more scalable and parameter-efficient single-GPU adaptation of large PFMs.
BibTeX
@misc{fan2027freeing,
  author = {Boyu Fan and Neeraj Kumar and Ali Kamali and Swaraj Nanda and Gabriele Campanella and Zachariya Yazdani and Amir Momeni Boroujeni and Ruchika Verma and Siddharth Singi and Jie-Fu Chen and Cem Komurcuoglu and David Kim and Jamal Benhamida and Gregory M. Goldgof and Orly Ardon and Chad Vanderbilt},
  title = {{Freeing Activation Memory for Task Adaptation of Pathology Foundation Models: Layer-Selective Freezing and Partial Low-Rank Adaptation}},
  year = {2027},
  url = {https://openreview.net/forum?id=MfU7S7JqQ6},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2027},
}

Loading related content...

Figure