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

通过黎曼流形实现精确预算约束下的模型压缩

Model Compression with Exact Budget Constraints via Riemannian Manifolds

ETH Zürich(苏黎世联邦理工学院);IST Austria(奥地利科学院)

Michael Helcig, Dan Alistarh

AI总结:

本文提出基于黎曼流形的约束优化方法RCO,用于在精确预算约束下优化模型压缩任务,通过引入切线投影、二分法回退和动量运输等技术,实现高效优化。

摘要:

在高效AI中,为N个组分配K个选项之一并在总成本预算下是一个反复出现的问题,包括混合精度量化、非均匀剪枝和专家选择。通常模型损失作为所有分配的联合函数,不分解于组间,阻止组合求解器直接优化真实目标,迫使依赖于代理公式。进化搜索等方法评估实际损失但缺乏梯度信息,而基于惩罚的方法仅近似强制预算,通常需要大量超参数调优。我们通过显示,在softmax松弛下,预算约束定义了logit空间中平滑的黎曼流形,具有异常简单的几何结构。法向量允许闭式表达,沿成本向量改变logits会单调改变预期成本,向量运输减少到单个内积。基于这些性质,我们提出黎曼约束优化(RCO),它在标准Adam步中加入切线投影、二分法回退和动量运输。结合Gumbel straight-through估计和预算约束动态规划用于离散可行性,RCO使在精确预算执行下优化实际损失的一阶优化成为可能,而无需引入约束特定的超参数。在合成基准和现实LLM压缩设置中,RCO匹配或超过最先进方法,同时通常需要显著较少的运行时间。源代码可在https://github.com/IST-DASLab/RCO获取。

英文摘要:

Assigning one of K options to each of N groups under a total cost budget is a recurring problem in efficient AI, arising in mixed-precision quantization, non-uniform pruning, and expert selection. The objective (model loss) depends on all assignments jointly and does not decompose across groups, so combinatorial solvers can only optimize proxy objectives. Evolutionary search evaluates the actual loss but lacks gradients, while penalty-based methods enforce the budget only approximately and often require heavy hyperparameter tuning. We show that under softmax relaxation, the budget constraint defines a smooth Riemannian manifold in logit space with unusually clean geometry: the normal vector is available in closed form, shifting logits along the cost vector changes expected cost monotonically, and vector transport reduces to a single inner product. Building on this, we propose Riemannian Constrained Optimization (RCO), which wraps tangent projection, binary-search retraction, and momentum transport around a standard Adam step. Combined with Gumbel straight-through estimation and budget-constrained dynamic programming for discrete feasibility, RCO optimizes the actual loss with first-order methods, enforces the expected budget exactly at every iterate, and introduces no constraint-related hyperparameters. The same construction handles multiple simultaneous budgets with no additional coefficients. RCO matches or exceeds state-of-the-art methods on synthetic problems and realistic LLM compression settings, often at considerably lower wall-clock cost. Source code is available at https://github.com/IST-DASLab/RCO.

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

↑