arXiv:2609.04040cs.ARSep 2026

Manuscript Offprint

arXiv:2609.04040

Confidence-Gated Admission for Hardware Prefetching: When the Gate Matters More Than the Predictor

Youssef Majdane, Simone Jarno Casartelli, Enrico Lopedoto

Youssef Majdane

Algorithmica Solutions

youssef@algorithmicasolutions.com

Simone Jarno Casartelli

Algorithmica Solutions

simone@algorithmicasolutions.com

Enrico Lopedoto

Algorithmica Solutions

enrico@algorithmicasolutions.com

Abstract—Learned cache prefetchers are typically evaluated against classical predictors that always issue requests, confounding the prediction model with the admission policy. We disentangle these variables with matched controls: the same admission gate is applied to both a 257-parameter online MLP and a classical stride predictor. The neural advantage vanishes; the MLP is indistinguishable from gated stride on random traffic and slower on most regular streams. The gate itself is architecturally useful independent of the predictor: on twenty SPEC CPU2017 programs in native ChampSim, it removes 35% of prefetches and improves accuracy from 11% to 15%, but DRAM reads change by only -0.07%—demonstrating that proxy metrics do not predict endpoint behavior. We prove gate-closed execution reproduces the no-prefetch baseline exactly. The gate matters more than the predictor, and better proxies do not imply better endpoints.

Index Terms—cache prefetching, confidence gate, matched controls, admission policy, safety property, ChampSim, reproducibility

I. INTRODUCTION

The memory wall has not moved: an L1 miss costs tens of cycles, and for memory-bound code that cost dominates. Prefetching attacks the problem by predicting the next addresses and bringing their lines into the cache before they are requested [1], [2]. Decades of work produced a robust toolbox for the easy cases: next-line prefetching, stride detection [2], signature-path lookahead [3], spatial/best-offset units [4], and Bingo spatial prefetching [5]. On sequential, strided, and gather-within-a-stream traffic these mechanisms are close to optimal.

The learned-prefetching wave. A recent generation of neural prefetchers has pushed beyond heuristics. Pythia [7] cast prefetching as online reinforcement learning. TransFetch [8] applied transformers with fine-grained address segmentation. Hashemi et al. [6] demonstrated that LSTMs can learn irregular memory access patterns. DART [9] achieved hardware-practical inference through tabularization at IPDPS 2024, and Pathfinder [10] demonstrated real-time online learning with delta patterns at ASPLOS 2024.

The confounded evaluation. These systems share a consequential evaluation pattern: a learned prefetcher with an implicit or explicit confidence mechanism is compared against a classical unit that always issues requests. This confounds two independent variables—the address-prediction model and the admission policy. A gated learned predictor that stays silent on random traffic looks “safer” than an always-on stride unit, but the safety comes from the gate, not from the neural network. Prior throttling mechanisms such as Feedback-Directed Prefetching [30] adjust aggressiveness based on accuracy feedback, but apply a single policy to one predictor at a time. No prior work we have found uses a matched-control design that applies the same admission policy to both a learned and a classical predictor before drawing conclusions about the predictor's value.

Why it matters now. Real workloads are rarely all-or-nothing. An LLM inference loop cycles between sequential KV-cache appends and far attention gathers [13], [14]; a retrieval agent alternates long context scans with scattered lookups; embeddings are dense rows reached by sparse indices. A prefetcher that cannot distinguish “regular, with the occasional far access” from “pure noise” will misbehave on exactly these workloads—and an evaluation that credits the prediction model for what the gate delivers will misguide architectural decisions.

Contributions. We make four contributions:

  1. Methodology. A matched-control falsification that applies the same confidence and regularity gates to both the MLP and a stride predictor, isolating prediction from admission (section III-E).

  2. Architecture. A confidence gate (median-error) and a regularity gate (dominant-delta support) that suppress prefetching on unlearnable streams, useful independent of the predictor. We prove that gate-closed execution equals the baseline (Theorem 1) and verify empirically that the gate closes on all tested unlearnable streams (section IV).

  3. External validation. A full twenty-program SPEC CPU2017 study in native ChampSim (eleven development, nine frozen holdout), with predictions registered before observation, showing that proxy-metric improvements (fewer prefetches, higher accuracy) do not translate to endpoint gains (DRAM reads, IPC) (section VII).

  4. Reproducibility. Every claim is machine-verifiable: verify_paper.py checks local results, verify_research.py checks the full experimental matrix, and champsim/verify_results.py reconstructs native aggregates from raw logs (Reproducibility Statement, below).

References (30)