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

一种通过黑箱二次规划求解器进行微分的惩罚方法

A Penalty Approach for Differentiation Through Black-Box Quadratic Programming Solvers

Antai College of Economics and Management, Shanghai Jiao Tong University(上海交通大学经济学院);The University of Chicago(芝加哥大学)

Yuxuan Linghu, Zhiyuan Liu, Qi Deng

AI总结:

提出dXPP,一种基于惩罚的微分框架,通过解耦QP求解与微分,利用黑箱求解器进行前向传播,并在反向传播中隐式微分一个光滑近似惩罚问题,显著提升大规模问题的计算效率和鲁棒性。

摘要:

通过二次规划(QP)的解进行微分是可微优化中的一个核心问题。大多数现有方法通过Karush--Kuhn--Tucker(KKT)系统进行微分,但其计算成本和数值鲁棒性在大规模时会下降。为了解决这些限制,我们提出了dXPP,一种基于惩罚的微分框架,将QP求解与微分解耦。在求解步骤(前向传播)中,dXPP与求解器无关,可以利用任何黑箱QP求解器。在微分步骤(反向传播)中,我们将解映射到一个光滑的近似惩罚问题,并通过隐式微分对其进行微分,仅需求解一个在原始变量上小得多的线性系统。这种方法绕过了显式KKT微分固有的困难,显著提高了计算效率和鲁棒性。我们在各种任务上评估了dXPP,包括随机生成的QP、大规模稀疏投影问题以及一个真实的多期投资组合优化任务。实验结果表明,dXPP与基于KKT的微分方法具有竞争力,并在大规模问题上实现了显著的加速。我们的实现是开源的,可在此https URL获取。

英文摘要:

Differentiating through the solution of a quadratic program (QP) is a central problem in differentiable optimization. Most existing approaches differentiate through the Karush--Kuhn--Tucker (KKT) system, but their computational cost and numerical robustness can degrade at scale. To address these limitations, we propose dXPP, a penalty-based differentiation framework that decouples QP solving from differentiation. In the solving step (forward pass), dXPP is solver-agnostic and can leverage any black-box QP solver. In the differentiation step (backward pass), we map the solution to a smooth approximate penalty problem and implicitly differentiate through it, requiring only the solution of a much smaller linear system in the primal variables. This approach bypasses the difficulties inherent in explicit KKT differentiation and significantly improves computational efficiency and robustness. We evaluate dXPP on various tasks, including randomly generated QPs, large-scale sparse projection problems, and a real-world multi-period portfolio optimization task. Empirical results demonstrate that dXPP is competitive with KKT-based differentiation methods and achieves substantial speedups on large-scale problems. Our implementation is open source and available at https://github.com/mmmmmmlinghu/dXPP.

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

↑