Matrix Multiplication Quantization with Dynamic Constraint Restoration

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current matrix multiplication methods, such as General Matrix Multiplication (GEMM) and Quantization Matrix Multiplication, face challenges with float-type data processing, including high computational time and memory usage, and large computational errors due to fixed empirical values for inverse quantization.

Innovation Solution

A processor-implemented method that determines a first and second multiplication matrix based on input multiplicand and multiplier matrices, using quantization to handle float-type data, and calculates a matrix restoration constraint value to restore the multiplication result, allowing for efficient computation and reduced errors by dynamically determining constraint values.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If General Matrix Multiplication (GEMM) is used for float-type data processing, then computation accuracy is maintained, but computational time and memory usage increase significantly

Engineering Contradiction:
Improvecomputation accuracyVSAvoidcomputational time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent changes the data type parameter from float to quantized integer types, and dynamically adjusts the quantization parameters (maximum and minimum values) based on the specific matrix multiplication task. This allows the system to use faster integer arithmetic while maintaining acceptable accuracy through adaptive parameter selection.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent introduces dynamic selection of quantization parameters (maximum and minimum values) based on the input matrices. Instead of using fixed quantization parameters, the system adapts the parameters to the specific data range and distribution, enabling optimal balance between speed and accuracy for each computation task.

Inventive Principle:
Principle #15Dynamics

2Productivity

If quantization matrix multiplication with fixed empirical values is used, then computational speed increases, but computation errors increase due to large computational errors

Engineering Contradiction:
Improvecomputational speedVSAvoidcomputation accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent dynamically changes the quantization parameters (maximum and minimum values) based on the actual input data characteristics. By selecting parameters that match the specific computation task rather than using fixed empirical values, the system reduces quantization errors while maintaining the speed benefits of integer arithmetic.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The system incorporates a feedback mechanism where the quantization parameters are selected based on the actual distribution and range of the input matrices. This adaptive selection process provides feedback from the data characteristics to the parameter selection, ensuring optimal quantization for each specific computation task.

Inventive Principle:
Principle #23Feedback

3Productivity

If quantization matrix multiplication with fixed empirical values is used, then computational speed increases, but device complexity increases due to complicated computation with respect to maximum and minimum

Engineering Contradiction:
Improvecomputational speedVSAvoidcomputation complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent performs preliminary analysis of the input matrices to determine appropriate quantization parameters before executing the main computation. By pre-determining the maximum and minimum values based on the input data characteristics, the system avoids complex runtime calculations while ensuring accurate quantization for the specific task.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11436011B2Processing method and processing device with matrix multiplication computation
Publication Date: 2022.09.06 SAMSUNG ELECTRONICS CO LTD
  • US11436011B2 patent drawing
  • US11436011B2 patent drawing
  • US11436011B2 patent drawing

AI summary

A processor-implemented method includes: determining a first multiplication matrix and a second multiplication matrix, based on an input multiplicand matrix and an input multiplier matrix that are generated from an input signal; determining a matrix to be restored, based on the first multiplication matrix and the second multiplication matrix; determining a matrix restoration constraint value, based on the matrix to be restored; determining a multiplication result of the input multiplicand matrix and the input multiplier matrix, based on the matrix restoration constraint value and the matrix to be restored; and analyzing the input signal based on the multiplication result.