THINK BEYOND BOUNDARIES. THE WORLD DOESN’T BUILD ITSELF.
↗LOGICUNBOUND.
Join the curious ↗
← News & Insights

The Forgotten Art of Doing Less

Analysis

Why doing less work can beat faster hardware: an engineering analysis of data movement, numerical precision, algorithms and energy per useful result.

A duplicate multiplication branch is crossed out; one product t feeds both inputs of an addition. Conceptual common-subexpression reuse.

The most energy-efficient computation is the one you never perform.

A processor can execute every instruction efficiently and still spend most of its energy doing work that should never have existed. The pipeline is full. The counters look healthy. The answer arrives on time. None of these observations establishes that the machine did something necessary.

Throughput is seductive because it makes progress easy to count. Add lanes, widen vectors, raise the clock, announce another operations-per-second milestone. Removing work is less photogenic. There is no launch photograph of an intermediate array that was never allocated, or a multiplier that a better formulation made unnecessary.

Yet those absences are architectural achievements. They remove demands on instruction delivery, registers, interconnect, memory and cooling before those demands become somebody else's optimization problem. The uncomfortable question is whether we are building better computers or merely getting better at feeding expensive habits.

This is not an argument for slow machines. It is an argument for defining the job before celebrating the rate at which a machine performs it.

First, decide what counts as work

For a fixed task, energy is the integral of power over completion time:

E = ∫ P(t) dt.

A useful engineering decomposition is:

E ≈ Σᵢ Nᵢeᵢ + P₀T.

Here Nᵢ counts events of class i, eᵢ is their average incremental energy, and P₀ represents approximately constant background power during runtime T. Event classes might include arithmetic, register accesses and transfers across specified memory boundaries. They must be defined without double-counting. This is an accounting model, not a universal chip-power law; activity, voltage, temperature and contention can change the coefficients.

The equation exposes two different opportunities: make each event cheaper, or stop causing it. It also explains why fewer instructions need not mean fewer joules. An optimization can reduce arithmetic while extending execution enough that background energy grows. A faster implementation can consume more instantaneous power and still use less energy overall.

The appropriate denominator is a completed result meeting a stated contract: the same simulation accuracy, the same query semantics, the same security requirement. Operations per joule measures a machine's ability to execute operations. Results per joule measures whether those operations were worth executing.

That distinction becomes especially sharp when an optimization changes the operation count. An implementation that finishes sooner by eliminating half the arithmetic may report fewer sustained FLOPs. Penalizing it for that is an incentive to waste electricity convincingly.

Arithmetic is only one line on the bill

Mark Horowitz's 2014 ISSCC paper gives rough energy costs for 45 nm technology at 0.9 V: 0.1 pJ for a 32-bit integer addition and 3.7 pJ for a 32-bit floating-point multiplication. Its memory column, explicitly for 64-bit accesses, lists 10 pJ for an 8 KB cache and 1.3–2.6 nJ for DRAM. These are historical estimates, not measurements of a contemporary accelerator. The access widths also differ; this is a comparison of event costs, not a per-bit normalization. Horowitz, Figure 1.1.9.

The ordering matters more than transplanting the numbers. Moving operands can cost far more than combining them. A multiplier's attractive energy specification says little about a system that repeatedly travels to distant storage to feed it.

Historical event-energy estimates on a logarithmic scale: 32-bit integer add 0.1 pJ; 32-bit floating multiply 3.7 pJ; 64-bit 8 KB cache access 10 pJ; 64-bit DRAM access 1,300–2,600 pJ.

Figure 1. Rough historical estimates, not a current-device benchmark. Original chart from Horowitz's published Figure 1.1.9 values, at 45 nm and 0.9 V. Memory events transfer 64 bits; arithmetic operands are 32 bits. The DRAM interval is a published range, not a confidence interval.

Consider an explicitly illustrative streaming calculation on 32-bit arrays: first t = a + b, then y = t × c. A two-pass implementation reads a and b, writes t, reads t and c, then writes y. That is six four-byte transfers, or 24 bytes per output. Fusing the passes and retaining t locally requires three input reads and one output write: 16 bytes.

