TL;DR
Large Language Models (LLMs) are often bottlenecked by how fast we can pull weights from memory. BitShare tackles this by letting less "sensitive" weights share their lower-order bits with neighbors, allowing the model to use a higher-precision grid without increasing the overall storage footprint. It’s a clever way to vary precision within a group of weights without the overhead of complex codebooks or per-weight metadata.
What Problem Does This Paper Address?
When you're running an LLM at small batch sizes (like a single user chatting with a bot), the bottleneck isn't raw math—it's memory bandwidth. The GPU spends most of its time waiting for weights to arrive from DRAM. To speed things up, we "quantize" weights, compressing them from 16-bit floats down to 4, 3, or even 2 bits.
The standard approach is group-wise quantization, where a block of weights (say, 128) shares a scale and a zero point. However, this treats every weight in the group as equally important. In reality, some input channels are much more "sensitive" than others; a small error in a sensitive weight ruins the model's output, while a large error in an insensitive one barely registers.
Existing methods that vary precision (like "outlier" methods) often require storing the positions of high-precision weights, which adds a messy overhead. The authors of BitShare wanted a way to vary precision within a group while keeping the hardware decoder simple and the storage format "clean."
Methods
BitShare introduces two main innovations: Sensitivity-Aware Binning and Static Bit Sharing.
1. Sensitivity-Aware Binning
The authors use the "Hessian diagonal"—a mathematical measure of how much the model's error changes when a weight is tweaked—to sort the 128 channels in a group into three bins:
- High Bin: The most sensitive weights.
- Middle Bin: Moderately sensitive.
- Low Bin: The least sensitive.
2. Static Bit Sharing
Instead of just throwing away bits for the less sensitive weights, BitShare makes them share.
- The Grid: If the target is 2 bits per weight, BitShare actually uses an INT3 grid (8 possible values).
- The Sharing:
- High-bin weights get to store all their bits.
- Middle-bin weights share their least significant bit (LSB) with the entire group-row via a single "flag" bit.
- Low-bin weights share their LSB with the group and their second-to-LSB with a partner weight.
This "wiring" is fixed. The decoder doesn't need a map to find which bits belong to which weight; it just knows based on the weight's position in the group.
3. Two Flavors: BitShare-U and BitShare-N
- BitShare-U (Uniform): Every group in the model uses the exact same bin sizes. This makes the hardware decoder extremely simple (fixed wiring).
- BitShare-N (Non-uniform): Each group can choose a layout from a "menu" of 44 options, allowing sensitive groups to "steal" bits from less sensitive ones within a total bit budget.
Datasets
The authors evaluated BitShare on several prominent LLM families:
- Models: Llama-2 (7B to 70B), Llama-3 (8B, 70B), and Qwen2.5 (0.5B to 3B).
- Calibration: The Pile (a massive diverse text dataset).
- Evaluation: WikiText-2 and C4 (standard benchmarks for measuring "perplexity"—how surprised a model is by new text; lower is better).
Key Insights and Ideas
- The "Finer Grid" Advantage: By sharing bits, BitShare can place weights on an INT3 grid while only paying for ~2 bits of storage. An INT3 grid has a step size 14% finer than an INT2 grid, which significantly reduces rounding errors for sensitive weights.
- No Codebooks Required: Unlike many high-performance 2-bit methods (like AQLM), BitShare doesn't use a lookup table (codebook). It stays on a regular integer grid, which is much friendlier for hardware implementation.
- Static is Better than Dynamic: Because the sharing structure is fixed in advance, the "sharing-aware" encoder (a modified version of the famous GPTQ algorithm) can optimize the shared bits to minimize total error across the group.
Key Results
- Massive Perplexity Gains: At 2 bits, BitShare-N reduced WikiText-2 perplexity by up to 70% compared to SliM-LLM and up to 35% compared to GPTAQ.
- Efficiency: To match the quality of a 2-bit SliM-LLM model, BitShare-U required 13.6% to 19.4% fewer bits, directly translating to a similar reduction in DRAM traffic.
- Hardware Ready: The authors synthesized a hardware decoder in a 130nm process. It successfully reconstructed weights at the same throughput as standard integer decoders, proving that the bit-routing logic adds very little overhead.
Limitations and Future Work
- GPU Kernels: While the authors proved the hardware logic works via ASIC synthesis, they haven't yet released optimized CUDA/Triton kernels for immediate use on NVIDIA GPUs.
- Fine-tuning: The current work is "Post-Training Quantization" (PTQ). The authors suggest that combining bit sharing with gradient-based fine-tuning (Quantization-Aware Training) could push the limits even further.
- End-to-End Speed: The paper focuses on memory traffic and hardware area; actual wall-clock speedups on existing GPUs will depend on how well the bit-shuffling can be implemented in software.
Summary updated