Blog tests a Pointer Network trained with REINFORCE on 2D Euclidean TSP against Google OR-Tools
A personal blog post trained a classic Pointer Network with REINFORCE and compared it with Google OR-Tools (Guided Local Search, 10-second timeout) on the two-dimensional Euclidean travelling salesman problem, at sizes from N=20 to N=200. The network returned solutions in under one millisecond, but route quality dropped noticeably as problem size grew. The author attributes this to the LSTM encoder imposing an artificial ordering and recency bias on the set of coordinates, which does not match the permutation invariance of geometric graphs.
The Pointer Network was proposed by Vinyals et al. in 2015 (NeurIPS 2015, arXiv:1506.03134). Its core idea is to use an attention mechanism to "point" at elements of the input sequence in order to generate the output sequence, and it was originally used to learn approximate solutions for planar convex hulls, Delaunay triangulations and the planar travelling salesman problem (TSP). The architecture's encoder is based on an LSTM, so it processes the unordered set of coordinates in input order.
For practitioners of ML-for-optimization, this comparison shows that at the N=200 scale, the Pointer Network's millisecond-level inference speed cannot replace the solution-quality advantage of heuristic solvers with a time budget such as OR-Tools. If an LSTM encoder is retained, additional design work is needed for permutation invariance and size generalisation.