The arithmetic remains one addition and one multiplication. The modelled traffic falls by one third. No faster arithmetic unit is required.

This count assumes each listed access crosses the chosen memory boundary, ignores write allocation and metadata, and assumes no useful cache retention of t between passes. Actual DRAM traffic may differ substantially. Fusion can also increase register pressure, cause spills or reduce occupancy. The architectural question is whether locality improves after those effects are included, not whether fusion sounds virtuous.

Two-pass array evaluation moves 24 bytes per output; a fused pass moves 16 bytes. Both execute one addition and one multiplication. The eliminated transfers are the temporary array write and read.

Figure 2. An analytical example, not measured traffic. Each block represents one four-byte transfer across an assumed memory boundary. Orange marks the temporary write and read eliminated by fusion. Cache effects, write allocation and spills are excluded.

The Roofline model makes the performance consequence explicit:

R ≤ min(Rₚₑₐₖ, B × I), where I = F / Q.

R is achieved arithmetic rate, B is sustainable bandwidth, F is arithmetic work and Q is bytes transferred across the modelled boundary. In the example, intensity rises from 2/24 to 2/16 FLOPs per byte. With unchanged bandwidth and a purely bandwidth-limited kernel, the ideal time ratio is 24/16 = 1.5. This is a bound under stated assumptions, not a promised speedup or energy saving. Williams, Waterman and Patterson.

Sometimes doing less means calculating more

FlashAttention provides an unusually clear public demonstration. Dao and colleagues reorganized exact attention around tiled computation in on-chip SRAM, avoiding materialization of the full attention matrix in GPU high-bandwidth memory. In the backward pass, selected intermediates are recomputed instead of stored and retrieved. More FLOPs can therefore accompany less memory traffic and faster execution. “Exact” distinguishes the algorithm from approximate attention; it does not promise bitwise identity across different floating-point evaluation orders.

The original paper's BERT-large experiment reports 20.0 ± 1.5 minutes for the NVIDIA MLPerf 1.1 baseline and 17.4 ± 1.4 minutes with FlashAttention, averaged over ten runs on eight A100 GPUs to the stated 72% masked-language-modeling accuracy target. The ratio of reported means is about 1.15; the time reduction is 13%. Those are timing results, not measured energy savings. Dao et al., Sections 3.1 and 4.1, Table 1.

That distinction is essential. A stopwatch does not measure joules. Inferring energy from runtime requires power information over a consistent system boundary. Even a convincing performance result cannot supply a missing energy measurement.

The broader lesson is that reuse is not synonymous with storage. Saving a value creates obligations: reserve capacity, write it, preserve it, find it, read it. Recomputing a cheap intermediate near its consumer may cost less than fulfilling those obligations. Conversely, recomputing an expensive function to avoid a cheap local read may be disastrous.

This gives redundant computation a precise meaning. Work is redundant relative to the cheapest valid route to the required result, including communication and bookkeeping. It cannot be identified by counting repeated expressions alone.

Precision is a resource allocation decision

A 64-bit container does not confer 64 bits of useful knowledge. The required numerical accuracy comes from the problem, its conditioning and the algorithm. Defaulting to the widest available representation can spend bandwidth and storage on distinctions the application never uses.

For the same number of densely packed scalar values, binary16 occupies half the raw storage of binary32. That statement is exact. A claim that it halves application energy is not: conversions, accumulation precision, memory transaction sizes, padding and control overhead remain.

Nor are all sixteen-bit formats interchangeable. Exponent range and significand precision solve different problems. Even within one format, the spacing between representable numbers changes with magnitude. A bit count without a numerical error budget is an incomplete specification.

Near one, binary16's next larger representable number is 1 + 2⁻¹⁰; for binary32 it is 1 + 2⁻²³. Thus 1 + 2⁻¹² rounds to 1 in binary16 under round-to-nearest, but is exactly representable in binary32. This is a deterministic representation example, not evidence that a particular application tolerates reduced precision. IEEE 754-2019.

