arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.10673cs.LG
收藏

量化零阶优化的Compander对齐查询几何

Compander-Aligned Query Geometry for Quantized Zeroth-Order Optimization

HKUST-GZ(香港科技大学-广州)

Yao Shu, Zilin Zhu

AI总结:

本文提出CAQ-ZO方法,通过Compander对齐查询几何解决量化零阶优化中的查询几何问题,证明了网格跨度不匹配并给出站定性界,实验表明其在相同量化器和预算下提升训练效果。

摘要:

低比特前向评估是内存高效零阶(ZO)适应的有吸引力路线:优化器只需标量损失,且模型可在接近部署精度下查询。障碍在于量化ZO查询并非连续有限差分后无害的存储舍入。查询选择端点,低精度引擎对其进行舍入,损失差异沿舍入弦测量。对于非均匀Companding量化器,这使代码本不足以预测ZO行为:固定权重空间半径可在密集单元中坍塌,过度跨越稀疏单元,或为未舍入的更新方向分配舍入弦。我们识别出缺失的对象为查询几何,并将模型标量非均匀量化建模为$Q = ϕ^{-1} \circ U \circ ϕ$。CAQ-ZO(Compander对齐查询用于零阶优化)在$z = ϕ(x)$中形成一格步RademacherStencil $z \pm Δr$,将端点映射回通过$ϕ^{-1}$,并在$z$中更新。我们的理论证明了网格跨度不匹配,分解了端点舍入估计器残差,给出了站定性界,在其中通用非网格查询保留一个$Δ^2/μ^2$残差通道,而CAQ-ZO使查询时间残差恰好为零。合成实验隔离了这一通道,匹配NF4 Qwen/Llama微调显示,CAQ-ZO在相同量化器和评估预算下提升训练效果。

英文摘要:

Low-bit forward evaluation is an attractive route to memory-efficient zeroth-order (ZO) adaptation: the optimizer needs only scalar losses, and the model can be queried near deployment precision. The obstacle is that a quantized ZO query is not a continuous finite difference followed by harmless storage rounding. The query chooses endpoints, the low-precision engine rounds them, and the loss difference is measured along the rounded chord. For nonuniform companding quantizers, this makes the codebook insufficient to predict ZO behavior: a fixed weight-space radius can collapse in dense cells, over-span sparse cells, or assign a rounded chord to an unrounded update direction. We identify the missing object as query geometry and model scalar nonuniform quantization as $Q = ϕ^{-1} \circ U \circ ϕ$. CAQ-ZO (Compander-Aligned Queries for Zeroth-Order Optimization) forms one-grid-step Rademacher stencils $z \pm Δr$ in $z = ϕ(x)$, maps endpoints back through $ϕ^{-1}$, and updates in $z$. Our theory proves the grid-span mismatch, decomposes endpoint-rounding estimator residuals, and gives stationarity bounds in which generic off-grid queries retain a $Δ^2/μ^2$ residual channel while CAQ-ZO makes the query-time residual exactly zero. Synthetic experiments isolate this channel, and matched NF4 Qwen/Llama fine-tuning shows that CAQ-ZO improves the trained NF4 baseline under the same quantizer and evaluation budget.

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

↑