Vol. III · Essays on work after AI
Tuesday, November 24, 2026
evolving.work
Strategy · Architecture · Essay № 011

The Cheap Experiment

The cost of experimentation just collapsed to near-zero — and the organizations that recognize this will run thousands of experiments while competitors are still planning their first.

In March 2026, Andrej Karpathy pointed a 630-line Python script at a single GPU and went to bed. By morning it had run 700 experiments, found 20 optimizations that transferred to larger models, and cut the time to train GPT-2 by 11%. All of that happened without a research team, a compute cluster, or months of grant proposals: just an AI agent, a modifiable file, a metric, and a feedback loop running twelve times an hour. Karpathy summed it up on X with characteristic understatement: “All LLM frontier labs will do this. It’s the final boss battle.”

I keep turning this over, because autonomous ML research isn’t new (people have run hyperparameter sweeps for a decade), yet this crystallized a pattern that reaches far beyond machine learning. Analyst Janakiram MSV called it “The Karpathy Loop”: an agent with access to a modifiable system, a single objectively testable metric, and a fixed time limit per experiment. Whenever those three preconditions are met, throughput jumps to roughly 100 experiments overnight for dollars of compute instead of months of researcher salaries.

The pattern also reproduces outside Karpathy’s own setup. Within months, Red Hat’s developer team ran the same playbook on OpenShift AI and logged 198 experiments with zero human intervention, surfacing counterintuitive findings the team hadn’t tried, like smaller batch sizes with no gradient accumulation consistently beating larger-model approaches under a fixed time budget. Once you hand the loop a sandbox and a metric, it generalizes well beyond a one-off stunt.

For decades, organizations have treated experimentation as something to ration: plan carefully, staff conservatively, and run the one test you can afford instead of the hundred that would actually teach you something. That rationing shows up directly in executive surveys. A KPMG study cited by Strategyzer found that 80% of CEOs believed their business models were at risk, yet only 6% of executives were satisfied with their innovation performance. Ideas were rarely the scarce part; paying to test them was, and cheaper tests let us explore ideas we used to leave on the shelf.

The CEO Who Ran the Loop

Within days of Karpathy’s release, Shopify CEO Tobi Lutke ran autoresearch overnight on a machine learning model. Thirty-seven experiments produced a 19% performance improvement, yielding a 0.8B parameter model that outperformed the 1.6B model it was built to replace on a single GPU with no ML team.

That first run could still be brushed off as a fancy hyperparameter sweep, but what Lutke did next is what caught my attention. He pointed the same loop at Shopify’s Liquid template engine, a 20-year-old codebase powering every storefront on the platform with 974 unit tests and two decades of human optimization already baked in. On mature code like that, engineers are usually thrilled to squeeze out single-digit gains.

The agent ran roughly 120 experiments overnight, modifying source code, running all 974 tests, benchmarking parse-and-render performance, and keeping or discarding each change based on the metric. By morning, combined parse-and-render time was 53% faster, memory allocations dropped 61%, and zero tests regressed.

These weren’t minor parameter tweaks. The agent replaced the StringScanner tokenizer with a faster byte-index approach and pre-computed frozen strings for integers 0-999 to eliminate hundreds of repeated allocations per render. Experienced engineers hadn’t attempted structural rewrites like those in twenty years, simply because when you can only run a few experiments a week, you optimize conservatively and tune what you know instead of ripping out the tokenizer on a hunch.

Karpathy drew a sharp line between this and earlier automation, noting that neural architecture search “is such a weak version of this that it’s in its own category of totally useless by comparison.” AutoML picks a configuration from a predefined search space, whereas autoresearch proposes entirely different approaches. A hyperparameter sweep is a tourist visiting every restaurant on the same street; autoresearch wanders into neighborhoods the tourist didn’t know existed.

The Liquid run also addresses the Goodhart’s Law worry that optimizing a single metric at scale quietly breaks everything else. That failure mode is real: one widely discussed Karpathy autoresearch run veered off its assigned memory-efficiency objective and burned roughly 12 hours of compute exploring the minimum number of model weights needed to preserve performance. It was an interesting finding, just not the one anyone asked for.

Lutke’s setup shows how the architecture has to contain that drift. Those 974 unit tests ran alongside every single experiment, enforcing correctness as a hard constraint while the agent pushed speed aggressively inside that boundary. Good autonomous loops pair aggressive optimization on one metric with a strict quality gate before anything gets accepted. What made that kind of overnight loop practical for a template engine, though, is a steep drop in the underlying cost of running it.

The Economics of Near-Zero

These loops are suddenly practical because the cost of the AI calls driving them has collapsed. According to the 2025 Stanford AI Index, AI inference costs dropped 280-fold in 18 months, falling from $20.00 to $0.07 per million tokens at GPT-3.5 performance level. At those prices, a single dollar buys 10.77 million words of AI processing, pushing the marginal cost of running an experiment close to the cost of thinking it up.

That decline is still accelerating. Epoch AI’s tracking shows the median rate of inference price drops jumped from 50x per year to 200x per year after January 2024. If your mental model of AI costs is even a year old, it’s already an order of magnitude too high.

It’s fair to point out that Karpathy’s original autoresearch ran on an H100 GPU costing $30,000, but the pattern generalizes well beyond GPU-bound training. Optimizing code with an LLM agent costs API tokens rather than GPU hours, and Shopify’s Liquid run closed its entire feedback loop in software using an existing test suite. At current inference prices, running hundreds of agent-driven experiments on code, marketing copy, or process optimization costs dollars rather than thousands. The methodology existed in principle for years; the economics just caught up, and they’re already reaching far beyond software.

