Machine Learning Model Compression via Dense Range Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing machine learning models, particularly large-scale neural networks, face challenges in being deployed on resource-constrained devices due to their large memory footprint, and existing quantization techniques often result in a reduction in model quality.

Innovation Solution

A machine learning model compression system that identifies dense ranges in the distribution of parameter values and converts these values to a compact format, while setting values outside these dense ranges to zero, thereby reducing the model's memory footprint without significantly degrading prediction accuracy.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Volume of stationary object

If post-training quantization techniques are applied to reduce model size, then memory footprint is reduced, but prediction accuracy deteriorates due to loss of valuable information

Engineering Contradiction:
Improvemodel sizeVSAvoidprediction accuracy
Core Design Contradiction:
Volume of stationary objectVSManufacturing precision

Solution Approach 1:

The patent applies different compression treatments to different portions of the model based on their importance. Important parameters (those with larger magnitudes) are preserved with full precision, while less important parameters (those with smaller magnitudes) are compressed to lower precision. This local differentiation allows the model to maintain high prediction accuracy for critical parameters while achieving significant compression overall.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent dynamically changes the precision parameters for different model parameters based on their magnitude and importance. Instead of applying a uniform quantization level, the system adjusts the number of bits allocated to represent each parameter according to its contribution to the model's output, thereby optimizing the trade-off between model size and accuracy.

Inventive Principle:
Principle #35Parameter changes

2Productivity

If large-scale neural networks are used to solve complex problems, then problem-solving capability is improved, but memory resources required exceed available capacity on mobile devices

Engineering Contradiction:
Improveproblem-solving capabilityVSAvoidmemory footprint
Core Design Contradiction:
ProductivityVSVolume of stationary object

Solution Approach 1:

The patent segments the model parameters into different groups based on their importance and magnitude. By dividing the parameter space into segments (e.g., high-magnitude parameters, low-magnitude parameters), the system can apply different storage and computation strategies to each segment, enabling large models to run on devices with limited memory by loading only necessary segments or compressing less critical ones.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a new dimension of precision control, allowing the model to operate with variable precision across different parameters. This dimensional approach to parameter representation enables the model to maintain functionality with reduced memory requirements by using fewer bits for parameters that contribute less to the overall output.

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

Data Source

PatentUS20250148357A1Flexible machine learning model compression
Publication Date: 2025.05.08 GOOGLE LLC
  • US20250148357A1 patent drawing
  • US20250148357A1 patent drawing
  • US20250148357A1 patent drawing

AI summary

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for compresses a machine learning model having a plurality of parameters. In one aspect, one of the methods includes obtaining trained values of a set of parameters for at least a portion of a machine learning model; identifying one or more dense ranges for the trained values; determining a least number of bits required to represent each trained value within the one or more dense ranges; identifying a second format having a range that is smaller than a range of the first format; and generating a compressed version of the at least a portion of the machine learning model.