Introduction
Deploying Large Language Models (LLMs) on edge devices like smartphones and laptops is a critical step toward enhancing user privacy and reducing operational costs. However, these devices are primarily "memory-bandwidth bound"—the performance bottleneck is not the raw computational speed of the chip, but the rate at which massive weight matrices can be loaded from memory.
Weight-only quantization (e.g., INT4) is a common strategy to mitigate this by shrinking model size. While effective for compression, it often results in significant accuracy degradation. Recent "sub-branching" techniques attempt to recover this lost accuracy by adding high-precision parallel paths (similar to LoRA adapters) to compensate for quantization errors. Unfortunately, these methods suffer from two major flaws: overfitting to small calibration datasets and massive latency overhead, sometimes running 4x slower than the original model during decoding due to inefficient memory access patterns.
The FBQuant Framework
FBQuant (FeedBack Quantization) addresses these challenges by reimagining the mathematical structure of sub-branching and optimizing the underlying engineering for modern GPUs.
1. The Feedback Mechanism
Inspired by automatic control systems, FBQuant introduces a "negative feedback" loop into the quantization process. Instead of simply adding a sub-branch ($\Sigma$) to the quantized weights ($Q(W)$), it incorporates the compensation signal inside the quantization operation:
$$W_{F} = Q(W - \Sigma) + \Sigma$$
By subtracting the compensation signal before quantization and adding it back afterward, the authors mathematically demonstrate that the total error is strictly bounded by half of the quantization step ($s/2$). This "Boundedness Property" acts as a natural regularizer, preventing the sub-branch from overfitting to the noise of the calibration data.
2. Differentiable Optimization and Kernel Fusion
Standard quantization functions are non-differentiable, making them difficult to optimize via gradient descent. FBQuant overcomes this by "detaching" the feedback signal from the backpropagation graph, allowing the sub-branch weights to be fine-tuned to minimize reconstruction loss.
To solve the latency problem, the authors developed a custom fused CUDA kernel. In standard sub-branching, a single layer requires four separate kernel launches, leading to redundant memory reads. FBQuant fuses weight de-quantization, the main path projection, and the sub-branch up-projection into a single operation, drastically reducing memory traffic.
Experimental Evaluation
The researchers evaluated FBQuant across Llama 2, Llama 3, and Qwen 2.5 model families (7B to 70B parameters) using the WikiText2 dataset and the LM Evaluation Harness for zero-shot tasks.
Key Results
- Accuracy and Perplexity: On 3-bit Llama2-7B, FBQuant improved zero-shot accuracy by 1.2% over previous state-of-the-art methods. For Llama3-8B at 3-bit, FBQuant achieved a perplexity of 6.78, significantly outperforming AWQ (7.63) and OmniQuant (7.86).
- Efficiency: Thanks to kernel fusion, FBQuant eliminates 60% of the extra inference time typically introduced by sub-branches. On an RTX 3090, it achieved 61 tokens per second, outperforming both the FP16 baseline and standard sub-branch implementations while maintaining a significantly smaller memory footprint.
Key Insights
- Memory Access is the Primary Bottleneck: The study highlights that while a sub-branch adds only ~6% more floating-point operations (MACs), it can cause a 400% increase in latency without careful implementation. For edge AI, memory management is more critical than raw FLOPs.
- Orthogonality: FBQuant is compatible with other optimization techniques like clamping and rotation, providing a versatile new dimension for model compression.
Limitations and Future Work
FBQuant currently focuses on weight-only quantization. Future iterations could address activation quantization (e.g., W4A4) to speed up compute-bound scenarios like high-batch-size data center serving. Additionally, while the current implementation uses a fixed rank for sub-branches, exploring "adaptive rank" allocation could further optimize the trade-off between memory usage and accuracy across different model layers.
Summary updated