Neural Network Table Lookup Quantization for Lower Memory Energy

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Large-scale neural networks require significant storage capacity and result in high memory access energy consumption due to numerous parameters and extensive computations, posing challenges in efficient data processing.

Innovation Solution

The method involves quantizing weights and input neurons using clustering algorithms to create weight and neuron codebooks, allowing for table lookup operations, which reduces the number of stored parameters and energy consumption by simplifying memory access and computation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If large-scale neural networks are used to improve processing capability, then productivity is improved, but use of energy by stationary object increases due to high memory access energy consumption

Engineering Contradiction:
Improveneural network processing capabilityVSAvoidmemory access energy consumption
Core Design Contradiction:
ProductivityVSUse of energy by stationary object

Solution Approach 1:

The patent segments the continuous weight values into discrete codebooks with limited precision (e.g., 3-bit or 4-bit quantization). By dividing the weight space into discrete segments represented by codebook entries, the system reduces the memory bandwidth and energy required to access weight parameters while maintaining acceptable neural network processing capability.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent changes the precision parameter of weight representations from high-precision floating-point or fixed-point formats to low-precision integer codes. This parameter change reduces the number of bits that need to be accessed from memory, directly lowering memory access energy consumption while preserving the essential computational functionality.

Inventive Principle:
Principle #35Parameter changes

2Measurement precision

If high-precision weights are stored to maintain computation accuracy, then measurement precision is improved, but use of energy by stationary object increases due to larger storage capacity requirements

Engineering Contradiction:
Improveweight representation precisionVSAvoidstorage energy consumption
Core Design Contradiction:
Measurement precisionVSUse of energy by stationary object

Solution Approach 1:

The patent applies partial precision by using codebooks that provide just enough precision for acceptable neural network performance rather than storing full-precision weights. The codebook approach provides selective precision where only the most significant weight patterns are preserved, reducing storage energy while maintaining sufficient computational accuracy.

Inventive Principle:
Principle #16Partial or excessive action

3Measurement precision

If full-precision weights and neurons are used to maintain computation accuracy, then measurement precision is improved, but device complexity increases due to large-scale computation requirements

Engineering Contradiction:
Improvecomputation accuracyVSAvoidcomputation unit design complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent uses codebooks as simplified copies of the full weight space. Instead of storing and processing all possible weight values, the system maintains compact codebook representations that capture the essential weight patterns. This copying approach reduces computation unit complexity by working with discrete code indices rather than continuous weight values.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS12124940B2Processing method and device, operation method and device
Publication Date: 2024.10.22 SHANGHAI CAMBRICON INFORMATION TECH CO LTD
  • US12124940B2 patent drawing
  • US12124940B2 patent drawing
  • US12124940B2 patent drawing

AI summary

The application provides an operation method and device. Quantized data is looked up to realize an operation, which simplifies the structure and reduces the computation energy consumption of the data, meanwhile, a plurality of operations are realized.