Beyond Software: When Molecules Run the Loop

If cheap experimentation only applied to code, it would be useful but narrow. What’s striking is seeing the same pattern reshape fields where experiments have historically been measured in years and billions of dollars.

Take Insilico Medicine’s search for a drug candidate for idiopathic pulmonary fibrosis, a progressive, fatal lung disease with limited treatment options. Traditional drug discovery takes 10-15 years and costs $1-2 billion per approved drug, with most of that spent on iterative wet-lab experimentation to identify targets, design molecules, and refine candidates.

Insilico’s AI platform identified a novel biological target (TNIK) that no human team had pursued for the disease, then generated and evaluated thousands of candidate molecules computationally. The discovery-to-preclinical phase took 18 months and cost $2.6 million, compared with an industry average of 4-6 years and roughly $430 million for equivalent scope.

The resulting compound, Rentosertib, became the first drug in history where both the biological target and the therapeutic molecule were discovered by AI, and it is now in Phase IIa clinical trials with results published in Nature Medicine. Clinical trials still take years because the regulatory pathway has its own logic, yet the discovery phase compressed by orders of magnitude. A systematic review of 173 AI drug discovery studies in Pharmaceuticals found that every single one demonstrated timeline compression.

At NC State University, self-driving laboratories are rethinking what a chemistry experiment even looks like. In a traditional lab, researchers set up a synthesis, wait an hour for the reaction, collect one data point, adjust, and repeat for five to ten experiments a day. NC State’s dynamic flow experiments capture data every 0.5 seconds, generating 20 data points per experiment so that one day’s output equals three years of traditional lab work.

The deeper lesson here goes beyond running old experiments faster. NC State redesigned the cycle itself to extract 20x more signal from each run. Once the cost of a cycle collapses, you can afford to rethink how the cycle is structured, shifting the bottleneck from affording the next test to maximizing what you learn from every one. Still, that only holds when the problem fits the loop’s requirements.

Where the Loop Breaks

Autonomous experimentation depends on three hard conditions: a modifiable system, a measurable metric, and a fast feedback loop. Remove any one of them and the pattern falls apart. Organizational culture changes take quarters to evaluate, brand perception resists clean quantification, and clinical drug trials (even after Insilico’s compressed discovery phase) still require years of human oversight. Slow, irreversible, or fundamentally subjective problems stay outside the loop.

The cost picture is also less tidy than the headlines imply. Cerebras’ analysis of autoresearch runs noted that “when each experiment costs real compute, proposal quality dominates total cost,” documenting an agent burning through 2 hours of GPU time on proposals that were ultimately rejected. A 2026 arXiv paper went further, showing that a classical Tree-structured Parzen Estimator with expert-designed hyperparameters could match or beat Karpathy’s agent on the same budget. On well-structured problems, mature optimization methods remain serious competition.

The deepest objection is about understanding. Karpathy’s agent found 20 optimizations in 700 experiments, yet it has no idea why they work. Modifying code, measuring improvement, and keeping the winner is hill-climbing, whereas the scientific method demands hypothesis, test, explanation, and iteration. An agent that discovers a better learning rate schedule leaves you with a better model and zero transferable theory.

I take that objection seriously, and the clean division of labor is straightforward: autonomous loops narrow the search space from infinite to tractable, and humans focus their explanatory effort on the 20 winners instead of the 680 failures. Karpathy’s own framing gets this right: “the goal is not to emulate a single PhD student, it’s to emulate a research community of them.” The community handles the volume, while synthesis still relies on human minds.

Besides, most organizational experimentation is applied optimization where what works matters more than writing a paper on the mechanism. A 53% speedup on Shopify’s Liquid engine pays off immediately, and the engineers reviewing the PR will understand the code without needing the agent to explain it first.

That boundary isn’t fixed, either. Five years ago, self-driving chemistry labs would have failed the readiness test, until researchers re-engineered their feedback loops from hours down to sub-seconds. The honest conclusion is that this works for a large and growing class of problems, and the boundary keeps expanding as teams learn to digitize their feedback loops.

Your Move: Scoring What You Can Automate

To find a viable starting point in your own domain, score candidate problems against the three conditions that make these loops work.

A score of 7 to 9 means your problem is ready for autonomous experimentation today. A score of 5 to 6 points to an infrastructure investment: digitize the feedback loop, automate the metric, and build the integration layer, since engineering plumbing is now the bottleneck rather than compute cost. A score of 3 to 4 means it’s a roadmap rather than an immediate target, so watch for enabling tools or carve out a narrower sub-problem that scores higher.

Once you pick a candidate, write your own version of Karpathy’s program.md, the constraint document that keeps autonomous iteration disciplined. Spell out what the agent should optimize, what it must never break (your equivalent of Shopify’s 974 unit tests), which approaches are off-limits, and when it should stop. That document is what separates controlled experimentation from unsupervised drift.

The cost of experimentation has fallen through the floor across software optimization, marketing copy, pricing strategy, financial modeling, logistics routing, and manufacturing parameters. Any domain where you can measure outcomes and close the feedback loop fast enough is now open to this pattern. The organizations that pull ahead over the next decade won’t be the ones that designed the single smartest test; they’ll be the ones that recognized how cheap trying has become and started running the loop.

References

About the author
Héctor Reinoso writes about how organizations should be designed when intelligence becomes abundant. He works on enterprise AI adoption inside a large industrial organization, after 25 years as a strategy consultant and transformation executive across four continents. Harvard MBA, industrial engineer, and still writes the code he writes about. More →