MPAX:在JAX中进行数学规划
MPAX: Mathematical Programming in JAX
AI总结:
MPAX是基于JAX的开源求解器,用于大规模线性规划和凸二次规划,结合了先进的数学规划算法和机器学习基础设施,提供高效的批量求解和端到端可微训练能力。
摘要:
我们介绍了MPAX(在JAX中进行数学规划),这是一个开源的一阶求解器,用于大规模线性规划(LP)和凸二次规划(QP),并原生构建于JAX中。MPAX的主要目标是利用现代机器学习基础设施进行大规模数学规划,同时提供易于集成到机器学习工作流中的高级数学规划算法。MPAX实现了两种PDHG变体,r2HPDHG用于LP和rAPDHG用于QP,以及对角预处理、自适应重启、自适应步长、原点权重更新、不可行性检测和可行性 polishing。利用JAX的编译和并行生态系统,MPAX提供了跨硬件可移植性、批量求解、分布式优化和自动微分。我们评估了MPAX在CPU、NVIDIA GPU和Google TPUs上的性能,观察到GPU相对于CPU基线有显著的速度提升,并且在标准LP/QP基准上与基于GPU的代码库具有竞争力的性能。我们的数值实验进一步展示了MPAX在高吞吐量批量求解、近线性多GPU扩展用于密集LP以及高效端到端可微训练方面的能力。该求解器在https://github.com/MIT-Lu-Lab/MPAX上公开可用。
英文摘要:
We present MPAX (Mathematical Programming in JAX), an open-source first-order solver for large-scale linear programming (LP) and convex quadratic programming (QP) built natively in JAX. The primary goal of MPAX is to exploit modern machine learning infrastructure for large-scale mathematical programming, while also providing advanced mathematical programming algorithms that are easy to integrate into machine learning workflows. MPAX implements two PDHG variants, r2HPDHG for LP and rAPDHG for QP, together with diagonal preconditioning, adaptive restarts, adaptive step sizes, primal-weight updates, infeasibility detection, and feasibility polishing. Leveraging JAX's compilation and parallelization ecosystem, MPAX provides across-hardware portability, batched solving, distributed optimization, and automatic differentiation. We evaluate MPAX on CPUs, NVIDIA GPUs, and Google TPUs, observing substantial GPU speedups over CPU baselines and competitive performance relative to GPU-based codebases on standard LP/QP benchmarks. Our numerical experiments further demonstrate MPAX's capabilities in high-throughput batched solving, near-linear multi-GPU scaling for dense LPs, and efficient end-to-end differentiable training. The solver is publicly available at https://github.com/MIT-Lu-Lab/MPAX.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。