Which Silicon Measurements Does a Calibrated Memory Simulator Rest On?

Computer architects test new designs in software simulators because building chips is slow and expensive. For virtual memory, the part of the processor that translates program addresses into physical memory locations, simulators are known to be wrong in ways that matter. A common fix is to measure real hardware on many short slices of real programs and train a small correction model that predicts how far the simulator is off. Nobody then checks which of those hardware measurements the corrected simulator's conclusions actually depend on. That gap is dangerous. A few windows polluted by background kernel activity, or a single unusual workload, can quietly decide whether design A looks better than design B.

We propose to answer that question with training-data attribution. Attribution methods estimate how a trained model's output would change if particular training examples were removed. Here the "training examples" are measured windows of hardware execution, and the "output" is a design verdict: the predicted difference in address-translation cost between two candidate configurations. The two-sentence version is this. Train a neural correction model that maps simulator output to measured silicon behavior for address translation. Then use attribution methods built for non-convex models to find which silicon measurements drive a given design conclusion, flag corrupted ones, and choose what to measure next. A reconfigurable FPGA platform lets us build both candidate designs and check the verdicts against real hardware.

Core Claim

Address translation is a natural first test case because the simulator gap is large and well documented. Translation means walking a multi-level page table, three to five memory accesses per miss and up to fifteen under virtualization, as described in CVA6 RISC-V Virtualization. The small cache of recent translations, the translation lookaside buffer (TLB), hides most of that cost when it hits. Simulators that skip the operating system get page-fault and page-walk behavior badly wrong. Virtuoso narrows the gap by running an imitation kernel (MimicOS) alongside the Sniper simulator. It reports 82% accuracy in modeling a real server CPU's memory management unit, up to 79% accuracy on page-fault latency, and 21% higher instructions-per-cycle (IPC) accuracy than plain Sniper. That still leaves a substantial residual error. Virtuoso does not explain which workload behavior causes it.

Our claim is that a learned residual model on top of Virtuoso can be made both accurate and auditable. The model maps per-window simulator counters, page-size state, and fragmentation state to the measured gap in page-walk cycles and IPC. Auditable means that query-specific group attribution identifies, before any extra hardware is built, the measurements whose removal would flip or substantially shift a design verdict. The attribution has to handle three conditions: a non-convex model, removal of whole groups of windows (an entire workload, an entire page-size policy), and the possibility that removing data sends training to a different solution.

Two pieces of attribution theory make this more than a transplant of off-the-shelf tools.

The first is On the Accuracy of Newton Step and Influence Function Data Attributions. It shows that when a group of $k$ examples is removed from a model with $d$ parameters, the classical influence function's error exceeds that of a single Newton step by a gap growing like $(k^{3/2}d^{1/2}+k^{1/2}d^{3/2})/n^2$. It also proposes a cheaper rescaled variant (DRIF) that tracks Newton-step accuracy. Workload-level removal is exactly the large-$k$ case, so this result tells us which estimator to prefer, not just that one exists.

The second is Distributional Training Data Attribution, which recasts attribution as predicting shifts in the distribution of trained models rather than in one parameter vector. That is the right target when the question is whether a design ranking holds across retraining seeds.

Research Program

Paired dataset. We build a dataset of paired windows on two platforms. On a server-class x86 machine we run the Virtuoso workload set: GraphBIG, HPCC, XSBench, function-as-a-service (FaaS) cold starts, and LLM inference. Each runs under 4 KiB pages and transparent huge pages, at several controlled levels of memory fragmentation. For each window of about ten million instructions we record hardware performance counters for data-TLB misses, second-level-TLB misses, page-walk cycles, and IPC. We record Virtuoso's predictions for the same window.

On the RISC-V side we use the CVA6 core on the Cheshire FPGA platform running Linux, the setup of AraOS, with RiVEC kernels and matrix multiplication. We include indexed vector gathers, which AraOS identifies as the case that overwhelms the shared translation hardware. The RISC-V platform is what makes the study decisive. TLB entry count, TLB partitioning in the style of CVA6-VMRT, and the vector unit's translation batching can all be resynthesized. Design verdicts there can therefore be checked against real silicon rather than against another model.

Correction model. The residual model is a small ensemble of multilayer perceptrons, on the order of tens of thousands of parameters. It predicts the silicon-minus-simulator gap per window. Calibrated predictions for a hypothetical configuration come from running Virtuoso on that configuration and adding the predicted residual.

Design queries. A design query $q$ is the predicted difference in total page-walk cycles between configurations A and B on a target workload. For a removed group $S$ of training windows, we estimate the change in $q$ with a Newton step on the ensemble members. The direct inverse-curvature solve is damped, so we also use the DRIF rescaling and compare the two. The attribution primitives (Hessian-vector products, conjugate gradients, random projections) come from dattri, so the contribution is the query design and evaluation, not new solver code.

