A 43-year-old idea built on deliberate failure keeps outpacing modern AI.
In June 2021, Google announced what looked like a turning point. A team at the company had trained a reinforcement learning system to design the floorplans of computer chips, the intricate jigsaw of components that determines how fast a processor runs and how much power it consumes. The system, published in Nature, could produce layouts comparable to or better than those of human engineers, in a fraction of the time. If AI could design the chips that run AI, the future seemed to be writing itself.
Two years later, a researcher named Igor Markov, then at Synopsys and one of the most respected veterans in chip-design algorithms, decided to repeat the experiment with public benchmarks. On most of the test cases, Google's deep learning system was beaten by an algorithm published in 1983, one that any computer science undergraduate can implement in an afternoon. Worse, the older method used less computing power and finished sooner.
The algorithm was called simulated annealing. Writing in Communications of the ACM in late 2024, Markov was blunt. Google's reinforcement learning system, he concluded, lags behind human chip designers, behind commercial software, and behind a well-known algorithm from the early Reagan administration. One subsection of his article carries the deliberately deflating heading "A middling simulated annealing baseline." Middling, that is, and still ahead.
The episode reveals something many computer scientists have suspected for years but rarely say in public. Beneath the flash of large language models, the glamour of policy gradients, and the relentless scaling of neural networks, sits an older idea that simply refuses to be retired. The idea is so simple it almost sounds wrong. To find good structure in a complicated world, do not always push toward what looks best. Sometimes, on purpose, do worse. Shake the system gently. Then slowly turn the temperature down.
To understand why that works, it helps to picture a hiker dropped at random onto a vast, foggy mountain range and told to find the lowest point in the terrain. The obvious strategy is to feel which way is downhill and walk that way. This is roughly what gradient descent, the workhorse behind nearly every neural network ever trained, does. The trouble is that landscapes are rarely simple bowls. They have ridges, plateaus, and false valleys. A hiker who only ever walks downhill will reach the bottom of whichever depression they stumble into first, even if a much deeper canyon lies just over the next rise. In the language of computer science, the hiker gets stuck in a local optimum.
Simulated annealing, introduced in 1983 by Scott Kirkpatrick and two colleagues at IBM in a paper in Science, gives the hiker a strange new rule. At each step, propose a small random move. If the new spot is lower, take it. If it is higher, flip a weighted coin. The coin's bias depends on a number called the temperature. Early in the search, the temperature is high and the hiker happily climbs uphill almost as often as they descend. As the search continues, the temperature drops. The hiker becomes pickier, accepts fewer bad moves, and finally, in the cold limit, walks strictly downhill.
The reward for this counterintuitive willingness to climb is enormous. The hiker can escape shallow basins and explore distant valleys before settling. Done carefully, with a slow enough cooling schedule, the algorithm comes with a theoretical guarantee: given infinite time, it will find the global optimum. In practice, infinite time is unavailable. But across an astonishing range of problems, simulated annealing comes closer to the true best answer than methods that work much faster and look much smarter. Controlled randomness, slowly reduced, turns out to be one of the more powerful tools in computing for finding good structure in spaces that are too rugged for greedy search.
The most visible place where simulated annealing re-enters modern AI is in the design and training of neural networks themselves.
Building a deep network from scratch involves thousands of structural choices. How many layers? What kinds of operations? Where should the shortcut connections go that let information skip ahead? The choices are combinatorial and the cost of evaluating any single architecture, training it to see how well it performs, is enormous. This problem, known as neural architecture search, became fashionable in the late 2010s when automated search proved it could produce networks rivaling those designed by human experts. The original methods used reinforcement learning, which required thousands of GPU-days. Researchers quickly began asking whether something less profligate would work.
At the 2021 NeurIPS workshop on optimization for machine learning, a team led by Shentong Mo proposed a method called SA-NAS that inserts simulated annealing into the search loop. Rather than training a separate reinforcement learning agent to propose architectures, SA-NAS perturbs candidate designs directly, accepting worse ones with a probability that cools over time. The team reported predictive performance comparable to or better than gradient-only methods at a fraction of the search cost. Another system, called FOX-NAS, combined annealing with a small predictor network to find architectures for phones and other edge devices under tight latency budgets, beating established baselines where compute is rationed most severely.
The same principle reaches deep into large language model training. Cosine annealing learning-rate schedules, now standard in nearly every large transformer training run, reduce the step size of gradient updates according to a smooth curve that is conceptually identical to a cooling schedule. The design intuition is unchanged: start with large updates that explore widely, then progressively reduce them to settle into a good optimum.
More recently, researchers have pushed the idea further into how language models generate responses. In October 2025, a team led by Chenghao Yang at the University of Chicago published a paper titled "Let it Calm," which tackled a stubborn problem in reinforcement learning for LLMs. When training a model to reason better through generated examples, the sampling temperature during generation turns out to matter enormously. A fixed temperature either keeps the model too wild throughout, or too conservative to explore meaningfully. The team's solution was to anneal the temperature inside a single response: the first few tokens, which set the direction of the entire answer, are sampled hot; later tokens, which fill in the details, are sampled cold. The result is a kind of within-response simulated annealing, producing consistent improvements across model sizes from a few hundred million parameters to several billion.
A separate study, accepted at the International Conference on Software Engineering for 2026, used simulated annealing to find and remove the specific attention heads inside large language models that drive social bias. With even a modest-sized model, the number of possible subsets to prune is astronomical; exhaustive search is hopeless. Researchers at Penn State trained a small surrogate network to cheaply approximate what the full model would do if given heads were removed, then ran simulated annealing over that surrogate. The results included up to a forty percent reduction in gender bias and up to sixty-five percent reductions in other social biases, with minimal damage to overall task performance. No gradient, no reinforcement signal, just temperature and time.
The most ambitious frontier for annealing-style search is the area known as neurosymbolic AI. The goal of this field is to fuse the pattern-recognition strengths of neural networks with the rigor of symbolic reasoning, the kind of step-by-step rule-following that humans associate with mathematics and logic. The hope is that combining the two will produce systems that can reason reliably, explain their conclusions, and generalize beyond their training data in ways that pure neural networks cannot.
The search problem at the center of it is brutal. Programs and logical rules are discrete objects. You cannot smoothly interpolate between two programs the way you can average two images. The space of possible symbolic structures is combinatorial and packed with local optima where a few rules fit the data well but the overall structure is wrong. This is exactly the kind of landscape simulated annealing was designed for.
A striking recent example is a system called LaSR, presented at NeurIPS in late 2024 by a team spanning the University of Texas at Austin, MIT, and Cambridge. LaSR tackles symbolic regression, the problem of finding a compact mathematical formula that accurately describes a dataset. Underneath, it builds on a tool called PySR, whose search engine uses simulated annealing to maintain diversity among candidate equations while avoiding premature convergence. Layered on top is a large language model that proposes high-level abstractions and templates to bias the search toward promising regions. On a benchmark of physics equations originally compiled by Richard Feynman, LaSR substantially outperformed earlier symbolic regression methods, including those based on deep learning and on evolutionary algorithms alone. In one demonstration, the same machinery, fed data from language model training runs, produced a new scaling law for large language models from scratch.
What the architecture reveals about search is worth noting. The neural network supplies intuition and high-level proposals. The symbolic engine checks them for formal correctness. The annealing schedule, sitting in the middle, manages the tradeoff between exploring new program structures and refining the ones already in hand. Remove the annealing and the search either narrows too early or never converges. Remove the neural component and the search is blind to high-level structure. The two need each other, with temperature as the mediator.
The same logic holds for knowledge graphs, the structured webs of facts that underlie much of modern search and recommendation. A system called PYKE, developed at the University of Paderborn, used annealing-style updates to embed knowledge graphs containing millions of facts in close to linear time, beating six state-of-the-art neural baselines on predicting how entities in the graph relate to one another. In inductive logic programming, an older symbolic AI technique for learning Horn-clause rules from examples, researchers have found that replacing greedy clause refinement with a simulated annealing search consistently unlocks better rules, because the greedy method keeps finding shallow optima where a few rules cover most of the data but no further improvement is structurally possible.
Step away from artificial intelligence entirely and the picture becomes even clearer. In ordinary software engineering, simulated annealing is everywhere, often invisible, and often decisive.
Modern compilers expose hundreds of optimization flags. The interactions among those flags are too tangled for any human to set well by hand, and the best combination varies across programs. A compiler tuner called CompTuner, published in a leading software engineering journal in 2024 by a team at Peking University, uses a learned performance predictor combined with simulated annealing to navigate the flag space systematically. It consistently produced faster programs than the default high-optimization settings, beating six rival autotuning systems across seven programs compiled with GCC and six compiled with LLVM, the two most widely used compiler frameworks in the world.
In computer security, the story is more dramatic. In 2017, four researchers at the National University of Singapore introduced a tool called AFLGo at the flagship annual conference on computer security. AFLGo is a directed greybox fuzzer, a kind of automated bug hunter that randomly mutates program inputs in search of crashes. The innovation was to use an exponential annealing schedule, lifted directly from Kirkpatrick's 1983 paper, to bias mutation effort toward inputs whose execution paths come close to suspicious regions of code. Early in a run, when the temperature is high, distant code gets explored freely. As cooling proceeds, the fuzzer commits more and more effort to the targeted region.
The results were striking. AFLGo found thirty-nine bugs in heavily tested open source projects, seventeen of which received official security vulnerability identifiers. The Heartbleed bug, one of the most damaging security flaws of the past decade, was rediscovered in an average of nineteen minutes and nineteen seconds across thirty independent runs. A rival directed tool, given a full day of compute, never found it. The cooling schedule was the engine. Without it, the fuzzer would waste effort exploring distant code indefinitely. With it, the search focuses exactly as much, and as late, as the problem demands.
The same principle runs through cloud computing, chip layout, and logistics. Cloud workload schedulers use simulated annealing to assign computational jobs to virtual machines across heterogeneous clusters, reducing both latency and cost. Chip-floorplanning tools, including the one that outperformed Google's reinforcement learning system in Markov's benchmark, rely on annealing to determine where blocks of logic are placed on silicon. Network routing, vehicle scheduling, and university timetabling are all problems where, at the cutting edge, annealing or its close relatives consistently hold their own against heavier methods.
A rugged optimization landscape: the kind of terrain where greedy descent gets permanently stuck in shallow local minima. Simulated annealing's willingness to climb uphill, controlled by a temperature that falls over time, is what allows it to explore broadly before committing. This property, simple in description and powerful in practice, is what the most advanced AI systems keep rediscovering.
Look across all these cases and one pattern keeps appearing. The systems that escape local optima are the ones that deliberately inject noise they can later reduce.
Stochastic gradient descent, the foundation of nearly all deep learning, works better than its fully deterministic counterpart partly because the noise from processing small batches of data nudges the optimizer out of sharp, fragile minima and into broader, more generalizable ones. Dropout, a technique that randomly disables neurons during training, regularizes models in a way no purely deterministic method matches. Mixture-of-experts architectures, used in many of today's largest language models, route information probabilistically across specialized subnetworks, keeping the routing behavior exploratory before it is refined. Diffusion models, the technology behind most modern image generation, are trained explicitly to reverse a noising process whose schedule looks like annealing run backward: the model learns to remove noise gradually, committing to structure only as the temperature falls.
The kinship extends further. In statistical physics, a family of methods called parallel tempering runs multiple copies of a system at different temperatures simultaneously and lets them exchange states. The hot copies explore freely; the cold copies refine. A 2020 paper at the International Conference on Machine Learning by Wei Deng and colleagues introduced replica exchange stochastic gradient MCMC for non-convex deep learning, allowing multiple neural network training runs at different noise levels to swap weights when a lower-temperature run appears stuck. A 2025 ICLR workshop paper extended the idea, using normalizing flows and diffusion models themselves as the swap proposals between replicas. The temperatures travel. The principle does not.
For a practicing AI designer, this implies a concrete heuristic. Whenever a problem looks combinatorial and the objective landscape looks rugged, the right question is not which neural network to use. It is what the analog of temperature is in your system, and how it should decay. In reinforcement learning, that analog is the entropy bonus that keeps a policy from committing too early. In Monte Carlo tree search, the backbone of AlphaGo and its successors, it is the exploration coefficient. In language model generation, it is the sampling temperature itself, and increasingly, the precise schedule by which that temperature decreases within a single generated response.
Designing the schedule well, with adaptive feedback, can matter more than the choice of optimizer, the depth of the network, or the size of the training set. This is the deep lesson the Google chip-design controversy made uncomfortably public. The reinforcement learning system was not asked the wrong question. It was asked the right question without the right scaffolding. Without an explicit mechanism to escape local optima, a billion-parameter policy network can settle into a mediocre basin and stay there with great confidence. Simulated annealing's modesty, its insistence that you should sometimes do worse on purpose, is not a placeholder for something smarter. It is itself the smart thing.
The most exotic descendant of Kirkpatrick's 1983 paper sits in physics laboratories where quantum annealing replaces thermal randomness with quantum tunneling, letting candidate solutions pass through barriers rather than climb over them. Companies like D-Wave Systems sell hardware that implements this idea in superconducting circuits cooled to near absolute zero. Real-world advantages over classical simulated annealing have been hard to confirm, and benchmarks from the Quantum CLEF 2025 evaluation found quantum annealing competitive but not decisively superior, almost always paired with a classical annealing component for the parts of the problem the quantum hardware handles less well. In January 2026, D-Wave announced that its hybrid solver now allows machine learning surrogate models to be embedded directly inside optimization workflows, a design that mirrors exactly what researchers have been doing with classical annealing for decades.
That coexistence says something worth sitting with. Simulated annealing was never really about metals, or even about temperature in the literal sense. It was about a careful, principled answer to a question every optimization problem asks: when should you let things get worse in order to find something better? Forty-three years after Kirkpatrick, Gelatt, and Vecchi posed that question in a nine-page paper at IBM, it sits at the heart of every system that learns, plans, designs, or routes. From the chip floorplans inside the GPUs training the next generation of language models, to the language models themselves, to the security tools defending the software that runs the world, the same idea keeps resurfacing. The algorithm that posed the question first is still, in many of the places that matter, the one to beat.
Key references: Kirkpatrick, S., Gelatt, C.D. and Vecchi, M.P., "Optimization by Simulated Annealing," Science 220, 1983. Markov, I., "Reevaluating Google's Reinforcement Learning for IC Macro Placement," Communications of the ACM, 2024. Mo, S. et al., "SA-NAS: Simulated Annealing for Neural Architecture Search," NeurIPS OPT Workshop, 2021. Yang, C. et al., "Let it Calm: Exploratory Annealed Decoding for Verifiable Reinforcement Learning," arXiv, October 2025. Dasu, V.A. et al., "Attention Pruning: Automated Fairness Repair of Language Models via Surrogate Simulated Annealing," ICSE 2026. Grayeli, A. et al., "Symbolic Regression with a Learned Concept Library (LaSR)," NeurIPS 2024. Zhu, M. et al., "Compiler Autotuning through Multiple-phase Learning (CompTuner)," ACM TOSEM, 2024. Böhme, M. et al., "Directed Greybox Fuzzing (AFLGo)," ACM CCS 2017. Deng, W. et al., "Non-convex Learning via Replica Exchange Stochastic Gradient MCMC," ICML 2020.
Daice Labs Inc.
Brookline, MA, USA
Roll the "daice"–exploration & programmable adaptation.