Graph-GRPO: Training Graph Flow Models with Reinforcement Learning

TL;DR

Graph-GRPO introduces analytical transition probabilities and reinforcement learning for efficient graph flow model training, achieving 95% validity in 50 steps.

cs.LG 🔴 Advanced 2026-03-11 39 views
Baoheng Zhu Deyu Bo Delvin Ce Zhang Xiao Wang
graph generation reinforcement learning flow models molecular design deep learning

Key Findings

Methodology

This work derives an explicit analytical expression for the transition probability of Graph Flow Models (GFMs), replacing non-differentiable Monte Carlo sampling with a differentiable formulation. It integrates Group Relative Policy Optimization (GRPO) for end-to-end reinforcement learning, enabling models to optimize specific objectives directly. Additionally, a local perturbation-based refinement strategy perturbs nodes and edges in promising graphs, regenerating them iteratively to enhance exploration and solution quality. Extensive experiments on synthetic and real datasets demonstrate that with only 50 denoising steps, the approach achieves 95% validity, outperforming traditional diffusion and genetic algorithms in efficiency and target alignment.

Key Results

  • On synthetic planar and tree datasets, Graph-GRPO attains 95.0% and 97.5% Valid-Unique-Novelty scores with only 50 steps, surpassing models requiring over 1,000 steps. In molecular optimization tasks, it outperforms existing RL and fragment-based methods, achieving higher docking scores and structural validity. Ablation studies confirm the importance of the analytical transition probability and local refinement, with significant improvements over baselines.
  • The method demonstrates superior sample efficiency, reducing computational cost while maintaining or improving target property scores. It effectively balances validity, diversity, and goal-specific metrics, making it suitable for complex tasks like drug discovery and protein docking. The experiments validate the approach's robustness across multiple benchmarks and scenarios.

Significance

This research addresses critical limitations in graph generative modeling, particularly the non-differentiability of transition processes and limited exploration capabilities. By deriving an analytical transition probability, it enables seamless integration with reinforcement learning, leading to more targeted and efficient graph generation. The local refinement strategy further enhances the model's ability to explore high-potential regions, significantly improving the quality and relevance of generated graphs. These advancements have profound implications for computational chemistry, drug discovery, and materials science, where generating accurate, property-specific structures is essential. The approach bridges the gap between theoretical modeling and practical application, paving the way for more intelligent and adaptable generative systems.

Technical Contribution

The main technical innovation lies in deriving a fully differentiable analytical expression for GFMs' transition probabilities, replacing the traditional Monte Carlo sampling. This enables direct application of policy gradient methods like GRPO, facilitating end-to-end training. The introduction of a local perturbation-based refinement mechanism allows iterative exploration of promising regions in the graph space, improving sample quality and diversity. The framework supports multi-step, goal-oriented optimization with theoretical guarantees of gradient flow and convergence. It also extends the applicability of flow models to complex, high-dimensional graph generation tasks, opening new avenues for research and industrial deployment.

Novelty

This work is the first to provide an explicit analytical form of the transition probability for GFMs, overcoming the non-differentiability barrier. It uniquely combines this with reinforcement learning via GRPO, enabling direct, goal-driven optimization. The local perturbation refinement strategy is a novel addition that enhances exploration and exploitation balance, setting a new standard in graph generative modeling. Unlike prior methods relying solely on diffusion or autoregressive approaches, this framework integrates theoretical rigor with practical efficiency, marking a significant leap forward in the field.

Limitations

  • The derivation of the analytical transition probability assumes certain model assumptions, which may not hold for extremely complex or high-dimensional graphs, potentially increasing computational overhead.
  • The local refinement strategy, while effective, may lead to local optima in highly multimodal landscapes, requiring further mechanisms for global exploration.
  • Training and inference demand substantial computational resources, especially for large graphs, limiting real-time or large-scale deployment without optimization.

Future Work

Future directions include extending the analytical transition framework to larger and more complex graph structures, integrating multi-scale and multi-modal data for richer representations, and developing more efficient algorithms to reduce computational costs. Combining this approach with unsupervised or semi-supervised learning could further enhance its applicability. Additionally, exploring multi-objective optimization and adaptive refinement strategies will help address current limitations, making the method more robust and scalable for industrial applications such as high-throughput drug screening and material discovery.

AI Executive Summary

