HLQ: Fast and Efficient Backpropagation via Hadamard Low-rank Quantization

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Kim, Seonggon, Park, Eunhyeok
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866917700607934464
author Kim, Seonggon
Park, Eunhyeok
author_facet Kim, Seonggon
Park, Eunhyeok
contents With the rapid increase in model size and the growing importance of various fine-tuning applications, lightweight training has become crucial. Since the backward pass is twice as expensive as the forward pass, optimizing backpropagation is particularly important. However, modifications to this process can lead to suboptimal convergence, so training optimization should minimize perturbations, which is a highly challenging task. In this study, we introduce a novel optimization strategy called Hadamard Low-rank Quantization (HLQ), focusing on reducing the cost of backpropagation in convolutional and linear layers. We first analyze the sensitivity of gradient computation with respect to activation and weight, and judiciously design the HLQ pipeline to apply 4-bit Hadamard quantization to the activation gradient and Hadamard low-rank approximation to the weight gradient. This combination was found to be the best for maximizing benefits, and our extensive experiments demonstrate the outstanding performance of HLQ in both training from scratch and fine-tuning, achieving significant memory savings and acceleration on real GPUs with negligible quality degradation.
format Preprint
id arxiv_https___arxiv_org_abs_2406_15102
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle HLQ: Fast and Efficient Backpropagation via Hadamard Low-rank Quantization
Kim, Seonggon
Park, Eunhyeok
Computer Vision and Pattern Recognition
Machine Learning
With the rapid increase in model size and the growing importance of various fine-tuning applications, lightweight training has become crucial. Since the backward pass is twice as expensive as the forward pass, optimizing backpropagation is particularly important. However, modifications to this process can lead to suboptimal convergence, so training optimization should minimize perturbations, which is a highly challenging task. In this study, we introduce a novel optimization strategy called Hadamard Low-rank Quantization (HLQ), focusing on reducing the cost of backpropagation in convolutional and linear layers. We first analyze the sensitivity of gradient computation with respect to activation and weight, and judiciously design the HLQ pipeline to apply 4-bit Hadamard quantization to the activation gradient and Hadamard low-rank approximation to the weight gradient. This combination was found to be the best for maximizing benefits, and our extensive experiments demonstrate the outstanding performance of HLQ in both training from scratch and fine-tuning, achieving significant memory savings and acceleration on real GPUs with negligible quality degradation.
title HLQ: Fast and Efficient Backpropagation via Hadamard Low-rank Quantization
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2406.15102