Surgeons, surgical robots, and the computer-vision systems that track soft tissue during surgery are all tested on stand-ins for real organs, called phantoms. A useful phantom needs two things. It should stiffen under load the way tissue does, which is a nonlinear stress-strain response. It should also be something a printer can physically produce. Generative models can already design small two-dimensional microstructures (repeating cells of solid and void) that hit a requested nonlinear stress-strain curve. Separately, topology optimization, a family of methods that decides where to place material, has tools that enforce printability rules such as a minimum feature width. These two lines of work have not been joined in the nonlinear regime. The obvious way to join them is to generate a design and then clean it up for printing, and other fields have found that this cleanup step can destroy the very behavior the design was optimized for.
We propose to steer a diffusion model at every denoising step toward a target nonlinear curve, with the curve evaluated on the manufacturable version of its current guess rather than on the raw guess. A diffusion model is a generator that turns random noise into a sample through many small denoising steps. The manufacturable version comes from a differentiable minimum-width operator that deletes any feature too thin to print. The model is therefore never rewarded for mechanical behavior that depends on unprintable detail. We will test whether this beats generate-then-clean on printed and simulated mechanical accuracy. We will then use the resulting phantoms as targets whose deformation is known from simulation, to check how faithfully current endoscopic tissue-tracking methods recover that deformation.
Core Claim
The proposal rests on one claim. For nonlinear, large-strain microstructure design, folding a printability operator inside the guidance loss preserves the target response after printing much better than applying the same operator afterward. It does this at a small cost in sample diversity and speed.
The three directions play unequal roles here. On-demand materials design supplies the generator. Manufacturing constraint integration supplies the key mechanism. Non-rigid tissue deformation supplies two things: the target behavior, a strain-stiffening tissue-like response, and a downstream evaluation setting. We do not claim to infer tissue mechanics from endoscopic video. Monocular video carries no force information, and the research file documents that current reconstruction methods model only surface kinematics.
Prior Work and Positioning
The generator comes from Denoising diffusion algorithm for inverse design of microstructures with fine-tuned nonlinear material properties. That work conditions a diffusion model on target hyperelastic strain-energy curves from Mechanical MNIST. It then discards failing samples with a convolutional surrogate model, a fast neural stand-in for simulation, and reports a mean squared error below $10^{-4}$ against finite element analysis (FEA, numerical physics simulation) after this filtering. The same work shows that dissimilar geometries can share a response ("microstructure twins"). It imposes no feature-width or connectivity rule, and its outputs inherit a handwritten-stroke style. We reuse its conditioning scheme. What we change is what the guidance signal sees.
The mechanism combines two existing ingredients that have never been used together. Diffusion Models Beat GANs on Topology Optimization (TopoDiff) adds gradient guidance from a compliance regressor and a floating-material classifier during reverse diffusion. It cuts disconnected material from roughly 68% (with a generative adversarial network, or GAN) to about 6%. TopoDiff works under linear elasticity and penalizes infeasibility through a learned classifier. Our constraint is instead an exact, differentiable geometric operator. Normalized field product approach (nFP) supplies that operator. It computes each element's density as a product over its neighborhood, so features narrower than the filter radius collapse to zero. It reports gray (intermediate-density) fractions below 1% without tuning continuation parameters. It is used only in classical gradient-based optimization, never inside a generator.
Three papers motivate the "inside, not after" design. Post-hoc geometric fixes have been shown to wreck optimized physics in photonics (Lininger et al.; Christensen et al.), and post-processing is still common practice (Gao et al.). Whether nonlinear mechanics is equally fragile is an open question that our experiments answer directly.
Two multiscale works bound the scope of what we attempt. Two-Scale Topology Optimization with Microstructures and boundary-identical guided diffusion solve tiling and interface compatibility, but only under linear elasticity. We borrow their idea of fixing a boundary profile so that cells can be tiled, but we treat tiling as secondary.
On the tissue side, Endo-4DGS, EndoGS, and Forplane reconstruct deforming surgical scenes. They are evaluated mainly by photometric quality, and the depth ground truth available to them, from SCARED, covers only a few keyframes of cadaver tissue. Printed phantoms with FEA-known deformation provide a missing kind of test.
Research Program
The generator is a conditional diffusion model over a 2D density grid $x$. The conditioning vector $c$ is a sampled stress-strain or strain-energy curve. At each reverse step $t$, the model predicts a clean design $\hat{x}_0(x_t)$.
We apply the nFP operator $m(\cdot)$ with radius $r$, set to the printer's minimum feature size, to obtain the printable design $m(\hat{x}_0)$. A surrogate $S$ maps a design to its predicted nonlinear response. The guided update is
$$x_{t-1} = \mu_\theta(x_t, t, c) - \lambda_t \nabla_{x_t}\Big[\,\|S(m(\hat{x}_0)) - c\|^2 + \gamma\,\|\hat{x}_0 - m(\hat{x}_0)\|^2\Big],$$
where $\mu_\theta$ is the usual conditional denoising mean, $\lambda_t$ is a guidance schedule, and $\gamma$ weights a term that keeps the generator's guess close to its printable projection. The design that ships is $m(\hat{x}_0)$ at the final step. Because $S$ only ever scores printable shapes, any mechanical accuracy the method reports is accuracy of the printed part, up to surrogate error.
The second term in the update is essential. Without it, the model could drift into thin-feature regimes that the operator then zeroes out, and its guesses would stop matching what gets printed.
We build three assets.
The first is a non-stroke training set to remove Mechanical MNIST's style bias. We will generate random-field and Voronoi-type 2D cells and run large-strain hyperelastic FEA on each. Mechanical MNIST itself is kept for direct comparison.
The second is a surrogate trained with nFP-projected shapes deliberately included. This prevents the surrogate from being queried outside the distribution it was trained on.
The third is a target set of strain-stiffening curves. Most come from held-out FEA. A smaller set of tissue-like shapes is chosen to be out of distribution, following the out-of-distribution tests in Vlassis and Sun.
Every reported mechanical number is checked by independent FEA rather than by the surrogate. A subset of designs is also printed in a flexible material and tested in uniaxial compression to measure the gap between simulation and reality.
Baselines
The naive reference point is the unconstrained conditional diffusion model of Vlassis and Sun with its surrogate filter and no printability handling. That paper reports a filtered MSE below $10^{-4}$ on Mechanical MNIST. No reported result was found on Lacuna for the fraction of its outputs that violate a minimum-width rule. We will measure both its raw accuracy and its accuracy after nFP projection. The drop between those two numbers is exactly the damage the proposal targets.
The strongest learned competitor is generate-then-project. This is the same trained diffusion model and the same surrogate filter, with nFP applied once at the end, plus best-of-N resampling under a matched number of surrogate calls. This is what a careful practitioner would do. To count as a win, our method must achieve lower FEA-verified post-print MSE at equal compute.
A TopoDiff-style variant, following TopoDiff, replaces the explicit operator with a learned classifier that flags thin features. Its guidance signal comes from that classifier instead of from evaluating $S$ on $m(\hat{x}_0)$. This tests whether an exact operator matters relative to a learned penalty. TopoDiff's own reported number, about 6% infeasible designs, concerns linear compliance problems and is not directly comparable to our task.
The strongest non-learned competitor is classical nonlinear topology optimization of each target from scratch, using nFP density evaluation and a large-strain adjoint, run until converged. It sets the accuracy ceiling for a single design.
The ablation that isolates our key ingredient keeps everything identical but evaluates the surrogate on raw $\hat{x}_0$ inside the loop and applies $m$ only at the end. A second ablation sets $\gamma = 0$.
For fairness, all learned methods share the data, the surrogate, the denoiser weights, and a fixed tuning budget for guidance scales.
Why not just…?
Why not just generate freely and then apply the minimum-width filter? This is the main threat, and it is cheap. Photonics evidence (Lininger et al.; Christensen et al.) suggests post-hoc edits break optimized behavior. Nonlinear mechanics might be more forgiving, because thin struts may carry little load. The generate-then-project baseline and the guidance-placement ablation settle this. If post-print error under generate-then-project stays close to the unconstrained error, the core claim is false, and we would report that rather than argue around it.
Why not just run classical nonlinear topology optimization with nFP for each target? For a single design this may match or beat us on accuracy, and we expect it to be a strong contender. The case for the generative route rests on two other things. First, amortized speed across many targets, though diffusion is not fast: TopoDiff reports 21.59 seconds per 64×64 design. Second, the ability to return several distinct twin designs per target, which classical optimization from one initialization does not. We will report accuracy, time per target, and the number of distinct designs that pass verification. If classical optimization wins on all three, the generative method is not justified for this task.
Why not just tune a homogeneous silicone or hydrogel phantom by its mixing ratio? For phantoms that only need to be uniform and roughly tissue-stiff, this is adequate and cheaper. Architected cells add something only when a phantom needs a specific stiffening curve shape, or stiffness that varies across space. We will restrict the claim to targets that a family of homogeneous neo-Hookean fits cannot match within the error of our method. We will also report how many tissue-like targets fall into that category.
Why not just reject samples using a manufacturability classifier? Rejection wastes samples. When the target curve sits where most good designs are thin, the acceptance rate may collapse. The matched-budget best-of-N baseline measures this directly through post-print accuracy at a fixed number of surrogate calls.
Proposed Experiments
On Mechanical MNIST (60,000 training and 10,000 test pairs) and on our non-stroke set, we will report the following for each method. Mechanical accuracy is the FEA-verified MSE between target and response of the printable design. Printability is the fraction of designs with a sub-radius feature, the gray fraction (compared against the nFP reference of below 1%), and the fraction with floating material. We also report sample diversity among designs that pass verification, and wall-clock time per design. All of these are measured across three minimum-width radii, so we can see how the advantage grows as the constraint tightens.
The decisive check has a clear prediction. If in-loop guidance matters, the gap between our method and generate-then-project should widen as the radius $r$ increases. If the two curves overlap at every radius, the idea fails.
A second check prints about 30 designs per method and compares measured compression curves against both the target and FEA. This separates surrogate error from errors introduced by the simulation-to-reality gap.
The tissue-facing evaluation is deliberately limited and secondary. We will place printed phantoms whose deformation under a known indentation is predicted by FEA in front of an endoscope, and record monocular and stereo video. We will then run Endo-4DGS and EndoGS and compare their recovered surface displacement against the FEA prediction in millimeters. As a reference scale, SCARED's best mean absolute depth errors were about 1.71 mm and 0.42 mm on its two test sets (SCARED). Displacement errors are not the same quantity as depth errors, so this comparison is only a sanity check. The value of this experiment is a benchmark of known, tissue-like deformation, which current reconstruction evaluation lacks. It does not test the core claim, and the proposal stands or falls on the mechanical experiments above.
References
- Denoising diffusion algorithm for inverse design of microstructures with fine-tuned nonlinear material properties
- Diffusion Models Beat GANs on Topology Optimization
- Normalized Field Product Approach: A Parameter‐Free Density Evaluation Method for Close‐To‐Binary Solutions in Topology Optimization With Embedded Length Scale
- Machine learning to optimize additive manufacturing for visible photonics
- Predictive and generative machine learning models for photonic crystals
- Topology Optimization of the Bracket Structure in the Acquisition, Pointing, and Tracking System Considering Displacement and Key Point Stress Constraints
- Two-scale topology optimization with microstructures
- Constructing boundary-identical microstructures via guided diffusion for fast multiscale topology optimization
- Endo-4DGS: Endoscopic Monocular Scene Reconstruction with 4D Gaussian Splatting
- EndoGS: Deformable Endoscopic Tissues Reconstruction with Gaussian Splatting
- Efficient Deformable Tissue Reconstruction via Orthogonal Neural Plane
- Stereo Correspondence and Reconstruction of Endoscopic Data Challenge