Manuscript Offprint
arXiv:2611.08693Enabling Retraining-Free Accurate Inference in Analog Compute in Memory Accelerators
ABSTRACT
Analog compute-in-memory (CIM) accelerators compute matrix-vector products directly inside memory arrays, eliminating weight movement and promising order-of-magnitude gains in inference efficiency. However, converter and device errors make pretrained models unusable on these arrays, and hardware-aware retraining is costly. We enable retraining-free, accurate inference of pretrained models on simple analog arrays with low-cost, shared calibration. Our key observation is that analog error depends on how each layer is represented on the array, and that this representation can be changed offline without changing the computation. We center the inputs and apply Hadamard rotations designed for analog arrays, which keep shared reference errors spread and confine input mixing to each array. Across CNNs, vision transformers and LLMs up to 14B parameters on PCM and ReRAM, the method brings vision models and larger LLMs within a few points of floating-point accuracy and matches or approaches published hardware-aware training without training any weights. On ReRAM with 6-bit ADCs, it restores ViT-B/16 from 37.4% to 82.9% and Phi-4 from 27.0% to 72.2%, both within 2.2 points of floating-point accuracy.
1 INTRODUCTION
Moving model weights between memory and compute can cost more time and energy than the arithmetic itself, especially at the small batch sizes of latency-critical and edge inference (Horowitz, 2014; Gholami et al., 2024). Analog compute-in-memory (CIM) sidesteps this issue by exploiting analog effects to perform matrix-vector operations directly on memory arrays. (Sebastian et al., 2020; Verma et al., 2019). Dense non-volatile memory (NVM) arrays can hold all of a model's weights throughout inference, so no weights stream from external memory (Sebastian et al., 2020; Burr et al., 2023). For models that fit, system studies project 40 to 140 times the energy efficiency of an NVIDIA A100 (Jain et al., 2023).
These efficiency gains come with analog errors that can substantially reduce model accuracy. Precise analog-to-digital converters (ADCs) can be very costly in area and energy, so designs tend to use low-precision ADCs that quantize and clip the array outputs (Shafiee et al., 2016; Murmann, 2024; Xiao et al., 2022b). NVM devices introduce additional errors through programming noise, read noise and drift of the stored weights over time (Joshi et al., 2020; Nandakumar et al., 2019; Mackin et al., 2022; He et al., 2021). These errors can make pretrained models unusable: in our ReRAM simulation with 6-bit ADCs, one day after programming, ViT-B/16 falls from 84.5% to 37.4%, and Phi-4 from 74.4% to 27.0% accuracy over studied benchmarks.
A widely used approach to recovering this accuracy is hardware-aware (HWA) training, which injects analog errors into the forward pass so that the model learns to tolerate them (Joshi et al., 2020; Kariyappa et al., 2021; Rasch et al., 2023; Chen et al., 2025a; Zhou et al., 2025; Büchel et al., 2025; Li et al., 2023a). However, this approach requires access to training data and can be very costly, becoming a serious barrier to analog deployment. The analog foundation models of Büchel et al. (2025), for instance, train on billions of tokens.
Büchel et al. (2025) explicitly call for a post-training method that recovers accuracy under analog errors, but find that the digital post-training quantization (PTQ) methods provide insufficient robustness and lose accuracy when input ranges are held fixed. We seek to recover accuracy while retaining shared, static array settings, which allow reference and control circuitry to be reused across columns and simplify calibration (Khaddam-Aljameh et al., 2022; Ambrogio et al., 2023; Yang et al., 2026a). We develop methods so that off-the-shelf pretrained models tolerate both converter and device errors under these settings without retraining or modifying the arrays.
We observe that the representation of an otherwise identical neural computation determines several distinct physical error mechanisms in analog CIM, and each mechanism can
Department of Electrical and Computer Engineering, University of California, Los Angeles, CA, USA.
be attacked by a corresponding function-preserving representation change. We first center the computation to remove static, precomputable work from the analog path. We then apply computationally invariant isometric transformations to express the remaining computation in a basis better suited to the array's noisy conductances and low-precision partial sums. Table 1 summarizes how the array's error mechanisms guide the choice and construction of these transformations.
We reparameterize the weights offline and apply matched digital transforms during inference, without retraining or changing the array hardware. In the ReRAM setting above, they raise ViT-B/16 and Phi-4 accuracy to 82.9% and 72.2%, within 2.2 points of floating-point execution. These gains require neither retraining nor dynamic input ranges: each array uses one static weight mapping scale, input range, and output range.
Our contributions are:
-
We analyze how analog CIM error depends on the representation of weights and activations.
-
We propose a retraining-free reparameterization (centering + regular output rotations + tile-local input rotations) for robust inference on unmodified arrays with static calibration.
-
We evaluate CNNs, vision transformers (ViTs) and large language models (LLMs) on PCM and ReRAM with 4- to 8-bit ADCs, showing consistent accuracy recovery and gains over strong baselines.
2.1 Analog CIM systems
An analog CIM array computes a matrix-vector product using the memory cells that store its weights. Each device produces a current proportional to the product of its stored weight and input voltage on its row. The sum of currents along each column form the output (Sebastian et al., 2020; Le Gallo et al., 2023), which an ADC reads. Larger matrices are tiled across arrays (Figure 1). Each array's partial output is converted separately, and digital logic combines the converted partial sums (Shafiee et al., 2016; Khaddam-Aljameh et al., 2022).
The assignment of weight tiles to arrays distinguishes two dataflows. Partially weight-stationary (PWS) designs reuse arrays for successive tiles, reloading weights for every tile. SRAM favors this dataflow (Verma et al., 2019). Fully weight-stationary (FWS) designs instead keep each tile in its own array, avoiding reloading resident model-weight tiles during inference. NVM-based CIM arrays favor FWS operation due to their high density and efficiency (Le Gallo et al., 2023; Ambrogio et al., 2023; Khaddam-Aljameh et al., 2022). We focus on FWS NVM arrays.

Figure 1. An analog CIM array of width and height with its DAC and ADC (left), and a weight matrix split into tiles whose partial sums are added digitally before the bias (right).
We only target static-weight layers mapped to CIM. Dynamic operations, such as the matrix products in attention, use operands generated at runtime, cannot exploit fixed weight residency and run digitally (Wolters et al., 2024; Burr et al., 2023; Karfakis et al., 2026; Spoon et al., 2021).
2.2 Analog compute error sources
Analog matrix-vector products accumulate errors in three distinct stages of the compute path: converting the inputs into analog signals using a digital-to-analog converter (DAC), computing with the stored conductances, and digitizing the outputs with an ADC.
Inputs. A DAC encodes each input activation as an analog signal (voltage, current or pulse duration) that drives one row of the array. Its finite resolution over a fixed DAC input range quantizes the activations and clips those beyond the range, akin to static activation quantization in digital PTQ (Nagel et al., 2021).
Weights. Weights are encoded as device conductances within a fixed range, with a weight mapping scale relating numerical weights to conductance values. A few large weights confine the rest to a small part of that range. Weights are commonly represented either by the difference between two device conductances (differential mapping) or relative to an offset conductance (common-offset mapping), whose contribution is subtracted from the output (Joshi et al., 2020; Xiao et al., 2022a). Both mappings are affected by programming error, read noise, and drift (Joshi et al., 2020; He et al., 2021; Xiao et al., 2022a; Nandakumar et al., 2019; Mackin et al., 2022).
With offset-based mappings, the reference contribution is computed from a nominal offset or measured using a reference column and is subtracted before the ADC. Drift mismatch in the former, or noise in the latter, can introduce an error shared across output columns.
Outputs. Digital implementations typically retain partial sums in wide accumulators. ADC resolution is constrained
Table 1. How the structure of the computation and the array's constraints determine our isometric reparameterization.
| Observation | Array effect | Our fix | Sec. |
|---|---|---|---|
| Static input components | Static work picks up converter and device error on every input | Center inputs and restore digitally | 3.1 |
| Concentrated partial outputs | Peaks force a clip-quantization tradeoff under one ADC range | Regular output rotation to lower peaks | 3.2 |
| Concentrated weights | Outliers set the mapping scale and amplify conductance perturbations | Input and output rotations to reduce weight peaks | 3.3 |
| Constraint: shared/common-mode terms | Plain Hadamard can concentrate common-mode (e.g., reference) error | Regular Hadamard blocks () | 3.2 |
| Constraint: tiled conversion | Cross-tile mixing changes per-tile quantized partial sums | Tile-local input rotations | 3.4 |
by converter area and energy costs (Nagel et al., 2021; Shafiee et al., 2016; Murmann, 2024). With digital accumulation across arrays, each array's partial output is quantized before the partial sums are combined. Thus, the resulting quantization error depends on the ADC's input range, which sets the interval represented by its limited quantization levels. At a fixed bit width, a wider range accommodates larger outputs but increases rounding error, while a narrower range represents small outputs more precisely but suffers from clipping large outputs. All ADC bit widths in this paper are effective bits, the resolution that remains after converter noise and nonlinearity (Xiao et al., 2022b; Zhou et al., 2022).
Calibration. Both the weight mapping scales and the ADC input ranges must be calibrated to achieve high accuracy in analog CIM (Joshi et al., 2020; Xiao et al., 2022b; Mackin et al., 2022; Rasch et al., 2023; Lammie et al., 2024). Many designs share one weight mapping scale and one ADC range across an array (Khaddam-Aljameh et al., 2022; Ambrogio et al., 2023; Yang et al., 2026a; Kneip et al., 2025; Zhou et al., 2022), because per-column ranges need reference circuitry comparable in area to the ADC itself, which Yang et al. (2026b) call prohibitively expensive. These shared settings couple columns with different weight and output distributions: accommodating large values reduces the resolution available to smaller ones. Recovering accuracy while retaining this organization avoids making column-specific calibration and control a prerequisite for deployment.
2.3 Related work
Function-preserving transformations can reduce error from lossy operations (e.g., quantization) by reparameterizing a layer without changing its ideal function. Our contribution is to construct centering and rotations jointly for converter and device errors while retaining shared, static per-array settings, and to account for shared components and tiled partial sums that are converted before digital accumulation (Table 1).
Rescaling. Channel-wise scaling can trade off dynamic
range between activations and weights. SmoothQuant applies this idea to digital quantization (Xiao et al., 2023). On analog arrays, it moves activation outliers into the weights, where they set the weight mapping scale and amplify device error (Section 3.3).
Rotations. Orthogonal rotations spread concentrated values across channels, lowering the peaks that set shared quantization ranges; QuIP, QuIP#, QuaRot, and SpinQuant use fixed or learned rotations for low-bit digital quantization (Chee et al., 2023; Tseng et al., 2024; Ashkboos et al., 2024b; Liu et al., 2025). These rotations do not respect array tile boundaries, so they change every converted partial output (Section 3.4), and their plain Hadamard transforms can concentrate common-mode errors into one channel (Section 3.2).
Centering. Subtracting fixed channel offsets and restoring their contribution via a bias can reduce wasted range; OS+, HadaNorm, and BASE-Q combine centering with scaling and/or rotations (Wei et al., 2023; Federici et al., 2025; He et al., 2025). They target digital quantizers and inherit the limits of the scaling or rotations they rely on.
Analog deployment. Prior analog methods typically target a subset of errors or relax array constraints: NORA uses rescaling but does not address drift (Hou et al., 2025); RAELLA centers weights but changes the array organization/arithmetic (Andulis et al., 2023); Ambrogio et al. subtract the input mean under per-column calibration (Ambrogio et al., 2023). AdaBS recalibrates batch-normalization statistics on data at read time to address drift error only (Joshi et al., 2020).
3 TRANSFORMING THE ANALOG COMPUTATION
Consider a linear layer . For any fixed offset and any orthogonal matrices and , the layer can be rewritten exactly as

