# US 2025/0168368 A1 · High-performance and low-complexity neural compression from a single image, video or audio data

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0168368 A1
- Document ID: US20250168368A1
- Status: Published application
- Kind: A1
- Application number: 18/949,892
- Filed: 2024-11-15
- Published: 2025-05-22
- Earliest claimed: 2023-11-17
- Assignees: DeepMind Technologies Limited
- Applicants: DeepMind Technologies Limited
- Inventors: Emilien Dupont; Hyun Jik Kim; Matthias Stephan Bauer; Lucas Marvin Theis
- Web page: https://patentgrep.com/patent/US20250168368A1

## CPC

- G06N 3/045: Combinations of networks
- H04N 19/189: characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- H04N 19/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- H04N 19/124: Quantisation
- H04N 19/167: Position within a video image, e.g. region of interest [ROI]
- H04N 19/30: using hierarchical techniques, e.g. scalability (H04N19/63 takes precedence)
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/048: Activation functions
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium for encoding input data comprising input data values corresponding to respective input data grid points of an input data grid, such as image, video or audio data.

## Claims

### Claim 1

A method of encoding input data performed by one or more data processing apparatus, the input data comprising input data values corresponding to respective input data grid points of an input data grid, the method comprising:
(a) optimizing an objective function by jointly optimizing parameters of a synthesis neural network, parameters of a decoder neural network, and a set of latent values, the latent values corresponding to respective latent grid points of each of a plurality of latent grids having different respective resolutions, wherein the optimizing comprises, for each of a plurality of optimization iterations, determining gradients of the objective function using the latent values and using the gradients to update one or more of: the parameters of the synthesis neural network, the parameters of the decoder neural network, and the latent values;
(b) quantizing the optimized latent values; and
(c) encoding the quantized latent values using a probability distribution for the latent values, the probability distribution being defined by the decoder neural network,
wherein the objective function comprises a reconstruction loss term comparing the input data values with corresponding reconstructed data values determined from the set of latent values using the synthesis neural network, and a compressibility term dependent on a probability of the set of latent values determined from the probability distribution defined by the decoder neural network, and
wherein the optimizing further comprises updating the latent values by applying a soft-rounding function to each of the latent values.

### Claim 2 (depends on 1)

The method according to claim 1, wherein updating the latent values comprises:
updating each of the latent values by sampling a respective noise value from a noise distribution and adding the noise value to the latent value,
wherein the soft-rounding function is applied to each of the latent values before and/or after adding the respective noise value.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the noise distribution is non-uniform.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the noise distribution has a shape parameter that controls a shape of the noise distribution and shape parameter is adjusted between the optimization iterations to make the noise distribution become more uniform.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the soft-rounding function depends on a temperature parameter that controls a smoothness of the soft-rounding function, the temperature parameter being adjusted between the optimization iterations.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the temperature parameter is adjusted between the optimization iterations such that the soft-rounding function increasingly resembles the hard-rounding function.

### Claim 7 (depends on 1)

The method according to claim 1, wherein:
using the gradients comprises multiplying the gradients by a learning rate before updating the one or more of: the parameters of the synthesis neural network, the parameters of the decoder neural network, and the latent values; and
the learning rate varies between the optimization iterations according to a cosine schedule.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the optimizing further comprises, for each of a plurality of further optimization iterations:
quantizing the latent values using a further hard-rounding function;
using a soft-rounding estimator to determine further gradients of the objective function using the quantized latent values, wherein the soft-rounding estimator provides a smooth approximation to the gradient of the further hard-rounding function; and
using the further gradients determined using the soft-rounding estimator to update one or more of: the parameters of the synthesis neural network, the parameters of the decoder neural network, and the latent values.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the soft-rounding estimator depends on a temperature parameter that controls the smoothness of the gradient of the soft-rounding function, the temperature parameter being adjusted between the further optimization iterations such that the gradient of the soft-rounding function increasingly resembles the gradient of the further hard-rounding function.

### Claim 10 (depends on 8)

The method according to claim 8, wherein:
using the further gradients comprises multiplying the further gradients by a further learning rate before updating the one or more of: the parameters of the synthesis neural network, the parameters of the decoder neural network, and the latent values; and
the further learning rate is decreased between the further optimization iterations.

### Claim 11 (depends on 8)

The method according to claim 8, wherein the further hard-rounding function quantizes the latent values in steps smaller than the steps used by a hard-rounding function for quantizing the latent values after the optimizing.

### Claim 12 (depends on 10)

The method according to claim 10, wherein the further hard-rounding function quantizes the latent values in steps smaller than one.

### Claim 13 (depends on 1)

The method according to claim 1, wherein the probability of the set of latent values is determined by, for each of the latent grid points of each of the latent grids:
determining a causal subset of the latent values comprising latent values corresponding to latent grid points that precede the latent grid point in the latent grid; and
using the decoder neural network to determine, from the latent values in the causal subset, one or more probability distribution parameters defining a conditional probability distribution for a latent value at the latent grid point; and
using the conditional probability distribution defined by the one or more probability distribution parameters to determine the probability of the latent value conditioned on the latent values in the causal subset.

### Claim 14 (depends on 13)

