Skip to main content
QUICK REVIEW

[논문 리뷰] QuadMamba: Learning Quadtree-based Selective Scan for Visual State Space Model

Fei Xie, Weijia Zhang|arXiv (Cornell University)|2024. 10. 09.
Video Surveillance and Tracking MethodsComputer Science인용 수 6
한 줄 요약

QuadMamba는 시각 작업에 적합하도록 학습 가능한 쿼드트리 기반 선택적 스캔을 도입하여 분류, 탐지, 분할에 걸쳐 선형 복잡도로 강력한 성능을 달성하는 Mamba 상태 공간 모델을 적응시킨다.

ABSTRACT

Recent advancements in State Space Models, notably Mamba, have demonstrated superior performance over the dominant Transformer models, particularly in reducing the computational complexity from quadratic to linear. Yet, difficulties in adapting Mamba from language to vision tasks arise due to the distinct characteristics of visual data, such as the spatial locality and adjacency within images and large variations in information granularity across visual tokens. Existing vision Mamba approaches either flatten tokens into sequences in a raster scan fashion, which breaks the local adjacency of images, or manually partition tokens into windows, which limits their long-range modeling and generalization capabilities. To address these limitations, we present a new vision Mamba model, coined QuadMamba, that effectively captures local dependencies of varying granularities via quadtree-based image partition and scan. Concretely, our lightweight quadtree-based scan module learns to preserve the 2D locality of spatial regions within learned window quadrants. The module estimates the locality score of each token from their features, before adaptively partitioning tokens into window quadrants. An omnidirectional window shifting scheme is also introduced to capture more intact and informative features across different local regions. To make the discretized quadtree partition end-to-end trainable, we further devise a sequence masking strategy based on Gumbel-Softmax and its straight-through gradient estimator. Extensive experiments demonstrate that QuadMamba achieves state-of-the-art performance in various vision tasks, including image classification, object detection, instance segmentation, and semantic segmentation. The code is in https://github.com/VISION-SJTU/QuadMamba.

연구 동기 및 목표

  • 2D 지역성 보존과 다중 해상도 시각 신호 처리를 통해 Mamba를 비전 태스크에 적합하게 적응시키는 동기를 제시한다.
  • Vision Mamba를 위한 locality-aware 1D 시퀀스를 형성하기 위한 학습 가능한 쿼드트리 기반 스캐닝 모듈을 제안한다.
  • Gumbel-Softmax 기반의 미분 가능한 분할과 시퀀스 마스킹을 통해 엔드투엔드 학습을 가능하게 한다.
  • 영역 간 정보 특징을 포착하기 위해 전방향 윈도우 시프팅을 도입하여 지역성 및 cross-region 정보 흐름을 강화한다.
  • CNN, Transformer 및 기존 Mamba 백본과 비교하여 ImageNet-1k, COCO, ADE20K에서 강력한 성능을 시연한다.

제안 방법

  • 이미지를 4x4 패치로 분할하고 토큰으로 임베딩한다.
  • 조도-수준의 쿼드트리 분할을 통해 거친 윈도우와 미세 윈도우로 나누는 이중 수준 파티션 맵을 예측한다.
  • Gumbel-Softmax 기반 마스킹과 Hadamard/요소별 연산을 사용하여 미분 가능한 1D 토큰 시퀀스를 구성한다.
  • 이동(시프)과 다단계 Transformer 유사 구조를 갖춘 QuadVSS 블록(Mamba 기반)을 적용한다.
  • 블록 간 전 방향 윈도우 시프팅을 도입하여 지역성 및 영역 간 정보 흐름을 향상시킨다.
  • QuadVSS 깊이와 채널 수를 구성 가능한 형태로 조정하여 Lite/Tiny/Small/Base 아키텍처 변형을 조정한다.

실험 결과

연구 질문

  • RQ1학습 가능한 쿼드트리 기반 스캔이 Vision Mamba에서 래스터나 고정 윈도우 스캔보다 2D 지역성을 더 잘 보존할 수 있는가?
  • RQ2적응형 다중 해상도 파티셔닝이 비전 태스크의 장거리 모델링과 효율성을 향상시키는가?
  • RQ3전방향 윈도우 시프팅이 로컬라이제이션 및 성능에 미치는 영향은 무엇인가?
  • RQ4QuadMamba 변형은 ImageNet-1k, COCO, ADE20K에서 CNN, Vision Transformer 및 기존 Mamba 백본과 어떻게 비교되는가?

주요 결과

  • QuadMamba 변형은 동시대 모델보다 더 낮은 또는 유사한 FLOP로 강력한 정확도를 달성한다(예: QuadMamba-S: Top-1 82.4% on ImageNet-1k with 31M params and 5.5G FLOPs).
  • QuadMamba-S 및 -B는 COCO에서 유사한 복잡도에서 다수의 CNN, Transformer 및 Mamba 백본을 능가한다(예: QuadMamba-S: APbox 46.7, APmask 42.4).
  • QuadMamba는 ADE20K에서 시맨틱 세그멘테이션 mIoU 47.2% (QuadMamba-S)를 달성하여 유사한 비용의 많은 베이스라인과 경쟁력 있다.
  • Ablation에서 코스-투-파인, 다중 레벨 지역성 및 다방향 윈도우 시프팅이 naively flattening 및 단일 방향 시프팅에 비해 성능을 크게 향상시킴을 보여준다.
  • 윈도우 분할 규모와 계층 분포(LP3)가 정확도와 복잡도 간 최적의 트레이드오프를 낳는다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.