A Unified Density Operator View of Flow Control and Merging
Abstract
Lay Summary
Modern generative AI can propose new molecules and other complex designs, but each trained model usually captures only part of what scientists want. One model may generate chemically plausible molecules, another may favor low-energy structures, and a third may encode safety or design constraints. Today, combining such models while also steering them toward a desired scientific goal is difficult. We introduce a framework that treats two tasks—adapting one model to a goal and merging several models—as the same underlying problem. Instead of averaging the models’ internal parameters, our method combines them by directly shaping the probabilities of what they generate. This lets us define intuitive operations such as “AND” (generate what several models agree on), “OR” (cover what any model can generate), and goal-directed versions that also prefer molecules or designs with better desired properties. We then design Reward-Guided Flow Merging, an algorithm that implements these operations through repeated fine-tuning steps, and prove when this process converges. In experiments, the method behaves as intended in simple visual examples and works on molecular design problems, suggesting a principled way to reuse specialized generative models for scientific discovery.