NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Diffusion Models Beat GANs on Topology Optimization

François Mazé, Faez Ahmed

Abstract

Not available

Introduction

Structural Topology Optimization (TO) is a critical engineering process used to determine the most efficient material distribution within a design space. The goal is typically to minimize weight while maximizing stiffness (minimizing compliance) under specific loads and boundary conditions. While traditional iterative methods like Solid Isotropic Material with Penalization (SIMP) are highly effective, their computational cost has led researchers to explore deep learning alternatives.

Generative Adversarial Networks (GANs) were initially proposed to generate designs near-instantly. However, GANs often fail in engineering contexts due to poor generalization to unseen boundary conditions, "physical blindness" (ignoring structural integrity for pixel-wise accuracy), and the production of unmanufacturable "floating material"—disconnected pixels that cannot be physically realized.

The TopoDiff Framework

To address these shortcomings, researchers introduced TopoDiff, a conditional diffusion model framework. Unlike GANs, which attempt to generate a design in a single pass, TopoDiff utilizes an iterative denoising process. This sequential nature allows for the integration of physical constraints at every step of the generation.

The TopoDiff architecture integrates physical guidance from compliance and floating material models into the iterative denoising process.

Physics-Informed Guidance

The core innovation of TopoDiff is its use of external guidance strategies during the reverse diffusion process. The model is conditioned on physical fields—such as strain energy density and von Mises stress—rather than simple coordinates. Furthermore, two surrogate models "nudge" the denoising process:

  • Compliance Regressor: Predicts the mechanical compliance of intermediate noisy structures and guides the model toward designs with higher structural stiffness.
  • Floating Material Classifier: Identifies disconnected components, penalizing non-manufacturable structures to ensure the final output is a single, connected part.

Experimental Results

TopoDiff was evaluated against the state-of-the-art "TopologyGAN" using a dataset of 33,000 SIMP-generated structures. The testing involved two tiers: Level 1 (unseen combinations of known boundary conditions) and Level 2 (completely new, out-of-distribution boundary conditions).

Comparison of TopoDiff against GAN-based methods and ground truth across seen (Level 1) and unseen (Level 2) boundary conditions.

As shown in the results, TopoDiff significantly outperformed GAN-based methods in both performance and feasibility:

  • Compliance Error (CE): On out-of-distribution tasks, TopoDiff reduced the average performance error by a factor of eight.
  • Manufacturability: The presence of "floating material" (FM) was reduced eleven-fold. While GANs produced infeasible designs in roughly 68% of cases, TopoDiff's failure rate dropped to approximately 6%.
  • Generalization: TopoDiff demonstrated a robust understanding of physical "rules," maintaining structural integrity even when faced with load cases entirely different from those in the training set.

Discussion and Limitations

While TopoDiff represents a major leap in the reliability of generative design, it introduces a trade-off in speed. Generating a design takes approximately 21.59 seconds, compared to the 0.06 seconds required by a GAN. However, this remains significantly faster than traditional iterative solvers.

Future work will focus on scaling the framework from 2D to 3D structures and increasing the resolution beyond the current 64x64 grid to accommodate complex industrial applications. Despite these challenges, TopoDiff proves that diffusion models, when guided by physical surrogates, provide a far more robust foundation for engineering design than traditional GANs.

Summary updated

BibTeX
@inproceedings{maze2023diffusion,
  author = {François Mazé and Faez Ahmed},
  title = {{Diffusion Models Beat GANs on Topology Optimization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i8.26093},
}
Figure