The method according to claim 13, wherein for one or more of the latent grids, the causal subsets of the latent values for each of the latent grid points of the latent grid comprise latent values of another of the latent grids that has a resolution that is less than a resolution of the latent grid.

### Claim 15 (depends on 14)

The method according to claim 14, wherein the other latent grid immediately precedes the latent grid when the latent grids are arranged in ascending order of resolution.

### Claim 16 (depends on 13)

The method according to claim 13, wherein the decoder neural network comprises a plurality of encoder subnetworks, each encoder subnetwork being configured to process the latent values of a respective one of the latent grids.

### Claim 17 (depends on 16)

The method according to claim 16, wherein each encoder subnetwork processes the latent values of the respective one of the latent grids independently of the latent values of the other latent grids.

### Claim 18 (depends on 13)

The method according to claim 13, wherein the decoder neural network comprises an input layer, an output layer, and intermediate layers between the input and output layers, the intermediate layers comprising activation functions for determining features of the latent values at different resolutions, wherein one or more of the intermediate layers comprises a modulation layer configured to apply a transformation to features of latent values at a first resolution conditioned on features of latent values at a second resolution.

### Claim 19 (depends on 13)

The method according to claim 13, wherein output values of the decoder neural network are exponentiated to determine the one or more probability distribution parameters and wherein a pre-determined shift value is added to the output values prior to exponentiation.

### Claim 20 (depends on 1)

The method according to claim 1, wherein the synthesis neural network and/or the decoder neural network comprises activation functions that have a higher computational complexity than Rectified Linear Units.

### Claim 21 (depends on 1)

The method according to claim 1, wherein the reconstruction loss term is determined by:
for each of the latent grids, generating from the latent values of the latent grid, upsampled latent data comprising respective upsampled latent values for the input data grid points; and
using the synthesis neural network to determine, from the upsampled latent data for each of the latent grids, respective reconstructed data values for the input data grid points.

### Claim 22 (depends on 1)

The method according to claim 1, wherein each of the input data grid points corresponds to a respective time interval or frequency component of an audio waveform and the input data values correspond to amplitudes of the audio waveform.

### Claim 23 (depends on 1)

The method according to claim 1, wherein each of the input data grid points corresponds to a respective pixel location in one or more images or part of one or more images.

### Claim 24 (depends on 1)

The method according to claim 1, wherein each of the input data grid points corresponds to a respective frame in a sequence of image frames of a video and a respective pixel location in the respective image frame.

### Claim 25 (depends on 24)

The method according to claim 24, further comprising:
dividing the video into a plurality of video patches, each video patch corresponding to a proper subset of the pixels of each image frame and/or a proper subset of the image frames of the video; and
for each of the video patches performing steps (a) to (c) to encode the input data values of the video patch.

### Claim 26 (depends on 24)

The method according to claim 24, wherein the probability of the set of latent values is determined by, for each of the latent grid points of each of the latent grids:
determining a causal subset of the latent values comprising latent values corresponding to latent grid points that precede the latent grid point in the latent grid; and
using the decoder neural network to determine, from the latent values in the causal subset, one or more probability distribution parameters defining a conditional probability distribution for a latent value at the latent grid point; and
using the conditional probability distribution defined by the one or more probability distribution parameters to determine the probability of the latent value conditioned on the latent values in the causal subset, and wherein the causal subset of the latent values for each of the latent grid points comprises selected latent values of another latent grid corresponding to an image frame of the video that precedes the image frame corresponding to the latent grid point in the sequence of image frames.

### Claim 27 (depends on 1)

The method according to claim 1, wherein the optimizing is performed for input data corresponding to a plurality of training examples to generate a corresponding synthesis neural network, decoder neural network and set of latent values for each of the one or more training examples, wherein at least some of the parameters of the synthesis neural networks and/or the decoder neural networks are shared between the training examples.

### Claim 28 (depends on 27)

The method according to claim 27, wherein the input data of the plurality of training examples correspond to different respective images or videos, or to parts of one image or video.

### Claim 29 (depends on 1)

The method according to claim 1, further comprising providing the encoded latent values in a bitstream.

### Claim 30

A system comprising:
one or more computers; and
one or more storage devices communicatively coupled to the one or more computers, wherein the one or more storage devices store instructions that, when executed by the one or more computers, cause the one or more computers to perform a method of encoding input data, the input data comprising input data values corresponding to respective input data grid points of an input data grid, the method comprising:
(a) optimizing an objective function by jointly optimizing parameters of a synthesis neural network, parameters of a decoder neural network, and a set of latent values, the latent values corresponding to respective latent grid points of each of a plurality of latent grids having different respective resolutions, wherein the optimizing comprises, for each of a plurality of optimization iterations, determining gradients of the objective function using the latent values and using the gradients to update one or more of: the parameters of the synthesis neural network, the parameters of the decoder neural network, and the latent values;
(b) quantizing the optimized latent values; and
(c) encoding the quantized latent values using a probability distribution for the latent values, the probability distribution being defined by the decoder neural network,
wherein the objective function comprises a reconstruction loss term comparing the input data values with corresponding reconstructed data values determined from the set of latent values using the synthesis neural network, and a compressibility term dependent on a probability of the set of latent values determined from the probability distribution defined by the decoder neural network, and
wherein the optimizing further comprises updating the latent values by applying a soft-rounding function to each of the latent values.
