# Attention guided global enhancement and local refinement network for semantic segmentation

의미 분할을 위한 어텐션 기반 전역 강화 및 지역 정제 네트워크

Jiangyun Li, Sen Zha, Chen Chen, Meng Ding, Tianxiang Zhang, Hong Yu · arXiv · 2022년 4월 9일

- **연구 문제** 인코더-디코더 분할 모델은 가벼운 구조지만 업샘플링의 국소적 수용 영역과 얕은 인코더 특징의 노이즈 때문에 Dilated-FCN 계열보다 성능이 낮은 경우가 많습니다.
- **연구 방법** AGLN은 FPN 디코더에 전역 semantic descriptor를 업샘플링 단계마다 분배하는 Global Enhancement Method와, 디코더 특징을 가이드로 인코더 특징을 채널·공간 방향으로 정제하는 Local Refinement Module을 결합합니다.
- **주요 결과** ResNet-101 백본의 AGLN은 PASCAL Context 검증 세트에서 56.23% mIoU, ADE20K에서 45.38% mIoU, PASCAL VOC 2012 테스트에서 84.9% mIOU를 보고합니다. ResNet-50 절제 실험에서는 Global Enhancement Method가 FPN 베이스라인을 넘어서는 결과를 보였습니다.

## 인코더-디코더 분할 모델의 두 가지 한계

U자형 인코더-디코더 구조는 경량이면서도 분할 성능을 확보할 수 있어 널리 쓰입니다. 그러나 이 구조는 Dilated-FCN 계열 모델과 비교할 때 성능이 제한되는 두 가지 문제를 안고 있습니다. 첫째, 디코더에서 쓰는 보간과 역합성곱은 주변 영역만 보므로 고수준 특징의 전역 문맥을 복원하기 어렵습니다. 둘째, 스킵 연결로 전달되는 저수준 인코더 특징은 초기 계층의 의미 개념이 부족해 디코더에 노이즈를 섞습니다. 논문은 이 두 문제를 각각 전역 문맥 부족과 노이즈 섞인 지역 특징으로 나누어 다룹니다.

## 전역 문맥을 디코더에 되돌리는 Global Enhancement Method

Global Enhancement Method는 기존 업샘플링 연산자를 그대로 두고, 마지막 인코더 출력 X에서 전역 특징을 모아 디코더 특징에 붙이는 방식입니다. Semantic Aggregation Block은 X에 학습된 global attention pooling을 적용하여 N개의 semantic descriptor D를 만듭니다. 이때 1×1 합성곱으로 얻은 특징과 softmax를 거친 attention map을 곱하며, softmax는 공간 차원 HW에 대해 적용됩니다. 이어서 Semantic Distribution Module은 업샘플링 중인 디코더 특징 A에서 위치별 attention vector를 구하고, 이 가중치로 descriptor를 섞어 semantic descriptor map M을 만듭니다.

마지막으로 E = Ψ(A + αM; WΨ)에 따라 M을 A에 더하고 합성곱, BN, ReLU를 적용하여 강화된 디코더 특징 E를 얻습니다. 여기서 α는 학습 가능한 스칼라입니다.

