Open Materials Generation with Inference-Time Reinforcement Learning
Philipp Hoellmer, Stefano Martiniani
TL;DR
Open Materials Generation with Inference-time Reinforcement Learning (OMatG-IRL) addresses the challenge of aligning crystal structure generation with explicit target properties when using flow-based models that may not expose a score. The method performs policy-gradient reinforcement learning at inference time directly on learned velocity fields within the stochastic interpolants framework, with variants for score-based and velocity-based updates and a learned velocity-annealing schedule. Key contributions include the first RL application to CSP, showing energy-based rewards can be effectively optimized without explicit diversity rewards, and achieving substantial gains in sampling efficiency by reducing integration steps by up to an order of magnitude. The results demonstrate that velocity-based RL can match score-based RL, broadening the applicability of RL to a broader class of generative models for materials design. Together, these advances enable more efficient, diverse, and target-driven crystal structure generation.
Abstract
Continuous-time generative models for crystalline materials enable inverse materials design by learning to predict stable crystal structures, but incorporating explicit target properties into the generative process remains challenging. Policy-gradient reinforcement learning (RL) provides a principled mechanism for aligning generative models with downstream objectives but typically requires access to the score, which has prevented its application to flow-based models that learn only velocity fields. We introduce Open Materials Generation with Inference-time Reinforcement Learning (OMatG-IRL), a policy-gradient RL framework that operates directly on the learned velocity fields and eliminates the need for the explicit computation of the score. OMatG-IRL leverages stochastic perturbations of the underlying generation dynamics preserving the baseline performance of the pretrained generative model while enabling exploration and policy-gradient estimation at inference time. Using OMatG-IRL, we present the first application of RL to crystal structure prediction (CSP). Our method enables effective reinforcement of an energy-based objective while preserving diversity through composition conditioning, and it achieves performance competitive with score-based RL approaches. Finally, we show that OMatG-IRL can learn time-dependent velocity-annealing schedules, enabling accurate CSP with order-of-magnitude improvements in sampling efficiency and, correspondingly, reduction in generation time.
