Machine Learning Model Layer Compression via Hardware-Aware Iterative Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing techniques for accelerating machine learning models, such as reducing precision of parameter values or using hardware acceleration, either compromise accuracy or limit model execution to specific hardware, making them ineffective for devices with limited resources.

Innovation Solution

A computer-implemented method that identifies suitable compression techniques for each layer of a machine learning model, applies iterative operations to select and optimize these techniques based on target hardware, and generates a compressed model, while preserving accuracy through fine-tuning and quantization.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If the precision of parameter values is reduced to accelerate model execution, then computational requirements and storage space are reduced, but model accuracy deteriorates

Engineering Contradiction:
Improvemodel execution speedVSAvoidmodel accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent segments the model compression process into distinct phases: structure search (identifying which parameters to compress), quantization (reducing precision of selected parameters), and fine-tuning (restoring accuracy). This segmentation allows selective application of compression techniques to different parameter types, preserving accuracy-critical parameters while compressing others, thus resolving the contradiction between speed and accuracy.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent dynamically changes parameter precision levels based on their importance to model accuracy. Through automated structure search and quantization, it identifies which parameters can be reduced in precision without significant accuracy loss, and applies different quantization bits to different parameters. This selective parameter change resolves the contradiction by optimizing the balance between compression and accuracy maintenance.

Inventive Principle:
Principle #35Parameter changes

2Productivity

If hardware acceleration is used to speed up model execution, then processing capability is improved, but device compatibility is reduced

Engineering Contradiction:
Improvemodel execution speedVSAvoiddevice compatibility
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent creates a universal compression framework that produces models optimized for deployment on diverse hardware platforms without requiring specialized acceleration units. The automated structure search and quantization process generates hardware-agnostic compressed models that can run efficiently on general-purpose processors, mobile devices, and edge computing platforms, thus achieving both speed improvement and broad compatibility.

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

3Quantity of substance

If the size of machine learning models is reduced through compression, then storage requirements are reduced, but model accuracy deteriorates

Engineering Contradiction:
Improvemodel sizeVSAvoidmodel accuracy
Core Design Contradiction:
Quantity of substanceVSMeasurement precision

Solution Approach 1:

The patent performs preliminary structure search and quantization before final model deployment, identifying the optimal compression configuration that minimizes size while maintaining accuracy. The fine-tuning phase further refines the compressed model to recover any accuracy loss. This preliminary optimization action resolves the contradiction by establishing the right balance between size reduction and accuracy preservation before the model is put into production.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS20240193409A1Techniques for accelerating machine learning models
Publication Date: 2024.06.13 VIAN SYSTEMS INC
  • US20240193409A1 patent drawing
  • US20240193409A1 patent drawing
  • US20240193409A1 patent drawing

AI summary

One embodiment of a method for accelerating a trained machine learning model includes parsing the trained machine learning model to identify one or more layers of the trained machine learning model and, for each layer included in the one or more layers, one or more corresponding compression techniques that can be applied to compress the layer, performing, based on a hardware device on which the trained machine learning model is intended to execute, one or more iterative operations to select, for each layer included in the one or more layers, a compression technique and values of one or more parameters associated with the compression technique, and compressing each layer included in the one or more layers using the compression technique that is selected for the layer and the values of the one or more parameters associated with the compression technique to generate a compressed trained machine learning model.