MARCO: A Memory-Augmented Reinforcement Framework for Combinatorial Optimization

Andoni I. Garmendia, Quentin Cappart, Josu Ceberio

Abstract

Neural Combinatorial Optimization (NCO) has emerged as a promising approach for solving complex discrete problems. However, existing NCO methods often struggle with exploration efficiency, frequently becoming trapped in local optima or redundantly searching the same state space. We propose MARCO, a Memory-Augmented Reinforcement framework that equips NCO models with a shared memory module. This module stores visited solutions and actions, allowing the model to retrieve historical context via $k$-Nearest Neighbors ($k$-NN) search. Our framework enables collaborative exploration across multiple search threads, significantly improving performance on classic NP-hard problems. Experimental results on Maximum Cut, Maximum Independent Set, and the Traveling Salesman Problem show that MARCO outperforms industrial-standard solvers and state-of-the-art neural methods, demonstrating strong generalization to large-scale instances.

Introduction

Combinatorial Optimization (CO)—finding the best solution from a massive set of discrete choices—underpins everything from chip design to logistics. While deep learning (Neural CO) has emerged as a fast alternative to traditional solvers, it faces a major hurdle: exploration efficiency. Current NCO methods generally fall into two camps: constructive methods, which build solutions step-by-step but are prone to early errors, and improvement methods, which tweak solutions iteratively but often get trapped in local optima. MARCO addresses these issues by introducing a "memory" that allows models to learn from their own search history in real-time.

The MARCO Framework

The core of MARCO is a dynamic memory module integrated into a Graph Transformer architecture. Unlike traditional "forgetful" models, MARCO maintains a record of explored states and the actions taken.

The MARCO framework utilizes a shared memory module and k-NN search to inform the model's decision-making process during graph-based optimization.

As shown in the framework overview, the process begins with initializing solutions for a given graph instance. During the search, the model queries the shared memory using a $k$-NN search to find similar past solutions based on an inner product similarity metric. This retrieved historical context is then used by the policy model ($π$) to determine the next action. Crucially, MARCO supports parallel search threads that share this memory, enabling collaborative exploration where insights from one thread immediately benefit others.

Experimental Evaluation

We evaluated MARCO on three classic NP-hard graph problems: Maximum Cut (MC), Maximum Independent Set (MIS), and the Traveling Salesman Problem (TSP). Training was conducted on smaller synthetic graphs (e.g., 100 nodes), while evaluation focused on larger, more challenging benchmarks to test generalization.

Performance comparison of MARCO against traditional solvers and other neural methods on Maximum Cut benchmarks.

On the Maximum Cut problem, MARCO demonstrated superior performance compared to the industrial-standard Gurobi solver and previous leading neural methods like ECO-DQN. As seen in the results table, MARCO consistently achieved higher objective values across various graph types (ER and RB benchmarks) within comparable or shorter time limits. Notably, MARCO showed exceptional zero-shot generalization, outperforming competitors on graphs significantly larger (up to 1200 nodes) than those used during training.

Conclusion and Future Work

MARCO represents a significant step forward in making NCO models more efficient and collaborative. By leveraging search history as a direct input to the decision-making process, it overcomes the limitations of memoryless exploration. Future research will explore more sophisticated memory management techniques, such as attention-based retrieval and memory pruning, to handle even larger problem scales and longer search trajectories.

Summary updated

BibTeX
@inproceedings{garmendia2024marco,
  author = {Andoni I. Garmendia and Quentin Cappart and Josu Ceberio},
  title = {{MARCO: A Memory-Augmented Reinforcement Framework for Combinatorial Optimization}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
}
Figure