CusADi:面向符号表达式与最优控制的GPU并行化框架
CusADi: A GPU Parallelization Framework for Symbolic Expressions and Optimal Control
AI总结:
针对GPU并行训练强化学习控制器时基于模型的优化难落地的问题,提出CasADi的GPU扩展框架CusADi,搭配闭式近似方法实现MPC的大规模并行,获10倍CPU加速,可用于多类应用。
摘要:
GPU提供的并行能力在通过强化学习(RL)训练控制器方面具备显著优势。然而,由于需要在数千个实例上构建并求解优化问题的复杂度较高,将基于模型的优化融入这一过程仍存在挑战。本文提出CusADi,它是CasADi符号框架的扩展,支持通过CUDA在GPU上对任意闭式表达式进行并行化。我们还构建了一种用于求解通用最优控制问题的闭式近似方法,可实现MPC控制器的大规模并行化与评估。实验结果显示,相较于CPU上的同类MPC实现,该方法实现了10倍加速,同时我们展示了CusADi在并行仿真、参数扫描与策略训练等多种场景下的应用。
英文摘要:
The parallelism afforded by GPUs presents significant advantages in training controllers through reinforcement learning (RL). However, integrating model-based optimization into this process remains challenging due to the complexity of formulating and solving optimization problems across thousands of instances. In this work, we present CusADi, an extension of the CasADi symbolic framework to support the parallelization of arbitrary closed-form expressions on GPUs with CUDA. We also formulate a closed-form approximation for solving general optimal control problems, enabling large-scale parallelization and evaluation of MPC controllers. Our results show a ten-fold speedup relative to similar MPC implementation on the CPU, and we demonstrate the use of CusADi for various applications, including parallel simulation, parameter sweeps, and policy training.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。