Flexpoint Quantization for Neural Network Training Efficiency

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current deep learning technologies face challenges in optimizing neural networks for low bit-width training, which is essential for reducing memory footprint and increasing computational density, especially in hardware infrastructure, as existing methods are inefficient in managing dynamic range and precision for tensors during training.

Innovation Solution

The implementation of a flexible low bit-width numerical format, Flexpoint, which balances dynamic range and precision by using a shared exponent across tensor elements, allowing for efficient exponent management and reducing computational and memory requirements, combined with secondary neural networks that determine scalar multipliers for tensors in primary neural networks via backpropagation and supervised learning.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If low bit-width fixed point data formats are used for inference, then memory footprint is reduced and computational density increases, but training capability is limited

Engineering Contradiction:
Improvememory footprintVSAvoidtraining capability
Core Design Contradiction:
Quantity of substanceVSAdaptability or versatility

Solution Approach 1:

The patent implements a dynamic quantization system where the quantization bit-width is not fixed but adapts based on the training phase and data characteristics. The system dynamically adjusts between low bit-width for inference and higher bit-width for training, allowing the same hardware to efficiently handle both scenarios without being constrained by a fixed precision format.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes the precision parameter dynamically based on operational requirements. During training, higher precision parameters are used to maintain accuracy, while during inference, lower precision parameters are applied to maximize efficiency. This parameter adaptation resolves the contradiction between memory efficiency and training capability.

Inventive Principle:
Principle #35Parameter changes

2Productivity

If low bit-width data formats are used for training, then computational density increases, but precision and dynamic range management becomes challenging

Engineering Contradiction:
Improvecomputational densityVSAvoidprecision and dynamic range
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent segments the numerical representation into separate exponent and mantissa components that can be independently managed. This segmentation allows the system to use low bit-width for the mantissa (improving computational density) while maintaining adequate precision through intelligent exponent management and selective precision allocation for different tensor elements.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system introduces an additional dimension of control by separating the precision management into different domains: exponent management for dynamic range and mantissa management for precision. This dimensional separation allows low bit-width formats to achieve both computational density and acceptable precision by optimizing each dimension independently.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

3Productivity

If secondary neural networks are added to determine quantization parameters, then training efficiency improves, but system complexity increases

Engineering Contradiction:
Improvetraining efficiencyVSAvoidsystem complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The secondary neural networks are designed to serve multiple functions: they determine quantization parameters, manage dynamic range, and optimize precision allocation simultaneously. This multi-functionality reduces the need for separate specialized components, thereby improving training efficiency without proportionally increasing system complexity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The secondary neural networks automatically adjust quantization parameters based on the training data characteristics without requiring external intervention or complex configuration. This self-service capability simplifies the overall system architecture by eliminating the need for manual precision tuning and external optimization tools, thereby improving efficiency while keeping complexity manageable.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS11216719B2Methods and arrangements to quantize a neural network with machine learning
Publication Date: 2022.01.04 INTEL CORP
  • US11216719B2 patent drawing
  • US11216719B2 patent drawing
  • US11216719B2 patent drawing

AI summary

Logic may quantize a primary neural network. Logic may generate, by a secondary neural network logic circuitry for a primary neural network logic circuitry, quantization parameters. The primary neural network logic circuitry may comprise a primary neural network with multiple layers trainable with an objective function. Each of the multiple layers of the primary neural network may comprise multiple tensors. The secondary neural network logic circuitry may comprise one or more secondary neural networks trainable with the objective function to output the quantization parameters to the tensors.