Manuscript Offprint

arXiv:2609.00744

The Price of Remembering: A Calibrated Energy Law for Computation

Mohamed Amine Bergach

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

MOHAMED AMINE BERGACH, Illumina, USA

Most of the energy a computer spends goes not into computing but into keeping. A bit held in fast storage burns power for every second it stays there, and it costs energy again each time it moves between storage levels. We call the first cost rent and the second fare, and we state one law: the energy of a computation is at least its operations, plus rent on every live bit for as long as it lives, plus fare on every bit moved. The model beneath the law prices control too: there is no free clock, and any unpriced register would make the theorems false. One lemma carries the results: every use of a value is paid for by rent, by fare, or by recomputing it. Three consequences. Exact attention brings every past token back for every new one, so its energy grows with the square of the context length while a fixed-state recurrent model grows linearly; the square is a theorem for machines that never re-read past tokens, and under a stated serving hypothesis it is the fare on every past token, which overtakes the model's own arithmetic near 10410^4 tokens, where long-context serving becomes bandwidth-bound today. Cumulative-memory bounds become joule floors: sorting nn items pays rent proportional to n2/log⁡nn^2/\log n bit-steps on any sequential machine with volatile working storage, on most inputs, and the bound for script makes each password guess cost joules that no parallelism reduces. The law is calibrated: on a synthesized 45 nm processor whose storage physically moves, the rent constant measured at gate level is a clock term, 0.82 pJ per occupied slot per cycle, plus 3.4 fJ per net transition, within 4% on every rotating run on operand-isolated hardware. Four fifths of that rent is the clock: keeping is mostly knowing when. Memory hierarchies exist because staging beats flattening, 83×83\times on our instrument. We say how the law can be proven wrong.

1 Introduction

Where does the energy of computation go? Mostly not into computing. At 45 nm a 64-bit add costs about a picojoule while fetching its operands from off-chip memory costs three to four orders of magnitude more [36, 39]; in a general-purpose core over 90% of the energy of an operation is overhead (fetch, decode, rename, tags, forwarding) rather than the operation itself [33]. The engineering literature states this as folklore and prices it in tables. We state it as a law with lower bounds. (Throughout, by “measured” we mean extracted from gate-level simulation of a synthesized, pre-layout netlist; we fabricated no silicon. Section 7 states the caveats.)

The law has three terms beyond the arithmetic. A computation pays rent on every bit it keeps live: volatile storage burns hold power, as leakage, as refresh, or, in the machine we calibrate on, as physical rotation, for every second a bit stays resident, whether or not it is touched. It pays

Author's Contact Information: Mohamed Amine Bergach, mbergach@gmail.com, Illumina, San Diego, California, USA.

fare on every bit it moves between storage levels. And it pays, far below either, Landauer's toll on every bit it erases [46].

The model beneath the law has one rule that distinguishes it, and we adopt it as a slogan: there is no free clock. A machine's next step is a function of the contents of its computed cells alone (Definition 1); its schedule, its position in its own program, its sense of time are live bits like any others and pay rent while they are held. The rule is forced, not fastidious: give the model any unpriced register, elapsed time included, and the theorems below are false, because a machine could smuggle its whole input into data-dependent hold durations and read it back through control, sorting for almost nothing. The same test forces the rule's second half, that the state describes itself: a machine free to record a bit in which of two cells it occupies, rather than in what a cell holds, keeps its working set in placement, one live bit among 2m2^{m} cells carrying m bits rent-free, and sorts for almost nothing again; so in Definition 1 a computed state is determined by its contents read in a fixed order of the cells, and which cells are occupied is information those contents already carry. And the rule has a measured face: four fifths of the rent constant of Section 7 is the clock delivered to an occupied slot's flops, the cost of live state knowing when it is, and the floor an empty slot pays is the rent of the cell that records its emptiness, the cost of the ring knowing where its packets are (Section 7). The two are a rhyme rather than an identity, since the clock term prices every live flop, data included; but theory and netlist agree on the sentence that keeping is mostly knowing-when, and Section 8 names what our extraction still leaves free, the clock tree itself, as the open capability.

The striking fact is that the rent functional, live bits integrated over time, which we call the action of the computation, is already the billing unit of four communities that do not cite one another. Memory-hard cryptography prices ASIC adversaries by cumulative memory complexity, exactly ∑tspace(t)\sum_t \text{space}(t), and has built a lower-bound machinery for it [6, 7, 9, 17, 54]. Complexity theory recently imported the measure and proved that sorting requires cumulative memory Ω~(n2)\tilde{\Omega}(n^2), motivated explicitly by cloud platforms that bill in gigabyte-seconds [12]. Computer architecture tabulates the fare term (picojoules per bit per millimeter, per cache level, per DRAM interface) [36, 39] and prices the rent term in every DRAM refresh-power specification [49]. And the theory of energy-efficient algorithms prices the erasure term [23]. Valiant has asked, explicitly, for a fine-grained energy-centric counterpart of the Church–Turing thesis [62]. We propose one: the four invoices are one functional, the functional has a physical constant, and lower bounds on it are energy lower bounds that no algorithmic or architectural cleverness evades, only trades.

References (33)