ANN Weight Mapping to Analog Conductances
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
There is no straightforward method to translate unitless artificial neural network (ANN) software weights into analog conductances for non-volatile memory devices, especially due to non-idealities such as programming errors, read noise, and conductance drift in analog memory-based accelerators.
Innovation Solution
A method is provided to map target synaptic weights of an ANN to conductance values, apply a hardware model to determine hardware-adjusted conductance values, and optimize these values to minimize the error metric between the target and hardware-adjusted weights, considering non-idealities like programming errors, read noise, and conductance drift, using time-averaged normalized error metrics.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Use of energy by moving object
If analog non-volatile memory devices are used to implement neural network weights, then energy efficiency and speed are improved, but programming errors, read noise, and conductance drift cause degradation in inference accuracy
Solution Approach 1:
The patent applies preliminary action by performing hardware-aware optimization before deploying the neural network to analog memory. The method pre-computes optimized weight mappings that account for device non-idealities (programming errors, read noise, conductance drift) before the actual inference operations. This advance preparation ensures that even though the analog devices have inherent errors, the pre-optimized weight assignments compensate for these errors, maintaining inference accuracy while benefiting from the energy efficiency of analog computation.
2Device complexity
If straightforward mapping from software weights to analog conductances is used, then implementation simplicity is improved, but non-idealities such as programming errors, read noise, and conductance drift cause significant error accumulation
Solution Approach 1:
The patent applies parameter changes by transforming the weight mapping parameters from simple direct mappings to optimized mappings that incorporate hardware-specific parameters. Instead of using a straightforward linear mapping from software weights to analog conductances, the method introduces optimization parameters (scaling factors, offset values, and mapping strategies) that are tailored to the specific characteristics of the target analog memory device. This transforms the simple mapping into a parameterized mapping that can adapt to device non-idealities while maintaining relative implementation simplicity.
3Reliability
If hardware-aware optimization is applied to compensate for non-idealities, then inference accuracy is improved, but computational complexity and time for weight preparation increase
Solution Approach 1:
The patent resolves this contradiction by performing the computationally intensive hardware-aware optimization in advance, before the neural network is deployed for inference. The weight preparation and optimization process, which involves applying hardware models and minimizing error metrics, is completed during a pre-processing phase. Once the optimized weight mappings are computed and stored, the actual inference operations can proceed quickly without needing to re-compute optimizations. This shifts the time cost from the inference phase to the deployment phase, making the trade-off acceptable.
4Speed
If analog memory devices are used for weight storage, then processing speed is improved, but conductance drift and variability cause degradation in long-term reliability
Solution Approach 1:
The patent applies preliminary anti-action by pre-compensating for conductance drift and variability in the weight mapping process. The hardware-aware optimization method incorporates models of conductance drift and variability, and the optimized weight assignments are specifically designed to counteract these expected degradations. By anticipating and compensating for the drift in advance, the system maintains inference accuracy over time even though the analog conductances themselves are unstable. This preliminary counter-action allows the system to exploit the speed benefits of analog memory while mitigating the long-term stability issues.
Data Source
AI summary
Translation of artificial neural network (ANN) software weights to analog conductances in the presence of conductance non-idealities for deployment to an analog non-volatile memory device is provided. A plurality of target synaptic weights of an artificial neural network is read. The plurality of target synaptic weights is mapped to a plurality of conductance values, each of the plurality of target synaptic weights being mapped to at least one of the plurality of conductance values. A hardware model is applied to the plurality of conductance values, thereby determining a plurality of hardware-adjusted conductance values, the hardware model corresponding to an analog non-volatile memory device. The plurality of hardware-adjusted conductance values is mapped to a plurality of hardware-adjusted synaptic weights. The plurality of conductance values is optimized in order to minimize an error metric between the target synaptic weights and the hardware-adjusted synaptic weights.