Figure 2. Static input component across all analog layers of ViT-B/16, ResNet-50 and Qwen3-1.7B, with 4-bit ADCs and without rotations or device noise. Left: share of in the per-channel mean. Right: local ADC error without and with centering. Bars are medians over layers.
where . On the hardware, the arrays store the transformed weights and the DACs encode . The inverse rotation and the precomputed term are applied digitally afterward. This isometric reparameterization computes the same function but changes the weights, inputs and partial outputs exposed to analog error. We use it in three steps: centering removes a static input component (Section 3.1), the output rotation reduces ADC error (Section 3.2), and the input rotation reduces device error (Section 3.3).
The measurements in this section use the shared setting of Section 2.2, with one weight mapping scale and one ADC range per array.
3.1 Static input component
The term is independent of the current input. We pre-compute it and restore it digitally, keeping this fixed contribution out of the noisy matrix multiplication and conversion. We choose as a static per-channel mean over calibration data, which minimizes the mean squared input norm in the analog path without requiring dynamic calibration, and we find that it reduces ADC quantization and clipping error.
Figure 2 measures the effect on three real models. Its left panel shows the share of in , between a quarter and a third in ResNet-50 and Qwen3-1.7B and less in ViT-B/16. Its right panel shows that centering lowers the local ADC error in all three.
3.2 ADC error
With one ADC range per array, a few large outputs force a tradeoff between clipping those values and coarsening the resolution available to the remaining outputs. An orthogonal rotation of the outputs preserves their L2 norm but changes how it is distributed across channels.
For an untiled multiplication, omitting device and DAC error (to isolate ADC effects), folding into the programmed

Figure 3. Output rotation reduces average local ADC error across the FFN down-projections of ViT-B/16 and Qwen3-1.7B, with MSE-calibrated ranges (top) and ranges set from the largest output (bottom). Projections are untiled, with 8-bit DACs, one 4-bit ADC range per projection, no centering and no device noise. NMSE is averaged and Peak/RMS is the median over layers.
weights gives
where is the conversion.
We build from block-diagonal Hadamard matrices. Within each block, the Hadamard coefficients have equal magnitude, so a contribution concentrated in one channel is distributed across all transformed channels.
The output rotation lowers the median peak-to-RMS ratio of the ADC inputs about fourfold on the FFN down-projections of ViT-B/16 and Qwen3-1.7B, and ADC error falls under both range-selection policies (Figure 3). The first is the MSE-calibrated ranges used throughout the paper (Nagel et al., 2021). The second sets ranges from the largest output, which rules out clipping but coarsens the step.
However, a plain Hadamard can concentrate a shared signal before conversion, while its inverse can concentrate a shared error afterward. Such errors arise, for example, when an imperfect reference is subtracted from every output column in offset-based weight mappings (Section 2.2). We use regular Hadamard blocks (Meisner, 1992), which satisfy (Huang et al., 2025), so shared components remain distributed through both the rotation and its inverse. On the fc1 and gate projections of ViT-B/16 and Qwen3-1.7B, plain blocks with random signs (DHP) raise the median ADC error above the unrotated computation, while regular blocks lower it (Figure 4). This effect is magnified when using fixed nominal references (Section 2.2, Appendix F).

Figure 4. Regular Hadamard blocks are needed to avoid the large ADC error increase of plain blocks with random signs (DHP), which perform worse than no output rotation. Projections are untiled, with 8-bit DACs, one MSE-calibrated 4-bit ADC range per projection and no device noise.

Figure 5. Weight peak-to-RMS for no rotation, output only, input only, and both, across all 72 projections of ViT-B/16 and all 196 of Qwen3-1.7B. Output and input rotations each lower weight concentration on their own, but both are needed for the largest reduction. Faint lines are single projections, and medians are printed.
3.3 Device error
Every device error of Section 2.2, whether from programming, reading or drift, perturbs a conductance and, via the weight mapping scale s, the weight that conductance encodes. With ideal converters, the device-induced array output error is
where u is the input used for that array computation. As with ADC error, the scale depends on how far the largest weights sit above the typical ones, so a few large weights raise s for every weight that shares it. Lowering the weight peaks lowers s, and with it the numerical effect of a given conductance perturbation.
The output rotation of Section 3.2 lowers the weight peaks by mixing weights across output channels. To lower them further, we apply a fixed input Hadamard rotation , which mixes weights across input channels and can also reduce activation peaks before the DAC.
Figure 5 shows how the two rotations change weight concentration across all projections of ViT-B/16 and Qwen3-1.7B. Each rotation alone lowers the median weight peak-to-RMS ratio, and together they lower it by and .

Figure 6. Local output error from device noise before and after both rotations, across the down projections of ViT-B/16 and Qwen3-1.7B, with PCM and ReRAM models at one day. Projections are untiled, with one weight mapping scale each and no converters or centering.
Rotations also change the programmed conductances. We evaluate the combined effect of weight redistribution and conductance-dependent error using the PCM and conductive-metal-oxide (CMO) ReRAM models of Section 5. PCM drift also introduces a shared attenuation of the array output. Such an attenuation persists under orthogonal changes of basis, so we apply a scalar drift-compensation gain to restore the average output scale (Joshi et al., 2020). The PCM results below include this compensation and measure the remaining device error. Figure 6 shows that the two rotations substantially reduce device-only output error under both models.
3.4 Inter-tile ADC quantization error
Layers wider than one array are split into tiles, each converted by its own ADCs before the digital sum (Section 2.1). Input rotations crossing tile boundaries spread a concentrated channel into every tile, widening every ADC range while accumulating ADC error. With 4-bit ADCs, in models with concentrated down-projection inputs such as Phi-3-mini and Llama-3.2-1B, this raises the output-normalized ADC error of the down-projections by 24% and 62%, and up to in single layers.
We therefore keep input rotations within tiles. Each tile then computes its exact partial output , so its ADCs quantize the same values as without input rotation and keep the same calibrated ranges.

Figure 7. (a) Our method. Offline: calibrate the channel mean , fold into the bias, build and , transform the weights to , then program and calibrate the converters. Online: (1) center, (2) rotate the inputs within each tile, (3) compute in each array and digitize its partial output, (4) sum the digitized partial outputs, (5) undo the output rotation and apply the drift gain (for PCM), (6) add . (b) Placement of the rotations in a CNN bottleneck and a transformer block (ViT or LLM).
4 APPLYING THE METHOD TO NEURAL NETWORKS
4.1 Our method on a single layer
Figure 7a gives the preparation and execution of a transformed layer.
Every operation the method adds is an affine map. Centering subtracts a fixed vector from the input, and its correction folds into the existing bias, or adds one where the layer has none. We use one compensation gain per layer and fold it into the inverse output rotation's scaling (Appendix G). Where possible, we use four-point add/subtract kernels, which cost additions per element for block size (Coppersmith et al., 1994). The normalization reduces to shifts or folds into existing scales, so the transforms themselves need no multiplications. Section 6.4 reports the measured digital cost.
4.2 Application to model families
The input and output layers of every model remain digital (Joshi et al., 2020; Rasch et al., 2023; Büchel et al., 2025).
CNNs. Rotation-based quantization has targeted transformers (Ashkboos et al., 2024b; Liu et al., 2025). We also apply the transforms to CNNs: we fold BatchNorm into convolution weights (Nagel et al., 2021) and apply the method to residual-block convolutions and projection shortcuts. Shar-
ing the input channel transform across kernel taps allows reuse across overlapping patches. At projection shortcuts, both branches use the same output transform, allowing a single inverse after their sum and before the activation.
Transformer models. These placements follow the computational-invariance recipe of SliceGPT and QuaRot (Ashkboos et al., 2024a;b; Liu et al., 2025). Attention and normalization remain digital. V remains transformed through attention, with its inverse folded into the output projection's weights. The first feed-forward projections are restored before their nonlinearity and gating, and the attention-output and second feed-forward projections are inverted before the residual addition.
ViTs. Q and K use matching head-local transforms, preserving their attention scores in exact arithmetic without an explicit inverse (Ashkboos et al., 2024b).
LLMs. Q and K are restored after their projection ADCs, before any Q/K normalization and rotary positional encoding. Grouped-query attention repeats each KV head's transform across its associated query heads.
Like PrefixQuant and CushionCache (Chen et al., 2024; Son et al., 2024), we preload the key-value cache with the attention-sink token (Xiao et al., 2024; Sun et al., 2024) that opens every prompt, with no additional per-token arithmetic or hardware change. This keeps its outliers out of the static DAC ranges (Appendix C).
Table 2. Evaluated models and tasks. All LLM runs keep the opening template token digital (Appendix C).
| Family | Models | Task and metric |
|---|---|---|
| CNNs | ResNet-18, ResNet-50 (He et al., 2016) | ImageNet top-1 (Russakovsky et al., 2015) |
| ViTs | ViT-B/32, ViT-B/16, ViT-L/16, DeiT-S (Dosovitskiy et al., 2021; Touvron et al., 2021) | ImageNet top-1 |
| LLMs | Llama-3.2-1B, Qwen3-1.7B, Qwen3-8B, Phi-3-mini, Phi-4 (Grattafiori et al., 2024; Yang et al., 2025; Abdin et al., 2024a;b) | Mean of MMLU, HellaSwag, ARC-E and ARC-C (Hendrycks et al., 2021; Zellers et al., 2019; Clark et al., 2018) |
5 EVALUATION SETUP
Table 2 lists the evaluated models and tasks, and Table 3 the hardware setting that Section 6 uses unless stated otherwise. All other simulation parameters use the AIHWKit defaults (Rasch et al., 2021). LLM accuracy is the mean over the four benchmarks, evaluated with lm-eval (Gao et al., 2024), and calibration and evaluation data are disjoint for every model. All methods share the calibration data and the ADC range rule, an MSE fit (Nagel et al., 2021) on clean statistics, scaled once before deployment by the device model's nominal drift at a target read age, without on-chip measurement. The target equals the read age unless stated otherwise. Static DAC ranges come from a clipping histogram observer. Transforms are fixed per seed (Appendix A).
6 RESULTS
6.1 ViTs and CNNs
6.1.1 Headline results
Figure 8 shows ViT and CNN results against post-training baselines on PCM and ReRAM with 4- to 8-bit ADCs. The unmodified models collapse in many cases, due to device and ADC error. Our method is more robust. With 6- and 8-bit ADCs, it reaches within 4.2 percentage points of floating-point accuracy for every model. Furthermore, it even works with 4-bit ADCs, further reducing converter area and energy, at an average additional cost of 2.3 percentage points.
The baselines fall into four loose groups.
- Digital PTQ methods such as OS+ (Wei et al., 2023) and RepQ-ViT (Li et al., 2023b) shift magnitude from activations to weights within a channel, which worsens the weight mapping scale mismatch. They collapse in most settings.
- CLE (Nagel et al., 2019) and AdaBS (Joshi et al., 2020)
Table 3. Default hardware setting.
| Setting | Value |
|---|---|
| Arrays | 512 × 512, one weight mapping scale and one ADC range each |
| Converters | 4-, 6- or 8-bit ADCs, and a static 8-bit DAC with one range per tensor (Büchel et al., 2025) |
| Devices | PCM and CMO ReRAM with one reference column per array, read one day after programming (Rasch et al., 2021; Nandakumar et al., 2019; Falcone et al., 2025) |
| Weights | Continuous conductances, with an effective precision of about 4 bits at one day (Appendix L) |
| Drift compensation | Global, on PCM: one gain per layer for our method, and one per array for the baselines, following Joshi et al. (2020)'s online read procedure (Appendix G). |
Table 4. ResNet accuracy (%) alongside published HWA results (Rasch et al., 2023), with PCM or the ReRAM model of Wan et al. (2022), 8-bit ADCs and one-day read age, with per-column weight mapping scales as in Rasch et al. (2023). Unmodified and Ours report mean ± SD over three seeds.
| Model | Device | Unmodified | HWA | Ours |
|---|---|---|---|---|
| ResNet-50 | PCM | 61.3 ± 3.1 | 74.7 | 73.7 ± 0.1 |
| ResNet-18 | PCM | 56.1 ± 0.8 | 68.0 | 67.5 ± 0.1 |
| ResNet-50 | ReRAM | 58.1 ± 1.9 | 72.4 | 72.8 ± 0.1 |
| ResNet-18 | ReRAM | 44.9 ± 3.3 | 65.1 | 65.6 ± 0.2 |
recover CNN accuracy but cannot fully close the gap.
-
QwT (Fu et al., 2025) is an adapted digital method that uses a large number of digital operations to recover accuracy, yet trails our method.
-
WPO (Mackin et al., 2022) performs well against device noise, but cannot correct ADC error and fails with 4-bit ADCs on ViT-B/16 and ViT-B/32. It also requires four devices per weight, a significant penalty, while our method uses simple shared arrays.
6.1.2 Comparison with hardware-aware training
We compare ResNet-18 and ResNet-50 with the published HWA results of Rasch et al. (2023) in our reproduction of their setting (Appendix J). Despite no retraining, our method comes very close to their results on PCM and matches them on ReRAM (Table 4).
6.2 LLMs
6.2.1 Headline results
Figure 9 shows LLM results on PCM and ReRAM with 4- to 8-bit ADCs. The unmodified models fall to near-chance accuracy in most settings. Our method is effective at improving accuracy, with an average gain of 28.1 percentage points, but cannot fully recover it for small LLMs. It be-
ViTs and CNNs

