arXiv:2610.28703cs.LGOct 2026

Manuscript Offprint

arXiv:2610.28703

Scalable Stress-Constrained Topology Optimization: A Super-resolution and Simultaneous Approach Based on Machine Learning

Xiangyu Sun, Shirin Hosseinmardi, Ramin Bostanabad

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. We demonstrate that the training time decreases nearly in proportion to the number of GPUs and the peak GPU memory is reduced by increasing the number of sub-slices. Overall, SNTO offers an effective pathway to solve large-scale stress-constrained problems even on limited computational resources.

Keywords: Topology Optimization, Stress Constraints, Physics-Informed Machine Learning, Neural Networks, Multi-GPU Training, Adjoint Sensitivity.

1 Introduction

Topology optimization (TO) determines how material should be distributed in a design domain by optimizing an objective function subject to the governing physics and design constraints. Since the seminal work of Bendsøe and Kikuchi [1], TO has matured into a standard design tool in many disciplines such as structural mechanics, heat transfer, fluid flow, and multi-physics systems [2–6]. Conventional TO methods include the solid isotropic material with penalization (SIMP) approach [7, 8], the level-set method [9, 10], and evolutionary structural optimization [11], which have been extended to more advanced design problems with multiple materials [12–16], coupled physics [17–19], fracture and plasticity [20, 21], and manufacturing uncertainties [22]. In most of these settings, the objective is a global quantity (e.g., compliance or actuation displacement) and the design constraints are a few scalars such as the volume fraction. The problem becomes far more challenging when the design constraints are local and large in number.

Stress constraints are among the most popular local constraints. Since the stress limit must be satisfied at every spatial point, the number of constraints scales with the resolution of the discretization. Aggregation functions such as the p-norm or the Kreisselmeier–Steinhauser function condense the local constraints into one or a few global measures [23, 24]. But the resulting approximation of the maximum stress can be loose, and its accuracy depends on the aggregation parameter and adaptive scaling [25]. Augmented Lagrangian formulations instead keep every local constraint and handle them through a quadratic penalty with Lagrange multiplier estimates [26, 27]. In either case, the stress field is highly localized around re-entrant corners, crack tips, and loading regions where resolving the stress state requires fine meshes, further increasing the number of constraints.

Conventional stress-constrained TO methods follow a nested analysis and design (NAND) approach with three main steps: (1) the state variables are computed with the finite element (FE) method for a given design field; (2) the adjoint variables and the sensitivities are evaluated from the resulting stress distribution; and (3) the design is updated with the optimality criteria (OC) method [7] or the method of moving asymptotes (MMA) [28]. Each iteration therefore requires two FE solves whose size grows with the mesh. The first solve gives the state field while the second gives the adjoint field. The stress must also be evaluated at every element in each iteration to build the adjoint load for solving the adjoint field. This cost grows with the number of local constraints. For large-scale problems, especially in three dimensions (3D), this cost becomes prohibitive on a single machine. Large-scale implementations reduce this cost using distributed-memory parallelism and multigrid-preconditioned iterative solvers [29–32] which have reached the billion-voxel scale in, e.g., wing design [33]. In these implementations, the FE mesh is partitioned into blocks, and each processor stores and operates on its own block of the mesh and the system matrices. The blocks are coupled through the nodes on their shared boundaries, whose values are exchanged between processors in every iteration of the solver so that the solution remains continuous across the partition. These frameworks are well developed and computationally efficient, but they require substantial software and hardware infrastructure, and their memory footprint and communication overhead are mostly set by the mesh and its partition rather than by the design problem itself.

Machine learning (ML) offers a different route that is not bound to a mesh since all the variables can be represented by continuous functions of the spatial coordinates rather than by nodal values on a mesh. To reduce the cost of TO, data-driven approaches train generative models [34–37] or surrogate models for sensitivity evaluation [38–40] and super-resolution [41]. The generative capabilities of these models are limited by the coverage of their training databases which are built by conventional solvers. Applications of generative models in TO have been limited to simple problems (e.g., compliance minimization) where the cost of generating the training dataset can be justified.

Physics-informed ML (PIML) removes the dependence on data by training the model against the governing equations which are represented as either a PDE system or its variational form such as the deep energy method (DEM) [42, 43]. PIML has been applied to TO through three strategies: (1) the design field is parameterized with a neural network (NN) while the state is computed with an FE solver [44–48]; (2) the state variables are parameterized with NNs while the design field is updated with OC or MMA [49–51]; and (3) both the state and design variables are parameterized with NNs and trained on a single physics-based loss [52–55]. Across all three strategies, stress-constrained problems have received little attention, and most studies are limited to 2D examples with a modest number of local constraints.

