TL;DR
HexIt is a novel reinforcement learning framework that automates hexahedral block decomposition, a notoriously difficult "needle-in-a-haystack" problem in mesh generation. By combining a geometry-invariant "dart convolution" policy on 3D combinatorial maps with Expert Iteration, HexIt successfully meshes complex chamfered solids that lack standard geometric templates, achieving a 94.4% solve rate where traditional on-policy RL methods like PPO fail completely.
What Problem Does This Paper Address?
In engineering simulations (like Finite Element Analysis), hexahedral meshes (made of "bricks") are highly preferred over tetrahedral meshes (made of "pyramids") because they are more computationally efficient and accurate for structural mechanics. However, automatically partitioning a complex 3D solid into a few well-shaped hexahedral blocks—known as block decomposition—is a long-standing open problem.
The challenge is twofold:
- Global Constraints: Whether a solid can be hex-meshed depends on global topological properties. A single "wrong" cut early in the process can make a valid final decomposition impossible to reach.
- Sparse Rewards: A successful decomposition requires over a hundred precise sequential decisions. A random policy has virtually zero chance of finding a solution, making standard reinforcement learning (RL) ineffective.
Methods
The authors treat block decomposition as a sequential decision problem where an agent edits a 3D solid using three topological operations: splitting an edge, a face, or a volume.
1. 3-Dimensional Generalised Maps (3-G-maps)
Instead of using raw 3D coordinates, HexIt represents the solid's topology using 3-G-maps. This representation uses "darts" (flags representing a unique vertex-edge-face-volume incidence) and "involutions" (functions that swap one element of the flag). This allows the agent to reason about connectivity without being distracted by the specific orientation or scale of the object.
2. Dart Convolution Policy
The policy is a specialized graph-like convolution that operates directly on the darts and their topological neighbors. Because it "sees" no coordinates, the policy is naturally invariant to rigid motion and uniform scaling.
3. Expert Iteration (ExIt)
Since rewards are sparse, the authors use a two-stage training process:
- Behavior Cloning: The model is first trained on "certificates"—known, correct decompositions for simple shapes like grids and prisms.
- Mining & Fine-tuning: The agent then tries to solve new, harder solids (like those with chamfered edges). Successful "lucky" solutions are stored in an archive. The model is then fine-tuned on this archive, effectively learning from its own best discoveries to bridge the "certificate gap."
Datasets
- Cloning Data: 2.61 million states derived from 22,465 solids, including rectilinear grids, swept prisms, and template-based chamfered blocks.
- Training/Mining Set: A fixed set of 12,000 generated solids (3,000 each of small chamfered, concave chamfered, large chamfered, and rectilinear).
- Evaluation Sets: Held-out solids that share no boundary topology with the training data, ensuring the model has truly learned to generalize.
Key Insights and Ideas
- RL Failure: Standard on-policy methods like PPO and GRPO actually made the cloned policy worse. The authors suggest this is because the "shaped" rewards used in RL don't align well with the long-horizon, sparse nature of topological search.
- The Power of Topology: By ignoring Euclidean coordinates and focusing on the combinatorial map, the model generalizes to shapes it has never seen. It doesn't learn what a "corner" looks like in 3D space; it learns what a "corner" looks like in the graph of incidences.
- Mining as Discovery: Expert iteration allows the model to solve "out-of-distribution" geometry. For example, it can solve large chamfered solids by discovering new cutting strategies that weren't present in the initial human-provided templates.
Key Results
- High Success Rate: On the main test set of small chamfered solids, the final policy solves 94.4% of cases within 20 samples.
- Effective Generalization: Expert iteration significantly boosted performance on large chamfered solids, raising the "best-of-20" solve rate from 0.203 (initial clone) to 0.355.
- Superior Mesh Quality: Compared to traditional tools like Gmsh, HexIt produces meshes that are an order of magnitude coarser (fewer, larger blocks), which is much more desirable for block decomposition.
Limitations and Future Work
- Concave Features: Solids with concave chamfers remain the most difficult for the model to solve.
- Scaling: The solve rate drops as the number of input faces increases. The current 512-dart observation window may be too small for very complex solids.
- Geometric Constraints: The current model only handles planar polyhedra without holes. Extending this to curved boundaries and solids with through-holes is a natural next step.
- Out-of-Distribution Corners: The model fails on corner types (e.g., where 4+ faces meet) that were entirely absent from the training data, suggesting a need for more diverse "certificates."
Summary updated