Figure 8. ImageNet top-1 accuracy of ViTs and CNNs on PCM and ReRAM with N-bit ADCs, 1 day after programming.

Figure 9. LLM mean accuracy over MMLU, HellaSwag, ARC-Easy and ARC-Challenge on PCM and ReRAM with 4-, 6- and 8-bit ADCs, one day after programming. Lines mark floating-point accuracy.
comes more effective with scale: Qwen3-8B and Phi-4 (14B) come within 4 percentage points of floating-point accuracy with 6- and 8-bit ADCs, while the smaller Llama-3.2-1B and Qwen3-1.7B keep larger gaps. With 4-bit ADCs, accuracy only drops by another 3.0 percentage points on average. QuaRot (Ashkboos et al., 2024b), applied to the arrays directly, trails our method by up to 44.3 percentage
Table 5. LLM mean accuracy (%) compared with the published AFM results (Büchel et al., 2025), in our reproduction of their setting, with their checkpoints, scoring and noise level (Appendix J). Unmodified and Ours report mean ± SD over ten seeds.
| Model | Unmodified | AFM | Ours |
|---|---|---|---|
| Phi-3-mini | 72.9 ± 0.9 | 79.7 | 78.4 ± 0.5 |
| Llama-3.2-1B | 36.4 ± 1.6 | 45.5 | 42.8 ± 1.5 |
points (Appendix K).
6.2.2 Comparison with hardware-aware training
We compare Phi-3-mini and Llama-3.2-1B with the analog foundation models (AFM) of Büchel et al. (2025) in our reproduction of their setting (Appendix J). Despite no retraining, our method comes very close to AFM on Phi-3-mini and within 2.7 percentage points on Llama-3.2-1B (Table 5). Per-task results and the comparison with the baselines of Büchel et al. (2025) are in Appendix J.
6.3 Component contributions
We ablate the method on ViT-B/16, ResNet-50 and Qwen3-1.7B in two settings, one dominated by ADC error and one by device error: PCM with 4-bit ADCs one day after programming, and ReRAM with 8-bit ADCs five days after programming. Appendix D removes one component at a time.
Component build-up

Figure 10. Accuracy as output rotations, input rotations and centering are added in that order, on PCM with 4-bit ADCs at one day and ReRAM with 8-bit ADCs at five days. Dashed lines mark floating-point accuracy.
We find that output rotations provide the bulk of the gain in every setting, especially for ViT-B/16 (Figure 10). As Section 3 discusses, they reduce both ADC and device error. However, input rotations and centering are needed to approach floating-point accuracy, especially for ResNet-50 and Qwen3-1.7B. This suggests that for some models and operating conditions, the method does not have to be applied in full to obtain most of its benefit, saving digital operations.
6.4 Overheads
On analog accelerators, digital operations run on separate compute cores (Jain et al., 2023) and can become the energy and area bottleneck (Spoon et al., 2021). Our method adds few of them and also lowers analog cost in two ways: the arrays can be simpler, and even simple arrays need to be refreshed less often.
Calibration granularity. Per-column weight mapping scales and ADC ranges need peripheral circuitry that can be prohibitively expensive (Section 2.2). With one scale and one range per array, our method matches or exceeds the unmodified model with per-column settings, by up to 6.0 percentage points (Figure 11). With per-column settings, it

Figure 11. Accuracy with per-array or per-column weight mapping scales and ADC ranges, one day after programming. NORA uses its native dynamic DAC.
Read age

Figure 12. Accuracy against read age with 6-bit ADCs. The arrays are programmed and calibrated once at 1 s and not refreshed.
adds up to 7.1 points. For fairness, we also include NORA (Hou et al., 2025), an analog-targeted baseline that needs per-column settings and a dynamic DAC. With one setting per array and a static DAC, our method stays within 1.6 points of NORA, and it exceeds NORA with per-column settings.
Refresh. Drift accumulates after programming, and refreshing the arrays to reset it costs hardware and system resources. We program and calibrate the arrays once at 1 s and read them up to five days later without refresh. Our method loses at most 1.7 percentage points on the vision models over this period, while the unmodified models collapse (Figure 12). Qwen3-1.7B loses more with age but keeps a large advantage. AdaBS (Joshi et al., 2020), calibrated once at 1 s, falls to 7.2% (PCM) and 42.7% (ReRAM) on ResNet-50 after

Figure 13. Accuracy against the digital share of all operations on ReRAM with 8-bit ADCs at five days. Each curve is the frontier of the evaluated configurations, and dotted lines mark its peak accuracy. The unmodified models lie below the plotted range.

Figure 14. Accuracy with 4- and 6-bit ADCs and DACs on PCM at one day and ReRAM at five days: top-1 accuracy for ViT-B/16 and ResNet-50, and WikiText-2 (Merity et al., 2017) perplexity for Qwen3-1.7B (lower is better). ViT-B/16 floating-point accuracy is 84.6%, ResNet-50 76.1%.
five days. Even when recalibrated at read time, it stays 5.2 and 13.5 points below our method. Arrays running our method can therefore be refreshed less often.
Digital cost. We trade accuracy for digital operations by reducing the Hadamard block size and by dropping input or output rotations from some layer types. Appendix B gives the configurations and the counting method. The evaluated configurations form a frontier (Figure 13). Accuracy rises steeply with the first transforms and then saturates, and even the most accurate configurations add less than 1% additional operations during model execution. Together, these figures span a design space of cost and accuracy.
6.5 DAC precision
The main results use 8-bit static DACs. As a case study, we also vary DAC and ADC precision between 4 and 6 bits (Figure 14). With 4-bit DACs and 4-bit ADCs, our method keeps 74.1–74.3% on ViT-B/16, 61.0–61.2% on ResNet-50 and a perplexity of about 31 on Qwen3-1.7B, while the unmodified models collapse. As in digital post-training quantization, the input rotation spreads activation outliers and lowers the range each DAC must cover (Section 3.3).

