AI agents improve their own code by testing it on real devices

On a large farm in the Pacific Northwest, a camera watches for elk that wander in and destroy crops. The camera has to recognize those animals with a small AI model, and it has to do it on a device with little memory and almost no power to spare. After an AI agent refined the camera's software on the device itself, the camera spotted elk with 96.7% accuracy and used so little electricity that it could run on solar panels.
Small AI models like this one run inside smartwatches, wildlife cameras and other gadgets that rely on tiny processors called microcontrollers. Each model has to be squeezed to fit, then tuned so it stays accurate without draining the battery. Human experts can spend weeks on that tuning, testing one change after another.
Large AI models, the kind that now write other software, are good at writing code but stumble on physical hardware. A change that looks sound on paper can quietly break another part of the program, or cost more power than expected. Only a measurement on the real device reveals that.
The University of Washington team built Embedded Arena, a setup in which an AI agent writes code, compiles it, loads it onto a real device, then reads the result from a physical power meter before trying again. Each round tells the agent whether its idea helped or broke something. The study, which the researchers will present at NeurIPS 2026, one of the large AI research conferences, notes that the agents do not invent new optimization techniques. Their advantage is combining established methods of embedded programming and checking each combination against the hardware.
The team applied the same loop to a second system, a wearable that transcribes speech into phonetic symbols, and reports practical results on both.
Beyond software, the researchers see the approach reaching other work. Giving AI agents access to real instruments, and letting them measure their own progress, could help with tasks such as optimizing manufacturing processes or automating scientific labs. The study does not put a date on any of this. What it establishes is narrower, but concrete: on real devices, the loop produced working models that consume very little power.
Sources — read the originals(Paris time)
Pages consulted while writing
Read next
Comments
Loading the thread…
Sign in to leave a comment. Sign in