Abstract
Superpixel segmentation is a foundational task in computer vision, yet deep learning-based methods frequently encounter a "memory wall" when processing ultra-high-resolution (UHR) images. This paper introduces PCNet (Patch Calibration Network), a novel framework that decouples global context from local detail. By utilizing a dual-branch architecture with shared weights and sub-pixel convolution, PCNet successfully processes 5K resolution images on standard consumer hardware, significantly outperforming previous state-of-the-art methods in both efficiency and boundary precision.
Introduction
Superpixels—clusters of pixels sharing similar visual characteristics—serve as essential primitives for complex tasks like object detection and medical imaging. While deep learning has advanced superpixel generation, existing models typically require input and output resolutions to match. At ultra-high resolutions (3K to 5K+), the computational and memory requirements exceed the capacity of modern GPUs. Simple downsampling offers a workaround but at the cost of destroying fine boundary details. PCNet addresses this trade-off by maintaining a global low-resolution view while calibrating for high-resolution details through a decoupled patch-based approach.
The PCNet Framework
The core innovation of PCNet is its "low-to-high" prediction strategy. Instead of processing a full high-resolution (HR) image, the main branch takes a downsampled version as input. It then employs sub-pixel convolution to predict a high-resolution association map, drastically reducing the number of floating-point operations.
To recover the detail lost during downsampling, the authors introduced three specific mechanisms:
- Decoupled Patch Calibration (DPC) Branch: During training, this branch processes small, original-resolution patches. Because it shares weights with the main branch, it effectively transfers knowledge of fine-grained boundary details to the global processing pipeline.
- Dynamic Guiding Mask: To overcome the lack of global context in small patches, this binary mask simplifies the DPC task. It directs the network to focus exclusively on boundary localization rather than semantic classification.
- Local Discrimination (LD) Loss: This loss function operates within the feature embedding space, pulling together features from the same semantic region while pushing apart features across boundaries.
Experimental Setup
PCNet was evaluated across five diverse datasets to test its robustness and scaling capabilities:
- Face-Human: A new high-resolution dataset (up to 10K) featuring 500 expert-annotated images of human parts and faces.
- Mapillary Vistas & BIG: Large-scale street-level and high-resolution segmentation benchmarks.
- BSDS500 & NYUv2: Standard benchmarks to ensure the model retains performance on standard-resolution imagery.
Results and Discussion
PCNet represents a significant breakthrough in overcoming the resolution limits of deep superpixel networks. As shown in the performance metrics, PCNet maintains linear memory growth and manageable inference times even as resolution scales toward 5.4K.
Key Findings:
- Breaking the Memory Wall: While the previous state-of-the-art (SCN) fails at resolutions above 3.5K due to memory exhaustion, PCNet successfully processes 5K resolution images on a single NVIDIA 1080Ti.
- Superior Boundary Accuracy: On the Face-Human dataset, PCNet achieved higher Boundary Precision (BP) and Boundary Recall (BR) than SCN, despite PCNet operating on a 4x smaller resolution input.
- Efficiency: For a 3K image, PCNet is significantly faster than SCN and requires substantially less VRAM, enabling high-resolution processing on more accessible hardware.
- Generalization: Features learned on the Face-Human dataset showed strong "zero-shot" performance on the BIG dataset, indicating that the model learns fundamental boundary characteristics rather than dataset-specific patterns.
Conclusion
PCNet successfully bridges the gap between low-resolution efficiency and high-resolution precision for superpixel segmentation. By decoupling patch calibration from the main processing branch, the framework avoids the prohibitive memory costs of UHR processing. Future work may explore the integration of super-resolution logic directly into the inference pipeline to further enhance texture recovery, as well as extending the architecture to handle the emerging 8K resolution domain.
Summary updated