Calibrate Small, Predict Big: Learning Per-Action Energy Tables from End-to-End Readings by Non-Negative Least Squares on Analytical Action Counts, with D-Optimal Calibration Runs, for AI Agents that Size AI Accelerators
A design agent that sizes AI accelerators needs an energy model for designs that do not exist yet, typically larger than anything it can build or measure. Architecture-level estimators combine action counts with per-action energies from a table, but the table must come from somewhere. Black-box surrogates trained on measured designs do not extrapolate. This paper proposes that the agent learn the table itself from end-to-end energy readings of small, cheap calibration designs. The analytical action counts of each run (multiply-accumulates, buffer accesses with a size-dependent term, off-chip words, idle element-cycles and a wire term) form a design matrix, and the per-action energies are the non-negative least-squares solution. The calibration runs are chosen greedily for D-optimality, and the conditioning of the count matrix serves as an identifiability check. In a simplified model with six hidden per-action energies and emulated readings with 2 percent noise, 20 D-optimal runs on arrays up to 32 by 32 predict the energy of arrays up to 128 by 128 with a median error of 5.0 percent; 40 runs give 3.4 percent. A black-box log-polynomial surrogate trained on 40 runs of the same small designs has a median error of 66 percent on the large ones. D-optimal selection lowers the condition number of the count matrix by a factor of 4 to 43 compared with random runs, and the median error by 8 to 30 percent. All numbers come from CPU runs of the simplified model with emulated readings. Concept and methods paper. Numerical illustrations were produced by the author on a CPU with numpy, using a simplified model with illustrative parameters; they illustrate the method and are not hardware measurements; no GPU was used. Any other numerical values quoted come from the cited sources. Self-drawn figures (scripts/make_figs.py). AI-assisted drafting; the author is responsible for the content.
Authors
- I-Wei Tseng
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-02
- DOI
- https://doi.org/10.5281/zenodo.24762520
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- preprint