二值化将权重参数转换为二进制值,已成为缩减大语言模型(LLM)体积的有效策略。但典型二值化技术会显著降低LLM的语言性能。为解决该问题,我们提出一种名为Mixture of Scales(BinaryMoS,混合尺度二值化)的新型二值化技术。与传统方法不同,BinaryMoS为二值权重配置多个缩放专家,针对每个令牌动态融合这些专家以自适应生成缩放因子。这种令牌自适应方法通过对二值权重值进行上下文调整,提升了二值化LLM的表征能力。此外,由于该自适应过程仅涉及缩放因子而非整个权重矩阵,BinaryMoS保持了与传统静态二值化方法相近的压缩效率。实验结果表明,BinaryMoS在多种自然语言处理任务上优于传统二值化技术,甚至性能超过2位量化方法,同时保持了与静态二值化技术相近的模型体积。
英文摘要:
Binarization, which converts weight parameters to binary values, has emerged as an effective strategy to reduce the size of large language models (LLMs). However, typical binarization techniques significantly diminish linguistic effectiveness of LLMs. To address this issue, we introduce a novel binarization technique called Mixture of Scales (BinaryMoS). Unlike conventional methods, BinaryMoS employs multiple scaling experts for binary weights, dynamically merging these experts for each token to adaptively generate scaling factors. This token-adaptive approach boosts the representational power of binarized LLMs by enabling contextual adjustments to the values of binary weights. Moreover, because this adaptive process only involves the scaling factors rather than the entire weight matrix, BinaryMoS maintains compression efficiency similar to traditional static binarization methods. Our experimental results reveal that BinaryMoS surpasses conventional binarization techniques in various natural language processing tasks and even outperforms 2-bit quantization methods, all while maintaining similar model size to static binarization techniques.
LBLLM: Lightweight Binarization of Large Language Models via Three-Stage Distillation
MAIS, Institute of Automation, Chinese Academy of Sciences(自动化研究所,中国科学院);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Central Media Technology Institute, Huawei(华为中央媒体技术研究所)
Mixture of Weight-shared Heterogeneous Group Attention Experts for Dynamic Token-wise KV Optimization
University of Chinese Academy of Sciences(中国科学院大学);Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);University of Macau(澳门大学);Shenzhen University of Advanced Technology(深圳先进技术大学)
Tsinghua University(清华大学);Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(Mohamed bin Zayed人工智能大学);École Polytechnique Fédérale de Lausanne (EPFL)(洛桑联邦理工学院);Carnegie Mellon University(卡内基梅隆大学)
Machine Learning Research, Morgan Stanley, New York, NY(机器学习研究部,摩根士丹利,纽约,纽约);School of Electrical and Computer Engineering, Cornell University, Ithaca, NY(电气与计算机工程学院,康奈尔大学,伊萨卡,纽约)
Token-Level Prompt Mixture with Parameter-Free Routing for Federated Domain Generalization
School of Computing and Artificial Intelligence, Shandong University of Finance and Economics(计算机与人工智能学院,山东财经大学);School of Computer Science and Technology, Shandong Jianzhu University(计算机科学与技术学院,山东建筑大学);College of Electronics and Information Engineering, Tongji University(电子信息工程学院,同济大学);School of Information Science and Technology, University of Science and Technology of China(信息科学与技术学院,中国科学技术大学)
Hyperparameter Transfer with Mixture-of-Expert Layers
Operations Research;Financial Engineering, Princeton University, Princeton, NJ, USA;Center of Mathematical Sciences;Applications, Harvard University, Cambridge, MA, USA;John A. Paulson School of Engineering;Applied Sciences, Center for Brain Science, Kempner Institute for the Study of Natural;Artificial Intelligence, Harvard University, Cambridge, MA, USA
Mixture Compressor for Mixture-of-Experts LLMs Gains More
The University of Hong Kong(香港大学);The Chinese University of Hong Kong(香港中文大学);Beihang University(北京航空航天大学);Centre for Perceptual and Interactive Intelligence(感知与交互智能中心)
PWC-MoE: Privacy-Aware Wireless Collaborative Mixture of Experts
Department of Engineering, King’s College London(伦敦国王学院工程系);Institute for Digital Communication, Friedrich-Alexander-Universität Erlangen-Nürnberg(埃朗根-纽伦堡弗里德里希-亚历山大大学数字通信研究所)
When Are Experts Misrouted? Counterfactual Routing Analysis in Mixture-of-Experts Language Models
Department of Computer Science and Engineering, POSTECH, South Korea(韩国POSTECH计算机科学与工程系);Graduate School of Artificial Intelligence, POSTECH, South Korea(韩国POSTECH人工智能研究生院);Microsoft Research Asia, Beijing, China(中国北京微软亚洲研究院)
MoBiQuant: Mixture-of-Bits Quantization for Token-Adaptive Any-Precision LLM
University of Arizona(亚利桑那大学);Duke University(杜克大学);Sungkyunkwan University(成均馆大学);Panasonic AI Lab(松下人工智能实验室);Korea Advanced Institute of Science and Technology(韩国科学技术院)
MoE++: Accelerating Mixture-of-Experts Methods with Zero-Computation Experts
School of Electronic and Computer Engineering, Peking University(北京大学电子与计算机工程学院);Peng Cheng Laboratory(鹏城实验室);Peking University Shenzhen Graduate School(北京大学深圳研究生院);Kunlun 2050 Research(昆仑2050研究院);Skywork AI(智源天工AI公司)