Pe

Per-instance TSP Solver with No Pre-training (1.66% gap on d1291)

Hacker News

Per-instance TSP Solver with No Pre-training (1.66% gap on d1291)

OP here. Most Deep Learning approaches for TSP rely on pre-training with large-scale datasets. I wanted to see if a solver could learn "on the fly" for a specific instance without any priors from other problems. I built a solver using PPO that learns from scratch per instance. It achieved a 1.66% gap on TSPLIB d1291 in about 5.6 hours on a single A100. The Core Idea: My hypothesis was that while optimal solutions are mostly composed of 'minimum edges' (nearest neighbors), the actual difficulty comes from a small number of 'exception edges' outside of that local scope. Instead of pre-training, I designed an inductive bias based on the topological/geometric structure of these exception edges. The agent receives guides on which edges are likely promising based on micro/macro structures, and PPO fills in the gaps through trial and error. It is interesting to see RL reach this level without a dataset. I have open-sourced the code and a Colab notebook for anyone who wants to verify the results or tinker with the 'exception edge' hypothesis. Code & Colab: https://github.com/jivaprime/TSP_exception-edge Happy to answer any questions about the geometric priors or the PPO implementation!

Share card

Actual performance

21points
5comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: mac, agent, single · Missing: agents, macos, cursor
55%55% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
53%53% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRFits verified-revenue profile · Missing: mobile apps, ios, personal
52%52% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
33%33% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Indie HackersIH features products with proven revenue · Missing: supports, reddit linkedin, podcasting
27%27% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: training · Missing: arr, mrr, revenue
23%23% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Di
Distributed SAT solver in Elixir64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Distributed SAT solver in Elixir

Hacker News7
A
A solver for L-system grammars28%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A solver for L-system grammars

Hacker News2
Ge
Generic Bisection Solver23%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Generic Bisection Solver

Hacker News1
An
Anagram Solver40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Anagram Solver

Hacker News1
SC
SCIP MIP solver bindings for Go, ported from russcip31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

SCIP MIP solver bindings for Go, ported from russcip

Hacker News11
Th
The XKCD Knapsack Solver28%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The XKCD Knapsack Solver

Hacker News3
Ju
Jumble Solver28%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Jumble Solver

Hacker News1
20
2048 Solver33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

2048 Solver

Hacker News3
St
Stormio Pre-announcement33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Stormio Pre-announcement

Hacker News1
Ne
New LLM Pre-Training and Post-Training Paradigms29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

New LLM Pre-Training and Post-Training Paradigms

Hacker News2