arXiv:2609.31028cs.CVSep 2026

Manuscript Offprint

arXiv:2609.31028

Refining Cytology Predictions with Conditional Random Fields

Manon Dausort, Tiffanie Godelaine, Karim El Khoury, Maxime Zanella, Christophe De Vleeschouwer, Benoît Macq

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Vision-language models (VLMs) achieve strong zero-shot (ZS) classification on histology images but do not perform as well on cytology, whose stains and cell morphology differ markedly compared to histology. Conditional random fields (CRFs) can refine noisy VLM predictions by propagating information across patches, but existing CRF frameworks were designed for histopathology and do not transfer to cytology datasets, released as independent patch pools spanning multiple staining protocols. We introduce CytoCRF, which adapts the pairwise terms to cytology by targeting chromatin and cytology-specific staining, and further enrich the neighborhood of each potential term by combining multiple backbones. Across ten cytology datasets, CytoCRF outperforms existing CRF frameworks at every annotation budget, reaching +13.6 percentage points over the best baseline and +33.7 over ZS with only 50 annotations. Combining information from multiple backbones brings further gains, showing that the neighborhood topology matters more than the pairwise potential computed over it.

Index Terms— Cytology Classification, Conditional Random Fields, Vision-Language Models

1. INTRODUCTION

Cytology involves examining under a microscope cells that have been collected through exfoliation or by aspiration from tissue, rather than tissue sections. It offers a minimally invasive alternative to biopsy and histology. Manual review, however, is labour-intensive and subject to inter-observer variability [1], motivating a large body of work on automating patch- or cell-level cytology classification [2].

Recently, histology-oriented vision-language models (VLMs), pretrained on large image-text corpora, have emerged as strong zero-shot (ZS) classifiers: models such as PLIP [3], CONCH [4] and Quilt [5] produce patch-level predictions without any task-specific training. None of them was trained specifically for cytology, and their ZS predictions on cytology images remain noisy: histology VLMs have been shown to perform close to random on ZS cytomorphology tasks [6]. Recent cytology-specific foundation models such as UniCAS [7] close part of this gap through dedicated pretraining, but remain vision-only and offer no ZS classification by their own. Hence, a handful of expert annotations [8, 9] is required, e.g. to fine-tune the foundation model via low-rank adaptation [10]. Transductive methods further improves the predictions by leveraging the latent distribution of all samples, as Histo-TransCLIP [11]. We pursue this training-free, transductive direction and built on a probabilistic graph formulation.

Conditional random fields (CRFs) fit the transductive paradigm naturally as the probabilistic graph capture relations between patches. HistoCRF [12] instantiates it for histology, introducing pairwise terms that both promote label diversity and propagate expert annotations to visually related patches. Building on this, SlideCRF [13] extends this framework to whole-slide images (WSIs), adding a spatial term that leverages the shared coordinates of patches on a single slide, together with biological cues based on texture and H&E color. Neither method, however, has been applied to cytology.

In this work, we thus adapt the CRF-based paradigm to the cytology setting. In practice, no open-source WSI cytology dataset is publicly available; existing datasets are instead released as pools of independent cell images [14–16], with no information relating one patch to another. There is no shared spatial layout to exploit, and no single staining protocol to assume in advance: Papanicolaou, May-Grünwald-Giemsa and H&E all co-occur across public cytology benchmarks. Hence, we introduce CytoCRF. It proposes to drop the spatial term of SlideCRF and, adapt the biological cues to cytology by targeting the chromatin and a specific staining while revisiting how the neighborhood graph is built by leveraging information from multiple models. Across 10 cytology datasets, this improves the performance over the best baseline of +13.6pp balanced accuracy, even without any spatial term, and with only 50 annotations. This leads to an average increased performance of +33.7pp balanced accuracy. This performance is further (+2pp) increased when patches are connected using multiple models.

∗^{*}The authors have contributed equally to this work.

References (31)