Figure 15. SRAM CIM accuracy with one weight mapping scale and one ADC range per tensor (open dots, as in PWS) or per array (filled dots, as in FWS). Dots at zero indicate accuracies below 2%.
6.6 Partially weight-stationary SRAM CIM
PWS SRAM CIM arrays load many weight tiles in turn (Section 2.1), so they are typically calibrated once per tensor rather than per tile. Inspired by PICO-RAM (Chen et al., 2025b), we simulate signed 4-bit weights in arrays of 144 rows and 8 outputs, 8-bit DACs, and 4- or 6-bit ADCs, with weight and converter quantization only (Figure 15). With one setting per tensor, the unmodified models collapse, while our method reaches 71.3–79.4%. On ResNet-50, it even exceeds the unmodified model with the per-array settings of FWS arrays, by 28 to 35 points.
7 CONCLUSION
We showed that the analog error of a layer depends on the representation in which it is computed, and that this representation can be chosen offline through matched isometric reparameterizations. Centering, regular output rotations and tile-local input rotations reduce converter and device error on unmodified PCM and ReRAM arrays with one weight mapping scale and one ADC range each. With 6- and 8-bit ADCs, CNNs and ViTs come within 4.2 percentage points of floating-point accuracy, and LLMs gain substantially, more so as they grow. Compared with published hardware-aware training, the approach matches it or comes within 2.7 points. It adds less than 1% to the operations of model execution, provides the accuracy that per-column calibration would otherwise require, and allows less frequent refresh. The focus of this work has been to show that analog CIM without retraining is achievable, as Büchel et al. (2025) called for. Co-optimizing the array design with these transforms, quantifying their system-level impact, and closing the remaining gap for small LLMs are left for future work.
REFERENCES
Abdin, M., Aneja, J., Awadalla, H., Awadallah, A., Awan, A., Bach, N., Bahree, A., Bakhtiari, A., Bao, J., Behl, H., Benhaim, A., Bilenko, M., Bjorck, J., Bubeck, S., Cai, M., Cai, Q., Chaudhary, V., Chen, D., Chen, D., Chen, W., Chen, Y., Chen, Y., Cheng, H., Chopra, P., Dai, X., Dixon, M., Eldan, R., Fragoso, V., Gao, J., Gao, M., Gao, M., Garg, A., Giorno, A., Goswami, A., Gunasekar, S., Haider, E., Hao, J., Hewett, R., Hu, W., Huynh, J., Iter, D., Jacobs, S., Javaheripi, M., Jin, X., Karampatzakis, N., Kauffmann, P., Khademi, M., Kim, D., Kim, Y., Kurilenko, L., Lee, J., Lee, Y., Li, Y., Li, Y., Liang, C., Liden, L., Lin, X., Lin, Z., Liu, C., Liu, L., Liu, M., Liu, W., Liu, X., Luo, C., Madan, P., Mahmoudzadeh, A., Majercak, D., Mazzola, M., Mendes, C., Mitra, A., Modi, H., Nguyen, A., Norick, B., Patra, B., Perez-Becker, D., Portet, T., Pryzant, R., Qin, H., Radmilac, M., Ren, L., Rosa, G., Rosset, C., Roy, S., Ruwase, O., Saarikivi, O., Saied, A., Salim, A., Santacroce, M., Shah, S., Shang, N., Sharma, H., Shen, Y., Shukla, S., Song, X., Tanaka, M., Tupini, A., Vaddamanu, P., Wang, C., Wang, G., Wang, L., Wang, S., Wang, X., Wang, Y., Ward, R., Wen, W., Witte, P., Wu, H., Wu, X., Wyatt, M., Xiao, B., Xu, C., Xu, J., Xu, W., Xue, J., Yadav, S., Yang, F., Yang, J., Yang, Y., Yang, Z., Yu, D., Yuan, L., Zhang, C., Zhang, C., Zhang, J., Zhang, L., Zhang, Y., Zhang, Y., Zhang, Y., and Zhou, X. Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone, 2024a.
Abdin, M., Aneja, J., Behl, H., Bubeck, S., Eldan, R., Gunasekar, S., Harrison, M., Hewett, R., Javaheripi, M., Kauffmann, P., Lee, J., Lee, Y., Li, Y., Liu, W., Mendes, C., Nguyen, A., Price, E., Rosa, G., Saarikivi, O., Salim, A., Shah, S., Wang, X., Ward, R., Wu, Y., Yu, D., Zhang, C., and Zhang, Y. Phi-4 Technical Report, 2024b.
Ambrogio, S., Narayanan, P., Okazaki, A., Fasoli, A., Mackin, C., Hosokawa, K., Nomura, A., Yasuda, T., Chen, A., Friz, A., Ishii, M., Luquin, J., Kohda, Y., Saulnier, N., Brew, K., Choi, S., Ok, I., Philip, T., Chan, V., Silvestre, C., Ahsan, I., Narayanan, V., Tsai, H., and Burr, G. W. An analog-AI chip for energy-efficient speech recognition and transcription. Nature, 620(7975):768–775, 2023. doi: 10.1038/s41586-023-06337-5.
Andrulis, T., Emer, J. S., and Sze, V. RAELLA: Reforming the Arithmetic for Efficient, Low-Resolution, and Low-Loss Analog PIM: No Retraining Required! In Proceedings of the 50th Annual International Symposium on Computer Architecture, pp. 1–16. ACM, 2023. doi:10.1145/3579371.3589062.
Ashkboos, S., Croci, M. L., do Nascimento, M. G., Hoefler, T., and Hensman, J. SliceGPT: Compress Large Language
Models by Deleting Rows and Columns. In International Conference on Learning Representations (ICLR), 2024a.
Ashkboos, S., Mohtashami, A., Croci, M., Li, B., Cameron, P., Jaggi, M., Alistarh, D., Hoefler, T., and Hensman, J. QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs. In Advances in Neural Information Processing Systems 37, pp. 100213–100240. Neural Information Processing Systems Foundation, Inc. (NeurIPS), 2024b. doi: 10.52202/079017-3180.
Büchel, J., Chalas, I., Acampa, G., Chen, A., Fagbohungbe, O., Tsai, H., El Maghraoui, K., Le Gallo, M., Rahimi, A., and Sebastian, A. Analog Foundation Models. In Advances in Neural Information Processing Systems 38, pp. 68038–68087. Neural Information Processing Systems Foundation, Inc. (NeurIPS), 2025. doi: 10.52202/085713-2044.
Burr, G. W., Tsai, H., Simon, W., Boybat, I., Ambrogio, S., Ho, C.-E., Liou, Z.-W., Rasch, M., Büchel, J., Narayanan, P., Gordon, T., Jain, S., Levin, T. M., Hosokawa, K., Le Gallo, M., Smith, H., Ishii, M., Kohda, Y., Chen, A., Mackin, C., Fasoli, A., El Maghraoui, K., Muralidhar, R., Okazaki, A., Chen, C. T., Frank, M. M., Lammie, C., Vasilopoulos, A., Friz, A. M., Luquin, J., Teehan, S., Ahsan, I., Sebastian, A., and Narayanan, V. Design of Analog-AI Hardware Accelerators for Transformer-based Language Models (Invited). In 2023 International Electron Devices Meeting (IEDM), pp. 1–4. IEEE, 2023. doi: 10.1109/iedm45741.2023.10413767.
Chee, J., Cai, Y., Kuleshov, V., and De Sa, C. QuIP: 2-Bit Quantization of Large Language Models With Guarantees. In Advances in Neural Information Processing Systems 36, pp. 4396–4429. Neural Information Processing Systems Foundation, Inc. (NeurIPS), 2023. doi: 10.52202/075280-0196.
Chen, A., Ambrogio, S., Narayanan, P., Okazaki, A., Mackin, C., Fasoli, A., Rasch, M. J., Friz, A., Luquin, J., Yasuda, T., Ishii, M., Kanamori, T., Hosokawa, K., Philicelli, T., Munetoh, S., Narayanan, V., Tsai, H., and Burr, G. W. Demonstration of transformer-based ALBERT model on a 14nm analog AI inference chip. Nature Communications, 16(1):8661, 2025a. doi: 10.1038/s41467-025-63794-4.
Chen, M., Liu, Y., Wang, J., Bin, Y., Shao, W., and Luo, P. PrefixQuant: Eliminating Outliers by Prefixed Tokens for Large Language Models Quantization. arXiv preprint arXiv:2410.05265, 2024.
Chen, Z., Wen, Z., Wan, W., Pakala, A. R., Zou, Y., Wei, W.-C., Li, Z., Chen, Y., and Yang, K. PICO-RAM: A PVT-insensitive analog compute-in-memory SRAM macro with in situ multi-bit charge computing and 6T thin-cell-compatible layout. IEEE Journal of Solid-State Circuits, 60(1), 2025b. arXiv:2407.12829.
Clark, P., Cowhey, I., Etzioni, O., Khot, T., Sabharwal, A., Schoenick, C., and Tafjord, O. Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge, 2018.
Coppersmith, D., Feig, E., and Linzer, E. Hadamard transforms on multiply/add architectures. IEEE Transactions on Signal Processing, 42(4):969–970, 1994. doi:10.1109/78.285664.
Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., and Houlsby, N. An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. In International Conference on Learning Representations (ICLR), 2021.
Falcone, D. F., Clerico, V., Choi, W., Stecconi, T., Horst, F., Bégon-Lours, L., Galetta, M., La Porta, A., Garg, N., Alibart, F., Offrein, B. J., and Bragaglia, V. All-in-One Analog AI Hardware: On-Chip Training and Inference with Conductive-Metal-Oxide/HfOx ReRAM Devices. Advanced Functional Materials, pp. 2504688, 2025. doi:10.1002/adfm.202504688.
Federici, M., Del Chiaro, R., van Breugel, B., Whatmough, P., and Nagel, M. HadaNorm: Diffusion Transformer Quantization through Mean-Centered Transformations. arXiv preprint arXiv:2506.09932, 2025.
Fu, M., Yu, H., Shao, J., Zhou, J., Zhu, K., and Wu, J. Quantization without Tears. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4462–4472, 2025.
Gao, L., Tow, J., Abbasi, B., Biderman, S., Black, S., DiPofi, A., Foster, C., Golding, L., Hsu, J., Le Noac'ch, A., Li, H., McDonell, K., Muennighoff, N., Ociepa, C., Phang, J., Reynolds, L., Schoelkopf, H., Skowron, A., Sutawika, L., Tang, E., Thite, A., Wang, B., Wang, K., and Zou, A. The Language Model Evaluation Harness, July 2024.
Gholami, A., Yao, Z., Kim, S., Hooper, C., Mahoney, M. W., and Keutzer, K. AI and Memory Wall. IEEE Micro, 44 (3):33–39, 2024. doi: 10.1109/MM.2024.3373763.
Grattafiori, A., Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schelten, A., Vaughan, A., Yang, A., Fan, A., Goyal, A., Hartshorn, A., Yang, A., Mitra, A., Sravankumar, A., Korenev, A., Hinsvark, A., Rao, A., Zhang, A., Rodriguez, A., Gregerson, A., Spataru, A., Roziere, B., Biron, B., Tang, B., Chern, B., Caucheteux, C., Nayak, C., Bi, C., Marra, C., McConnell, C., Keller, C., Touret, C., Wu, C., Wong,
C., Ferrer, C., Nikolaidis, C., Allonsius, D., Song, D., Pintz, D., Livshits, D., Wyatt, D., Esiobu, D., Choudhary, D., Mahajan, D., Garcia-Olano, D., Perino, D., Hupkes, D., Lakomkin, E., AlBadawy, E., Lobanova, E., Dinan, E., Smith, E., Radenovic, F., Guzmán, F., Zhang, F., Synnaeve, G., Lee, G., Anderson, G., Thattai, G., Nail, G., Mialon, G., Pang, G., Cucurell, G., Nguyen, H., Korevaar, H., Xu, H., Touvron, H., Zarov, I., Ibarra, I., Kloumann, I., Misra, I., Evtimov, I., Zhang, J., Copet, J., Lee, J., Geffert, J., Vranes, J., Park, J., Mahadeokar, J., Shah, J., Linde, J., Billock, J., Hong, J., Lee, J., Fu, J., Chi, J., Huang, J., Liu, J., Wang, J., Yu, J., Bitton, J., Spisak, J., Park, J., Rocca, J., Johnstun, J., Saxe, J., Jia, J., Alwala, K., Prasad, K., Upasani, K., Plawiak, K., Li, K., Heafield, K., Stone, K., El-Arini, K., Iyer, K., Malik, K., Chiu, K., Bhalla, K., Lakhotia, K., Rantala-Yeary, L., Maaten, L., Chen, L., Tan, L., Jenkins, L., Martin, L., Madaan, L., Malo, L., Blecher, L., Landzaat, L., Oliveira, L., Muzzi, M., Pasupuleti, M., Singh, M., Paluri, M., Kardas, M., Tsimpoukelli, M., Oldham, M., Rita, M., Pavlova, M., Kambadur, M., Lewis, M., Si, M., Singh, M., Hassan, M., Goyal, N., Torabi, N., Bashlykov, N., Bogoychev, N., Chatterji, N., Zhang, N., Duchenne, O., Çelebi, O., Alrassy, P., Zhang, P., Li, P., Vasic, P., Weng, P., Bhargava, P., Dubal, P., Krishnan, P., Koura, P., Xu, P., He, Q., Dong, Q., Srinivasan, R., Ganapathy, R., Calderer, R., Cabral, R., Stojnic, R., RAILANU, R., Maheswari, R., Girdhar, R., Patel, R., Sauvestre, R., Polidoro, R., Sumbaly, R., Taylor, R., Silva, R., Hou, R., Wang, R., Hosseini, S., Chennabasappa, S., Singh, S., Bell, S., Kim, S., Edunov, S., Nie, S., Narang, S., Raparthy, S., Shen, S., Wan, S., Bhosale, S., Zhang, S., Vandenhende, S., Batra, S., Whitman, S., Sootla, S., Collot, S., Gururangan, S., Borodinsky, S., Herman, T., Fowler, T., Sheasha, T., Georgiou, T., Scialom, T., Speckbacher, T., Mihaylov, T., Xiao, T., Karn, U., Goswami, V., Gupta, V., Ramanathan, V., Kerkez, V., Gonguet, V., Do, V., Vogeti, V., Albiero, V., Petrovic, V., Chu, W., Xiong, W., Fu, W., Meers, W., Martinet, X., Wang, X., Wang, X., Tan, X., Xia, X., Xie, X., Jia, X., Wang, X., Goldschlag, Y., Gaur, Y., Babaei, Y., Wen, Y., Song, Y., Zhang, Y., Li, Y., Mao, Y., Coudert, Z., Yan, Z., Chen, Z., Papakipos, Z., Singh, A., Srivastava, A., Jain, A., Kelsey, A., Shajnfeld, A., Gangidi, A., Victoria, A., Goldstand, A., Menon, A., Sharma, A., Boesenberg, A., Baevski, A., Feinstein, A., Kallet, A., Sangani, A., Teo, A., Yunus, A., Lupu, A., Alvarado, A., Caples, A., Gu, A., Ho, A., Poulton, A., Ryan, A., Ramchandani, A., Dong, A., Franco, A., Goyal, A., Saraf, A., Chowdhury, A., Gabriel, A., Bharambe, A., Eisenman, A., Yazdan, A., James, B., Maurer, B., Leonhardi, B., Huang, B., Loyd, B., Paola, B., Paranjape, B., Liu, B., Wu, B., Ni, B., Hancock, B., Wasti, B., Spence, B., Stojkovic, B., Gamido, B., Montalvo, B., Parker, C., Burton, C., Mejia, C., Liu, C., Wang, C., Kim, C., Zhou, C., Hu, C., Chu,
C., Cai, C., Tindal, C., Feichtenhofer, C., Gao, C., Civin, D., Beaty, D., Kreymer, D., Li, D., Adkins, D., Xu, D., Testuggine, D., David, D., Parikh, D., Liskovich, D., Foss, D., Wang, D., Le, D., Holland, D., Dowling, E., Jamil, E., Montgomery, E., Presani, E., Hahn, E., Wood, E., Le, E., Brinkman, E., Arcaute, E., Dunbar, E., Smothers, E., Sun, F., Kreuk, F., Tian, F., Kokkinos, F., Ozgenel, F., Caggioni, F., Kanayet, F., Seide, F., Florez, G., Schwarz, G., Badeer, G., Swee, G., Halpern, G., Herman, G., Sizov, G., Guangyi, Zhang, Lakshminarayanan, G., Inan, H., Shojanazeri, H., Zou, H., Wang, H., Zha, H., Habeeb, H., Rudolph, H., Suk, H., Aspegren, H., Goldman, H., Zhan, H., Damlaj, I., Molybog, I., Tufanov, I., Leontiadis, I., Veliche, I., Gat, I., Weissman, J., Geboski, J., Kohli, J., Lam, J., Asher, J., Gaya, J., Marcus, J., Tang, J., Chan, J., Zhen, J., Reizenstein, J., Teboul, J., Zhong, J., Jin, J., Yang, J., Cummings, J., Carvill, J., Shepard, J., McPhie, J., Torres, J., Ginsburg, J., Wang, J., Wu, K., U, K., Saxena, K., Khandelwal, K., Zand, K., Matosich, K., Veeraraghavan, K., Michelena, K., Li, K., Jagadeesh, K., Huang, K., Chawla, K., Huang, K., Chen, L., Garg, L., A, L., Silva, L., Bell, L., Zhang, L., Guo, L., Yu, L., Moshkovich, L., Wehrstedt, L., Khabsa, M., Avalani, M., Bhatt, M., Mankus, M., Hasson, M., Lennie, M., Reso, M., Groshev, M., Naumov, M., Lathi, M., Keneally, M., Liu, M., Seltzer, M., Valko, M., Restrepo, M., Patel, M., Vyatskov, M., Samvelyan, M., Clark, M., Macey, M., Wang, M., Hermoso, M., Metanat, M., Rastegari, M., Bansal, M., Santhanam, N., Parks, N., White, N., Bawa, N., Singhal, N., Egebo, N., Usunier, N., Mehta, N., Laptev, N., Dong, N., Cheng, N., Chernoguz, O., Hart, O., Salpekar, O., Kalinli, O., Kent, P., Parekh, P., Saab, P., Balaji, P., Rittner, P., Bontrager, P., Roux, P., Dollar, P., Zvyagina, P., Ratanchandani, P., Yuvraj, P., Liang, Q., Alao, R., Rodriguez, R., Ayub, R., Murthy, R., Nayani, R., Mitra, R., Parthasarathy, R., Li, R., Hogan, R., Battey, R., Wang, R., Howes, R., Rinott, R., Mehta, S., Siby, S., Bondu, S., Datta, S., Chugh, S., Hunt, S., Dhillon, S., Sidorov, S., Pan, S., Mahajan, S., Verma, S., Yamamoto, S., Ramaswamy, S., Lindsay, S., Lindsay, S., Feng, S., Lin, S., Zha, S., Patil, S., Shankar, S., Zhang, S., Zhang, S., Wang, S., Agarwal, S., Sajuyigbe, S., Chintala, S., Max, S., Chen, S., Kehoe, S., Satterfield, S., Govindaprasad, S., Gupta, S., Deng, S., Cho, S., Virk, S., Subramanian, S., Choudhury, S., Goldman, S., Remez, T., Glaser, T., Best, T., Koehler, T., Robinson, T., Li, T., Zhang, T., Matthews, T., Chou, T., Shaked, T., Vontimitta, V., Ajayi, V., Montanez, V., Mohan, V., Kumar, V., Mangla, V., Ionescu, V., Poenaru, V., Mihailescu, V., Ivanov, V., Li, W., Wang, W., Jiang, W., Bouaziz, W., Constable, W., Tang, X., Wu, X., Wang, X., Wu, X., Gao, X., Kleinman, Y., Chen, Y., Hu, Y., Jia, Y., Qi, Y., Li, Y., Zhang, Y., Zhang, Y., Adi, Y., Nam, Y., Yu, Wang, Zhao, Y., Hao, Y., Qian, Y., Li, Y., He, Y., Rait, Z., DeVito, Z.,
Rosnbrick, Z., Wen, Z., Yang, Z., Zhao, Z., and Ma, Z. The Llama 3 Herd of Models, 2024.
He, K., Zhang, X., Ren, S., and Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, 2016. doi: 10.1109/CVPR.2016.90.
He, L., Zheng, S., Sun, K., Liu, Y., Zhao, Y., Tan, C., Yang, H., Du, Y., and Du, L. BASE-Q: Bias and Asymmetric Scaling Enhanced Rotational Quantization for Large Language Models. arXiv preprint arXiv:2506.15689, 2025.
He, W., Shim, W., Yin, S., Sun, X., Fan, D., Yu, S., and Seo, J. Characterization and Mitigation of Relaxation Effects on Multi-level RRAM based In-Memory Computing. In 2021 IEEE International Reliability Physics Symposium (IRPS), pp. 1–7. IEEE, 2021. doi: 10.1109/irps46558.2021.9405228.
Hendrycks, D., Burns, C., Basart, S., Zou, A., Mazeika, M., Song, D., and Steinhardt, J. Measuring Massive Multitask Language Understanding. In International Conference on Learning Representations (ICLR), 2021.
Horowitz, M. Computing’s energy problem (and what we can do about it). In 2014 IEEE International Solid-State Circuits Conference Digest of Technical Papers (ISSCC), pp. 10–14. IEEE, 2014. doi: 10.1109/ISSCC.2014.6757323.
Hou, Y., Tsai, H., El Maghraoui, K., Gokmen, T., Burr, G. W., and Liu, L. NORA: Noise-Optimized Rescaling of LLMs on Analog Compute-in-Memory Accelerators. In 2025 Design, Automation & Test in Europe Conference (DATE), pp. 1–7. IEEE, 2025. doi: 10.23919/date64628.2025.10993217.
Huang, F., Han, Z., Zhou, X., Chen, Y., Zhu, L., and Wang, H. ConvRot: Rotation-Based Plug-and-Play 4-bit Quantization for Diffusion Transformers. arXiv preprint arXiv:2512.03673, 2025.
Jain, S., Tsai, H., Chen, C.-T., Muralidhar, R., Boybat, I., Frank, M. M., Woźniak, S., Stanisavljevic, M., Adusumilli, P., Narayanan, P., Hosokawa, K., Ishii, M., Kumar, A., Narayanan, V., and Burr, G. W. A Heterogeneous and Programmable Compute-In-Memory Accelerator Architecture for Analog-AI Using Dense 2-D Mesh. IEEE Transactions on Very Large Scale Integration (VLSI) Systems, 31(1):114–127, 2023. doi: 10.1109/TVLSI.2022.3221390.
Joshi, V., Le Gallo, M., Haefeli, S., Boybat, I., Nandakumar, S. R., Piveteau, C., Dazzi, M., Rajendran, B., Sebastian, A., and Eleftheriou, E. Accurate deep neural net-work inference using computational phase-change memory. Nature Communications, 11(1):2473, 2020. doi:10.1038/s41467-020-16108-9.
Karfakis, G., Chakrabarty, S., Jacob, V. K., Qiao, S., Iyer, S. S., Pamarti, S., and Gupta, P. MXFormer: A Microscaling Floating-Point Charge-Trap Transistor Compute-in-Memory Transformer Accelerator. arXiv preprint arXiv:2602.12480, 2026.
Kariyappa, S., Tsai, H., Spoon, K., Ambrogio, S., Narayanan, P., Mackin, C., Chen, A., Qureshi, M., and Burr, G. W. Noise-Resilient DNN: Tolerating Noise in PCM-Based AI Accelerators via Noise-Aware Training. IEEE Transactions on Electron Devices, 68(9):4356–4362, 2021. doi: 10.1109/ted.2021.3089987.
Khaddam-Aljameh, R., Stanisavljevic, M., Fornt Mas, J., Karunaratne, G., Brändli, M., Liu, F., Singh, A., Müller, S. M., Egger, U., Petropoulos, A., Antonakopoulos, T., Brew, K., Choi, S., Ok, I., Lie, F. L., Saulnier, N., Chan, V., Ahsan, I., Narayanan, V., Nandakumar, S. R., Le Gallo, M., Francese, P. A., Sebastian, A., and Eleftheriou, E. HERMES-Core—A 1.59-TOPS/mm² PCM on 14-nm CMOS In-Memory Compute Core Using 300-ps/LSB Linearized CCO-Based ADCs. IEEE Journal of Solid-State Circuits, 57(4):1027–1038, 2022. doi: 10.1109/JSSC.2022.3140414.
Kneip, A., Lefebvre, M., Maistriaux, P., and Bol, D. IMAGINE: An 8-to-1b 22nm FD-SOI Compute-In-Memory CNN Accelerator With an End-to-End Analog Charge-Based 0.15-8POPS/W Macro Featuring Distribution-Aware Data Reshaping. IEEE Transactions on Circuits and Systems for Artificial Intelligence, 2(3):222–235, 2025. doi: 10.1109/TCASAI.2025.3576323.
Lammie, C., Vasilopoulos, A., Büchel, J., Camposampiero, G., Le Gallo, M., Rasch, M., and Sebastian, A. Improving the Accuracy of Analog-Based In-Memory Computing Accelerators Post-Training. In 2024 IEEE International Symposium on Circuits and Systems (ISCAS), pp. 1–5. IEEE, 2024. doi: 10.1109/iscas58744.2024.10558540.
Le Gallo, M., Khaddam-Aljameh, R., Stanisavljevic, M., Vasilopoulos, A., Kersting, B., Dazzi, M., Karunaratne, G., Brändli, M., Singh, A., Müller, S. M., Büchel, J., Timoneda, X., Joshi, V., Rasch, M. J., Egger, U., Garofalo, A., Petropoulos, A., Antonakopoulos, T., Brew, K., Choi, S., Ok, I., Philip, T., Chan, V., Silvestre, C., Ahsan, I., Saulnier, N., Narayanan, V., Francese, P. A., Eleftheriou, E., and Sebastian, A. A 64-core mixed-signal in-memory compute chip based on phase-change memory for deep neural network inference. Nature Electronics, 6(9):680–693, 2023. doi: 10.1038/s41928-023-01010-1.
Li, T., Li, S., and Gupta, P. Training Neural Networks for Execution on Approximate Hardware. In tinyML Research Symposium, 2023a.
Li, Z., Xiao, J., Yang, L., and Gu, Q. RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformers. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 17181–17190. IEEE, 2023b. doi: 10.1109/iccv51070.2023.01580.
Liu, Z., Oguz, B., Zhao, C., Chang, E., Stock, P., Mehdad, Y., Shi, Y., Krishnamoorthi, R., and Chandra, V. LLM-QAT: Data-Free Quantization Aware Training for Large Language Models. In Findings of the Association for Computational Linguistics: ACL 2024, pp. 467–484. Association for Computational Linguistics, 2024. doi: 10.18653/v1/2024.findings-acl.26.
Liu, Z., Zhao, C., Fedorov, I., Soran, B., Choudhary, D., Krishnamoorthi, R., Chandra, V., Tian, Y., and Blankevoort, T. SpinQuant: LLM quantization with learned rotations. In International Conference on Learning Representations (ICLR), 2025.
Mackin, C., Rasch, M. J., Chen, A., Timcheck, J., Bruce, R. L., Li, N., Narayanan, P., Ambrogio, S., Le Gallo, M., Nandakumar, S. R., Fasoli, A., Luquin, J., Friz, A., Sebastian, A., Tsai, H., and Burr, G. W. Optimised weight programming for analogue memory-based deep neural networks. Nature Communications, 13(1):3765, 2022. doi: 10.1038/s41467-022-31405-1.
Meisner, D. B. On a construction of regular Hadamard matrices. Atti della Accademia Nazionale dei Lincei. Classe di Scienze Fisiche, Matematiche e Naturali. Rendiconti Lincei. Matematica e Applicazioni, Serie 9, 3(4):233–240, 1992.
Merity, S., Xiong, C., Bradbury, J., and Socher, R. Pointer Sentinel Mixture Models. In International Conference on Learning Representations (ICLR), 2017.
Murmann, B. ADC performance survey 1997–2024. https://github.com/bmurmann/ADC-survey, 2024.
Nagel, M., van Baalen, M., Blankevoort, T., and Welling, M. Data-Free Quantization Through Weight Equalization and Bias Correction. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pp. 1325–1334, 2019. doi: 10.1109/ICCV.2019.00141.
Nagel, M., Fournarakis, M., Amjad, R. A., Bondarenko, Y., van Baalen, M., and Blankevoort, T. A White Paper on Neural Network Quantization. arXiv preprint arXiv:2106.08295, 2021.
Nandakumar, S. R., Boybat, I., Joshi, V., Piveteau, C., Le Gallo, M., Rajendran, B., Sebastian, A., and Eleftheriou, E. Phase-Change Memory Models for Deep Learning Training and Inference. In 2019 26th IEEE International Conference on Electronics, Circuits and Systems (ICECS), pp. 727–730. IEEE, 2019. doi: 10.1109/icecs46596.2019.8964852.
Rasch, M. J., Moreda, D., Gokmen, T., Le Gallo, M., Carta, F., Goldberg, C., El Maghraoui, K., Sebastian, A., and Narayanan, V. A Flexible and Fast PyTorch Toolkit for Simulating Training and Inference on Analog Crossbar Arrays. In 2021 IEEE 3rd International Conference on Artificial Intelligence Circuits and Systems (AICAS), pp. 1–4. IEEE, 2021. doi: 10.1109/aicas51828.2021.9458494.
Rasch, M. J., Mackin, C., Le Gallo, M., Chen, A., Fasoli, A., Odermatt, F., Li, N., Nandakumar, S. R., Narayanan, P., Tsai, H., Burr, G. W., Sebastian, A., and Narayanan, V. Hardware-aware training for large-scale and diverse deep learning inference workloads using in-memory computing-based accelerators. Nature Communications, 14(1):5282, 2023. doi: 10.1038/s41467-023-40770-4.
Russakovsky, O., Deng, J., Su, H., Krause, J., Satheesh, S., Ma, S., Huang, Z., Karpathy, A., Khosla, A., Bernstein, M., Berg, A. C., and Fei-Fei, L. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision, 115(3):211–252, 2015. doi: 10.1007/s11263-015-0816-y.
Sebastian, A., Le Gallo, M., Khaddam-Aljameh, R., and Eleftheriou, E. Memory devices and applications for in-memory computing. Nature Nanotechnology, 15(7): 529–544, 2020. doi: 10.1038/s41565-020-0655-z.
Shafiee, A., Nag, A., Muralimanohar, N., Balasubramonian, R., Strachan, J. P., Hu, M., Williams, R. S., and Srikumar, V. ISAAC: A Convolutional Neural Network Accelerator with In-Situ Analog Arithmetic in Crossbars. In 2016 ACM/IEEE 43rd Annual International Symposium on Computer Architecture (ISCA), pp. 14–26. IEEE, 2016. doi: 10.1109/isca.2016.12.
Son, S., Park, W., Han, W., Kim, K., and Lee, J. Prefixing Attention Sinks can Mitigate Activation Outliers for Large Language Model Quantization. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), 2024.
Spoon, K., Tsai, H., Chen, A., Rasch, M. J., Ambrogio, S., Mackin, C., Fasoli, A., Friz, A. M., Narayanan, P., Stanisavljevic, M., and Burr, G. W. Toward Software-Equivalent Accuracy on Transformer-Based Deep Neural Networks With Analog Memory Devices. Frontiers in Computational Neuroscience, 15:675741, 2021. doi: 10.3389/fncom.2021.675741.
Steiner, A., Kolesnikov, A., Zhai, X., Wightman, R., Uszkoreit, J., and Beyer, L. How to train your ViT? Data, Augmentation, and Regularization in Vision Transformers. Transactions on Machine Learning Research, 2022.
Sun, M., Chen, X., Kolter, J. Z., and Liu, Z. Massive Activations in Large Language Models. In First Conference on Language Modeling (COLM), 2024.
Touvron, H., Cord, M., Douze, M., Massa, F., Sablayrolles, A., and Jégou, H. Training data-efficient image transformers & distillation through attention. In Proceedings of the International Conference on Machine Learning (ICML), 2021.
Tseng, A., Chee, J., Sun, Q., Kuleshov, V., and De Sa, C. QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks. In Proceedings of the International Conference on Machine Learning (ICML), 2024.
Verma, N., Jia, H., Valavi, H., Tang, Y., Ozatay, M., Chen, L.-Y., Zhang, B., and Deaville, P. In-Memory Computing: Advances and Prospects. IEEE Solid-State Circuits Magazine, 11(3):43–55, 2019. doi: 10.1109/MSSC.2019.2922889.
Wan, W., Kubendran, R., Schaefer, C., Eryilmaz, S. B., Zhang, W., Wu, D., Deiss, S., Raina, P., Qian, H., Gao, B., Joshi, S., Wu, H., Wong, H.-S. P., and Cauwenberghs, G. A compute-in-memory chip based on resistive random-access memory. Nature, 608(7923):504–512, 2022. doi: 10.1038/s41586-022-04992-8.
Wei, X., Zhang, Y., Li, Y., Zhang, X., Gong, R., Guo, J., and Liu, X. Outlier Suppression+: Accurate quantization of large language models by equivalent and optimal shifting and scaling. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), 2023.
Wolters, C., Yang, X., Schlichtmann, U., and Suzumura, T. Memory Is All You Need: An Overview of Compute-in-Memory Architectures for Accelerating Large Language Model Inference. arXiv preprint arXiv:2406.08413, 2024.
Xiao, G., Lin, J., Seznec, M., Wu, H., Demouth, J., and Han, S. SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models. In Proceedings of the International Conference on Machine Learning (ICML), 2023.
Xiao, G., Tian, Y., Chen, B., Han, S., and Lewis, M. Efficient Streaming Language Models with Attention Sinks. In International Conference on Learning Representations (ICLR), 2024.
Xiao, T. P., Feinberg, B., Bennett, C. H., Agrawal, V., Saxena, P., Prabhakar, V., Ramkumar, K., Medu, H., Raghavan, V., Chettuvetty, R., Agarwal, S., and Marinella, M. J. An Accurate, Error-Tolerant, and Energy-Efficient Neural Network Inference Engine Based on SONOS Analog Memory. IEEE Transactions on Circuits and Systems I: Regular Papers, 69(4):1480–1493, 2022a. doi:10.1109/tcsi.2021.3134313.
Xiao, T. P., Feinberg, B., Bennett, C. H., Prabhakar, V., Saxena, P., Agrawal, V., Agarwal, S., and Marinella, M. J. On the Accuracy of Analog Neural Network Inference Accelerators. IEEE Circuits and Systems Magazine, 22(4):26–48, 2022b. doi: 10.1109/mcas.2022.3214409.
Yang, A., Li, A., Yang, B., Zhang, B., Hui, B., Zheng, B., Yu, B., Gao, C., Huang, C., Lv, C., Zheng, C., Liu, D., Zhou, F., Huang, F., Hu, F., Ge, H., Wei, H., Lin, H., Tang, J., Yang, J., Tu, J., Zhang, J., Yang, J., Yang, J., Zhou, J., Zhou, J., Lin, J., Dang, K., Bao, K., Yang, K., Yu, L., Deng, L., Li, M., Xue, M., Li, M., Zhang, P., Wang, P., Zhu, Q., Men, R., Gao, R., Liu, S., Luo, S., Li, T., Tang, T., Yin, W., Ren, X., Wang, X., Zhang, X., Ren, X., Fan, Y., Su, Y., Zhang, Y., Zhang, Y., Wan, Y., Liu, Y., Wang, Z., Cui, Z., Zhang, Z., Zhou, Z., and Qiu, Z. Qwen3 Technical Report, 2025.
Yang, J., Dong, S., Fu, Z., Shang, H., and Basu, A. A Re-configurable Computing In-Memory Macro with Charge-sharing-based Weighted Accumulator. arXiv preprint arXiv:2605.30814, 2026a.
Yang, J., Luo, X., Ke, Y., Wang, Z., Shang, H., Dong, S., Fu, Z., Yang, X., Liu, H., and Basu, A. A 33.6–136.2-TOPS/W Nonlinear Analog Computing-in-Memory Macro for Multi-Bit LSTM Accelerator in 65-nm CMOS. IEEE Journal of Solid-State Circuits, 61(7): 3704–3717, 2026b. doi: 10.1109/JSSC.2025.3638445.
Zellers, R., Holtzman, A., Bisk, Y., Farhadi, A., and Choi, Y. HellaSwag: Can a Machine Really Finish Your Sentence? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (ACL), pp. 4791–4800, 2019. doi: 10.18653/v1/P19-1472.
Zhou, C., Redondo, F. G., Büchel, J., Boybat, I., Comas, X. T., Nandakumar, S. R., Das, S., Sebastian, A., Le Gallo, M., and Whatmough, P. N. ML-HW Co-Design of Noise-Robust TinyML Models and Always-On Analog Compute-in-Memory Edge Accelerator. IEEE Micro, 42(6):76–87, 2022. doi: 10.1109/MM.2022.3198321.
Zhou, W., Liu, Z., Wu, T., Ding, C., Ren, Y., and Wong, N. Towards Robust RRAM-Based Vision Transformer Models with Noise-Aware Knowledge Distillation. In 2025 Design, Automation & Test in Europe Conference
(DATE), pp. 1–2. IEEE, 2025. doi: 10.23919/date64628.2025.10993112.
A EVALUATION DETAILS
Models and data. The ViTs use the timm AugReg checkpoints, pretrained on ImageNet-21k and fine-tuned on ImageNet-1k (Steiner et al., 2022). DeiT-S and the ResNets use their ImageNet-1k checkpoints from timm and torchvision. For the vision models, we use 1,024 ImageNet validation images for calibration and the remaining 48,976 for evaluation. Ablations and converter studies use 4,898 evaluation images. CNN and ViT centering means use 1,024 separate training images. LLM accuracy is the unweighted mean of MMLU, HellaSwag, ARC-Easy, and ARC-Challenge, using likelihood scoring. Calibration uses approximately 8,192 held-out tokens per task. The opening chat-template token is digital and unscored.
Calibration and refresh. All static settings come from a clean calibration pass before deployment: a simulated forward pass over the calibration data without any analog effects. The ADC ranges are then scaled once, offline, by the device model's nominal drift at the target read age. At read time, only the PCM drift gain is measured, following Joshi et al. (2020) (Table 6). Because the rotations make this gain nearly uniform across the arrays of a layer (Appendix G) and make the computation on the arrays itself more robust to drift (Section 6.4), we expect them to assist drift compensation without online reads. We did not test this and use the default AIHWKit implementation (Rasch et al., 2021).
Table 6. What is calibrated, measured or refreshed.
| Input mean | Clean pass, per input channel |
|---|---|
| DAC range | Clean pass, per layer input |
| ADC range | Clean pass, per array, scaled offline for nominal drift |
| Drift gain | PCM only, probe readout at read time (Joshi et al., 2020) |
| Reference column | ReRAM only, one per array, subtracted before the ADC |
| Weights | Programmed once at , never refreshed |
Weight mapping and converters. Each array's largest absolute weight maps to maximum conductance. Main noisy-device runs use continuous targets. Static DAC ranges use a histogram observer, and ADCs use signed, symmetric quantization with MSE-based range selection. LLM down-projection DAC ranges are clipped at the 99.9th percentile.
Transforms. Output rotations use regular Hadamard blocks of the largest power of four up to 256 that divides the layer width, and 64 in the ResNets and the 384-wide DeiT-S layers. Input rotations use plain Hadamard blocks within each tile. Attention projections use head-local plain blocks, including three blocks of 32 per head in Phi-3-mini. All transforms are built in closed form with fixed signs and permutations.
Simulator. Most evaluation scripts build on AIHWKit (Rasch et al., 2021) at commit eb089df.
B DIGITAL COST
Added operations. Each Hadamard transform of block size costs additions per element with the four-point construction, which we use whenever possible, and at most otherwise, and no multiplications (Section 4.1). Centering adds one subtraction per input element of each analog projection. The centering correction and the drift gain fold into existing digital operations and add no cost, except in Qwen3-1.7B, which has no biases and adds one addition per output for the centering correction.
Normalization. We report the added operations as a share of all operations, where each analog multiply-accumulate counts as two operations and the existing digital operations cover the whole model, including its digital input and output layers. Costs are per token for ViT (image cost divided by 197) and Qwen3-1.7B (at a reference context of 389.5 tokens), and per image for ResNet. Figures 13 and 18 plot the total digital share , where counts each analog multiply-accumulate as two operations, is the existing digital work and the added operations. The added share alone is . Existing digital operations comprise the attention products , softmax with score scaling, LayerNorm and RMSNorm (including the Q/K head norms), activations (GELU, SwiGLU), RoPE, residual additions, DAC quantizers, accumulation across arrays, and the digital input and output layers. Each scalar operation counts as one. Signs, permutations, shifts and data movement are free.
Frontier configurations. The frontier evaluates partial applications of the method: rotations restricted to subsets of layer types, with and without centering, at block sizes from 4 to 256. Each point is costed from its own configuration.
C PRECOMPUTED FIRST TOKEN
First-token outlier. Prompts share an opening chat-template token that receives 63.3% of attention in the clean diagnostic. Its layer-2 down-projection input reaches 17,616 versus 9.0 for remaining tokens (, Figure 16a). Including it in the histogram observer widens the static DAC range by .
Precomputation. We remove the clean opening token from array execution and range calibration, caching its hidden state and K/V entries. The prefix remains in subsequent attention. This does not require any online operations, as it can be precomputed for causal attention.
Result. Precomputation lowers NLL from 5.4319 to 3.1018 in the matched static-DAC comparison (Figure 16b). Cali-bration uses four consecutive 2,048-token WikiText-2 (Merity et al., 2017) training windows, and evaluation uses 32 test windows, excluding the prefix and first content token from scoring.
a First-token outliers

