Aligning Optimization Trajectories with Diffusion Models for Constrained Design Generation

Giorgio Giannone, Akash Srivastava, Ole Winther, Faez Ahmed

Overview

Generative models have revolutionized vision and language, but applying them to precision-critical engineering fields remains challenging. Traditional physics-based optimization methods still dominate these areas due to their reliability, despite being computationally expensive. This paper introduces Diffusion Optimization Models (DOM), a novel framework that bridges this gap by aligning the sampling path of a diffusion model with the iterative path of a physics-based optimizer. By "distilling" the trajectory of traditional optimization into the generative process, DOM achieves high-quality engineering designs—specifically in structural topology optimization—with 50% less computational overhead and requiring as few as two sampling steps.

The Challenge: Physics Gaps and Inference Costs

In mechanical engineering, Topology Optimization (TO) is the standard process for finding the most efficient material distribution within a design space to support specific loads. While traditional iterative methods like SIMP (Solid Isotropic Material with Penalization) are the gold standard for precision, they are slow and computationally expensive for large-scale problems.

Deep Generative Models (DGMs), particularly Diffusion Models, offer a faster alternative but face two major hurdles:

  1. The Physics Gap: Purely data-driven models often ignore underlying physical principles, leading to unmanufacturable designs with "floating material" or poor structural integrity.
  2. High Inference Cost: State-of-the-art models often require expensive Finite Element Analysis (FEA) preprocessing during inference to provide "guidance" fields (like stress or energy). This negates much of the speed advantage of using a neural network.

Diffusion Optimization Models (DOM)

To address these limitations, the authors propose a model that is as fast as a generative model but as "physics-aware" as a traditional optimizer. The DOM framework relies on three core components:

Overview of the Diffusion Optimization Model framework

1. Trajectory Alignment (TA)

Standard diffusion models learn to map Gaussian noise to a final design. Trajectory Alignment modifies the training objective so that intermediate noisy sampling steps are explicitly matched to the intermediate steps of a physical optimizer. This forces the model to follow a "physically grounded" path during generation, inheriting the logic of the physics-based optimizer.

Trajectory Alignment matches the diffusion sampling path to the physics-based optimization path

2. Dense Kernel Relaxation

To avoid the computational bottleneck of running FEA solvers during inference, the authors use cheap, physics-inspired kernels (based on Green’s functions) to approximate how loads and boundary conditions affect the design space. This provides the model with essential spatial context at a fraction of the cost of a full simulation.

3. Few-Steps Direct Optimization

For complex or out-of-distribution (OOD) scenarios, the authors propose a hybrid approach. The DOM generates a "near-optimal" design, which is then polished by just 5–10 steps of traditional SIMP optimization. This "warm-starting" significantly improves manufacturability and performance for novel constraints.

A New Multi-Fidelity Dataset

To enable this research, the authors introduced a significant new resource: a large-scale, multi-fidelity topology dataset containing both optimal and sub-optimal intermediate iterations. It includes 120,000 optimal designs and 600,000 intermediate optimization steps at both low (64x64) and high (256x256) resolutions. Unlike previous datasets that only provide the final output, this dataset provides the optimizer's "workings," which is essential for Trajectory Alignment.

Key Results and Insights

  • The Path is the Goal: Learning the process of optimization proves more effective than just learning the final result. Trajectory Alignment acts as a powerful consistency mechanism, stabilizing the sampling path.
  • Extreme Efficiency: DOM halves the inference computational cost compared to previous state-of-the-art models (like TopoDiff). It can generate viable, high-performance designs in as few as 2 to 10 sampling steps, whereas standard diffusion models often require over 100 steps.
  • Robust Performance: On in-distribution tasks, DOM achieves lower Compliance Error (CE) than existing guided diffusion models. When paired with a brief SIMP "polishing" phase, DOM significantly outperforms other generative models on novel, unseen constraint configurations.

Limitations and Future Work

While highly effective, DOM's training requires storing intermediate optimization steps, which increases dataset storage requirements. Additionally, its performance on completely novel constraints still relies on a few steps of a traditional optimizer to guarantee physical viability. However, the success of Trajectory Alignment opens exciting future directions, such as extending this methodology to other physics-heavy domains like fluid dynamics or heat transfer.

Summary updated

BibTeX
@inproceedings{giannone2023aligning,
  author = {Giorgio Giannone and Akash Srivastava and Ole Winther and Faez Ahmed},
  title = {{Aligning Optimization Trajectories with Diffusion Models for Constrained Design Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=KTR33hMnMX},
}
Figure