Three uses of the attribution scores.

The first is an audit. We report the smallest set of windows whose removal flips the sign of $q$, as a fragility measure for each design conclusion.

The second is contamination detection. We inject realistic corruption into a subset of windows: interference from the huge-page compaction daemon, interrupt storms, and counter multiplexing artifacts. We then ask whether attribution ranks those windows first.

The third is measurement selection. Given a budget of new silicon runs, we choose the workload and configuration cells whose measurement is predicted to most reduce error on the query.

Baselines

The naive reference point is uncorrected Virtuoso. Its published standing is 82% memory-management-unit accuracy and 21% higher IPC accuracy than Sniper (Virtuoso). We rerun it on our own windows so all methods share the same data. No reported result was found on Lacuna for per-window page-walk-cycle residuals on either platform, so this number is established by our own measurements.

The strongest existing calibration method is GemStone-style screened regression from Accurate and stable empirical CPU power modelling. It selects non-redundant counters by clustering and variance-inflation screening, then fits a regression. It reports 2.8% mean absolute percentage error, but for power on Arm cores, not for translation cost. We port it to the same counters and the same leave-one-workload-out splits. It gets the same hyperparameter search budget as our neural model. Our model must beat it on held-out-workload error to justify a non-convex model at all. If it does not, the program falls back to auditing the linear model, where exact attribution is cheap, and we say so.

For attribution quality, the reference is exact group retraining of the ensemble, with five seeds per removed group. We compute it for every workload-level group and for a random sample of window-level subsets, under the same compute accounting. The competitors are:

  • classical damped influence functions;
  • TRAK-style projected-gradient ensembles, which dattri reports as strong on deep models while explicit influence functions run out of memory;
  • the Newton step;
  • DRIF.

For reference, dattri reports a leave-one-out correlation of about 0.88 for influence functions on logistic regression on MNIST. That is the convex-setting ceiling we expect to fall short of. Success means higher linear-datamodeling score (rank agreement between predicted and actual effects of random subset removals) and higher sign-flip agreement on design queries than TRAK and damped influence functions, at under a tenth the cost of retraining.

The ablation that isolates the key ingredient replaces the query-specific score with query-agnostic scores. These are each window's own training loss and its self-influence. If generic scores rank contaminated or decision-critical windows as well as query-specific ones, the "design query" framing adds nothing.

For measurement selection, the baselines are random selection, coverage-based clustering of windows in counter space (the SimPoint idea), and ensemble-disagreement selection (measure where the ensemble members disagree most). All get the same number of new silicon runs.

Why not just…?

Why not just retrain without each workload? At the workload level there are only a few dozen groups, so exact retraining is affordable, and we use it as ground truth. The method is needed at the window level and for subsets. There are tens of thousands of windows and combinatorially many subsets, and contamination lives there. If window-level problems turn out to be absent or harmless, this alternative wins. The contamination experiment is designed to show whether that is the case.

Why not just flag windows with large residual error? This is the classic noisy-label baseline, and it is a serious threat. Contaminated windows are often outliers. It fails when a corrupted window is fit well but pulls the model toward a wrong conclusion on a specific query. A compaction stall coinciding with a gather-heavy phase is an example: it inflates the apparent cost of indexed vector access. We compare the two directly. If loss ranking matches attribution on contamination recall, we drop the claim for that use and keep only the audit.

Why not just use feature importance on the counters? Feature-attribution methods say which counter matters, which is GemStone's question. They cannot say which measurement to distrust or re-collect. That gap is exactly why Virtuoso's validation could not localize its residual error. The two are complementary, and we report both.

Why not just prototype every design on the FPGA? Each resynthesis takes hours to days. The FPGA clock also distorts the ratio of compute time to memory latency relative to an ASIC, as discussed around CVA6-VMRT. We use the FPGA sparingly, as the referee, not as the search tool.

Decisive Experiments

The first test is whether attribution predicts real verdict flips. On the FPGA we pick verdicts the calibrated simulator gets right, for example 16- versus 32-entry TLBs under gather-heavy RiVEC kernels. We remove the windows the attribution identifies as the smallest flipping set, retrain, and check two things: whether the retrained model's verdict actually flips, and whether it now disagrees with resynthesized silicon. A random set of equal size should not flip the verdict.

The second test is contamination recall at a fixed review budget, against loss ranking.

The third test is held-out-workload error after the same number of new silicon runs, against ensemble-disagreement selection. Across all three, the regime-specific prediction from the Newton-step analysis is that DRIF's advantage over damped influence functions grows with group size. If it does not, that bears on whether the existing theory extends beyond convex models.