DropBP: Accelerating Fine-Tuning of Large Language Models by Dropping Backward Propagation

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Woo, Sunghyeon, Park, Baeseong, Kim, Byeongwook, Jo, Minjung, Kwon, Se Jung, Jeon, Dongsuk, Lee, Dongsoo
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915176006025216
author Woo, Sunghyeon
Park, Baeseong
Kim, Byeongwook
Jo, Minjung
Kwon, Se Jung
Jeon, Dongsuk
Lee, Dongsoo
author_facet Woo, Sunghyeon
Park, Baeseong
Kim, Byeongwook
Jo, Minjung
Kwon, Se Jung
Jeon, Dongsuk
Lee, Dongsoo
contents Large language models (LLMs) have achieved significant success across various domains. However, training these LLMs typically involves substantial memory and computational costs during both forward and backward propagation. While parameter-efficient fine-tuning (PEFT) considerably reduces the training memory associated with parameters, it does not address the significant computational costs and activation memory. In this paper, we propose Dropping Backward Propagation (DropBP), a novel approach designed to reduce computational costs and activation memory while maintaining accuracy. DropBP randomly drops layers during backward propagation, which is essentially equivalent to training shallow submodules generated by undropped layers and residual connections. Additionally, DropBP calculates the sensitivity of each layer to assign an appropriate drop rate, thereby stabilizing the training process. DropBP is not only applicable to full fine-tuning but can also be orthogonally integrated with all types of PEFT by dropping layers during backward propagation. Specifically, DropBP can reduce training time by 44% with comparable accuracy to the baseline, accelerate convergence to the same perplexity by 1.5x, and enable training with a sequence length 6.2x larger on a single NVIDIA-A100 GPU. Furthermore, our DropBP enabled a throughput increase of 79% on a NVIDIA A100 GPU and 117% on an Intel Gaudi2 HPU. The code is available at https://github.com/WooSunghyeon/dropbp.
format Preprint
id arxiv_https___arxiv_org_abs_2402_17812
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle DropBP: Accelerating Fine-Tuning of Large Language Models by Dropping Backward Propagation
Woo, Sunghyeon
Park, Baeseong
Kim, Byeongwook
Jo, Minjung
Kwon, Se Jung
Jeon, Dongsuk
Lee, Dongsoo
Machine Learning
Computation and Language
Large language models (LLMs) have achieved significant success across various domains. However, training these LLMs typically involves substantial memory and computational costs during both forward and backward propagation. While parameter-efficient fine-tuning (PEFT) considerably reduces the training memory associated with parameters, it does not address the significant computational costs and activation memory. In this paper, we propose Dropping Backward Propagation (DropBP), a novel approach designed to reduce computational costs and activation memory while maintaining accuracy. DropBP randomly drops layers during backward propagation, which is essentially equivalent to training shallow submodules generated by undropped layers and residual connections. Additionally, DropBP calculates the sensitivity of each layer to assign an appropriate drop rate, thereby stabilizing the training process. DropBP is not only applicable to full fine-tuning but can also be orthogonally integrated with all types of PEFT by dropping layers during backward propagation. Specifically, DropBP can reduce training time by 44% with comparable accuracy to the baseline, accelerate convergence to the same perplexity by 1.5x, and enable training with a sequence length 6.2x larger on a single NVIDIA-A100 GPU. Furthermore, our DropBP enabled a throughput increase of 79% on a NVIDIA A100 GPU and 117% on an Intel Gaudi2 HPU. The code is available at https://github.com/WooSunghyeon/dropbp.
title DropBP: Accelerating Fine-Tuning of Large Language Models by Dropping Backward Propagation
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2402.17812