arXiv:2610.20359cs.ETOct 2026

Manuscript Offprint

arXiv:2610.20359

Closed-Form Optimal Weight Splitting for Matrix-Vector Multiply on Noisy In-Memory Accelerators

Mehmet Aktukmak, David A. Roberts

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mehmet Aktukmak and David A. Roberts

Micron Technology, Inc.

Abstract—Analog in-memory computing performs the matrix-vector multiplications of neural networks directly inside the memory array, which saves time and energy. But each memory cell stores only a few levels and is noisy, so one cell cannot hold a weight precisely. The standard fix is to split each weight across several cells, like digits of a number. The base of this split decides the trade-off: a large base gives fine resolution but amplifies the noise, and a base near one averages the noise but wastes resolution. The best-known prior analysis considers only the noise, and so it always picks a base of one. We propose a principled method that also accounts for the limited number of levels per cell. It gives the optimal base in closed form, from a single measurement of the device noise. On a device-physics simulator, the optimal split is 3.3 dB more accurate than the common base-16 split, and it beats equal splitting in end-application accuracy.

I. INTRODUCTION

The matrix–vector multiply (MVM) is the computational core of scientific computing (the inner loop of Krylov solvers, the application of discretized differential operators, dense factorizations) and of machine-learning inference. Analog in-memory computing (AIMC) performs it in a single physical step: weights become the conductances of cells in a resistive crossbar, the input vector is applied as voltages, and by Kirchhoff's laws the bit-line currents sum to the matrix–vector product. For MVM-bound workloads the efficiency gain is large enough to make AIMC a seriously pursued accelerator substrate.

Unlike a digital low-precision format, whose error is deterministic rounding a numerical analyst can bound, an AIMC crossbar realizes arithmetic with a stochastic error budget: the programmed state is perturbed by device noise, and the analog summation adds IR-drop and analog-to-digital conversion error on top. The designer's knob is therefore not the rounding mode but the encoding: how to represent each value across the physical cells so that this hardware noise does the least damage to the result. Choosing that encoding for maximum accuracy on an imprecise unit is exactly the question this workshop poses of low-precision hardware in general; AIMC is an extreme, and increasingly practical, instance.

The standard encoding lever is redundancy: store each value across several cells and let the bit-lines sum them, like the limbs of a multi-word number, except each limb is physically noisy. This creates a genuine tension. Spreading a value across a fine place-value grid (a large base) buys resolution but gives the high tile a large place value, which amplifies its noise in the summed output; storing identical copies (base one) averages the noise away but adds no resolution. The base of the representation trades these off. The closest prior analysis, Le Gallo et al. [1], derives a closed-form slicing error for analog crossbars but models device noise only; that term is monotone in the base, so their closed form gives an optimal base of one (equal-fill), and the resolution axis never enters. Their experiments do report a case where b=2 helps, but through an error-correction programming algorithm, not from the representation itself, and without a model of why. Others fix the base empirically [10] or search it per device; Mackin et al. [2] optimize a significance factor by evolutionary search over a proxy metric, reporting a value of two. What is missing is the resolution-noise trade: an error model that also carries the finite-grid quantization floor, so that a nontrivial base is optimal for the encoding itself and can be read off from the device noise rather than fixed or searched. We build that model on the assumption that each tile's MVM-output noise is additive: its magnitude does not scale with the stored code, though it is calibrated per tile from the programmed weights; the non-additive parts of a real crossbar (IR-drop, ADC) are not modeled but are carried in the device-physics simulation of Sec. V, where the predicted optimum is shown to survive them.

We resolve this by treating the crossbar as a custom fixed-point representation with a per-tile output-noise parameter η\eta and asking the classical numerical question: how to represent for minimum error under a hardware error model. We contribute:

• An error model with the resolution–noise trade. We extend the closed-form slicing-error model of [1], whose noise term we recover exactly, by adding the finite-grid quantization floor, and minimize it to a closed-form optimal base, bopt=1+1/(12bound2η2)b_{\text{opt}} = 1 + 1/(12 \text{bound}^2 \eta^2). It is an interior optimum that recovers the prior equal-fill (b=1) result only in the noise-dominated limit (Sec. IV).

• An encoding and a search-free calibration rule. An overlapping place-value split realizes the interior base while keeping the high tile's place value, and thus the amplification of its noise in the output, small; a fixed shared rotation makes the Gaussian model apply to real operators (Sec. III). The base follows from one device-noise measurement, replacing the per-model numerical search prior work needs, at no runtime or programming cost over equal-fill.

• Validation across three fidelities. From an analytic model through a full device-physics simulator to end applications, the predicted base gives +3.3 dB over the naive nibble split and is operator-agnostic across scientific and neural-network MVMs (Sec. V).

References (17)