[Paper Review] Neural Simulated Annealing
This paper introduces Neural Simulated Annealing (Neural SA), a reinforcement learning-enhanced variant of simulated annealing where the proposal distribution is learned via a lightweight, equivariant neural network. By framing SA as a Markov decision process, the method accelerates convergence and improves solution quality across diverse combinatorial optimization problems—outperforming vanilla SA and matching or exceeding off-the-shelf solvers—while generalizing to problems up to 40× larger than training instances with minimal computational overhead.
Simulated annealing (SA) is a stochastic global optimisation technique applicable to a wide range of discrete and continuous variable problems. Despite its simplicity, the development of an effective SA optimiser for a given problem hinges on a handful of carefully handpicked components; namely, neighbour proposal distribution and temperature annealing schedule. In this work, we view SA from a reinforcement learning perspective and frame the proposal distribution as a policy, which can be optimised for higher solution quality given a fixed computational budget. We demonstrate that this Neural SA with such a learnt proposal distribution, parametrised by small equivariant neural networks, outperforms SA baselines on a number of problems: Rosenbrock's function, the Knapsack problem, the Bin Packing problem, and the Travelling Salesperson problem. We also show that Neural SA scales well to large problems - generalising to significantly larger problems than the ones seen during training - while achieving comparable performance to popular off-the-shelf solvers and other machine learning methods in terms of solution quality and wall-clock time.
Motivation & Objective
- To address the challenge of manual hyperparameter tuning in simulated annealing, particularly for neighbor proposal distributions and temperature schedules.
- To improve convergence speed and solution quality in combinatorial optimization without relying on expensive end-to-end neural architectures.
- To enable generalization of learned policies to larger problem instances than seen during training.
- To preserve theoretical convergence guarantees of classical simulated annealing while enhancing performance through learnable components.
- To provide a lightweight, fast-to-train, and broadly applicable solver for real-world optimization problems.
Proposed method
- The paper formulates simulated annealing as a Markov decision process (MDP), treating the proposal distribution as a policy to be optimized via reinforcement learning.
- A small, equivariant neural network parametrizes the policy, which selects moves (e.g., 2-opt swaps in TSP) based on the current solution state.
- The policy is trained using policy optimization algorithms such as PPO or Evolution Strategies (ES), with sparse rewards based on solution quality improvement.
- The method maintains the Metropolis-Hastings acceptance criterion, ensuring theoretical convergence guarantees of standard SA are preserved.
- The framework supports conditioning on side information and enables training on small problem instances with short rollouts, enabling generalization to larger ones.
- The computational overhead per step is O(N), making it scalable and efficient even for large N.
Experimental results
Research questions
- RQ1Can a learned proposal distribution in simulated annealing outperform handcrafted ones in terms of convergence speed and solution quality across diverse optimization problems?
- RQ2How well does a neural policy trained on small problem instances generalize to significantly larger instances?
- RQ3Does integrating reinforcement learning into simulated annealing preserve its theoretical convergence guarantees while improving performance?
- RQ4How does the performance of Neural SA compare to state-of-the-art off-the-shelf solvers and other machine learning for combinatorial optimization (ML4CO) methods in terms of solution quality and wall-clock time?
- RQ5Can a lightweight, low-parameter neural network achieve strong performance without requiring large-scale data or complex architectures?
Key findings
- Neural SA outperformed vanilla simulated annealing on all benchmark problems, including Rosenbrock’s function, Knapsack, Bin Packing, and TSP, with minimal hyperparameter tuning.
- The method achieved solution quality within a few percentage points of the global minimum across all problems, rivaling or exceeding state-of-the-art SA variants that require extensive hyperparameter search.
- Neural SA generalized effectively to problems up to 40× larger than those used during training, demonstrating strong zero-shot generalization capability.
- The acceptance rate in Neural SA was higher than the conventional 0.44 target, contradicting classical expectations and suggesting improved exploration efficiency.
- Training was efficient—taking only minutes (PPO) to a few hours (ES)—due to the small number of learnable parameters (order of 100s) and effective generalization from small instances.
- PPO outperformed ES in generalization on TSP, though ES showed greater robustness under greedy inference; both methods yielded higher acceptance rates than vanilla SA.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.