b Precomputed first token

Figure 16. Qwen3-1.7B first-token diagnostic. (a) Maximum absolute layer-2 projection inputs for the first and remaining tokens over four prompts. (b) WikiText NLL, the log perplexity, on PCM with 6-bit ADCs, 8-bit DACs and a one-day read age, showing the impact of executing the first token on the arrays.
D LEAVE-ONE-OUT ABLATION
Removing one component at a time from the full method confirms the build-up of Section 6.3 (Figure 17). Output rotations matter most, except for ResNet-50 on PCM, where centering matters more. Of the other two components, input rotations matter more for ViT-B/16, and centering for ResNet-50 and Qwen3-1.7B. For ViT-B/16, removing centering changes accuracy by less than 0.5 points.

Figure 17. Accuracy with one component removed from our method, on PCM with 4-bit ADCs at one day and ReRAM with 8-bit ADCs at five days. Vision models use 4,898 evaluation images and one seed.
E CENTERING ON ViT-B/16
Centering barely changes ViT-B/16 accuracy once both rotations are applied, by -0.5 to +0.1 points across devices and ADC precisions. Its inputs carry little static component, a median of 8% of their squared L2 norm against 28% in ResNet-50 and 32% in Qwen3-1.7B (Section 3.1). The output rotation also spreads the static output that remains across columns, so centering leaves little to remove: the median per-projection ratio of uncentered to centered 4-bit ADC error is only 1.06, against 1.35 in ResNet-50 and 1.24 in Qwen3-1.7B.
F PLAIN AND REGULAR BLOCKS WITH A FIXED REFERENCE
CMO ReRAM arrays can subtract a fixed nominal reference instead of a reference column, as AIHWKit does by default (Rasch et al., 2021), which saves the reference column and its tracking circuitry. The relaxation shift is then not cancelled and adds a shared error to every output column. We
Table 7. AFM comparison: per-task accuracy (%) and the unweighted four-task mean. multiplies the programming-noise standard deviation: 1.00 is nominal and 1.10 is adjusted to match the published noise-only baseline. Our SI8/O8 rows use one seed at and ten at , and noise-only rows use four Phi seeds and three/ten Llama seeds at . Uncertainties are sample SDs. SI/DI denote static/dynamic inputs, and W16h/W4h denote the publication's hardware-noisy weight formats.
| Method | Precision | MMLU | HellaSwag | ARC-C | ARC-E | Mean | |
|---|---|---|---|---|---|---|---|
| Phi-3-mini | |||||||
| Published results | |||||||
| FP | W16 | – | 69.4 | 83.5 | 84.6 | 91.1 | 82.1 |
| Original | W16h | – | 63.3 | 73.4 | 80.4 | 89.0 | 76.5 |
| AFM | SI8-W16h-O8 | – | 65.1 | 80.6 | 83.2 | 89.8 | 79.7 |
| LLM-QAT (Liu et al., 2024) | SI8-W4h | – | 60.1 | 74.8 | 77.9 | 87.2 | 75.0 |
| SpinQuant | SI8-W4h | – | 29.7 | 25.1 | 29.6 | 36.0 | 30.1 |
| SpinQuant | DI8-W4h | – | 48.3 | 33.4 | 60.6 | 75.7 | 54.5 |
| Our measurements | |||||||
| FP | W16 | – | 68.9 | 83.8 | 84.9 | 91.5 | 82.3 |
| Noise only | W16h | 1.00 | 64.3 | 76.0 | 81.7 | 89.5 | 77.9 |
| Noise only | W16h | 1.10 | |||||
| Unmodified | SI8-W16h-O8 | 1.00 | 60.4 | 72.5 | 81.0 | 88.6 | 75.6 |
| Unmodified | SI8-W16h-O8 | 1.10 | |||||
| Ours | SI8-W16h-O8 | 1.00 | 64.9 | 79.6 | 82.3 | 90.4 | 79.3 |
| Ours | SI8-W16h-O8 | 1.10 | |||||
| Llama-3.2-1B | |||||||
| Published results | |||||||
| FP | W16 | – | 46.9 | 33.2 | 51.7 | 69.2 | 50.2 |
| Original | W16h | – | 35.9 | 26.5 | 39.2 | 52.4 | 38.5 |
| AFM | SI8-W16h-O8 | – | 42.9 | 29.3 | 46.7 | 63.1 | 45.5 |
| LLM-QAT | SI8-W4h | – | 40.1 | 29.0 | 43.8 | 59.0 | 42.9 |
| SpinQuant | SI8-W4h | – | 25.6 | 24.9 | 24.8 | 24.7 | 25.0 |
| SpinQuant | DI8-W4h | – | 33.2 | 25.8 | 35.4 | 46.1 | 35.1 |
| Our measurements | |||||||
| FP | W16 | – | 46.0 | 32.5 | 50.6 | 68.6 | 49.4 |
| Noise only | W16h | 1.00 | 38.4 | 27.0 | 40.0 | 57.2 | 40.7 |
| Noise only | W16h | 1.10 | |||||
| Unmodified | SI8-W16h-O8 | 1.00 | 37.4 | 27.3 | 38.9 | 53.7 | 39.3 |
| Unmodified | SI8-W16h-O8 | 1.10 | |||||
| Ours | SI8-W16h-O8 | 1.00 | 41.6 | 27.6 | 46.2 | 62.5 | 44.5 |
| Ours | SI8-W16h-O8 | 1.10 | |||||
do not use this default for our results, because the unmodified model collapses under it (Table 8), and our read-age results (Section 6.4) suggest that the other drift-sensitive baselines would too. We instead use a reference column that ages with the weights (Appendix L). Regular blocks cost nothing where plain blocks suffice and prevent collapse where they fail: with a reference column both perform alike at 8-bit ADCs, but with a fixed reference plain blocks collapse to 0.0% while regular blocks hold at 82.7% (Table 8).
Table 8. ViT-B/16 top-1 accuracy (%) on CMO ReRAM with 8-bit ADCs five days after programming, with our method using regular or plain output blocks, on 4,898 evaluation images with one seed.
| Reference | Regular blocks | Plain blocks | Unmodified |
|---|---|---|---|
| Reference column | 82.9 | 82.7 | 24.8 |
| Fixed reference | 82.7 | 0.0 | 0.1 |
G DRIFT COMPENSATION GRANULARITY
Global drift compensation (Joshi et al., 2020) usually estimates one gain per array. Our method needs only one gain per layer, folded into the inverse output rotation: the rotations make the arrays of a layer statistically alike, so

