Co-PiLOT: Constrained Physics-Informed Latent Optimization for Target-Driven Inverse Design

Mahish K. Guru, Mayank Nagar, Ayush vyas, Jan Bohlen, Roland Aydin, Noomane Ben KhalifaNeurIPS 2026

TL;DR

Designing a new material from scratch usually feels like guessing in the dark—especially when testing a single candidate in a physics simulator takes 15 minutes and often crashes. Co-PiLOT solves this by compressing complex material microstructures into a smooth, navigable latent space using pretrained image generators, and steering through it with a failure-aware optimizer. Within just 160 simulations, it designs realistic magnesium alloys that hit exact mechanical targets without blowing up your compute budget.

What Problem Does This Paper Address?

Across science and engineering, we constantly face the inverse design problem: we know the behavior we want (say, a bioresorbable bone screw with the exact yield strength of cortical bone), and we have to find the physical structure that produces it.

In metallurgy, a metal’s mechanical behavior is dictated by its microstructure—a microscopic mosaic of crystal grains, each tilted at a specific 3D orientation. Searching this space directly is a nightmare for three reasons:

  1. No gradients: The space of crystal grains isn't smooth or Euclidean, and high-fidelity crystal-plasticity simulators (like DAMASK) are black boxes without usable gradients.
  2. Invalidity: Random pixel arrangements aren't valid crystals; feed garbage to the simulator, and the solver diverges and crashes.
  3. Cost: Each simulation takes ~15 minutes. You can't afford thousands of brute-force guesses, and training a fast neural network to replace the simulator fails the moment your search wanders outside the training data.

Existing latent-space optimizers assume evaluations are cheap and never crash. Co-PiLOT tackles the harsh reality of slow, occasionally divergent physics solvers under a strict budget.

Methods

Co-PiLOT lifts the search out of raw crystal space and into the continuous latent space of a generative model, coupling three components in a closed loop:

Figure 1: CO-PILOT. (a) General framework and its materials instantiation (b): a Mg-alloy latent z⋆∈Z is passed through a decoder D like DIT or FM-DIT, bridged via an orientation codec (Ψ) to a .dream3d grid, scored by a crystal plasticity oracle f, and reduced to a fitness J (JV 1/JV 2) that the MERIDIAN optimizer O feeds back as znew for the next iteration. Physics enters via the simulator-based objective and feasibility model, and via codec-encoded training data (Sec. 3).
  • Continually Pretrained Encoder–Decoder: Instead of training from scratch, the authors adapt massive natural-image models—pairing a Vision Transformer (ViT-H/14) encoder with diffusion/flow-matching decoders (like Stable Diffusion 3.5's MMDiT, dubbed FM-DiT) via lightweight adaptors. This compresses $512 \times 512$ RGB images into a tight latent bottleneck ($z \in \mathbb{R}^{512\text{–}1024}$).
  • The Orientation Codec ($\Psi$): Image generators output RGB pixels, while physics solvers expect 3D crystallographic orientations (hexagonal close-packed quaternions). Naive mapping creates sharp color cliffs at periodic boundaries that blur during generation and cause NaN errors. The authors build a clever, closed-form invertible bridge using graph breadth-first search to continuously unfold crystal symmetries, stereographic projection, and connected-component grain segmentation.
  • MERIDIAN (The Novel Optimizer): Standard Bayesian optimization struggles here. MERIDIAN introduces two crucial upgrades: failure-aware feasibility learning (a classifier trained on crashed/invalid runs to steer queries away from solver divergence) and manifold-aware local search (projecting candidate points onto the thin spherical shell in latent space where the image decoder actually places valid data, shaped by an active-subspace trust region). A Determinantal Point Process (DPP) picks diverse batches of 4 candidates per round.

Datasets

The authors expand on an existing corpus of Electron Backscatter Diffraction (EBSD) maps across 17 magnesium-alloy classes (including AZ31, Mg-10Gd, and ZX10). Using geometry- and physics-aware oversampling, they assemble 81,756 training and 9,084 held-out test RGB-encoded microstructures. For optimization, all methods warm-start from the same seed cache of 100 pre-evaluated AZ31 DAMASK crystal-plasticity simulations.

Key Insights and Ideas

  • Natural-image priors understand crystal grains: Continually pretraining frozen natural-image diffusion backbones (like SD3.5) lets the model reconstruct complex grain morphologies through a tiny $1500\times$ compressed bottleneck—though text-conditioned UNets (SDXL) wash out completely when forced to take a single continuous vector.
  • Mind the latent shell: Pretrained encoders don't fill a hypercube; they concentrate valid data on a thin hyperspherical shell (e.g., $\|z\| \approx 22.07 \pm 0.05$ in 512-D). Standard isotropic perturbations step right off this shell, wasting precious 15-minute simulator calls on nonsensical decodes.
  • The Goldilocks bottleneck: Bigger latent spaces aren't automatically better for inverse design. Moving from $d=512$ to $768$ adds helpful expressivity, but jumping to $1024$ makes the space too sparse for a Gaussian Process surrogate to model in 160 evaluations.
  • Statistical validity beats exact pixel memory: Because RGB space doesn't perfectly mirror crystal rotation symmetries, end-to-end reconstruction introduces a $\sim 53^\circ$ pixel-level orientation shuffle. Yet this acts as a benign, class-preserving reshuffle—the generated textures still obey AZ31 alloy statistics, making the decoder a reliable prior for optimization.
Figure 3: Qualitative Reconstructions on AZ31 and Mg-10Gd. More examples in Fig. 9

Key Results

  • Codec Precision: The orientation codec achieves a $\sim 0.6^\circ\text{–}0.7^\circ$ round-trip angular error—safely below the $5^\circ$ physical threshold that defines a crystal grain boundary.
  • Reconstruction Fidelity: Among bottlenecked models, ViT-DiT gets the best realism score (FID 23.19), while ViT-FMDiT ($z=512, 768$) wins on structural similarity (MS-SSIM 0.178) and recovers $\sim 47\text{–}50\%$ of individual grains.
  • Inverse Design: Given a strict budget of 160 simulator calls (~8.5 hours on one H200 GPU) to hit an AZ31 mechanical target ($\sigma_y^\star = 160\text{ MPa}, n^\star = 0.302, \sigma_u^\star = 316\text{ MPa}$), ViT-FMDiT-768 + MERIDIAN achieves the best score ($J_{V2} = -0.132$), landing virtually on target ($\sigma_y = 159.1\text{ MPa}, n = 0.299, \sigma_u = 314.0\text{ MPa}$). It reduces relative target error by 3–22% across seven baselines (DANTE, TuRBO, BAxUS, CMA-ES, DDOM, SEIKO, and DDPO), while RL diffusion fine-tuners (DDPO/SEIKO) fail to even beat the warm-start cache at such small query budgets.

Limitations and Future Work

  • Prior-bound search: Co-PiLOT cannot invent radically alien microstructures outside what its training distribution can express, and its encoder–decoder remains non-isometric with respect to crystal symmetry rotations.
  • Idealized physics: The DAMASK oracle only models isothermal uniaxial tension without fracture or damage; real-world parts need multi-directional loading and lab validation.
  • Single-domain proof: While the 5-tuple framework is theoretically domain-agnostic (applicable to molecules or photonics), this paper only demonstrates it on Mg-alloy microstructures at a single 160-call budget. Future work aims to bake crystal-symmetry quaternion losses directly into encoder–decoder training.

Summary updated

Abstract

Inverse design of physical systems (molecules, devices, microstructures) often reduces to optimizing a high-dimensional structure against an expensive black-box simulator. Direct search is difficult because the space is non-Euclidean, feasibility is hard to encode, and each evaluation is expensive. We present Co-PiLOT, a latent optimization approach that maps candidates through a generative encoder--decoder, uses the decoder as a learned validity prior, and searches the latent space with physics-informed black-box optimization. The framework is applied on the inverse design of magnesium alloy microstructure/texture. We develop a vision transformer based--encoder; paired with latent diffusion, diffusion transformer and rectified-flow transformer--based decoders on $\sim80{,}000$ EBSD-derived microstructure dataset to learn a minimal bottleneck, $z$. The ViT-FMDiT model ($z$=$768$) reconstructs high-fidelity microstructure images (FID $23.19$, MS-SSIM $0.178$), which our self-segmenting orientation codec converts into input grids for crystal plasticity solver. Finally, we introduce Meridian, an active latent optimizer driven by deep-kernel Gaussian-process uncertainty, feasibility prediction, active trust regions, and target-aware acquisition. Within the evaluation budget, the ViT-FMDiT and Meridian combination yields the best target-driven objective score, outperforming DANTE, TuRBO, and BAxUS by $\sim6$\% in relative error on the same decoder.
BibTeX
@inproceedings{guru2026co,
  author = {Mahish K. Guru and Mayank Nagar and Ayush vyas and Jan Bohlen and Roland Aydin and Noomane Ben Khalifa},
  title = {{Co-PiLOT: Constrained Physics-Informed Latent Optimization for Target-Driven Inverse Design}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=fPIgwuSCOy},
}
Figure