3D Tree Coding for Neural Network Compression With Lower Buffer Use

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing neural network compression methods, such as the Coded Representation of Neural Network (NNR), fail to optimize memory access patterns for inference operations on mobile and edge devices, leading to excessive buffer requirements and inefficient entropy coding after partitioning weight tensors.

Innovation Solution

A 3D-Tree coding method is employed to reshape and partition neural network parameters into 3D coding tree units (CTU3Ds) using quad-trees, followed by entropy encoding, which adapts block partitioning and reordering to optimize memory access and reduce buffer size.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If weight tensors are partitioned using existing NNR methods, then compression is achieved, but memory access patterns are not optimized leading to excessive buffer requirements

Engineering Contradiction:
Improvememory requirementsVSAvoidinference efficiency
Core Design Contradiction:
Quantity of substanceVSProductivity

Solution Approach 1:

The patent segments the weight tensor into multiple blocks along different dimensions (input features, output features, kernel dimensions). This segmentation allows independent processing of each block, optimizing memory access patterns during inference while maintaining compression efficiency. The tensor is divided into manageable chunks that can be processed sequentially with reduced buffer requirements.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a new dimensionality approach by organizing weight blocks in a multi-dimensional structure that optimizes memory access patterns. By rearranging the tensor dimensions and introducing block-level indexing, the method creates more efficient access paths during inference operations, reducing the working buffer size needed while maintaining computational efficiency.

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

2Quantity of substance

If weight tensors are compressed using existing methods, then storage is reduced, but entropy coding efficiency is insufficient

Engineering Contradiction:
Improvestorage requirementsVSAvoidcompression efficiency
Core Design Contradiction:
Quantity of substanceVSLoss of information

Solution Approach 1:

The patent applies local quality optimization by performing entropy coding on individual weight blocks rather than the entire tensor. Each block can be coded with locally optimized parameters and statistics, improving overall compression efficiency. This block-level approach allows adaptive coding strategies tailored to the specific characteristics of each weight block, enhancing the compression ratio while maintaining accuracy.

Inventive Principle:
Principle #3Local quality

3Quantity of substance

If buffer size is reduced for resource-constrained devices, then memory requirements are met, but inference operation efficiency may be impacted

Engineering Contradiction:
Improvebuffer sizeVSAvoidinference operation
Core Design Contradiction:
Quantity of substanceVSEase of operation

Solution Approach 1:

The patent performs preliminary organization and ordering of weight blocks before inference operations. By pre-arranging the blocks in an access-optimized sequence and pre-computing necessary indexing structures, the method enables efficient inference with reduced buffer size. This preliminary preparation eliminates the need for large working buffers during actual inference, making operations feasible on resource-constrained devices.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentEP3924877B1Method and apparatus for three-dimensional (3D)-tree coding for neural network model compression
Publication Date: 2026.02.25 TENCENT AMERICA LLC
  • EP3924877B1 patent drawingFigure 1
  • EP3924877B1 patent drawingFigure 2
  • EP3924877B1 patent drawingFigure 3

AI summary

A method of three-dimensional (3D)-Tree coding for neural network model compression, is performed by at least one processor, and includes reshaping a four-dimensional (4D) parameter tensor of a neural network into a 3D parameter tensor of the neural network, the 3D parameter tensor comprising a convolution kernel size, an input feature size, and an output feature size, partitioning the 3D parameter tensor along a plane that is formed by the input feature size and the output feature size into 3D coding tree units (CTU3Ds), partitioning each of the CTU3Ds into a plurality of 3D coding units (CU3Ds) recursively until a predetermined depth, using a quad-tree, constructing a 3D tree for each of the plurality of CU3Ds, and entropy encoding each of a plurality of values of a plurality of nodes of the 3D tree