All models

DIMES

A graph neural network that scores every edge of a traveling salesman instance so tours can be sampled in parallel.

Graphs and geometry · 430 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (12 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
67.2K
Operations
430
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2022
Cited by
36 (as of 29 October 2026)
Authors
Ruizhong Qiu, Zhiqing Sun, Yiming Yang
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15654
Graph hash
246962d6b48f8b585d095dc04f24063416e0b2ee3c6ab0596e5e5141ca41112c
Skeleton hash
33591d67fbaca410bc659e3a66001fce2f15e8476afbd487b45d8fb4c5e19d17
Architecture hash
028469d546aadbbc7938056960b1232c403bcda7e71784cdb1cbc2c731d00ba6
Diagram SHA-256
eb20263d18df324ea0e51456d6d24bccc85ac2b4f2eed88870ef9363990285bc
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

DIMES (DIfferentiable MEta Solver) is a meta-learner for large-scale combinatorial optimization problems, including the traveling salesman problem (TSP) and the maximum independent set problem (MIS). The paper starts from a scaling limit: most deep reinforcement learning solvers handle only a few hundred nodes on graph problems. Where earlier methods relied on costly autoregressive decoding or iterative refinement, DIMES introduces a compact continuous space that parameterizes the distribution of candidate solutions. For TSP that means one value per edge, and a higher value makes the edge more likely to be sampled.

For TSP the backbone is an anisotropic graph neural network (GNN) with an edge gating mechanism. The paper uses a 12-layer GNN with width 32. A 3-layer MLP after the backbone produces the final continuous parameter for every edge. To keep large graphs tractable, the graph is sparsified so that each node is connected only to its k nearest neighbors.

DIMES is optimized with gradients estimated by the REINFORCE algorithm, without any supervision. The training scheme is inspired by MAML: the network is trained over a collection of problem instances and then adapts to each one. The paper reports that DIMES outperforms recent reinforcement learning methods on large TSP and MIS benchmark datasets. The authors note one limitation, that the parameterization is generated in one shot without intermediate steps, which could limit the method's reasoning power.

Key idea. DIMES replaces step-by-step decoding with a compact continuous parameterization of the solution distribution, trained with REINFORCE and a meta-learning framework for per-instance fine-tuning.

  • DIMES
  • Differentiable Meta Solver
  • combinatorial optimization
  • traveling salesman problem
  • TSP
  • maximum independent set
  • meta-learning
  • REINFORCE
  • neural TSP solver

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{qiu2022dimesdifferentiablemetasolver,
      title={DIMES: A Differentiable Meta Solver for Combinatorial Optimization Problems}, 
      author={Ruizhong Qiu and Zhiqing Sun and Yiming Yang},
      year={2022},
      eprint={2210.04123},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2210.04123}, 
}