Skip to main content
QUICK REVIEW

[논문 리뷰] Rethinking Patch Dependence for Masked Autoencoders

Letian Fu, Long Lian|arXiv (Cornell University)|2024. 01. 25.
Generative Adversarial Networks and Image SynthesisComputer Science인용 수 3
한 줄 요약

이 논문은 마스크된 패치 간의 자기주의(self-attention)를 보이는 토큰으로의 교차주의(cross-attention)로 대체하여 부분 재구성과 다중 수준 인코더 특징의 동적 사용을 가능하게 하는 새로운 마스크된 오토에인코더 프레임워크인 CrossMAE를 제안한다. CrossMAE는 성능이 MAE와 동등하거나 이를 뛰어넘으면서도 복원 계산량을 2.5–3.7× 감소시켜, 강력한 표현 학습을 위해 패치 간 자기주의가 필수적이지 않음을 입증한다.

ABSTRACT

In this work, we examine the impact of inter-patch dependencies in the decoder of masked autoencoders (MAE) on representation learning. We decompose the decoding mechanism for masked reconstruction into self-attention between mask tokens and cross-attention between masked and visible tokens. Our findings reveal that MAE reconstructs coherent images from visible patches not through interactions between patches in the decoder but by learning a global representation within the encoder. This discovery leads us to propose a simple visual pretraining framework: cross-attention masked autoencoders (CrossMAE). This framework employs only cross-attention in the decoder to independently read out reconstructions for a small subset of masked patches from encoder outputs. This approach achieves comparable or superior performance to traditional MAE across models ranging from ViT-S to ViT-H and significantly reduces computational requirements. By its design, CrossMAE challenges the necessity of interaction between mask tokens for effective masked pretraining. Code and models are publicly available: https://crossmae.github.io

연구 동기 및 목표

  • MAE에서 마스크된 패치 간 자기주의가 효과적인 시각적 표현 학습을 위해 필수적인가를 조사하는 것.
  • 마스크된 토큰의 부분 재구성을 통해 마스크된 오토에인코딩의 계산 비용을 줄이는 것.
  • 마지막 레이어가 아닌 다수의 수준의 인코더 특징을 활용함으로써 표현 학습을 향상시키는 것.
  • 고해상도 이미지나 영상과 같은 더 긴 시퀀스로 마스크된 오토에인코딩을 확장하기 위해 디코더의 시퀀스 길이와 FLOPS를 줄이는 것.

제안 방법

  • 표준 자기주의 디코더를 마스크된 패치를 재구성하기 위해 보이는 토큰을 쿼리하는 교차주의 메커니즘으로 대체한다.
  • 각 마스크된 토큰의 복원이 조건부 독립이 되도록 하여 훈련 중에 일부 패치만 재구성할 수 있도록 하여 부분 재구성을 가능하게 한다.
  • 각 디코더 블록이 초기 및 후기 블록의 다양한 인코더 특징 맵을 동적으로 참조할 수 있도록 경량의 블록 간 주의 메커니즘을 도입한다.
  • 잔차 연결과 선형 재구성 헤드를 사용하여 최종 재구성을 각 디코더 블록의 기여도로 분해함으로써 블록별 시각화를 가능하게 한다.
  • 효율성을 높이기 위해 주요 실험에서 25%의 예측 비율을 사용한다.
  • 주의 맵과 블록별 기여도를 시각화하여 각 디코더 블록과 인코더 특징이 재구성에 어떻게 기여하는지 분석한다.
Figure 1 : Method Overview . (A) Masked autoencoder (MAE) starts by masking random patches of the input image. (B) To reconstruct a mask token (i.e. marked by the blue star), MAE attends to both the masked tokens (B.Left) and the visible tokens (B.Right). A quantitative comparison over the ImageNet
Figure 1 : Method Overview . (A) Masked autoencoder (MAE) starts by masking random patches of the input image. (B) To reconstruct a mask token (i.e. marked by the blue star), MAE attends to both the masked tokens (B.Left) and the visible tokens (B.Right). A quantitative comparison over the ImageNet

실험 결과

연구 질문

  • RQ1마스크된 오토에인코더에서 마스크된 패치 간 자기주의가 강력한 시각적 표현 학습을 위해 진정으로 필수적인가?
  • RQ2전체 마스크된 패치를 재구성하지 않고 일부 패치만 재구성해도 다운스트림 성능에 손상이 가지 않는가?
  • RQ3블록 간 주의를 통해 다수 수준의 인코더 특징을 활용하면 마지막 인코더 레이어만 사용하는 것보다 표현 학습이 향상되는가?
  • RQ4고해상도 이미지와 같은 더 긴 입력 시퀀스로 확장할 수 있으며, 계산 비용을 줄일 수 있는가?

주요 결과

  • CrossMAE는 ImageNet 분류에서 83.5%의 top-1 정확도를 달성하여 전체 재구성 MAE 기준보다 뛰어난 성능을 보였다.
  • COCO 인스턴스 세그멘테이션에서 CrossMAE는 52.1 AP와 46.3 AP를 기록하여 동일한 계산 예산에서 MAE를 능가했다.
  • CrossMAE는 성능을 유지하거나 향상시키면서도 MAE 대비 복원 FLOPS를 2.5~3.7배 감소시켰다.
  • 모델은 더 긴 시퀀스로 잘 일반화된다: 224×224에서 83.5%였던 분류 정확도가 448×448 해상도에서 84.1%로 증가하여 확장성이 뛰어나다는 것을 보여주었다.
  • 블록별 시각화 결과 후기 디코더 블록이 고주파 성분에 가장 크게 기여함을 확인하여 다수 수준의 특징 융합의 필요성을 검증했다.
  • 블록 간 주의 맵은 후기 디코더 블록이 초기 인코더 특징을 참조하고, 초기 블록은 후기 특징을 참조함을 보여주어 동적 특징 혼합이 실제로 이루어짐을 확인했다.
Figure 2 : Example reconstructions of ImageNet validation images. For each set of 5 images, from left to right, are the original image, masked image with a mask ratio of 75%, MAE [ 31 ] , CrossMAE (trained to reconstruct 25% of image tokens, or 1/3 of the mask tokens), and CrossMAE (trained to recon
Figure 2 : Example reconstructions of ImageNet validation images. For each set of 5 images, from left to right, are the original image, masked image with a mask ratio of 75%, MAE [ 31 ] , CrossMAE (trained to reconstruct 25% of image tokens, or 1/3 of the mask tokens), and CrossMAE (trained to recon

이 논문 읽기

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

누빈트에서 이 논문 읽기

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