[논문 리뷰] mGPT: Few-Shot Learners Go Multilingual
mGPT는 61개 언어로 사전 학습된 다국어 GPT-3 스타일의 autoregressive 모델로, 언어 모델링, 다국어 NLU 및 지식 탐색 평가에서 동시대 모델과 비교 가능한 in-context 학습 성능을 보여준다.
Recent studies report that autoregressive language models can successfully solve many NLP tasks via zero- and few-shot learning paradigms, which opens up new possibilities for using the pre-trained language models. This paper introduces two autoregressive GPT-like models with 1.3 billion and 13 billion parameters trained on 60 languages from 25 language families using Wikipedia and Colossal Clean Crawled Corpus. We reproduce the GPT-3 architecture using GPT-2 sources and the sparse attention mechanism; Deepspeed and Megatron frameworks allow us to parallelize the training and inference steps effectively. The resulting models show performance on par with the recently released XGLM models by Facebook, covering more languages and enhancing NLP possibilities for low resource languages of CIS countries and Russian small nations. We detail the motivation for the choices of the architecture design, thoroughly describe the data preparation pipeline, and train five small versions of the model to choose the most optimal multilingual tokenization strategy. We measure the model perplexity in all covered languages and evaluate it on the wide spectre of multilingual tasks, including classification, generative, sequence labeling and knowledge probing. The models were evaluated with the zero-shot and few-shot methods. Furthermore, we compared the classification tasks with the state-of-the-art multilingual model XGLM. source code and the mGPT XL model are publicly released.
연구 동기 및 목표
- GPT-3에서 영감을 받아 CIS를 포함한 다수의 언어와 저자원 언어를 포함하는 대규모 다국어 자기회귀 LM을 개발한다.
- 계통적으로 다양한 코퍼스(Wikipedia와 C4)를 대상으로 데이터 품질을 높이기 위해 신중한 데이터 필터링 및 중복 제거를 수행하며 사전 학습한다.
- 다양한 언어에서 내부적(언어 모델링) 및 외부적(다운스트림, 지식 탐색) 성능을 평가한다.
- 모델 크기, 사전 학습 데이터, 토큰화가 다국어 일반화 및 교차언어 전이에 미치는 영향을 분석한다.
제안 방법
- 위키피디아와 C4를 코퍼스로 사용하여 25개 언어 계통의 61개 언어에서 다국어 GPT-3 스타일의 LM을 사전 학습한다.
- 데이터 파이프라인은 64비트 해시를 이용한 중복 제거와 압축 기반 휴리스틱 및 언어 비의존 분류기를 사용한 선별을 포함한다.
- 다섯 가지 토큰화 전략의 조사; 보유 Wikipedia perplexity(Equation 1)에 근거한 선택.
- 구조적 설정은 번갈아 가며 밀집 및 희소 계층에서 희소 어텐션으로 GPT-3 규모를 모사한다.
- 훈련 세부사항: per-step 배치 2048, 600k 스텝, 400B 토큰 시현, V100 클러스터에서 14–22일.
실험 결과
연구 질문
- RQ161개 언어로 사전 학습된 다국어 자기회귀 LM이 일부 기준선보다 더 적은 매개변수로도 경쟁력 있는 in-context 학습을 달성할 수 있는가?
- RQ2언어 계통, 문자 체계, 데이터 양이 perplexity와 다운스트림 다국어 성능에 어떤 영향을 미치는가?
- RQ3모델 크기(1.3B 대 13B)와 토큰화 전략이 언어 모델링 및 교차언어 작업에 미치는 영향은 무엇인가?
- RQ4다양한 언어에 걸친 교차언어 NLU 벤치마크 및 지식 탐색 작업에서 mGPT의 성능은 얼마나 잘 나타나는가?
- RQ5컨텍스트 내 시연이 작업과 언어 전반에서 성능을 향상시키는가 아니면 저하시기는가?
주요 결과
- mGPT-1.3B는 더 적은 매개변수로 더 많은 언어를 커버하면서 XGLM-1.7B와 등가적이다.
- mGPT-13B는 대부분의 언어 및 언어 계통군에서 최상위 perplexities를 달성하며, 특히 Dravidian, Indo-Aryan, Slavic, Sino-Tibetan 계통에서 두드러진다.
- 시연( demonstrations)을 늘리면 mGPT와 XGLM 모두 제로샷 및 파샷 설정에서 성능이 저하될 수 있다.
- 혐오 발언 탐지는 여전히 도전적이며 제로샷/파샷 설정에서 무작위에 가까운 성능에 머무르는 경우가 많다.
- 외부 검증에서 mGPT-1.3B가 SuperGLUE 작업에서 일부 대형 LMs보다 더 우수할 수 있으며 다국어 형태소 작업에도 기여한다; 모델/코드는 MIT 라이선스 하에 공개된다.
- 작업 전반에 걸쳐 비라틴 문자 및 저자원 언어에서 성능이 약하고, 더 큰 사전 학습 데이터가 모든 언어에서 균일하게 성능을 향상시키지 않는다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.