DigestAI news desk

Cut through the AI noise.

Research

Researchers propose software thermodynamics to measure coding agent efficiency

A new paper on arXiv introduces a theory of software thermodynamics to explain how coding agents spend tokens. The authors compare token usage to classical and stochastic thermodynamics, breaking costs into work (useful edits) and heat (failed or redundant calls). They tested the theory by simulating an agent making and undoing changes in a repository, measuring token usage per cycle.

1 source primary source

Key points

  • 80% of tokens in coding agent runs are wasted on failed or redundant model calls, labeled 'heat'
  • Uncoding (reverting edits) costs 1.1–1.5 times less than coding, per the proposed thermodynamics model
  • Test suites introduce variability in verdicts, impacting token efficiency and agent optimization

About 80% of tokens in successful runs were wasted on calls that reverted changes, labeled as 'heat.' The free energy of a change—estimated via Jarzynski’s equality—accounted for 14–22% of the mean cost. Uncoding (reverting edits) cost 1.1–1.5 times less than coding. The study also notes that test suites, acting as 'Maxwell’s daemons,' introduce variability in verdicts, affecting token efficiency. The authors suggest this framework could lead to new tools for optimizing agent performance in software development.

Read the original at arXiv cs.AI · by Al\'an Aspuru-Guzik, Varinia Bernales primary sourceOpen source ↗

The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.

Comments

via GitHub Discussions

More in Research

All →

Related stories