Fewest Pulses to Target: Optimal Write-Verify Policies for Multi-Level RRAM as a Stochastic Shortest-Path Problem, a Certificate for Simple Heuristics, the Choice of Starting State, and Verify Read Noise

Multi-level resistive memory (RRAM) cells are programmed by write-verify loops: apply a pulse, read the conductance, and repeat until it lies inside the target window. The number of pulses sets programming time, energy and wear, yet pulse-selection rules are usually designed by hand. This paper casts write-verify as a stochastic shortest-path problem: the state is the read conductance, the actions are SET or RESET pulses of several amplitudes, and each pulse moves the conductance by a random, state-dependent step. Value iteration gives the policy with the fewest expected pulses for the model, and therefore a certificate against which heuristics can be measured. In a simplified device model with eight levels, six pulse amplitudes, log-normal step variability and saturating steps, the optimal policy needs 9.0 pulses on average from a reset cell for a window of plus or minus 1 unit. A proportional greedy rule, which picks the amplitude whose mean step best matches the remaining distance, is within 0.3 percent of optimal at every window width and within 0.4 percent when the variability is doubled; an amplitude ramp needs about twice as many pulses and a fixed small pulse 26 to 31 times as many. Expected pulses grow by about half a pulse for each halving of the window. The largest saving does not come from pulse choice but from the starting state: programming the upper four levels down from a fully SET cell instead of up from a fully RESET cell halves the average from 9.0 to 4.4 pulses. Verify read noise turns the problem into a partially observed one; a guard band and averaged reads restore accuracy (from 79 to 98 percent truly in window at read noise equal to the window half-width) at a cost in pulses and reads. All numbers come from CPU numpy runs of an illustrative model, not from measured devices. Concept and methods paper. Numerical illustrations were produced by the author on a CPU with numpy, using a simplified model with illustrative parameters; they illustrate the method and are not hardware measurements; no GPU was used. Any other numerical values quoted come from the cited sources. Self-drawn figures (scripts/make_figs.py). AI-assisted drafting; the author is responsible for the content.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-03
DOI
https://doi.org/10.5281/zenodo.24767102
Primary Topic
Advanced Memory and Neural Computing
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Fewest Pulses to Target: Optimal Write-Verify Policies for Multi-Level RRAM as a Stochastic Shortest-Path Problem, a Certificate for Simple Heuristics, the Choice of Starting State, and Verify Read Noise

I-Wei Tseng
Zenodo (CERN European Organization for Nuclear Research)
Advanced Memory and Neural Computing
preprint

Fewest Pulses to Target: Optimal Write-Verify Policies for Multi-Level RRAM as a Stochastic Shortest-Path Problem, a Certificate for Simple Heuristics, the Choice of Starting State, and Verify Read Noise

I-Wei Tseng
preprint en

Abstract

Multi-level resistive memory (RRAM) cells are programmed by write-verify loops: apply a pulse, read the conductance, and repeat until it lies inside the target window. The number of pulses sets programming time, energy and wear, yet pulse-selection rules are usually designed by hand. This paper casts write-verify as a stochastic shortest-path problem: the state is the read conductance, the actions are SET or RESET pulses of several amplitudes, and each pulse moves the conductance by a random, state-dependent step. Value iteration gives the policy with the fewest expected pulses for the model, and therefore a certificate against which heuristics can be measured. In a simplified device model with eight levels, six pulse amplitudes, log-normal step variability and saturating steps, the optimal policy needs 9.0 pulses on average from a reset cell for a window of plus or minus 1 unit. A proportional greedy rule, which picks the amplitude whose mean step best matches the remaining distance, is within 0.3 percent of optimal at every window width and within 0.4 percent when the variability is doubled; an amplitude ramp needs about twice as many pulses and a fixed small pulse 26 to 31 times as many. Expected pulses grow by about half a pulse for each halving of the window. The largest saving does not come from pulse choice but from the starting state: programming the upper four levels down from a fully SET cell instead of up from a fully RESET cell halves the average from 9.0 to 4.4 pulses. Verify read noise turns the problem into a partially observed one; a guard band and averaged reads restore accuracy (from 79 to 98 percent truly in window at read noise equal to the window half-width) at a cost in pulses and reads. All numbers come from CPU numpy runs of an illustrative model, not from measured devices. Concept and methods paper. Numerical illustrations were produced by the author on a CPU with numpy, using a simplified model with illustrative parameters; they illustrate the method and are not hardware measurements; no GPU was used. Any other numerical values quoted come from the cited sources. Self-drawn figures (scripts/make_figs.py). AI-assisted drafting; the author is responsible for the content.

Zenodo (CERN European Organization for Nuclear Research)
Advanced Memory and Neural Computing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon