UECO: A Unified Encoder for Neural Combinatorial Optimization with Iterative Edge-Node Reasoning
Abstract
Despite the promise of Neural Combinatorial Optimization (NCO), mainstream pipelines exhibit a dominant empirical coupling among decision paradigms, training objectives, problem classes, and backbone architectures. Though not formally inseparable, different solving streams often pair distinct neural architectures, making backbone-induced variation a confounding factor in generic model development and fair cross-paradigm evaluation. To address this, we propose UECO, a simple yet effective Unified Encoder for Combinatorial Optimization with a structure-aware attention mixture scheme, where a lightweight module defined upon graph-based locality is interleaved with conventional global node-focused attention blocks to dynamically evolve edge representations and inject local topological information into attention scores. Instead of fusing static edge features in a single step, UECO thereby integrates local and global messages in a progressive and problem-agnostic manner. As a shared encoder orthogonal to task-specific decoders, UECO works adaptively with Local Construction (LC), Global Prediction (GP), and Adaptive Expansion (AE) paradigms, across node- or edge-oriented problems, symmetric or asymmetric tasks, and sparse or dense graph representations, for supervised, reinforcement, or generative learning. Extensive controlled experiments show that, via encoder-only substitution, UECO yields broad and near-consistent gains in solution and generalization quality over diverse backbones and task scales on TSP, ATSP, CVRP, ACVRP, MIS, MaxClique, and MaxCut, with supplementary KP and FFSP results further supporting its applicability beyond graph-based problems. Code is available at https://github.com/Thinklab-SJTU/UECO.