![Figure 3: The visualization of feature maps and segmentation results from FPN and our AGLN on the PASCAL Context dataset. From left to right: (a) Input images;…](https://refivu.com/papers/7a60be7a-e6ab-470e-97d1-0bd6aa5e67b0/figures/figure-d5aaadec9c1846edd0994cdd9a2a198e.png?thumb=512)

**Fig. 3** . The visualization of feature maps and segmentation results from FPN and our AGLN on the PASCAL Context dataset. From left to right: (a) Input images; (b) Decoder features; (c) Semantic descriptor maps; (d) Enhanced decoder features (the fusion results of decoder features and semantic descriptor maps); (e) FPN results; (f) Our results; (g) Ground truth. (The feature maps are from the last stage of the decoder)

[원문](https://arxiv.org/abs/2204.04363v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiangyun Li, Sen Zha, Chen Chen, Meng Ding, Tianxiang Zhang, Hong Yu · Attention guided global enhancement and local refinement network for semantic segmentation · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 의미 가이드로 인코더 특징을 정제하는 Local Refinement Module

Local Refinement Module은 디코더 특징이 더 많은 의미 정보를 가지므로 이를 가이드로 삼아 저수준 인코더 특징 B를 정제합니다. 첫 단계인 Channel Resampling은 F = B×softmax(B×E^T)로 계산하여 디코더 특징과 관련이 큰 채널을 강조하고 노이즈 채널을 억제합니다. 두 번째 단계인 Spatial Gating은 semantic descriptor map M에 sigmoid를 적용한 게이팅 맵을 F와 원소별로 곱해 관심 영역의 세부 정보만 남깁니다. 최종 출력 G는 이 두 단계를 거친 정제된 인코더 특징입니다. 이 채널 재표본화는 Dual Attention Network의 Channel Attention Module에서 착안했지만, 한 특징 맵 안의 자기 어텐션이 아니라 인코더와 디코더 사이의 교차 어텐션이라는 점에서 다릅니다.

## Context Fusion Block과 AGLN의 전체 구조

Context Fusion Block은 Semantic Distribution Module과 Local Refinement Module을 결합한 단위입니다. 강화된 디코더 특징 E와 정제된 인코더 특징 G를 O = Φ(E + βG; WΦ)에 따라 원소별 덧셈으로 합치며, G에는 학습 가능한 스칼라 β가 곱해집니다. 전체 AGLN은 사전학습된 vanilla ResNet을 인코더로 사용해 입력을 1/32 크기로 줄이고, 그 위에 Semantic Aggregation Block과 세 개의 Context Fusion Block을 쌓아 디코더를 구성합니다. 각 디코더 단계의 출력은 FPN 방식으로 1/4 입력 크기까지 보간되어 결합되며, 최종 예측에 픽셀 단위 cross-entropy 손실이 적용됩니다.

![Figure 2: The overall architecture and design details of the proposed AGLN. (a) Details of the proposed Semantic Aggregation Block and Context Fusion Block (co…](https://refivu.com/papers/7a60be7a-e6ab-470e-97d1-0bd6aa5e67b0/figures/figure-8b053e4cdbeabe9d7fbafc5e16e00904.png?thumb=512)

**Fig. 2** . The overall architecture and design details of the proposed AGLN. (a) Details of the proposed Semantic Aggregation Block and Context Fusion Block (consisting of Semantic Distribution Module and Local Reﬁnement Module), (b) Overall architecture of AGLN (best viewed in color).

[원문](https://arxiv.org/abs/2204.04363v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiangyun Li, Sen Zha, Chen Chen, Meng Ding, Tianxiang Zhang, Hong Yu · Attention guided global enhancement and local refinement network for semantic segmentation · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

## 세 벤치마크에서의 비교 결과

PASCAL Context 검증 세트에서 vanilla ResNet-101 백본을 쓴 AGLN은 mIoU 56.23%를 기록했습니다. 이 수치는 Dilated-ResNet-101 기반 모델들과 비교한 것이며, HRNetV2-W48 백본과 OCRNet을 결합한 결과 56.2와 거의 비슷한 수준입니다. ADE20K 검증 세트에서는 AGLN이 45.38% mIoU와 81.78% PixAcc를 보고했습니다. PASCAL VOC 2012 테스트 세트에서는 MS COCO pre-training 없이 120 epoch 학습한 뒤 원본 데이터로 추가 120 epoch fine-tuning한 결과 84.9% mIOU를 보고했습니다.

이 결과들은 각각 해당 데이터셋과 평가 조건에서 얻은 값입니다.

![Figure 1: Visualization examples of the segmentation results on PASCAL Context dataset \[19\]. From left to right: (a) Input image, (b) Ground truth, (c) Ours, (…](https://refivu.com/papers/7a60be7a-e6ab-470e-97d1-0bd6aa5e67b0/figures/figure-65dbec9774488c4e572a808c41d032da.png?thumb=512)

**Fig. 1** . Visualization examples of the segmentation results on PASCAL Context dataset \[19\]. From left to right: (a) Input image, (b) Ground truth, (c) Ours, (d) FPN \[20\].

[원문](https://arxiv.org/abs/2204.04363v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiangyun Li, Sen Zha, Chen Chen, Meng Ding, Tianxiang Zhang, Hong Yu · Attention guided global enhancement and local refinement network for semantic segmentation · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.

![Figure 6: Example results on ADE20K validation set. The images in each column from top to bottom are (a) Input images, (b) Ground truth, (c) FPN, and (d) Ours.…](https://refivu.com/papers/7a60be7a-e6ab-470e-97d1-0bd6aa5e67b0/figures/figure-0c052ff2bb8b3d293c28fc49282a08fc.png?thumb=512)

**Fig. 6** . Example results on ADE20K validation set. The images in each column from top to bottom are (a) Input images, (b) Ground truth, (c) FPN, and (d) Ours. The main contrasts are marked by the white dashed lines (best viewed in color).

[원문](https://arxiv.org/abs/2204.04363v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiangyun Li, Sen Zha, Chen Chen, Meng Ding, Tianxiang Zhang, Hong Yu · Attention guided global enhancement and local refinement network for semantic segmentation · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.

## 절제 실험으로 본 구성요소의 기여

절제 실험은 ResNet-50 백본과 PASCAL Context 검증 세트에서 단일 스케일 평가를 기준으로 수행되었습니다. FPN 베이스라인은 46.91 mIoU였고, Global Enhancement Method를 적용한 AGLN−은 N=128일 때 51.24 mIoU였습니다. 저자들은 이 결과를 Global Enhancement Method가 FPN 대비 4% 이상 향상을 가져온다고 보고했습니다. 전역 attention pooling을 전역 평균 pooling으로 바꾼 GAP-GEM은 48.17 mIoU로 낮아졌으며, N을 1, 64, 256으로 바꾸었을 때는 각각 47.93, 50.98, 50.88 mIoU였습니다.

Local Refinement Module에서는 Channel Resampling만 적용한 경우 51.50, Spatial Gating만 적용한 경우 51.58, 두 방법을 모두 적용한 경우 51.98 mIoU였습니다. 이 수치는 ResNet-50과 단일 스케일 평가 조건에서 얻은 것입니다.

## 조건과 한계

densely connected decoder와 multi-scale 평가는 AGLN을 52.45%와 53.42% mIoU로 높였지만, 이는 절제 실험의 단일 스케일 설정과 다른 추가 조건입니다. AGLN-Lite는 Context Fusion Block의 3×3 합성곱을 depth-wise separable convolution으로 바꾸어 매개변수와 FLOPs를 줄였으며, 원문 표에서 AGLN 61.71M 매개변수와 187.16G FLOPs가 AGLN-Lite에서 55.74M과 135.56G로 줄었다고 보고됩니다. 같은 표에서 PASCAL Context mIoU는 56.23에서 56.21로 거의 유지되었지만 ADE20K는 45.38에서 44.04로 낮아졌습니다.

이 경량화 결과와 주요 AGLN 결과는 같은 실험 설정으로 묶지 않고 각각의 조건을 함께 읽어야 합니다.

![Figure 4: Different decoder implementations of our network: (a) Straight connection, (b) Dense connection of SAB and CFBs](https://refivu.com/papers/7a60be7a-e6ab-470e-97d1-0bd6aa5e67b0/figures/figure-f7c6a53e0a697b1772fbfa1490ffa08a.png?thumb=512)

**Fig. 4** . Different decoder implementations of our network: (a) Straight connection, (b) Dense connection of SAB and CFBs.

[원문](https://arxiv.org/abs/2204.04363v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiangyun Li, Sen Zha, Chen Chen, Meng Ding, Tianxiang Zhang, Hong Yu · Attention guided global enhancement and local refinement network for semantic segmentation · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Jiangyun Li, Sen Zha, Chen Chen, Meng Ding, Tianxiang Zhang, Hong Yu
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2022년 4월 9일
- **등록일**: 2026년 11월 6일
- **수정일**: 2022년 4월 9일
- **버전**: v1
- **arXiv**: 2204.04363
- **DOI**: 10.1109/tip.2022.3166673
- **분류**: cs.CV
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2204.04363v1) · [원문 PDF ↗](https://arxiv.org/pdf/2204.04363v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

The encoder-decoder architecture is widely used as a lightweight semantic segmentation network. However, it struggles with a limited performance compared to a well-designed Dilated-FCN model for two major problems. First, commonly used upsampling methods in the decoder such as interpolation and deconvolution suffer from a local receptive field, unable to encode global contexts. Second, low-level features may bring noises to the network decoder through skip connections for the inadequacy of semantic concepts in early encoder layers. To tackle these challenges, a Global Enhancement Method is proposed to aggregate global information from high-level feature maps and adaptively distribute them to different decoder layers, alleviating the shortage of global contexts in the upsampling process. Besides, a Local Refinement Module is developed by utilizing the decoder features as the semantic guidance to refine the noisy encoder features before the fusion of these two (the decoder features and the encoder features). Then, the two methods are integrated into a Context Fusion Block, and based on that, a novel Attention guided Global enhancement and Local refinement Network (AGLN) is elaborately designed. Extensive experiments on PASCAL Context, ADE20K, and PASCAL VOC 2012 datasets have demonstrated the effectiveness of the proposed approach. In particular, with a vanilla ResNet-101 backbone, AGLN achieves the state-of-the-art result (56.23% mean IoU) on the PASCAL Context dataset. The code is available at https://github.com/zhasen1996/AGLN.

## 원문 인용

Jiangyun Li, Sen Zha, Chen Chen, Meng Ding, Tianxiang Zhang, Hong Yu (2022). Attention guided global enhancement and local refinement network for semantic segmentation. arXiv:2204.04363v1. https://doi.org/10.1109/tip.2022.3166673

**BibTeX**

```
@article{li2022attention,
  title = {{Attention guided global enhancement and local refinement network for semantic segmentation}},
  author = {Jiangyun Li and Sen Zha and Chen Chen and Meng Ding and Tianxiang Zhang and Hong Yu},
  year = {2022},
  eprint = {2204.04363},
  archivePrefix = {arXiv},
  doi = {10.1109/tip.2022.3166673},
  url = {https://arxiv.org/abs/2204.04363v1}
}
```

## 이 논문의 용어

- [ResNet](https://refivu.com/terms/ca7e0121c7a8-resnet)
- [ADE20K](https://refivu.com/terms/5adea765479c-ade20k)
- [Feature Pyramid Network](https://refivu.com/terms/f5b902e34e57-feature-pyramid-network)
- [PASCAL VOC 2012](https://refivu.com/terms/269f59a1eb03-pascal-voc-2012)
- [PASCAL Context](https://refivu.com/terms/aa3abacfe722-pascal-context)
- [encoder-decoder architecture](https://refivu.com/terms/5a09727d4432-encoder-decoder-architecture)

## 다른 논문 해설

- [Learning a Model-Driven Variational Network for Deformable Image Registration](https://refivu.com/papers/2819aa8d-95ac-4c3a-9b1a-98dbd62074c3-learning-a-model-driven-variational-network-for-deformable.md)
- [Blockchain and Machine Learning for Fraud Detection: A Privacy-Preserving and Adaptive Incentive Based Approach](https://refivu.com/papers/19ff3d66-92f8-4279-bb67-d8e015476966-blockchain-and-machine-learning-for-fraud-detection-a.md)
- [Compensating for visibility artefacts in photoacoustic imaging with a deep learning approach providing prediction uncertainties](https://refivu.com/papers/22bde92a-e46e-44f4-b75f-fd08b5e2e76c-compensating-for-visibility-artefacts-in-photoacoustic.md)
- [Visual Object Tracking in First Person Vision](https://refivu.com/papers/4b90a84f-119c-4016-ab1c-1bb2e43efdd0-visual-object-tracking-in-first-person-vision.md)
- [Deep Learning-based Patient Re-identification Is able to Exploit the Biometric Nature of Medical Chest X-ray Data](https://refivu.com/papers/e060b53c-8614-4bbb-8efd-bdb0cebc8fd4-deep-learning-based-patient-re-identification-is-able.md)
- [CNN based Multistage Gated Average Fusion (MGAF) for Human Action Recognition Using Depth and Inertial Sensors](https://refivu.com/papers/25d4b58c-9aa6-4203-9c42-0f2730eb3acf-cnn-based-multistage-gated-average-fusion-mgaf-for.md)
- [Fairness Based Energy-Efficient 3D Path Planning of a Portable Access Point: A Deep Reinforcement Learning Approach](https://refivu.com/papers/9e71750b-b886-4b82-800a-3374cf84a6aa-fairness-based-energy-efficient-3d-path-planning-of.md)
- [Exploring Large Language Models for Feature Selection: A Data-centric Perspective](https://refivu.com/papers/bdc198e1-3386-4a38-baba-5b9532d2d2fe-exploring-large-language-models-for-feature-selection-a.md)
- [MacroNav: Multi-Task Context Representation Learning Enables Efficient Navigation in Unknown Environments](https://refivu.com/papers/574974d3-c1e8-441e-b1be-d6881d278f61-macronav-multi-task-context-representation-learning-enables.md)
- [Towards Private Learning on Decentralized Graphs with Local Differential Privacy](https://refivu.com/papers/2ab64b92-e4bd-4105-b5c0-9a19a579c476-towards-private-learning-on-decentralized-graphs-with-local.md)
- [Federated Offline Reinforcement Learning](https://refivu.com/papers/2e1c175f-f202-4ead-a933-481267ce4fa0-federated-offline-reinforcement-learning.md)
- [Neighborhood Contrastive Transformer for Change Captioning](https://refivu.com/papers/792db475-3394-4f26-8183-cba0acb148eb-neighborhood-contrastive-transformer-for-change-captioning.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/7a60be7a-e6ab-470e-97d1-0bd6aa5e67b0-attention-guided-global-enhancement-and-local-refinement)
