Guardado en:
Detalles Bibliográficos
Autores principales: Li, Jingyang, Ding, Kuangyu, Toh, Kim-Chuan, Zhou, Pan
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:https://arxiv.org/abs/2412.10663
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910871271243776
author Li, Jingyang
Ding, Kuangyu
Toh, Kim-Chuan
Zhou, Pan
author_facet Li, Jingyang
Ding, Kuangyu
Toh, Kim-Chuan
Zhou, Pan
contents Preconditioned stochastic optimization algorithms, exemplified by Shampoo, outperform first-order optimizers by offering theoretical convergence benefits and practical gains in large-scale neural network training. However, they incur substantial memory overhead due to the storage demands of non-diagonal preconditioning matrices. To address this, we introduce 4-bit quantization for Shampoo's preconditioners. We introduce two key methods: First, we apply Cholesky decomposition followed by quantization of the Cholesky factors, reducing memory usage by leveraging their lower triangular structure while better preserving spectral properties to minimize information loss. To our knowledge, this is the first quantization approach applied to Cholesky factors of preconditioners. Second, we incorporate error feedback in the quantization process, efficiently storing Cholesky factor and error state in the lower and upper triangular parts of the same matrix. Through extensive experiments, we demonstrate that combining Cholesky quantization with error feedback enhances memory efficiency and algorithm performance in large-scale deep-learning tasks. Theoretically, we also provide convergence proofs for quantized Shampoo under both smooth and non-smooth stochastic optimization settings.
format Preprint
id arxiv_https___arxiv_org_abs_2412_10663
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Memory-Efficient 4-bit Preconditioned Stochastic Optimization
Li, Jingyang
Ding, Kuangyu
Toh, Kim-Chuan
Zhou, Pan
Machine Learning
Computer Vision and Pattern Recognition
Optimization and Control
Preconditioned stochastic optimization algorithms, exemplified by Shampoo, outperform first-order optimizers by offering theoretical convergence benefits and practical gains in large-scale neural network training. However, they incur substantial memory overhead due to the storage demands of non-diagonal preconditioning matrices. To address this, we introduce 4-bit quantization for Shampoo's preconditioners. We introduce two key methods: First, we apply Cholesky decomposition followed by quantization of the Cholesky factors, reducing memory usage by leveraging their lower triangular structure while better preserving spectral properties to minimize information loss. To our knowledge, this is the first quantization approach applied to Cholesky factors of preconditioners. Second, we incorporate error feedback in the quantization process, efficiently storing Cholesky factor and error state in the lower and upper triangular parts of the same matrix. Through extensive experiments, we demonstrate that combining Cholesky quantization with error feedback enhances memory efficiency and algorithm performance in large-scale deep-learning tasks. Theoretically, we also provide convergence proofs for quantized Shampoo under both smooth and non-smooth stochastic optimization settings.
title Memory-Efficient 4-bit Preconditioned Stochastic Optimization
topic Machine Learning
Computer Vision and Pattern Recognition
Optimization and Control
url https://arxiv.org/abs/2412.10663