达到标准杆:用于可证明最优四边形块分解的强化学习

·

研究论文 · 2026/09/29

四边形块分解的质量取决于其是否完整、单元形状是否良好以及不规则顶点的数量。不规则顶点总数存在一个可证明的下界:离散高斯-博内恒等式根据给定区域的拓扑和角点角度,对所有四边形网格的顶点不规则度总和施加了下界。我们训练一个强化学习智能体来构建达到该下界(称为标准杆)的分解。智能体直接作用于网格的半边数据结构进行局部编辑,其策略网络的卷积遵循网格自身的连接性,因此可不变地应用于比训练中见过的任何区域都大的区域。奖励直接以该下界为目标,且是稀疏的:随机策略在边数超过八的任何区域上都无法达到。我们通过行为克隆克服探索障碍,在易于构建的最优网格上(通过反向行走生成演示)进行克隆,然后用PPO训练。在96个保留区域上,智能体在每个区域上都生成了全四边形网格,平均95.7个可用,90个可证明最优;而Gmsh在相同单元数下最强配置完成51个,可用38个,最优0个,即使单元数增加三到十四倍也从未产生更规则的网格。在64个两倍于训练尺寸的区域上,智能体全部完成,62个可用,与标准杆的中位超出量低于1,而Gmsh在相同单元数下为39。

该研究将强化学习与网格生成的理论下界相结合,实现了可证明最优的四边形分解,在多个指标上显著优于工业标准工具Gmsh,且具有良好的泛化能力,对计算几何和网格生成领域有重要推动。

A quadrilateral block decomposition of a planar domain is judged by whether it is complete, whether its elements are well shaped, and how many of its vertices are irregular. The last has a provable floor: the discrete Gauss-Bonnet identity enforces a lower bound on the total vertex irregularity of any all-quadrilateral mesh of a given domain purely based on its topology and corner angles. We train a reinforcement learning agent to build decompositions that reach this bound, which we call par. It acts directly on the mesh's half-edge data structure through local edits, with a policy network whose convolutions follow the mesh's own connectivity, so it applies unchanged to domains larger than any seen in training. The reward targets the floor directly, and it is sparse: random play reaches it on no domain with more than eight sides. We overcome this exploration barrier via behaviour cloning on optimal meshes that are trivial to construct, walked backward into demonstrations, before training it with PPO. On 96 held-out domains the agent produces an all-quadrilateral mesh on every one, a usable one on 95.7 on average, and a provably optimal one on 90; Gmsh's strongest configuration at the same element count completes 51, is usable on 38 and optimal on none, and even at three to fourteen times the elements never produces a more regular mesh. On 64 domains twice the training size the agent completes all, is usable on 62, and keeps a median excess over par below one against Gmsh's 39 at the same element count.

阅读原文

参与讨论