Variable-Length Codeword Compression for Faster Neural Parameter Reuse

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing computing chips achieve low compression rates for data, leading to inefficient storage and processing, particularly in scenarios like neural network inference where network parameters are repeatedly used.

Innovation Solution

A data compression method that assigns codewords based on occurrence frequency and defined lengths, using indication information to simplify allocation and ensure efficient compression, and a decompression method that utilizes decoder groups for parallel processing to enhance efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If traditional compression algorithms are used, then data can be compressed, but the compression rate is low and compression efficiency is poor

Engineering Contradiction:
Improvecompression rateVSAvoidcompression efficiency
Core Design Contradiction:
Quantity of substanceVSProductivity

Solution Approach 1:

The patent changes the parameter of codeword length from fixed to variable based on occurrence frequency. By dynamically adjusting codeword lengths according to how frequently data patterns appear, the system achieves higher compression rates while maintaining efficient compression through the structured approach of frequency analysis and codeword assignment.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent applies different codeword lengths to different data patterns based on their local occurrence frequency characteristics. Frequently occurring patterns receive shorter codewords while less frequent patterns receive longer codewords, optimizing the overall compression rate without sacrificing compression efficiency through the systematic local adaptation.

Inventive Principle:
Principle #3Local quality

2Quantity of substance

If codeword allocation is performed without indication information, then compression can be achieved, but algorithm complexity increases and compression efficiency decreases

Engineering Contradiction:
Improvecompression rateVSAvoidalgorithm complexity
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The patent introduces first indication information as an intermediary element that carries the length of the codeword. This intermediary simplifies the decoding process by explicitly providing length information, thereby reducing algorithm complexity while maintaining the compression rate benefits of variable-length codewords.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent performs preliminary encoding by prepending the codeword length information (first indication information) before the actual codeword. This preliminary action simplifies the decoding process by providing advance knowledge of the codeword length, reducing the complexity of the decoding algorithm while preserving compression efficiency.

Inventive Principle:
Principle #10Preliminary action

3Ease of manufacture

If uniform codeword lengths are used, then allocation is simple, but compression rate is low

Engineering Contradiction:
Improveallocation simplicityVSAvoidcompression rate
Core Design Contradiction:
Ease of manufactureVSQuantity of substance

Solution Approach 1:

The patent transitions from static uniform codeword lengths to dynamic variable-length codewords based on occurrence frequency. By making the codeword length adaptive to the data characteristics, the system achieves higher compression rates while maintaining reasonable allocation simplicity through the structured frequency-based assignment process.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent changes the parameter of codeword length from uniform to variable based on occurrence frequency analysis. By adjusting the codeword length parameter according to how frequently patterns appear in the data, the system achieves superior compression rates while keeping the allocation process manageable through systematic frequency-based categorization.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20250343842A1Data compression method, data decompression method, apparatus, and system, and medium
Publication Date: 2025.11.06 HUAWEI TECH CO LTD
  • US20250343842A1 patent drawing
  • US20250343842A1 patent drawing
  • US20250343842A1 patent drawing

AI summary

This application discloses a data compression method, a data decompression method, apparatus, and system, and a medium, and pertains to the computer field. The method includes: obtaining a codeword corresponding to to-be-compressed first original data; and obtaining first compressed data corresponding to the first original data, where the first compressed data includes first indication information and the codeword, and the first indication information indicates a length of the codeword. According to this application, a compression rate can be improved.