Harnessing Nonidealities in Analog In‐Memory Computing Circuits: A Physical Modeling Approach for Neuromorphic Systems

Yusuke Sakemi, Yuji Okamoto, Takashi Morie, Sou Nobukawa, Takeo Hosomi, Kazuyuki Aihara

TL;DR

This paper introduces a novel approach to train analog in-memory computing (IMC) circuits for neuromorphic systems by directly modeling their physical, non-ideal characteristics using Ordinary Differential Equation (ODE)-based Physical Neural Networks (PNNs). A new technique, Differentiable Spike-Time Discretization (DSTD), significantly speeds up training, enabling large-scale IMC networks that not only tolerate but also leverage hardware nonidealities for improved performance, as validated by circuit simulations.

What Problem Does This Paper Address?

Deep learning models are becoming increasingly large and power-hungry, limiting their deployment on edge devices with constrained energy budgets. In-memory computing (IMC) offers a promising solution by performing computations directly within memory, drastically reducing energy consumption and overcoming the von Neumann bottleneck. However, the analog nature of IMC circuits introduces "nonidealities" – deviations from ideal behavior due to factors like process variations and inherent circuit nonlinearities. These nonidealities typically degrade the performance of neural networks trained on ideal digital models. The challenge is to design IMC systems that are both energy-efficient and reliable, ideally by incorporating these nonidealities into the training process rather than trying to eliminate them.

Methods

The core of this work is the development of Physical Neural Networks (PNNs) that are directly modeled as systems of Ordinary Differential Equations (ODEs). This "bottom-up" approach aims to capture the intrinsic dynamics of IMC circuits, including their nonidealities. To make training these ODE-based PNNs computationally feasible for large networks, the authors introduce Differentiable Spike-Time Discretization (DSTD). DSTD approximates continuous-time spike events with discrete-time representations, enabling efficient gradient computation and backpropagation. This technique significantly reduces computational cost and memory usage, allowing for the training of complex networks. The authors also propose an "IMC-aware neuron model" that explicitly incorporates reversal potentials, a key nonideality in charge-domain IMC.

Datasets

The paper uses the following standard datasets:

  • Fashion-MNIST: Used for training and evaluating fully connected and convolutional RC-Spike models.
  • CIFAR-10: Used for training and evaluating convolutional RC-Spike models.
  • Iris dataset: Used for training the RC-Spike model in hardware simulation experiments.

Key Insights and Ideas

  • Leveraging Nonidealities: Instead of treating hardware nonidealities as a problem to be overcome, this work demonstrates that they can be "harnessed" to improve model performance when properly modeled and incorporated into the training process.
  • Bottom-Up Modeling: Directly modeling the physical dynamics of IMC circuits (using ODEs) leads to a more accurate representation than traditional top-down ANN-to-hardware mapping, significantly reducing the discrepancy between model and circuit behavior.
  • DSTD for Scalability: Differentiable Spike-Time Discretization (DSTD) is a crucial enabler, making the training of complex, ODE-based PNNs computationally tractable and efficient.
  • Reversal Potentials as Key Nonidealities: The paper focuses on reversal potentials (Erev) as a significant nonideality in charge-domain IMC, showing that their accurate modeling is key to achieving high performance.

Key Results

  • The proposed PNN approach, using DSTD, reduces the discrepancy between model behavior and circuit dynamics by at least an order of magnitude compared to traditional ANN-to-IMC mapping.
  • DSTD improves training speed by up to 20 times and memory efficiency by up to 100 times compared to standard ODE-based PNN training.
  • The trained PNN models achieved enhanced learning performance on the CIFAR-10 dataset by exploiting hardware nonidealities.
  • Post-layout SPICE simulations of an IMC circuit with nonideal characteristics (using the sky130 process) validated the proposed approach, showing significantly reduced modeling errors.
  • The method demonstrated effectiveness on both RC-Spike and TTFS-SNN models.

Limitations and Future Work

  • Subset of Nonidealities: The current work primarily focuses on reversal potentials. The authors acknowledge that real-world IMC circuits exhibit a broader range of nonidealities (e.g., IR drop, sneak currents, stochastic phenomena like process variation and noise) that are not fully captured.
  • Model Complexity: While DSTD enables training of large networks, the ODE-based PNNs themselves can still be computationally intensive. Future work could explore more complex models to capture a wider array of nonidealities.
  • Model-Free Approaches: The paper mentions model-free approaches as an alternative but notes their need for large datasets and challenges in applying them to non-volatile memory types. Combining model-free and model-based approaches is suggested as a promising direction.
  • Hardware Integration: While simulations are performed, direct hardware implementation and testing on physical IMC chips would be a crucial next step to fully validate the approach.

Summary updated

BibTeX
@inproceedings{sakemi2025harnessing,
  author = {Yusuke Sakemi and Yuji Okamoto and Takashi Morie and Sou Nobukawa and Takeo Hosomi and Kazuyuki Aihara},
  title = {{Harnessing Nonidealities in Analog In‐Memory Computing Circuits: A Physical Modeling Approach for Neuromorphic Systems}},
  booktitle = {Advanced Intelligent Systems},
  year = {2025},
  doi = {10.1002/aisy.202500351},
}
Figure