frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

12•jivaprime•8h ago
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!

Comments

mkl•1h ago
TSP = Travelling Salesman Problem (https://en.wikipedia.org/wiki/Travelling_salesman_problem)

PPO = Proximal Policy Optimisation, a reinforcement learning algorithm (https://en.wikipedia.org/wiki/Proximal_Policy_Optimization)

n8henrie•38m ago
Thanks. Was wondering if this was about my federal thrift savings plan.

Google is dead. Where do we go now?

https://www.circusscientist.com/2025/12/29/google-is-dead-where-do-we-go-now/
227•tomjuggler•1h ago•171 comments

Static Allocation with Zig

https://nickmonad.blog/2025/static-allocation-with-zig-kv/
138•todsacerdoti•6h ago•74 comments

Left Behind: Futurist Fetishists, Prepping and the Abandonment of Earth (2019)

https://www.boundary2.org/2019/08/sarah-t-roberts-and-mel-hogan-left-behind-futurist-fetishists-p...
20•naves•2h ago•8 comments

Flame Graphs vs. Tree Maps vs. Sunburst (2017)

https://www.brendangregg.com/blog/2017-02-06/flamegraphs-vs-treemaps-vs-sunburst.html
62•gudzpoz•2d ago•12 comments

The Future of Software Development Is Software Developers

https://codemanship.wordpress.com/2025/11/25/the-future-of-software-development-is-software-devel...
57•cdrnsf•2h ago•27 comments

Which Humans?

https://osf.io/preprints/psyarxiv/5b26t_v1
20•surprisetalk•2h ago•9 comments

List of domains censored by German ISPs

https://cuiiliste.de/domains
199•elcapitan•3h ago•77 comments

All Delisted Steam Games

https://delistedgames.com/all-delisted-steam-games/
116•Bondi_Blue•2h ago•38 comments

Show HN: Aroma: Every TCP Proxy Is Detectable with RTT Fingerprinting

https://github.com/Sakura-sx/Aroma
37•Sakura-sx•4d ago•23 comments

High-performance C++ hash table using grouped SIMD metadata scanning

https://github.com/Cranot/grouped-simd-hashtable
31•rurban•5d ago•11 comments

USPS Announces Changes to the Postmark Date System

https://nstp.org/article/usps-announces-changes-postmark-date-system
3•rbanffy•21m ago•0 comments

GOG is getting acquired by its original co-founder

https://www.gog.com/blog/gog-is-getting-acquired-by-its-original-co-founder-what-it-means-for-you/
453•haunter•5h ago•258 comments

Libgodc: Write Go Programs for Sega Dreamcast

https://github.com/drpaneas/libgodc
175•drpaneas•8h ago•41 comments

Kidnapped by Deutsche Bahn

https://www.theocharis.dev/blog/kidnapped-by-deutsche-bahn/
847•JeremyTheo•9h ago•790 comments

Static Allocation for Compilers

https://matklad.github.io/2025/12/23/static-allocation-compilers.html
13•enz•5d ago•4 comments

Linux DAW: Help Linux musicians to quickly and easily find the tools they need

https://linuxdaw.org/
145•prmoustache•9h ago•74 comments

The production bug that made me care about undefined behavior

https://gaultier.github.io/blog/the_production_bug_that_made_me_care_about_undefined_behavior.html
69•birdculture•3h ago•45 comments

Show HN: Evidex – AI Clinical Search (RAG over PubMed/OpenAlex and SOAP Notes)

https://www.getevidex.com
23•amber_raza•4h ago•10 comments

Nvidia takes $5B stake in Intel under September agreement

https://www.reuters.com/legal/transactional/nvidia-takes-5-billion-stake-intel-under-september-ag...
150•taubek•4h ago•57 comments

Show HN: Z80-μLM, a 'Conversational AI' That Fits in 40KB

https://github.com/HarryR/z80ai
457•quesomaster9000•16h ago•101 comments

You can't design software you don't work on

https://www.seangoedecke.com/you-cant-design-software-you-dont-work-on/
205•saikatsg•14h ago•71 comments

Meta's ads tools started switching out top-performing ads with AI-generated ones

https://www.businessinsider.com/meta-ai-generating-bizarre-ads-advantage-plus-2025-10
92•zdw•2h ago•56 comments

Why is calling my asm function from Rust slower than calling it from C?

https://ohadravid.github.io/posts/2025-12-rav1d-faster-asm/
86•gavide•2d ago•27 comments

Karpathy on Programming: "I've never felt this much behind"

https://twitter.com/karpathy/status/2004607146781278521
192•rishabhaiover•3d ago•137 comments

What an unprocessed photo looks like

https://maurycyz.com/misc/raw_photo/
2264•zdw•23h ago•365 comments

AI Is Forcing Us to Write Good Code

https://bits.logic.inc/p/ai-is-forcing-us-to-write-good-code
16•sgk284•2h ago•5 comments

Binance's Trust Wallet extension hacked; users lose $7M

https://www.web3isgoinggreat.com/?id=trust-wallet-hack
40•ilamont•2h ago•4 comments

Feynman's Hughes Lectures: 950 pages of notes

https://thehugheslectures.info/the-lectures/
154•gnubison•11h ago•35 comments

Show HN: See what readers who loved your favorite book/author also loved to read

https://shepherd.com/bboy/2025
103•bwb•10h ago•24 comments

Show HN: Vibe coding a bookshelf with Claude Code

https://balajmarius.com/writings/vibe-coding-a-bookshelf-with-claude-code/
245•balajmarius•8h ago•184 comments