The most powerful AI systems don't aim better. They miss more.
In 2012, two researchers at a Montreal machine learning lab published a paper with a quiet, almost apologetic finding. For years, anyone training a neural network had done the same thing when picking the knobs that control it. They laid out a grid. Learning rates down one axis, layer sizes down another, regularization strength along a third, and then they trained the network at every intersection. It was the orderly, scientific way. It was also, the paper showed, worse than picking points completely at random.
The reason was geometric. In a configuration with thirty or forty knobs, only a handful of them really matter for a given problem. A grid spends most of its budget varying axes that have almost no effect on the final accuracy. Random sampling, by contrast, varies every axis on every trial. It looks messier on paper, but it covers more meaningful territory. The Montreal team showed that random search finds models that are as good or better within a small fraction of the computation time, even in spaces with thirty-two dimensions. Within a few years, the orderly grid was retired from serious practice.
It was a small result, buried in the Journal of Machine Learning Research. But it turned out to be the opening line of a much larger story, one that the next decade of computing would keep retelling. From the program synthesis labs at MIT to the chaos engineers at Netflix to the theorem-proving teams at OpenAI and DeepMind, researchers kept arriving at the same conclusion by different routes. When a search space is vast and rugged and full of dead ends, the rational move is not to aim more carefully. It is to vary more broadly, then let something else decide what survives.
This is the principle that has quietly powered a remarkable amount of modern artificial intelligence. It does not have a single name in the literature. Different communities call it stochastic search, neuroevolution, fuzzing, quality-diversity, sampling, or just noise. But the architecture underneath is always the same. One part of the system throws variation at the wall. Another part of the system, the part with the standards, decides what sticks.
Consider the field of program synthesis, which tries to make computers write computer programs from examples. You show the system a few input-output pairs. From those, it has to figure out the code. The trouble, as a 2020 paper from a UC San Diego group put it, is the astronomical size of the search space the synthesizer has to explore. A program of length five, written in even a tiny vocabulary, can have more than ten trillion possible forms. By the time you reach programs of length ten or twelve, you have left behind the number of atoms in the observable universe. No amount of cleverness lets you check every possibility.
The canonical response is a system called DreamCoder, built by a group at MIT's Computer Science and Artificial Intelligence Laboratory and described in a 2021 paper at the ACM SIGPLAN conference. DreamCoder runs what its authors call a wake-sleep loop. When it is awake, it searches for programs that solve a given task. When it sleeps, it does two things. It refactors the programs it has already discovered into reusable building blocks, growing its own library of subroutines. And it dreams, sampling new imaginary problems from its own internal model of the world and training a neural network to predict, when faced with a task it has never seen, which programs are likely to work. The dreaming phase is pure stochastic variation. The waking phase is selection. Across eight different domains, the authors reported that DreamCoder always solved at least as many problems as the best alternative. Its median solve time was around fifteen seconds. The same problems, attacked by classical enumeration without the dreams, took twenty-four hours and required generating up to 400 million programs for each task.
The neural network in DreamCoder is not writing programs. It is telling the random search where to look harder. This division of labor turns out to be the architecture of almost every successful neurosymbolic system, the field that tries to fuse the pattern-matching strengths of neural networks with the rigor of symbolic logic. Neural networks are good at fuzzy, statistical work. They can look at a photograph and notice that something resembles a dog. They cannot reliably check whether a logical proof is valid, or whether a program returns the correct value for an input it has never seen. Symbolic systems are the inverse. They cannot tell a dog from a duck, but they can verify a proof line by line and refuse to accept any reasoning that fails the check.
For decades, these two approaches argued with each other. Neither one alone could do what people wanted. A pure neural network, however large, will sometimes confabulate. A pure symbolic system, however carefully designed, suffocates in the size of the spaces it has to search. The truce that has emerged is that the neural side generates and the symbolic side judges, and the generation half does its job by being deliberately, productively random. A 2017 paper from a team at Microsoft Research and the University of Cambridge made the trick especially explicit. Their system, DeepCoder, used a feed-forward neural network to look at input-output examples and produce a probability distribution over the thirty-four functions in its small programming language. Those probabilities then biased an enumerative search. On programs of length five, the augmented search ran roughly 907 times faster than the unaugmented one when measured at the same solve rate. The network did no programming. It only redirected the noise.
Scallop, a programming language for neurosymbolic systems built by a group at the University of Pennsylvania and published at the POPL conference in 2023, makes the truce part of the language design. Scallop programs are written in a logical style that looks like a database query language, but every piece of evidence inside them carries a probability. When the system reasons, it considers many possible derivations of the same conclusion, weighted by how likely each one is. It is a deterministic logic engine wrapped around a stochastic core. On a benchmark suite of eight tasks ranging from rule-based image classification to maze planning from raw pixels to visual question answering, Scallop matched or beat fully neural baselines while remaining inspectable.
Even mathematical theorem proving, the most austere corner of computer science, has gone stochastic. In 2020, a team at OpenAI released GPT-f, a transformer model with 774 million parameters trained to suggest the next step in a formal proof. Faced with a partially completed proof, GPT-f does not deduce the next move. It samples it. Many candidate moves are drawn from the model, each one is checked by the formal verifier, and the search continues down whichever branches survive. The result was that GPT-f closed 56.22 percent of held-out problems from a corpus called Metamath, against a previous best of 21.16 percent. More striking, 23 of its shorter proofs were accepted into the official Metamath library. The proofs were valid because the verifier said so. The new proofs existed because the model had been allowed to guess. A 2022 paper from Meta AI Research stated the underlying logic plainly. The space of possible proof moves at any given step is effectively infinite. Sampling is not a stylistic choice. It is the only way the system has of generating anything at all.
For most of the deep learning boom, there was one corner of artificial intelligence research that was treated as an embarrassment. Evolutionary computation, the family of techniques that explicitly imitates the structure of variation and selection without any biological pretensions, had been around since the 1960s. It had never quite delivered. Then, starting around 2017, a flurry of papers made the embarrassment cut both ways.
In March of that year, a team at OpenAI published a paper with the deliberately provocative title "Evolution Strategies as a Scalable Alternative to Reinforcement Learning." The setup was simple. Take a neural network controller for a simulated humanoid walker. Instead of training it with gradients, perturb its parameters randomly in many directions at once, evaluate each perturbed version, and move the parameters in whatever direction the better-performing perturbations point. It is barely an algorithm. It is closer to a guess-and-check procedure that has been parallelized aggressively. The team trained a 3D humanoid in ten minutes on 1,440 CPU cores, work that took the leading reinforcement learning algorithm of the time about a day on 32 cores. The technique, the authors wrote, resembles simple hill-climbing in a high-dimensional space based only on finite differences along a few random directions at each step.
Later that year, a team at Uber's now-defunct AI Labs pushed the embarrassment further. They took a simple, traditional, population-based genetic algorithm, the kind of thing that had been written about in textbooks for forty years, and used it to train deep convolutional networks with more than four million parameters to play Atari games from raw pixel input. No gradients. Just mutation and selection. On many of the games, it matched or beat the state-of-the-art reinforcement learning systems. Buried in the paper was a line that has aged into something like a slogan: pure random search was, on some games, surprisingly competitive.
Meanwhile, a team at Google Brain was running a controlled experiment about how to design neural networks themselves. Could you have a system invent its own architecture rather than letting human researchers handcraft one? Two approaches dominated. One used reinforcement learning, training an outer network to propose architectures. The other used evolution, mutating architectures and keeping the fittest. The 2019 AAAI paper presenting the comparison, on identical hardware and identical problem setups, found that evolution discovered higher-quality architectures faster, particularly in the early phase of the search. The resulting model, called AmoebaNet, achieved 83.9 percent top-1 accuracy on ImageNet, a state of the art at the time. A smaller variant won the Stanford DAWNBench competition for cheapest ImageNet training.
The deepest argument for why this works came from an earlier paper, in 2011, by researchers at the University of Central Florida. The paper introduced an algorithm called novelty search, whose central idea was almost paradoxical. Instead of rewarding solutions that scored well on the goal, the algorithm rewarded solutions that behaved differently from everything seen before. The objective was effectively ignored. On a deceptive maze and a biped walking problem, novelty search beat objective-driven search outright. Some problems, the authors concluded, are best solved by methods that ignore the objective.
The deeper claim is that hard problems are deceptive. The path to the goal does not look like the goal. The early steps that lead to a high-performing solution often look, locally, like they are making things worse. A method that always climbs the gradient toward the apparent goal will get trapped on a small hill within sight of the mountain. A method that wanders, that values doing new things over doing the right things, will sometimes stumble off the small hill and onto the slope of something larger. Randomness is what makes the wandering possible. A French robotics group and a collaborator at the University of Wyoming pushed this idea further with a 2015 algorithm called MAP-Elites, which keeps not one best solution but a whole archive of the best solutions across many different categories of behavior. In their flagship demonstration, six-legged robots that had pre-built libraries of behaviors using MAP-Elites in simulation could recover from physical damage, broken legs, missing limbs, jammed joints, in under two minutes in the real world. The robots were not trained to handle damage. They were trained to have many different ways of walking.
Randomness is not the enemy of precision — it is the precondition for it. Every successful system described in this article pairs a generator that varies broadly with a judge that selects strictly. Neither half works without the other.
The pattern can be seen in its starkest form in a 2022 system from DeepMind called AlphaCode, designed to compete in human programming contests. Given a problem statement, the system did something that no human programmer would consider doing. It generated up to one million candidate solutions. Then it tested each one against the example inputs included in the problem statement and threw away roughly ninety-nine percent of them on the spot. The survivors were clustered by their behavior on synthetic inputs, and ten representatives were submitted as actual answers.
The result, reported in Science, was an average rank in the top 54.3 percent of human participants across a sample of contests on Codeforces, a popular competitive programming site with over five thousand contestants per contest. AlphaCode was not particularly good at generating correct programs. The vast majority of what it produced was junk. But the combination of a generator willing to produce junk and a filter strict enough to find the rare gem turned out to be enough.
A similar logic underlies a 2022 technique called self-consistency, introduced by a Google Research group, that has become standard for getting better answers out of large language models on reasoning problems. When the model is asked to solve a math word problem, the technique samples not one chain of reasoning but forty, each at a temperature that allows the model to vary its choices. The forty answers are then aggregated by majority vote. The reported gains were substantial. On the GSM8K math benchmark, accuracy rose by 17.9 percentage points. On a logic benchmark called AQuA, by 12.2 points. On a commonsense reasoning benchmark called StrategyQA, by 6.4 points. The mechanism is the same as evolution's. Correct chains of reasoning tend to converge on the same answer through many different routes. Incorrect ones fail in idiosyncratic, scattered ways and split the vote among themselves. Sampling broadly exposes the structure. Voting harvests it.
DeepMind's 2023 system FunSearch made the architecture explicit in a way that earlier systems had only implied. FunSearch consists of two parts. The first is a large language model, prompted to write code that solves a mathematical problem. The second is a hand-written evaluator that scores whatever the model produces. The two pieces run in a loop. The evaluator never gets fooled by a confident-sounding but wrong piece of code, because it actually runs the code. The model is allowed to be wrong as often as it wants. The system, working this way, produced new bounds on a long-studied problem in extremal combinatorics called the cap-set problem, and new heuristics for online bin packing with direct applications in data center scheduling. The model is the generator. The evaluator is the judge. The judge guards against confabulations and incorrect ideas.
While the AI labs were rediscovering randomness, the rest of computer science was doing the same thing under different names. In November 2013, a security researcher at Google released a tool called American Fuzzy Lop, usually abbreviated AFL. Its purpose was to find bugs in programs by feeding them garbage. Specifically, AFL kept a population of input files, mutated them by flipping random bits, and fed the mutants to the target program. Whenever a mutant caused the program to exercise a new path through its code, AFL kept it and used it as a parent for future mutations. The algorithm was, as one tutorial put it, a genetic algorithm to increase code coverage. Within four years, AFL had found around 330 vulnerabilities across seventy different programs, including in software as important as OpenSSH, Firefox, and the Linux kernel.
In 2016, in the aftermath of the Heartbleed vulnerability that had exposed sensitive memory in a vast number of internet servers, Google built a service called OSS-Fuzz that ran fuzzing campaigns continuously against open-source projects. By May 2025, OSS-Fuzz reported that it had helped find and fix more than thirteen thousand vulnerabilities and over fifty thousand bugs across more than a thousand projects. In late 2024, the team announced that they had begun letting a large language model write the fuzz targets themselves. Using that approach, the system found a memory bug in OpenSSL that had likely existed in the code for two decades and that, the team wrote, would not have been discoverable with existing fuzz targets written by humans.
The cousin of fuzzing in the world of running production systems is called chaos engineering. In 2010, a Netflix engineer built a tool called Chaos Monkey that, during business hours and with no warning, would randomly terminate virtual machines inside Netflix's production infrastructure. The point was that any system that has not been tested under random failure is a system whose failure modes are unknown. If Chaos Monkey could break it, real life would eventually break it. The discipline grew. The same principle underlies a framework called Jepsen, which has spent the past decade methodically demolishing the consistency claims of distributed database vendors by randomly partitioning their networks and watching what happens. Jepsen has documented serious correctness bugs in MongoDB, Cassandra, CockroachDB, FoundationDB, MariaDB, and Hazelcast, among many others. Random testing finds bugs that careful testing cannot reach.
Step back from all of this and a single shape emerges. Every system described here, the program synthesizers, the architecture searchers, the theorem provers, the fuzzers, the chaos monkeys, has the same skeleton. There is a generator and there is a judge. The generator is allowed to be wasteful, undirected, even foolish. Its only job is to produce variation broad enough to include something useful. The judge is allowed to be slow and strict. Its only job is to keep what works.
Neither half can do the work alone. A judge with nothing to judge produces nothing. A generator with no judge produces noise. But the two together, in the right balance, do something that neither calculus nor logic nor pure reasoning has matched. They escape local optima, because variation is not constrained to follow a gradient. They discover stepping stones, because the judge does not need to know in advance what will count as progress. They scale, because variation parallelizes easily across many machines.
This is the architectural lesson that the past decade of computer science has been quietly teaching. It is not that gradients are useless. The most successful modern systems blend the two strategies. AlphaCode uses a learned generator and a strict judge. DreamCoder uses a neural network to bias a symbolic search. FunSearch uses a language model to propose code and an evaluator to filter it. The hybrid is not an awkward compromise. It is the design.
The question is no longer whether randomness belongs in serious computing. It has been there all along, in stochastic gradient descent, in dropout, in Monte Carlo methods, in the cryptographic primitives that secure the internet. The question is whether you have separated the generator from the judge clearly enough to let the randomness do its work. When the space is too big and too rugged to reason your way through, you stop trying to reason your way through. You sample. You filter. You repeat. Somewhere in the gap between the wasteful generator and the strict judge, the interesting things appear.
Key references: Bergstra, J. and Bengio, Y., "Random Search for Hyper-Parameter Optimization," Journal of Machine Learning Research 13, 2012. Ellis, K. et al., "DreamCoder: Bootstrapping Inductive Program Synthesis with Wake-Sleep Library Learning," PLDI 2021. Balog, M. et al., "DeepCoder: Learning to Write Programs," ICLR 2017. Li, Z. et al., "Scallop: A Language for Neurosymbolic Programming," POPL 2023. Polu, S. and Han, J. M., "Generative Language Modeling for Automated Theorem Proving," OpenAI, 2020. Lample, G. and Charton, F., HyperTree Proof Search, Meta AI Research, 2022. Salimans, T. et al., "Evolution Strategies as a Scalable Alternative to Reinforcement Learning," OpenAI, 2017. Such, F. P. et al., "Deep Neuroevolution: Genetic Algorithms Are a Competitive Alternative for Training Deep Neural Networks," Uber AI Labs, 2017. Real, E. et al., "Regularized Evolution for Image Classifier Architecture Search," AAAI 2019. Lehman, J. and Stanley, K. O., "Abandoning Objectives: Evolution Through the Search for Novelty Alone," Evolutionary Computation, 2011. Mouret, J.-B. and Clune, J., "Illuminating search spaces by mapping elites," arXiv, 2015. Google DeepMind, "FunSearch: Making new discoveries in mathematical sciences using Large Language Models," Nature, 2023. Li, Y. et al., "Competition-Level Code Generation with AlphaCode," Science 378, 2022. Wang, X. et al., "Self-Consistency Improves Chain of Thought Reasoning in Language Models," Google Research, 2022. OSS-Fuzz project, Google, 2016–2025. Chaos Monkey, Netflix Engineering, 2010.
Daice Labs Inc.
Brookline, MA, USA
Roll the "daice"–exploration & programmable adaptation.