Saved in:
Bibliographic Details
Main Authors: Hu, Pihe, Li, Shaolong, Huang, Longbo
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2408.11746
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909293075234816
author Hu, Pihe
Li, Shaolong
Huang, Longbo
author_facet Hu, Pihe
Li, Shaolong
Huang, Longbo
contents Large language models (LLMs) have made significant strides in complex tasks, yet their widespread adoption is impeded by substantial computational demands. With hundreds of billion parameters, transformer-based LLMs necessitate months of pretraining across a high-end GPU cluster. However, this paper reveals a compelling finding: transformers exhibit considerable redundancy in pretraining computations, which motivates our proposed solution, Mixed Sparsity Training (MST), an efficient pretraining method that can reduce about $75\%$ of Floating Point Operations (FLOPs) while maintaining performance. MST integrates dynamic sparse training (DST) with Sparsity Variation (SV) and Hybrid Sparse Attention (HSA) during pretraining, involving three distinct phases: warm-up, ultra-sparsification, and restoration. The warm-up phase transforms the dense model into a sparse one, and the restoration phase reinstates connections. Throughout these phases, the model is trained with a dynamically evolving sparse topology and an HSA mechanism to maintain performance and minimize training FLOPs concurrently. Our experiment on GPT-2 showcases a FLOP reduction of $4\times$ without compromising performance.
format Preprint
id arxiv_https___arxiv_org_abs_2408_11746
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Mixed Sparsity Training: Achieving 4$\times$ FLOP Reduction for Transformer Pretraining
Hu, Pihe
Li, Shaolong
Huang, Longbo
Machine Learning
Large language models (LLMs) have made significant strides in complex tasks, yet their widespread adoption is impeded by substantial computational demands. With hundreds of billion parameters, transformer-based LLMs necessitate months of pretraining across a high-end GPU cluster. However, this paper reveals a compelling finding: transformers exhibit considerable redundancy in pretraining computations, which motivates our proposed solution, Mixed Sparsity Training (MST), an efficient pretraining method that can reduce about $75\%$ of Floating Point Operations (FLOPs) while maintaining performance. MST integrates dynamic sparse training (DST) with Sparsity Variation (SV) and Hybrid Sparse Attention (HSA) during pretraining, involving three distinct phases: warm-up, ultra-sparsification, and restoration. The warm-up phase transforms the dense model into a sparse one, and the restoration phase reinstates connections. Throughout these phases, the model is trained with a dynamically evolving sparse topology and an HSA mechanism to maintain performance and minimize training FLOPs concurrently. Our experiment on GPT-2 showcases a FLOP reduction of $4\times$ without compromising performance.
title Mixed Sparsity Training: Achieving 4$\times$ FLOP Reduction for Transformer Pretraining
topic Machine Learning
url https://arxiv.org/abs/2408.11746