Learning-to-learn enables rapid learning with phase-change memory-based in-memory computing

Thomas Ortner, Horst Petschenig, Athanasios Vasilopoulos, Roland Renner, Spela Brglez, Thomas Limbacher, Enrique Piñero, Alejandro Linares-Barranco, Angeliki Pantazi, Robert LegensteinarXiv 2024 · DOI

Abstract

This paper presents a "learning-to-learn" (meta-learning) approach to overcome the challenges of noise and low precision in energy-efficient neuromorphic hardware. By utilizing phase-change memory (PCM) for in-memory computing and a two-tiered optimization process, the researchers demonstrate rapid, on-chip adaptation for image classification and robotic control. The results show that models pre-trained in software can achieve high-precision performance on analog hardware with minimal updates, paving the way for low-power, adaptive AI at the edge.

Introduction

Artificial Intelligence is increasingly moving to "the edge," requiring deployment in autonomous drones, smart sensors, and wearable medical devices. These systems must be incredibly low-power and capable of adapting to new environments on the fly. However, traditional deep learning faces two major hurdles in these environments:

  1. Efficiency: Standard hardware separates memory and processing, wasting energy moving data. Neuromorphic hardware (NMHW) addresses this via In-Memory Computing (IMC), but these analog systems often suffer from low precision and inherent noise.
  2. Adaptability: Standard AI requires massive datasets and compute to learn new tasks. In contrast, biological systems can learn from single examples by leveraging prior knowledge.

The authors address these challenges by making noisy, low-precision neuromorphic hardware capable of rapid, "few-shot" learning without energy-intensive on-chip training routines.

Methodology

The researchers combined Learning-to-Learn (L2L) algorithms with Phase-Change Memory (PCM) based hardware. The core of this approach is a two-tiered optimization process:

  • The Outer Loop (Meta-Training): Performed in high-precision software, the goal is to find a set of initial weights (a "starting point") that makes the model easy to fine-tune for any task within a specific family.
  • The Inner Loop (Adaptation): Performed on the actual NMHW. Because the starting point is optimized, the model only requires a few gradient updates to master a new task.
Overview of the meta-learning framework and phase-change memory states.

The paper evaluates two L2L variants:

  1. Model-Agnostic Meta-Learning (MAML): Applied to a Convolutional Neural Network (CNN) for image classification. To maximize efficiency, only the final "dense" layer was updated on the hardware.
  2. Natural e-prop: A biologically inspired online learning rule for Recurrent Spiking Neural Networks (SNNs), mimicking how the brain uses local activity and global signals to adapt.

Datasets

  • Omniglot: A dataset of 1,623 handwritten characters from 50 alphabets, used to test "few-shot" recognition.
  • Robotic Trajectories: 3D trajectories generated via a Wiener process to test if a robotic arm (ED-Scorbot) could learn to follow a path after a single exposure.

Key Results and Insights

Performance and Robustness

On the Omniglot task, the NMHW achieved approximately 98% accuracy after just four update steps, matching the performance of 32-bit software models. For robotic control, the SNN achieved "one-shot" learning; after a single 250ms exposure, the hardware-based model tracked paths in 3D space with a Root Mean Square Error (RMSE) of only ~6.7 cm.

MAML adaptation on Omniglot images using the neuromorphic hardware.

Hardware Efficiency

One of the most significant findings is that meta-training in software—even with crude approximations of hardware noise—produces models naturally robust to the low precision of PCM devices. This suggests that L2L effectively "buffers" the model against physical substrate limitations. Furthermore, by limiting adaptation to a small subset of parameters (e.g., updating only 1,120 PCM devices out of 342,000 in the CNN experiment), the energy cost of on-chip learning is drastically reduced.

Limitations and Future Work

While the current hardware uses 256x256 crossbar cores, scaling to larger "foundation models" remains a challenge. Future research may explore unsupervised learning loops to allow adaptation without labeled data and the integration of external memory modules to store task-related information over longer periods. This work proves that "hardware-in-the-loop" training is unnecessary if the meta-learning phase is correctly handled in software.

Reference: Ortner, T., Petschenig, H., et al. (2024). Learning-to-learn enables rapid learning with phase-change memory-based in-memory computing. arXiv:2405.05141v1.

Summary updated

BibTeX
@misc{ortner2024learning,
  author = {Thomas Ortner and Horst Petschenig and Athanasios Vasilopoulos and Roland Renner and Spela Brglez and Thomas Limbacher and Enrique Piñero and Alejandro Linares-Barranco and Angeliki Pantazi and Robert Legenstein},
  title = {{Learning-to-learn enables rapid learning with phase-change memory-based in-memory computing}},
  year = {2024},
  eprint = {2405.05141},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.05141},
}
Figure