[논문 리뷰] Head-Free Lightweight Semantic Segmentation with Linear Transformer
AFFormer는 프로토타입 학습과 적응 주파수 필터를 사용하는 병렬 이질적 설계의 헤드-프리 경량 시맨틱 세분화 아키텍처로, ADE20K와 Cityscapes에서 초저 FLOPs 수준에서 최첨단 정확도를 달성합니다.
Existing semantic segmentation works have been mainly focused on designing effective decoders; however, the computational load introduced by the overall structure has long been ignored, which hinders their applications on resource-constrained hardwares. In this paper, we propose a head-free lightweight architecture specifically for semantic segmentation, named Adaptive Frequency Transformer. It adopts a parallel architecture to leverage prototype representations as specific learnable local descriptions which replaces the decoder and preserves the rich image semantics on high-resolution features. Although removing the decoder compresses most of the computation, the accuracy of the parallel structure is still limited by low computational resources. Therefore, we employ heterogeneous operators (CNN and Vision Transformer) for pixel embedding and prototype representations to further save computational costs. Moreover, it is very difficult to linearize the complexity of the vision Transformer from the perspective of spatial domain. Due to the fact that semantic segmentation is very sensitive to frequency information, we construct a lightweight prototype learning block with adaptive frequency filter of complexity $O(n)$ to replace standard self attention with $O(n^{2})$. Extensive experiments on widely adopted datasets demonstrate that our model achieves superior accuracy while retaining only 3M parameters. On the ADE20K dataset, our model achieves 41.8 mIoU and 4.6 GFLOPs, which is 4.4 mIoU higher than Segformer, with 45% less GFLOPs. On the Cityscapes dataset, our model achieves 78.7 mIoU and 34.4 GFLOPs, which is 2.5 mIoU higher than Segformer with 72.5% less GFLOPs. Code is available at https://github.com/dongbo811/AFFormer.
연구 동기 및 목표
- 무거운 디코더 헤드를 제거하여 시맨틱 세분화의 계산 비용을 줄이려는 동기를 제시한다.
- 밀집 자기 주의(attention) 없이 고해상도 시맨틱스를 유지하기 위한 병렬 이질적 아키텍처를 제안한다.
- 표준 자기 주의를 대체하기 위해 프로토타입 기반의 로컬 설명과 적응 주파수 필터를 도입한다.
- 표준 벤치마크에서 선형 복잡도 접근 방식이 경량 디코더보다 우수한 성능을 낼 수 있음을 보인다.
제안 방법
- 프로토타입 기반 특징과 픽셀 디스크립터로 고해상도 시맨틱스를 복원하기 위해 디코더를 대체하는 병렬 아키텍처를 갖춘 Adaptive Frequency Transformer(AFFormer)를 도입한다.
- 클러스터링된 프로토타입 중심 G′를 업데이트하기 위해 Transformer 기반의 프로토타입 학습(PL)을 사용하고, 고해상도 디테일 보존을 위해 CNN 기반 픽셀 디스크립터(PD)로 특징 F′를 복원한다.
- 입력 해상도에 대해 선형 복잡도를 달성하기 위해 주파수 유사도 커널(FSK), 동적 로우패스 필터(DLF), 동적 하이패스 필터(DHF)로 구성된 적응 주파수 필터(AFF)로 표준 자기 주의를 대체한다.
- 비용을 줄이기 위해 주파수 추출/향상 모듈 간 가중치를 공유하고, FFN에 depthwise conv를 포함시켜 특징을 효율적으로 융합한다.
- 단일 스케일 특징에 대해 단일 컨볼루션 분류 층(CLS)을 채택하여 시맨틱 세그멘테이션을 이미지 분류에 비유되게 단순화한다.
실험 결과
연구 질문
- RQ1헤드-프리이고 경량 Transformer 아키텍처로 초저 계산 비용에서도 높은 정확도를 유지하며 시맨틱 세분화를 달성할 수 있는가?
- RQ2프로토타입 기반 표현과 적응 주파수 처리가 세분화 모델에서 전통적인 디코더와 자기 주의를 대체하는 방법은 무엇인가?
- RQ3병렬 이질적 설계(PD 및 PL)와 적응 주파수 필터링이 데이터셋(ADE20K, Cityscapes, COCO-stuff) 전반의 성능과 효율성에 미치는 영향은 무엇인가?
주요 결과
- AFFormer는 ADE20K(512×512)에서 3M 파라미터를 사용해 41.8 mIoU와 4.6 GFLOPs를 달성, SegFormer보다 4.4 mIoU 높은 성능을 45% 적은 GFLOPs로 달성.
- Cityscapes에서 AFFormer는 34.4 GFLOPs로 78.7 mIoU를 달성, SegFormer보다 2.5 mIoU 높은 성능을 보이며 GFLOPs를 72.5% 더 줄였다.
- AFFormer-tiny, AFFormer-small, AFFormer-base 변형은 SegFormer 및 기타 경량 경쟁자에 비해 파라미터 수와 FLOPs를 대폭 줄이면서도 우수한 속도-정확도 트레이드오프를 제공합니다.
- 디코더를 생략하고 PD(픽셀 디스크립터)와 PL(프로토타입 학습)을 결합한 병렬 아키텍처가 순진한 피라미드 또는 ViT-전용 설계보다 더 낮은 계산비용으로 더 높은 정확도를 제공합니다.
- 주파수 인지형 프로토타입 학습 모듈(AFF)에서 FSK, DLF, DHF 구성요소가 여러 데이터셋에서 높은 세분화 품질 유지에 크게 기여하며, 구성요소를 결합했을 때 최상의 성능이 나타나는 것으로 제거 실험에서 확인됩니다.
- AFFormer는 고해상도 Cityscapes에서 눈에 띄는 FPS 향상을 제공하며(SegFormer의 12 FPS에 비해 22 FPS), 더 높은 mIoU를 달성합니다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.