arXiv:2611.09436cs.CVNov 2026

Manuscript Offprint

arXiv:2611.09436

The Role Of Recurrent Refinement In Medical Image Segmentation

Joao D. S. Marques, David Calhas, Arlindo L. Oliveira

ABSTRACT

While feed-forward segmentation networks perform well on large cohorts, they degrade in constrained clinical settings with few training samples and imaging artifacts. Human vision, by contrast, remains robust under these conditions, a property partly attributed to the recurrent and feedback connectivity of the visual cortex, which refines visual information over time. Inspired by this, we append lightweight recurrent refinement blocks to segmentation backbones, namely Conditional Random Fields (CRFs), modern Hopfield networks and convolutional GRUs, and study their behaviour as the number of iterations increases at test time (including beyond the training horizon). Evaluated on two open-source datasets, Kvasir-SEG and ARCADE, our recurrent blocks add less than 1.5% parameters and yield gains on clean data (up to 1.4 pp) and under noise (up to 17 pp) while reducing HD95.

Index Terms— Image Segmentation, Recurrence

1. INTRODUCTION

Semantic segmentation is a critical task in clinical workflows, as it provides spatial delineations essential for surgical navigation, lesion tracking, and morphology quantification [1]. Over the past decade, architectures ranging from standard convolutional U-Nets [2] to hierarchical Vision Transformers [3] and medical foundation models like MedSAM [4] have demonstrated exceptional performance, particularly when trained on very large benchmarks. However, real-world clinical settings rarely involve large scale cohorts, as most accessible medical datasets are severely constrained by small training sets, acquisition artifacts and label noise [5]. As a consequence, these models struggle in many scenarios and clinical deployment requires the capacity of extracting the most utility from such conditions.

In contrast to artificial networks, the primate visual system exhibits remarkable robustness in noisy and low-data regimes [6, 7]. While architectures like the U-Net try to mirror hierarchical receptive fields, these models remain strictly feed-forward, mapping inputs to predictions in a single static computational pass without the capability to re-evaluate intermediate features. Instead, the human visual cortex functions as an active dynamical system with pervasive recurrent and

top-down feedback pathways, refining decisions over time to resolve spatial ambiguity and sensory noise [8, 9, 10]. Therefore, incorporating recurrent feedback mechanisms into segmentation models offers an intuitive approach to equip them with iterative, dynamic error correction mechanisms.

Prior studies have used recurrent computation through various paradigms, such as Deep Equilibrium Models (DEQ) that enforce convergence toward stable fixed points [11], unrolled recurrent convolutions within U-Net blocks [12]. Similarly, formulating Dense Conditional Random Fields (CRF) with Gaussian edge potentials as Recurrent Neural Networks (CRF-as-RNN) [13, 14] demonstrated that mean-field message passing can iteratively sharpen boundary beliefs. In parallel, Modern Hopfield Networks [15, 16] established a formal bridge between associative memory retrieval and attention, proving that spatial tokens can converge toward stable energy attractors. Beyond energy-based and probabilistic frameworks, RAFT [17] introduced an alternative by leveraging Convolutional Gated Recurrent Units (ConvGRUs) [18] to keep a spatial memory state and iteratively emit bounded, residual corrections over time. Nevertheless, existing recurrent segmentation methods predominantly evaluate performance under a fixed, small number of unrolled iterations (TT), leaving open whether segmentation quality improves and remains stable as TT increases at test time, including beyond the training horizon.

In this work, we investigate the role of recurrent blocks plugged into a pre-trained segmentation backbone. Specifically, we evaluate CRF [14], modern Hopfield networks [15] and ConvGRU [18] integrated at the output of a segmentation model. We benchmark these architectures across varying iterations TT at test time under synthetic corruptions and few-shot constraints on gastrointestinal polyp segmentation (Kvasir-SEG [19]) and coronary angiography (ARCADE [20]). All code available at https://github.com/joaodsmarques/recurrencehelpsegmentation.