Differentiating through binarized topology changes: Second-order subpixel-smoothed projection
Giuseppe Romano, Rodrigo Arrieta, Steven G. Johnson · 2026
Read Differentiating through binarized topology changes: Second-order subpixel-smoothed projection by Giuseppe Romano, Rodrigo Arrieta, Steven G. Johnson (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2601-10737.txt.
Introduction
Giuseppe Romano, Rodrigo Arrieta, and Steven G. Johnson work on topology optimization, the art of letting math shape a part. Designs that can be built are binary: material or no material. Binary maps have no smooth slope, which clashes with gradient-based search. The subpixel-smoothed projection method eases that clash by smoothing edges below the pixel scale.
The method used a first-order expansion of the filtered field. The authors push it to second order. Higher order means finer accuracy near edges, where designs are won or lost. Better gradients let optimizers carve lighter, stronger parts. The work serves engineers who design real parts in photonics, mechanics, and beyond.
Catalog record
| CREATOR | Giuseppe Romano, Rodrigo Arrieta, Steven G. Johnson |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 42 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2601-10737
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Differentiating through binarized topology changes: Second-order subpixel-smoothed projection Giuseppe Romano, Rodrigo Arrieta, Steven G. Johnson Abstract A key challenge in topology optimization (TopOpt) is that manufacturable structures, being inherently binary, are non-differentiable, creating a fundamental tension with gradient-based optimization. The subpixel-smoothed projection (SSP) method ( 5 ) addresses this issue by smoothing sharp interfaces at the subpixel level through a first-order expansion of the filtered field. However, SSP does not guarantee differentiability under topology changes, such as the merging of two interfaces, and therefore violates the convergence guarantees of many popular gradient-based optimization algorithms. We overcome this limitation by regularizing SSP with the Hessian of the filtered field, resulting in a twice-differentiable projected density during such transitions, while still guaranteeing an almost-everywhere binary structure. We demonstrate the effectiveness of our second-order SSP (SSP2) methodology on both thermal and photonic problems, showing that SSP2 has faster convergence than SSP for connectivity-dominant cases—where frequent topology changes occur—while exhibiting comparable performance otherwise. Beyond improving convergence guarantees for CCSA optimizers, SSP2 enables the use of a broader class of optimization algorithms with stronger theoretical guarantees, such as interior-point methods. Since SSP2 adds minimal complexity relative to SSP or traditional projection schemes, it can be used as a drop-in replacement in existing TopOpt codes. keywords Topology optimization, Acceleration 1 Introduction In density-based topology optimization (TopOpt), projection methods play a central role because they ensure that the optimized structure is binary and, therefore, manufacturable ( 17 ) . In a typical three-field TopOpt formulation ( 14 ) , projection is the final step, following the smoothing of the design density—the latter representing the optimization degrees of freedom (DOFs). The main role of the projection operation is to drive the filtered field toward the extreme values of zero and one, representing the void and solid regions, respectively, in two-phase TopOpt. A practical challenge is to reconcile binary projection with differentiability, including a well-conditioned second-derivative, to ensure fast convergence with gradient-based optimization algorithms. A common projection method employs the hyperbolic tangent function, where the steepness parameter \beta\in[0,\infty) controls the projection strength: for \beta=0 , the projected field coincides with the filtered field, while for \beta\to\infty , the field becomes fully binarized and thus manufacturable. However, for large \beta , the Hessian of the projected field becomes ill-conditioned, which can slow down or even stall gradient-based optimization ( 10 ) . To mitigate this issue, a common strategy is to start with a weak projection and gradually increase \beta as the optimization progresses ( 14 ) . Although this continuation approach enables rapid early iterations, it may still result in slow convergence as \beta grows. In practice, though, the final \beta remains finite, and full binarization is achieved through postprocessing that hopefully does not perturb the structure too far from optimality. The choice of \beta -scheduling involves a trade-off between computational efficiency and the quality of the final binarized structure. Recent studies have explored automatic \beta -scheduling ( 3 ) , albeit at the cost of additional hyperparameters. Although many authors have learned tractable \beta schedules for a wide variety of practical problems, especially for problems where the physics inherently favors the binary extremes, we have recently shown that the process can be dramatically simplified by using a new projection. The subpixel-smoothed projection (SSP) ( 5 ) algorithm addresses this problem by locally smoothing the projected field using both the filtered field and its spatial gradient, which together enable the local construction of an approximate signed distance to the interface. This quantity is then used to smooth the projected field over a region roughly one pixel wide ( \Delta x ) around the interface, which remains twice differentiable even for \beta=\infty , while ensuring a strictly binary structure “almost everywhere”—except within \Delta x of interfaces—a property which we refer to in this paper as quasi-binary . This feature enables simpler \beta scheduling (or even optimizing with \beta=\infty from the start) and faster convergence at high \beta . One shortcoming of SSP is that it still yields nondifferentiable projected fields at \beta=\infty as two interfaces merge ( 5 ) , violating convergence guarantees of many optimization algorithms when such a common topology change occurs, motivating continued use of \beta scheduling to discover the correct topology before (quasi-)binarizing. In fact, optimizers that are widely used in TopOpt, such as those based on the conservative convex separable approximation (CCSA) ( 15 ) , including the globally convergent MMA algorithm, and interior-point methods ( 16 ) require in their convergence proofs that the cost function be twice-differentiable, though we find in practice (without proof) that they may tolerate occasional discontinuities. To address this limitation, we expand the filtered field to second order and use its Hessian to regularize the SSP signed distance. This methodology, which we term “second-order SSP” (SSP2), ensures that the projected density remains twice differentiable as two interfaces merge. For clarity throughout the text, we refer to the original SSP as SSP1 . Importantly, when interfaces are well separated, SSP2 recovers the behavior of SSP1, preserving SSP1’s central property of quasi-binary and differentiable structures for \beta=\infty . We first apply SSP2 to a simple 1D analytic example based on a parametrized quadratic filter, which represents two separated interfaces with tunable distance. This example illustrates several regimes as a function of the interface separation and highlights the improved smoothness properties of SSP2 compared to SSP1. We then consider three TopOpt problems, running 100 optimizations with random initialization in each case. Notably, all optimizations begin directly from quasi-binary structures, corresponding to \beta=\infty . The first example is the design of a thermal metamaterial in which one phase has negligible thermal conductivity. Here, SSP2 exhibits overall faster convergence than SSP1, a behavior we attribute to the connectivity-dominant nature of the problem, which induces frequent topology changes. Remarkably, SSP1 still converges in most cases—though fewer than SSP2—despite the discontinuities introduced by topology transitions and the resulting lack of theoretical convergence guarantees. Using the converged structures as initial guesses, we subsequently impose a minimum feature size ( 18 ) and find that the two methods achieve comparable performance. We attribute this behavior to the fact that the optimized constrained structures have topologies similar to their initial guess. The second example concerns the same thermal problem, but with the two phases having comparable thermal conductivity; because both phases support heat transport, optimal structures can include isolated islands, therefore, the problem is not connectivity-dominated. Consequently, for unconstrained optimization, both SSP1 and SSP2 converge for all samples with similar performance. The third example is the design of a wavelength demultiplexer. In this photonic TopOpt problem, the phases have similar dielectric permittivity, and, consistent with the second thermal case, SSP1 and SSP2 display comparable convergence behavior. In practice, the Hessian is computed using bicubic interpolation and automatic differentiation (AD), thus introducing minimal complexity to the original SSP, making it a convenient drop-in replacement in existing topology optimization workflows. SSP2 is easy to use, no slower to converge than SSP1 and sometimes much faster, and importantly yields much stronger theoretical convergence guarantees for popular optimization algorithms—hence, we believe it should be an attractive default choice for many TopOpt problems. The paper is organized as follows. Section 2 reviews the three-field