Unsupervised Learning for the Elementary Shortest Path Problem

Jingyi Chen, Xinyuan Zhang, Xinwu Qian
8/3/2025
cs.LG

No confident code implementation found for this paper.

Abstract

The Elementary Shortest-Path Problem(ESPP) seeks a minimum cost path from s to t that visits each vertex at most once. The presence of negative-cost cycles renders the problem NP-hard. We present a probabilistic method for finding near-optimal ESPP, enabled by an unsupervised graph neural network that jointly learns node value estimates and edge-selection probabilities via a surrogate loss function. The loss provides a high probability certificate of finding near-optimal ESPP solutions by simultaneously reducing negative-cost cycles and embedding the desired algorithmic alignment. At inference time, a decoding algorithm transforms the learned edge probabilities into an elementary path. Experiments on graphs of up to 100 nodes show that the proposed method surpasses both unsupervised baselines and classical heuristics, while exhibiting high performance in cross-size and cross-topology generalization on unseen synthetic graphs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2025unsupervised,
  title  = {Unsupervised Learning for the Elementary Shortest Path Problem},
  author = {Jingyi Chen and Xinyuan Zhang and Xinwu Qian},
  year   = {2025},
  eprint = {2508.01557},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.01557v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.01557.svg)](https://codeofpaper.com/paper/2508.01557)

Discussion