I Let an AI Agent Run 40 Experiments While I Slept

AI-generated summary of reporting by Oreilly AI ML Blog. Read the original for the full story.

Why it matters

AI agents running autonomous experiments silently produce plausible results even when the environment corrupts their inputs, so teams must add integrity checks rather than trust the loop.

Read this as

A developer let an AI program run 40 machine learning training experiments overnight on a rented computer while he slept. The AI improved the results by 5.9% and cut memory use from 44 GB to 17 GB. But a formatting tool called a linter secretly changed one setting behind the AI's back, wasting four hours before the human noticed. The lesson: automated AI workers can't detect when their own files are tampered with.

An engineer running Karpathy's autoresearch pattern got a 5.9% validation loss improvement and 60% memory reduction from 40 overnight AI-driven experiments. The failure mode matters more: a linter silently altered a hyperparameter between saves, costing four hours of compute undetected. Gartner predicts over 40% of agentic AI projects will be cancelled by 2027 over cost and inadequate risk controls. Teams deploying autonomous workflows should budget for environment-integrity monitoring, not just compute.

Using Karpathy's autoresearch setup, one editable file (train.py), one metric (validation bits per byte), five-minute budgets, Git checkpointing, the author's agent kept 9 of 40 experiments, discarding 28 and crashing 3. A remote linter rewrote SCALAR_LR from 0.5 to 0.3 between save and execution; the agent only checked Git diffs, not runtime file state. Fix: checksum/compare-and-swap file integrity checks before each experiment. Also: parallel agents rewriting 15 Claude Code skills fixed 13 but introduced 3 subtle regressions.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Claude Code train.py SCALAR_LR Liquid SkyPilot autoresearch

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading