Diffeomorphic Optimization

Ludwig Winkler, Pan Kessel, Andrew Leaver-Fay, Joseph KleinhenzOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

This paper introduces Diffeomorphic Optimization, a framework that simplifies complex optimization tasks by reparameterizing them through the smooth latent spaces of flow and diffusion models. By extending this approach to matrix Lie groups ($SO(3)$ and $SE(3)$), the authors demonstrate a powerful new way to design proteins and dock ligands that outperforms standard "guidance" methods and traditional energy minimization.

What Problem Does This Paper Address?

In fields like protein engineering, we often want to find a structure that minimizes a specific cost—such as maximizing stability or binding affinity. However, two major hurdles stand in the way:

  1. The Rugged Landscape: The "objective landscape" of physical properties is incredibly messy, filled with countless local minima that trap standard optimizers.
  2. The Manifold Constraint: Valid proteins live on a tiny, low-dimensional "manifold" within a massive high-dimensional space. If an optimizer moves "off-manifold," it produces "junk" structures that are physically impossible.

While generative models (like diffusion) are excellent at sampling valid structures, using them for targeted optimization has historically relied on "guidance" techniques. Guidance often requires delicate hyperparameter tuning and struggles to capture fine-grained physical details.

Methods

The core idea is to stop optimizing in the "data space" (the messy real world) and start optimizing in the "base space" (the smooth latent world).

  • Reparameterization via Diffeomorphisms: Generative models learn a diffeomorphism—a smooth, invertible map ($g$)—between a simple base distribution (like a Gaussian) and the complex data manifold. The authors propose optimizing the cost function $L(g(z))$ with respect to the latent variable $z$.
  • Geometric Equivalence: The authors prove (Theorem 1) that performing gradient descent in this base space is mathematically equivalent to performing Riemannian gradient descent directly on the data manifold. This means the optimization is "manifold-aware" by design.
  • Lie Group Integration: Since proteins are defined by the orientation and position of residues, the authors extend this math to matrix Lie groups ($SO(3)$ for rotations and $SE(3)$ for rigid body motions).
  • Efficient Backpropagation: To make this computationally feasible, they introduce two methods to backpropagate through ODE solvers on manifolds:
  • A "repurposing" of standard autograd engines using a clever backward hook.
  • A generalized Adjoint State Method specifically derived for matrix Lie groups.

Datasets

The authors validated their approach across several domains:

  • Toy SO(3) Manifold: An S-shaped manifold in rotation space to visualize trajectory behavior.
  • Protein Structure: Used the FrameFlow model for backbone generation and secondary structure modification.
  • Ligand Docking: Used the DiffDock model and the PDBBind dataset to optimize Vina docking scores.
  • Energy Minimization: Used AlphaFlow (based on ESMFold) to minimize the Rosetta energy function on a standard PDB test set.

Key Insights and Ideas

  • Mode Switching: In the data space, two valid protein shapes might be separated by a high-energy "mountain." In the base space, the generative model has "flattened" these mountains, allowing the optimizer to easily switch between different plausible conformations (modes) that would otherwise be unreachable.
  • Automatic Constraints: You don't need to add penalty terms to keep the protein "looking real." Because the optimization happens in the base space of a pre-trained model, the results are naturally constrained to the manifold of realistic structures the model was trained on.
  • Smoothing Effect: The mapping $g$ acts as a natural preconditioner, turning a "rugged" optimization surface into a much smoother one, which significantly speeds up convergence to high-quality solutions.

Key Results

  • Secondary Structure Modification: Diffeomorphic optimization successfully "pushed" alpha-helical proteins into beta-sheet configurations, significantly outperforming "guidance" baselines in both accuracy and standard deviation.
  • Superior Docking: In ligand docking tasks, the method achieved better (lower) Vina scores than i.i.d. sampling given the same computational budget.
  • Better than State-of-the-Art Relax: When combined with the Rosetta energy function, the method achieved significantly lower energy states than the industry-standard "Rosetta Relax" protocol. It essentially finds better starting points that traditional tools can then refine.
  • Efficiency: Their "repurposing" autograd trick was shown to be up to 2× faster than alternative optimal control frameworks.

Limitations and Future Work

  • Computational Cost: Backpropagating through an ODE solver is still more expensive than simple sampling. While the authors suggest "coarse-grained" backpropagation (fewer steps) helps, it remains a bottleneck for very large systems.
  • Model Dependence: The optimization is only as good as the underlying generative model. If the flow/diffusion model hasn't accurately captured the data manifold, the optimizer will be constrained to an incorrect "reality."
  • Discretization Errors: The Adjoint State Method assumes the forward pass is perfect; in practice, numerical drift in the ODE solver can lead to imprecise gradients, though the authors provide a checkpointing strategy to mitigate this.

Summary based on "Diffeomorphic Optimization" by Anonymous Authors (under review).

Summary updated

BibTeX
@misc{winkler2026diffeomorphic,
  author = {Ludwig Winkler and Pan Kessel and Andrew Leaver-Fay and Joseph Kleinhenz},
  title = {{Diffeomorphic Optimization}},
  year = {2026},
  url = {https://openreview.net/forum?id=OEgWVhdom2},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}

Loading related content...

Figure