arXiv:2608.30420cs.CVAug 2026

Manuscript Offprint

arXiv:2608.30420

Whole-Slide Image Analysis under Realistic Few-Shot Annotation Protocols

Tiffanie Godelaine, Maxime Zanella, Karim El Khoury, Benoit Macq, Christophe De Vleeschouwer

Abstract

Automating the analysis of whole-slide images has high clinical value, since characterizing cancers requires examining them in detail. Such analysis increasingly relies on vision-language models that provide patch-level zero-shot predictions. However, these predictions remain noisy and must be refined with a few annotations. A promising paradigm for this refinement is few-shot transduction. Rather than treating each patch independently, these methods leverage the relations between patches, together with a few annotations, to refine all predictions jointly. However, current transductive methods are evaluated under conditions that overlook key properties of whole-slide images: (i) datasets consist of independent patches extracted from multiple slides, ignoring the complex tissue organization; (ii) datasets are mostly balanced, whereas a single whole-slide image exhibits severe class imbalance, with several classes absent; and (iii) annotations are sampled at random, without reflecting how a pathologist annotates a limited number of regions. To align the transduction paradigm to realistic whole-slide settings, we introduce the following contributions. First, we propose SlideCRF, which adapts conditional random fields for whole-slide images by combining spatial and biological cues while accounting for classes that may be absent from a given slide. Second, we provide a set of realistic annotation protocols, based on spatially localized clicks and scribbles, modeling different pathologist interactions, such as the iterative correction of model errors. Across four datasets, we show that SlideCRF outperforms current transductive methods in macro F1, improving over the zero-shot predictions by +24.2% and +37.5% with one and 16 clicks per present class, respectively.

Keywords: Whole-slide image analysis, conditional random fields, weak annotations, vision-language models

1 Introduction

Accurate analysis of whole-slide images (WSIs) is crucial for cancer diagnosis and staging, enabling pathologists to characterize complex histopathological entities. Automating this pipeline offers substantial clinical value by reducing workload while enhancing diagnostic capabilities [1]. However, given the gigapixel scale of WSIs, they must first be divided into independent, non-overlapping patches to make processing computationally feasible.

To analyze these massive patch collections, recent frameworks have increasingly relied on histology-specific vision-language models (VLMs) [2–4]. Pre-trained on massive histological image-text pairs, these models exhibit strong generalization capabilities that enable patch-level zero-shot (ZS) predictions without requiring prior annotations from pathologists. Yet, despite their promising performance, these initial ZS predictions often remain noisy, still necessitating a limited number of expert annotations for refinement [5].

Manuscript submitted on 29th July 2026.

In histology, the most commonly used approaches to refine these VLM predictions are inductive few-shot methods [6]. These methods typically rely on few annotations to train a lightweight linear classification layer or optimize a small set of adapter parameters on top of a frozen VLM backbone, and generate an independent prediction for each patch [7–9]. In contrast, a second and promising direction involves transductive few-shot methods [10, 11]. Rather than treating each patch independently, these techniques jointly refine all predictions by leveraging both expert annotations and the underlying

Tiffanie Godelaine, Maxime Zanella, Karim El Khoury, Benoît Macq and Christophe De Vleeschouwer are affiliated with the Institute of Information and Communication Technologies, Electronics, and Applied Mathematics (ICTEAM), Université catholique de Louvain (UCLouvain), 1348 Louvain-la-Neuve, Belgium.

Tiffanie Godelaine is supported by MedReSyst as part of the “Wallonia 2021–2027” program, Maxime Zanella is supported by ARIAC by DIGITALWALLONIA4.AI (grant No. 2010235) and Christophe De Vleeschouwer by the Fonds de la Recherche Scientifique (FNRS).

Computational resources have been provided both by the supercomputing facilities of the Université catholique de Louvain (CISM/UCL) and the Consortium des Equipements de Calcul Intensif en Fédération Wallonie Bruxelles (CECI) under convention 2.5020.11 by the Walloon Region and the Fond de la Recherche Scientifique de Belgique (FNRS).

Corresponding e-mail: tiffanie.godelaine@uclouvain.be. Code and data are publicly available at: github.com/tgodelaine/SlideCRF.

relationships between patches [12, 13]. Conditional random fields (CRFs) fit into this paradigm: by modeling pairwise dependencies between patches, they enforce consistency across neighboring predictions while refining all patches at once [14].

Despite their conceptual advantages in modeling patch dependencies, current state-of-the-art transductive methods, such as Histo-TransCLIP [11] and HistoCRF [14], are evaluated under conditions that diverge sharply from realistic clinical settings. This discrepancy manifests in three main ways: (i) standard benchmarks use independent patches pooled from distinct WSIs, discarding the critical spatial context necessary to characterize complex tissue structures; (ii) these benchmarks rely on mostly balanced datasets, overlooking the severe intra-slide class imbalance and frequently absent diagnostic categories inherent to WSIs; and (iii) existing methods assume that expert annotations are sampled randomly across the entire slide. This ignores actual pathological workflows, where clinicians typically annotate a limited number of localized, contiguous regions rather than a sparse, widespread set of patches. Consequently, because existing transductive methods were not designed with these constraints in mind, their performance remains severely limited when evaluated under realistic clinical conditions.

To align transductive learning with realistic clinical settings, we introduce the following key contributions:

  • We propose SlideCRF: a method to refine the patch-level ZS predictions of a WSI using a few expert annotations by modeling the relations between patches with a CRF. To handle the realistic WSI setting, our method integrates spatial and biological relations, recovering finely structured regions while remaining robust to the absence of classes within a slide. As shown in Figure 1, by iteratively annotating a few regions, SlideCRF progressively refines the ZS predictions and recovers the underlying structures of the slide.

  • We provide a set of realistic annotation protocols based on spatially localized clicks and scribbles, rather than widespread annotations, better reflecting how a pathologist interacts with a WSI. To capture realistic human-in-the-loop (HITL) dynamics, these annotations can target representative regions, focus on erroneous regions, or iteratively correct errors. Studying how each protocol affects refinement offers a rigorous baseline to benchmark future progress in interactive digital pathology.

References (43)