# US 2025/0220186 A1 · Methods and Systems for a Video Compression Transformer

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

- Number: US 2025/0220186 A1
- Document ID: US20250220186A1
- Status: Published application
- Kind: A1
- Application number: 18/867,234
- Filed: 2023-06-06
- Published: 2025-07-03
- Earliest claimed: 2022-06-06
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Fabian Julius Mentzer; George Dan Toderici; David Charles Minnen; Sung Jin Hwang; Sergi Caelles Prat; Mario Lucic; Eirikur Thor Agustsson
- Web page: https://patentgrep.com/patent/US20250220186A1

## CPC

- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- G06T 9/002: {using neural networks}
- H04N 19/149: by estimating the code amount by means of a model, e.g. mathematical model or statistical model
- H04N 19/503: involving temporal prediction (adaptive coding with adaptive selection between spatial and temporal predictive coding H04N19/107; adaptive coding with adaptive selection among a plurality of temporal predictive coding modes H04N19/109)
- H04N 19/593: involving spatial prediction techniques
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Apparatus and methods related to encoding, by an encoder of a transmitting computing device, a plurality of successive input video frames as a corresponding sequence of quantized representations; predicting, by a transformer of the transmitting computing device, a probability mass function (PMF) as a conditional distribution of a given quantized representation in the sequence of quantized representations, wherein the conditional distribution is based on at least one dependency between one or more quantized representations that occur prior to the given quantized representation in the sequence of quantized representations; generating, by the transmitting computing device, a plurality of compressed video frames by applying, based on the predicted PMF, an entropy coding to each quantized representation, wherein the entropy coding comprises assigning a smaller number of bits to values that have a higher frequency of occurrence; and transmitting, by the transmitting computing device, the plurality of compressed video frames.

## Claims

### Claim 1

A computer-implemented method, comprising:
encoding, by an encoder of a transmitting computing device, a plurality of successive input video frames as a corresponding sequence of quantized representations;
predicting, by a transformer of the transmitting computing device, a probability mass function (PMF) as a conditional distribution of a given quantized representation in the sequence of quantized representations, wherein the conditional distribution is based on at least one dependency between one or more quantized representations that occur prior to the given quantized representation in the sequence of quantized representations;
generating, by the transmitting computing device, a plurality of compressed video frames by applying, based on the predicted PMF, an entropy coding to each quantized representation, wherein the entropy coding comprises assigning a smaller number of bits to values that have a higher frequency of occurrence; and
transmitting, by the transmitting computing device, the plurality of compressed video frames.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
receiving, by a receiving computing device, the plurality of compressed video frames; and
generating, by a decoder of the receiving computing device and based on the predicted PMF, a plurality of decompressed video frames.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein an average number of bits corresponds to a cross-entropy of the conditional distribution with respect to the predicted PMF.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the predicting of the PMF further comprises:
maintaining a coding efficiency of the entropy coding by adjusting the cross-entropy.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the encoder performs a spatial downscaling and increases a channel dimension.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the encoder is a convolutional neural network (CNN) based image encoder.

### Claim 7

(canceled)

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the encoding of each frame further comprises a quantization of the quantized representation to an integer grid.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, further comprising:
applying neural image compression to train one or more of the encoder or the decoder to be respective lossy transforms, wherein a target distortion variable is based on a range of each quantized representation.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, wherein the training of the one or more of the encoder or the decoder is based on a rate-distortion trade-off loss.

### Claim 11 (depends on 1)

The computer-implemented method of claim 1, wherein the at least one dependency is a temporal dependency.

### Claim 12 (depends on 1)

The computer-implemented method of claim 1, further comprising:
splitting the given quantized representation spatially into non-overlapping blocks of size N×N, and
wherein the one or more quantized representations that occur prior to the given quantized representation are configured to be overlapping blocks of size M×M, with M>N,
wherein each block is spatially flattened to generate one or more tokens for the transformer, and
wherein the predicting of the PMF is based on a spatial context and a temporal context derived from the overlapping blocks.

### Claim 13 (depends on 12)

