Manuscript Offprint
arXiv:2610.25565Concurrent two-scale topology optimization of printable bone scaffolds via rectified-flow generation and exact latent-space refinement
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Bone scaffolds must reconcile a macroscale mechanical response with microscale geometric feasibility, yet conventional approaches to their design restrict attainable constitutive properties. This work presents a concurrent two-scale topology optimization framework; a conditional rectified flow generates periodic lattice microstructures, which are then refined in latent space by exact finite-element homogenization sensitivities. The resulting unit-cell geometries and their spatial assignments are jointly optimized under mechanical and feature-size constraints. In a distal rabbit femur benchmark, all eight flow-started refinements produce printable cells with maximum relative errors under 1% across six prescribed engineering moduli. Constructing the implant from a single tiled cell reproduces intact whole-femur compliance within 0.1% and regional strain energy within 0.35% under four loading conditions. In human femoral reconstruction, multiscale concurrent optimization produces a cortical mid-shaft scaffold with porosity 63% while satisfying the compliance constraint within 2% under walking and stair-climbing loads. It achieves an 84% porosity on a proximal cancellous scaffold with strain-energy deviations below 0.25% under the same loads. Analysis of the learned representations reveals distinct architectural families in latent space. Further, the attention heads of the rectified-flow transformer specialize for spatial shifts – learning the analogue of a finite-difference stencil – and coordinate symmetries, with ablations showing their influence on generated topologies. These results establish a route to printable, mechanically constrained scaffold designs. The framework is general enough for extending to many other multiscale structural design applications including topology-microstructure co-design in metal additive manufacturing.
1. Introduction
The mechanical compatibility of an orthopedic implant with surrounding bone is central to its performance. Too stiff, and it can redistribute load away from the host bone – potentially causing stress shielding and bone resorption. Too compliant, and it can compromise structural stability [1, 2]. Additively manufactured porous titanium provides a means of tuning effective stiffness – subject to strength and bone ingrowth requirements [3]. The feasibility of these scaffolds has been demonstrated experimentally in femoral defects [4], and clinically in the reconstruction of critical defects [5]. Reducing effective stiffness alone, however, does not account for the anisotropy of bone and directional dependence of physiological loading [6]. Orthotropic lattices provide independent constitutive degrees of freedom for tailoring implant stiffness to the anisotropic mechanical requirements of bone. For a transversely isotropic cancellous target, contemporary cell-design methods miss one modulus by 59–100%.
Realizing these properties requires identifying geometrically admissible microstructures with prescribed constitutive responses. This inverse design problem is non-unique: many distinct topologies may produce similar constitutive responses. Conditional generative models thus appear to offer a natural complement to numerical optimization in this domain. By learning a distribution over geometries conditioned on the desired response, these models can represent this one-to-many inverse relationship and rapidly generate multiple candidate microstructures [7]. Numerical inverse homogenization approaches the same problem from the opposite direction: refining a particular geometry via sensitivities of its constitutive response [8]. Their complementary strengths suggest a division of labor in which generation identifies a suitable topology, and numerical homogenization refines its constitutive properties. This is especially valuable when both constitutive accuracy and printability conditions must be satisfied. Local refinement can
Corresponding author
souravsaha@vt.edu (S. Saha)
ORCID(s): 0009-0003-4863-626X (R.T. Batley); 0000-0003-0237-0200 (S. Saha)
Batley and Saha: Preprint submitted to Elsevier
Page 1 of 35 correct the mechanical response of a suitable topology, but cannot be relied upon to recover a printable geometry from an unsuitable initialization. On a cancellous bone target, the best of 256 printable generated cells misses the prescribed moduli by 12.5%, while exact refinement of the same cells closes to within 0.8–1.0% from every generated start. Alas, the very same refinement initialized from random latents fails to improve on its 31–41% starting error within 400 steps under the thickness floor. The role of generation is thus not merely in accelerating inverse homogenization, but supplying a geometrically admissible topology for subsequent refinement.
A suitably chosen latent representation provides a natural means of marrying these approaches. By restricting optimization from full voxel space to a lower-dimensional manifold of plausible topologies, exact refinement need not directly manipulate every degree of freedom [9]. Existing methods have coupled these representations to learned constitutive predictors, typically neural networks, and use their gradients to guide latent optimization [10, 11]. Surrogate gradients, however, are not guaranteed to agree with those of the underlying homogenization problem, especially as optimization moves further from the training distribution [12, 13]. Refining the same starts with gradients from a learned property predictor reduces the predicted error to below 0.03%, while the exact error of the decoded cells remains 12–13% – essentially unchanged from initialization. Exact adjoint refinement from the same starts reaches 0.8–1.0%. Differentiable numerical solvers offer an alternative, retaining the computed response of the decoded geometry as the optimization objective [14, 15]. This preserves the distinction between the learned representation – which constrains the geometric search space – and the numerical model, which determines the mechanical response.
However, constitutive accuracy alone does not determine whether a generated microstructure can be realized. Manufacturing imposes its own geometric constraints, particularly on thin structures and walls, whose dimensions also govern volume fraction and effective stiffness. Minimum length-scale constraints are well established in topology optimization [16, 17], and generative models have increasingly incorporated manufacturing considerations [18]. Conditioning on stiffness and volume fraction does not independently control the distribution of local feature thickness, of course, and this distinction becomes crucial when unit cells are assigned physical dimensions. At different cell scales, a fixed normalized thickness corresponds to different manufacturable feature sizes. Normalized feature thickness is therefore treated as an explicit design variable alongside the constitutive tensor and volume fraction. In particular, this work uses fifth-percentile thickness as representative rather than the minimum, which is sensitive to isolated voxel-scale features, to obtain a more robust measure of the thin regions present in each cell. Specifically, for a solid domain with local-thickness field ,
Here, is the physical unit-cell length (with the same units as ), is the empirical fifth percentile via linear interpolation between ordered samples, and is the diameter of the largest ball that contains and lies entirely within , as Hildebrand and Rüegsegger [19]. The corresponding physical thickness is thus , allowing a prescribed manufacturing threshold, , to be expressed as .
This work combines these ideas in a conditional latent rectified flow framework for three-dimensional lattice generation. A generative model is trained to sample microstructures conditioned on the nine independent components of an orthotropic stiffness tensor , volume fraction and the normalized fifth-percentile thickness . The generated geometry is refined by latent-space optimization via discrete finite-element-homogenization adjoints. Discrete sensitivities are propagated through the decoder to refine the three Young's and three shear moduli, and candidate geometries are screened against the prescribed thickness threshold. The resulting refinement is local by intent, only correcting constitutive responses, having outsourced the global-scale exploration of candidate topologies to the generative model. This framework is evaluated through two-scale design of Ti-6Al-4V femoral implants, where optimized orthotropic stiffnesses must be realized by geometrically feasible lattice microstructures. Cortical and cancellous defect configurations provide contrasting mechanical targets under walking and stair-climbing loads.
The contributions of this work are as follows:
-
A conditional rectified-flow model that generates printability-aware unit cells from the full orthotropic stiffness tensor and volume fraction;
-
Exact adjoint-homogenization refinement in latent space to drive cell properties to sub-1% accuracy from every rectified-flow start while satisfying a feature size constraint; neither random initializations (30%) nor a learned surrogate (12%) suffices;
Batley and Saha: Preprint submitted to Elsevier
Page 2 of 35
• Self-improvement via expert iteration: refined cells, re-encoded and exactly relabeled, retrain the generator raising the one-shot rate of printable cells within 5% of bone targets from 4.0% to 15.4%;
- A two-scale constitutive design framework realized by online generation, refinement and exact constitutive feedback;
• Application to Ti-6Al-4V femoral implants, for both cortical and cancellous defects, under physiological walking and stair-climbing loads.
2.1. Homogenization and multiscale constitutive design
Early homogenization-based topology optimization replaced binary solid–void layouts with a continuous field of effective anisotropic porous materials [20]. Inverse homogenization followed, seeking a periodic unit cell given a desired set of effective constitutive properties [8]. Density-based methods subsequently provided a simpler material-interpolation framework [21], together with compact finite-element implementations for compliance minimization [22, 23], and projection-based regularization for controlling minimum length scales [16]. In making the material itself a design variable, macro- and microscales are coupled through repeated homogenization [24, 25, 26]. Conventional concurrent formulations require repeated macroscale equilibrium solutions and microscale constitutive evaluations as the design evolves. Maintaining this coupling efficiently while retaining the sensitivities required for optimization remains a central challenge in multiscale constitutive design.
2.2. Unit-cell libraries and data-driven multiscale design
Precomputed unit-cell libraries provide an alternative to repeated on-demand microscale optimization by associating realizable geometries with their homogenized constitutive properties. Early approaches constructed families of compatible microstructures for spatially-varying elasticity [27], and subsequently constrained two-scale optimization to a precomputed library of attainable material properties [28]. More recently, generative modeling and active learning have enabled large libraries of bicontinuous, boundary-compatible cells, with demonstrated application to femoral implant design [29]. Parameterized triply periodic minimal-surface (TPMS) architectures, including the gyroid and IWP, provide an alternative family of established sheet-based lattice geometries for porous scaffolds [30, 31]. However, this framework restricts elasticity to cubic symmetry – with three independent stiffness constants – and realizes optimized properties through discrete library lookup. Thus, while data-driven libraries provide an effective bridge between constitutive optimization and geometric realization, their fidelity remains dependent on the coverage and resolution of the attainable property space.
2.3. Learned representations for microstructure design
The forward homogenization operator
maps a high-dimensional geometry to a much lower-dimensional set of high-level properties. In this way, many geometrically distinct units might occupy similar regions of property space. Inverse homogenization already operates under this assumption of non-uniqueness [8]. One way to restrict the inverse problem is to constrain the admissible geometry to a lower-dimensional family. Spinodoid microstructures, for example, admit a compact continuous parameterization that supports inverse design within a smooth design space [32]. Learned representations, in effect, generalize this idea to richer geometric families. Deep generative modeling has been used to construct continuous latent representations of metamaterial systems, supporting interpolation between geometries and the design of spatially heterogeneous structures [7]. Similarly, graph variational autoencoders have been used to construct continuous design spaces of three-dimensional truss metamaterials, with latent variables optimized to match prescribed mechanical properties [9].
Latent representations have subsequently been incorporated into multiscale optimization. One example couples a generative microstructure representation to a learned predictor of homogenized properties for multiscale topology optimization [10]. A related approach used a variational-autoencoder representation of unit cells for thermo-mechanical multiscale design [33]. Janus couples an autoencoder with a constitutive-property predictor – a separable neural
Batley and Saha: Preprint submitted to Elsevier
Page 3 of 35 architecture [34, 35] – to enable gradient-based inversion of prescribed thermal properties [36, 37]. Continuous latent variables have also been used to interpolate between multiple microstructure classes while jointly optimizing the local material volume fraction [38]. These works establish that learned continuous representations can provide effective design coordinates for complex local architectures and can be embedded within gradient-based multiscale topology optimization.
A complementary strategy is to generate microstructures directly from prescribed mechanical targets. Learned models have been used for non-iterative prediction of topology-optimized metamaterials [39]. More recently, conditional diffusion models have been used to generate three-dimensional microstructures from prescribed mechanical properties – including voxel-based lattices, implicit lattice representations and curved truss architectures [40, 18, 11]. Guided diffusion has also been used to generate microstructures conditioned on effective elastic properties and boundary compatibility for multiscale topology optimization [41]. Conditional generation learns a conditional distribution from material properties to candidate geometries, enabling multiple distinct microstructures to be sampled for the same constitutive target.
2.4. Learned constitutive surrogates and differentiable numerical physics
Repeated numerical homogenization is a major cost in concurrent topology optimization, motivating learned approximations of the map between local design variables and constitutive properties. Neural network surrogates of microscale elasticity have been incorporated into gradient-based multiscale topology optimization [42]. Subsequent approaches have replaced repeated finite-element homogenization of spinodoid microstructures with a neural constitutive map whose automatic derivatives supply sensitivities with respect to local microstructure parameters [43]. Similarly, deep networks have been trained to predict both homogenized properties and their shape sensitivities for concurrent multiscale structural optimization [44].
A related strategy uses stiffness predictors to guide the inverse design of microstructures. Random-Walk Microstructures trains a convolutional stiffness surrogate on numerically homogenized cells, which is subsequently differentiated during inverse design [45]. Surrogate-guided optimization has also been extended to fully anisotropic elastic tensors using parameterized Kelvin-cell geometries [46]. Recent work has coupled a learned lattice decoder to a graph-convolutional predictor of equivalent mechanical properties in concurrent multiscale optimization [47].
An alternative here is to retain the numerical physics and differentiate through it. Neural reparameterization has demonstrated that design coordinates can be altered while retaining the original physics-based objective [14]. Neural parameterizations have been integrated with finite-element-based topology optimization [48], while differentiable finite-element frameworks enable direct computation of numerical sensitivities for inverse design [49]. Automatic differentiation of FFT-based homogenization provides another route to constitutive sensitivities [50]. Differentiable physics solvers have also been used to guide diffusion-based inverse design of metamaterials [15]. Neither differentiable finite-element analysis nor physics-based microstructure sensitivities are themselves new, but the distinction between differentiating a surrogate and the discretized governing problem is especially relevant in inverse optimization. Unconstrained learned homogenization surrogates have been shown to produce mechanically spurious solutions under gradient-based inverse design [51]. The point is thus: predictive accuracy on sampled data and reliability in optimization are not identical objectives.
2.5. Geometric realizability
Gradient-based topology optimization commonly operates on relaxed or filtered representations that are subsequently projected towards binary geometries. Volume-preserving projection methods provide one route for controlling this transition [52]. In multiscale design, realization introduces additional constraints as locally optimized cells must remain connected and mutually compatible. Connectivity constraints have been introduced explicitly [53]. More recent approaches construct boundary-identical microstructure families to enforce geometric compatibility [41], or quantify physical compatibility by comparing the response of assembled microstructures against their homogenized equivalents [54]. Geometric realizability also depends on feature size, which can be altered by projection or discretization, making geometric verification of the realized binary microstructure necessary.
3. Computational Methods
The proposed framework proceeds in a latent space, combining initial microstructure generation with a conditional flow model, homogenization adjoint-based refinement, and gradient-based concurrent two-scale optimization (Figure
Batley and Saha: Preprint submitted to Elsevier
Page 4 of 35
1). During offline training, a -variational autoencoder learns a latent representation of lattice geometries. Periodic finite-element homogenization provides their constitutive properties. A conditional rectified-flow model, parameterized by a diffusion transformer (DiT) [55], learns to generate latent representations conditioned on those properties. At inference, generated cells can be screened and refined by homogenization sensitivities for cell-level design. For whole-structural optimization, flow-generated cells instead initialize a coupled problem in which latent microstructures and their spatial assignments are jointly optimized, their gradients chained to adjoints from homogenization and the frozen decoder.
3.1. Unit-cell data and labels
Unit cells are periodic binary lattices on a voxel grid with mirror symmetry about the three mid-planes. They are stored and generated as a single octant, with the full cell recovered by mirroring. Because mirror symmetry makes each cell orthotropic in the cell frame, its homogenized elasticity is described by nine independent constants
The stiffness components are normalized by the reference solid modulus in constructing the conditional descriptors. is the Poisson ratio of the reference solid.
The dataset combines several families of cellular geometries. Cubic-symmetric cells are drawn from the public L-BOM library [29] and relabeled with the Q1 finite-element solver used throughout this work. Parametric strut lattices are constructed from connected graphs of interior nodes and boundary anchors, with additional members introduced to increase topological diversity. These are further extended with elliptical plate elements and anisotropic variants, featuring preferentially aligned columns and plates. Further families include selectively thickened generated cells, low-volume derivatives obtained by thinning and stretching, and spinodoid architectures constructed from spatially correlated cosine fields. Model-directed acquisition provides additional cells sampled from mechanically underrepresented regions – including low-volume and strongly anisotropic targets. Although the L-BOM and isotropically thinned subsets retain cubic symmetry, the remaining families span orthotropic responses without imposing cubic elastic symmetry.
Every cell is labeled with its homogenized stiffness tensor , its volume fraction and its normalized fifth-percentile local thickness . The stiffness tensor is computed by periodic first-order (Q1) finite-element homogenization. This is a matrix-free solve of the six cell problems on the grid using an FFT-preconditioned conjugate-gradient method with void stiffness floor of .
Following the local-thickness definition of [19], denotes the diameter of the largest sphere containing x and itself contained entirely within the solid domain . Then, the normalized thickness descriptor is as written in Equation (1).
The conditional generative model uses eleven material and geometric descriptors,
with coupling ratios,
This parameterization preserves the nine independent stiffness components while accommodating the signed coupling terms. Each descriptor is standardized using the training-set means and standard deviations before embedding by the rectified-flow model. Equivalently, the orthotropic response can be expressed through three Young's moduli, three shear moduli, and three Poisson ratios. The inverse-design examples prescribe the six engineering moduli, leaving the Poisson ratios unconstrained.
The pretraining set contains 117,048 distinct cells. Each is further included under its six axis permutations, with concomitantly permuted stiffness labels, yielding 702,288 training instances. Separate validation and test splits each contain 10,000 cells split by parent geometry group and stratified by family so that permuted instances of the same geometry cannot appear across dataset partitions.
Subsequent supervised fine-tuning (SFT) adds 2,689 finite-element refined cells. The validation and test sets remain unchanged for SFT.
Batley and Saha: Preprint submitted to Elsevier
Page 5 of 35
A OFFLINE TRAINING

