Skip to main content
QUICK REVIEW

[Paper Review] Random-LTD: Random and Layerwise Token Dropping Brings Efficient Training for Large-scale Transformers

Zhewei Yao, Xiaoxia Wu|arXiv (Cornell University)|Nov 17, 2022
Topic ModelingComputer Science4 citations
TL;DR

Random-LTD proposes a random and layerwise token dropping method that skips computation for randomly selected tokens across all middle transformer layers, eliminating the need for importance scoring or special token handling. It achieves up to 33.3% theoretical compute reduction and 25.6% wall-clock training time savings with comparable zero-shot performance on GPT-3 1.3B, while introducing a novel LayerToken learning rate schedule to improve convergence and reduce tuning overhead.

ABSTRACT

Large-scale transformer models have become the de-facto architectures for various machine learning applications, e.g., CV and NLP. However, those large models also introduce prohibitive training costs. To mitigate this issue, we propose a novel random and layerwise token dropping method (random-LTD), which skips the computation of a subset of the input tokens at all middle layers. Particularly, random-LTD achieves considerable speedups and comparable accuracy as the standard training baseline. Compared to other token dropping methods, random-LTD does not require (1) any importance score-based metrics, (2) any special token treatment (e.g., [CLS]), and (3) many layers in full sequence length training except the first and the last layers. Besides, a new LayerToken learning rate schedule is proposed for pretraining problems that resolve the heavy tuning requirement for our proposed training mechanism. Finally, we demonstrate that random-LTD can be applied to broader applications, including GPT and BERT pretraining as well as ViT and GPT finetuning tasks. Our results show that random-LTD can save about 33.3% theoretical compute cost and 25.6% wall-clock training time while achieving similar zero-shot evaluations on GPT-31.3B as compared to baseline.

Motivation & Objective

  • To reduce the prohibitive training costs of large-scale transformers in NLP and vision applications.
  • To eliminate reliance on importance scores or special token handling (e.g., [CLS]) in token dropping methods.
  • To enable token dropping across all middle layers, not just a subset, to maximize efficiency.
  • To reduce hyperparameter tuning burden through a new LayerToken-based learning rate schedule.
  • To validate the method across diverse tasks, including BERT, GPT, and ViT pretraining and fine-tuning.

Proposed method

  • Random-LTD drops tokens randomly at each middle transformer layer without using importance scores or special token preservation.
  • Each layer independently drops tokens, preserving cross-layer attention dependencies and avoiding full sequence length bottlenecks.
  • A monotonic sequence length growth schedule is introduced to reduce gradient noise and close the training-inference gap in autoregressive models.
  • A new LayerToken learning rate schedule scales learning rates based on cumulative token consumption per layer, improving convergence.
  • The method is applied uniformly across BERT, GPT, and ViT architectures for pretraining and fine-tuning.
  • The approach is shown to have a regularization effect, improving performance when combined with or replacing dropout.

Experimental results

Research questions

  • RQ1Can random and layerwise token dropping achieve significant training efficiency gains without relying on importance scores or special token handling?
  • RQ2How does random-LTD compare to baseline training in terms of compute cost, wall-clock time, and model accuracy across diverse architectures?
  • RQ3Can a LayerToken-based learning rate schedule effectively reduce tuning effort and improve convergence in random-LTD training?
  • RQ4Does random-LTD exhibit a regularization effect that enhances model generalization in pretraining and fine-tuning?
  • RQ5Can random-LTD be generalized across different transformer architectures and tasks, including causal LM and vision transformers?

Key findings

  • Random-LTD reduces theoretical compute cost by up to 33.3% and wall-clock training time by up to 25.6% on GPT-3 1.3B while maintaining similar zero-shot evaluation performance.
  • The method achieves comparable validation loss to the baseline when using the LayerToken learning rate schedule, outperforming standard learning rate schedules in random-LTD training.
  • On BERT large pretraining, random-LTD with no dropout achieves >1% higher accuracy on RACE-m than the standard baseline, indicating a regularization effect.
  • For GPT-3 1.3B, random-LTD with 2880B LayerTokens achieves similar performance to the baseline with 4320B LayerTokens, demonstrating effective budget utilization.
  • The LayerToken learning rate schedule significantly improves convergence, especially in later training phases, by adapting learning rates to per-layer token consumption.
  • Random-LTD shows consistent performance gains across diverse tasks, including BERT and GPT pretraining, and ViT fine-tuning, confirming its broad applicability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.