TL;DR
This paper introduces TTv2, a novel training algorithm for neural networks that enables training on highly noisy and non-ideal analog hardware. TTv2 significantly improves noise tolerance and reduces hardware requirements compared to previous methods, achieving performance comparable to full-precision SGD.
What Problem Does This Paper Address?
Training deep neural networks (DNNs) is computationally intensive, requiring massive amounts of energy and time. Analog hardware, particularly crossbar arrays of resistive devices, offers a promising path to accelerate DNN training with significant power and speed benefits. However, these analog devices are inherently noisy and suffer from non-symmetric conductance modulation, making them incompatible with standard training algorithms like Stochastic Gradient Descent (SGD). SGD relies on precise, symmetric device behavior for accurate gradient computation, and its performance degrades severely on such noisy hardware. Previous attempts to address this either required highly specialized, non-existent devices or introduced serial processing that negated the speed benefits of analog hardware. This paper tackles the challenge of enabling robust DNN training on these imperfect, yet potentially powerful, analog computing platforms.
Methods
The core contribution is the TTv2 algorithm, an evolution of their previously proposed "Tiki-Taka" algorithm. TTv2 builds upon Tiki-Taka by introducing several key enhancements:
- Reduced Device State Requirements: TTv2 can operate with devices having tens of states, a significant reduction from the thousands previously required.
- Increased Noise Tolerance: It exhibits approximately 100x greater tolerance to noise in device conductance modulation and 10x greater tolerance to noise in matrix-vector multiplication performed by the analog arrays.
- Digital Filtering Stage (H): A novel digital filtering stage is integrated between the analog matrices (A and C) that store network parameters. This stage acts as a low-pass filter, integrating gradient information before updating the network weights. This helps to smooth out noisy updates and increase confidence.
- Model Extraction and Averaging: The paper also presents an end-to-end technique for extracting the trained model from the noisy analog hardware. This includes a method for performing Bayesian model averaging over TTv2 iterates, which can lead to improved generalization and performance beyond the directly trained model.
Datasets
The paper mentions using the Leo Tolstoy's War and Peace novel as a dataset for training a character-based language model (LSTM2-64-WP). This is a standard dataset for language modeling tasks. They also refer to using the MNIST dataset for convolutional layers.
Key Insights and Ideas
- Non-symmetric devices can be "ideal" for Tiki-Taka: Unlike SGD, which requires symmetric device behavior, Tiki-Taka and its successor TTv2 can leverage and even benefit from non-symmetric device characteristics.
- Digital filtering is key to noise resilience: The introduction of a digital low-pass filter (H) is the crucial innovation that allows TTv2 to overcome the severe noise limitations of analog hardware.
- Model averaging on noisy hardware is beneficial: The proposed model averaging technique, applied to TTv2 iterates, can produce models that generalize better than directly trained models, even when trained on highly noisy hardware.
- Analog hardware is viable for training, not just inference: The work demonstrates that analog hardware, with the right algorithms, can be used for the demanding task of training DNNs, not just for faster inference.
Key Results
- TTv2 trains neural networks to near-ideal accuracy even under extremely noisy hardware conditions.
- TTv2 shows orders of magnitude improvement in noise tolerance compared to Tiki-Taka and SGD. Specifically, it is ~100x more tolerant to conductance modulation noise and ~10x more tolerant to matrix-vector multiplication noise.
- The model averaging technique applied to TTv2 iterates results in models that outperform directly trained models, achieving test errors close to floating-point baselines even when trained on hardware with very limited states (as few as 15 states) and high cycle-to-cycle noise.
- The extracted models, when deployed on digital hardware, show improved performance compared to their performance on the analog training hardware, highlighting the robustness of the training process.
Limitations and Future Work
- Digital Overhead: While TTv2 significantly reduces analog hardware requirements, it introduces some digital computation and memory bandwidth overhead for the H matrix processing. The authors argue this overhead is manageable, especially with higher
nsvalues (number of update cycles before H processing). - Weight Uncertainty Calibration: The paper notes that while weight uncertainty can be extracted, its calibration for practical use (e.g., for pruning or better programming routines) requires further investigation.
- Extending to Larger Networks: The authors suggest that extending the techniques to larger and more extensive networks is a crucial area for future work.
- Bayesian DNNs on Analog Hardware: The paper proposes exploring the connection between TTv2 iterates and Bayesian neural network approaches, suggesting that noisy analog hardware could accelerate Bayesian methods.
- Optimized Architectures: Detailed power/performance analysis of TTv2 with optimized architectures for a broad class of neural network models requires additional studies.
Summary updated