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

UECO: A Unified Encoder for Neural Combinatorial Optimization with Iterative Edge-Node Reasoning

Wenzheng Pan, Shuyi Yan, Nuoyan Chen, Yiyang Qu, Jiale Ma, Junchi YanNeurIPS 2026

TL;DR

In Neural Combinatorial Optimization (using deep learning to solve NP-hard puzzles like the Traveling Salesman Problem), researchers have historically coupled specific problem types and training styles with completely different neural network backbones. This paper introduces UECO, a single, plug-and-play encoder that dynamically weaves together local graph structure and global node attention at every layer. By simply swapping UECO into existing solvers without changing anything else, we get consistent, state-of-the-art improvements across nine diverse optimization problems—and finally gain a fair, unified testbed to compare how different solving paradigms actually work.

What Problem Does This Paper Address?

Combinatorial Optimization Problems (COPs)—like routing delivery trucks, scheduling factory jobs, or finding maximum cliques in social networks—blow up combinatorially as they grow. Neural Combinatorial Optimization (NCO) trains deep networks to find near-optimal solutions in fractions of a second.

However, the NCO landscape has become fragmented by habit. Researchers typically bundle their design choices into rigid silos:

  • Local Construction (LC) (building a solution step-by-step) almost always pairs Reinforcement Learning (RL) with node-focused Transformers.
  • Global Prediction (GP) and Adaptive Expansion (AE) (predicting a global probability "heatmap" of good edges/nodes in one shot or iteratively) typically pair Supervised or Generative Learning with Graph Convolutional Networks (GCNs).
Figure 1: Position of UECO within the mainstream (graph-based) NCO landscape: a shared backbone connecting different solution streams in a comparable design and experimental space.

Because switching solving paradigms usually means switching the neural architecture too, the backbone becomes a massive confounding variable. Furthermore, each architecture has blind spots: GCNs capture local neighborhood topology well but suffer from over-smoothing and miss long-range dependencies, while standard edge-aware Transformers usually inject edge features (like distances) as a static, one-shot addition rather than letting edge representations evolve as the network thinks deeper.

Methods

The authors decouple representation learning from decision-making with UECO (Unified Encoder for Combinatorial Optimization). While standard Transformers focus on nodes and standard GCNs focus on local neighborhoods, UECO treats both nodes and edges as first-class, evolving citizens in a closed depth-wise loop.

Figure 2: Overview of the UECO architecture.

Here is what makes UECO tick:

  • Dual-Stream Input Embedders: To naturally handle asymmetric problems (where distance $A \to B \neq B \to A$), UECO maintains two parallel node streams corresponding to row and column views of an edge matrix, alongside explicit edge embeddings.
  • Iterative Local-Global Interleaving (New): Instead of a static edge bias, UECO places a lightweight, parameter-shared local graph module before every global Transformer layer. This local module updates edge embeddings (and local node states) using neighborhood topology.
  • Structure-Aware Attention Mixture (New): Inside the global Multi-Head Attention block, UECO computes standard scaled dot-product node similarity alongside a per-head structural score projected from the newly evolved edge embeddings. Rather than simply adding them together, it concatenates the two scores per edge and fuses them nonlinearly via a lightweight MLP.
  • Plug-and-Play Output Adapters: Because UECO outputs rich node and edge states, a simple $1\times1$ convolution turns its output into heatmaps for GP/AE decoders, while its dual node streams feed directly into standard autoregressive decoders for LC-RL.

Datasets

No new datasets were introduced; instead, the authors aligned their evaluation on open-source benchmarks (via ML4CO-Kit) across nine problems—a much broader suite than typical NCO papers:

  • Synthetic Graph Benchmarks: Uniform Euclidean graphs for TSP and CVRP; asymmetric t-mat instances (obeying the triangle inequality) for ATSP and ACVRP; RB and ER random graphs for Maximum Independent Set (MIS) and Maximum Clique (MCl); and Barabási–Albert (BA) graphs for Maximum Cut (MCut).
  • Out-of-Distribution & Real-World Benchmarks: Gaussian/clustered TSPs, Holme-Kim (HK) graphs, classic routing libraries (TSPLIB, CVRPLIB), boolean satisfiability (SATLIB), and social networks (TWITTER, COLLAB).
  • Non-Graph Tasks: Random uniform instances for the 0-1 Knapsack Problem (KP-50) and multi-stage scheduling for the Flexible Flow Shop Problem (FFSP-20).

Key Insights and Ideas

  • Apparent RL scalability limits were actually backbone limits: Historically, autoregressive RL solvers struggled to scale to larger graphs compared to generative heatmap methods. Simply swapping in UECO allowed an LC-RL solver to achieve a 1.632% optimality gap on TSP-500 without local search—beating generative diffusion counterparts—and extrapolate cleanly to 1,000+ nodes.
  • Progressive edge evolution beats parameter count: Ablation studies show that gains don't come from just having a bigger network; they come specifically from the closed-loop interplay where local edge updates guide global attention, and global node context feeds back into the next layer's edge evolution.
  • Works beyond graphs: Even on tasks without an intrinsic sparse graph topology (like Knapsack and Flow Shop scheduling), framing item/job relations through UECO's dual-stream mixed attention yields immediate gains.

Key Results

By substituting only the encoder into established baselines while freezing decoders, objectives, and hyperparameters, UECO achieves near-consistent improvements across the board:

  • Routing Gains: On TSP-1000 (zero-shot from TSP-100), UECO reduces the greedy LC-RL optimality gap from POMO's 18.483% down to 4.736% (and 1.773% under AE with 2-OPT). On TSPLIB, UECO drops the average optimality gap to 0.19% (beating Fast-T2T's 0.28% and DIFUSCO's 0.97%).
  • Ultra-Large Scale: Plugged into the DualOPT divide-and-conquer framework, UECO scales to TSP-100K (100,000 cities), lowering the gap to 1.55%.
  • Beating Exact Solvers in Seconds: On large node-decision tasks like MCut-[2000-3000] and MIS-[1400-1600], UECO outperforms the commercial exact solver Gurobi (given a 1-hour time limit) while taking less than 1 second and 5 seconds per instance, respectively.
  • Tractable Overhead: Profiling shows log-log scaling exponents of ~1.12 for runtime and ~1.15 for memory as model parameters grow.

Limitations and Future Work

In the main text, the authors note two practical trade-offs:

  • Quadratic Global Attention: Each global block still requires $O(|V|^2 d + |V| d^2)$ compute and $O(|E|d + |V|^2 h)$ activation memory, meaning ultra-large graphs (e.g., 100K nodes) require pairing UECO with divide-and-conquer frameworks rather than end-to-end single passes.
  • Diminishing Returns at Inference: Scaling up inference steps in generative models or parallel augmentation samples in LC yields sharp early improvements that quickly saturate while runtime grows linearly.

(Note: The authors state that dedicated discussions on broader limitations and future work are deferred to Appendix G, which is not included in the provided 11-page main text.)

Summary updated

BibTeX
@inproceedings{pan2026ueco,
  author = {Wenzheng Pan and Shuyi Yan and Nuoyan Chen and Yiyang Qu and Jiale Ma and Junchi Yan},
  title = {{UECO: A Unified Encoder for Neural Combinatorial Optimization with Iterative Edge-Node Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=M2lqt23VO7},
}
Figure