[논문 리뷰] Bridging the Gap Between Vision Transformers and Convolutional Neural Networks on Small Datasets
본 논문은 Dynamic Hybrid Vision Transformer (DHVT)을 제시한다. 이는 합성곱 패치 임베딩, 동적 집계 FFN, 그리고 CNN 대비 작은 데이터셋에서 처음부터 학습할 때의 간극을 좁히기 위한 헤드 토큰을 갖춘 비계층적 ViT이다. 작은 데이터셋에서 CIFAR-100에 대해 최첨단 결과를, ImageNet-1K에서 경쟁력 있는 결과를 달성한다.
There still remains an extreme performance gap between Vision Transformers (ViTs) and Convolutional Neural Networks (CNNs) when training from scratch on small datasets, which is concluded to the lack of inductive bias. In this paper, we further consider this problem and point out two weaknesses of ViTs in inductive biases, that is, the spatial relevance and diverse channel representation. First, on spatial aspect, objects are locally compact and relevant, thus fine-grained feature needs to be extracted from a token and its neighbors. While the lack of data hinders ViTs to attend the spatial relevance. Second, on channel aspect, representation exhibits diversity on different channels. But the scarce data can not enable ViTs to learn strong enough representation for accurate recognition. To this end, we propose Dynamic Hybrid Vision Transformer (DHVT) as the solution to enhance the two inductive biases. On spatial aspect, we adopt a hybrid structure, in which convolution is integrated into patch embedding and multi-layer perceptron module, forcing the model to capture the token features as well as their neighboring features. On channel aspect, we introduce a dynamic feature aggregation module in MLP and a brand new "head token" design in multi-head self-attention module to help re-calibrate channel representation and make different channel group representation interacts with each other. The fusion of weak channel representation forms a strong enough representation for classification. With this design, we successfully eliminate the performance gap between CNNs and ViTs, and our DHVT achieves a series of state-of-the-art performance with a lightweight model, 85.68% on CIFAR-100 with 22.8M parameters, 82.3% on ImageNet-1K with 24.0M parameters. Code is available at https://github.com/ArieSeirack/DHVT.
연구 동기 및 목표
- ViTs가 작은 데이터셋에서 학습을 처음부터 수행할 때 공간적 관련성 및 채널 표현의 약한 귀납 편향으로 CNN에 미치는 성능 저하를 식별한다.
- 공간 로컬성 및 채널 상호작용을 강화하여 데이터 효율성을 개선하는 하이브리드 구조(DHVT)를 제안한다.
- 지역 특징과 채널 단위 표현의 융합을 통한 robust한 분류를 위한 메커니즘(SOPE, DAFF, head tokens)을 도입한다.
- 가벼운 모델로 CIFAR-100에서 최첨단 성능을, ImageNet-1K에서도 경쟁력 있는 성능을 보여 CNN 및 다른 ViT 대비 강건한 결과를 제시한다.
제안 방법
- 컨볼루션을 패치 임베딩에 통합하고 세밀한 특징을 보존하기 위한 Sequential Overlapping Patch Embedding (SOPE).
- FFN 내에 depth-wise conv를 사용하고 클래스 토큰에 대한 squeeze-excitation 유사 채널 재보정으로 Dynamic Aggregation Feed Forward (DAFF) 구현.
- 헤드 토큰 메커니즘으로 주의 컨텍스트 간 상호 작용을 가능하게 하고 다양한 채널 표현을 융합한다.
- Head-Interacted Multi-Head Self-Attention (HI-MHSA)은 MHSA 전에 패치 토큰, 클래스 토큰과 함께 헤드 토큰을 연결(concatenate)한다.
- 공유 인코더 구성의 비계층적 DHVT 블록으로, 가변 토큰 길이를 허용하며 처음부터 학습이 효율적이다.
실험 결과
연구 질문
- RQ1공간적 관련성 강화와 다양한 채널 표현이 작은 데이터셋에서 ViTs와 CNN 간의 데이터 효율성 차이를 줄일 수 있는가?
- RQ2패치 임베딩 및 MLP에 합성곱을 통합하면 ViT의 저수준 특징 보존 및 로컬 컨텍스트 학습이 향상되는가?
- RQ3다이나믹 토큰 메커니즘(DAFF와 head tokens)이 채널 상호 작용을 강화하여 더 강력한 전체 표현을 생성하는가?
- RQ4DHVT는 CIFAR-100, DomainNet의 소규모 도메인, ImageNet-1K에서 CNN 및 다른 ViT와 비교해 처음부터 학습했을 때 어떤 성능을 보이는가?
주요 결과
- DHVT는 CIFAR-100과 같은 작은 데이터셋에서 CNN과 ViT 간의 성능 차이를 좁히며 22.8M 파라미터(Small 모델)로 85.68%를 달성한다.
- DHVT-T는 83.54%, DHVT-S는 CIFAR-100에서 85.68%를 달성하여 Scratch 학습하에서 강력한 CNN 및 ViT 기준선을 능가한다.
- ImageNet-1K에서 DHVT-S는 24.0M 파라미터로 82.3%의 정확도에 도달하여 Scratch 학습된 비계층적 ViT로서 강력한 결과를 보인다.
- SOPE, DAFF, head tokens 조합은 상당한 이점을 제공하며, CIFAR-100에서 모든 구성요소를 사용했을 때 최대 +13.26의 정확도 증가를 보이는 차단 실험이 존재한다.
- Head tokens는 주의 헤드 간 상호 작용을 가능하게 하여 특징 융합 및 분류 성능을 향상시킨다.
- DHVT는 DomainNet의 소규모 도메인 데이터셋(ClipArt, Painting, Sketch)에서 경쟁력 있는 결과를 보이며 이 설정에서 ResNet-50 기반선보다 우수한 성과를 보인다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.