[논문 리뷰] Accelerating Training of Transformer-Based Language Models with Progressive Layer Dropping
본 논문은 Switchable-Transformer 블록과 점진적 스케줄링을 갖춘 Progressive Layer Dropping (PLD)을 도입하여 추가 하드웨어 없이 BERT를 더 빠르게 학습시키고, 최대 2.5배 빠른 프리트레이닝과 경쟁력 있는 다운스트림 성능을 달성합니다.
Recently, Transformer-based language models have demonstrated remarkable performance across many NLP domains. However, the unsupervised pre-training step of these models suffers from unbearable overall computational expenses. Current methods for accelerating the pre-training either rely on massive parallelism with advanced hardware or are not applicable to language modeling. In this work, we propose a method based on progressive layer dropping that speeds the training of Transformer-based language models, not at the cost of excessive hardware resources but from model architecture change and training technique boosted efficiency. Extensive experiments on BERT show that the proposed method achieves a 24% time reduction on average per sample and allows the pre-training to be 2.5 times faster than the baseline to get a similar accuracy on downstream tasks. While being faster, our pre-trained models are equipped with strong knowledge transferability, achieving comparable and sometimes higher GLUE score than the baseline when pre-trained with the same number of samples.
연구 동기 및 목표
- Transformer 기반 언어 모델의 프리트레이닝 시간을 대폭 줄이는 것을 동기화
- 스톱스틱 디프가 Transformer 프리트레이닝의 안정성을 저해하는지, 이를 어떻게 안정화할 수 있는지 조사
- 프리트레이닝 도중 레이어 드롭을 가능하게 하는 아키텍처 및 학습 혁신 제안
- GLUE 태스크에서 BERT의 효율성 및 전이 성능 시연, 향상된 전이 성능 확보
제안 방법
- identity-mapped PreLN 및 게이트를 사용해 학습 중 서브레이어를 on/off로 전환하는 Switchable-Transformer(ST) 블록 도입
- 학습이 진행될수록 레이어 드롭 확률이 점진적으로 증가하는 스케줄 도입(깊이에 따른 드롭 확률 포함)
- 각 서브레이어에 Bernoulli 게이트 G를 사용하고 활성화 시 기여도를 기대값으로 유지하기 위해 출력에 1/p로 스케일링
- 학습 중 깊이에 따라 글로벌 유지 확률을 분배해 하위 레이어를 더 자주 유지하도록 구성
- BERT-Base 모델을 처음부터 학습시키고 프리트레이닝 효율성과 GLUE 전이 성능을 평가
- PreLN vs PostLN 및 스케줄링 상세에 대한 비교 분석 및 표준 BERT 프리트레이닝과의 비교
실험 결과
연구 질문
- RQ1레이어 드롭이 Transformer 기반 프리트레이닝의 안정성 및 학습 역학에 어떤 영향을 미치는가?
- RQ2아키텍처 변화(PreLN, ST 블록)가 일부 레이어를 드롭할 때 학습을 안정화하는가?
- RQ3BERT에 Progressive Layer Dropping을 적용했을 때 학습 속도와 다운스트림 태스크 성능 사이의 trade-off는 무엇인가?
- RQ4PLD가 기본 프리트레이닝 대비 다운스트림 태스크로의 지식 전달을 개선하는가?
주요 결과
- PLD는 샘플당 약 24%의 프리트레이닝 속도 향상과 유사한 다운스트림 정확도 달성을 위한 약 2.5배의 프리트레이닝 속도 향상을 달성합니다
- PreLN을 갖춘 Switchable-Transformer를 사용하면 Layer Dropping 하에서 PostLN 대비 학습 안정성이 개선됩니다
- 깊이에 따른 드롭 확률이 포함된 점진적 유지율 스케줄은 대규모 하드웨어 없이도 효율적인 학습을 가능하게 합니다
- GLUE 결과는 같은 샘플 수로 프리트레이닝한 경우 기본 대비 전이 성능이 경쟁력 있거나 약간 향상되는 것으로 나타납니다
- PLD는 다수의 GLUE 태스크에서 미세조정 성능이 견고하게 유지되며 프리트레이닝 시 더 큰 학습률에서도 더 강한 안정성을 보여줍니다
- 특정 Ablation에서 PreLN만으로는 PLD 조합보다 느리고 덜 효과적임이 확인되어 제안된 일정과 아키텍처의 이점이 확인됩니다
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.