NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FORGE: Foundational Optimization Representations from Graph Embeddings

Zohair Shafi, Serdar Kadioglu

TL;DR

FORGE introduces a foundational, unsupervised framework that learns structural representations of Mixed-Integer Programming (MIP) instances without relying on expensive optimization solvers for labeled data. By utilizing a vector-quantized graph autoencoder, it creates a discrete "vocabulary" of optimization structures that can be fine-tuned for radically different downstream tasks. When integrated with commercial solvers like Gurobi, FORGE delivers up to an 85% improvement in primal gaps and significant solving speedups.

What Problem Does This Paper Address?

Machine learning (ML) has shown immense promise in accelerating Combinatorial Optimization (CO) solvers. However, existing ML-guided approaches suffer from two major bottlenecks:

  1. Data Inefficiency: Collecting training data typically requires solving thousands of complex instances to optimality, which is computationally prohibitive. Ironically, it relies on the very solvers it aims to accelerate.
  2. Poor Generalization: Most models are specialized—trained for one specific problem type (e.g., Vehicle Routing) or one specific task (e.g., predicting variable branches), failing completely when shifted to new domains or problem sizes.

Furthermore, standard Graph Neural Networks (GNNs) used to encode optimization problems suffer from a "locality bias" and over-smoothing, making it difficult to capture the global structure of an optimization instance. FORGE addresses these limitations by establishing a general-purpose, unsupervised foundational model for MIP representations.

Methods

FORGE models MIP instances as bipartite graphs where nodes represent variables and constraints, and edges represent coefficients.

The FORGE architecture overview, showing the pipeline from bipartite graph to vector quantization and unsupervised reconstruction.

The core architecture consists of:

  • Bipartite GNN Encoder: Uses GraphSAGE layers to extract local variable and constraint features.
  • Vector Quantized (VQ) Codebook: Inspired by tokenization in NLP and vector quantization in computer vision, FORGE passes GNN embeddings through a quantizer with $k$ discrete codes. This discrete "vocabulary" acts as a regularizer that preserves global structure and prevents GNN over-smoothing.
  • Graph Decoders: Linear decoders reconstruct the original node features and edge adjacencies in a completely unsupervised manner.

To generate a global instance-level embedding, FORGE computes a histogram of the discrete codes assigned to all nodes within that instance.

Generating global MIP embeddings based on the frequency distribution of discrete codebook vocabulary assignments.

For downstream tasks, this single pre-trained model is frozen or fine-tuned by appending lightweight, task-specific prediction heads.

Datasets

  • Pre-training: A corpus of 2,850 mixed instances combining 1,800 instances from MIPLIB and 1,050 instances from Distributional MIPLIB (D-MIPLIB).
  • Evaluation: Tested on 1,000 unseen instances from D-MIPLIB across 21 domain-difficulty pairs (including Set Cover, Combinatorial Auction, and Maximum Independent Set), as well as the entirely unseen strIPlib benchmark.
  • Cross-Domain Transfer: Evaluated on G4SATBench to test how well optimization embeddings transfer to Boolean Satisfiability (SAT) problems.

Key Insights and Ideas

  • An NLP Vocabulary for Math: Treating discrete structural patterns as "words" allows the model to map complex optimization landscapes into a shared latent space.
  • Emergent Vector Arithmetic: Remarkably, the latent space exhibits semantic properties similar to word embeddings (like King - Man + Woman = Queen). For example, the authors demonstrate that subtracting the structural direction of "covering" problems and adding "packing" properties shifts a Vertex Cover instance cleanly toward an Independent Set instance in the latent space.
  • Cheap Downstream Labels: Because the base model understands the underlying graph structures, fine-tuning requires very little data labeled via low-cost strategies (e.g., running a solver for only a few minutes rather than to optimality).

Key Results

Unsupervised Clustering

FORGE embeddings clustered unseen instances by problem type and difficulty with a Normalized Mutual Information (NMI) score of 0.953, significantly outperforming standard GNN readouts (0.726).

Clustering visualization comparing standard GNN readouts, label propagation, and FORGE embeddings.

Downstream Performance

The authors evaluated a single pre-trained FORGE model on two distinct tasks:

  1. Predicting Integrality Gaps for Pseudo-Cut Generation: FORGE outperformed state-of-the-art supervised methods. Injecting its predicted pseudo-cuts into Gurobi yielded up to an 85% gain in the primal gap.
  2. Search Guidance (Variable Hints): Providing FORGE variable hints to Gurobi led to up to 48% better primal gaps and 35% speedups in finding optimal solutions. It also successfully augmented other ML frameworks (like PS-Gurobi), reducing their primal gaps by over 40-50%.

Limitations and Future Work

  • Scale: At 3.25 million parameters, FORGE is tiny compared to foundational models in text or vision. Scaling up the dataset and parameter count remains an open direction.
  • Static Integration: Currently, FORGE interacts with solvers in a "one-shot" manner (at the root node). Tighter, dynamic integration throughout the branch-and-bound tree could yield even higher performance.
  • Vocabulary Interpretability: The exact mathematical semantics of what each discrete code in the codebook represents are still largely unexplored.

Summary updated

BibTeX
@article{shafi2026forge,
  author = {Zohair Shafi and Serdar Kadioglu},
  title = {{FORGE: Foundational Optimization Representations from Graph Embeddings}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}
Figure