Mixture of Scales: Memory-Efficient Token-Adaptive Binarization for Large Language Models

Dongwon Jo, Taesu Kim, Yulhwa Kim, Jae-Joon kim
6/1/2024

No official code found. Best implementation: dongwonjo/BinaryMoS (11 stars, MIT, last commit 2026-04-13).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2024] Official Implementation of "Mixture of Scales: Memory-Efficient Token-Adaptive Binarization for Large Language Models"

110PythonSep 12, 20246 months agoMIT

Similar Papers

Cite this paper

@article{jo2024mixture,
  title  = {Mixture of Scales: Memory-Efficient Token-Adaptive Binarization for Large Language Models},
  author = {Dongwon Jo and Taesu Kim and Yulhwa Kim and Jae-Joon kim},
  year   = {2024},
  eprint = {2406.12311},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.12311},
  url    = {https://arxiv.org/abs/2406.12311},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.12311.svg)](https://codeofpaper.com/paper/2406.12311)

Discussion