Assessing the Performance of Analog Training for Transfer Learning

Omobayode Fagbohungbe, Corey Lammie, Malte J. Rasch, Takashi Ando, Tayfun Gokmen, Vijay Narayanan

Introduction

Deep learning's rapid advancement is increasingly constrained by the "von Neumann bottleneck," where the energy-intensive movement of data between memory and processing units limits efficiency. Analog In-Memory Computing (AIMC) offers a promising alternative by performing computations directly within memory arrays using physical principles, such as Kirchhoff’s law. However, the transition to analog hardware is complicated by inherent non-idealities, including asymmetric switching, non-linear behavior, and device-to-device variability in components like Resistive RAM (ReRAM).

Researchers from IBM have recently demonstrated that these challenges can be overcome through a specialized Analog Transfer Learning (TL) pipeline. By utilizing the c-TTv2 training algorithm, they achieved inference accuracy for modern Vision Transformers (ViTs) within 2% of traditional digital models, while maintaining high robustness against hardware noise.

Methodology: The Analog Transfer Learning Pipeline

Transfer Learning is the industry standard for adapting large, pre-trained models to specific tasks with minimal data. To implement this in an analog context, the researchers proposed a three-stage hybrid pipeline:

  1. Digital Pre-training: A foundational model is first trained on a large dataset (e.g., CIFAR-10) using standard digital hardware to establish robust feature representations.
  2. Weight Transfer: The digital weights are mapped to analog conductance values. This stage accounts for real-world hardware limitations by modeling "Weight Transfer Noise" using additive Gaussian noise.
  3. Analog Fine-tuning: The model is fine-tuned on a target task (e.g., subsets of CIFAR-100) using the hardware-aware c-TTv2 algorithm.

The c-TTv2 Algorithm

The chopped Tiki-Taka v2 (c-TTv2) algorithm is central to this pipeline. Analog devices often suffer from "drifting" and reference offsets that can lead to significant gradient errors during training. c-TTv2 employs a "chopping" technique—periodic sign changes during gradient accumulation—to effectively cancel out errors caused by imperfect hardware reference values. This ensures that the weight updates remain accurate even in the presence of device non-idealities.

Experimental Setup

The study utilized the IBM Analog Hardware Acceleration Kit (aihwkit) to simulate HfOx-based ReRAM devices. The primary architecture tested was the Swin-ViT (Swin Vision Transformer), marking one of the first successful demonstrations of complex Transformer architectures on simulated analog hardware. The models were pre-trained on CIFAR-10 and fine-tuned on 2-class and 5-class subsets of CIFAR-100 to evaluate the sensitivity of the transfer process.

Key Insights and Results

Performance and Robustness

The Analog TL approach proved highly effective, yielding a test error gap of only ~2% compared to fully digital transfer learning. Crucially, Analog TL significantly outperformed models trained from scratch on analog hardware, confirming that starting from a digital "foundation" is the most viable path for deploying analog AI.

The "Elbow Point" of Noise

The researchers identified a critical threshold for weight transfer noise, termed the "elbow point." For a 2-class task, the model's accuracy remains remarkably stable until noise levels exceed approximately 15%. Beyond this threshold, performance degrades sharply, providing a clear target for hardware designers regarding the precision required for weight loading.

Noise as a Regularizer

An unexpected finding was that moderate levels of analog noise can act as a form of regularization. In scenarios with limited training data, the inherent stochasticity of the analog hardware helped the model generalize better, preventing the overfitting that sometimes occurs in noise-free digital environments.

Task Complexity

As the complexity of the fine-tuning task increased (e.g., from 2 classes to 5), the model became more sensitive to hardware imperfections such as symmetry point skew and device-to-device variability. This suggests that while AIMC is robust, the requirements for hardware symmetry become more stringent as the logical complexity of the task grows.

Conclusion and Future Directions

This research demonstrates that Analog In-Memory Computing is a viable candidate for modern, high-performance AI tasks. By combining digital pre-training with hardware-aware analog fine-tuning, the c-TTv2 algorithm bridges the gap between digital precision and analog efficiency.

Future work will focus on scaling these methods to larger datasets and expanding the scope to include Large Language Models (LLMs) and Diffusion models. Additionally, further benchmarking against other emerging algorithms, such as AGAD, will help refine the absolute best-in-class approaches for various analog hardware profiles.

Summary updated

BibTeX
@article{fagbohungbe2025assessing,
  author = {Omobayode Fagbohungbe and Corey Lammie and Malte J. Rasch and Takashi Ando and Tayfun Gokmen and Vijay Narayanan},
  title = {{Assessing the Performance of Analog Training for Transfer Learning}},
  journal = {IEEE Trans. Circuits Syst. II Express Briefs},
  year = {2025},
  doi = {10.1109/tcsii.2025.3596457},
}
Figure