arXiv(opens in a new tab)physics.comp-phOct 2026

Manuscript Offprint

arXiv:2610.25565

Concurrent two-scale topology optimization of printable bone scaffolds via rectified-flow generation and exact latent-space refinement

Reza T Batley, Sourav Saha

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 Ωs\Omega_{s} with local-thickness field t(x)t(x),

T=1LQ0.05{t(x)∣x∈Ωs}.(1)\mathcal{T}=\frac{1}{L}Q_{0.05}\left\{t(x)\mid x\in\Omega_{s}\right\}. \tag{1}

Here, LL is the physical unit-cell length (with the same units as tt), Q0.05Q_{0.05} is the empirical fifth percentile via linear interpolation between ordered samples, and t(x)t(x) is the diameter of the largest ball that contains xx and lies entirely within Ωs\Omega_s, as Hildebrand and Rüegsegger [19]. The corresponding physical thickness is thus T⋅L\mathcal{T} \cdot L, allowing a prescribed manufacturing threshold, TtolT_{\mathrm{tol}}, to be expressed as T≥TtolL\mathcal{T} \geq \frac{T_{\mathrm{tol}}}{L}.

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 CHC^{H}, volume fraction vfv_{f} and the normalized fifth-percentile thickness T\mathcal{T}. 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.

References (72)