arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.06324cs.LGmath.OC
收藏

通过黑盒二次规划求解器求导

Differentiation Through Black-Box Quadratic Programming Solvers

Department of Mathematics, University of North Carolina at Chapel Hill(北卡罗来纳大学 Chapel Hill 分校数学系);Université de Montréal and Mila(蒙特利尔大学和Mila)

Connor W. Magoon, Fengyu Yang, Noam Aigerman, Shahar Z. Kovalsky

AI总结:

针对现有二次规划求导方法依赖特定集成求解器、适用性受限的问题,提出模块化且与求解器无关的dQP框架,依托有效集相关洞见解耦求解与求导,可适配15余种主流求解器,在大规模稀疏问题上表现出良好鲁棒性与可扩展性。

摘要:

可微优化已吸引了大量研究兴趣,尤其是在二次规划(QP)领域。现有针对QP解关于其定义参数求导的方法往往依赖特定的集成求解器。这种集成限制了它们的适用性,包括在神经网络架构和双层优化任务中的应用,将用户的求解器选择限制在很小的范围内。为解决这一局限,我们提出dQP,这是一个模块化且与求解器无关的框架,可实现几乎所有QP求解器的即插即用式求导。我们实现模块化所依托的关键洞见是:一旦已知不等式约束的有效集,解及其导数都可以通过共享同一矩阵的简化线性系统来表示。该公式完全将QP解的计算与其求导过程解耦。基于这一结果,我们提供了一个开销极低的开源实现(https://github.com/cwmagoon/dQP),可与15余种最先进的求解器无缝集成。综合基准实验证明了dQP的鲁棒性和可扩展性,尤其凸显了其在大规模稀疏问题中的优势。

英文摘要:

Differentiable optimization has attracted significant research interest, particularly for quadratic programming (QP). Existing approaches for differentiating the solution of a QP with respect to its defining parameters often rely on specific integrated solvers. This integration limits their applicability, including their use in neural network architectures and bi-level optimization tasks, restricting users to a narrow selection of solver choices. To address this limitation, we introduce dQP, a modular and solver-agnostic framework for plug-and-play differentiation of virtually any QP solver. A key insight we leverage to achieve modularity is that, once the active set of inequality constraints is known, both the solution and its derivative can be expressed using simplified linear systems that share the same matrix. This formulation fully decouples the computation of the QP solution from its differentiation. Building on this result, we provide a minimal-overhead, open-source implementation ( https://github.com/cwmagoon/dQP ) that seamlessly integrates with over 15 state-of-the-art solvers. Comprehensive benchmark experiments demonstrate dQP's robustness and scalability, particularly highlighting its advantages in large-scale sparse problems.

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

↑