B ONLINE GENERATION

C CONCURRENT TWO-SCALE TOPOLOGY OPTIMIZATION

Figure 1: Overview of the proposed framework. a, Offline training of the conditional rectified-flow model. b, Online cell-level design. c, Concurrent two-scale topology optimization with coupled latent and assignment updates.
3.2. Latent autoencoder
A three-dimensional KL-regularized autoencoder – following the latent-diffusion design [56] – represents a binary symmetry octant with a spatial latent . Let , 192. This reduces the number of scalar entries by a factor of 32 while maintaining a spatial latent grid. The autoencoder is trained to reconstruct the geometry, without use of the constitutive-property labels. Beyond compression, the goal of the autoencoder is to
Batley and Saha: Preprint submitted to Elsevier
Page 6 of 35

Figure 2: Autoencoder architecture and unit-cell reconstruction.
supply a fixed representation of high-level features in which the conditional generative model is learned. The encoder and decoder architectures, together with the reconstruction and mirroring operations are illustrated in Figure 2.
Probabilistic representation The autoencoder's probabilistic model factorizes as , with standard Gaussian prior . The encoder approximates its intractable posterior by a Gaussian,
Batley and Saha: Preprint submitted to Elsevier
Page 7 of 35
In particular, the encoder outputs the log-variance clipped to . denotes elementwise multiplication. The decoder outputs logits and occupancy probabilities . When frozen, this mapping is denoted . Its reconstruction likelihood factorizes over the octant voxels,
Encoder architecture An input convolution is followed by four resolution levels with channel widths . Each level has two residual blocks (GroupNorm; SiLU; convolution twice; with a skip connection). The first three levels end with a stride-2 convolution reducing to . At the bottleneck, a residual block, self-attention over the 512 spatial sites, and a second residual block completes the encoder backbone. An output convolution gives the posterior mean and log-variance .
Decoder The decoder mirrors the encoder, with the middle stage first and three residual blocks per level, using nearest-neighbor upsampling followed by convolution, and outputs voxel logits.
Training objective The evidence lower bound (ELBO) satisfies,
The reconstruction term is the voxel-summed Bernoulli negative log-likelihood (NLL). The KL penalty is weighted, and the reconstruction term is augmented with latent perturbations. This yields a regularized reconstruction objective based on the two terms in Equation (10). Namely,
Here, is the mean over all posterior-mean entries in the minibatch, and is treated as constant during backpropagation. The added noise is scaled by the spread of posterior means, separately from the uncertainty in posterior sampling. At training step s, its maximum scale factor is
The overall objective is
The expectation includes sampling of training cells, axis permutations, posterior noise and the additional latent perturbation. Reconstruction and KL terms are summed over their respective coordinates, and averaged over each minibatch. The autoencoder is trained for 24,000 steps with a minibatch size of 16, AdamW with no weight decay, a peak learning rate of , 1,000 warmup steps and cosine decay to 1% of the peak rate. Gradients are clipped to unit norm.
Batley and Saha: Preprint submitted to Elsevier
Page 8 of 35
Flow-model latents After training, both the encoder and decoder are frozen. The flow dataset uses the deterministic posterior mean of each oriented cell,
The flow operates in standardized latent coordinates, and thus sampled latents are transformed back to the decoder's native coordinates before decoding or optimization. For oriented training rows with unstandardized latents , these scalar normalization constants are
3.3. Latent conditional rectified flow
Inverse design requires a distribution of geometries compatible with a set of target descriptors, since multiple unit-cell topologies may plausibly share identical effective properties. In the frozen autoencoder representation, this translates to the problem of learning the conditional distribution of standardized geometry latents. The conditioning descriptors, , are standardized componentwise via
The condition is grouped into stiffness, volume and thickness. These have respective index sets ; and . The mask specifies the supplied groups. The corresponding component mask has entries for , giving the availability condition . For example, with volume omitted, conditions on stiffness and thickness while marginalizing over volume. The conditional generative model is constructed as a probability transport from a Gaussian reference distribution to this data distribution, namely a rectified flow [57, 58].
The conditional rectified-flow model and its diffusion-transformer architecture are shown in Figure 3.
Probability transport Let be a path of latent distributions indexed by pseudo-time . Furthermore, let this path have endpoints
A velocity field transports probability along this path, if it satisfies the continuity equation,
Equivalently, under the usual regularity conditions for the flow, particles evolving according to
have distribution .
Straight-line probability path A straight-line path is specified by pairing, independently, a data latent with Gaussian noise to form the interpolant
Batley and Saha: Preprint submitted to Elsevier
Page 9 of 35

Figure 3: Conditional rectified-flow architecture and unit-cell generation.
with constant pathwise velocity
For a fixed data endpoint, the intermediate distribution and a velocity that transports it are, for ,
On a sampled path, this endpoint-conditioned velocity is simply
Batley and Saha: Preprint submitted to Elsevier
Page 10 of 35