Binary16 numbers adjacent to one are spaced by 2 to the minus ten. The exact value one plus 2 to the minus twelve lies one quarter of that interval and rounds to one. Binary32 represents it exactly.

Figure 3. Exact representational arithmetic under round-to-nearest. The axis shows offsets from 1 in units of 2⁻¹², not a measured error distribution. Binary32 has 8,192 intervals across the displayed span; individual ticks are omitted.

Mixed-precision iterative refinement offers a more disciplined alternative to choosing one precision everywhere. For Ax = b, obtain an approximate solution, evaluate the residual r = b − Ax, solve approximately for a correction d, then update x ← x + d. The expensive factorization can use lower precision while residual evaluation uses higher precision. Carson and Higham analyze this allocation across three precisions, including conditions under which refinement converges. Carson and Higham, 2018.

This does not license blind downcasting. Poor conditioning, overflow, inaccurate factors or stagnation can defeat the intended benefit. Residual checks and an escalation path are part of the computation. A small residual alone also does not guarantee a small forward error for an ill-conditioned system.

The useful question is where accuracy must be purchased. Paying for it in every multiply may be unnecessary; paying too little during a sensitive reduction may invalidate everything downstream. Precision should follow error propagation, not the marketing prominence of a number format.

Change the amount of work before buying more workers

The discrete Fourier transform is an older, cleaner rebuke to throughput worship. Its direct formulation computes every output from every input. Cooley–Tukey factorization exposes shared structure and reduces asymptotic arithmetic from quadratic to N log N. Cooley and Tukey, 1965.

For a conventional radix-2 count at N = 1,024, a direct complex DFT uses N² = 1,048,576 complex multiplications; the FFT uses (N/2) log₂N = 5,120 twiddle multiplications. The ratio is 204.8. This textbook count includes trivial multiplications that practical implementations can eliminate and excludes twiddle generation. It is neither a floating-point-instruction count nor a measured speedup.

Logarithmic operation-count graph for powers of two from 16 to 4096. Direct complex DFT multiplications grow as N squared; radix-2 FFT twiddle multiplications grow as N over two times log base two of N. At 1024 the counts are 1048576 and 5120.

Figure 4. Formula-derived operation counts, not benchmark data. Both curves count complex multiplications under the stated conventional model, including trivial twiddles and excluding twiddle generation. Memory traffic, additions and numerical differences are outside this plot.

A hardware team can spend years improving the energy of a multiplication. A mathematical reformulation can remove most of the multiplications from the specification. The two efforts reinforce one another, but their order matters. Accelerating the direct DFT first would optimize an unnecessarily large obligation.

Asymptotic efficiency is nevertheless insufficient for implementation choice. FFTW's published design uses a planner to select decompositions for the machine; its authors explicitly discuss the cost of planning and the value of reusing a plan. Data layout, vectorization and cache behavior influence which mathematically valid decomposition wins. Frigo and Johnson, 2005.

There is a subtle accounting trap here. An expensive search for the fastest execution plan may be sensible for millions of transforms and wasteful for one. Preparation belongs in the energy budget unless repeated use genuinely amortizes it. Moving costs outside a benchmark window does not eliminate them.

The same reasoning applies to memoization. A cache needs keys, lookups, storage and invalidation. Its benefit depends on reuse and on the cost of recomputation. A cached result that becomes stale can be worse than wasted work: it can produce the wrong answer quickly. Elimination is an engineering claim requiring a correctness argument.

Some work exists precisely to be expensive

Ola's article on scrypt supplies the necessary counterexample. A password derivation function is not designed simply to return an answer cheaply. Its security purpose includes making repeated guesses costly for an adversary. Percival's scrypt construction deliberately makes memory cost part of that requirement. Removing the cost while preserving the output would undermine the intended economics of defense. Percival, 2009.

