Test-Time Search in Neural Graph Coarsening Procedures for the Capacitated Vehicle Routing Problem

Yoonju Sim, Hyeonah Kim, Changhyun Kwon · DOI

Abstract

The identification of valid inequalities, such as the rounded capacity inequalities (RCIs), is a key component of cutting plane methods for the Capacitated Vehicle Routing Problem (CVRP). While a deep learning-based separation method can learn to find high-quality cuts, our analysis reveals that the model produces fewer cuts than expected because it is insufficiently sensitive to generate a diverse set of generated subsets. This paper proposes an alternative: enhancing the performance of a trained model at inference time through a new test-time search with stochasticity. First, we introduce stochastic edge selection into the graph coarsening procedure, replacing the previously proposed greedy approach. Second, we propose the Graph Coarsening History-based Partitioning (GraphCHiP) algorithm, which leverages coarsening history to identify not only RCIs but also, for the first time, the Framed capacity inequalities (FCIs). Experiments on randomly generated CVRP instances demonstrate the effectiveness of our approach in reducing the dual gap compared to the existing neural separation method. Additionally, our method discovers effective FCIs on a specific instance, despite the challenging nature of identifying such cuts.

Introduction

To solve complex routing problems like the Capacitated Vehicle Routing Problem (CVRP) exactly, modern solvers rely on Branch-and-Cut algorithms. A crucial step in these algorithms is finding cutting planes (or "cuts")—valid mathematical inequalities that slice away fractional, impossible solutions to tighten the search space. Finding the best cuts, such as Rounded Capacity Inequalities (RCIs) and Framed Capacity Inequalities (FCIs), is notoriously difficult and computationally expensive (NP-hard).

Recently, the NeuralSEP framework was developed to predict these cuts using Graph Neural Networks (GNNs). However, NeuralSEP suffers from low sensitivity: even when input parameters are slightly tweaked to request different cuts, the model tends to output the same candidate subsets. This lack of diversity results in fewer unique cuts than traditional, albeit slower, exact methods, limiting its effectiveness in a full solver pipeline.

To address the lack of diversity without retraining the underlying neural network, we propose two test-time search enhancements that integrate directly into the cutting plane loop.

The integrated cutting plane method using machine learning and test-time search.

1. Stochastic Edge Selection ($\pi$-greedy)

NeuralSEP operates via graph coarsening—iteratively merging nodes (customers) that the GNN predicts belong on the same side of a cut. Originally, this process was deterministic, always selecting the highest-probability edge. We introduce a "$\pi$-greedy" approach that injects a small amount of random noise into these probabilities. This tiny perturbation forces the model to explore slightly different coarsening paths each time, generating a significantly more diverse pool of candidate cuts for virtually zero extra computational cost.

2. GraphCHiP: Graph Coarsening History-based Partitioning

As the graph coarsens, it creates a hierarchical tree of merged nodes. We propose GraphCHiP, a backtracking algorithm that traverses this history. By analyzing how nodes were grouped at intermediate steps, GraphCHiP identifies additional RCIs and—for the first time in a learning-based method—the more complex Framed Capacity Inequalities (FCIs). This approach effectively recycles the intermediate computations of the coarsening process, treating the hierarchy as a semantic clustering of customers.

Experimental Results

We evaluated our approach on randomly generated CVRP instances (50 to 1,000 customers) and the X-n153-k22 benchmark from CVRPLIB.

  • Tighter Bounds: The full proposed pipeline consistently achieved lower optimality gaps than both the original NeuralSEP and the traditional CVRPSEP heuristic, particularly on large-scale instances (400–1,000 customers).
  • Increased Cut Diversity: The $\pi$-greedy selection increased the number of generated RCI cuts by up to 42.4% on 400-customer instances compared to the deterministic version.
  • FCI Discovery: On the challenging X-n153-k22 instance, GraphCHiP successfully identified 324 FCI cuts. Incorporating these complex cuts improved the optimality gap by an additional 1.38 percentage points over using RCIs alone.
  • Computational Efficiency: By migrating the original codebase to PyTorch Geometric (PyG), we reduced evaluation time by 60-80% (e.g., from 225 seconds to 76 seconds on 200-node graphs).

Conclusion

Our findings suggest that in imitation learning for combinatorial optimization, deterministic models can suffer from a form of "mode collapse" where they lose the ability to explore edge cases. By treating noise as a feature rather than a bug, test-time search acts as a lightweight ensemble method that breaks the deterministic rut of the GNN. Future work will focus on integrating these methods into state-of-the-art Branch-and-Price-and-Cut (BPC) frameworks and predicting which specific problem instances are most likely to benefit from complex FCI separation.

Summary updated

Abstract

The identification of valid inequalities, such as the rounded capacity inequalities (RCIs), is a key component of cutting plane methods for the Capacitated Vehicle Routing Problem (CVRP). While a deep learning-based separation method can learn to find high-quality cuts, our analysis reveals that the model produces fewer cuts than expected because it is insufficiently sensitive to generate a diverse set of generated subsets. This paper proposes an alternative: enhancing the performance of a trained model at inference time through a new test-time search with stochasticity. First, we introduce stochastic edge selection into the graph coarsening procedure, replacing the previously proposed greedy approach. Second, we propose the Graph Coarsening History-based Partitioning (GraphCHiP) algorithm, which leverages coarsening history to identify not only RCIs but also, for the first time, the Framed capacity inequalities (FCIs). Experiments on randomly generated CVRP instances demonstrate the effectiveness of our approach in reducing the dual gap compared to the existing neural separation method. Additionally, our method discovers effective FCIs on a specific instance, despite the challenging nature of identifying such cuts.
BibTeX
@misc{sim2025test,
  author = {Yoonju Sim and Hyeonah Kim and Changhyun Kwon},
  title = {{Test-Time Search in Neural Graph Coarsening Procedures for the Capacitated Vehicle Routing Problem}},
  year = {2025},
  eprint = {2510.00958},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.00958},
}
Figure