Manuscript Offprint

arXiv:2610.03197

Closing the Prediction Gap: Completing Machine Shape So That Predicted Time, Power, Energy, and Mapping Match What Real Hardware Does

Lenore Mullin, Gaetan Hains

Lenore M. Mullin

Professor Emerita, College of Nanotechnology, Science and Engineering

University at Albany, SUNY, Albany, NY

lmullin@albany.edu

Gaétan Hains

LACL, Université Paris-Est Créteil

Créteil, France

gaetan.hains@u-pec.fr

Abstract—A companion paper derives a weighted, communication-free partition for heterogeneous, multi-institution device ensembles from each device's measured shape, ρmachine(d)\rho_{\text{machine}}(d), and validates its predictions on real hardware. Its experiments, however, reveal that ρmachine\rho_{\text{machine}} is incomplete: fp32-to-fp16 speedup and power shifts are not fully indexed, and memory-capacity predictions depend on an assumed rather than measured reservation overhead.

This paper extends the theory by indexing five previously unmeasured fields in the same ψ\psi-selection vocabulary: memory capacity MicapM_i^{cap}, power draw PiP_i, execution-unit capability XdX_d, compiler-directive configuration CdC_d, and memory-reservation overhead RdR_d. We introduce reached(d), a Boolean indicating whether compiled code actually dispatches to specialized hardware. This distinction explains behavior such as NVIDIA's fp16 power shift, which cannot be predicted from hardware availability alone. We restate the companion paper's time and energy models in terms of reached(d), rather than merely the presence of specialized execution units.

Because MoA fixes a computation independently of its target, we define a two-part admissibility criterion for compiler directives: a directive must select a real hardware quantity without discretionary reordering, and it must be deterministic rather than compiler-overridable. Across Intel, AMD, NVIDIA, OpenMP, OpenACC, and Open MPI, this leaves a small admissible class: cache-placement controls, deterministic vector or tile widths, and occupancy or placement caps. Heuristic mechanisms, including auto-vectorization and autotuning enable flags, are excluded and represented by a residual ϵd(k)\epsilon_d^{(k)}.

We validate the extended model on five production devices: NVIDIA A100 and H100, AMD MI100, NVIDIA V100, and Intel Max 1550. On each device, we directly measure or independently establish all five fields. Results show that specialized-hardware reachability can be real but partial, occupancy limits must be established per device and admissible realization, and memory-reservation overhead ranges from approximately 0.004 to 0.030. We also measure a negative residual of -9.8% for Triton's excluded autotuner, demonstrating that an unvalidated heuristic can have an effect opposite to a presumed penalty. Together, these experiments close all five fields for every device in the companion paper's ensemble and convert previously assumed or unindexed behavior into measured, target-specific quantities.

I. INTRODUCTION

A prediction that is only checked where it happens to already be right is not a validated theory; it is a coincidence reported as one. The companion paper to this one [15] does not make that mistake: every one of its predicted numbers – a finish time, a memory ceiling, an energy figure – is checked against real, measured hardware, and two of those checks come back wrong. Both failures are diagnosed precisely, in closed form, rather than patched around, and both diagnoses point to the same conclusion stated only in that paper's own future-work section: ρmachine(d)\rho_{\text{machine}}(d), the tuple every prediction in that paper's theory is built from, is missing fields that its own real experiments already show are load-bearing.

This paper’s job is narrow and stated precisely: close those fields, giving the missing quantities the same formal status every already-indexed field of ρmachine\rho_{machine} has – a name, a ψ\psi-selectable index position, and a stated role in a closed-form prediction – reasoning throughout from the companion paper’s own real numbers. A theory that names a gap in prose but leaves the corresponding equation silently incomplete has not closed anything; this paper’s contribution is closing it in the equations themselves, and, for one device, checking that closure against a first real measurement (Section VIII) rather than leaving the extended theory entirely unvalidated.

Why any of this matters, stated once at the outset for a reader who has not yet been asked to care about a specific index position in a specific tuple: large language models can already translate source code from any language to any other, fluently, on request. What they cannot do is guarantee that the result is correct, memory-optimal, or predictable on the hardware it actually runs on – each translation is its own unverified event, earning nothing from the last one (Figure 1). A formal intermediate representation is what turns fluent translation into trustworthy translation: derive a computation’s meaning once, independent of target (MoA’s DNF), and mechanically produce a verified, memory-optimal realization per target (its ONF) – one proof reused, not re-earned per language, per vendor, per device. Prior work in this research program argues this case directly and tests it against production kernels on real hardware [14]. ρmachine(d)\rho_{\text{machine}}(d) is the other half of that same argument: a formal derivation is only as trustworthy as the machine-shape facts it is derived against, and this paper’s job, narrow as it is, is making sure none of those facts are still missing.

AI can translate any language to any language -- without a formal intermediate representation, nothing about the translation is predictable

Naive AI translation: one unverified event, per target, every time LLM guess, fresh each time

Figure

correct? fast? portable? -- unknown until tested

a separate, independent guess

no relationship to the other two

No shared derivation between targets -- each arrow is its own translation, re-earning correctness and performance from nothing, one language pair at a time

MoA-mediated: one formal derivation, reused, per target mechanical rewrite

Figure

same proof applies

same proof applies

same proof applies

One proof against the DNF covers every ONF derived from it -- correctness and the memory-optimal schedule both carry over, not re-earned per target

Fig. 1. Why a formal intermediate representation, not just a capable translator: naive AI translation (top) produces a fresh, unverified guess per target language, with no relationship between one translation and the next. MoA-mediated translation (bottom) derives one formal specification once (the DNF) and mechanically produces each target's realization (its ONF) from it, so correctness and the memory-optimal schedule both carry over rather than being re-earned per target – the argument developed and tested on real hardware in [14].

References (11)