Memory problems with LLMs? BitStack lets you choose: small, medium, or large.
Dynamic weight stacking enables LLMs to adapt to available device memory without recompression.
Resulting in an approximately 1-bit per parameter residual block in each decomposition iteration.
For 7/8B models, BitStack constantly outperforms GPTQ models below 4-bit-level and AWQ models below 3-bit-level.
π https://arxiv.org/abs/2410.23918
π― Original Problem:
Current LLM compression methods, such as quantization, require predefined ratios and separate compression processes for each setting, making dynamic memory adjustment impossible.
-----
π§ Solution in this Paper:
β BitStack decomposes weight matrices iteratively while considering parameter significance
β Creates approximately 1-bit per parameter residual blocks in each decomposition iteration
β Blocks are sorted and stacked in storage based on importance to model performance
β Enables dynamic loading/offloading between RAM and storage based on available memory
β Uses activation-aware decomposition that accounts for unequal importance of weights
β Implements iterative absolute value decomposition separating sign matrices from magnitude
-----
π‘ Key Insights:
β Memory constraints are now the primary bottleneck for LLM deployment, not capability
β Dynamic memory adjustment is crucial for real-world LLM applications
β Weight decomposition can match quantization performance with proper design
β Universal sorting of residual blocks across layers optimizes memory usage
-----
π Results:
β For 7/8B models, outperforms 2-bit baselines by margins of:
- 12.1 (Llama 3.1)
- 22.3 (Llama 2)
- 10.4 (Llama 3)
β For Llama 3.1 70B, retains 89% of original FP16 performance, beating best baseline by 41.3 on zero-shot tasks










