Rethinking Efficiency in Neural Combinatorial Optimization: Batched Preference Optimization with Mamba
Organizations: National Key Laboratory of Big Data and Decision, National University of Defense Technology · School of Computer Science, South China University of Technology · School of Computing and Information Systems, Singapore Management University
Abstract
We study efficiency as a first-class objective in Neural Combinatorial Optimization (NCO) and present ECO, an efficient learning framework that combines batched preference optimization with a Mamba backbone. Instead of tightly interleaving every policy update with on-policy rollouts, ECO decouples trajectory generation from gradient updates through two stages: supervised warm-up on pre-computed solutions and iterative Direct Preference Optimization (DPO) on batched candidate sets generated by the current policy. We pair this learning pipeline with a mixed Mamba encoder-decoder that reduces memory growth on long sequences and improves hardware utilization. A local-search-guided bootstrapping strategy is further used during training to widen preference margins and stabilize iterative improvement. Importantly, local search is only used to construct stronger preference pairs during training and is never invoked at inference time. On TSP and CVRP, ECO achieves the strongest overall performance among the compared neural baselines while also delivering clear advantages in memory usage and throughput. We provide additional analysis on memory scaling, throughput, and the contribution of each design component.
Figures & tables
| Method | TSP200 | TSP500 | TSP1000 | TSP5000 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Obj. | Gap | Time | Obj. | Gap | Time | Obj. | Gap | Time | Obj. | Gap | Time | |
| Concorde | 10.72 | 0.00% | 3.0m | 16.55 | 0.00% | 37.6m | 23.12 | 0.00% | 7.9h | 50.96 | 0.00% | 18.4h |
| LKH-3 | 10.72 | 0.00% | 0.8m | 16.55 | 0.00% | 1.5m | 23.12 | 0.00% | 24m | 50.96 | 0.00% | 9.6h |
| AM | 11.03 | 2.89% | 0.3m | 21.24 | 28.34% | 1.4m | 35.18 | 52.16% | 2.2m | 96.37 | 89.11% | 5.7m |
| POMO | 10.97 | 2.33% | 0.2m | 20.85 | 25.98% | 1.0m | 32.94 | 42.47% | 1.6m | 87.79 | 72.27% | 4.8m |
| LEHD | 10.79 | 0.65% | 0.3m | 17.08 | 3.20% | 0.8m | 24.70 | 6.83% | 2.5m | 55.82 | 9.54% | 8.6m |
| Method | TSP1000 Time | CVRP500 Time | ||
|---|---|---|---|---|
| Max | Fixed-8 | Max | Fixed-8 | |
| AM | 2.2 | 2.8 | 2.0 | 2.4 |
| POMO | 1.6 | 2.0 | 1.4 | 1.8 |
| LEHD | 2.5 | 3.1 | 2.0 | 2.3 |
| CNF | 7.7 | 7.9 | 4.3 | 4.4 |
| GFlowNet-HBG | 1.3 | 1.5 | 0.7 | 0.8 |
| Method | TSP1000 | CVRP500 | CVRP1000 |
|---|---|---|---|
| CNF | |||
| GFlowNet-HBG | |||
| ECO |
| Method / order | TSP1000 Gap | CVRP500 Gap | ||
|---|---|---|---|---|
| Mean | Perm. std. | Mean | Perm. std. | |
| POMO | 42.47 | 0.02 | 24.17 | 0.03 |
| ECO, raw input order | 5.31 | 0.43 | 3.17 | 0.28 |
| ECO, -coordinate sort | 4.97 | 0.18 | 3.01 | 0.14 |
| ECO, Hilbert order | 4.82 | 0.04 | 2.83 | 0.04 |
| ECO, Morton order (ours) | 4.84 | 0.01 | 2.85 | 0.01 |
| Objective | Rel. | Gap (%) | Time |
|---|---|---|---|
| Pairwise logistic ranking | No | 5.31 | 10.0h |
| Margin hinge ranking | No | 5.58 | 9.8h |
| Online PPO | – | 4.88 | 34.5h |
| DPO (ours) | Yes | 4.84 | 10.2h |
| Variant | Backbone / Update | SFT | LS | Gap (%) / Time |
|---|---|---|---|---|
| SFT-only | Mamba / NLL | ✓ | ✗ | 18.76 / 1.1h |
| w/o SFT | Mamba / DPO | ✗ | ✓ | / – |
| w/o LS Boot. | Mamba / DPO | ✓ | ✗ | 9.55 / 9.5h |
| Transformer+DPO | Transformer / DPO | ✓ | ✓ | 5.47 / 14.6h |
| Mamba+PPO | Mamba / PPO | ✓ | ✓ | 4.88 / 34.5h |
| Transformer+PPO | Transformer / PPO | ✓ | ✗ | 9.73 / 38.7h |
| TSP1000 Gap | CVRP500 Gap | Margin (%) | |
|---|---|---|---|
| 0.0 | 9.55 | 3.94 | 0.22 |
| 0.1 | 6.21 | 3.24 | 1.05 |
| 0.3 | 4.84 | 2.85 | 1.87 |
| 0.5 | 4.92 | 2.88 | 2.19 |
| 1.0 | 5.37 | 3.06 | 3.04 |
| Training signal | TSP1000 Gap | CVRP500 Gap |
|---|---|---|
| Raw self-play DPO, no LS | 9.55 | 3.94 |
| SFT on LS-refined routes only | 7.42 | 3.37 |
| DPO + 2-opt / relocate | 5.21 | 3.05 |
| DPO + 3-opt / swap | 5.08 | 2.98 |
| DPO + combined LS (ours) | 4.84 | 2.85 |
| Pair source | Mean | Median | P10 | P90 |
|---|---|---|---|---|
| TSP1000 raw self-play | 0.22 | 0.17 | 0.03 | 0.48 |
| TSP1000 LS-refined | 1.87 | 1.42 | 0.31 | 3.76 |
| CVRP500 raw self-play | 0.18 | 0.14 | 0.02 | 0.41 |
| CVRP500 LS-refined | 1.46 | 1.13 | 0.24 | 2.91 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | Value |
|---|---|
| Embedding Dimension ( ) | 128 |
| Number of Layers ( ) | 3 |
| Mamba State Dimension ( ) | 16 |
| Mamba Conv Kernel Size ( ) | 4 |
| Mamba Expansion Factor ( ) | 2 |
| Feed-Forward Network (FFN) Ratio | 4 |
| Method | Decoding / budget | Batch policy | Model source |
|---|---|---|---|
| AM | greedy, 1 rollout | fixed-8 / max batch | retrained per scale |
| POMO | native multi-start, no 8-fold aug. | fixed-8 / max batch | retrained per scale |
| LEHD | heavy-decoder greedy | fixed-8 / max batch | official or retrained |
| CNF | official flow steps | fixed-8 / max batch | official recipe |
| GFlowNet-HBG | 32 sampled candidates | fixed-8 / max batch | official 24h budget |
| ECO | greedy, 1 rollout, no LS | fixed-8 / max batch | retrained per scale |
Neural Combinatorial Optimization
Neural combinatorial optimization uses neural networks to find high-quality solutions to discrete problems such as routing, scheduling, and graph partitioning.
See all 137 papers