Figure 4: Validation flow-matching loss curves of the DiT, MM-DiT and U-Net backbones.
The full conditional probability path, therefore, is the mixture
Each endpoint-conditioned pair satisfies the continuity equation. Averaging their probability fluxes gives the marginal transport velocity
This field satisfies the continuity equation for the mixture path. Note that while individual endpoint-paired training paths are straight, trajectories of the marginal field may curve: their velocities average over the possible endpoints compatible with the current latent and condition.
Conditional flow-matching objective Direct evaluation of Equation (32) would require the conditional data distribution, which is unknown. Instead, a neural network is trained by regression on sampled endpoint pairs to act as a surrogate for the velocity field itself. Let denote the empirical distribution of training pairs . Drawing a pair from , independent noise , a time and a condition mask , the objective is written
Condition-mask sampling is independent of training geometry and descriptors.
Velocity network The flow velocity network, , is a diffusion transformer (DiT) [55], chosen following an ablation against a parameter- and data-matched ADM-style U-Net [59] and multimodal diffusion transformer (MM-DiT) [60]. The three backbones were trained on identical data and schedules, with similar parameter counts (Table 1). The DiT attained the lowest validation flow loss (Figure 4) and matched the alternatives in generation success on 48 printable held-out targets. Differences in success are within the resolution of the target set. It is notable that on the bone targets, none of the models generated a cell within 5% maximum relative error. This is an example motivating both the use of expert refinement, as well as numerical refinement of generated cells.
The DiT operates on the latent grid, with patch size 1 – i.e. 512 tokens – plus 4 register tokens, width 720, 16 blocks and 8 attention heads. The register tokens are learned auxiliary tokens that participate in self-attention but have no associated spatial location and are discarded before the final velocity projection [61]. Each block uses RMSNorm with zero-initialized adaptive modulation, QK-normalized attention with three-dimensional rotary positional embeddings, and a SwiGLU MLP, with U-ViT-style long skip connections [62]. Time and target descriptors modulate the transformer through the groupwise conditioning mechanism described as follows.
Batley and Saha: Preprint submitted to Elsevier
Page 11 of 35
Table 1
Backbone ablation. Success is the fraction of targets for which at least one of 64 samples is printable.
| Backbone | Parameters | Val. flow loss | Success 5% | Success 10% |
|---|---|---|---|---|
| DiT | 161.6M | |||
| MM-DiT | 159.8M | |||
| U-Net | 171.0M |
Conditioning Each standardized descriptor receives a Fourier feature vector
where frequencies are initialized from a standard Gaussian and optimized during training. Fourier features provide a nonlinear representation of the continuous mechanical descriptors before groupwise embedding. The features are concatenated within each group and passed through a separate two-layer SiLU MLP, denoted . Its embedding is
Here is the learned null embedding for a group . The shared conditioning embedding is
Here, SPE is a sinusoidal positional embedding [63]. The resulting embedding supplies the adaptive modulation parameters in each transformer block and the final output layer.
The shared conditioning embedding is passed through SiLU and a learned linear projection in order to obtain separate scale, shift and gate vectors for the attention and feedforward branches of each transformer block. For an unnormalized token representation , the adaptive modulation takes the form
with the corresponding residual branch multiplied by a learned gate . Modulation parameters are shared across tokens within each sample. The linear projections producing them are initialized at zero in order that residual branches begin inactive. Queries and keys are RMS-normalized before applying three-dimensional rotary positional embeddings (RoPE) [64]. Because self-attention alone does not encode token positions, three-dimensional RoPE introduces spatial positional information along the three latent axes into the attention operation. This is applied to spatial tokens only. A final adaptively modulated normalization and zero-initialized linear projection recover the latent velocity field from the spatial tokens.
Guidance For classifier-free guidance [65], all three condition groups are replaced by their learned null embeddings with probability 0.1 during training. Independently, the volume group is also replaced by its null embedding with probability 0.3, so that targets can be generated without prescribing . Complete conditioning, conditioning on stiffness and thickness alone, and fully unconditioned training occurs with probabilities 0.63, 0.27 and 0.1 respectively. At sampling time, the guided velocity is
with guidance scale , and where and . Here, denotes the fully masked condition .
Training The optimizer is AdamW, with batch size 256, weight decay 0.01, cosine learning-rate decay, and an exponential moving average of the weights used for all evaluation. The base model is trained for 150,000 steps at learning rate (2,000 warm-up steps, EMA decay 0.9999). Each expert-iteration round fine-tunes the base model for 10,000 steps on the enlarged dataset at learning rate (250 warm-up steps, EMA decay 0.999), upweighting the most recently acquired cells eightfold.
Batley and Saha: Preprint submitted to Elsevier
Page 12 of 35
3.4. Inverse design of unit cells
Generation The rectified-flow model defines a continuous transport from Gaussian noise to a sample from the learned conditional latent distribution . In the following examples, the volume-fraction conditioning group is masked. A sample is drawn by integrating the transport ODE,
At inference, to improve adherence to property targets, classifier-free guidance (CFG) modifies the learned velocity field as Equation (38) with guidance scale . The resulting transport ODE is integrated with 16 forward-Euler steps from via
The resulting generated latent is subsequently decoded to – the occupancy probabilities on the symmetry octant.
Realization To the decoded unit cells, a realization function is applied. This proceeds as follows:
-
thresholding at 0.5: deleting voxels with an occupancy probability under a half;
-
overwriting the prescribed connective-boundary mask voxels with their fixed solid/void values;
-
mirroring to a full cell; and
-
removing solid islands not connected to the largest 6-connected component.
The result is checked to form a single connected solid that spans the cell in all three directions, and that the boundary mask remains intact after solid islands are removed. Candidates that fail are discarded.
Screening In this work, for each target, 64 such cells are generated and realized. They are then evaluated by loose-PCG-tolerance ( ; found to change the worst-modulus error by at most 0.06%) Q1 finite-element homogenization. Feasibility – i.e. the realized geometry is valid with – is assessed. Feasible candidates are ranked by their maximum relative error over the six engineering moduli,
These are obtained from the homogenized compliance,
using engineering-shear Voigt notation. If the best feasible candidate satisfies , it is accepted directly. In this work the acceptance tolerance is taken to be . Otherwise, the eight best feasible candidates are refined.
Refinement Each selected latent is optimized using Adam for up to 80 steps with learning rate . The objective is the squared logarithmic discrepancy between target and computed engineering moduli:
Given , let denote the occupancy predicted by the frozen decoder at voxel . For differentiable homogenization, projection occurs via a smoothed Heaviside,
Batley and Saha: Preprint submitted to Elsevier
Page 13 of 35
which continuously approximates binarization. Here is taken to be 20 and . The prescribed mask is held fixed, and the resulting field is mirrored to the full periodic cell. For homogenization, element stiffness is left to vary linearly with without a SIMP penalization exponent.
The predicted moduli are obtained via Q1 homogenization of , which gives , then conversion as Equation 42. For each imposed macroscopic strain case , the periodic cell problem is solved for the displacement fluctuation . By stationarity of these cell-problem solutions, the sensitivity of the homogenized stiffness with respect to each requires no separate adjoint solve. Let be the imposed macroscopic strain and be the periodic displacement fluctuation for a load case . Indeed, defining the local strain field as
the sensitivity with respect to each is
Here index the macroscopic strain cases in Voigt order, is the periodic cell domain, and is the dimensionless fourth-order elasticity tensor of the solid material. The gradient is propagated through the chain , using automatic differentiation through the projection operator and the decoder . The full chain from latent to objective is
The annotations denote precisely that operation which the gradient reverses. At every other step, the latent is decoded and realized as a binary cell and re-evaluated by Q1 homogenization (relative PCG residual ) and the thickness criterion. Over the eight starts, the best feasible iterate is retained, and a start halts once it reaches .
3.5. Macroscale analysis
The structural response is evaluated by a two-scale finite-element model under quasistatic, small-strain linear elasticity. The macroscopic domain comprises retained host bone and a designated replacement region . Each design block is assigned the homogenized orthotropic stiffness of a periodic unit cell. Displacement continuity across the bone–implant interface models perfect bonding.
Constitutive representation Letting denote the design block containing macroscopic finite element , one may write the constitutive tensor as
The constitutive tensor of the implant is constructed from the nine independent components of orthotropic elasticity, written in Voigt notation, ordered , as
Batley and Saha: Preprint submitted to Elsevier
Page 14 of 35
is the matrix representation of in Voigt notation. In the concurrent formulation, denotes this tensor before binarization. The cell axes are aligned with the axes of the macroscopic grid, which are themselves aligned with the anatomical Heller frame [66].
Homogenization of each unit cell uses a reference modulus and Poisson ratio . For an implant with solid modulus , the stiffness supplied to the macroscale solver is
where contains the nine independently retained orthotropic constants obtained by homogenization. A small ersatz stiffness, with relative floor , regularizes the nominally void phase in each cell homogenization. The modulus rescaling follows from the linear dependence of the cell stiffness operator on the reference solid modulus.
Finite-element equilibrium For a load case i, the macroscopic displacement , strain and stress satisfy
subject to prescribed displacement constraints and external forces. Bone material assignments, geometry, boundary and loading conditions are specified for each design problem in Section 4. For virtual displacements w and external force functional , the weak form is thus
The domain is discretized using trilinear eight-node hexahedral elements with Gauss integration. The elemental and assembled stiffness operators are
Here, is the strain–displacement matrix and is the assigned constitutive matrix. x collects the nine constitutive coordinates of each implant design block with their dependence on the latent and assignment variables introduced in Section 3.6. Constrained degrees of freedom are eliminated from the equilibrium system. The remaining equations are solved using matrix-free, Jacobi preconditioned conjugate gradients in double precision with a relative target residual of checked every 50 iterations.
Mechanical responses Mechanical constraints are expressed relative to the corresponding intact-bone reference and evaluated using the same mesh, loading and boundary conditions. Two structural responses are considered. For whole-domain compliance,
For elastic strain energy, within the replacement region ,
The regional response measures load transfer through the implant, and is used as a proxy for the local mechanical stimulus relevant to stress shielding. Unlike whole-domain compliance, it depends explicitly on both the displacement field and the constitutive properties within .
Batley and Saha: Preprint submitted to Elsevier
Page 15 of 35
For either response, define
where is the response of the intact bone reference under the same load case. Thus, positive and negative deviations represent response greater and smaller than the intact value, respectively.
Adjoint sensitivities The macroscale optimization requires derivatives of the mechanical responses with respect to the constitutive design coordinates . These coordinates denote component k of the physical block stiffness, with following the component ordering defined in Section 3.1. b indexes the design blocks. Differentiating the weak form with respect to gives
Here is the region occupied by design block b. The derivative of the constitutive tensor disappears outside the block, of course.
For a mechanical response , introduce the adjoint displacement defined by
for all admissible w. The right-hand side denotes the directional derivative with respect to displacement. This gives the total sensitivity,
Whole-domain compliance For compliance,
Taking , its displacement derivative equals the forcing functional with no dependence on design coordinates. Consequently, the adjoint is the equilibrium displacement itself . Thus,
Regional strain energy Within the implant region ,
Its displacement derivative gives
This requires an additional adjoint solve. The regional-energy sensitivity is
Batley and Saha: Preprint submitted to Elsevier
Page 16 of 35
The first integral accounts for the explicit change in strain energy within the replacement region while the second accounts for displacement redistribution through the structure. Finally, for the relative mechanical response
the sensitivity is
These supply the mechanical constraint gradients for concurrent optimization.
3.6. Concurrent two-scale design
The concurrent formulation optimizes the latent representation of unit cells and their spatial assignments under macroscale mechanical constraints. At each iteration, the macroscale response is evaluated using the homogenized tensors of the current decoded microstructures and its sensitivities are propagated both to the cell latents and their assignments.
Initialization An initial distribution of orthotropic constitutive properties is obtained by blockwise optimization. Each design block is parameterized by the nine transformed stiffness coordinates spanning the printable library L. The mean solid fraction is estimated via local linear model fitted to the nearest 32 library cells in the coordinate space. The initial problem minimizes the mean predicted solid fraction subject to the macroscale response constraints with , using the method of moving asymptotes (MMA) [67]. A move limit of 0.1 is applied. After each update, the block coordinates are projected to within of their nearest library point. The solve comprises 80 iterations.
Block tensors are parametrized by the logarithms of the nine orthotropic constants, bounded by the range of the printable training cells with positive constants. The continuum design therefore excludes cells with negative couplings (0.7% of the training set). The resulting block tensors are clustered into classes by k-means on the standardized logarithms of the stiffness constants. Each class target is the componentwise geometric mean of its member-block stiffness constants. Flow model generation and geometric screening, as described in Section 3.4, provide the initial latent microstructure for these classes. For each class, the initial latent is the valid, printable screened sample with the smallest worst-case error relative to the class target. A class without such a sample starts from the latent of the class with the nearest diagonal stiffness. This preliminary optimization determines the initial class distribution and microstructures, but subsequent optimization acts directly on decoded cells.
Design variables Each class is represented by a latent variable . Its decoded unit cell is
from which the projected density , homogenized orthotropic tensor and solid fraction
are evaluated using the procedures of Section 3.4.
The spatial assignment of classes to design blocks is also optimized. Each block carries logits which are converted to class weights via
The block constitutive tensor and solid fraction are thus
Batley and Saha: Preprint submitted to Elsevier
Page 17 of 35
Here is the implant-scaled block stiffness, while is the relaxed volume fraction.
This continuous relaxation permits gradient-based optimization of the class distribution [68]. The logits are initialized
where is the initial cluster assignment. The softmax temperature is reduced geometrically from to over the optimization to encourage increasingly discrete assignments. Classes may become unused as the assignment hardens.
Optimization problem The objective is the mean solid fraction volume across the design blocks. Let denote the number of design blocks and the number of prescribed load cases. Then,
In this work, and are chosen.
The geometric constraint uses a differentiable approximation to the fraction of solid material lying in features thinner than the prescribed threshold. Specifically, is the fraction of projected solid removed by a soft morphological opening constructed from erosion and dilation using alternating cube and cross max-pooling operations. The structuring-element radius is selected from the prescribed thickness threshold in voxel units, following the length-scale-control principle of morphological filtering [69]. The constraint provides a margin relative to the 5% thin-feature fraction associated with the fifth-percentile thickness condition. The exact thickness of the final geometry is evaluated separately.
Sensitivities and optimization The macroscale adjoints provide the derivatives of each response deviation with respect to the block constitutive tensors. Differentiating the block constitutive interpolation gives the gradients with respect to each class tensor
These gradients are propagated to the class latents through the discrete Q1 homogenization sensitivities and decoder chain rule developed in Section 3.4. Componentwise,
Here is the physical stiffness component of block b and is the corresponding homogenized component of class a, evaluated at .
Derivatives with respect to assignment logits follow by differentiating the softmax weights. The volume objective and morphological constraint are differentiated through the density projection and decoder.
The constrained problem is treated using an augmented Lagrangian with penalty parameter 2, and multiplier updates at every iteration. Latents and assignment logits are updated by Adam with learning rates and 0.1, respectively. The concurrent optimization is run for at most 100 iterations, with the temperature schedule applied over the interval.
Batley and Saha: Preprint submitted to Elsevier
Page 18 of 35
Verification and design selection Candidates are periodically evaluated in their discrete form, here every five iterations, and at every iteration for which the responses of the soft design satisfy
Each block is assigned the class of maximum weight
Each class is realized by as a binary unit cell. Its nine orthotropic constants are recomputed by Q1 homogenization, initially to a relative residual of , and its thickness is evaluated. Should the realized cell be invalid or fail geometric requirements, its latent is restored to the most recent printable state and update step size halved.
The verified constitutive tensors are assigned to the macroscale blocks and structural responses are computed without soft material mixing. The corresponding mean block porosity is
An iterate is admissible if every used class produces a valid, printable binary cell and the resulting macroscale responses satisfy for each load case. Failure of any used class renders the iterate inadmissible.
Among assembled, verified iterates, the reported design is that of the highest porosity. The optimization terminates after 100 iterations, or earlier by patience stopping. Patience stopping is triggered when the best admissible porosity has not improved by 0.1% over 20 iterations. The selected design is re-evaluated by Q1 homogenization at a relative residual of .
Consequently, the reported mechanical responses and porosities are evaluated on the binary realized microstructures.
4. Analysis of Results
Three anatomical configurations are considered (Figure 5). The distal rabbit femur provides cancellous bone targets for evaluating cell-level inverse design and structural responses. Two human femoral defect configurations are then used to assess concurrent two-scale optimization: a cortical mid-shaft, and proximal cancellous defects. The following results examine geometric feasibility and constitutive matching, then evaluate the resulting implant designs under the prescribed mechanical loading conditions.
4.1. Benchmark: unit-cell inverse design for a rabbit femur
The rabbit femur benchmark uses a distal implant region of 7,267 voxels within an 80.5mm femur, discretized at 0.5mm. The geometry is from the ANU Skullbook dataset [70]. The cancellous target is transversely isotropic with longitudinal Young's modulus of 2,500MPa, longitudinal-to-transverse modulus ratio of 2 and prescribed shear moduli. The femur is clamped at its distal face, and loaded at the proximal end by unit axial, transverse (two directions) and torsional loads applied separately. Note that as the model is linear and all responses are reported relative to the intact femur, load magnitudes do not affect the comparison. The anisotropy ratios and Poisson ratios are modeling assumptions. For flow conditioning, the three coupling ratios are taken from the nearest printable training cell in log-diagonal stiffness space, while refinement is evaluated purely against the six engineering moduli. The implant is assembled from 4mm periodic titanium cells, subject to a feature thickness of 156μm.
The proposed method is compared with i) nearest-cell lookup from the cubic-symmetric L-BOM library, ii) I-graph-wrapped (IWP) and iii) gyroid sheet lattices, and iv) SIMP inverse homogenization. The TPMS cells – IWP and gyroid – are thickness-tuned to match the longitudinal modulus. SIMP uses the same six-modulus objective with periodic Q1 sensitivities, density filtering and projection continuation, with four random initializations at filter radius 3 and eight at radius 6.
Figure 6 shows representative realized cells. The proposed cell achieves a maximum relative error of 0.80% over the six engineering moduli, with a physical feature size on-target at 156μm. All eight flow-initialized refinement runs produced printable cells with errors between 0.80% and 0.98%. At radius 3, SIMP matches the moduli (0.67–0.98%) but only with features near 94μm, below the floor. Radius 6 yields printable features (188–250μm) in all eight runs,
Batley and Saha: Preprint submitted to Elsevier
Page 19 of 35 a
b

