Scalable Stress-Constrained Topology Optimization: A Super-resolution and Simultaneous Approach Based on Machine Learning
Organizations: Department of Mechanical and Aerospace Engineering, University of California, Irvine, CA, USA · Department of Mechanical Engineering, Northwestern University, Evanston, IL, USA · Department of Civil and Environmental Engineering, University of California, Irvine, CA, USA
Abstract
Large-scale topology optimization (TO) remains computationally demanding, especially for stress-constrained problems. To address this challenge, we propose the simultaneous neural topology optimization (SNTO) framework where we represent state, adjoint, and design variables with custom neural networks (NNs) whose parameters are jointly optimized within a single optimization loop that leverages continuous adjoint analysis and automatic differentiation. This optimization minimizes a multi-component loss function that combines the design objective, an aggregation of the local stress constraints, and the potential energy functionals. Our NNs have a unique architecture that accelerates convergence while enabling the networks to capture sharp gradients and boundaries which are critical to stress-constrained TO. To achieve scalability to millions of degrees of freedom (DoF), we develop a hardware-aware training scheme in which the design domain is partitioned into subdomains that are distributed across multiple GPUs. To control peak GPU memory usage, we further slice each subdomain into smaller regions whose loss gradients are evaluated sequentially and accumulated to update the NN parameters. Unlike domain decomposition approaches, our partitioning naturally ensures field continuity across the subdomains and does not require the introduction of additional terms into the loss function. For validation, we first evaluate the proposed framework on various 2D stress-constrained benchmarks and compare our results to a conventional finite element-based approach, showing that SNTO produces super-resolution designs with sharper boundaries, smaller gray areas, and lower volume fractions. We then consider large-scale 3D problems with up to eight million collocation points and distribute the training over up to eight GPUs.
Figures & tables
| Example | ( ) | ( ) | ( ) | ( ) | ( ) | ( ) | ( ) |
| L beam 2D | 1 | 1 | 0.1 | – | – | 0.05 | 0.2 |
| Crack 2D | 2 | 1 | 0.1 | – | – | 0.1 | 0.5 |
| Hook 2D | 1.5 | 1 | 0.1 | 0.1 | 0.19 | 0.597 | 0.5 |
| Portal frame 2D | 0.6 | 0.6 | 0.1 | – | – | 0.05 | 0.15 |
| L beam 3D | 1 | 1 | 0.1 | – | – | 0.05 | 0.2 |
| Portal frame 3D | 0.6 | 0.6 | 0.1 | – | – | 0.05 | 0.15 |
| Example (2D) | PolyStress | SNTO 2D 125K | SNTO 2D 250K | SNTO 2D 500K | SNTO 2D 1M | ||||||
| Nodal CPs | Centroid CPs | Nodal CPs | Centroid CPs | Nodal CPs | Centroid CPs | Nodal CPs | Centroid CPs | Nodal CPs | Centroid CPs | ||
| L beam | 251251 | 251000 | 125153 | 124270 | 250891 | 249641 | 502704 | 500934 | 1006008 | 1003503 | (24, 24) |
| Crack | 251695 | 250632 | 125900 | 125148 | 251525 | 250462 | 501501 | 500000 | 1002510 | 1000387 | (24, 48) |
| Hook | 495406 | 250000 | 125219 | 124123 | 251262 | 249704 | 501870 | 499666 | 1001114 | 997998 | (24, 36) |
| Portal frame | 495557 | 250000 | 125000 | 124261 | 250790 | 249743 | 500823 | 499343 | 1000785 | 998693 | (24, 24) |
| Example (3D) | SNTO 3D 500K | SNTO 3D 1M | SNTO 3D 2M | SNTO 3D 4M | SNTO 3D 8M | ||||||
| Example | Metric | PolyStress 2D | SNTO 2D 125K | SNTO 2D 250K | SNTO 2D 500K | SNTO 2D 1M |
| L beam 2D | Volume fraction | 0.365 | 0.341 | 0.349 | 0.349 | 0.343 |
| Gray fraction | 0.087 | 0.027 | 0.035 | 0.026 | 0.023 | |
| Runtime (sec) | 2435 | 1432 | 2722 | 5221 | 10705 | |
| Crack 2D | Volume fraction | 0.258 | 0.244 | 0.247 | 0.241 | 0.248 |
| Gray fraction | 0.054 | 0.021 | 0.017 | 0.012 | 0.015 | |
| Runtime (sec) | 2559 | 1276 | 2341 | 4423 | 8758 |
| Example | Metric | SNTO 3D 500K | SNTO 3D 1M | SNTO 3D 2M | SNTO 3D 4M | SNTO 3D 8M |
| L beam 3D | GPUs sub-slices | |||||
| Volume fraction | 0.342 | 0.347 | 0.350 | 0.345 | 0.351 | |
| Gray fraction | 0.015 | 0.013 | 0.009 | 0.015 | 0.015 | |
| Runtime (sec) | 7661 | 8912 | 17784 | 22037 | 50532 | |
| Portal frame 3D | GPUs sub-slices | |||||
| Volume fraction | 0.234 | 0.224 | 0.228 | 0.248 | 0.258 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Topology Optimization
Topology optimization finds material layouts that meet performance and manufacturing constraints across engineering systems.
See all 34 papersBilevel Optimization of Topology and Hyperparameters (BOTH)
magic numbers''---hyperparameters whose tuning significantly affects the outcome. Finding the right values typically requires not only deep problem-specific knowledge but also extensive trial-and-error. While practitioners can use surrogate-assisted hyperparameter optimization as an alternative, this approach requires strictly limiting the number of hyperparameters through careful problem formulation. Here, we propose differentiating TO itself using automatic differentiation. This yields hypergradients'' that allow us to tune these hyperparameters in tandem with the primary optimization. We show that evaluating just one or two steps of TO is sufficiently informative and that the method scales favorably to thousands of hyperparameters at an expense comparable to only a few standard TO runs. We demonstrate this approach on stress-constrained and compliance problems, with the latter utilizing a neural parameterization of the density field.