Overview
This paper introduces BiHyb, a bi-level hybrid framework that combines the strengths of reinforcement learning (RL) and traditional heuristics to solve NP-hard combinatorial optimization (CO) problems on graphs. By using an RL agent to strategically modify graph structures (the "upper level") and a fast heuristic to solve the resulting problem (the "lower level"), the authors achieve state-of-the-art results that scale and generalize far better than traditional end-to-end machine learning models.
The Challenge of Combinatorial Optimization
Combinatorial Optimization problems—such as finding the shortest path for a delivery truck or scheduling complex computer tasks—are notoriously difficult. Traditionally, they are solved in two ways:
- Heuristics: Fast, manually designed rules-of-thumb that often sacrifice solution quality.
- End-to-End Machine Learning (MLCO): Training a neural network to output a solution directly.
While MLCO is a promising area of research, it faces a "capacity wall." For large, complex graphs, the model must be massive to map inputs to valid solutions. Furthermore, training these models with RL often fails due to "sparse rewards"—the agent only receives feedback after a long sequence of actions, making the learning process highly unstable.
The BiHyb Approach
To overcome these limitations, the authors propose a Bi-Level Hybrid (BiHyb) approach. Instead of forcing the ML model to solve the entire problem from scratch, they split the labor:
- Upper Level (The "Strategist"): A Reinforcement Learning agent (using Proximal Policy Optimization, or PPO) learns to modify the input graph by adding, deleting, or modifying edges. Its goal is to alter the graph just enough so that a simple heuristic can find a better solution than it would have on the original graph.
- Lower Level (The "Worker"): A traditional, learning-free heuristic (like the Critical Path method for scheduling) takes the modified graph and produces the final solution.
The model uses a Graph Convolutional Network (GCN) to encode the graph's state and ResNet-based actor-critic modules to decide which edges to alter. Because the RL agent only takes a few actions (e.g., 20 modifications) rather than thousands of steps to build a solution, the sparse reward problem is significantly mitigated.
Evaluated Datasets
The framework was rigorously evaluated on three distinct NP-hard problems:
- DAG Scheduling: Using the TPC-H dataset (business-oriented database queries), where the goal is to minimize the "makespan" (total time) to finish all jobs.
- Graph Edit Distance (GED): Using the AIDS dataset (chemical compounds), measuring the similarity between two graphs.
- Hamiltonian Cycle Problem (HCP): Using the FHCP benchmark, which contains "hard" instances where finding a cycle that visits every node exactly once is extremely difficult for standard solvers.
Key Insights and Ideas
- The Power of Pre-processing: The core insight is that ML doesn't need to find the solution; it just needs to find a better version of the problem. By adding a helpful constraint (an edge) or removing a distraction, the RL agent guides the heuristic toward a global optimum it would otherwise miss.
- Mitigating Sparse Rewards: By reformulating the task, the RL episode length drops from over 1,000 actions (building a full solution) to roughly 20 actions (modifying the graph). This makes the reward signal much denser and easier to learn from.
- Generalization through Strategy: Because the model learns a modification strategy rather than a direct mapping to a solution, it generalizes remarkably well. A model trained on graphs with 50 nodes can effectively improve solutions for graphs with over 300 nodes.
Key Results
- DAG Scheduling: BiHyb outperformed the standard "Critical Path" heuristic by 8.4% to 10.2% across different problem sizes, significantly beating standard end-to-end RL approaches.
- Graph Edit Distance: On the AIDS dataset, BiHyb reduced the edit distance by 13.2% to 24.4% compared to the best-known traditional heuristic (IPFP).
- Hamiltonian Cycle: In the FHCP benchmark, BiHyb found valid cycles in 25% of the test cases, whereas traditional heuristics and single-level RL methods found 0%.
Limitations and Future Work
The authors note that their model uses a relatively standard GCN architecture. Performance could likely be improved by integrating more advanced Graph Neural Networks or employing Neural Architecture Search (NAS) to tailor the model to specific CO problems.
Summary updated