Graph generation has become a cornerstone in computational chemistry, drug discovery, and materials science, yet existing models face significant challenges in efficiently optimizing complex, goal-specific structures. Traditional flow-based models like DeFoG rely heavily on Monte Carlo sampling, which breaks gradient flow, limiting their integration with reinforcement learning. Consequently, these models struggle to align generated graphs with human preferences or specific objectives, especially in high-dimensional spaces. To address this, the authors introduce Graph-GRPO, a novel framework that derives an explicit analytical expression for the transition probabilities of Graph Flow Models (GFMs). This breakthrough allows the seamless integration of reinforcement learning algorithms, such as Group Relative Policy Optimization (GRPO), enabling end-to-end training. The key innovation lies in replacing non-differentiable sampling with a fully differentiable, analytical transition mechanism, ensuring stable gradient flow and efficient optimization.

Complementing this, the paper proposes a local perturbation-based refinement strategy. By randomly perturbing nodes and edges in promising graphs and regenerating them iteratively, the method enhances exploration within high-potential regions of the graph space. This combination of global policy optimization and local refinement results in a powerful approach capable of generating high-quality, goal-aligned graphs with only 50 denoising steps. Extensive experiments on synthetic datasets, molecular docking, and property optimization tasks demonstrate that Graph-GRPO achieves state-of-the-art performance, with validity scores exceeding 95% in minimal steps, outperforming diffusion models and genetic algorithms.

The broader impact of this work is substantial. It paves the way for more intelligent, goal-oriented graph generative models capable of tackling complex problems in drug discovery, protein engineering, and materials design. By bridging the gap between theoretical rigor and practical efficiency, the framework opens new avenues for scalable, accurate, and adaptable structure generation. Despite its strengths, challenges remain, including computational costs and potential local optima in highly multimodal landscapes. Future research will focus on scaling the approach, integrating multi-scale data, and further enhancing exploration strategies, ultimately aiming to realize fully autonomous, goal-driven design systems in industry and academia.

Deep Dive

Glossary

Graph Flow Model (GFM)

一种基于流的图生成模型,通过连续变换生成图结构,具有灵活采样和高效性能。

论文中提出的核心模型,用于图的生成与优化。

分析转移概率 (Analytical Transition Probability)

通过解析表达式描述图状态转移的概率,避免Monte Carlo采样带来的非可微问题。

解决GFMs训练中梯度传递难题的关键技术。

Group Relative Policy Optimization (GRPO)

一种强化学习算法,通过比较多个样本组的优势,优化策略以提升目标匹配。

用于训练GFMs,使其生成目标导向的图结构。

局部扰动 (Local Perturbation)

在图中随机改变节点或边,反复生成和优化,增强模型探索能力。

细化策略的核心机制,提升生成质量。

有效-唯一-新颖度 (Valid-Unique-Novelty, VUN)

衡量生成图的有效性、唯一性和新颖性的指标。

评估模型生成质量的重要指标。

Open Questions Unanswered questions from this research

  • 1 如何在更复杂的高维图结构中保持解析转移概率的计算效率仍是挑战,未来需优化算法以降低计算成本。
  • 2 当前方法在极端多模态目标场景下可能陷入局部最优,需结合多样化探索策略以增强全局搜索能力。
  • 3 模型对硬件资源依赖较大,实际应用中需开发更高效的算法以实现大规模部署。

Applications

Immediate Applications

药物分子设计

利用Graph-GRPO优化药物候选分子的结构,提升结合亲和性和安全性,缩短药物研发周期。

蛋白质-配体对接

生成符合特定结合模式的蛋白质配体结构,加速新药筛选和靶点验证。

Long-term Vision

智能材料设计

通过目标导向的图生成,设计新型高性能材料,实现工业化生产。

Abstract

Graph generation is a fundamental task with broad applications, such as drug discovery. Recently, discrete flow matching-based graph generation, \aka, graph flow model (GFM), has emerged due to its superior performance and flexible sampling. However, effectively aligning GFMs with complex human preferences or task-specific objectives remains a significant challenge. In this paper, we propose Graph-GRPO, an online reinforcement learning (RL) framework for training GFMs under verifiable rewards. Our method makes two key contributions: (1) We derive an analytical expression for the transition probability of GFMs, replacing the Monte Carlo sampling and enabling fully differentiable rollouts for RL training; (2) We propose a refinement strategy that randomly perturbs specific nodes and edges in a graph, and regenerates them, allowing for localized exploration and self-improvement of generation quality. Extensive experiments on both synthetic and real datasets demonstrate the effectiveness of Graph-GRPO. With only 50 denoising steps, our method achieves 95.0\% and 97.5\% Valid-Unique-Novelty scores on the planar and tree datasets, respectively. Moreover, Graph-GRPO achieves state-of-the-art performance on the molecular optimization tasks, outperforming graph-based and fragment-based RL methods as well as classic genetic algorithms.

cs.LG