LLM Weight Quantization Accuracy via Normalization Correction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Large language models (LLMs) face memory pressure and high computational demands during inference due to their high-precision weight data, which limits their execution on edge devices and results in accuracy issues when quantized to lower precision formats.

Innovation Solution

A post-training model optimization technique that quantizes the weights of linear layers in LLMs to lower precision formats like 4-bit integers, followed by an affine transformation parameter estimation to improve accuracy, and applies normalization correction to restore the model's original accuracy.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If weight data is quantized to lower-precision format (e.g., 4-bit integer), then memory bandwidth and computational demands are reduced, but accuracy deteriorates

Engineering Contradiction:
Improvememory bandwidthVSAvoidmodel accuracy
Core Design Contradiction:
Quantity of substanceVSMeasurement precision

Solution Approach 1:

The patent changes the precision parameter of weight data from high-precision (FP32) to low-precision (INT4) format to reduce memory bandwidth requirements. This parameter change enables efficient deployment on edge devices while the system compensates for accuracy loss through specialized hardware design and calibration techniques.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent introduces calibration data and calibration processes as intermediaries between the quantized model and accurate inference. By using calibration datasets to adjust and fine-tune the quantized weights, the system mediates the accuracy degradation caused by low-precision representation, achieving a balance between memory efficiency and model performance.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If weight data is stored in high-precision format (e.g., 32-bit floating point), then accuracy is maintained, but memory pressure increases during inference

Engineering Contradiction:
Improvemodel accuracyVSAvoidmemory pressure
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The patent fundamentally changes the storage precision parameter from 32-bit floating point to 4-bit integer format, reducing the memory footprint by approximately 8x. This parameter transformation enables the model to fit within limited on-device memory while maintaining acceptable accuracy through calibration and hardware optimization.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent employs calibration datasets as temporary, disposable resources that are used during the quantization calibration phase and then discarded. These calibration datasets enable accurate weight quantization without requiring permanent storage of high-precision reference data, thus reducing ongoing memory pressure.

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

3Quantity of substance

If conventional quantization is applied, then memory demands are reduced, but accuracy problems negate the benefits

Engineering Contradiction:
Improvememory demandsVSAvoidmodel performance
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent introduces calibration processes and calibration datasets as intermediary steps between conventional quantization and final model deployment. This intermediary calibration phase adjusts the quantized weights to minimize accuracy loss, ensuring that the model maintains reliable performance despite using low-precision representation.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent implements feedback mechanisms during calibration where the model's performance on calibration data is continuously monitored and used to adjust the quantization parameters and weights. This feedback loop ensures that accuracy requirements are met while maintaining the memory efficiency benefits of low-precision quantization.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS20250037017A1Weight compression accuracy enhancements in large language models
Publication Date: 2025.01.30 INTEL CORP
  • US20250037017A1 patent drawing
  • US20250037017A1 patent drawing
  • US20250037017A1 patent drawing

AI summary

Systems, apparatuses and methods may provide for technology that accesses a pre-trained artificial intelligence (AI) model, quantizes a plurality of weights of the pre-trained AI model to generate a compressed AI model, and applies normalization correction to the compressed AI model to generate an output AI model.