On the Generalization in Topology Optimization via Sensitivity-Conditioned Bernoulli Flow Matching

Mohammad Rashed, Duarte F. Valoroso Madeira, Babak Gholami, Caglar Guerbuez, Yunjia Yang, Nils Thuerey

Topology optimization (TO)—the process of finding the optimal material distribution to meet specific engineering goals—is notoriously computationally expensive, often requiring hundreds of iterations of physics simulations. While machine learning surrogate models promise near-instant predictions, they frequently fail when confronted with out-of-distribution (OOD) scenarios, such as boundary conditions or loads unseen during training.

For years, the community has observed that certain conditioning signals, like strain energy density, help models generalize better than raw load parameters, but the underlying reasons remained unclear. Furthermore, most generative models applied to TO rely on continuous Gaussian diffusion, which is fundamentally mismatched with the binary (material vs. void) nature of optimized parts. A new paper addresses both of these challenges by combining information theory with a novel generative framework.

The Information-Theoretic Solution: Pseudo-Sensitivities

The authors hypothesize that OOD performance is governed by how much information the conditioning signal preserves about the adjoint sensitivity that drives classical TO. By modeling the TO pipeline as a causal Markov chain, they use the Data Processing Inequality (DPI) to prove that the initial sensitivity field is the information-theoretically optimal signal for predicting the final topology.

Because computing exact adjoint sensitivities can be expensive or unavailable, the authors introduce the concept of pseudo-sensitivities—physical fields mathematically related to the true sensitivity via monotone transformations. This provides the "aha" moment for why Strain Energy Density (SED) has been so successful in structural TO: it is a near-perfect pseudo-sensitivity that preserves virtually all the information needed to find the optimal topology. For fluid dynamics problems, they identify Velocity Magnitude Squared ($\|v\|^2$) as the corresponding pseudo-sensitivity.

A core takeaway from this research is that conditioning matters more than architecture: a simpler model paired with a high-information conditioning signal will consistently outperform a highly complex model conditioned on an information-poor signal.

Generative Modeling with Bernoulli Flow Matching

To generate the actual designs, the authors discard standard continuous diffusion in favor of Bernoulli Flow Matching (BFM). Because BFM operates directly in the discrete space of binary topologies, it respects the "either-or" nature of material distribution. This avoids the numerical instabilities and blurry results common in continuous models, producing sharp designs that are ready for simulation without heavy post-processing.

The model architecture utilizes a hierarchical Vision Transformer (ViT) with cross-attention, allowing the conditioning signal to modulate features at every resolution. During deployment, the authors also introduce a "greedy terminal step" to eliminate salt-and-pepper noise and a progressive pruning strategy to strictly enforce volume constraints.

Datasets and State-of-the-Art Results

The framework was evaluated on established structural TO benchmarks (2D cantilever and bridge structures) and a newly released CFD-TO dataset containing 10,000 2D turbulent channel flow problems. To rigorously test generalization, the CFD dataset includes "OOD-medium" (2 outlets) and "OOD-hard" (3 outlets) splits, despite the model only being trained on single-outlet configurations.

The results demonstrate state-of-the-art OOD performance:

  • Superior Generalization: On the OOD-hard CFD test, the proposed model achieved 74.5% accuracy (within 10% of the target pressure drop), significantly outperforming baselines like UDiT (62.7%).
  • Structural Performance: The model reduced mean compliance error by 33% compared to TopoDiffusion and 39% compared to NITO.
  • Efficiency: Generating a full design takes only ~3.2 seconds (dominated by the single initial physics solve), compared to ~114 seconds for classical optimization solvers like STAR-CCM+. It is also roughly 2x faster than NITO, which requires additional SIMP iterations.

Limitations and Future Directions

While highly efficient, the method still requires one initial physics simulation to generate the conditioning signal, meaning it is not entirely "instant." Additionally, the current work is limited to 2D domains, and the CFD derivations rely on a "frozen turbulence" assumption that may introduce errors in highly complex, non-steady flow regimes. Extending these information-theoretic principles and discrete flow matching models to 3D represents a crucial and promising next step for industrial applications.

Summary updated

BibTeX
@inproceedings{rashed2026generalization,
  author = {Mohammad Rashed and Duarte F. Valoroso Madeira and Babak Gholami and Caglar Guerbuez and Yunjia Yang and Nils Thuerey},
  title = {{On the Generalization in Topology Optimization via Sensitivity-Conditioned Bernoulli Flow Matching}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=1e3gI1ibcn},
}
Figure