[Paper Review] Attention Toward Neighbors: A Context Aware Framework for High Resolution Image Segmentation
This paper proposes a context-aware attention framework that enhances high-resolution image segmentation by aggregating contextual features from neighboring patches, enabling the network to see a wider receptive field without increasing feature map size. The method achieves state-of-the-art performance on the GID dataset and significantly improves mIoU and accuracy across multiple benchmarks, particularly for small patch sizes where boundary errors are common.
High-resolution image segmentation remains challenging and error-prone due to the enormous size of intermediate feature maps. Conventional methods avoid this problem by using patch based approaches where each patch is segmented independently. However, independent patch segmentation induces errors, particularly at the patch boundary due to the lack of contextual information in very high-resolution images where the patch size is much smaller compared to the full image. To overcome these limitations, in this paper, we propose a novel framework to segment a particular patch by incorporating contextual information from its neighboring patches. This allows the segmentation network to see the target patch with a wider field of view without the need of larger feature maps. Comparative analysis from a number of experiments shows that our proposed framework is able to segment high resolution images with significantly improved mean Intersection over Union and overall accuracy.
Motivation & Objective
- To address the challenge of error-prone segmentation in high-resolution images due to limited context in patch-based methods.
- To overcome the limitations of independent patch processing, especially at patch boundaries where contextual information is missing.
- To improve segmentation accuracy without increasing intermediate feature map size, avoiding training inefficiencies.
- To integrate seamlessly into existing encoder-decoder architectures for high-resolution segmentation.
Proposed method
- The input image is divided into non-overlapping square patches, with the target patch denoted as I.
- The encoder processes the target patch I and its eight neighboring patches, freezing encoder weights during context fusion.
- Encoded features from the target patch (Ie) and neighbors (Ne) are reshaped and concatenated to form a 9×C×HW tensor.
- Spatial attention is applied by computing a correlation weight matrix Wc via dot product between Ie and Ne, followed by softmax on the last axis to measure feature interdependencies.
- Contextual features are computed by applying Wc to Ne and aggregating the weighted neighbor features to enrich Ie with long-range context.
- The enriched features are then passed to the decoder for segmentation, enabling a wider effective receptive field without expanding feature map dimensions.
Experimental results
Research questions
- RQ1Can incorporating contextual information from neighboring patches improve segmentation accuracy in high-resolution images?
- RQ2Does the proposed attention mechanism reduce boundary errors in patch-based segmentation without increasing feature map size?
- RQ3Can the framework be effectively integrated into existing encoder-decoder architectures for high-resolution segmentation?
- RQ4How does the method perform on very high-resolution images with small patch sizes compared to baseline patch-based methods?
- RQ5Does the framework achieve state-of-the-art performance on benchmark datasets like GID?
Key findings
- The proposed framework achieves state-of-the-art mean Intersection over Union (mIoU) on the GID dataset, outperforming prior methods including PT-GID.
- On the JSRT Chest X-ray dataset, the method improves mIoU by up to 12.5% and overall accuracy by up to 11.5% compared to baseline models.
- For the Dhaka Satellite Dataset (DSD), the framework consistently improves mIoU and overall accuracy across all patch sizes, with the most significant gains observed in smaller patches.
- The method reduces boundary errors in small-patch segmentation by providing contextual awareness from adjacent patches, which is especially beneficial when the ratio of border to interior pixels is high.
- On the GID dataset, the method achieves 97.57% accuracy for built-up, 92.97% for farmland, 84.64% for forest, 59.12% for meadow, and 95.03% for water classes—surpassing all competing methods on four of five classes.
- The framework maintains high performance even with small patch sizes (e.g., 64×64), where baseline patch-based methods suffer from high error rates due to excessive border pixels.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.