HiDiGen: Hierarchical Diffusion for B-Rep Generation with Explicit Topological Constraints

Shurui Liu, Weide Chen, Ancong WuCVPR 2026 Findings 2026

TL;DR

HiDiGen introduces a hierarchical, two-stage generative framework that explicitly decouples and interleaves topology and geometry generation to synthesize valid 3D CAD models. By enforcing explicit topological constraints at progressive levels of detail, it significantly improves the structural validity, diversity, and geometric accuracy of generated Boundary Representation (B-rep) models.

What Problem Does This Paper Address?

In Computer-Aided Design (CAD), Boundary Representation (B-rep) is the industry standard for representing 3D shapes. Unlike discrete polygon meshes or point clouds, a B-rep model precisely defines a solid object using continuous parametric surfaces (faces), curves (edges), and discrete points (vertices). Crucially, it also encodes topology—the mathematical rules dictating how these elements connect.

Deep learning for B-rep generation is notoriously difficult because geometry (continuous coordinates) and topology (discrete connectivity graphs) are intricately coupled. Existing generative models often fall into two traps:

  1. They embed topology implicitly, which frequently yields distorted or incomplete geometries.
  2. They decouple topology and geometry entirely but lack a feedback loop, resulting in invalid connections, non-manifold edges, or open (non-watertight) shapes.
Figure 1. Comparison of learning paradigms for B-rep gen- eration: (a) implicit topology encoding, (b) decoupled topology- geometry generation, and (c) our hierarchical generation frame- work.

HiDiGen tackles this gap by proposing a unified, hierarchical framework where topology explicitly guides geometry, and geometric feedback refines topological consistency.

Methods

HiDiGen factorizes the joint distribution of topology and geometry into a two-level hierarchy, processing the data from coarse structures to fine details:

Figure 2. HiDiGen pipeline overview. Our framework generates B-rep models in two hierarchical levels: Level 1 produces face-edge topology (EFi) and coarse geometry (face bounding boxes Bi, edge curves Ei); Level 2 refines edge-vertex topology (EVi) and detailed geometry (face surfaces Fi, vertex positions Vi), with each stage conditioned on prior outputs.

Level 1: Coarse Structure Generation

  • Topology ($T_1$): The model first generates a global face-edge incidence graph using a Variational Autoencoder (VAE) combined with a Transformer. This establishes which edges belong to which faces.
  • Geometry ($G_1$): Conditioned on this face-edge graph, two separate Transformer-based diffusion modules ($P_B$ and $P_E$) generate coarse geometric proxies: face bounding boxes ($B_i$) and initial cubic B-spline edge curves ($E_i$).

Level 2: Fine Detail Refinement

  • Topology ($T_2$): Using the coarse geometry and face-edge graph from Level 1, a Pointer Network autoregressively predicts local edge-vertex adjacencies ($EV_i$), determining exactly how edges connect at vertices.
  • Geometry ($G_2$): Finally, specialized face ($P_F$) and vertex ($P_V$) diffusion denoisers generate precise bi-cubic B-spline face surfaces ($F_i$) and exact 3D vertex coordinates ($V_i$).

A key component of this architecture is an intermediate fusion strategy that aggregates features from incident faces and edges using a contextual "gather" module, ensuring that shared boundaries remain perfectly aligned.

Figure 3. Illustration of the contextual conditioned embedding for face geometry generation. We gather the corresponding face bounding boxes and edge geometries, and further derive topologi- cal connectivity relationships to form the conditioning embedding.

Datasets

The authors evaluated HiDiGen on two massive, standard CAD benchmarks:

  • DeepCAD: Filtered to models with $\le 50$ faces and $\le 30$ edges, yielding 60,478 valid samples.
  • ABC Dataset: Filtered using the same complexity criteria, resulting in 110,276 valid samples.

Key Insights and Ideas

  • Bidirectional Interaction is Key: Completely separating topology and geometry causes a disconnect, while merging them causes chaos. HiDiGen succeeds by letting topology act as a structural scaffold for geometry, while using intermediate geometric outputs to inform finer topological decisions.
  • Less is More for Vertices: Counterintuitively, the authors found that excluding edge geometry when generating vertex positions actually improved performance. Including it introduced redundant and conflicting geometric signals that destabilized the diffusion optimization process.
  • Explicit Scaffolding Prevents Artifacts: Forcing the diffusion models to adhere to an explicitly generated face-edge graph drastically reduces common CAD generation artifacts like non-manifold edges and open, non-watertight shells.

Key Results

HiDiGen was evaluated against state-of-the-art baselines, including DeepCAD, BrepGen, and DTGBrepGen, across both unconditional and point-cloud-conditioned generation tasks.

Quantitative Improvements

HiDiGen achieved higher structural validity and complexity scores across both datasets:

  • DeepCAD Validity Rate: Reached 75.77%, outperforming DTGBrepGen (73.27%) and BrepGen (69.27%).
  • ABC Validity Rate: Reached 65.77%, compared to DTGBrepGen's 63.53% and BrepGen's 53.47%.
  • Structural Richness: HiDiGen scored significantly higher in Cyclomatic Complexity (CC) and Mean Curvature (MC), demonstrating its ability to generate highly detailed and diverse CAD designs rather than just simple primitives.

Qualitative Results

Visually, HiDiGen produces significantly cleaner, consistently watertight solid B-reps with well-preserved sharp features and fine-grained topological details.

Figure 4. Qualitative comparison of unconditioned B-rep models generated by our method and prior approaches, including DeepCAD [24], BrepGen [27], and DTGBrepGen [14], on the DeepCAD dataset. Our method generates more versatile and consistently watertight solid B-reps, demonstrating geometric fidelity and topological correctness.

Limitations and Future Work

Despite its strong performance, the authors note a few areas for improvement:

  • Error Propagation: Because the framework relies on sequential autoregressive and diffusion stages, an error introduced early on (e.g., a flawed face-edge topology graph) can cascade downstream, leading to distorted final geometries.
  • Suboptimal Absolute Validity: While a ~75% validity rate leads the field, it still leaves a 25% failure rate, which is too high for fully automated industrial pipelines.
  • Coarse Conditioning: When conditioned on point clouds, the model successfully captures the global layout but occasionally misses fine-grained local textures and high-frequency geometric features.

Summary updated

BibTeX
@inproceedings{liu2026hidigen,
  author = {Shurui Liu and Weide Chen and Ancong Wu},
  title = {{HiDiGen: Hierarchical Diffusion for B-Rep Generation with Explicit Topological Constraints}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=R97JqNSVNI},
}
Figure