Manuscript Offprint

arXiv:2610.27910

Local learning with imperfect analog synapses

Théo Dupuis, Adrien Renaudineau, Guillaume Bourgeois, Joel Minguet Lopez, Gabriele Navarro, Jean-Michel Portal, Elisa Vianello, Jacques-Olivier Klein, Damien Querlioz

ABSTRACT

Analog in-memory computing delivers efficient neural network inference at the edge, but systems deployed in non-stationary environments may need to adapt in situ to locally acquired data. Backpropagation faces two structural obstacles here. Its global error transport lets stochastic write errors compound across layers, and its backward pass demands bidirectional, high-precision peripheral circuitry absent from inference-oriented crossbar arrays. We introduce Channel-wise Spatial Gradient learning (CwSG), a strictly local, forward-only rule that trains each convolutional layer by rewarding spatial variation in its feature maps. In simulations replaying the measured trajectories of 1,189 phase-change memory and 1,268 filamentary memristor devices, CwSG learns with single, unverified, sub-1 V pulses. It matches backpropagation on phase-change memory with 59-fold fewer pulses and outperforms it by 53 percentage points on highly variable filamentary memristors, with 8-bit forward converters and without transposed crossbar reads or network-wide activation storage. Analog training thus becomes a problem of credit assignment, in which algorithmic design rather than hardware compensation alone overcomes severe programming noise.

Introduction

Analog in-memory computing (AIMC) delivers highly energy-efficient edge inference by performing matrix-vector multiplications directly within non-volatile memory arrays, such as phase-change memory (PCM) and filamentary memristors (FMs) 1−6^{1-6}. Extending the same arrays from inference to learning would let deployed edge systems adapt to locally acquired data, with potential benefits for energy, latency, and privacy 7−9^{7-9}. Yet the very architecture that makes AIMC efficient for inference is difficult to reconcile with how neural networks are conventionally trained.

The first challenge is credit assignment: determining how each layer should change its weights. Standard offline training relies on backpropagation (BP), which retains intermediate activations and transports errors backward through successive transposed weight matrices 10−12^{10-12}. Mapped onto AIMC, this global dataflow demands bidirectional array access, duplicated peripheral converters, or separately programmed copies of the transposed weights 3,13−16^{3,13-16}, undermining the simple, unidirectional architecture of inference-oriented crossbars.

Forward-only, layer-local learning therefore offers a natural alternative. The original Forward-Forward proposal showed that each layer can be trained on its own “goodness” objective, removing inter-layer backward error transport and network-wide activation retention 17^{17}, although the original algorithm underperforms on deep networks. Supervised local methods have since made this approach substantially more effective for deep convolutional architectures. Convolutional Channel-wise Competitive learning (CwC), in particular, associates groups of channels directly with classes: it obtains a supervised prediction from the active layer alone, without an auxiliary classifier or a second presentation of modified data 18^{18}.

The second challenge is physical: replacing BP with a layer-local objective does not, in itself, make learning robust to imperfect devices. Analog non-volatile memories exhibit device-to-device variability, state-dependent conductance evolution, and stochastic programming steps 19,20^{19,20}. Controlling the size of a physical weight change is therefore difficult. Locality helps by removing the dependence of each layer's learning signal on imperfect weights in later layers. The choice of local objective remains critical, however: a local rule developed under precise numerical optimization may become unstable, drift systematically, or favor degenerate solutions once gradient magnitudes are distorted.

CwC illustrates this general problem concretely. Its goodness score rewards the activation energy of each class-associated channel group, allowing a nearly uniform map to score highly without encoding spatial detail. This offers a shortcut to high goodness: increasing activity broadly rather than learning a selective spatial response. This tendency, already visible under ideal numerical updates, is reinforced by stochastic programming, as broad increases in activity can be easier to achieve than carefully shaped spatial responses.

Here, we show that robust learning with imperfect analog synapses can emerge from changing what each layer rewards: spatial structure instead of activation amplitude. We introduce Channel-wise Spatial Gradient learning (CwSG), which preserves the features that let CwC train deep networks (class-to-channel supervision, classifier-free local prediction, and a greedy layer-wise schedule) but replaces activation-amplitude goodness with finite-difference spatial-gradient energy. A uniform feature map now scores exactly zero, regardless of its amplitude, whereas edges, contours, and textures contribute directly. Each layer is thus rewarded not simply for responding strongly, but for producing spatially differentiated responses. We show that this change does more than improve convolutional accuracy: it also supports effective learning under sign-only updates and stochastic device programming.

Under full-precision optimization, CwSG achieves the highest accuracy among the evaluated backpropagation-free methods on MNIST, Fashion-MNIST, and CIFAR-10, approaching end-to-end BP to within 0.2, 0.6, and 2.6 percentage points, respectively. When constrained to fixed-magnitude, sign-only updates, CwSG loses only 0.6, 1.5, and 0.4 percentage points on the same tasks, whereas standard BP loses 25.6 points on CIFAR-10. In controlled write-noise experiments with sign-only updates, CwSG tolerates up to an order of magnitude higher noise levels than BP.

We then evaluate CwSG in device-calibrated simulations that replay experimentally measured programming trajectories from 1,189 PCM and 1,268 FM devices. On SVHN 21^{21}, CwSG reaches 82.5% on PCM, comparable to the 82.2% obtained by direct fixed-pulse in-situ BP, while requiring only 6.4 rather than 378 programming pulses per device, a 59-fold reduction. Conversely, on the quasi-linear but more variable FM trajectories, CwSG reaches 84.9%, whereas the evaluated BP implementation remains

2/30 at 31.5%. CwSG also retains its accuracy with 8-bit forward converters and never requires a transposed crossbar read. Robust analog training, therefore, does not need to rely on precise device programming: it can emerge from a learning rule designed around the native operations of the hardware.

Active compensation offers another route to robust analog learning by improving the fidelity of physical weight updates. Iterative program-and-verify 1,22,23^{1,22,23}, mixed-precision digital accumulation 24^{24}, and auxiliary analog accumulators 25−27^{25-27} can all deliver accurate updates, but at the price of repeated reads and writes, digital accumulation, or scheduled transfer operations. CwSG targets the inexpensive programming regime in which each update is a single low-voltage soft SET or RESET pulse, applied without reading or verifying the device state 28,29^{28,29}. Our previous experiments demonstrated supervised Forward-Forward and competitive-forward learning with such updates in FM classifier layers operating on pretrained image features 30^{30}. CwSG extends this approach to training the convolutional layers themselves.

The paper proceeds in three stages. We first compare CwSG with BP and other local methods under ideal numerical updates, then introduce sign-only updates and programming noise. Finally, we evaluate learning with measured device responses, finite-resolution converters, and small batches.

References (25)