Synthesizing Fast and Accurate Immediate-Response DRAM Latency Models with Agents
Luo et al. in Agents
On 24 DDR5-4800 workloads, can agents build a latency model without cycle-by-cycle simulation?
Synthesizing Fast and Accurate Immediate-Response DRAM Latency Models with Agents
A one-shot latency estimate is the speed bargain
Cycle-level models track every DRAM command and timing constraint, but are slow and difficult to integrate into fast, parallel simulators.
An immediate-response model predicts each request's latency at admission, using only past state; it returns the answer immediately and never revises it.
Later arrivals can alter scheduling after a prediction is fixed.
Agents build models in a closed loop

Each iteration proposes a C++ model, evaluates it against Ramulator 2, gets an independent LLM review, then carries a summary forward. Agents saw training workloads and anonymous validation metrics, never test data or web search.
Why score individual requests too?
- 1
Compare both levels
Against a cycle-level oracle, measure final core-cycle error and matched per-request latency error.
- 2
Catch cancellation
A good total can hide overpredicted requests canceled by underpredicted ones.
- 3
Normalize request error
Divide summed absolute latency differences by request count and oracle mean latency; optimize this with core-cycle error.
Opus beats the strongest baseline for each metric
In the 24-workload DDR5-4800 comparison, Mess: 8.57% mean core-cycle error; queued FixedLat: 0.465 mean normalized MAEReq.
Across 24 single-core test workloads, Opus averages 0.15% core-cycle error and 0.063 normalized MAEReq against the cycle-level oracle.
56.5× lower core-cycle error than Mess; 7.4× lower MAEReq than queued FixedLat.
How Opus 5.5 approximates DRAM scheduling
- 1
Track resource timing
Per-bank timers and channel-wide ACT/column calendars record when commands can next issue.
- 2
Book the read
Schedule precharge (PRE), activate (ACT), and read (RD) at legal slots; a row hit reuses the bank's open row.
- 3
Replay buffered writes
Buffer writes; replay an event-driven, watermark-triggered FR-FCFS drain that prioritizes row hits. A read returns its booked RD time plus CAS latency and burst.
Accuracy and standalone speed pull apart

Rows vary open-loop synthetic pattern, columns read ratio, and curves offered arrival interval (five-run medians). Across 30 settings, geometric-mean standalone speedup over oracle: GPT-6 Astra 31.63×; Opus 5.5 6.44×.
Do immediate-response models speed up zsim?

Geometric-mean speedup over cycle-ticked Ramulator 2; counts in parentheses. Single-core horizontal lines: fixed latency, same weave path. Gains: 2.2–2.8× single-core, 3.6–7.3× four-core multiprogram. Speed only; no accuracy.
A DDR5 predictor transfers to LPDDR6 and HBM4

LPDDR6 left, HBM4 right. Hatched: unmodified GPT-6 Astra and Opus 5.5; solid: new 10-iteration synthesis runs. Across 24 tests, mean core-cycle error: 0.65–1.07% unmodified, 0.04–0.58% new, ≥14.03% baselines.
Writes and future scheduling remain hard
Buffered writes
Write-overlap reads are underpredicted; 18.9% of test reads drive 33–47% of absolute per-request error. Three models book writes at arrival, overpredicting later reads.
Unseen reordering
When same-bank row hits arrive close behind a conflict, FR-FCFS may serve them first; a latency fixed at admission cannot know that future order.
Near saturation
At 95% of oracle load, GPT-6 Astra underpredicted median read latency by 14.5%; small throughput mismatches amplify near saturation.
Why it matters
- Agents can synthesize readable DRAM predictors that approximate cycle-level behavior without ticking every DRAM cycle.
- Choose Opus 5.5 for test accuracy or GPT-6 Astra for standalone speed; validate write-heavy cases.
- Can better estimates of buffered-write timing close the largest remaining error source without access to future requests?
11 slides, 3 min
4 days ago