The computer-implemented method of claim 12, wherein the predicting of the PMF by the transformer comprises:
extracting, by a first transformer, separately from each of the overlapping blocks, temporal information corresponding to the one or more quantized representations that occur prior to the given quantized representation; and
mixing, by a second transformer, the extracted temporal information.

### Claim 14 (depends on 1)

The computer-implemented method of claim 1, wherein the transmitting computing device comprises a camera, and the method further comprising:
capturing the plurality of input video frames using the camera; and
receiving, by the encoder, the plurality of input video frames from the camera.

### Claim 15

(canceled)

### Claim 16

(canceled)

### Claim 17

(canceled)

### Claim 18

(canceled)

### Claim 19

(canceled)

### Claim 20

(canceled)

### Claim 21

(canceled)

### Claim 22 (depends on 2)

The computer-implemented method of claim 2, wherein the transmitting computing device is the same as the receiving computing device.

### Claim 23

(canceled)

### Claim 24

A computing device, comprising:
one or more processors; and
data storage, wherein the data storage has stored thereon computer-executable instructions that, when executed by the one or more processors, cause the computing device to carry out functions comprising:
encoding, by an encoder of a transmitting computing device, a plurality of successive input video frames as a corresponding sequence of quantized representations;
predicting, by a transformer of the transmitting computing device, a probability mass function (PMF) as a conditional distribution of a given quantized representation in the sequence of quantized representations, wherein the conditional distribution is based on at least one dependency between one or more quantized representations that occur prior to the given quantized representation in the sequence of quantized representations;
generating, by the transmitting computing device, a plurality of compressed video frames by applying, based on the predicted PMF, an entropy coding to each quantized representation, wherein the entropy coding comprises assigning a smaller number of bits to values that have a higher frequency of occurrence; and
transmitting, by the transmitting computing device, the plurality of compressed video frames.

### Claim 25

(canceled)

### Claim 26

(canceled)

### Claim 27

(canceled)

### Claim 28

(canceled)

### Claim 29

A decoding device, comprising:
one or more processors; and
data storage, wherein the data storage has stored thereon computer-executable instructions that, when executed by the one or more processors, cause the decoding device to carry out functions comprising:
receiving, by a decoder of the decoding device, a plurality of compressed video frames as a corresponding sequence of quantized representations;
predicting, by a transformer of the decoding device, a probability mass function (PMF) as a conditional distribution of a given quantized representation in the sequence of quantized representations, wherein the conditional distribution is based on at least one dependency between one or more quantized representations that occur prior to the given quantized representation in the sequence of quantized representations;
generating, by the decoding device, a plurality of decompressed video frames by applying, based on the predicted PMF, an entropy decoding to each quantized representation, wherein the entropy decoding comprises reversing an entropy encoding, and the entropy encoding having assigned a smaller number of bits to values with a higher frequency of occurrence; and
providing, by the decoding device, the plurality of decompressed video frames.

### Claim 30 (depends on 29)

The decoding device of claim 29, wherein an average number of bits corresponds to a cross-entropy of the conditional distribution with respect to the predicted PMF.

### Claim 31 (depends on 29)

The decoding device of claim 29, the functions for the predicting of the PMF further comprising:
maintaining a decoding efficiency of the entropy decoding by adjusting the cross-entropy.

### Claim 32 (depends on 29)

The decoding device of claim 29, wherein the decoder is a convolutional neural network (CNN) based image decoder.

### Claim 33 (depends on 29)

The decoding device of claim 29, the functions further comprising:
applying neural image decompression to train the decoder to be a lossy transform, wherein a target distortion variable is based on a range of each quantized representation.

### Claim 34 (depends on 33)

The decoding device of claim 33, wherein the training of the decoder is based on a rate-distortion trade-off loss.

### Claim 35 (depends on 30)

The decoding device of claim 30, wherein the at least one dependency is a temporal dependency.

### Claim 36

(canceled)

### Claim 37

(canceled)

### Claim 38

(canceled)

### Claim 39

(canceled)

### Claim 40

(canceled)

### Claim 41

(canceled)
