Lossless Model Compression via Joint Low-Rank Factorization Optimization

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhang, Boyang, Cheng, Daning, Zhang, Yunquan, Liu, Fangming, Tian, Jiake
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908729152110592
author Zhang, Boyang
Cheng, Daning
Zhang, Yunquan
Liu, Fangming
Tian, Jiake
author_facet Zhang, Boyang
Cheng, Daning
Zhang, Yunquan
Liu, Fangming
Tian, Jiake
contents Low-rank factorization is a popular model compression technique that minimizes the error $δ$ between approximated and original weight matrices. Despite achieving performances close to the original models when $δ$ is optimized, a performance discrepancy remains due to the separate optimization processes for low-rank factorization and model performance, resulting in unavoidable losses. We address this issue by introducing a novel joint optimization strategy for lossless low-rank weight factorization, which, for the first time, enhances the model's performance beyond the original. Our approach begins with a theoretical analysis of the relationship between low-rank factorization and model optimization objectives, establishing a precise perturbation range for matrix factorization errors on model performance. This challenge is then reformulated as a numerical rank deficiency problem with inequality constraints and develop a joint objective that simultaneously addresses factorization error and model performance. Based on the above analysis, we propose two optimization algorithms: \textbf{a lossless optimization algorithm} that maximizes model accuracy while ensuring compression, and \textbf{a compact optimization algorithm} that minimizes model size while preserving performance. These algorithms do not require fine-tuning and can directly compress numerous deep models to achieve lossless results. Our methods demonstrate robust efficacy across various vision and language tasks. For example, the compressed model reduced by 70\% on ResNext50 outperforms the original. Our code will be made public.
format Preprint
id arxiv_https___arxiv_org_abs_2412_06867
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Lossless Model Compression via Joint Low-Rank Factorization Optimization
Zhang, Boyang
Cheng, Daning
Zhang, Yunquan
Liu, Fangming
Tian, Jiake
Machine Learning
Artificial Intelligence
Computational Complexity
Low-rank factorization is a popular model compression technique that minimizes the error $δ$ between approximated and original weight matrices. Despite achieving performances close to the original models when $δ$ is optimized, a performance discrepancy remains due to the separate optimization processes for low-rank factorization and model performance, resulting in unavoidable losses. We address this issue by introducing a novel joint optimization strategy for lossless low-rank weight factorization, which, for the first time, enhances the model's performance beyond the original. Our approach begins with a theoretical analysis of the relationship between low-rank factorization and model optimization objectives, establishing a precise perturbation range for matrix factorization errors on model performance. This challenge is then reformulated as a numerical rank deficiency problem with inequality constraints and develop a joint objective that simultaneously addresses factorization error and model performance. Based on the above analysis, we propose two optimization algorithms: \textbf{a lossless optimization algorithm} that maximizes model accuracy while ensuring compression, and \textbf{a compact optimization algorithm} that minimizes model size while preserving performance. These algorithms do not require fine-tuning and can directly compress numerous deep models to achieve lossless results. Our methods demonstrate robust efficacy across various vision and language tasks. For example, the compressed model reduced by 70\% on ResNext50 outperforms the original. Our code will be made public.
title Lossless Model Compression via Joint Low-Rank Factorization Optimization
topic Machine Learning
Artificial Intelligence
Computational Complexity
url https://arxiv.org/abs/2412.06867