This is why “do less” cannot mean “delete every apparent redundancy.” Authentication checks, error detection and fault tolerance buy properties beyond the immediate numerical output. A duplicate calculation may be waste in a rendering pipeline and a deliberate diagnostic in a safety-critical controller. The contract determines which interpretation is correct.

The same caution applies to early termination. Stopping an iterative solver once its acceptance criterion is met can avoid unnecessary iterations. Weakening that criterion is a different product decision. Both reduce runtime, but only one preserves the original obligation.

Engineering discipline begins by making those obligations explicit. Otherwise an impressive efficiency graph can hide a change in what the system guarantees.

Put absence in the design review

A useful energy review should start with a trace of one completed task. Which outputs are consumed? Which intermediates cross a memory boundary? Which values are recomputed, and why? Where does additional precision change acceptance? What is the cost of proving that an early exit is valid?

Then measure the candidate against the same workload and correctness criteria. Report task energy alongside latency, power and quality; identify whether the boundary is a device, server or complete service. Include preparation, transfers and validation where they belong. Use repeated trials and disclose variation. Keep cold-start and steady-state results distinct when both matter.

Lower average utilization can be a success if the task finishes sooner and energy falls. High utilization is valuable only after the work itself has earned its place. Filling an arithmetic array with unnecessary operations makes a convincing demonstration of the array, not of the system.

There is also a limit to the slogan in the subtitle. A computation avoided does not make the rest of a powered system free. Energy savings depend on what activity disappears, how runtime changes, and whether idle resources can reduce power. The claim is an invitation to remove an obligation, not a promise that every deleted instruction yields a measurable saving.

The hardest architecture decision is often subtraction. It requires enough understanding of the mathematics to preserve the answer, enough understanding of the implementation to preserve the advantage, and enough confidence to defend a design whose achievement is less visible activity.

We should still build faster multipliers and better memories. But before asking how many operations a machine can perform, ask why the result requires those operations at all. The most consequential performance counter may be the one that never increments.

References

  1. Mark Horowitz. “Computing's Energy Problem (and What We Can Do About It).” ISSCC, 2014, pp. 10–14. DOI: 10.1109/ISSCC.2014.6757323. Figure 1.1.9 supplies the historical estimates.
  2. Samuel Williams, Andrew Waterman and David Patterson. “Roofline: An Insightful Visual Performance Model for Floating-Point Programs and Multicore Architectures.” Berkeley report UCB/EECS-2008-134, 2008; subsequently Communications of the ACM 52(4), 2009. DOI: 10.1145/1498765.1498785.
  3. Tri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra and Christopher Ré. “FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness.” NeurIPS 35, 2022. arXiv:2205.14135v2, Sections 3.1 and 4.1, Table 1.
  4. IEEE. “IEEE Standard for Floating-Point Arithmetic.” IEEE Std 754-2019. DOI: 10.1109/IEEESTD.2019.8766229.
  5. Erin Carson and Nicholas J. Higham. “Accelerating the Solution of Linear Systems by Iterative Refinement in Three Precisions.” SIAM Journal on Scientific Computing 40(2), A817–A847, 2018. DOI: 10.1137/17M1140819. Author's accessible explanation.
  6. James W. Cooley and John W. Tukey. “An Algorithm for the Machine Calculation of Complex Fourier Series.” Mathematics of Computation 19, 297–301, 1965. DOI: 10.1090/S0025-5718-1965-0178586-1.
  7. Matteo Frigo and Steven G. Johnson. “The Design and Implementation of FFTW3.” Proceedings of the IEEE 93(2), 216–231, 2005. Author-hosted paper. DOI: 10.1109/JPROC.2004.840301.
  8. Colin Percival. “Stronger Key Derivation via Sequential Memory-Hard Functions.” BSDCan, 2009. Author-hosted paper.
  9. Ola Stene-Johansen. “Why Scrypt Is a Better Hashing Algorithm Than SHA-256.” Logic Unbound, 27 November 2026. Editorial reference.

Keep the idea going.

MODERATED DISCUSSION

The conversation starts with a good question.

Sign in to contribute ↗

Follow the thread.