Target-Guided Bayesian Flow Networks for Quantitatively Constrained CAD Generation
Wenhao Zheng, Chenwei Sun, Wenbo Zhang, Jiancheng Lv, Xianggen Liu
TL;DR
This work tackles the challenge of generating parametric CAD sequences under quantitative geometric constraints by introducing Target-Guided Bayesian Flow Network (TGBFN), a framework that unifies discrete CAD commands and continuous parameters in a differentiable space. It adds three mechanisms—Unbiased Bayesian Inference for exposure-bias reduction, Guided Bayesian Flow for principled constraint guidance, and Calibrated Distribution Estimation for moment-preserving discretization—complemented by a new dataset with explicit surface-area and volume targets. Empirical results show state-of-the-art performance on single- and multi-condition constrained generation tasks, with strong improvements in MSE, MAE, and PCC over baselines while managing computational resources effectively. The approach promises more reliable, constraint-aware CAD generation suitable for design workflows and multi-objective optimization, with potential extensions to more complex constraint regimes in future work.
Abstract
Deep generative models, such as diffusion models, have shown promising progress in image generation and audio generation via simplified continuity assumptions. However, the development of generative modeling techniques for generating multi-modal data, such as parametric CAD sequences, still lags behind due to the challenges in addressing long-range constraints and parameter sensitivity. In this work, we propose a novel framework for quantitatively constrained CAD generation, termed Target-Guided Bayesian Flow Network (TGBFN). For the first time, TGBFN handles the multi-modality of CAD sequences (i.e., discrete commands and continuous parameters) in a unified continuous and differentiable parameter space rather than in the discrete data space. In addition, TGBFN penetrates the parameter update kernel and introduces a guided Bayesian flow to control the CAD properties. To evaluate TGBFN, we construct a new dataset for quantitatively constrained CAD generation. Extensive comparisons across single-condition and multi-condition constrained generation tasks demonstrate that TGBFN achieves state-of-the-art performance in generating high-fidelity, condition-aware CAD sequences. The code is available at https://github.com/scu-zwh/TGBFN.
