arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.22334cs.LG
收藏

BQ-LoRA:作为参数高效微调隐式正则化器的二值量化低秩适配器

BQ-LoRA: Binary-Quantized Low-Rank Adapters as Implicit Regularizers for Parameter-Efficient Fine-Tuning

KAIST(韩国科学技术院)

Juyoung Park, Heejun Lee

AI总结:

针对参数高效微调量化大模型的QLoRA方法,提出BQ-LoRA将适配器参数二值化并结合缩放直通估计器,理论上刻画其假设类性质,在Qwen2.5等模型上实现存储大幅缩减且性能优于QLoRA。

摘要:

参数高效微调量化大语言模型的主流方法是QLoRA,它将4位权重量化与FP16低秩适配器相结合。本文探究FP16适配器精度是否为必要条件:将每个适配器参数替换为单个二进制位,结合可学习的每层缩放因子$s$与缩放直通估计器,可将适配器存储缩减13-16倍。我们提出两种变体——NormScale(在保持范数的缩放因子下进行二值化,采用裁剪的直通估计器)和LearnThresh(使二值化阈值可学习),二者统一为BQ-LoRA框架。主要理论贡献是对BQ-LoRA假设类的严格刻画:其具有有界逐元素范数、典型集谱范数界比最坏情况尖锐$\Theta(r)$倍、满秩近各向同性更新,因此拉德马赫复杂度可导出显式$\tilde{O}(s_{\max}\alpha\sqrt{d_{out}/(rn)})$泛化界,而FP16 LoRA无类似的先验范数或各向同性控制。在Qwen2.5(1.5B-72B)上,BQ-LoRA在所有规模的基准测试中均比QLoRA高出0.8-3.5个点;在LLaMA-2(7B/70B)上,其在相同存储缩减下仍具竞争力,但未始终领先最强的FP16适配器基线(7B时的LoftQ、70B时的QLoRA)。在Qwen2.5-7B上,二进制适配器将4位基础模型的WikiText-2困惑度(PPL)保持在0.06以内(9.86 vs. 9.80),而QLoRA使其恶化0.59。该缩减适用于推理时的适配器存储与服务,训练内存与QLoRA相当,步长时间增幅低于4%。我们将存储缩减转化为部署研究BQ-SGMV,通过扩展Punica的SGMV内核加入二进制内积原语:同一块A100-80GB显卡的高带宽内存(HBM)可容纳多15.6倍的适配器,且研究原型在倾斜合成工作负载下消除了缓存未命中。

英文摘要:

Parameter-efficient fine-tuning of quantized large language models is dominated by QLoRA, which combines 4-bit weight quantization with FP16 low-rank adapters. We ask whether the FP16 adapter precision is necessary. Replacing it with a single binary bit per adapter parameter, combined with a learned per-layer scale $s$ and a Scaled Straight-Through Estimator, reduces adapter storage by 13-16x. We introduce two variants -- NormScale, which binarizes under a norm-preserving scale with a clipped STE, and LearnThresh, which makes the binarization threshold learnable -- unified under a framework we call BQ-LoRA. Our main theoretical contribution is a tight characterization of the BQ-LoRA hypothesis class: it has bounded entrywise norm, a typical-set spectral norm bound that is $Θ(r)$ times sharper than the worst case, a full-rank, near-isotropic update, and consequently a Rademacher complexity that yields an explicit $\tilde{O}(s_{\max}α\sqrt{d_{out}/(rn)})$ generalization bound. FP16 LoRA has no comparable a priori norm or isotropy control. On Qwen2.5 (1.5B-72B), BQ-LoRA exceeds QLoRA's benchmark averages at every scale by 0.8-3.5 points; on LLaMA-2 (7B/70B) it remains competitive at the same storage reduction but does not uniformly lead the strongest FP16-adapter baselines (LoftQ at 7B, QLoRA at 70B). On Qwen2.5-7B the binary adapter preserves the 4-bit base WikiText-2 PPL within 0.06 (9.86 vs. 9.80) while QLoRA worsens it by 0.59. The reduction applies to inference-time adapter storage and serving; training memory matches QLoRA and step time rises by under 4%. We translate the storage saving into a deployment study, BQ-SGMV, by extending Punica's SGMV kernel with a binary inner-product primitive: the same A100-80GB holds 15.6x more adapters in HBM, and our research prototype eliminates cache misses under a skewed synthetic workload.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