During a colonoscopy, identifying and delineating colorectal polyps is the primary line of defense against colorectal cancer. However, automated systems face a fundamental computer vision challenge: visual camouflage. Unlike standard object segmentation tasks where targets exhibit distinct color, texture, or sharp boundaries, polyps are structural anomalies composed of the exact same mucosal tissue from which they grow.
As a result, polyps frequently blend into the surrounding background. This issue is compounded by the complex endoluminal environment, which contains confounding visual elements like mucosal folds, fecal debris, and intense specular highlights from the endoscope's light source, as detailed by [Jorge Bernal] et al. in A Benchmark for Endoluminal Scene Segmentation of Colonoscopy Images.
To solve this, recent research focuses on architectural mechanisms that resolve the tension between global context aggregation (locating the highly variable shape and size of the polyp) and local edge refinement (delineating its blurry, low-contrast boundaries).
The Architectural Dilemma: Context vs. Resolution
Standard deep convolutional networks and vision transformers excel at downsampling images to extract high-level semantic features. This global context is necessary because polyps exhibit extreme morphological variations—ranging from large, pedunculated masses to flat, irregular lesions ([Tien-Phat Nguyen] et al. in HCMUS at Medico Automatic Polyp Segmentation Task 2020: PraNet and ResUnet++ for Polyps Segmentation).
However, successive downsampling layers act as low-pass filters, discarding the high-frequency spatial details needed to find exact boundaries. When the network upsamples these features to generate a segmentation mask, the edges become blocky or indistinct. Conversely, relying purely on low-level, high-resolution features introduces significant noise, causing models to misinterpret normal mucosal folds or lighting artifacts as polyp boundaries.
To resolve this, modern architectures decouple the localization task from the boundary refinement task, using specialized modules to pass information between them.
Reverse Attention: Learning from Erasure
One of the most influential mechanisms for boundary refinement in this domain is reverse attention, pioneered by [Ling Shao] et al. in Parallel Reverse Attention Network for Polyp Segmentation.
Instead of asking a network to directly predict the boundary of a polyp, reverse attention forces the network to learn what is not the polyp core. The mechanism operates as an iterative subtraction process:
[High-Level Features] ---> [Partial Decoder] ---> [Rough Polyp Mask]
|
(Invert Mask: 1 - Mask)
|
[Low-Level Features] ---> [Reverse Attention Module] <--+
|
[Refined Boundary Mask]
- A parallel partial decoder aggregates high-level features to generate a coarse, low-resolution mask of the polyp core.
- This mask is inverted (subtracting the predicted core from a matrix of ones), effectively masking out the interior of the polyp.
- This inverted mask guides the attention of lower-level, high-resolution feature maps.
Because the interior of the polyp is erased, the network is forced to focus exclusively on the transition zone—the ambiguous boundary between the polyp and the healthy mucosa. By focusing capacity on these residual regions, the model sharpens the edges of the mask.
This principle has been widely adopted and enhanced. For example, [Chenghui Yu] et al. integrated reverse attention with a Res2Net backbone in Parallel Res2Net-based Network with ReverseAttention for Polyp Segmentation to capture multi-scale features within a single layer, ensuring that boundaries are refined across multiple granularities. Similarly, [Xiuquan Du] et al. developed ICGNet: Integration Context-based Reverse-Contour Guidance Network for Polyp Segmentation, which pairs reverse-contour guidance with adaptive local-global context fusion to prevent the model from losing structural coherence in highly ambiguous scenes.
Explicit Edge Guidance and Multi-Scale Fusion
Rather than relying on the network to discover boundary concepts implicitly, another prominent strategy introduces explicit edge-detection branches that run parallel to the main segmentation stream.
In Edge-aware Feature Aggregation Network for Polyp Segmentation, [Tao Zhou 0002] et al. introduced EFA-Net, which uses an explicit edge-guidance module trained against ground-truth boundary masks. This branch acts as a spatial constraint, filtering out background noise and injecting crisp boundary priors back into the cross-level feature fusion layers.
Similarly, [Feiyu Chen] et al. proposed SegT: Separated edge-guidance transformer network for polyp segmentation, which leverages the long-range dependency modeling of vision transformers to maintain global shape consistency while using a separated edge-guidance mechanism to prevent the boundaries from bleeding into the background texture. To handle the extreme scale variations of polyps, architectures like A-DenseUNet ([Sirojbek Safarov] et al. in A-DenseUNet: Adaptive Densely Connected UNet for Polyp Segmentation in Colonoscopy Images with Atrous Convolution) employ atrous (dilated) convolutions and dense connections, allowing the network to dynamically adjust its receptive field depending on whether it is processing a massive polyp or a minute, flat lesion.
Disentangling Boundaries in the Frequency Domain
A major reason boundaries appear indistinct to standard convolutional layers is that spatial textures and edge transitions are mixed together within the same pixel intensity values. To bypass this, some researchers have shifted the segmentation problem from the spatial domain to the frequency domain.
Spatial Image ---> [Frequency Disentanglement] ---> Low Frequencies (Homogeneous Textures)
---> Mid Frequencies (Structural Boundaries) *Target*
---> High Frequencies (Noise / Specular Highlights)
In Sub-Band Based Attention for Robust Polyp Segmentation, [Xianyong Fang] et al. demonstrated that during standard network downsampling, different frequency bands carry distinct semantic information. While low frequencies capture homogeneous textures (the pinkish hue of the colon wall) and high frequencies often contain noise or specular reflections, the middle-frequency bands contain the essential structural boundaries of the polyp. By introducing a Sub-Band Based Attention (SBA) module, they isolated and amplified these middle frequencies, allowing the network to trace boundaries even under low-contrast conditions.
This frequency-aware approach is also utilized in FARF-Net: Frequency-guided Adaptive Receptive Field Network for Edge-enhanced Polyp Segmentation. The authors of FARF-Net designed a network that adaptively scales its receptive fields based on local frequency content. When encountering flat, low-frequency mucosal regions, the network expands its receptive field to capture broad context; when encountering high-frequency or mid-frequency boundary transitions, it shrinks its receptive field to prevent spatial blurring, ensuring precise edge localization.
Adapting Foundation Models and Alternative Modalities
As deep learning has evolved, the field has expanded beyond purely custom 2D convolutional architectures toward two distinct frontiers: alternative physical imaging modalities and the adaptation of large vision foundation models.
Physical Modalities: Photometric Stereo
Instead of relying solely on standard 2D color frames where polyps are camouflaged, [Andy Poullis] et al. explored a hardware-software co-design in photometric stereo reconstruction for surface analysis of mucosal tissue. By capturing multiple images under rapidly alternating lighting directions, their system reconstructs a 3D surface model of the mucosal tissue. This shifts the problem from color-texture segmentation to geometric shape analysis, identifying polyps by their physical spherical protrusions rather than their visual appearance.
Software Adaptation: Foundation Models and Agents
On the software side, the emergence of models like the Segment Anything Model (SAM) has provided powerful zero-shot edge delineation capabilities. However, foundation models lack domain-specific knowledge regarding colonoscopy artifacts, such as overexposure or fluid blur ([Pu Wang] et al. in AgentPolyp: Accurate Polyp Segmentation via Image Enhancement Agent).
To bridge this gap, recent frameworks wrap foundation models in domain-specific guidance mechanisms:
- Sequence and State Priors: The authors of SAM-Mamba: Mamba Guided SAM Architecture for Generalized Zero-Shot Polyp Segmentation integrated a Mamba-based prior module into SAM. This allows the network to process long-range spatial sequences efficiently, anchoring SAM’s zero-shot segmentation capabilities within the specific visual context of endoluminal geometry.
- Automated Prompting: [Mobina Mansoori] et al. developed a hybrid framework in Self-Prompting Polyp Segmentation in Colonoscopy Using Hybrid YOLO-SAM2 Model, utilizing a fast YOLOv8 object detector to automatically generate bounding box prompts for SAM 2. This eliminates the need for manual prompt engineering while exploiting SAM 2's precise boundary tracking.
- Iterative Feedback: To refine boundaries over time, [Nikhil Kumar Tomar] et al. introduced an iterative feedback mechanism in Transformer-Enhanced Iterative Feedback Mechanism For Polyp Segmentation, allowing the model to continuously correct its boundary predictions across multiple internal passes.
To make these heavy foundation architectures clinically viable for real-time deployment, the authors of From SAM to DINOv2: Towards Distilling Foundation Models to Lightweight Baselines for Generalized Polyp Segmentation demonstrated that the rich, generalized edge representations of SAM and DINOv2 can be distilled into lightweight, high-frame-rate baselines. This preserves out-of-distribution generalization across different medical centers—a quality also championed by the real-time transformer architecture TransNetR ([Debesh Jha] et al. in TransNetR: Transformer-based Residual Network for Polyp Segmentation with Multi-Center Out-of-Distribution Testing)—while maintaining the inference speeds required for live surgical assistance.
Key Foundational Work
A Complete System for Candidate Polyps Detection in Virtual Colonoscopy (2014) — contributed 1 concept elements to this direction.
Ptu-024 - photometric stereo reconstruction for surface analysis of mucosal tissue (2015) — contributed 1 concept elements to this direction.