Figure 18. ViT-B/16 accuracy against the digital share of all analog and digital operations, on ReRAM with 8-bit ADCs at five days, with programming, read and drift noise scaled by . The dashed line marks floating-point accuracy.
they drift alike and per-array compensation would assign them nearly the same gain (Table 9). With our method, these gains differ by a median below 1%, against up to 22% without it. One gain per layer therefore leaves our local output NMSE unchanged.
Table 9. Gain spread (%) of per-array compensation, PCM with 4-bit ADCs at one day: the relative difference between the gains it assigns to the arrays of one layer, as median / maximum over layers.
| Model | Unmodified | Ours |
|---|---|---|
| ViT | 5.7 / 21 | 0.66 / 2.8 |
| ResNet | 2.0 / 13 | 0.21 / 2.2 |
| Qwen | 7.9 / 22 | 0.92 / 2.4 |
H DEVICE NOISE STRENGTH
Figure 18 repeats the cost and accuracy trade-off of Section 6.4 for ViT-B/16 with programming, read and drift noise scaled by . At half the default noise, the unmodified model is already close to floating-point accuracy, and only the full method improves on it. As noise increases, more of the method is needed to reach the same accuracy, and at twice the default noise most of the gain comes from the most complete configurations.
I IR DROP
IR drop is negligible in our tests. With the AIHWKit IR-drop model at its default wire resistance and a maximum conductance of 25 S, the worst rotated ViT-B/16 or Qwen3-1.7B projection has an IR-drop RMS error of about 4% of its output RMS, while the step of a 4-bit ADC under our range rule is about half the output RMS. End to end, the
accuracy of our method on ViT-B/16 changes by less than 0.4 points on PCM, even at twice the default wire resistance (Table 10).
Table 10. ViT-B/16 top-1 accuracy (%) on PCM at one day, as ours/unmodified, without IR drop and with IR drop at 1, 1.5 and 2 times the default wire resistance.
| ADC | IR off | 1× | 1.5× | 2× |
|---|---|---|---|---|
| 4 | 80.2/4.0 | 80.0/3.9 | 80.1/3.7 | 79.8/3.7 |
| 6 | 82.2/44.1 | 82.3/45.0 | 82.5/44.6 | 82.3/45.2 |
| 8 | 82.5/44.4 | 82.5/44.3 | 82.5/44.6 | 82.7/44.5 |
J HARDWARE-AWARE TRAINING COMPARISON SETUP
ResNet comparison. For ResNet-18/50, we follow the direct-mapping setting of Rasch et al. (2023): PCM programming, drift and read noise or the ReRAM model of Wan et al. (2022), 8-bit ADCs with bounds , a static 8-bit DAC, per-MVM read and output noise, and IR drop. We evaluate one day after programming, with probe-based post-ADC global drift compensation on PCM and none on ReRAM. All 50,000 ImageNet validation images are evaluated, and calibration uses training images. Analog weights are not trained, while digital input scales, per-column output scales, and BatchNorm parameters are fitted as in Rasch et al. (2023).
AFM comparison. We reproduce the AFM Hermes PCM programming-noise setting of Büchel et al. (2025). At its nominal noise (), our noise-only model scores 77.9% on Phi-3-mini and 40.7% on Llama-3.2-1B, above the published 76.5% and 38.5%. Our reproduction is therefore milder than theirs, and comparing at nominal noise would favor our method. The only way we could match their setting was to increase the programming-noise standard deviation by 10% (), which brings the noise-only scores to 76.5% and 38.2%. The main text uses this matched setting. Table 7 includes our measurements at both noise levels to show the adjustment: our method scores 79.3% and 44.5% at nominal noise, and 78.4% and 42.8% at . Checkpoints: microsoft/Phi-3-mini-4k-instruct, revision ff07dc01615f8113924aed013115ab2abd32115b, and meta-llama/Llama-3.2-1B-Instruct, revision 9213176726f574b556790deb65791e0c5aa438b6. Phi-3-mini results outside this comparison use the latest revision, f39ac1d28e925b323eae81227eaba4464caced4e.
SI8-W16h-O8 uses 8-bit output quantization with per-layer calibrated ranges. Scores average MMLU, HellaSwag, ARC-Easy, and ARC-Challenge using the ARC answer-key convention of Büchel et al. (2025).
K QUAROT COMPARISON
Table 11 compares QuaRot (Ashkboos et al., 2024b), applied to the arrays directly, with the unmodified model and our method. QuaRot was designed for digital quantizers. It does not center inputs, and its randomized plain Hadamard blocks behave like the DHP blocks of Figure 4, which raise 4-bit ADC error above the unrotated computation. Appendix D removes our components one at a time.
Table 11. LLM mean accuracy (%) of the unmodified model (U), QuaRot (Q) and our method (O) with 4-bit ADCs, one day after programming. Phi models are scored on 512 questions per task for all three methods.
| Model | Device | U | Q | O | FP |
|---|---|---|---|---|---|
| Llama-3.2-1B | PCM | 24.6 | 26.1 | 41.0 | 50.1 |
| ReRAM | 24.2 | 26.5 | 42.0 | ||
| Qwen3-1.7B | PCM | 23.9 | 31.3 | 47.2 | 59.0 |
| ReRAM | 23.7 | 29.6 | 48.2 | ||
| Phi-3-mini | PCM | 25.7 | 27.3 | 60.2 | 68.4 |
| ReRAM | 24.9 | 26.5 | 61.2 | ||
| Qwen3-8B | PCM | 23.9 | 47.7 | 62.3 | 70.7 |
| ReRAM | 24.4 | 52.4 | 63.1 | ||
| Phi-4 | PCM | 58.1 | 25.6 | 69.4 | 74.4 |
| ReRAM | 31.5 | 26.6 | 70.9 |
L EFFECTIVE WEIGHT PRECISION
Table 12. Effective precision of continuous ViT-B/16 conductances versus read age. Parentheses give effective precision computed from the worst conditional RMS error over the conductance grid. GDC denotes global drift compensation.
| Device / configuration | 1 s | 1 h | 1 day | 5 days |
|---|---|---|---|---|
| PCM, pair + GDC | 4.62(3.32) | 4.44(2.55) | 4.27(2.06) | 4.17(1.86) |
| ReRAM 0.2% | 5.67 | 4.41 | 4.06 | 3.91 |
| fixed ref. | (5.60) | (4.39) | (4.04) | (3.89) |
| ReRAM 2% | 4.99 | 4.22 | 3.93 | 3.80 |
| fixed ref. | (4.40) | (3.95) | (3.74) | (3.63) |
| ReRAM 0.2% | 5.69 | 4.48 | 4.17 | 4.04 |
| fixed ref. + GDC | (4.18) | (2.28) | (1.84) | (1.66) |
| ReRAM 2% | 5.00 | 4.30 | 4.04 | 3.93 |
| fixed ref. + GDC | (4.07) | (2.38) | (1.92) | (1.73) |
| ReRAM 0.2% | 5.17 | 4.36 | 4.14 | 4.03 |
| physical ref. | (5.14) | (4.32) | (4.00) | (3.86) |
| ReRAM 2% | 4.50 | 4.07 | 3.91 | 3.83 |
| physical ref. | (4.15) | (3.85) | (3.73) | (3.67) |
Definition. , with including bias. Estimates cover all ViT transformer linear weights with per-array full-range mapping. GDC uses the per-array mean-absolute-weight ratio.
Reference. AIHWKit subtracts a fixed, ideal reference value by default. Our main ReRAM setting instead subtracts a programmed reference column that ages with the weights, so the reference tracks their drift. This removes much of the shared drift error that a fixed reference would add, which makes the comparison fairer to the baselines. The physical-reference, 0.2%-acceptance row without GDC matches the main ReRAM setting, and the fixed-reference rows show the default for comparison.
ReRAM parameters. We use the 0.2% programming-acceptance variant, using the fits from Falcone et al. (2025).