Foveation for Segmentation of Ultra-High Resolution Images

Chen Jin, Ryutaro Tanno, Moucheng Xu, Thomy Mertzanidou, Daniel C. AlexanderarXiv 2020

Abstract

Segmentation of ultra-high resolution (UHR) images is challenging because of their enormous size, consisting of millions or even billions of pixels. Typical solutions include dividing input images into patches of fixed size and/or down-sampling to meet memory constraints. Such operations incur information loss in the field-of-view (FoV) i.e., spatial coverage and the image resolution. In this work, we introduce the foveation module, a learnable "dataloader" which, for a given UHR image, adaptively chooses the appropriate configuration (FoV/resolution trade-off) of the input patch to feed to the downstream segmentation model at each spatial location of the image. The foveation module is jointly trained with the segmentation network to maximise the task performance. We demonstrate on three publicly available high-resolution image datasets that the foveation module consistently improves segmentation performance over the cases trained with patches of fixed FoV/resolution trade-off. Our approach achieves the SoTA performance on the DeepGlobe aerial image dataset. On the Gleason2019 histopathology dataset, our model achieves better segmentation accuracy for the two most clinically important and ambiguous classes (Gleason Grade 3 and 4) than the top performers in the challenge by 13.1% and 7.5%, and improves on the average performance of 6 human experts by 6.5% and 7.5%.

Introduction: The Challenge of Ultra-High Resolution

Segmenting images with millions or billions of pixels—such as satellite imagery or medical pathology slides—presents a significant computational hurdle. Standard GPUs cannot process a 10,000x10,000 pixel image in its entirety due to memory constraints. Traditionally, this is addressed by either downsampling the image, which sacrifices fine detail, or partitioning it into small patches, which sacrifices global context.

This paper identifies a fundamental Field-of-View (FoV) vs. Resolution trade-off. To fit a patch into memory, one must choose between a large area at low resolution (high context, low detail) or a small area at high resolution (low context, high detail). Most existing models apply a uniform strategy across an entire dataset, which is sub-optimal because different regions of an image require different levels of detail or context depending on the local patterns.

The Foveation Module

The authors propose a bio-inspired "foveation module"—a lightweight CNN that acts as an intelligent, learnable dataloader. This module mimics the human visual system, which uses a wide, low-resolution peripheral view to identify areas of interest and then "foveates" on specific details using high-resolution central vision.

The module operates in four stages:

  1. Global Analysis: It processes a heavily downsampled version of the full UHR image to gain global context.
  2. Adaptive Selection: For each spatial location, it outputs a probability distribution over a discrete set of $D$ patch configurations (ranging from high-res/small-FoV to low-res/large-FoV).
  3. Sampling: It selects the most informative patch configuration to feed into the primary downstream segmentation network (e.g., HRNet or UPerNet).
  4. End-to-End Optimization: The module is trained jointly with the segmentation network. To handle the non-differentiable sampling process, the authors utilized techniques such as Gumbel-Softmax and Mean/Mode approximations.

Experimental Results

The approach was evaluated on three diverse domains: Cityscapes (urban scenes), DeepGlobe (aerial satellite imagery), and Gleason2019 (histopathology).

Comparison of segmentation results on the Cityscapes dataset. The foveation module ('Ours') adaptively balances resolution and context, outperforming fixed-patch baselines like SmallPatch-HighResolution and BigPatch-LowResolution.

Key findings include:

  • State-of-the-Art Performance: The model achieved SoTA results on the DeepGlobe dataset, specifically improving the segmentation of complex coastal areas and agricultural boundaries.
  • Clinical Superiority: On the Gleason2019 dataset, the model outperformed the average of six human experts by 6.5% to 7.5% on the most clinically difficult cancer grades (Gleason 3 and 4). It also beat the top challenge performers by 13.1% and 7.5% for those same classes.
  • Efficiency and Accuracy: The foveation module adds negligible computational overhead while providing a significant boost in mIoU (e.g., a 6% increase on Cityscapes compared to fixed-patch baselines).
  • Interpretability: The generated "foveation maps" align with areas where high detail is objectively required, providing insight into the model's decision-making process.

Conclusion

Adaptive foveation provides a robust solution to the FoV/resolution trade-off in UHR segmentation. By learning where to "zoom in" for detail and where to "zoom out" for context, the model achieves superior accuracy across varied datasets. Future work may explore continuous zoom scales and more aggressive region-skipping to further enhance inference speed for massive datasets.

Code and trained models are available at: https://github.com/lxasqjc/Foveation-Segmentation

Summary updated

BibTeX
@misc{jin2020foveation,
  author = {Chen Jin and Ryutaro Tanno and Moucheng Xu and Thomy Mertzanidou and Daniel C. Alexander},
  title = {{Foveation for Segmentation of Ultra-High Resolution Images}},
  year = {2020},
  eprint = {2007.15124},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.15124},
}
Figure