Skip to main content
QUICK REVIEW

[논문 리뷰] Efficient Language Model Training through Cross-Lingual and Progressive Transfer Learning

Malte Ostendorff, Georg Rehm|arXiv (Cornell University)|2023. 01. 23.
Topic ModelingComputer Science인용 수 15
한 줄 요약

CLP-Transfer는 소스 언어의 대형 모델과 더 작은 목표 언어 모델로부터 대형 목표 언어 모델을 초기화하고 가중치를 재사용하며 임베딩 정렬을 통해 성능을 유지하거나 개선하면서 상당한 학습 절감을 달성합니다.

ABSTRACT

Most Transformer language models are primarily pretrained on English text, limiting their use for other languages. As the model sizes grow, the performance gap between English and other languages with fewer compute and data resources increases even further. Consequently, more resource-efficient training methods are needed to bridge the gap for languages with fewer resources available. To address this problem, we introduce a cross-lingual and progressive transfer learning approach, called CLP-Transfer, that transfers models from a source language, for which pretrained models are publicly available, like English, to a new target language. As opposed to prior work, which focused on the cross-lingual transfer between two languages, we extend the transfer to the model size. Given a pretrained model in a source language, we aim for a same-sized model in a target language. Instead of training a model from scratch, we exploit a smaller model that is in the target language but requires much fewer resources. Both small and source models are then used to initialize the token embeddings of the larger model based on the overlapping vocabulary of the source and target language. All remaining weights are reused from the model in the source language. This approach outperforms the sole cross-lingual transfer and can save up to 80% of the training steps compared to the random initialization.

연구 동기 및 목표

  • 비영어권 언어의 성능 차이를 줄이고 대형 언어 모델의 리소스 효율적인 학습을 가능하게 한다.
  • 모델 크기에 대해 교차 언어 전이를 확장하여 동일 크기의 목표 언어 모델을 효율적으로 학습할 수 있게 한다.
  • 소스 언어 트랜스포머 가중치를 재사용하면서 대형 목표 언어 모델의 임베딩 초기화를 돕기 위해 작은 목표 언어 모델을 활용한다.

제안 방법

  • 소스 대형 모델 W_s^{(large)}로부터 대형 목표 모델 가중치 W_t^{(large)}를 초기화한다.
  • V_s ∩ V_t에 속하는 토큰에 대해 겹치는 토큰 임베딩 V_t^{(large)}를 V_s^{(large)}로부터 초기화한다.
  • 겹치지 않는 토큰의 경우, 겹치는 임베딩의 가중 평균으로 임베딩을 초기화하며 유사도 기반 가중 함수 δ(v, v̂)를 사용한다.
  • 언어 간 및 크기 간 임베딩 전이를 가능하게 하려면 어휘의 상당한 중복과 비슷한 임베딩 공간을 가정한다.
  • 독일어를 목표 언어로 삼아 디코더 전용 GPT-2 및 BLOOM 아키텍처로 평가하고, From-scratch 및 WECHSEL 베이스라인과 비교한다.
Figure 1: Similarity of token embeddings of different OPT model sizes measured as overlapping $k=10$ nearest neighbors for all tokens in the vocabulary.
Figure 1: Similarity of token embeddings of different OPT model sizes measured as overlapping $k=10$ nearest neighbors for all tokens in the vocabulary.

실험 결과

연구 질문

  • RQ1교차 언어 전이를 타깃 언어의 모델 크기와 일치하도록 확장하는 것이 가능할까(언어 간이 아닌 같은 크기의 모델 간 확장)?
  • RQ2소형 타깃 언어 모델과 소스 대형 모델을 함께 사용하는 것이 전통적인 교차 언어 전이와 비교해 학습 효율과 최종 성능을 향상시킬까?
  • RQ3CLP-Transfer를 독일어 GPT-2 및 BLOOM 모델에 적용했을 때 학습 토큰 절약 및 perplexity 측면의 실용적 이점은 무엇인가?

주요 결과

  • CLP-Transfer는 GPT-2-XL 독일어(1.5B)에서 전체 학습 토큰의 절반만으로도 From-scratch 학습 성능과 동등하거나 이를 능가하고, BLOOM-CLP 독일어(6.4B)에서는 20%로 동등한 성과를 달성한다.
  • GPT-2의 경우 CLP-Transfer는 약 50%의 토큰 후에 From-scratch 학습과 동일한 perplexity에 도달하며 WECHSEL은 뒤처진다.
  • BLOOM의 경우 CLP-Transfer는 약 20%의 토큰 후에 동일한 perplexity에 도달하여 최대 약 80%의 학습 절감을 시사한다.
  • 제로샷 다운스트림 작업에서 BLOOM-CLP 6.4B는 독일어 단일 모델들 중 평균이 가장 높으며(0.43) 여러 베이스라인을 능가한다.
  • 전반적으로 CLP-Transfer는 다수의 아키텍처와 스케일에서 베이스라인에 비해 효율이 향상되었고 다운스트림 성능에서도 경쟁력 있거나 우수하다.
Figure 2: GPT2-XL German (1.5B parameters). Validation perplexity w.r.t. the number of consumed tokens comparing from-scratch training (random initialization), WECHSEL (cross-lingual transfer), and our CLP-Transfer approach. CLP-Transfer achieves the same PPL as from-scratch training but already aft
Figure 2: GPT2-XL German (1.5B parameters). Validation perplexity w.r.t. the number of consumed tokens comparing from-scratch training (random initialization), WECHSEL (cross-lingual transfer), and our CLP-Transfer approach. CLP-Transfer achieves the same PPL as from-scratch training but already aft

이 논문 읽기

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

누빈트에서 이 논문 읽기

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