Rabbit femur
Host bone (cortical / compact)
Human femur: cortical defect
Host cancellous bone
Design region, compact / cortical
Human femur: cancellous core
Design region, cancellous
Figure 5: Anatomical configurations and design regions. a, The cancellous distal portion of a rabbit femur. b, Human femur with a cortical mid-shaft defect. c, Human femur with a proximal cancellous replacement.
Ours

TL = 156 m
SIMP, r = 6

TL = 188 m
IWP

TL = 94 m (below floor)
Gyroid

TL = 62 m (below floor)
Figure 6: Representative realized unit cells obtained by the proposed method and baseline approaches. Maximum relative engineering-modulus error and physical feature size are indicated.
but only two reach the 1% tolerance: realized errors are 0.80–1.95% in seven runs, and one exceeds 30% after removal of disconnected material.
The two components do not, individually, suffice. Of 256 printable flow samples, the best misses the target by 12.5%. For this target, the samples occupy a single narrow design family (solid fraction 0.116–0.119), so screening alone cannot close the gap. Refinement from random latents never yields a printable cell (31–41%, 62μm features). Refining the flow samples with gradients from a learned surrogate predictor drives the predicted error below 0.03%,
Batley and Saha: Preprint submitted to Elsevier
Page 20 of 35

Figure 7: (left) Relative errors in the six prescribed engineering moduli for the cancellous bone target; (center) relative errors in the target whole-femur compliance under axial, two bending, and torsional loading; (right) relative strain-energy deviations. Baselines in the left panel are uniform cells; the center and right show their graded implants; radial scales are logarithmic and reversed.
while the exact error remains at 12%. Only exact refinement from flow-generated cells reaches 0.80–0.98% – from every start.
The componentwise errors are shown in Figure 7 (left). Nearest-library lookup gives a maximum error of 59%, while IWP and gyroid give 139% and 119%, respectively, although both TPMS cells match the longitudinal modulus. In varying their thickness to match the longitudinal modulus, the resultant respective feature sizes of 94 and 62μm also violate the prescribed floor. In contrast, the proposed cell matches all six prescribed moduli within 1% while maintaining the desired feature thickness.
Flow-initialized refinement requires 75–105s per start, plus 184s of screening shared across both targets; SIMP at radius 6 requires 163–364s per run on the same hardware (an NVIDIA B200 GPU). The principal distinction is consistency: every flow-initialized start meets the 1% tolerance, compared with two of eight SIMP runs.
The unit cells were subsequently assembled into distal femoral implants and evaluated under axial loading, two bending directions and torsion. Figure 7 (center) compares whole-femur compliance with the intact model. The proposed implant reproduces compliance within 0.1% under all four loads, with no greater than 0.35% strain-energy deviations in the implant region. SIMP also performs well, with compliance deviations within 0.5% and regional energy deviations within 1.3%.
Tiled uniformly (not shown), the library implant produces compliance deviations up to 11%, while IWP and gyroid exhibit changes of approximately 1–5%. Their implant-region strain-energy deviations reach 25%, 37% and 32%, respectively. Thus, relatively small global compliance changes do not necessarily imply agreement in the regional response of the implant.
Graded comparisons were also evaluated to account for the spatial variation permitted in L-BOM-style design. These graded variants, shown in the center and right panels of Figure 7, reproduce whole-femur compliance within 2.6% and implant-region strain energy within 2.4%. Their elementwise strain-energy errors are 11–22% for the graded library, 34–62% for gyroid and 40–84% for IWP, compared with 0.8–0.9% for the proposed cell. The graded library, gyroid and IWP designs require 16, 12 and 12 distinct cells, respectively, of which 9, 6 and 4 fall below the thickness floor. These comparisons use independently implemented graded optimization procedures rather than the published L-BOM pipeline of Wang et al. [29] – and without access to its full lattice library, which is not public.
The assembled implants themselves are shown in Figure 8. The proposed method achieves the prescribed six-modulus accuracy and close agreement both in global and local femur responses using a single printable cell – no spatial grading required. This is shown in greater detail, across scales, in Figure 9. Indeed, spatial grading of the baseline lattices recovers global stiffness but leaves local strain-energy deviations of up to 84%, whereas a single cell matched to all six moduli recovers both. This distinction matters in orthopedic reconstruction, where bone adaptation
Batley and Saha: Preprint submitted to Elsevier
Page 21 of 35

