[Paper Review] Let the Flows Tell: Solving Graph Combinatorial Optimization Problems with GFlowNets
This paper proposes using conditional GFlowNets to solve NP-hard graph combinatorial optimization problems by formulating them as Markov decision processes (MDPs) that enable sequential, flow-based sampling of high-quality solutions. The method achieves state-of-the-art performance in solution quality and diversity across max clique, min dominating set, and max cut problems, with efficient training via transition-based credit assignment for long trajectories.
Combinatorial optimization (CO) problems are often NP-hard and thus out of reach for exact algorithms, making them a tempting domain to apply machine learning methods. The highly structured constraints in these problems can hinder either optimization or sampling directly in the solution space. On the other hand, GFlowNets have recently emerged as a powerful machinery to efficiently sample from composite unnormalized densities sequentially and have the potential to amortize such solution-searching processes in CO, as well as generate diverse solution candidates. In this paper, we design Markov decision processes (MDPs) for different combinatorial problems and propose to train conditional GFlowNets to sample from the solution space. Efficient training techniques are also developed to benefit long-range credit assignment. Through extensive experiments on a variety of different CO tasks with synthetic and realistic data, we demonstrate that GFlowNet policies can efficiently find high-quality solutions. Our implementation is open-sourced at https://github.com/zdhNarsil/GFlowNet-CombOpt.
Motivation & Objective
- To address the challenge of finding high-quality, diverse solutions for NP-hard combinatorial optimization (CO) problems using unsupervised machine learning.
- To overcome limitations of standard reinforcement learning, such as poor solution diversity and reliance on dense reward shaping, by leveraging the principled flow-based framework of GFlowNets.
- To design problem-specific MDPs that model the solution space of CO problems as a directed acyclic graph (DAG) of state transitions.
- To enable efficient training of GFlowNets on long trajectories common in large-scale graph CO problems through transition-based learning algorithms.
- To validate the approach empirically across multiple CO tasks, demonstrating superior trade-offs between solution quality, diversity, and inference speed.
Proposed method
- Formulate each CO problem (e.g., max clique, min dominating set, max cut) as a structured MDP where states represent partial solutions and actions correspond to adding elements to the solution set.
- Train conditional GFlowNets to sample from the solution space with probability proportional to a terminal reward, modeling the target distribution as a flow network over the state space.
- Develop a transition-based learning algorithm that assigns credit to individual transitions rather than full trajectories, enabling efficient backpropagation in long-horizon problems.
- Introduce temperature annealing and off-policy exploration strategies to improve policy optimization and solution diversity during training.
- Use a GFlowNet architecture with attention-based or graph neural network components to process graph-structured inputs and predict action probabilities at each step.
- Apply the trained GFlowNet policy to generate diverse solution candidates via rollouts, with inference time measured per problem instance.
Experimental results
Research questions
- RQ1Can GFlowNets effectively model and sample from the solution space of NP-hard graph combinatorial optimization problems?
- RQ2How does transition-based training in GFlowNets compare to trajectory-based training in terms of convergence speed and performance on long-horizon CO tasks?
- RQ3To what extent can GFlowNets generate diverse, high-quality solutions without relying on dense reward shaping or precomputed supervision?
- RQ4How robust is the GFlowNet approach to hyperparameter choices such as temperature and exploration strategy in diverse CO problem settings?
- RQ5Can GFlowNets outperform existing unsupervised learning and heuristic baselines in solution quality and diversity on large-scale graph CO problems?
Key findings
- On large graphs (|V| = 800–1200), the proposed GFlowNet method achieved a 31.42-sized max clique, with only a 7.29% drop from the optimal solution, outperforming all baselines in solution quality.
- For min dominating set, the method achieved a 110.28-sized solution with a 5.88% gap to optimality, significantly outperforming heuristic and unsupervised learning baselines.
- In max cut, the method produced a 2864.61-sized cut with a 1.74% gap to the optimal, demonstrating strong performance on a highly constrained problem.
- The GFlowNet model achieved a 14.75% drop in max clique and 2.52% gap in min dominating set with inference times under 5 minutes, showing efficiency and scalability.
- Ablation studies confirmed that transition-based learning outperformed trajectory-based training in convergence speed and stability, especially in long-horizon settings.
- The method demonstrated robustness to hyperparameter variations, including temperature and exploration strategy, indicating practical deployability across diverse CO problems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.