Skip to main content
QUICK REVIEW

[논문 리뷰] Contextual Transformer Networks for Visual Recognition

Yehao Li, Ting Yao|arXiv (Cornell University)|2021. 07. 26.
Advanced Neural Network ApplicationsComputer Science인용 수 42
한 줄 요약

요약: 이 논문은 정적 맥락을 지역 이웃 간에 채굴하고 동적 컨텍스트 주의를 학습하는 Contextual Transformer(CoT) 블록을 도입합니다. ResNet 스타일 백본의 3x3 컨볼루션을 대체하여 CoTNet/CoTNeXt 백본을 구성하고 ImageNet 및 COCO 성능을 향상시킵니다.

ABSTRACT

Transformer with self-attention has led to the revolutionizing of natural language processing field, and recently inspires the emergence of Transformer-style architecture design with competitive results in numerous computer vision tasks. Nevertheless, most of existing designs directly employ self-attention over a 2D feature map to obtain the attention matrix based on pairs of isolated queries and keys at each spatial location, but leave the rich contexts among neighbor keys under-exploited. In this work, we design a novel Transformer-style module, i.e., Contextual Transformer (CoT) block, for visual recognition. Such design fully capitalizes on the contextual information among input keys to guide the learning of dynamic attention matrix and thus strengthens the capacity of visual representation. Technically, CoT block first contextually encodes input keys via a $3 imes3$ convolution, leading to a static contextual representation of inputs. We further concatenate the encoded keys with input queries to learn the dynamic multi-head attention matrix through two consecutive $1 imes1$ convolutions. The learnt attention matrix is multiplied by input values to achieve the dynamic contextual representation of inputs. The fusion of the static and dynamic contextual representations are finally taken as outputs. Our CoT block is appealing in the view that it can readily replace each $3 imes3$ convolution in ResNet architectures, yielding a Transformer-style backbone named as Contextual Transformer Networks (CoTNet). Through extensive experiments over a wide range of applications (e.g., image recognition, object detection and instance segmentation), we validate the superiority of CoTNet as a stronger backbone. Source code is available at \url{https://github.com/JDAI-CV/CoTNet}.

연구 동기 및 목표

  • 전통적인 자기-주의에서 2D 비전 피처 맵의 컨텍스트 모델링이 제한적인 점을 동기화하고 해결합니다.
  • 키의 정적 컨텍스트화를 통해 동적 자기 주의를 결합하는 CoT 블록을 제안합니다.
  • ResNet/ResNeXt에서 3x3 컨볼루션을 CoT 블록으로 교체하여 CoTNet/CoTNeXt 백본을 구축하는 방법을 보여줍니다.
  • 이미지 인식(ImageNet) 및 다운스트림 태스크(COCO)에서 향상된 성능을 입증합니다.]
  • method
  • research_questions
  • key_findings
  • table_headers
  • table_rows

제안 방법

  • Contextual Transformer(CoT) 블록을 소개합니다. 이 블록은 먼저 3x3 컨볼루션을 통해 키를 컨텍추얼라이즈하여 정적 컨텍스트를 만듭니다.
  • 컨텍추얼라이즈된 키를 쿼리와 연결하고 두 번의 연속 1x1 컨볼루션을 통해 동적 멀티헤드 어텐션 매트릭스를 학습합니다.
  • 어텐션을 값에 적용하여 동적 컨텍스트 표현을 계산하고, 정적 컨텍스트와 동적 컨텍스트를 출력으로 융합합니다.
  • ResNet/ResNeXt의 각 3x3 컨볼루션을 CoT 블록으로 교체하여 CoTNet 및 CoTNeXt 백본을 형성합니다.
  • CoTNet-50/101 및 CoTNeXt-50/101 와 같은 변형을 제공하고 ImageNet 및 COCO에서 최첨단 백본과의 성능을 비교합니다.]
  • research_questions
  • key_findings
  • table_headers
  • table_rows

실험 결과

연구 질문

  • RQ1인접 키들 간의 컨텍스트 정보가 2D 비전 피처 맵의 자기 주의 학습을 개선할 수 있는가?
  • RQ2표준 백본(ResNet/ResNeXt)에서 3x3 컨볼루션을 CoT 블록으로 교체하는 것이 인식 및 탐지 태스크에 유익한가?
  • RQ3CoTNet 및 CoTNeXt 백본은 ImageNet 및 COCO에서 최첨단 아키텍처에 비해 어떤 성능을 보이는가?
  • RQ4CoT 블록 사용 시 매개변수, FLOPs 및 정확도 간의 트레이드오프는 어떻게 되는가?

주요 결과

  • CoT 블록은 비슷한 매개변수 및 FLOPs에서 ImageNet Top-1/Top-5 정확도에서 여러 최첨단 백본을 능가합니다.
  • ResNet/ResNeXt 백본에서 3x3 컨볼루션을 CoT 블록으로 교체하면 FLOPs가 비슷하거나 더 낮은 수준에서 정확도가 더 높아집니다.
  • CoTNet-50, CoTNeXt-50, CoTNet-101, CoTNeXt-101은 기본 학습 설정에서 동료들보다 우수한 Top-1 정확도를 달성합니다(예: CoTNeXt-50 79.5% Top-1, 94.5% Top-5).
  • 고급 학습 하에서 CoTNet-50/101 및 CoTNeXt-50/101 이 높은 Top-1 정확도에 도달하며, CoTNeXt-101은 83.2% Top-1을 달성합니다.
  • CoTNeXt-50/101 변형은 유사 FLOPs 대비 정확도가 우수하며 SE-CoTNetD-152는 경쟁력 있는 효율성으로 강력한 성과를 보입니다.
  • 추론 시 분석에서 CoTNet 모델이 여러 베이스라인에 비해 정확도-시간 트레이드오프가 더 좋음을 보여줍니다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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