5 mm
Library lookup
TL = 156 m

IWP
TL = 94 m

Gyroid
TL = 62 m

SIMP, r = 6
TL = 188 m

Ours
TL = 156 m
Figure 8: The realized distal rabbit femur implants constructed from the proposed and baseline lattice designs.
1 cm
Host bone
Designed scaffold


2 mm
Porosity 88.3%, 4 mm cells

200 m
Feature size
Figure 9: Multiscale visualization of the proposed distal rabbit femur scaffold.
is governed by local mechanical stimuli – such as strain-energy density – rather than whole-structure stiffness alone [71, 72].
4.2. Application: concurrent multiscale design for human femoral implants
The two human femur applications use the same algorithm and numerical settings. The two design problems are implants for a cortical mid-shaft and proximal cancellous defect. The femur is discretized with 1.5mm Q1 elements, with walking and stair-climbing loads following Heller et al. [66], and boundary conditions following Speirs et al. [73]. Forces are normalized by a modeled body weight of 850N. The design regions and modeling setup are visualized in Figure 10. The scaffold material is Ti-6Al-4V, with a Young's modulus of 110GPa. All nine components of each class tensor are supplied by the continuum stage and enter the macroscale response directly.
Both optimizations begin with 12 flow-initialized cell classes, and both jointly update class latents and their spatial assignments following the concurrent process of Section 3.6. Binary designs are periodically realized and verified, and the highest-porosity admissible iterate is retained. The mechanical response is set to remain within 2% of the intact reference under both loading conditions.
Batley and Saha: Preprint submitted to Elsevier
Page 22 of 35

→ Hip contact force
Muscle force
▲ Knee center (fixed)
Head center (fixed in x, y)
Hip contact patch
Muscle attachment patch
☐ Lateral epicondyle (fixed in y)
Figure 10: Front and side views of the loading conditions for the human femur model. (left) Walking loads (right) Stair-climbing loads. Forces are expressed relative to body weight – modeled as 850N.
4.2.1. Cortical mid-shaft defect
A 30mm annular cortical defect is replaced with 777 blocks of 3mm lattice cells. The objective is maximum porosity subject to whole-femur compliance constraints. This objective both reduces the volume of implanted material and provides space for potential bone ingrowth, while maintaining the mechanical response of the intact femur. This reflects the trade-off between osseointegration and structural stiffness in porous titanium implants [3, 4]. The physical feature-size floor is 234μm (10 voxels at 3mm).
The optimized scaffold achieves 62.98% porosity compared with 58.38% initially. Final verified compliance deviations are +1.18% for walking and +1.15% for stair climbing, both within the prescribed bounds. Refinement of the macroscopic mesh from 1.5mm to 1.0mm gives corresponding deviations of +0.99% and +0.94% (Figure 11, bottom left).
Of the 12 available classes, only six remain active, shown in Figure 12, occupying 559, 94, 51, 42, 25 and 6 blocks. The dominant class therefore occupies 72% of the macroscale design blocks. This is perhaps unsurprising due to the near-cylindrical symmetry of the implant. Their cell porosities range from 59% to 64%, and all meet the 234μm thickness criterion.
The optimization path (Figure 11, left) rises almost vertically: porosity increases in two marked steps, each coinciding with the merging of cell classes (from ten to seven, then to six), while compliance moves by only one
Batley and Saha: Preprint submitted to Elsevier
Page 23 of 35

FE, h = 1.5 mm
FE, h = 1.0 mm

Whole-femur compliance change, %
Region strain-energy change, %
Walking
Stair climbing
Feasible
Infeasible
Figure 11: Concurrent optimization paths (top) and verification of the reported designs (bottom). Each path traces verified implant porosity against the constrained response under walking (solid) and stair-climbing (dashed) loads, from the initial design (ring) to the reported design (star); the shaded band is the ±2% bound and gray segments follow the reported design. Mid-shaft points are colored by the number of active cell classes; the proximal design retains all 12 classes throughout. Bottom: finite-element verification of the reported designs on the 1.5mm design mesh and a refined 1.0mm mesh.

559 of 777 blocks
TL = 234 m
porosity 64%
94 of 777 blocks
TL = 234 m
porosity 63%
51 of 777 blocks
TL = 234 m
porosity 61%
42 of 777 blocks
TL = 234 m
porosity 59%
25 of 777 blocks
TL = 234 m
porosity 60%
6 of 777 blocks
TL = 234 m
porosity 61%
Figure 12: The six active cell classes in the optimized cortical mid-shaft scaffold, showing block populations, feature thickness, and porosity.
percentage point. All 75 iterates remain admissible – printable and within the response bound – and the porosity-maximizing design occurs at iteration 73. All active cells reach the prescribed feature-size floor while compliance remains within the 2% band, suggesting that feature size is the more restrictive condition in the obtained design. Because only whole-femur compliance is constrained, the implant region carries 15–16% more strain energy than the intact cortex it replaces. This excess is present throughout the region: the element-wise deviation averages the same 15–16%, as nearly all elements deviate in the same direction.
Figure 13 shows the realized scaffold within the sectioned femur and at lattice-level (millimeters) and feature-level (micrometers) detail. Optimization required 62 min on a single NVIDIA B200, followed by 101s for final verification.
Batley and Saha: Preprint submitted to Elsevier
Page 24 of 35

Figure 13: Multiscale visualization of the proposed human mid-shaft femoral scaffold.
4.2.2. Proximal cancellous defect
The second application replaces the femoral-neck and intertrochanteric cancellous core with 258 blocks of 6mm cells. The feature-size threshold remains 234μm. Because whole-femur compliance is relatively insensitive to this region, the mechanical constraint is imposed instead on implant-region strain energy.
The best verified scaffold achieves 84.03% porosity. Regional strain-energy deviations are -0.15% under walking loads, and -0.24% under stair-climbing loads. Whole-femur compliance changes by only -0.04% and -0.03%, respectively, although this is more reflective of the nature of the problem itself, rather than the proposed implant.
With like-for-like material assignments on a 1.0mm mesh, the regional strain-energy deviations become -0.75% and -0.72% (Figure 11, bottom right). The regional constraint is nevertheless sensitive to the discretization of the cortical-cancellous boundary, as resampling the bone model at 1.0mm changes the strain energy by 13–15%. The close response matching should therefore be interpreted within the adopted discretization. Although the regional total is matched, element-wise strain-energy deviations average 10–12%: deviations of opposite sign cancel within the region.
Unlike the cortical case, all 12 classes remain active, and are illustrated in Figure 14. Porosities range from 72% to 93%. Block populations range from 119 to 1 – considerably more spread than in the cortical design case. It is notable that, once again, most cells satisfy the feature-size criterion at its floor, but two have a measured thickness of 281 m – representing an extra voxel of thickness.
The optimization path (Figure 11, right) begins outside the bound, with a +3.6% regional strain-energy deviation at the first verified design, a consequence of the initialization. It then moves into the band while gaining porosity, reaching 84.03% at the reported design. Subsequent iterates overshoot below -2% as the soft class assignment leads the realized design during temperature annealing; the trajectory recovers feasibility at lower porosity and is patience-stopped, so the best verified admissible iterate is reported.
The realized scaffold is shown in Figure 15. Optimization required 34.7 min, followed by 104s for final verification.
Neither concurrent formulation constrains the element-wise field: the mid-shaft design constrains whole-femur compliance and the proximal design the total regional strain energy. The resulting element-wise deviations average 15–16% and 10–12% (95th percentiles around 30%), within the remodeling dead zone of strain-energy-based adaptation models, in which no net remodeling is predicted for local deviations of up to ±35–75% from the intact stimulus [74]. Constraining the local field directly, as in the cell-level case, can be an extension of the same adjoint formulation, at the cost of porosity, since element energies are already available from the adjoint solve.
Batley and Saha: Preprint submitted to Elsevier
Page 25 of 35

119 of 258 blocks
TL = 234 m
porosity 83%
62 of 258 blocks
TL = 234 m
porosity 83%
24 of 258 blocks
TL = 234 m
porosity 84%
15 of 258 blocks
TL = 234 m
porosity 88%
13 of 258 blocks
TL = 234 m
porosity 90%
8 of 258 blocks
TL = 234 m
porosity 81%

5 of 258 blocks
TL = 281 m
porosity 89%
4 of 258 blocks
TL = 234 m
porosity 84%
3 of 258 blocks
TL = 234 m
porosity 93%
2 of 258 blocks
TL = 281 m
porosity 75%
2 of 258 blocks
TL = 234 m
porosity 85%
1 of 258 blocks
TL = 234 m
porosity 72%
Figure 14: The twelve active cell classes in the optimized proximal cancellous scaffold, showing block populations, feature thickness, and porosity.
1 cm
Host bone
Designed scaffold


2 mm
Porosity 84.0%, 6 mm cells

500 m
Feature size
Figure 15: Multiscale visualization of the proposed proximal cancellous femoral scaffold.
Batley and Saha: Preprint submitted to Elsevier
Page 26 of 35

Figure 16: Organization of the learned latent space. (top) density of 4,000 validation-cell latents in their two leading principal components, shown inverted so that densely populated regions form wells; no labels or properties are used. The tube follows a straight latent path between two flow-generated cells in the two most populated wells, with markers at the decoded frames below. (bottom) Decoded cells along the path, with their solid fractions. The cell changes abruptly between two architectural families at the ridge rather than morphing gradually.
5. Discussion
The results show that the proposed method reaches prescribed stiffness targets with printable cells where neither generation nor gradient-based refinement succeeds alone. This section examines the learned representations to explain why: how the latent space organizes candidate designs, and what spatial operations the generator has learned.
Design families and the role of the generative model. Projected onto their leading principal components, the validation latents form distinct wells, each corresponding to a family of cells sharing a common architecture (Figure 16). These families emerge without supervision. Indeed, a straight path (in latent space) between cells in the two most populated wells does not produce a gradual blend. The decoded cell remains a closed-wall architecture ( ) over the first half of the path and switches abruptly to a more open-frame architecture ( ) at the ridge between wells. The same behavior occurs between other family pairs: 19 of 20 straight paths preserve topology over most of their length and then change abruptly.
The sharp transitions suggest that the decoder represents distinct architectural families rather than interpolating smoothly between lattices. This feature also clarifies the division of labor in the proposed method. Gradient-based refinement is effective within a family, where small latent changes produce small, smooth changes in stiffness, but it
Batley and Saha: Preprint submitted to Elsevier
Page 27 of 35
Local

Diffuse
Shift +x

Shift +y

Axis swap x↔y

Axis permutation


Stencil: one head per direction
(B3, H6)
Swap x↔y (B14, H1)
Swap x↔z (B14, H4)
Swap y↔z (B14, H8)
(B3, H8)
(B5, H8)
(B2, H2)
(B2, H8)
(B3, H5)




