How the most powerful systems in AI were built not to avoid failure but to learn from it.
There is a counterintuitive idea at the foundation of modern artificial intelligence: a neural network does not learn from what it gets right. It learns from how wrong it was, and by exactly how much. The same logic runs through reinforcement learning, neurosymbolic reasoning, large-scale infrastructure resilience, and the adversarial testing regimes now written into AI safety law. Failure, made precise and computable, turns out to be the most information-dense signal a system can receive.
When a neural network produces an output, whether a translated sentence, a classified image, or a recommended video, that output is compared against the desired one using a mathematical function called a loss function. The result is a single number, and that number is a measurement of failure. Everything that follows is the system tracing where, and to what degree, it went wrong. The algorithm that does this is called backpropagation: using the chain rule of calculus, it sends the error signal backward through the network layer by layer, assigning each weight a fraction of the blame, then nudging every weight in the direction that would have reduced it. Without a measured error, there is no gradient, no update, and no learning at all. A network trained only on successes has nothing to compute.
What makes this remarkable is how far the principle travels. The same logic runs through reinforcement learning, neurosymbolic reasoning, large-scale infrastructure resilience, and the adversarial testing regimes now written into AI safety law: produce an output, measure how wrong it was, trace the wrongness back to its source, correct. Failure, made precise and computable, turns out to be the most information-dense signal a system can receive. The question that separates a learning system from one that merely operates is whether it is designed to receive it.
Reinforcement learning is where failure-as-learning becomes most inventive. The basic setup is simple: an agent takes actions, receives rewards or penalties, and gradually learns a policy that maximizes return. The problem is that in most real-world tasks, success is rare. An agent learning robotic assembly may run through thousands of failed episodes before stumbling on a reward signal worth generalizing from. A system designed purely to chase reward starves in sparse environments. The most influential answer came from OpenAI in 2017: Hindsight Experience Replay. The insight is disarmingly direct. If an agent failed to reach its intended goal but ended up somewhere else, store that trajectory a second time, relabeled as if the achieved state had been the goal all along. A robotic arm that missed target A but landed at B has, from the algorithm's perspective, successfully demonstrated how to reach B. Every failed episode is converted into a positive learning signal for an alternative objective, and the agent assembles what researchers call an implicit curriculum built entirely from things that went wrong.
The lesson Hindsight Experience Replay teaches about failure more broadly is this: a failure is only useful when the system can correctly attribute it. The method works because the relabeling is precise. The failure is not discarded or averaged away; it is recontextualized and preserved. In every domain where failure-based learning succeeds, the same condition holds. Getting attribution right is the hard engineering problem. Detecting the failure is just the beginning.
One of the deeper limitations of neural networks is that their error signals are soft. A loss function returns a floating-point number, a gradient, a probability, a degree of wrongness, and the network adjusts accordingly. That fuzziness is computationally convenient but epistemically weak. The network never knows, in any precise sense, that it produced something categorically false. It only knows it produced something less probable than something else. Neurosymbolic architectures exist, in part, to harden that signal. When a neural component hands its output to a symbolic verifier, whether a theorem prover, a code interpreter, or a formal constraint checker, the verifier returns something different in kind: not a gradient but a verdict. Pass or fail, with a traceable reason why.
DeepMind's AlphaGeometry, published in 2024, is the clearest illustration of what this changes. The system pairs a language model that proposes geometric constructions with a symbolic deduction engine that verifies them. The loop between them works because every time the symbolic engine rejects a step, it returns a hard error rather than a soft penalty, and that hard error constrains the space of valid next moves. That rejection carries more information than a soft gradient: it does not say "that was suboptimal," it says "that is false." AlphaGeometry solved 25 of 30 International Mathematical Olympiad geometry problems, matching the performance of a human gold medalist, not by producing better guesses, but by failing faster and more precisely.
An engineer's working diagram on a glass panel captures the core argument of the article: failure, when precisely measured and correctly attributed, is the most valuable signal a computing system can receive. The revisions and erasures visible on the board mirror the iterative correction loop the article describes.
The idea that failure is more instructive than success did not originate in machine learning. It was arrived at independently, through hard operational experience, by the engineers responsible for some of the largest software systems ever built. In 2010, Netflix engineers built Chaos Monkey, a tool with a deliberately perverse mandate: randomly terminate live production servers during business hours. Not in a staging environment. In production, while customers were watching. The reasoning was direct: if a service could not survive the loss of an arbitrary instance at an arbitrary moment, it was not ready for a distributed environment where instance failures are a statistical certainty at scale. The only way to know which services could handle it was to find out, continuously, under real conditions.
The value of this approach became concrete in a specific experiment Netflix later documented. When engineers injected artificial latency into one internal service, the downstream system was expected to activate its fallback and degrade gracefully. Instead, it became overwhelmed and began cascading into failure, forcing a regional failover. The circuit breaker had a misconfigured timeout, a bug that years of conventional monitoring had never surfaced. The chaos experiment found it before a real outage could, at controlled cost. What looked like a destructive act turned out to be the cheapest possible audit. In software testing, test-driven development reaches the same conclusion through a different door: write the failing test before writing the code. Every line of production code is written in direct response to a specified failure, and the failure specification exists before the implementation does. Manufacturing errors on purpose finds what success-seeking processes are structurally unable to see.
The same reasoning that makes chaos engineering effective in infrastructure has been formally imported into AI safety under the name red-teaming. The practice is exactly what it sounds like: specialists whose explicit job is to make an AI system fail. They probe for harmful outputs, safety bypasses, and unexpected behaviors under adversarial conditions. The objective is not to catalog failures as incidents but to feed structured records of them back into training, converting each discovered failure into a corrective signal before the system reaches users. Failure here is not an accident that occurred. It is a synthetic test case engineered to surface a specific kind of wrong.
Red-teaming has moved from informal practice to regulatory requirement with unusual speed. The EU AI Act now requires providers of general-purpose AI models with systemic risk to conduct and document adversarial testing before deployment. The U.S. National Institute of Standards and Technology embedded the same requirement in its AI Risk Management Framework. The frontier of this work has moved beyond human red-teamers entirely. Google's Big Sleep agent, developed jointly by DeepMind and Project Zero, autonomously reasons over software codebases to find vulnerabilities before adversaries do. In July 2025, operating alongside Google Threat Intelligence, it identified CVE-2025-6965, a memory corruption flaw in SQLite present in all versions prior to 3.50.2, estimated to have existed for two decades and already known to threat actors. Google described it as the first time an AI agent preemptively foiled a live in-the-wild exploitation attempt. The system had found the failure before anyone could use it, which is what the architecture of failure-learning looks like at its frontier: not a system that waits to be broken, but one that reaches forward, manufactures the breaking, and closes the gap before the damage arrives.
Key references: Rumelhart, D. et al., "Learning representations by back-propagating errors," Nature 323, 1986. Andrychowicz, M. et al., "Hindsight Experience Replay," NeurIPS 2017. Trinh, T. et al., "Solving olympiad geometry without human demonstrations," Nature 625, 2024 (AlphaGeometry). Netflix Technology Blog, "Chaos Engineering," 2011. Fowler, M., "Test Driven Development," martinfowler.com. Google Project Zero, "Big Sleep: AI-assisted vulnerability discovery," 2025. NIST AI Risk Management Framework, 2023. EU Artificial Intelligence Act, Official Journal of the European Union, 2024.
Daice Labs Inc.
Brookline, MA, USA
Roll the "daice"–exploration & programmable adaptation.