Paper Reading AI Learner

BitStack: Fine-Grained Size Control for Compressed Large Language Models in Variable Memory Environments

2024-10-31 13:26:11
Xinghao Wang, Pengyu Wang, Bo Wang, Dong Zhang, Yunhua Zhou, Xipeng Qiu

Abstract

Large language models (LLMs) have revolutionized numerous applications, yet their deployment remains challenged by memory constraints on local devices. While scaling laws have enhanced LLM capabilities, the primary bottleneck has shifted from \textit{capability} to \textit{availability}, emphasizing the need for efficient memory management. Traditional compression methods, such as quantization, often require predefined compression ratios and separate compression processes for each setting, complicating deployment in variable memory environments. In this paper, we introduce \textbf{BitStack}, a novel, training-free weight compression approach that enables megabyte-level trade-offs between memory usage and model performance. By leveraging weight decomposition, BitStack can dynamically adjust the model size with minimal transmission between running memory and storage devices. Our approach iteratively decomposes weight matrices while considering the significance of each parameter, resulting in an approximately 1-bit per parameter residual block in each decomposition iteration. These blocks are sorted and stacked in storage as basic transmission units, with different quantities loaded based on current memory availability. Extensive experiments across a wide range of tasks demonstrate that, despite offering fine-grained size control, BitStack consistently matches or surpasses strong quantization baselines, particularly at extreme compression ratios. To the best of our knowledge, this is the first decomposition-based method that effectively bridges the gap to practical compression techniques like quantization. Code is available at this https URL.

Abstract (translated)

大型语言模型(LLMs)已经彻底改变了众多应用,但它们的部署仍然受到本地设备内存限制的挑战。尽管扩展定律增强了LLM的能力,主要瓶颈已从\textit{能力}转变为\textit{可用性},强调了高效内存管理的需求。传统的压缩方法,如量化,通常需要预定义的压缩比例和针对每个设置的独立压缩过程,在变化的内存环境中部署较为复杂。本文介绍了\textbf{BitStack},一种新颖且无需训练的权重压缩方法,能够实现以兆字节为单位的模型性能与内存使用之间的权衡。通过利用权重分解,BitStack可以在运行内存和存储设备之间进行最小传输的同时动态调整模型大小。我们的方法在考虑每个参数重要性的基础上迭代地分解权重矩阵,在每次分解过程中形成一个近似每参数1比特的残差块。这些块被排序并作为基本传输单元堆叠在存储中,并根据当前的内存可用性加载不同数量的数据。广泛的实验表明,尽管BitStack提供了细粒度大小控制,它仍然能够与强大的量化基线一致或超越,特别是在极端压缩比下。据我们所知,这是首个有效弥合分解方法与实用压缩技术如量化之间差距的方法。代码可在该 https URL 获取。

URL

https://arxiv.org/abs/2410.23918

PDF

https://arxiv.org/pdf/2410.23918.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot