Introduction
Training large-scale Transformer models, such as GPT-3 and BERT, demands immense computational resources and time. While "token dropping"—skipping computations for a subset of tokens—has been explored to mitigate these costs, existing methods often introduce significant complexity. They frequently rely on calculating importance scores, require manual tuning for special tokens (like [CLS]), or are limited to specific architectures.
Random-LTD (Random and Layerwise Token Dropping) addresses these challenges by providing a simple, architecture-agnostic approach that randomly skips computations in middle layers. This method achieves up to 33.3% compute savings and a 25.6% reduction in wall-clock training time with negligible impact on accuracy across NLP and Vision tasks.
Methodology
The core innovation of Random-LTD lies in its simplicity and layer-wise independence. The approach consists of several key components:
Layerwise Token Dropping (LTD)
Unlike global token dropping, Random-LTD allows each layer to drop tokens independently. Because different layers process different subsets of tokens, the model maintains the ability to capture long-range dependencies across the entire sequence as information propagates.
Pure Randomness and the "Sandwich" Rule
Random-LTD eschews complex importance metrics. It simply shuffles token indices and selects a subset to retain. To ensure high-quality representations, the "Sandwich" rule is applied: the first and last layers always process the full sequence, while intermediate layers utilize the dropping mechanism.
Monotonic Sequence Length Growth (MSLG)
To stabilize early training, the model begins with a high drop rate (shorter effective sequences) and gradually increases the number of kept tokens. This Monotonic Sequence Length Growth (MSLG) reduces gradient noise during the initial phases of pretraining.
LayerToken Learning Rate Schedule
Standard iteration-based learning rate schedules are insufficient when sequence lengths vary. The authors introduce a schedule that decays based on the total number of "layer-tokens" processed, ensuring stable convergence regardless of the dropping rate.
Experimental Results
The effectiveness of Random-LTD was validated across GPT-3 (350M and 1.3B), BERT-large, and Vision Transformers (ViT).
Performance and Efficiency
In GPT-3 1.3B pretraining, Random-LTD saved 33.3% of theoretical compute and 25.6% of actual wall-clock time. Crucially, the zero-shot average accuracy remained nearly identical to the baseline (42.5% vs 42.7%). For BERT-large, the method even improved downstream task performance, likely acting as a form of regularization.
Vision Transformers
On ImageNet, Random-LTD achieved a Top-1 accuracy of 84.70%, comparable to the baseline's 84.65%, while saving 22.3% of layer-token computations. This demonstrates the method's versatility across different modalities.
Discussion and Limitations
Random-LTD's success stems from the "U-shape" sensitivity of Transformers, where middle layers are more robust to information loss than the input and output layers. Furthermore, the random dropping acts as a "coarse-grained dropout," providing a regularizing effect that can prevent overfitting on smaller datasets.
Current limitations include the use of uniform drop ratios across all intermediate layers and a simple linear MSLG schedule. Future work may explore automated, per-layer adaptive drop ratios and self-adaptive growth schedules based on loss convergence to further optimize training efficiency. Additionally, optimizing hardware kernels for sparse data movement could bridge the gap between theoretical compute savings and actual wall-clock time reductions.
Summary updated