SLAM-AGS: Slide-Label Aware Multi-Task Pretraining Using Adaptive Gradient Surgery in Computational Cytology

Marco Acerbis, Swarnadip Chatterjee, Christophe Avenel, Joakim Lindblad
11/18/2025
cs.CV

Official code: Ace95/SLAM-AGS (2 stars, last commit 2026-03-12).

Abstract

Computational cytology faces two major challenges: i) instance-level labels are unreliable and prohibitively costly to obtain, ii) witness rates are extremely low. We propose SLAM-AGS, a Slide-Label-Aware Multitask pretraining framework that jointly optimizes (i) a weakly supervised similarity objective on slide-negative patches and (ii) a self-supervised contrastive objective on slide-positive patches, yielding stronger performance on downstream tasks. To stabilize learning, we apply Adaptive Gradient Surgery to tackle conflicting task gradients and prevent model collapse. We integrate the pretrained encoder into an attention-based Multiple Instance Learning aggregator for bag-level prediction and attention-guided retrieval of the most abnormal instances in a bag. On a publicly available bone-marrow cytology dataset, with simulated witness rates from 10% down to 0.5%, SLAM-AGS improves bag-level F1-Score and Top 400 positive cell retrieval over other pretraining methods, with the largest gains at low witness rates, showing that resolving gradient interference enables stable pretraining and better performance on downstream tasks. To facilitate reproducibility, we share our complete implementation and evaluation framework as open source: https://github.com/Ace95/SLAM-AGS.

View on arXivView PDF

Code Implementations(1)

Ace95/SLAM-AGSOfficial100%

Code for " SLAM-AGS: Slide-Label Aware Multi-Task Pretraining Using Adaptive Gradient Surgery in Computational Cytology"

20PythonNov 4, 20257 months ago

Similar Papers

Cite this paper

@article{acerbis2025slamags,
  title  = {SLAM-AGS: Slide-Label Aware Multi-Task Pretraining Using Adaptive Gradient Surgery in Computational Cytology},
  author = {Marco Acerbis and Swarnadip Chatterjee and Christophe Avenel and Joakim Lindblad},
  year   = {2025},
  eprint = {2511.14639},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.14639v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.14639.svg)](https://codeofpaper.com/paper/2511.14639)

Discussion