ANN Weight Mapping to Analog Conductances

Resolve Bottlenecks,
Find Innovative Solutions
Generate 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

VSEngineering 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

Engineering Contradiction:
Improveenergy efficiencyVSAvoidinference accuracy
Core Design Contradiction:
Use of energy by moving objectVSReliability

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.

Inventive Principle:
Principle #10Preliminary action

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

Engineering Contradiction:
Improveimplementation simplicityVSAvoidweight encoding accuracy
Core Design Contradiction:
Device complexityVSMeasurement precision

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.

Inventive Principle:
Principle #35Parameter changes

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

Engineering Contradiction:
Improveinference accuracyVSAvoidweight preparation time
Core Design Contradiction:
ReliabilityVSLoss of time

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.

Inventive Principle:
Principle #10Preliminary action

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

Engineering Contradiction:
Improveprocessing speedVSAvoidweight stability over time
Core Design Contradiction:
SpeedVSDuration of action of stationary object

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.

Inventive Principle:
Principle #9Preliminary anti-action

Data Source

PatentUS20230105568A1Translating artificial neural network software weights to hardware-specific analog conductances
Publication Date: 2023.04.06 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US20230105568A1 patent drawing
  • US20230105568A1 patent drawing
  • US20230105568A1 patent drawing

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.