MGPBD: A Multigrid Accelerated Global XPBD Solver

Yang Gao, Chunlei Li, Peng Yu, Tiantian Liu, Siyuan Yu, Yuting Xiao, Shuai Li, Aimin Hao, Yang Gao 0032, Qinping Zhao

Abstract

MGPBD introduces a multigrid-accelerated solver for Extended Position-Based Dynamics (XPBD) that effectively addresses the "stalling" problem encountered in high-stiffness, high-resolution simulations. By implementing a "lazy" Algebraic Multigrid (AMG) approach in the dual space, the authors achieve stable, high-fidelity results for complex models—such as a human musculoskeletal system with 1.6 million elements—at a fraction of the computational cost required by traditional solvers.

Introduction: The Stalling Problem in XPBD

In computer graphics, Position-Based Dynamics (PBD) and its "Extended" version (XPBD) are widely used for simulating soft bodies, cloth, and fluids due to their speed and robustness. However, these methods rely on local solvers like Gauss-Seidel, which are efficient at eliminating high-frequency errors (local jitters) but struggle with low-frequency errors (global deformations).

Figure 6: Power spectral density after 300 XPBD iterations, showing the persistence of low-frequency errors (central peak).

When simulating high-stiffness materials or high-resolution meshes, these solvers "stall." Even after numerous iterations, the simulated object may appear unnaturally soft or the simulation may become unstable. While multigrid methods are a known solution for such convergence issues, integrating them into the XPBD framework has previously been computationally prohibitive or numerically unstable.

Methodology: Multigrid Position-Based Dynamics

The proposed MGPBD framework combines several optimizations to make multigrid acceleration practical for XPBD:

  • Dual-Space AMG: Unlike previous methods that apply multigrid to vertex positions (primal space), MGPBD operates in the "dual space," solving for Lagrange multipliers. This approach significantly improves robustness for high-stiffness materials.
  • Unsmoothed Aggregation (UA): To maintain computational efficiency, the authors utilize unsmoothed aggregation. This keeps system matrices sparse, sacrificing a small amount of convergence per iteration for a substantial increase in per-iteration speed.
  • Lazy Setup Strategy: The setup phase of a multigrid hierarchy typically consumes a large portion of runtime. MGPBD reuses the hierarchy for approximately 20 frames at a time, provided the mesh topology remains constant. This "lazy" approach reduces setup overhead from 66% to just 2% of total runtime.
  • Simplified Near-Kernel Construction: The solver uses quick iterative sweeps to identify the smooth errors targeted by the multigrid, avoiding expensive adaptive algorithms.

Evaluation and Results

The solver was evaluated across various complex scenarios, including a musculoskeletal human model, extreme deformation tests (Bunny Squash), and high-resolution cloth simulations.

Figure 4: Simulation of a high-resolution musculoskeletal model with 1.667 million tetrahedrons, achieving 40.6s per frame with MGPBD.

Key findings include:

  • Scalability: MGPBD successfully simulated a 1.66M tetrahedron muscle model. Traditional XPBD often fails to reach a stable state for models of this scale.
  • Linear Performance: The time per iteration scales linearly ($R^2 = 0.9978$) with the number of elements, ensuring predictability for large-scale scenes.
  • Efficiency: MGPBD outperformed industry-standard libraries, such as NVIDIA's AMGX and the PARDISO direct solver, by two to three orders of magnitude in the tested simulation contexts.

Discussion and Limitations

While MGPBD offers significant improvements, it currently assumes a static mesh topology. If an object fractures or tears, the multigrid hierarchy must be rebuilt, leading to performance spikes. Additionally, the global nature of the solver can occasionally introduce artificial oscillations, necessitating extra damping. Future work may explore "matrix-free" AMG implementations to further reduce the memory footprint on GPUs.

Summary updated

BibTeX
@inproceedings{gao2025mgpbd,
  author = {Yang Gao and Chunlei Li and Peng Yu and Tiantian Liu and Siyuan Yu and Yuting Xiao and Shuai Li and Aimin Hao and Yang Gao and Qinping Zhao},
  title = {{MGPBD: A Multigrid Accelerated Global XPBD Solver}},
  booktitle = {Siggraph (conference Paper Track)},
  year = {2025},
  doi = {10.1145/3721238.3730720},
}
Figure