Efficient Active Search for Combinatorial Optimization Problems

André Hottung, Yeong-Dae Kwon, Kevin Tierney

Introduction

This paper introduces Efficient Active Search (EAS), a test-time optimization strategy that significantly boosts the performance of neural combinatorial optimization solvers. By updating only a tiny subset of model parameters—such as instance embeddings or added residual layers—for a specific problem instance, EAS achieves state-of-the-art results. Remarkably, it even outperforms the legendary LKH3 heuristic on vehicle routing tasks, all while being orders of magnitude faster than traditional active search methods.

Machine learning models for Combinatorial Optimization (CO), such as the Traveling Salesperson Problem (TSP), typically fall into two camps: construction methods (building a solution step-by-step) and improvement methods (refining an existing solution).

While construction methods are flexible and require little problem-specific engineering, they are often "static" at test time. They sample solutions from a fixed distribution learned during training and fail to "learn" from the high-quality solutions they might encounter while searching a specific instance.

"Active Search" was previously proposed to fix this by fine-tuning the entire model on a single instance at test time. However, updating millions of parameters for every single problem is computationally ruinous and slow. The authors tackle this efficiency gap, aiming to provide strong search guidance without the massive overhead.

Efficient Active Search (EAS)

The authors propose three variants of EAS that restrict updates to a small fraction of the model:

EAS Architecture
  1. EAS-Emb (Embedding Updates): Only the instance-specific embeddings (the "keys" in the attention mechanism) produced by the encoder are updated.
  2. EAS-Lay (Added-Layer Updates): A small, instance-specific residual layer is inserted into the decoder. Only these new weights are trained during the search, while the rest of the pre-trained model remains frozen.
  3. EAS-Tab (Tabular Updates): A simple lookup table modifies the policy's probability distribution based on the best solution found so far. This avoids backpropagation entirely, making it extremely fast, though it requires a problem-specific mapping (e.g., a table of edges for TSP).

The Hybrid Loss: For the gradient-based methods (Emb and Lay), the authors use a dual-component loss function:

  • RL Component (REINFORCE): Encourages the model to find solutions better than the current baseline.
  • Imitation Learning (IL) Component: Uses "teacher forcing" to increase the likelihood of re-generating the best solution found so far, effectively "intensifying" the search around promising areas.

Datasets Evaluated

The methods were evaluated on three classic NP-hard problems:

  • Traveling Salesperson Problem (TSP): Standard benchmarks with $n=100$ nodes.
  • Capacitated Vehicle Routing Problem (CVRP): Uniformly sampled instances ($n=100$) and a set of "more realistic" instances with varying structures.
  • Job Shop Scheduling Problem (JSSP): Evaluated using the L2D construction framework.

To test generalization, the authors evaluated models trained on 100 nodes on much larger instances (up to $n=200$ for TSP/CVRP and larger grids for JSSP).

Key Insights

  • Stability through Constraint: Updating the entire model (original Active Search) can be unstable and sensitive to learning rates. By freezing most of the "brain" and only tweaking a small subset of parameters, EAS is more robust and converges faster.
  • Bridging the Generalization Gap: One of the biggest hurdles in ML for CO is that models trained on small problems fail on large ones. EAS acts as a "bridge," allowing the model to adapt its learned heuristics to the specific distribution of a larger, unseen instance at test time.
  • Parallelization is Key: Because EAS only updates a few parameters, multiple instances can be solved in a single GPU batch much more efficiently than full active search, which requires separate gradient calculations for every weight in the network per instance.

Key Results

CVRP Results Table
  • Beating the Gold Standard: On the CVRP ($n=100$), EAS-Lay achieved a gap of -0.23% relative to the LKH3 heuristic, meaning it actually found better solutions than one of the most powerful handcrafted solvers in the field.
  • Massive Speedups: Compared to original Active Search, EAS variants reduced runtimes significantly (e.g., from 5 days down to a few hours for a large test set) while maintaining or improving solution quality.
  • Superior Generalization: On TSP instances twice the size of those seen during training ($n=200$), EAS-Emb reduced the optimality gap from 1.45% (standard sampling) to 0.40%.

Limitations and Future Work

  • Search Time: While "efficient," EAS is still significantly slower than greedy construction or simple sampling. It is a tool for when solution quality is more important than millisecond-level latency.
  • EAS-Tab Specificity: The tabular approach requires a deep understanding of the problem to design the mapping function, making it less "plug-and-play" than the Embedding or Layer variants.
  • Complex Constraints: The paper focuses on standard CO problems. Future work is needed to see how EAS handles industrial problems with messy, real-world constraints (e.g., time windows, heterogeneous fleets) that might not be well-represented in the training data.

Summary updated

BibTeX
@inproceedings{hottung2022efficient,
  author = {André Hottung and Yeong-Dae Kwon and Kevin Tierney},
  title = {{Efficient Active Search for Combinatorial Optimization Problems}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=nO5caZwFwYu},
}
Figure