Most ML-based TO works adopt a NAND approach where the state, adjoint, and design variables are updated in separate steps. An alternative to NAND is the simultaneous analysis and design (SAND) formulation [56] which avoids repeated state solves by jointly solving for the state and design variables. The continuous parameterization of strategy (3) is naturally suited to SAND: the equilibrium condition and the design objective are minimized simultaneously by a gradient-based optimizer, and the sensitivities follow from automatic differentiation (AD). Our prior work [54, 55, 57–59] showed that this simultaneous formulation produces mesh-independent designs with super-resolution for fluid flow optimization, compliance minimization, multi-material compliant mechanism design, and multi-material multi-physics problems. Three properties of the SAND formulation are relevant to stress-constrained TO: (1) the fields are continuous functions of the spatial coordinates, so the resolution at which the constraints are evaluated can be chosen independently of the number of trainable parameters; (2) the state and adjoint fields are obtained by minimizing energy functionals, so no global stiffness matrix is assembled, stored, or factorized; and (3) the loss is a sum over collocation points (CPs), which matches the structure of a penalty over local constraints. However, applying SAND to stress-constrained TO is challenging, since the sensitivity requires an adjoint field that must remain in equilibrium with a state solution that itself changes at every step of the optimization.

Beyond this difficulty, ML-based TO has so far been demonstrated only on relatively small scale problems due to high training costs and peak GPU memory requirements. Evaluating an NN and its spatial derivatives at millions of CPs in both the forward and backward passes easily exceeds the memory of a single graphics processing unit (GPU). This limitation can be addressed by domain decomposition [60, 61] in physics-informed neural networks (PINNs) and operator learning. For example, each subdomain can have its own NN [62, 63] that is trained only on the CPs within that subdomain so the memory required by any one network is a fraction of the total. These formulations can be implemented in parallel [64] by placing each subdomain network and its CPs on a separate GPU and exchanging only the interface quantities between devices. The convergence of such subdomain networks can be improved using shared initialization and imposing continuity of the solution and its derivatives at the interfaces [65]. Overlapping decompositions such as finite basis PINNs [66] instead multiply each local network by a partition-of-unity window function and sum the results, so that continuity across the overlaps follows from the smoothness of the windows rather than from an interface loss. In all of these approaches, the subdomain solutions are coupled either through interface loss terms that penalize jumps in the solution and its fluxes, or through overlapping windows. The interface terms introduce weights that must be tuned, compete with the physics loss during training, and require interface quantities to be exchanged between devices at every iteration. For a TO problem, the difficulty is exacerbated since the state, adjoint, and density fields would each require its own interface condition, and any residual jump in the displacement across an interface produces a spurious stress, which decreases the accuracy of local stress estimates.

In this work we introduce simultaneous neural topology optimization (SNTO) which is an ML-based framework for stress-constrained TO, see Fig. 1. SNTO represents the state, adjoint, and design fields by three separate NNs with each having as many outputs as the dimension of the variable it parameterizes, see Fig. 1(a). The three NNs are trained on a composite physics-informed loss that combines the objective, the design constraints, and the potential energy functionals. The local stress constraints are collected in a single quadratic penalty summed over all CPs, and its sensitivity is obtained by solving an adjoint problem driven by the active stress constraints. Importantly, our NNs are designed based on the parametric grid convolutional attention network (PGCAN) [67, 68] which mitigates spectral bias and captures the sharp gradients that characterize stress concentrations, see Fig. 1(b). Additionally, differentiations and integrations in our composite loss are approximated with FE shape functions and reduced Gauss quadrature to increase computational efficiency [58]. This approximation applies to loss evaluation only and so the formulation remains mesh-free from the perspective of the design and state representations.

To achieve scalability, SNTO exploits the additive property of the loss rather than domain decomposition. Since every term of our loss is a sum over the CPs, the gradient of the loss with respect to the NN parameters is additive over any partition of the CPs. We argue that interface loss terms are unnecessary and the continuity across any partition interface is guaranteed by the NN parameterization over the entire domain. In the implementation, the design domain is partitioned into slices, each with its own group of CPs distributed across multiple GPUs. To reduce the peak GPU memory, each slice is further divided into sub-slices that are evaluated sequentially on the host GPU. The composite loss is thus constructed from one small batch of CPs at a time. The gradients are accumulated over the sub-slices and synchronized across the GPUs before updating the shared parameters.

We summarize the contributions of this work as follows:

• We formulate stress-constrained TO as a physics-informed neural framework in which the state, adjoint, and design fields are parameterized by separate NNs and trained simultaneously on a composite loss.

• We derive a discrete adjoint sensitivity formulation for the penalty over the local stress constraints, and solve the adjoint field by minimizing its potential energy functional.

• We exploit the additivity of the loss gradient to distribute the training of large-scale problems over sub-slices and multiple GPUs without any interface loss terms.

• We benchmark SNTO against PolyStress [27] which shows that our SNTO framework produces sharper and lighter designs at a comparable stress level.

• We demonstrate the scalability of SNTO on 3D stress-constrained designs with up to 8M local stress constraints using up to eight GPUs.

The remainder of this paper is organized as follows. Section 2 states the governing equations and Section 3 presents our approach including its stress-constrained formulation, neural parameterization, multi-GPU training scheme, numerical approximation with shape functions, adjoint sensitivity analysis, and curriculum training strategy. Section 4 compares SNTO with PolyStress on various 2D benchmarks including the sensitivity to the number of CPs and an FE verification of the stress constraints. Scalability and computational cost of SNTO on 3D problems with up to 8M CPs are also demonstrated. Section 5 concludes the paper and outlines directions for future work.

References (75)