Block (depth →)
Figure 17: Attention patterns learned by the flow transformer. (top) Attention of a single query token (white box) on an slice of the token grid for representative heads, and, for the axis-permutation head, its attention to the five coordinate-permuted copies of the query, viewed along the cube diagonal. (middle) Three-dimensional detail of the six nearest-neighbor shift heads, each labeled (block, head), and the three axis-swap heads, each attending to the query's image under an exchange of two coordinate axes. (bottom) Classification of all 128 heads by block and head index.
cannot cross between families: refinement from random latents never reached a printable cell. This defines the role of the generative model: supplying the family. The rectified-flow places the search in the “correct” well, and exact refinement then closes the remaining gap. Neither component is sufficient alone. The best of 256 flow samples misses the rabbit target by 12.5%, and refinement driven by a learned surrogate reduces the predicted error below 0.03% while the exact error remains near 12%. Only exact refinement from generated cells reaches the 1% tolerance.
Symmetries and localities exhibited by the attention mechanism It is notable that the rectified-flow transformer receives no explicit spatial operators. Positions enter only through rotary positional embeddings. Its attention heads,
Batley and Saha: Preprint submitted to Elsevier
Page 28 of 35 nevertheless, specialize into interpretable operations (Figure 17). A fifth of the attention heads – 25 – act as nearest-neighbor shifts. Each head attends almost exclusively to the adjacent token in one of the six axis directions. Together, these heads form the six-point stencil of a finite-difference operator. Three heads in block 14 attend to the query's image under an exchange of two coordinate axes (50%, 93% and 89% of attention on that token), one head per pair of axes, and a single head in block 9 distributes its attention across all five coordinate-permuted images of the query (87%).
Head ablations demonstrate these roles to be genuinely functional. If one zeroes the permutation head in block 9 during unconditional generation, the generated cells fragment – the median number of disconnected components rises from 1 to 5. Zeroing four randomly selected diffuse heads leaves them intact. Removing the shift heads preserves the overall layout but produces granular surfaces with, on average, more than a thousand disconnected fragments per cell. In fact, these operations form early in training, being complete within 50,000 of about 175,000 steps, and the same heads retain the same roles at every later checkpoint, including all fine-tuning stages. The rectified-flow transformer has thus learned spatial operations suited to periodic lattice cells – local continuity and comparison across coordinate axes.
Limitations Several limitations qualify these results. The cell-level validation targets a single transversely isotropic bone tensor whose anisotropy and Poisson ratios are modeling assumptions; broader validation against measured bone tensors is needed. For this demanding target the generator's samples occupy a single narrow design family, so success depends on exact refinement rather than on generative diversity. The concurrent formulations constrain whole-femur compliance or total regional strain energy rather than the element-wise field. Local deviations therefore remain, although they lie within the remodeling dead zone assumed in strain-energy-based adaptation models [74]. A local constraint would be required to match the field more closely, albeit likely reducing the achievable porosity. The regional strain-energy constraint is also sensitive to how the cortical-cancellous boundary is resolved: resampling the bone model at 1.0mm changes the intact regional energy by 13–15%. The femur models use idealized walking and stair-climbing loads, simplified boundary conditions and linear-elastic homogenized bone properties, and homogenization assumes separation between cell and implant length scales, which is only approximate for 3–6mm cells. Graded baselines are independent re-implementations rather than the published pipelines, whose full lattice library is not available.
6. Conclusion
This work developed a concurrent two-scale topology optimization framework. Lattice microstructures, initialized by a conditional rectified-flow model, were refined through differentiable finite-element homogenization in latent space. At the scale of bone scaffolds, cell geometries and their spatial assignments are updated jointly. Mechanical constraints were imposed upon the homogenized structure, and printability – measured by feature thickness – was assessed on realized cells.
The rabbit femur benchmark demonstrated the importance of combining conditional generation with exact refinement. Neither flow-sampling alone, nor refinement of a random initialization achieved acceptable accuracy. All eight flow-started runs, on the other hand, reached the prescribed six-modulus target within 1% while meeting the feature size requirement. A single repeated cell inverse-designed this way reproduced the intact femur's global compliance and regional strain energy more closely than any graded baseline design.
The human femur applications demonstrate the concurrent formulation under two different mechanical objectives. Optimization of the cortical mid-shaft scaffold achieved a porosity of 63%, while maintaining a whole-femur compliance within 2% of the intact reference. For a cancellous proximal scaffold, the method achieved 84% porosity. It is notable that these aggregate constraints do not ensure local response matching, and elementwise strain-energy deviations remain. Further, the proximal result is sensitive to the discretization of the cortical–cancellous boundary.
The learned representations also help explain the method’s behavior, in that distinct architectural families appear in the projected latent distribution. The flow transformer’s attention heads exhibit local continuity, in the form of learning a finite-difference-type stencil, and coordinate-symmetry operations. These observations suggest that the generative model learns geometric structure useful for constructing coherent periodic cells.
The remaining limitations include the use of idealized bone properties and loading conditions, the sensitivity of regional responses to discretization, and the approximate separation of cell and implant length scales. Within these
Batley and Saha: Preprint submitted to Elsevier
Page 29 of 35 limits, the results demonstrate that generative microstructure design can be coupled directly to numerical mechanics and concurrent structural optimization, in a way that can be made printability-aware.
7. Acknowledgements
The authors gratefully acknowledge discussions with Prof. Prahalada Rao (Virginia Tech) and Prof. Shaghayegh Bagheri (GMU) on topology optimization of implants. S.S. would like to acknowledge NSF CNS-2535293 fund for supporting this work.
Batley and Saha: Preprint submitted to Elsevier
Page 30 of 35
A. Nomenclature
| Symbol | Description |
|---|---|
| Geometry and learned representations | |
| Binary symmetry octant and decoded occupancy-probability field. | |
| Frozen decoder and binary unit-cell realization operator. | |
| Decoder-space latent and decoder-space latent of cell class . | |
| Gaussian initial, intermediate, and terminal standardized flow latents. | |
| Scalar mean and standard deviation used to standardize autoencoder latents for flow training. | |
| Number of octant voxels and scalar latent dimension. | |
| Raw descriptor vector, standardized descriptors, and masked conditioning input. | |
| Component-level and group-level conditioning masks. | |
| Flow pseudo-time and learned transport velocity field. | |
| Loss function, defined separately for autoencoder training, flow matching, and inverse design. | |
| Geometric and material descriptors | |
| Cell solid fraction, solid fraction of class , and relaxed block solid fraction. | |
| Physical unit-cell edge length, normalized fifth-percentile thickness, and physical thickness threshold. | |
| Local solid thickness and fifth-percentile operator. | |
| Smooth Heaviside projection and relaxed stiffness coefficient of element . | |
| Relative void stiffness floor and projection sharpness parameter. | |
| Normalized coupling ratio between normal stiffness components and . | |
| Differentiable thin-feature fraction of class and its admissible upper bound. | |
| Verified mean porosity of the assembled implant. | |
| Homogenization and structural mechanics | |
| Homogenized elasticity, its dimensional nine-component orthotropic stiffness vector, and Voigt compliance matrix. | |
| Implant-scaled block constitutive tensor and macroscopic element constitutive tensor. | |
| Dimensionless reference-solid elasticity tensor and Voigt constitutive matrices for block and element . | |
| Reference solid modulus, implant solid modulus, and reference-solid Poisson ratio. | |
| Engineering-modulus vector, computed engineering moduli, and prescribed target moduli. | |
| Maximum relative engineering-modulus error and acceptance tolerance. | |
| Periodic unit-cell domain and its element subdomain . | |
| Macroscopic domain, implant replacement region, and design-block domain. | |
| Imposed strain, periodic displacement fluctuation, and strain field in cell homogenization. | |
| Macroscopic displacement, external load vector, and adjoint displacement for load case . | |
| Assembled stiffness matrix and implant-region stiffness contribution. | |
| Mechanical response (compliance or regional strain energy), intact reference response, and relative deviation. | |
| Physical constitutive coordinate of design block . | |
| Concurrent optimization | |
| Numbers of design blocks, unit-cell classes, and macroscopic load cases. | |
| Class-assignment logit, soft assignment weight, and softmax temperature. | |
| Discrete class assigned to design block during verification. | |
| Admissible magnitude of relative mechanical-response deviation. | |
Index conventions. The index denotes a voxel or finite element, a unit-cell class, a design block, and a constitutive component. Spatial indices follow the Einstein summation convention. In cell homogenization, index Voigt strain cases; in macroscale analysis, indexes load cases.
Batley and Saha: Preprint submitted to Elsevier
Page 31 of 35
References
[1] Agnieszka Chmielewska and David Dean. The role of stiffness-matching in avoiding stress shielding-induced bone loss and stress concentration-induced skeletal reconstruction device failure. Acta Biomaterialia, 173:51–65, January 2024. ISSN 1742-7061. doi:10.1016/j.actbio.2023.11.011. URL http://dx.doi.org/10.1016/j.actbio.2023.11.011.
[2] Sarah Safavi, Yihang Yu, Dale L. Robinson, Hans A. Gray, David C. Ackland, and Peter V. S. Lee. Additively manufactured controlled porous orthopedic joint replacement designs to reduce bone stress shielding: a systematic review. Journal of Orthopaedic Surgery and Research, 18(1), January 2023. ISSN 1749-799X. doi: 10.1186/s13018-022-03492-9. URL http://dx.doi.org/10.1186/s13018-022-03492-9.
[3] Cambre N. Kelly, Tian Wang, James Crowley, Dan Wills, Matthew H. Pelletier, Edward R. Westrick, Samuel B. Adams, Ken Gall, and William R. Walsh. High-strength, porous additively manufactured implants with optimized mechanical osseointegration. Biomaterials, 279:121206, December 2021. ISSN 0142-9612. doi: 10.1016/j.biomaterials.2021.121206. URL http://dx.doi.org/10.1016/j.biomaterials.2021.121206.
[4] Johan Van der Stok, Olav P. Van der Jagt, Saber Amin Yavari, Mirthe F. P. De Haas, Jan H. Waarsing, Holger Jahr, Esther M. M. Van Lieshout, Peter Patka, Jan A. N. Verhaar, Amir A. Zadpoor, and Harrie Weinans. Selective laser melting-produced porous titanium scaffolds regenerate bone in critical size cortical bone defects. Journal of Orthopaedic Research, 31(5):792–799, December 2012. ISSN 1554-527X. doi:10.1002/jor.22293. URL http://dx.doi.org/10.1002/jor.22293.
[5] Bingchuan Liu, Guojin Hou, Zhongwei Yang, Xingcai Li, Yufeng Zheng, Peng Wen, Zhongjun Liu, Fang Zhou, and Yun Tian. Repair of critical diaphyseal defects of lower limbs by 3d printed porous ti6al4v scaffolds without additional bone grafting: a prospective clinical study. Journal of Materials Science: Materials in Medicine, 33(9), 2022. ISSN 1573-4838. doi: 10.1007/s10856-022-06685-0. URL http://dx.doi.org/10.1007/s10856-022-06685-0.
[6] Charles H. Turner, Stephen C. Cowin, Jae Young Rho, Richard B. Ashman, and Janet C. Rice. The fabric dependence of the orthotropic elastic constants of cancellous bone. Journal of Biomechanics, 23(6):549–561, January 1990. ISSN 0021-9290. doi: 10.1016/0021-9290(90)90048-8. URL http://dx.doi.org/10.1016/0021-9290(90)90048-8.
[7] Liwei Wang, Yu-Chin Chan, Faez Ahmed, Zhao Liu, Ping Zhu, and Wei Chen. Deep generative modeling for mechanistic-based learning and design of metamaterial systems. Computer Methods in Applied Mechanics and Engineering, 372:113377, December 2020. ISSN 0045-7825. doi: 10.1016/j.cma.2020.113377. URL http://dx.doi.org/10.1016/j.cma.2020.113377.
[8] Ole Sigmund. Materials with prescribed constitutive parameters: An inverse homogenization problem. International Journal of Solids and Structures, 31(17):2313–2329, 1994. ISSN 0020-7683. doi: 10.1016/0020-7683(94)90154-6. URL http://dx.doi.org/10.1016/0020-7683(94)90154-6.
[9] Li Zheng, Konstantinos Karapiperis, Siddhant Kumar, and Dennis M. Kochmann. Unifying the design space and optimizing linear and nonlinear truss metamaterials by generative modeling. Nature Communications, 14(1), November 2023. ISSN 2041-1723. doi:10.1038/s41467-023-42068-x. URL http://dx.doi.org/10.1038/s41467-023-42068-x.
[10] Minsik Seo and Seungjae Min. Novel material representation method via a deep learning model for multi-scale topology optimization. Advances in Engineering Software, 174:103300, December 2022. ISSN 0965-9978. doi: 10.1016/j.advengsoft.2022.103300. URL http://dx.doi.org/10.1016/j.advengsoft.2022.103300.
[11] Mohammad Abu-Mualla and Jida Huang. Inverse design of curved mechanical metamaterials with geometric ai: a generative diffusion operates in compact latent space of cellular structures. npj Metamaterials, 1(1), November 2025. ISSN 3059-3727. doi: 10.1038/s44455-025-00005-6. URL http://dx.doi.org/10.1038/s44455-025-00005-6.
[12] Minh Hoang, Azza Fadhel, Aryan Deshwal, Janardhan Rao Doppa, and Trong Nghia Hoang. Learning surrogates for offline black-box optimization via gradient matching, 2025. URL https://arxiv.org/abs/2503.01883.
[13] Brandon Trabucco, Aviral Kumar, Xinyang Geng, and Sergey Levine. Conservative objective models for effective offline model-based optimization, 2021. URL https://arxiv.org/abs/2107.06882.
[14] Stephan Hoyer, Jascha Sohl-Dickstein, and Sam Greydanus. Neural reparameterization improves structural optimization, 2019. URL https://arxiv.org/abs/1909.04240.
[15] Ziyuan Xie, Weipeng Xu, Dazhi Zhao, Wenchang Zhang, Daoyang Dong, Bingbing Xu, Ning Liu, Sheng Mao, and Tianju Xue. Physics-guided diffusion models for inverse design of disordered metamaterials. npj Computational Materials, 2026. ISSN 2057-3960. doi:10.1038/s41524-026-02328-y. URL http://dx.doi.org/10.1038/s41524-026-02328-y.
[16] J. K. Guest, J. H. Prévost, and T. Belytschko. Achieving minimum length scale in topology optimization using nodal design variables and projection functions. International Journal for Numerical Methods in Engineering, 61(2):238–254, 2004. ISSN 1097-0207. doi:10.1002/nme.1064. URL http://dx.doi.org/10.1002/nme.1064.
[17] Mingdong Zhou, Boyan S. Lazarov, Fengwen Wang, and Ole Sigmund. Minimum length scale in topology optimization by geometric constraints. Computer Methods in Applied Mechanics and Engineering, 293:266–282, August 2015. ISSN 0045-7825. doi: 10.1016/j.cma.2015.05.003. URL http://dx.doi.org/10.1016/j.cma.2015.05.003.
[18] Yayati Jadhav, Joeseph Berthel, Chunshan Hu, Rahul Panat, Jack Beuth, and Amir Barati Farimani. Generative lattice units with 3d diffusion for inverse design: Glu3d. Advanced Functional Materials, 34(41), 2024. ISSN 1616-3028. doi: 10.1002/adfm.202404165. URL http://dx.doi.org/10.1002/adfm.202404165.
[19] T. Hildebrand and P. Rüegsegger. A new method for the model-independent assessment of thickness in three-dimensional images. Journal of Microscopy, 185(1):67–75, January 1997. ISSN 1365-2818. doi: 10.1046/j.1365-2818.1997.1340694.x. URL http://dx.doi.org/10.1046/j.1365-2818.1997.1340694.x.
[20] Martin Philip Bendsøe and Noboru Kikuchi. Generating optimal topologies in structural design using a homogenization method. Computer Methods in Applied Mechanics and Engineering, 71(2):197–224, November 1988. ISSN 0045-7825. doi: 10.1016/0045-7825(88)90086-2. URL http://dx.doi.org/10.1016/0045-7825(88)90086-2.
[21] M. P. Bendsøe and O. Sigmund. Material interpolation schemes in topology optimization. Archive of Applied Mechanics (Ingenieur Archiv), 69(9-10):635–654, November 1999. ISSN 1432-0681. doi: 10.1007/s004190050248. URL http://dx.doi.org/10.1007/s004190050248.
Batley and Saha: Preprint submitted to Elsevier
Page 32 of 35
[22] O. Sigmund. A 99 line topology optimization code written in matlab. Structural and Multidisciplinary Optimization, 21(2):120–127, April 2001. ISSN 1615-1488. doi: 10.1007/s001580050176. URL http://dx.doi.org/10.1007/s001580050176.
[23] Erik Andreassen, Anders Clausen, Mattias Schevenels, Boyan S. Lazarov, and Ole Sigmund. Efficient topology optimization in matlab using 88 lines of code. Structural and Multidisciplinary Optimization, 43(1):1–16, November 2010. ISSN 1615-1488. doi: 10.1007/s00158-010-0594-7. URL http://dx.doi.org/10.1007/s00158-010-0594-7.
[24] P. G. Coelho, P. R. Fernandes, J. M. Guedes, and H. C. Rodrigues. A hierarchical model for concurrent material and topology optimisation of three-dimensional structures. Structural and Multidisciplinary Optimization, 35(2):107–115, 2007. ISSN 1615-1488. doi: 10.1007/s00158-007-0141-3. URL http://dx.doi.org/10.1007/s00158-007-0141-3.
[25] Liang Xia and Piotr Breitkopf. Concurrent topology optimization design of material and structure within fe2 nonlinear multiscale analysis framework. Computer Methods in Applied Mechanics and Engineering, 278:524–542, August 2014. ISSN 0045-7825. doi: 10.1016/j.cma.2014.05.022. URL http://dx.doi.org/10.1016/j.cma.2014.05.022.
[26] Raghavendra Sivapuram, Peter D. Dunning, and H. Alicia Kim. Simultaneous material and structural optimization by multiscale topology optimization. Structural and Multidisciplinary Optimization, 54(5):1267–1281, 2016. ISSN 1615-1488. doi: 10.1007/s00158-016-1519-x. URL http://dx.doi.org/10.1007/s00158-016-1519-x.
[27] Christian Schumacher, Bernd Bickel, Jan Rys, Steve Marschner, Chiara Daraio, and Markus Gross. Microstructures to control elasticity in 3d printing. ACM Transactions on Graphics, 34(4):1–13, 2015. ISSN 1557-7368. doi: 10.1145/2766926. URL http://dx.doi.org/10.1145/2766926.
[28] Bo Zhu, Melina Skouras, Desai Chen, and Wojciech Matusik. Two-scale topology optimization with microstructures. ACM Transactions on Graphics, 36(4):1, 2017. ISSN 0730-0301. doi: 10.1145/3072959.3126835. URL http://dx.doi.org/10.1145/3072959.3126835.
[29] Lili Wang, Jingxuan Feng, Xiaoya Zhai, Jiacheng Han, Kai Chen, Winston Wai Shing Ma, Ligang Liu, and Xiao-Ming Fu. Data-driven inverse design of multifunctional bicontinuous multiscale structures. Nature Communications, 17(1), January 2026. ISSN 2041-1723. doi:10.1038/s41467-025-68089-2. URL http://dx.doi.org/10.1038/s41467-025-68089-2.
[30] F.S.L. Bobbert, K. Lietaert, A.A. Eftekhari, B. Pouran, S.M. Ahmadi, H. Weinans, and A.A. Zadpoor. Additively manufactured metallic porous biomaterials based on minimal surfaces: A unique combination of topological, mechanical, and mass transport properties. Acta Biomaterialia, 53:572–584, April 2017. ISSN 1742-7061. doi: 10.1016/j.actbio.2017.02.024. URL http://dx.doi.org/10.1016/j.actbio.2017.02.024.
[31] Carmen Torres-Sanchez, James M. Borgman, Ben Sargeant, Hugo Bell, Enrique Alabort, Craig Lindsay, and Paul P. Conway. Comparison of selective laser melted commercially pure titanium sheet-based triply periodic minimal surfaces and trabecular-like strut-based scaffolds for tissue engineering. Advanced Engineering Materials, 24(1), October 2021. ISSN 1527-2648. doi: 10.1002/adem.202100527. URL http://dx.doi.org/10.1002/adem.202100527.
[32] Siddhant Kumar, Stephanie Tan, Li Zheng, and Dennis M. Kochmann. Inverse-designed spinodoid metamaterials. npj Computational Materials, 6(1), 2020. ISSN 2057-3960. doi: 10.1038/s41524-020-0341-6. URL http://dx.doi.org/10.1038/s41524-020-0341-6.
[33] Chenchen Chu, Alexander Leichner, Franziska Wenz, and Heiko Andrä. Exploring vae-driven implicit parametric unit cells for multiscale topology optimization. Materials and Design, 244:113087, August 2024. ISSN 0264-1275. doi: 10.1016/j.matdes.2024.113087. URL http://dx.doi.org/10.1016/j.matdes.2024.113087.
[34] Reza T Batley, Andrew Kichline, and Sourav Saha. Separable neural architectures as physical world models: from mathematical theory to applications, 2026. URL https://arxiv.org/abs/2606.14934.
[35] Reza T. Batley, Chanwook Park, Wing Kam Liu, and Sourav Saha. An explainable artificial intelligence framework enabled by a separable neural architecture. Computational Mechanics, 77(5):1543–1563, November 2025. ISSN 1432-0924. doi: 10.1007/s00466-025-02719-w. URL http://dx.doi.org/10.1007/s00466-025-02719-w.
[36] Reza T. Batley and Sourav Saha. A unified generative-predictive framework for deterministic inverse design. In AIAA SCITECH 2026 Forum. American Institute of Aeronautics and Astronautics, January 2026. doi: 10.2514/6.2026-0365. URL http://dx.doi.org/10.2514/6.2026-0365.
[37] Reza T. Batley, Apurba Sarker, Rajib Mostakim, Andrew Kichline, and Sourav Saha. Separable neural architectures as a primitive for unified predictive and generative intelligence, 2026. URL https://arxiv.org/abs/2603.12244.
[38] Liwei Wang, Anton van Beek, Daicong Da, Yu-Chin Chan, Ping Zhu, and Wei Chen. Data-driven multiscale design of cellular composites with multiclass microstructures for natural frequency maximization. Composite Structures, 280:114949, January 2022. ISSN 0263-8223. doi:10.1016/j.compstruct.2021.114949. URL http://dx.doi.org/10.1016/j.compstruct.2021.114949.
[39] Hunter T. Kollmann, Diab W. Abueidda, Seid Koric, Erman Guleryuz, and Nahil A. Sobh. Deep learning for topology optimization of 2d metamaterials. Materials and Design, 196:109098, November 2020. ISSN 0264-1275. doi: 10.1016/j.matdes.2020.109098. URL http://dx.doi.org/10.1016/j.matdes.2020.109098.
[40] Xiaoyang Zheng, Junichiro Shiomi, and Takayuki Yamada. Optimizing metamaterial inverse design with 3d conditional diffusion model and data augmentation. Advanced Materials Technologies, 10(14), April 2025. ISSN 2365-709X. doi: 10.1002/admt.202500293. URL http://dx.doi.org/10.1002/admt.202500293.
[41] Jingxuan Feng, Lili Wang, Xiaoya Zhai, Kai Chen, Wenming Wu, Ligang Liu, and Xiao-Ming Fu. Constructing boundary-identical microstructures via guided diffusion for fast multiscale topology optimization. Computer Methods in Applied Mechanics and Engineering, 436:117735, March 2025. ISSN 0045-7825. doi: 10.1016/j.cma.2025.117735. URL http://dx.doi.org/10.1016/j.cma.2025.117735.
[42] Daniel A. White, William J. Arrighi, Jun Kudo, and Seth E. Watts. Multiscale topology optimization using neural network surrogate models. Computer Methods in Applied Mechanics and Engineering, 346:1118–1135, April 2019. ISSN 0045-7825. doi: 10.1016/j.cma.2018.09.007. URL http://dx.doi.org/10.1016/j.cma.2018.09.007.
[43] Li Zheng, Siddhant Kumar, and Dennis M. Kochmann. Data-driven topology optimization of spinodoid metamaterials with seamlessly tunable anisotropy. Computer Methods in Applied Mechanics and Engineering, 383:113894, 2021. ISSN 0045-7825. doi: 10.1016/j.cma.2021.113894. URL http://dx.doi.org/10.1016/j.cma.2021.113894.
Batley and Saha: Preprint submitted to Elsevier
Page 33 of 35
[44] Nolan Black and Ahmad R. Najafi. Deep neural networks for parameterized homogenization in concurrent multiscale structural optimization. Structural and Multidisciplinary Optimization, 66(1), January 2023. ISSN 1615-1488. doi: 10.1007/s00158-022-03471-y. URL http://dx.doi.org/10.1007/s00158-022-03471-y.
[45] Samuel Silverman, Dylan Balter, Keith A. Brown, and Emily Whiting. Random-walk microstructures for differentiable topology optimization. In Proceedings of the ACM Symposium on Computational Fabrication, SCF '25, page 1–11. ACM, November 2025. doi: 10.1145/3745778.3766645. URL http://dx.doi.org/10.1145/3745778.3766645.
[46] Zixing Fu, Huina Mao, and Binglun Yin. Inverse design of lattice metamaterials for fully anisotropic elastic constants: A data-driven and gradient-based method. Composite Structures, 359:118975, April 2025. ISSN 0263-8223. doi: 10.1016/j.compstruct.2025.118975. URL http://dx.doi.org/10.1016/j.compstruct.2025.118975.
[47] Yichen Wu, Lei Wang, and Yaru Liu. Machine-learning driven differentiable concurrent multiscale topology optimization framework for truss structures. Computer Methods in Applied Mechanics and Engineering, 460:119135, October 2026. ISSN 0045-7825. doi:10.1016/j.cma.2026.119135. URL http://dx.doi.org/10.1016/j.cma.2026.119135.
[48] Aaditya Chandrasekhar, Saketh Sridhara, and Krishnan Suresh. Auto: a framework for automatic differentiation in topology optimization. Structural and Multidisciplinary Optimization, 64(6):4355–4365, August 2021. ISSN 1615-1488. doi: 10.1007/s00158-021-03025-8. URL http://dx.doi.org/10.1007/s00158-021-03025-8.
[49] Tianju Xue, Shuheng Liao, Zhengtao Gan, Chanwook Park, Xiaoyu Xie, Wing Kam Liu, and Jian Cao. Jax-fem: A differentiable gpu-accelerated 3d finite element solver for automatic inverse design and mechanistic data science. Computer Physics Communications, 291:108802, October 2023. ISSN 0010-4655. doi: 10.1016/j.cpc.2023.108802. URL http://dx.doi.org/10.1016/j.cpc.2023.108802.
[50] Mohit Pundir and David S. Kammer. Simplifying fft-based methods for solid mechanics with automatic differentiation. Computer Methods in Applied Mechanics and Engineering, 435:117572, February 2025. ISSN 0045-7825. doi: 10.1016/j.cma.2024.117572. URL http://dx.doi.org/10.1016/j.cma.2024.117572.
[51] Sanath Keshav and Felix Fritzen. Robust inverse material design with physical guarantees using the voigt-reuss net. International Journal for Numerical Methods in Engineering, 127(7), March 2026. ISSN 1097-0207. doi: 10.1002/nme.70296. URL http://dx.doi.org/10.1002/nme.70296.
[52] Lei Li and Kapil Khandelwal. Volume preserving projection filters and continuation methods in topology optimization. Engineering Structures, 85:144–161, February 2015. ISSN 0141-0296. doi: 10.1016/j.engstruct.2014.10.052. URL http://dx.doi.org/10.1016/j.engstruct.2014.10.052.
[53] Zongliang Du, Xiao-Yi Zhou, Renato Picelli, and H. Alicia Kim. Connecting microstructures for multiscale topology optimization with connectivity index constraints. Journal of Mechanical Design, 140(11), October 2018. ISSN 1528-9001. doi: 10.1115/1.4041176. URL http://dx.doi.org/10.1115/1.4041176.
[54] Tielin Dai, Tianjie Chen, Qingyu Xu, Xiao-Ming Fu, Ligang Liu, Wenming Wu, and Xiaoya Zhai. Homogenization-driven microstructure compatibility for multiscale topology optimization. Computer Methods in Applied Mechanics and Engineering, 457:118984, August 2026. ISSN 0045-7825. doi: 10.1016/j.cma.2026.118984. URL http://dx.doi.org/10.1016/j.cma.2026.118984.
[55] William Peebles and Saining Xie. Scalable diffusion models with transformers. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), page 4172–4182. IEEE, October 2023. doi: 10.1109/iccv51070.2023.00387. URL http://dx.doi.org/10.1109/ICCV51070.2023.00387.
[56] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Bjorn Ommer. High-resolution image synthesis with latent diffusion models. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), page 10674–10685. IEEE, 2022. doi:10.1109/cvpr52688.2022.01042. URL http://dx.doi.org/10.1109/CVPR52688.2022.01042.
[57] Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling, 2022. URL https://arxiv.org/abs/2210.02747.
[58] Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow, 2022. URL https://arxiv.org/abs/2209.03003.
[59] Prafulla Dhariwal and Alex Nichol. Diffusion models beat gans on image synthesis, 2021. URL https://arxiv.org/abs/2105.05233.
[60] Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, Dustin Podell, Tim Dockhorn, Zion English, Kyle Lacey, Alex Goodwin, Yannik Marek, and Robin Rombach. Scaling rectified flow transformers for high-resolution image synthesis, 2024. URL https://arxiv.org/abs/2403.03206.
[61] Timothée Darcet, Maxime Oquab, Julien Mairal, and Piotr Bojanowski. Vision transformers need registers, 2023. URL https://arxiv.org/abs/2309.16588.
[62] Fan Bao, Shen Nie, Kaiwen Xue, Yue Cao, Chongxuan Li, Hang Su, and Jun Zhu. All are worth words: A vit backbone for diffusion models, 2022. URL https://arxiv.org/abs/2209.12152.
[63] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need, 2017. URL https://arxiv.org/abs/1706.03762.
[64] Jianlin Su, Yu Lu, Shengfeng Pan, Ahmed Murtadha, Bo Wen, and Yunfeng Liu. Roformer: Enhanced transformer with rotary position embedding, 2021. URL https://arxiv.org/abs/2104.09864.
[65] Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance, 2022. URL https://arxiv.org/abs/2207.12598.
[66] M.O. Heller, G. Bergmann, J.-P. Kassi, L. Claes, N.P. Haas, and G.N. Duda. Determination of muscle loading at the hip joint for use in pre-clinical testing. Journal of Biomechanics, 38(5):1155–1163, May 2005. ISSN 0021-9290. doi: 10.1016/j.jbiomech.2004.05.022. URL http://dx.doi.org/10.1016/j.jbiomech.2004.05.022.
[67] Krister Svanberg. The method of moving asymptotes—a new method for structural optimization. International Journal for Numerical Methods in Engineering, 24(2):359–373, February 1987. ISSN 1097-0207. doi: 10.1002/nme.1620240207. URL http://dx.doi.org/10.1002/nme.1620240207.
Batley and Saha: Preprint submitted to Elsevier
Page 34 of 35
[68] J. Stegmann and E. Lund. Discrete material optimization of general composite shell structures. International Journal for Numerical Methods in Engineering, 62(14):2009–2027, February 2005. ISSN 1097-0207. doi: 10.1002/nme.1259. URL http://dx.doi.org/10.1002/nme.1259.
[69] Ole Sigmund. Morphology-based black and white filters for topology optimization. Structural and Multidisciplinary Optimization, 33(4-5):401–424, January 2007. ISSN 1615-1488. doi: 10.1007/s00158-006-0087-x. URL http://dx.doi.org/10.1007/s00158-006-0087-x.
[70] Digital Humanities Research Network. Femur rabbit. https://sketchfab.com/3d-models/femur-rabbit-4e1b6f0c45d1446993c828b53369582c, 2020. Model by Sofia Samper Carro. Skullbook – Digital Bone Library, Australian National University. Accessed October 2026.
[71] Rik Huiskes, Ronald Ruimerman, G. Harry van Lenthe, and Jan D. Janssen. Effects of mechanical forces on maintenance and adaptation of form in trabecular bone. Nature, 405(6787):704–706, 2000. ISSN 1476-4687. doi: 10.1038/35015116. URL http://dx.doi.org/10.1038/35015116.
[72] C.H. Turner. Three rules for bone adaptation to mechanical stimuli. Bone, 23(5):399–407, November 1998. ISSN 8756-3282. doi:10.1016/s8756-3282(98)00118-5. URL http://dx.doi.org/10.1016/S8756-3282(98)00118-5.
[73] Andrew D. Speirs, Markus O. Heller, Georg N. Duda, and William R. Taylor. Physiologically based boundary conditions in finite element modelling. Journal of Biomechanics, 40(10):2318–2323, January 2007. ISSN 0021-9290. doi: 10.1016/j.jbiomech.2006.10.038. URL http://dx.doi.org/10.1016/j.jbiomech.2006.10.038.
[74] Rik Huiskes, Harrie Weinans, and Bert Van Rietbergen. The relationship between stress shielding and bone resorption around total hip stems and the effects of flexible materials. Clinical Orthopaedics and Related Research, 274:124–134, January 1992. ISSN 0009-921X. doi:10.1097/00003086-199201000-00014. URL http://dx.doi.org/10.1097/00003086-199201000-00014.
Batley and Saha: Preprint submitted to Elsevier
Page 35 of 35