Skip to main content
QUICK REVIEW

[논문 리뷰] Vision Transformer with Super Token Sampling

Huaibo Huang, Xiaoqiang Zhou|arXiv (Cornell University)|2022. 11. 21.
Advanced Neural Network ApplicationsComputer Science인용 수 19
한 줄 요약

이 논문은 슈퍼 토큰을 도입하여 얕은 레이어에서의 중복을 줄이고, 전역 자기주의를 희박한 연관 맵과 저랭크 주의로 분해함으로써 효율적인 전역 맥락 모델링을 달성하는 계층적 비전 트랜스포머인 슈퍼 토큰 비전 트랜스포머(Super Token Vision Transformer, STViT)를 제안한다. ImageNet-1K에서 86.4%의 top-1 정확도를 기록하고 COCO 및 ADE20K 벤치마크에서 최신 기술 성능을 달성한다.

ABSTRACT

Vision transformer has achieved impressive performance for many vision tasks. However, it may suffer from high redundancy in capturing local features for shallow layers. Local self-attention or early-stage convolutions are thus utilized, which sacrifice the capacity to capture long-range dependency. A challenge then arises: can we access efficient and effective global context modeling at the early stages of a neural network? To address this issue, we draw inspiration from the design of superpixels, which reduces the number of image primitives in subsequent processing, and introduce super tokens into vision transformer. Super tokens attempt to provide a semantically meaningful tessellation of visual content, thus reducing the token number in self-attention as well as preserving global modeling. Specifically, we propose a simple yet strong super token attention (STA) mechanism with three steps: the first samples super tokens from visual tokens via sparse association learning, the second performs self-attention on super tokens, and the last maps them back to the original token space. STA decomposes vanilla global attention into multiplications of a sparse association map and a low-dimensional attention, leading to high efficiency in capturing global dependencies. Based on STA, we develop a hierarchical vision transformer. Extensive experiments demonstrate its strong performance on various vision tasks. In particular, without any extra training data or label, it achieves 86.4% top-1 accuracy on ImageNet-1K with less than 100M parameters. It also achieves 53.9 box AP and 46.8 mask AP on the COCO detection task, and 51.9 mIOU on the ADE20K semantic segmentation task. Code is released at https://github.com/hhb072/STViT.

연구 동기 및 목표

  • 비전 트랜스포머의 얕은 레이어에서의 국소적 특징 학습에서 발생하는 높은 중복성을 해결하기 위해.
  • 장거리 의존성을 훼손하지 않으면서도 초기 네트워크 스테이지에서 효율적이고 효과적인 전역 맥락 모델링을 가능하게 하기 위해.
  • 자기주의의 계산 비용을 줄이면서도 전역 표현 능력을 유지하기 위해.
  • 기존 방법보다 최소한의 파라미터 증가로도 슈퍼어닝하는 계층적 비전 트랜스포머 백본을 설계하기 위해.

제안 방법

  • 스테이지 초기 단계에서 효율적인 전역 맥락 모델링을 가능하게 하기 위해, 슈퍼픽셀 오버세그멘테이션에서 영감을 얻어 의미적으로 유의미하고 압축된 시각적 콘텐츠 표현인 슈퍼 토큰을 도입한다.
  • 희박한 연관 학습, 슈퍼 토큰에서의 자기주의, 원래 토큰 공간으로의 특징 재구성으로 구성된 세 단계 기반의 슈퍼 토큰 주의(Super Token Attention, STA) 메커니즘을 제안한다.
  • 표준 전역 자기주의를 희박한 연관 맵과 저차원 주의 행렬의 곱으로 분해함으로써 FLOPs를 제곱적으로 감소시킨다.
  • 희박한 연관 학습을 통한 슈퍼 토큰 예측을 위한 빠른 샘플링 알고리즘을 도입하여 계산 오버헤드를 최소화한다.
  • 다양한 해상도에서의 탄력적인 위치 인코딩을 위해 컨볼루션형 위치 임베딩(Convolutional Position Embedding, CPE)을 활용한다.
  • 지역적 특징 학습을 향상시키고 성능을 향상시키기 위해 단순 연결을 갖춘 컨볼루션형 피드포워드 네트워크(ConvFFN)를 통합한다.

실험 결과

연구 질문

  • RQ1비전 트랜스포머의 초기 단계에서 국소 주의나 초기 단계의 컨볼루션에 의존하지 않고도 효율적이고 효과적인 전역 맥락 모델링을 달성할 수 있는가?
  • RQ2슈퍼픽셀 원리에서 유래한 슈퍼 토큰이 얕은 레이어에서의 중복을 효과적으로 줄이면서도 전역 의존성 모델링을 유지할 수 있는가?
  • RQ3전역 자기주의를 희박한 연관성과 저랭크 주의로 분해함으로써 FLOPs를 크게 감소시킬 수 있으며, 성능 저하 없이도 성능을 유지하거나 향상시킬 수 있는가?
  • RQ4제안된 STViT 백본은 기존 비전 트랜스포머와 비교해 정확도, 효율성, 다양한 비전 작업에 대한 일반화 능력 측면에서 어떻게 성과를 내는가?

주요 결과

  • STViT-S는 52M 파라미터로 ImageNet-1K에서 86.4%의 top-1 정확도를 기록하며, Swin-T와 DeiT-S를 능가한다.
  • COCO 객체 검출에서 STViT-S는 53.9 box AP와 46.8 mask AP를 기록하여 유사하거나 더 큰 파라미터를 가진 기준 모델을 능가한다.
  • ADE20K 세그멘테이션에서 STViT-S는 51.9 mIOU를 달성하여 Swin-T보다 2.6 mIOU 높고, Uniformer보다 1.2 mIOU 높다.
  • 절단 실험 결과, 슈퍼 토큰 샘플링이 초기 단계에서 가장 효과적이며, 한 번의 샘플링 반복이 최적의 성능을 낸다.
  • ConvFFN과 CPE의 추가가 성능 향상에 일관되게 기여하며, CPE가 가장 큰 기여를 하여 정확도를 0.4% 향상시켰다.
  • STA를 통해 FLOPs가 크게 감소한다. 예를 들어 DeiT-S 대비 3.97G 대비 4.6G로 감소했으며, 정확도는 유지하거나 향상시켰다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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