Squeezing Context into Patches: Towards Memory-Efficient Ultra-High Resolution Semantic Segmentation

Abstract

Segmenting ultra-high-resolution (UHR) images poses a significant challenge due to constraints on GPU memory, leading to a trade-off between detailed local information and a comprehensive contextual understanding. Current UHR methods often employ a multi-branch encoder to handle local and contextual information, which can be memory-intensive. To address the need for both high accuracy and low memory usage in processing UHR images, we introduce a memory-efficient semantic segmentation approach by squeezing context information into local patches (SCPSeg). Our method integrates the processing of local and contextual information within a single-branch encoder. Specifically, we introduce a context squeezing module (CSM) designed to compress global context details into local patches, enabling segmentation networks to perceive broader image contexts. Additionally, we propose a super-resolution guided local feature alignment (LFA) technique to improve segmentation precision by aligning local feature relationships. This approach calculates similarities within sliding windows, avoiding heavy computational costs during the training phase. We evaluate the effectiveness of our proposed method on four widely used UHR segmentation benchmarks. Experimental results demonstrate that our approach enhances UHR segmentation accuracy without incurring additional memory overhead during the inference stage. The code is available at https://github.com/StuLiu/SCPSeg.

Cite

Text

Liu et al. "Squeezing Context into Patches: Towards Memory-Efficient Ultra-High Resolution Semantic Segmentation." International Joint Conference on Artificial Intelligence, 2025. doi:10.24963/IJCAI.2025/179

Markdown

[Liu et al. "Squeezing Context into Patches: Towards Memory-Efficient Ultra-High Resolution Semantic Segmentation." International Joint Conference on Artificial Intelligence, 2025.](https://mlanthology.org/ijcai/2025/liu2025ijcai-squeezing/) doi:10.24963/IJCAI.2025/179

BibTeX

@inproceedings{liu2025ijcai-squeezing,
  title     = {{Squeezing Context into Patches: Towards Memory-Efficient Ultra-High Resolution Semantic Segmentation}},
  author    = {Liu, Wang and Duan, Puhong and Kang, Xudong and Li, Shutao},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year      = {2025},
  pages     = {1603-1611},
  doi       = {10.24963/IJCAI.2025/179},
  url       = {https://mlanthology.org/ijcai/2025/liu2025ijcai-squeezing/}
}