# Synthesizing Fast and Accurate Immediate-Response DRAM Latency Models with Agents

> LLM agents iteratively synthesize readable DRAM latency models, scoring both final core-cycle and individual-request errors against a cycle-level oracle. On 24 DDR5-4800 test workloads, Opus 5.5 reaches 0.15% mean core-cycle error, 56.5× lower than Mess.

- arXiv: https://arxiv.org/abs/2611.38375
- Authors: Haocong Luo, Nisa Bostancı, Ataberk Olgun, Harsh Songara, Jikun Wang, Konstantinos Sgouras, Konstantinos Kanellopoulos, Andreas Kosmas Kakolyris, Onur Mutlu
- Published: 2026-12-01
- Topic: Agents
- Visual carousel: https://instaxiv.com/p/2611.38375
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## On 24 DDR5-4800 workloads, can agents build a latency model without cycle-by-cycle simulation?

**0.15%** Opus 5.5 mean core-cycle error vs oracle

## A one-shot latency estimate is the speed bargain

**Cycle-level model:** Cycle-level models track every DRAM command and timing constraint, but are slow and difficult to integrate into fast, parallel simulators.

**Immediate response:** 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

![Figure 1](https://cdn.instaxiv.com/figures/2611.38375/figure1.webp)

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. (Figure 1)

## 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

**Metric-leading baselines:** In the 24-workload DDR5-4800 comparison, Mess: 8.57% mean core-cycle error; queued FixedLat: 0.465 mean normalized $MAE_{Req}$.

**Opus 5.5, DDR5-4800:** Across 24 single-core test workloads, Opus averages 0.15% core-cycle error and 0.063 normalized $MAE_{Req}$ against the cycle-level oracle.

56.5× lower core-cycle error than Mess; 7.4× lower $MAE_{Req}$ 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

![Figure 5](https://cdn.instaxiv.com/figures/2611.38375/figure5.webp)

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×. (Figure 5)

## Do immediate-response models speed up zsim?

![Figure 11](https://cdn.instaxiv.com/figures/2611.38375/figure11.webp)

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. (Figure 11)

## A DDR5 predictor transfers to LPDDR6 and HBM4

![Figure 9](https://cdn.instaxiv.com/figures/2611.38375/figure9.webp)

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. (Figure 9)

## 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.

Best used when: Best evidence is on read traffic well below saturation; validate write-heavy or near-capacity cases against a cycle-level oracle.

## Key takeaways

- 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?

## Links

- arXiv: https://arxiv.org/abs/2611.38375
- PDF: https://arxiv.org/pdf/2611.38375

## Citation

```bibtex
@article{luo2026synthesizing,
  title   = {Synthesizing Fast and Accurate Immediate-Response DRAM Latency Models with Agents},
  author  = {Luo, Haocong and Bostancı, Nisa and Olgun, Ataberk and Songara, Harsh and Wang, Jikun and Sgouras, Konstantinos and Kanellopoulos, Konstantinos and Kakolyris, Andreas Kosmas and Mutlu, Onur},
  journal = {arXiv preprint arXiv:2611.38375},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.38375}
}
```
