arXiv:2609.07356cs.ETSep 2026

Manuscript Offprint

arXiv:2609.07356

Fast simulation of nonlinear deep resistive networks for energy-based computation

Filip Osana, Julie Grollier, Damien Querlioz

Abstract

Deep resistive networks are electronic energy-based systems in which computation is performed by the steady-state voltages of nonlinear circuits. Nonlinear devices enable expressive input-output transformations, but make the circuit equilibria costly to compute during simulation and training. Recent coordinate-descent solvers have achieved large speedups over SPICE-class circuit simulators, but only for nonlinearities modeled as ideal-diode models. This mathematical simplification is not sufficient for practical analog circuits. Here we extend coordinate-descent simulation to realistic monotone nonlinearities, including Shockley diodes, antiparallel diode pairs, and piecewise-linear current-voltage characteristics. With neighboring voltages fixed, each node update remains a scalar Kirchhoff-law solve. Single-exponential characteristics admit closed-form Lambert-(W) updates, while more general monotone characteristics can be handled with scalar root-finding methods. Across networks with one to three hidden layers and hidden widths from 64 to 1024, the solver reproduces matched SPICE steady-state voltages with relative L1L_1 errors below 1.1×10−41.1 \times 10^{-4} for 90% of validation samples, while achieving speedups up to (1.7×103)(1.7 \times 10^3). We further train a 1568×100×201568 \times 100 \times 20 double-Shockley network on MNIST, reaching about 3.0% test error and reducing the per-epoch training time by roughly 4.4×1024.4 \times 10^2. Together, these results establish a practical route to the circuit-level design and training of large-scale analog energy-based systems incorporating realistic nonlinear devices.

Introduction

Physical machines for energy-based computation use the dynamics of physics to perform part of the computation: a state evolves under physical laws until it reaches an equilibrium, attractor, or minimum of an energy-like landscape [1, 2, 3, 4, 5]. In electronic implementations, this idea is especially appealing because Kirchhoff's laws, device nonlinearities, and dissipation are then mechanisms that perform energy minimization intrinsically.

Deep resistive networks (DRNs), whose topology is inspired by deep neural networks, provide a promising electronic implementation of energy-based computation [6, 7]. In these circuits, trainable parameters are encoded by conductances connecting successive layers, while nonlinear one-port elements play the role of activation functions. The node voltages are determined by Kirchhoff's current law, and for monotone nonlinear elements the steady state can be written as the minimizer of an electrical content function, which plays the role of the “energy function” of the network. This energy-minimization formulation makes DRNs compatible with equilibrium propagation [8, 9, 10], in which learning is obtained from local differences between free and nudged equilibria. In principle, this gives a route to trainable analog physical learning machines [11, 12].

A central challenge, however, is that these networks must be designed, trained, and benchmarked in simulation before they can be built at useful scale. A single inference requires solving for the steady-state voltages of the circuit, each training step requires one or more steady-state solves, and a complete training run can require millions of such solves. This makes DRNs particularly hard to study and optimize. General-purpose circuit simulators such as SPICE provide reliable reference solutions for DRNs, but they are slow for the repeated steady-state solves required in inference and learning. Each solve is treated as a generic nonlinear circuit simulation, without exploiting the layered structure of DRNs or the fact that many similar equilibria must be computed. This computational cost has limited SPICE-based studies of nonlinear DRNs to modest network sizes [6, 13]. More broadly, scalable hardware demonstrations of resistive learning systems have often avoided this nonlinear-equilibrium bottleneck by focusing on linear networks [14, 15, 16].

Recent work showed that coordinate descent can greatly accelerate DRN simulation when the nonlinear elements are modeled as ideal diodes [17]. In that special case, the equilibrium problem reduces to a quadratic program with linear inequality constraints, which makes the coordinate updates particularly simple. However, ideal diodes are a severe simplification of physical circuit behavior. In practical analog circuits, nonlinear behavior is governed by realistic current-voltage characteristics, such as Shockley diode curves, antiparallel diode pairs, or transistor-derived responses. The challenge is therefore to retain the speed of coordinate descent while moving beyond ideal constraints to physical nonlinear device characteristics.

Realistic current-voltage characteristics can be specified either by analytical expressions or by measured tabulated data. They no longer give the quadratic program obtained for ideal-diode networks, but when the characteristics are monotone their contribution to the electrical content remains convex. The key observation underlying this work is that this is sufficient to preserve the coordinate-descent approach. With neighboring voltages held fixed, updating a node voltage still only requires enforcing Kirchhoff's current law at that node, leading to a scalar nonlinear equation. Device realism therefore only changes the local update rule, while the layer-wise coordinate-descent structure of DRNs is preserved.

Here, we turn this observation into a coordinate-descent solver for nonlinear DRNs. We first formulate networks with linear conductances, ideal sources, and monotone nonlinear one-port devices as convex content minimization problems. We then derive local coordinate updates for analytical and tabulated nonlinear current-voltage characteristics, including closed-form Lambert-W updates for single-exponential branches and scalar updates for antiparallel Shockley and monotone piecewise-linear characteristics. We validate the resulting solver against matched SPICE simulations on Digits networks with one to three hidden layers, hidden widths from 64 to 1024, and three nonlinear device models. Finally, we use the solver to train a 1568×100×201568 \times 100 \times 20 double-Shockley DRN on MNIST and verify the trained circuit against SPICE.

References (18)