MAE(Masked Autoencoders) 대비, 처리속도 16배 빨라
지난 1월 메타(Meta)는 음성, 이미지, 텍스트를 동일한 방식으로 학습하는 자기지도학습(Self-supervised learning) 알고리즘 '데이터투벡(Data2vec)'을 세계 최초로 공개했다. 여러 모달리티를 동일한 방식으로 인지하는 데이터투벡은 음성, 이미지, 텍스트 등의 각각의 학습 과정을 통합하여 진행했다.
기존에는 컴퓨터가 모달리티를 이해할 수 있도록 각자의 모달리티에 적합한 알고리즘을 적용했다. 이미지데이터는 이미지 픽셀비트를 낮춰 팔렛으로 데이터 변형했고, 음성데이터는 멜스펙트로그램(mel spectrogram)을 통해 데이터를 변형했다. 텍스트는 토큰화(tokenization) 기법을 통해 데이터를 변환했다. 이미지, 음성, 텍스트 변형에 필요한 과정이 제각각이었다.
데이터투벡은 교사모드(이하 교사), 학생모드(이하 학생)로 구분하여 모달리티 데이터를 변형한다. 음성, 이미지, 텍스트 데이터에는 마스킹이 부여된다. 교사는 마스킹을 처리하는 역할을 하며, 학생는 모달리티의 마스킹을 풀어내기 위해 추측하며 정보를 학습한다. 마스킹을 풀어내고 처리하는 알고리즘은 음성, 이미지, 텍스트 모달리티에 동시에 적용할 수 있다.
데이터투벡이 공개된 지 1년이 되는 시점, 메타는 데이터투벡 대비 16배 속도가 향상된 데이터투벡2.0를 공개했다. 새로운 버전의 데이터투벡2.0은 ▲트레이닝 샘플을 위해 구축된 데이터가 마스킹에 적용되어 계산에 소요되는 시간과 에너지를 줄이고 ▲트레이닝 샘플의 공백 부분에 대해 학습 인코더 네트워크를 실행하지 않음으로써 계산 리소스 낭비를 막았다 ▲다중 컨볼루션 네트워크는 디코더 모델이 개선된 트랜스모머 네트워크에서 작동한다.
메타에서 데이터투벡 2.0 효율을 기존 버전과 비교하기 위해 테스트를 진행했다. ImageNet-1K를 통해 확인한 이미지 처리 속도 부문에서는 MAE(Masked Autoencoders) 와 동일한 정확도를 유지하면서 속도는 16배 빨랐다. 음성부문에서는 Wav2vec 2.0대비 11배 빨랐다. 언어(텍스트)부문에서는 BERT 대비 학습속도가 반으로 줄었다.
메타는 효율성과 속도가 향상된 데이터투벡2.0을 오픈소스로 공개 중이다.
[Summarizing in English]
Meta releases data2vec 2.0 that is 16x faster than MAE
To get a better understanding of how much more efficient data2vec 2.0 is than its predecessor and other algorithms, Meta tested it on computer vision, speech, and text tasks on widely used benchmarks.
For computer vision, we evaluated data2vec 2.0 on the standard ImageNet-1K image classification benchmark, where it learned to represent images. Data2vec 2.0 can equal the accuracy of masked autoencoders (MAE) but is 16x faster (measured in wall clock time in a like-for-like setting). If we give the algorithm more time, it can achieve even higher accuracy while still being faster than MAE.
For speech, we tested it on the LibriSpeech speech recognition benchmark, where it performed more than 11 times faster than wav2vec 2.0 with similar accuracy.
For natural language processing (NLP), we evaluated data2vec 2.0 on the popular General Language Understanding Evaluation (GLUE) benchmark, where it achieved the same accuracy as RoBERTa, a reimplementation of BERT, in half the training time.
