GOAL: A Generalist Combinatorial Optimization Agent Learner

Darko Drakulic, Sofia Michel, Jean-Marc Andreoli

TL;DR

GOAL (Generalist combinatorial Optimization Agent Learner) is a single neural backbone capable of solving a diverse array of combinatorial optimization problems—from vehicle routing to job scheduling—without needing a custom architecture for each. By using a novel mixed-attention mechanism and task-specific adapters, it matches or exceeds the performance of specialized state-of-the-art models and demonstrates remarkable transfer learning to entirely new problem types.

The Specialization Bottleneck in Combinatorial Optimization

Combinatorial Optimization (CO) is everywhere: scheduling factory floors, routing delivery trucks, and packing containers. While traditional solvers (like Gurobi) are powerful, they often struggle to scale to massive instances in real-time. Recently, Machine Learning (ML) has stepped in to learn "heuristics" that solve these problems faster.

However, current ML approaches suffer from a "specialization bottleneck." If you train a model to solve the Traveling Salesman Problem (TSP), it is virtually useless for Job Shop Scheduling. Even a slight variation in the problem constraints usually requires redesigning the neural network and retraining it from scratch. The authors of GOAL ask a critical question: Can we build a "foundation model" for CO that learns the common underlying structures of these disparate problems?

Methods: A Modular Architecture

GOAL breaks the specialization cycle using a modular architecture consisting of a shared backbone and lightweight adapters.

GOAL Architecture featuring task-specific adapters and a shared mixed-attention backbone.
  1. Mixed-Attention Blocks: Standard Transformers often treat nodes as the primary data point. GOAL introduces "mixed-attention," which injects edge information (like distances or precedence constraints) directly into the core of the attention mechanism. This allows the model to reason about the relationships between entities more effectively.
  2. Multi-Type Transformer: Many problems are "multipartite"—for example, scheduling involves both "jobs" and "machines." GOAL handles this by duplicating attention blocks for different type combinations (e.g., job-to-job, job-to-machine) while keeping the underlying parameters shared.
  3. Shared Codebook: To prevent different tasks from "hiding" in separate corners of the high-dimensional embedding space, GOAL uses a shared codebook. This forces the model to project diverse problem features into a common representation, encouraging the discovery of shared logic across tasks.
  4. Imitation Learning: The model is trained to mimic "expert" trajectories generated by traditional, high-quality solvers, learning to construct solutions step-by-step.

Rigorous Evaluation Across Diverse Datasets

The researchers put GOAL through a rigorous "decathlon" of CO problems:

  • Training Tasks (8): Asymmetric TSP (ATSP), Capacitated Vehicle Routing (CVRP), CVRP with Time Windows (CVRPTW), Orienteering (OP), Knapsack (KP), Minimum Vertex Cover (MVC), Unrelated Machine Scheduling (UMSP), and Job Shop Scheduling (JSSP).
  • Fine-Tuning/Transfer Tasks (8): Traveling Repairman (TRP), Prize Collecting TSP (PCTSP), Open CVRP, Split Delivery CVRP, Sequential Ordering (SOP), Maximum Coverage Location (MCLP), Maximum Independent Set (MIS), and Open Shop Scheduling (OSSP).

Key Results and Insights

Performance comparison of GOAL (single-task and multi-task) against specialized baselines across 8 combinatorial optimization problems.
  • State-of-the-Art Performance: When used as a single-task model, the GOAL architecture achieved state-of-the-art results on 7 out of 8 training tasks compared to existing neural baselines.
  • Competitive Generalist: The multi-task version of GOAL (one model for all 8 tasks) was only slightly inferior to its specialized counterparts, proving that a "jack-of-all-trades" can indeed be a master of most. Surprisingly, training on multiple problems doesn't just make the model "broader"—it can make it better by learning a generalized "language" of optimization.
  • Efficient Transfer: By keeping the backbone frozen or minimally tuned and only swapping out small input/output layers, GOAL can adapt to a brand-new problem (like the Traveling Repairman Problem) in just a few minutes of fine-tuning. In unsupervised fine-tuning experiments, GOAL reached high-quality solutions on new problems significantly faster than models trained from scratch.
  • Zero-Shot Generalization: GOAL shows an impressive ability to solve problems much larger than those it saw during training (e.g., training on 100 nodes and testing on 1,000), particularly in routing tasks where the mixed-attention mechanism shines.

Limitations and Future Work

  • The Quadratic Wall: Like all standard Transformers, GOAL’s computational cost grows quadratically ($N^2$) with the number of nodes. This limits the model to problems with roughly 1,000 nodes or fewer on current hardware.
  • Feasibility Constraints: GOAL is a "constructive" heuristic—it builds a solution step-by-step. This works well when it's easy to check if a move is legal, but it might struggle with problems where maintaining feasibility is mathematically complex.
  • Scaling Up: The authors suggest that exploring more efficient attention mechanisms (like linear attention) is the next logical step to bring GOAL to industrial-scale problems with tens of thousands of variables.

Summary updated

BibTeX
@inproceedings{drakulic2025goal,
  author = {Darko Drakulic and Sofia Michel and Jean-Marc Andreoli},
  title = {{GOAL: A Generalist Combinatorial Optimization Agent Learner}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=z2z9suDRjw},
}
Figure