Instance-adaptive image and video compression in network parameter subspace using machine learning systems

By employing instance-adaptive neural networks trained within a subspace of model parameters, the method efficiently compresses and decompresses video data, reducing bandwidth and storage demands while maintaining high quality, overcoming the limitations of existing video coding techniques.

JP2024535693AActive Publication Date: 2024-10-02QUALCOMM INC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024509437
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-08-25
Filing Date
2022-08-02
Publication Date
2024-10-02
Estimated Expiration
2042-08-02

AI Technical Summary

Technical Problem

Existing video coding techniques struggle to efficiently compress video data while maintaining high quality, leading to increased bandwidth and storage demands due to the large amounts of data required for high-resolution and high-fidelity video, and existing machine learning-based methods face challenges with computational and memory requirements and adaptability to different data types.

Method used

Utilizing machine learning systems, specifically neural networks like rate-distortion autoencoders, to compress and decompress video data by training within a subspace of model parameters, allowing for instance-adaptive compression and decompression, reducing the need for large neural networks and optimizing bit rate and file size.

Benefits of technology

The proposed method improves compression performance by adapting neural networks to each data instance, reducing bit rate and file size while maintaining high-quality video output, addressing the inefficiencies of existing methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024535693000001_ABST
    Figure 2024535693000001_ABST
Patent Text Reader

Abstract

Techniques for compressing data using a machine learning system are described. An exemplary process can include receiving input data for compression by a neural network compression system. The process can include determining a set of updated model parameters for the neural network compression system based on the input data, where the set of updated model parameters is selected from a subspace of model parameters. The process can include generating at least one bitstream including a compressed version of the input data and a compressed version of one or more subspace coordinates corresponding to the set of updated model parameters. The process can include outputting the at least one bitstream for transmission to a receiver.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] FIELD OF THE DISCLOSURE The present disclosure relates generally to data compression. For example, aspects of the present disclosure include using machine learning systems to compress image and / or video content. [Background technology]

[0002] Many devices and systems allow image / video data to be processed and output for consumption. Digital image / video data includes large amounts of data to meet increasing demands for image / video quality, performance, and functionality. For example, consumers of video data typically desire high quality video with high fidelity, resolution, frame rate, etc. The large amount of video data that is frequently required to meet these demands places a significant strain on communication networks, as well as devices that process and store the video data. Video coding techniques may be used to compress the video data. One exemplary goal of video coding is to compress the video data into a form that uses a lower bit rate while avoiding or minimizing degradation of video quality. As ever-evolving video services become available and the demand for large amounts of video data increases, coding techniques with better performance and efficiency are needed. Summary of the Invention

[0003] In some examples, systems and techniques for data compression and / or decompression using one or more machine learning systems are described. In some examples, a machine learning system (e.g., using one or more neural network systems) is provided for compressing and / or decompressing image / video data. According to at least one illustrative example, a method for processing image data is provided. The method may include receiving input data for compression by a neural network compression system, determining an updated set of model parameters for the neural network compression system based on the input data, the updated set of model parameters being selected from a subspace of model parameters, generating at least one bitstream including a compressed version of the input data and a compressed version of one or more subspace coordinates corresponding to the updated set of model parameters, and outputting the at least one bitstream for transmission to a receiver.

[0004] In another example, an apparatus is provided for processing image data, the apparatus including at least one memory and at least one processor (e.g., configured in a circuit) communicatively coupled to the at least one memory. The at least one processor may be configured to receive input data for compression by a neural network compression system, determine a set of updated model parameters for the neural network compression system based on the input data, the set of updated model parameters selected from a subspace of model parameters, generate at least one bitstream including a compressed version of the input data and a compressed version of one or more subspace coordinates corresponding to the set of updated model parameters, and output the at least one bitstream for transmission to a receiver.

[0005] In another example, a non-transitory computer-readable medium is provided that includes at least one instruction stored on the non-transitory computer-readable medium that, when executed by one or more processors, causes the one or more processors to receive input data for compression by a neural network compression system, determine a set of updated model parameters for the neural network compression system based on the input data, the set of updated model parameters selected from a subspace of model parameters, generate at least one bitstream including a compressed version of the input data and a compressed version of one or more subspace coordinates corresponding to the set of updated model parameters, and output the at least one bitstream for transmission to a receiver.

[0006] In another example, an apparatus is provided for processing image data that may include means for receiving input data for compression by a neural network compression system, means for determining an updated set of model parameters for the neural network compression system based on the input data, the updated set of model parameters selected from a subspace of model parameters, means for generating at least one bitstream including a compressed version of the input data and a compressed version of one or more subspace coordinates corresponding to the updated set of model parameters, and means for outputting the at least one bitstream for transmission to a receiver.

[0007] In another example, a method for processing image data is provided that may include receiving a compressed version of input data and a compressed version of one or more subspace coordinates, determining a set of updated model parameters for a neural network compression system based on the one or more subspace coordinates, and processing the input data using the set of updated model parameters to generate a reconstructed version of the input data.

[0008] In another example, an apparatus is provided for processing image data, the apparatus including at least one memory and at least one processor (e.g., configured in a circuit) communicatively coupled to the at least one memory. The at least one processor may be configured to receive a compressed version of input data and a compressed version of one or more subspace coordinates, determine a set of updated model parameters for a neural network compression system based on the one or more subspace coordinates, and process the input data using the set of updated model parameters to generate a reconstructed version of the input data.

[0009] In another example, a non-transitory computer-readable medium is provided that includes at least one instruction stored on the non-transitory computer-readable medium that, when executed by one or more processors, causes the one or more processors to receive a compressed version of input data and a compressed version of one or more subspace coordinates, determine a set of updated model parameters for a neural network compression system based on the one or more subspace coordinates, and process the input data using the set of updated model parameters to generate a reconstructed version of the input data.

[0010] In another example, an apparatus for processing image data is provided that may include means for receiving a compressed version of input data and a compressed version of one or more subspace coordinates, means for determining a set of updated model parameters for a neural network compression system based on the one or more subspace coordinates, and means for processing the input data using the set of updated model parameters to generate a reconstructed version of the input data.

[0011] In some aspects, the device may be or be part of a camera (e.g., an IP camera), a mobile device (e.g., a mobile phone or so-called "smartphone," or other mobile device), a smart wearable device, an extended reality device (e.g., a virtual reality (VR), an augmented reality (AR), or a mixed reality (MR) device), a personal computer, a laptop computer, a server computer, a 3D scanner, a multi-camera system, or other device. In some aspects, the device includes a camera or multiple cameras for capturing one or more images. In some aspects, the device further includes a display for displaying one or more images, notifications, and / or other displayable data. In some aspects, the devices described above may include one or more sensors.

[0012] This Summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used independently to determine the scope of the claimed subject matter, which subject matter should be understood by reference to the entire specification of this patent, any or all drawings, and appropriate portions of each claim.

[0013] The above, together with other features and embodiments, will become more apparent with reference to the following specification, claims, and accompanying drawings. [Brief description of the drawings]

[0014] Exemplary embodiments of the present application are described in detail below with reference to the following drawings: [Figure 1] FIG. 1 illustrates an example of an image processing system according to some examples of the present disclosure. [Figure 2A] FIG. 2 illustrates an example of a fully connected neural network in accordance with some examples of the present disclosure. [Figure 2B] FIG. 2 illustrates an example of a locally connected neural network, in accordance with some examples of the present disclosure. [Figure 2C]FIG. 1 illustrates an example of a convolutional neural network, in accordance with some examples of the present disclosure. [Figure 2D] FIG. 1 illustrates an example of a deep convolutional network (DCN) for recognizing visual features from an image, in accordance with some examples of the present disclosure. [Diagram 3] FIG. 1 is a block diagram illustrating an example deep convolutional network (DCN), in accordance with some examples of the present disclosure. [Figure 4] A diagram illustrating an example of a system including a transmitting device for compressing video content and a receiving device for decompressing a received bitstream into video content, in accordance with some examples of the present disclosure. [Figure 5A] FIG. 1 illustrates an exemplary rate-distortion autoencoder system in accordance with some examples of the present disclosure. [Figure 5B] FIG. 1 illustrates an exemplary rate-distortion autoencoder system in accordance with some examples of the present disclosure. [Figure 6] FIG. 1 illustrates an example inference process implemented by an example neural network compression system fine-tuned using model prior information, in accordance with some examples of the present disclosure. [Figure 7] FIG. 1 illustrates an example instance adaptation process implemented by an example neural network compression system fine-tuned within a network parameter subspace, in accordance with some examples of the present disclosure. [Figure 8] 1 is a graph illustrating an example network parameter subspace in accordance with some examples of the present disclosure. [Figure 9] 11 is a graph illustrating updates to network parameters in a subspace in accordance with some examples of the present disclosure. [Figure 10] 1 is a flowchart illustrating an example of a process for determining a subspace according to some examples of the present disclosure. [Figure 11] FIG. 1 illustrates an example process for performing instance-adaptive neural compression, in accordance with some examples of the present disclosure. [Figure 12] 1 is a flowchart illustrating an example of a process for performing instance-adaptive neural decompression in accordance with some examples of the present disclosure. [Figure 13] 11 is a flowchart illustrating another example of a process for performing instance adaptive neural compaction in accordance with some examples of the present disclosure. [Figure 14] 11 is a flowchart illustrating another example of a process for performing instance-adaptive neural unpacking in accordance with some examples of the present disclosure. [Figure 15] 1 illustrates an exemplary computing system in accordance with some examples of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] Specific aspects and embodiments of the present disclosure are provided below. As will be apparent to those skilled in the art, some of these aspects and embodiments may be applied independently, and some of them may be applied in combination. In the following description, for the purpose of explanation, specific details are set forth to provide a thorough understanding of the embodiments of the present application. However, it will be apparent that various embodiments may be practiced without these specific details. The figures and descriptions are not intended to be limiting.

[0016] The following description provides only exemplary embodiments and is not intended to limit the scope, applicability, or configuration of the present disclosure. Instead, the following description of exemplary embodiments provides those skilled in the art with an enabling description for implementing the exemplary embodiments. It should be understood that various changes may be made in the function and arrangement of elements without departing from the scope of the present application as set forth in the appended claims.

[0017] As discussed above, digital image and video data can contain large amounts of data, especially as the demand for high quality video data continues to increase. For example, consumers of image and video data typically desire increasingly higher video quality, such as higher fidelity, resolution, frame rates, etc. However, the large amounts of data required to meet such demands can place a significant strain on communication networks, such as high bandwidth and network resource requirements, as well as devices that process and store the video data.

[0018] Because uncompressed image and video content can result in large files that can involve significant memory for physical storage and significant bandwidth for transmission, techniques may be utilized to compress such image and / or video content. For example, various compression algorithms (also referred to as encoding algorithms or tools) may be applied to image and video content to reduce the size of the image content and thus the amount of storage required to store the image content and the amount of bandwidth required to deliver the video content.

[0019] In some cases, image content may be compressed using a priori defined compression algorithms such as Joint Photographic Experts Group (JPEG), Better Portable Graphics (BPG), among others. For example, JPEG is a lossy compression format based on the Discrete Cosine Transform (DCT). For example, a device performing JPEG compression of an image may convert the image to an optimal color space (e.g., YCbCr color space, which includes luma (Y), chrominance blue (Cb), and chrominance red (Cr)), downsample the chrominance components by averaging groups of pixels together, apply a DCT function to blocks of pixels to remove redundant image data, and compress the image data. Compression is based on identifying similar regions in an image and converting the regions to the same color code (based on the DCT function). Video content may also be compressed using a priori defined compression algorithms such as the Motion Picture Experts Group (MPEG) algorithm, H.264, or High Efficiency Video Coding algorithm.

[0020] These a priori defined compression algorithms may be able to preserve most of the information in the raw image and video content and may be defined a priori based on ideas from signal processing and information theory. However, while these predefined compression algorithms may be generally applicable (e.g., to any type of image / video content), the compression algorithms may not take into account content similarity, new resolutions or frame rates for video capture and distribution, non-natural images (e.g., radar images or other images captured via various sensors), etc.

[0021] Compression algorithms defined a priori are considered lossy compression algorithms. In lossy compression of an input image (or video frame), the input image cannot be encoded and then decoded / reconstructed so that the exact input image is reconstructed. Rather, in lossy compression, an approximate version of the input image is generated after decoding / reconstruction of the compressed input image. Lossy compression results in a reduction in bit rate at the expense of distortion, which results in artifacts present in the reconstructed image. Thus, there is a rate-distortion tradeoff in lossy compression systems. In certain compression methods (e.g., JPEG, BPG, among others), distortion-based artifacts can take the form of blocking or other artifacts.

[0022] In some cases, machine learning systems can be used to perform compression and decompression of image and / or video data. For example, deep neural networks such as rate-distortion autoencoders (RD-AE) can be used to perform compression and decompression of content (e.g., image content, video content, audio content, etc.). The deep neural network can include an autoencoder (AE) that maps an image to a latent code space (e.g., including a set of codes z). In some cases, the deep neural network can also include a probability model (also called a prior or code model) that can losslessly compress the codes z from the latent code space. The probability model can generate a probability distribution over a set of codes z that can represent the encoded data based on the input data.

[0023] Machine learning based compression techniques (e.g., RD-AE) can be used to generate compressed content with high quality and / or reduced bitrate. In some examples, the RD-AE can be trained to minimize the average rate-distortion loss over a dataset of data points, such as image and / or video data points. In some cases, the RD-AE can also be fine-tuned to specific data points that are sent to and decoded by a receiver. In some examples, by fine-tuning the RD-AE on the data points, the RD-AE can obtain high compression (rate / distortion) performance. An encoder associated with the RD-AE can send an AE model or a portion of the AE model to a receiver (e.g., a decoder) to decode the bitstream.

[0024] Although machine learning based compression systems can perform better than lossy compression systems, implementation of such machine learning based compression systems exhibits certain drawbacks. For example, neural compression algorithms require large neural networks, which can result in increased computation and / or memory requirements. Furthermore, optimal settings (e.g., weights) used in deep neural networks depend on the training dataset and may not perform well when used with different data. For example, a neural video codec trained on natural scenes may not perform well on animated scenes. Furthermore, a particular neural network may be fine-tuned based on each instance, but sending the updated and fine-tuned parameters to the decoder may significantly increase the file size and / or bitrate.

[0025] In some aspects, described herein are systems, apparatus, processes (also referred to as methods), and computer-readable media (collectively referred to herein as "systems and techniques") for performing compression and decompression (also referred to as encoding and decoding, collectively referred to as coding) of data (e.g., images, video, audio, etc.) using one or more machine learning systems. In some examples, the machine learning techniques can provide image and / or video compression that produces high quality visual output.

[0026] In some aspects, a machine learning system (e.g., a neural network such as a rate-distortion autoencoder (RD-AE) or other neural network) may be trained to minimize an average rate-distortion loss over a dataset of data points, such as image and / or video data points. In some examples, a set of global model parameters (e.g., weights) may be associated with the trained machine learning system. In some cases, training the machine learning system may include identifying parameters (e.g., a weight vector) associated with each iteration of training. For example, the weight vector may correspond to each training iteration, and the global model parameters may correspond to the weight vector of the trained neural network.

[0027] In some examples, training of the machine learning system may include determining a subspace or manifold of model parameters having a lower dimensionality than the full parameter space. In some aspects, the subspace or manifold of model parameters includes a portion of the weight vector associated with each iteration of training. In some cases, the subspace or manifold of model parameters may be determined using principal component analysis (PCA). For example, PCA may be used to identify one or more directions and / or trajectories in the full parameter space in which the model parameters performed well during training of the neural network (e.g., where the result of a loss function is below a threshold). In some aspects, sparse PCA may be used to reduce the size of the subspace of model parameters. In some examples, the subspace or manifold of model parameters may be shared with a neural network configured to decode the encoded data.

[0028] In some examples, a machine learning system may be fine-tuned (e.g., trained, adapted, etc.) on an instance of input data (e.g., an image, a video, a portion of a video, three-dimensional (3D) data, etc.) that is compressed and transmitted to a receiving device that includes a decoder. In some aspects, fine-tuning of the machine learning system may be performed using a subspace or manifold of model parameters. For example, fine-tuning of a neural network may include selecting a set of updated model parameters that correspond to a weight vector that is a portion of the subspace or manifold of model parameters (e.g., selecting an optimal weight vector for the instance). In some cases, the set of updated parameters (e.g., a weight vector selected during fine-tuning) may be associated with one or more subspace coordinates. In one example, the one or more subspace coordinates may be relative to a set of global parameters (e.g., the subspace coordinates may correspond to a trajectory relative to the set of global parameters).

[0029] In some aspects, the set of updated parameters may be used to encode the input data. In some examples, the machine learning system (e.g., a neural network such as an RD-AE or other neural network) may further include an arithmetic encoder (e.g., including an arithmetic encoder, an arithmetic decoder, or a hybrid arithmetic encoder-decoder). The arithmetic encoder (e.g., an arithmetic encoder or a hybrid arithmetic encoder-decoder) may generate a bitstream including a compressed version of the input data. In some cases, the bitstream may also include a compressed version of one or more subspace coordinates corresponding to the updated set of model parameters. In some cases, a receiving device may receive the bitstream. A decoder of the receiving device may use the one or more subspace coordinates to determine updated model parameters of the neural network. The machine learning system of the decoder (e.g., a neural network such as an RD-AE or other neural network) may use the updated model parameters to decode the compressed input data.

[0030] In some aspects, the systems and techniques disclosed herein may be used to improve compression performance by adapting a machine learning system (e.g., a neural network) to each data instance. In some examples, the systems and techniques disclosed herein may reduce the bit rate and / or file size for sending network parameter updates (e.g., a fine-tuned neural network) to a decoder by selecting fine-tuned weight vectors from a low-dimensional subspace.

[0031] One or more machine learning systems may be trained as described herein and used to perform data compression and / or decompression, such as image, video, and / or audio compression and decompression. The machine learning systems described herein may be trained to perform compression / decompression techniques that generate high quality data output. The systems and techniques described herein may perform compression and / or decompression of any type of data. For example, in some cases, the systems and techniques described herein may perform compression and / or decompression of image data. As another example, in some cases, the systems and techniques described herein may perform compression and / or decompression of video data. As used herein, the terms "image" and "frame" are used interchangeably and refer to a standalone image or frame (e.g., a photograph) or a group or sequence of images or frames (e.g., constituting a video or other sequence of images / frames). As another example, in some cases, the systems and techniques described herein may perform compression and / or decompression of audio data. For purposes of simplicity, illustration, and explanation, the systems and techniques described herein are described with reference to compression and / or decompression of image data (e.g., an image or frame, video, etc.). However, as mentioned above, the concepts described herein can also be applied to other modalities, such as audio data and any other type of data.

[0032] The compression model used by the encoder and / or decoder can be generalizable to different types of data. Furthermore, by utilizing instance adaptive neural models having various properties described herein, a machine learning system can improve compression and / or decompression performance, bit rate, quality, and / or efficiency for a particular data set. For example, an instance adaptive neural model-based machine learning system can reduce bit rate by fine-tuning a neural network within a predefined subspace of network parameters and providing parameter updates within the subspace to a decoder.

[0033] As mentioned above, in some examples, a machine learning system may include one or more neural networks. Machine learning (ML) is a subset of artificial intelligence (AI). ML systems include algorithms and statistical models that computer systems can use to perform various tasks by relying on patterns and inferences without explicit instructions. One example of an ML system is a neural network (also called a simulated neural network), which may be composed of an interconnected group of simulated neurons (e.g., nerve cell models). Neural networks may be used for various applications and / or devices, such as image analysis and / or computer vision applications, Internet Protocol (IP) cameras, Internet of Things (IoT) devices, autonomous vehicles, service robots, among others.

[0034] Individual nodes in a neural network can emulate biological neurons by taking input data and performing simple operations on the data. The results of the simple operations performed on the input data may be selectively passed to other neurons. Each vector and node in the network is associated with a weight value, which constrains how the input data relates to the output data. For example, the input data of each node may be multiplied by the corresponding weight value and the products may be summed. The sum of the products may be adjusted by an optional bias, and an activation function may be applied to the result, resulting in the node's output signal or "output activation" (sometimes called an activation map or feature map). The weight values ​​may initially be determined by an iterative flow of training data through the network (e.g., the weight values ​​are established during a training phase in which the network learns how to identify particular classes by their typical input data characteristics).

[0035] In particular, there are different types of neural networks, such as deep generative neural network models (e.g., generative adversarial networks (GANs)), recurrent neural network (RNN) models, multi-layer perceptron (MLP) neural network models, convolutional neural network (CNN) models, autoencoders (AEs), etc. For example, GANs are a form of generative neural network that can learn patterns in input data so that the neural network model can generate new synthetic outputs that can reasonably be from the original dataset. GANs can include two neural networks working together. One neural network (called the generative neural network or generator, denoted as G(z)) generates the synthetic output, and the other neural network (called the discriminative neural network or discriminator, denoted as D(X)) evaluates the output for authenticity (whether the output is from an original dataset, such as a training dataset, or whether it is generated by the generator). The training inputs and training outputs can include images as illustrative examples. The generator is trained to try to fool the classifier into determining that the synthetic images generated by the generator are real images from the dataset. The training process continues and the generator gets better at generating synthetic images that look like real images. The classifier continues to find defects in the synthetic images and the generator figures out what the classifier is looking at to determine defects in the image. Once the network is trained, the generator is able to generate realistic looking images that the classifier cannot distinguish from real images.

[0036] RNNs work in a way that they save the output of a layer and feed this output back to the input to help predict the outcome of the layer. In an MLP neural network, data may be fed into the input layer, and one or more hidden layers provide a level of abstraction to the data. Predictions may then be made in the output layer based on the abstracted data. MLPs may be particularly suited to classification prediction problems, where inputs are assigned to classes or labels. A convolutional neural network (CNN) is a type of feed-forward artificial neural network. A CNN may include a collection of artificial neurons, each with a receptive field (e.g., a spatially localized region of the input space) that collectively tile the input space. CNNs have many applications, including pattern recognition and classification.

[0037] In a hierarchical neural network architecture (called a deep neural network when there are multiple hidden layers), the output of a first layer of artificial neurons becomes the input to a second layer of artificial neurons, the output of the second layer of artificial neurons becomes the input to a third layer of artificial neurons, and so on. Convolutional neural networks may be trained to recognize a hierarchy of features. Computations in convolutional neural network architectures may be distributed across a population of processing nodes that may be configured in one or more computational chains. These multi-layer architectures may be trained one layer at a time and fine-tuned using backpropagation.

[0038] An autoencoder (AE) can learn efficient data coding in an unsupervised manner. In some examples, the AE can learn a representation (e.g., data coding) of a data set by training a network to ignore signal noise. The AE can include an encoder and a decoder. The encoder can map input data to codes, and the decoder can map the codes to reconstructions of the input data. In some examples, a rate-distortion autoencoder (RD-AE) can be trained to minimize the average rate-distortion loss over a data set of data points, such as image and / or video data points. In some cases, the RD-AE can make a forward pass at inference to encode new data points.

[0039] 1 is a diagram illustrating an example of an image processing system 100 according to some examples of the present disclosure. In some cases, the image processing system 100 may include a central processing unit (CPU) 102 or a multi-core CPU configured to perform one or more of the functions described herein. Variables (e.g., neural signals and synaptic weights), system parameters associated with a computing device (e.g., a neural network with weights), delays, frequency bin information, task information, among other information, may be stored in a memory block associated with a neural processing unit (NPU) 108, a memory block associated with the CPU 102, a memory block associated with a graphics processing unit (GPU) 104, a memory block associated with a digital signal processor (DSP) 106, a memory block 118, or may be distributed among multiple blocks. Instructions executed in the CPU 102 may be loaded from a program memory associated with the CPU 102 and / or the memory block 118.

[0040] The image processing system 100 may include a GPU 104, a DSP 106, a connectivity block 110 that may include fifth generation (5G) connectivity, fourth generation long term evolution (4G LTE) connectivity, Wi-Fi connectivity, USB connectivity, Bluetooth connectivity, etc., and / or additional processing blocks tailored to specific functions, such as a multimedia processor 112 that may detect and recognize features, for example. In one implementation, the NPU 108 is implemented in the CPU 102, the DSP 106, and / or the GPU 104. The image processing system 100 may also include a sensor processor 114, one or more image signal processors (ISPs) 116, and / or a memory device 120. In some examples, the image processing system 100 may be based on the ARM instruction set.

[0041] Image processing system 100 may be part of a computing device or multiple computing devices. In some examples, image processing system 100 may be part of an electronic device (or multiple devices), such as a camera system (e.g., digital camera, IP camera, video camera, security camera, etc.), a telephone system (e.g., smartphone, cellular phone, conferencing system, etc.), a desktop computer, an XR device (e.g., head mounted display, etc.), a smart wearable device (e.g., smart watch, smart glasses, etc.), a laptop or notebook computer, a tablet computer, a set-top box, a television, a display device, a digital media player, a gaming console, a video streaming device, a drone, an in-car computer, a system-on-chip (SOC), an Internet of Things (IoT) device, or any other suitable electronic device.

[0042] Although image processing system 100 is shown as including several components, one skilled in the art will appreciate that image processing system 100 may include more or fewer components than those shown in Figure 1. For example, image processing system 100 may also include, in some cases, one or more memory devices (e.g., RAM, ROM, cache, etc.), one or more network interfaces (e.g., wired and / or wireless communication interfaces, etc.), one or more display devices, and / or other hardware or processing devices not shown in Figure 1. Illustrative examples of computing devices and hardware components that may be implemented with image processing system 100 are described below with respect to Figure 16.

[0043] The image processing system 100 and / or its components may be configured to perform compression and / or decompression (also referred to as encoding and / or decoding, collectively referred to as image coding) using the machine learning systems and techniques described herein. In some cases, the image processing system 100 and / or its components may be configured to perform image or video compression and / or decompression using the techniques described herein. In some examples, the machine learning system may utilize a deep learning neural network architecture to perform compression and / or decompression of image, video, and / or audio data. By using a deep learning neural network architecture, the machine learning system may increase the efficiency and speed of compression and / or decompression of content on a device. For example, a device using the described compression and / or decompression techniques may efficiently compress one or more images using the machine learning based techniques and may transmit the compressed one or more images to a receiving device, which may efficiently decompress the one or more compressed images using the machine learning based techniques described herein. As used herein, an image may refer to a still image and / or a video frame associated with a sequence of frames (e.g., a video).

[0044] As mentioned above, a neural network is an example of a machine learning system. A neural network may include an input layer, one or more hidden layers, and an output layer. Data is provided from input nodes in the input layer, processing is performed by hidden nodes in one or more hidden layers, and output is generated through output nodes in the output layer. A deep learning network typically includes multiple hidden layers. Each layer of a neural network may include a feature map or activation map that may include artificial neurons (or nodes). The feature map may include filters, kernels, etc. The nodes may include one or more weights that are used to indicate the importance of one or more nodes of the layer. In some cases, a deep learning network may have a series of many hidden layers, with early layers being used to determine simple, low-level characteristics of the input, and later layers building a hierarchy of more complex and abstract characteristics.

[0045] A deep learning architecture may learn a hierarchy of features. When presented with visual data, for example, a first layer may learn to recognize relatively simple features such as edges in the input stream. In another example, when presented with auditory data, the first layer may learn to recognize spectral power at specific frequencies. A second layer, taking as input the output of the first layer, may learn to recognize combinations of features such as simple shapes in the case of visual data, or combinations of sounds in the case of auditory data. For example, higher layers may learn to represent complex shapes in visual data or words in auditory data. Even higher layers may learn to recognize common visual objects or spoken phrases.

[0046] Deep learning architectures may work particularly well when applied to problems that have a natural hierarchical structure. For example, classification of electric vehicles may benefit from first learning to recognize wheels, windshields, and other features. These features may be combined in different ways at higher layers to recognize cars, trucks, and planes.

[0047] Neural networks may be designed with various connectivity patterns. In feedforward networks, each neuron in a given layer communicates with neurons in a higher layer, so that information is passed from lower layers to higher layers. As described above, hierarchical representations may be constructed in successive layers of a feedforward network. Neural networks may also have recurrent or feedback (also called top-down) connections. In recurrent connections, the output from a neuron in a given layer may be transmitted to another neuron in the same layer. Recurrent architectures may be useful in recognizing patterns across two or more of the input data chunks delivered in a sequence to the neural network. Connections from neurons in a given layer to neurons in a lower layer are called feedback (or top-down) connections. Networks with many feedback connections may be useful when recognition of high-level concepts can help distinguish certain low-level features of the input.

[0048] The connections between layers of a neural network may be fully connected or locally connected. FIG. 2A shows an example of a fully connected neural network 202. In the fully connected neural network 202, a neuron in a first layer may transmit its output to every neuron in a second layer, so that each neuron in the second layer receives input from every neuron in the first layer. FIG. 2B shows an example of a locally connected neural network 204. In the locally connected neural network 204, a neuron in a first layer may be connected to a limited number of neurons in the second layer. More generally, the locally connected layers of the locally connected neural network 204 may be configured such that each neuron in a layer has the same or similar connectivity pattern, but with connection strengths that may have different values ​​(e.g., 210, 212, 214, and 216). Because higher layer neurons in a given region may receive inputs that are tuned through training to the properties of a constrained subset of all inputs to the network, the connectivity patterns of local connections may give rise to spatially distinct receptive fields within the higher layers.

[0049] An example of a locally connected neural network is a convolutional neural network. FIG. 2C illustrates an example of a convolutional neural network 206. The convolutional neural network 206 may be configured such that the connection strengths associated with the inputs for each neuron in the second layer are shared (e.g., 208). Convolutional neural networks may be suitable for problems in which the spatial location of the inputs is meaningful. The convolutional neural network 206 may be used to perform one or more aspects of video compression and / or decompression according to aspects of the present disclosure.

[0050] One type of convolutional neural network is the deep convolutional network (DCN). Figure 2D shows a detailed example of a DCN 200 designed to recognize visual features from images 226 input from an image capture device 230, such as an on-board camera. The DCN 200 in this example may be trained to identify traffic signs and numbers given on traffic signs. Of course, the DCN 200 may be trained for other tasks, such as identifying lane markings or identifying traffic signals.

[0051] The DCN 200 may be trained using supervised learning. During training, the DCN 200 may be presented with an image, such as the image 226 of a speed limit sign, and then a forward pass may be computed to generate the output 222. The DCN 200 may include a feature extraction section and a classification section. Upon receiving the image 226, the convolution layer 232 may apply a convolution kernel (not shown) to the image 226 to generate the first set of feature maps 218. As an example, the convolution kernel for the convolution layer 232 may be a 5×5 kernel that generates a 28×28 feature map. In this example, four different convolution kernels were applied to the image 226 in the convolution layer 232 because four different feature maps are generated in the first set of feature maps 218. The convolution kernel may also be referred to as a filter or a convolution filter.

[0052] The first set of feature maps 218 may be subsampled by a max pooling layer (not shown) to generate a second set of feature maps 220. The max pooling layer reduces the size of the first set of feature maps 218. That is, the size of the second set of feature maps 220, such as 14×14, is smaller than the size of the first set of feature maps 218, such as 28×28. The reduced size provides similar information to subsequent layers while reducing memory consumption. The second set of feature maps 220 may be further convolved through one or more subsequent convolutional layers (not shown) to generate one or more subsequent sets of feature maps (not shown).

[0053] In the example of Figure 2D, a second set of feature maps 220 is convolved to generate a first feature vector 224. Furthermore, the first feature vector 224 is further convolved to generate a second feature vector 228. Each feature in the second feature vector 228 may include a number corresponding to a possible feature of the image 226, such as "sign", "60", and "100". A softmax function (not shown) may convert the numbers in the second feature vector 228 into probabilities. Thus, the output 222 of the DCN 200 is the probability that the image 226 contains one or more features.

[0054] In this example, the probability in output 222 for "sign" and "60" is higher than the probability for other of the outputs 222, such as "30", "40", "50", "70", "80", "90", and "100". Before training, the output 222 generated by DCN 200 may be inaccurate. Thus, an error may be calculated between the output 222 and a target output. The target output is the ground truth of image 226 (e.g., "sign" and "60"). The weights of DCN 200 may then be adjusted so that the output 222 of DCN 200 is more closely aligned with the target output.

[0055] To adjust the weights, the learning algorithm may calculate a gradient vector for the weights. The gradient may indicate the amount by which the error would increase or decrease if the weights were adjusted. In the top layer, the gradient may correspond directly to the values ​​of the weights connecting the activated neurons in the penultimate layer to the neurons in the output layer. In lower layers, the gradient may depend on the values ​​of the weights and the calculated error gradients of the upper layers. The weights may then be adjusted to reduce the error. This method of adjusting weights is sometimes called "backpropagation" because it involves a "backward pass" through the neural network.

[0056] In practice, the error gradient of the weights may be calculated over a small number of examples such that the calculated gradient approximates the true error gradient. This approximation method is sometimes called stochastic gradient descent. Stochastic gradient descent may be repeated until the achievable error rate of the entire system stops decreasing or until the error rate reaches a target level. After training, the DCN may be presented with a new image and a forward pass through the network may give an output 222, which may be considered an estimate or prediction of the DCN.

[0057] Deep belief networks (DBNs) are probabilistic models with multiple layers of hidden nodes. DBNs may be used to extract hierarchical representations of a training dataset. DBNs may be obtained by stacking layers of Restricted Boltzmann Machines (RBMs). RBMs are a type of artificial neural network that can learn probability distributions over a set of inputs. RBMs are frequently used in unsupervised learning because they can learn probability distributions without information about the class into which each input should be categorized. Using a hybrid unsupervised-supervised paradigm, the lower RBM of the DBN can be trained in an unsupervised manner and can function as a feature extractor, and the upper RBM can be trained in a supervised manner (on the joint distribution of inputs from previous layers and the target class) and can function as a classifier.

[0058] Deep convolutional networks (DCNs) are networks of convolutional networks, composed of additional pooling and normalization layers. DCNs have achieved state-of-the-art performance for many tasks. DCNs can be trained using supervised learning, where both the input and output targets are known for a large number of examples and are used to modify the network weights by using gradient descent.

[0059] The DCN may be a feedforward network. In addition, as described above, connections from neurons in a first layer of the DCN to groups of neurons in the next higher layer are shared across neurons in the first layer. The feedforward and shared connections of the DCN can be exploited for high speed processing. The computational burden of the DCN may be much smaller than that of a similarly sized neural network that includes, for example, recurrent or feedback connections.

[0060] The processing of each layer of the convolutional network may be considered as a spatially invariant template or basis projection. If the input is initially decomposed into multiple channels, such as the red, green, and blue channels of a color image, the convolutional network trained on that input may be considered as three-dimensional, with two spatial dimensions along the axes of the image and a third dimension capturing color information. The output of the convolutional connections may be considered to form a feature map in the subsequent layer, where each element of the feature map (e.g., 220) receives input from a range of neurons in the previous layer (e.g., feature map 218) and from each of multiple channels. The values ​​in the feature map may be further processed using nonlinearities such as rectification, max(0,x), etc. Values ​​from neighboring neurons may be further pooled, corresponding to downsampling, to provide additional local invariance and dimensionality reduction.

[0061] 3 is a block diagram illustrating an example of a deep convolutional network 350. The deep convolutional network 350 may include multiple different types of layers based on connectivity and weight sharing. As shown in FIG. 3, the deep convolutional network 350 includes convolutional blocks 354A, 354B. Each of the convolutional blocks 354A, 354B may be configured with a convolutional layer (CONV) 356, a normalization layer (LNorm) 358, and a max pooling layer (MAX POOL) 360.

[0062] The convolution layer 356 may include one or more convolution filters that may be applied to the input data 352 to generate feature maps. Although only two convolution blocks 354A, 354B are shown, the disclosure is not so limited and instead any number of convolution blocks (e.g., blocks 354A, 354B) may be included in the deep convolution network 350 according to design preferences. The normalization layer 358 may normalize the output of the convolution filters. For example, the normalization layer 358 may provide whitening or lateral inhibition. The max pooling layer 360 may provide downsampling aggregation across the space for local invariance and dimensionality reduction.

[0063] For example, a parallel filter bank of the deep convolutional network may be loaded onto the CPU 102 or GPU 104 of the image processing system 100 to achieve high performance and low power consumption. In alternative embodiments, the parallel filter bank may be loaded onto the DSP 106 or ISP 116 of the image processing system 100. Furthermore, the deep convolutional network 350 may have access to other processing blocks that may be present on the image processing system 100, such as the sensor processor 114.

[0064] The deep convolutional network 350 may also include one or more fully connected layers, such as layer 362A (labeled “FC1”) and layer 362B (labeled “FC2”). The deep convolutional network 350 may further include a logistic regression (LR) layer 364. Between each layer 356, 358, 360, 362, 364 of the deep convolutional network 350 are weights (not shown) that are to be updated. The output of each layer (e.g., 356, 358, 360, 362, 364) may serve as an input for a subsequent layer (e.g., 356, 358, 360, 362, 364) in the deep convolutional network 350 to learn a hierarchical feature representation from the input data 352 (e.g., image, audio, video, sensor data, and / or other input data) provided initially to the convolution block 354A. The output of the deep convolutional network 350 is a classification score 366 for the input data 352. The classification score 366 may be a set of probabilities, where each probability is the probability that the input data contains a feature from the set of features.

[0065] Image and video content may be stored and / or shared among devices. For example, image and video content may be uploaded to a media hosting service and sharing platform and sent to various devices. Recording uncompressed image and video content generally results in large file sizes that increase significantly as the resolution of the image and video content increases. For example, uncompressed 16-bit per channel video recorded at 1080p / 24 (e.g., a resolution of 1920 pixels wide by 1080 pixels high, captured at 24 frames per second) may occupy 12.4 megabytes per frame, or 297.6 megabytes per second. Uncompressed 16-bit per channel video recorded at 4K resolution at 24 frames per second may occupy 49.8 megabytes per frame, or 1195.2 megabytes per second.

[0066] Because uncompressed image and video content can result in large files that can involve significant memory for physical storage and significant bandwidth for transmission, techniques may be utilized to compress such video content. For example, various compression algorithms may be applied to image and video content to reduce the size of the image content and thus the amount of storage required to store the image content and the amount of bandwidth required to deliver the video content.

[0067] In some cases, image content may be compressed using a priori defined compression algorithms such as Joint Photographic Experts Group (JPEG), Better Portable Graphics (BPG), among others. For example, JPEG is a lossy compression format based on the Discrete Cosine Transform (DCT). For example, a device performing JPEG compression of an image may convert the image to an optimal color space (e.g., YCbCr color space, which includes luma (Y), chrominance blue (Cb), and chrominance red (Cr)), downsample the chrominance components by averaging groups of pixels together, apply a DCT function to blocks of pixels to remove redundant image data, and compress the image data. Compression is based on identifying similar regions in an image and converting the regions to the same color code (based on the DCT function). Video content may also be compressed using a priori defined compression algorithms such as the Motion Picture Experts Group (MPEG) algorithm, H.264, or High Efficiency Video Coding algorithm.

[0068] These a priori defined compression algorithms may be able to preserve most of the information in the raw image and video content and may be defined a priori based on ideas from signal processing and information theory. However, while these predefined compression algorithms may be generally applicable (e.g., to any type of image / video content), the compression algorithms may not take into account content similarity, new resolutions or frame rates for video capture and distribution, non-natural images (e.g., radar images or other images captured via various sensors), etc.

[0069] Compression algorithms defined a priori are considered lossy compression algorithms. In lossy compression of an input image (or video frame), the input image cannot be encoded and then decoded / reconstructed so that the exact input image is reconstructed. Rather, in lossy compression, an approximate version of the input image is generated after decoding / reconstruction of the compressed input image. Lossy compression results in a reduction in bit rate at the expense of distortion, which results in artifacts present in the reconstructed image. Thus, there is a rate-distortion tradeoff in lossy compression systems. In certain compression methods (e.g., JPEG, BPG, among others), distortion-based artifacts can take the form of blocking or other artifacts. In some cases, neural network-based compression can be used, which can result in high-quality compression of image data and video data. In some cases, blurring and color shifts are examples of artifacts.

[0070] Whenever the bit rate falls below the true entropy of the input data, it may be difficult or impossible to reconstruct the exact input data. However, the fact that there is distortion / loss realized from data compression / decompression does not mean that the reconstructed image or frame need not have artifacts. In fact, it may be possible to reconstruct a compressed image into another similar but different image with high visual quality.

[0071] In some cases, the compression and decompression may be performed using one or more machine learning (ML) systems. In some examples, such ML-based systems may provide image and / or video compression that produces high quality visual output. In some examples, such systems may perform compression and decompression of content (e.g., image content, video content, audio content, etc.) using deep neural networks such as rate-distortion autoencoders (RD-AE). The deep neural network may include an autoencoder (AE) that maps an image to a latent code space (e.g., including a set of codes z). The latent code space may include a code space used by the encoder and decoder, where the content is encoded into the codes z. The codes (e.g., codes z) may also be referred to as latent information, latent variables, or latent representations. The deep neural network may include a probability model (also referred to as a prior or code model) that may losslessly compress the codes z from the latent code space. The probability model may generate a probability distribution over a set of codes z that may represent the encoded data based on the input data. In some cases, the probability distribution may be expressed as (P(z)).

[0072] In some examples, the deep neural network may include an arithmetic coder that generates a bitstream including compressed data that is output based on a set of probability distributions P(z) and / or codes z. The bitstream including compressed data may be stored and / or transmitted to a receiving device. The receiving device may perform an inverse process to decode or decompress the bitstream using, for example, an arithmetic decoder, a probabilistic (or code) model, and an AE decoder. The device that generated the bitstream including compressed data may perform a similar decoding / decompression process when retrieving the compressed data from storage. Similar techniques may be performed to compress / encode and decompress / decode updated model parameters.

[0073] In some examples, the RD-AE may be trained and operated to perform as a multi-rate AE (including high-rate and low-rate operation). For example, the latent code space generated by the encoder of the multi-rate AE may be divided into two or more chunks (e.g., code z divided into chunks z1 and z2). In high-rate operation, the multi-rate AE may transmit a bitstream based on the entire latent space (e.g., code z including z1, z2, etc.) that may be used by the receiving device to decompress the data, similar to the operations described above with respect to the RD-AE. In low-rate operation, the bitstream transmitted to the receiving device is based on a subset of the latent space (e.g., chunk z1 but not z2). The receiving device may infer the remainder of the latent space based on the transmitted subset, and may generate reconstructed data using the subset of the latent space and the inferred remainder of the latent space.

[0074] By compressing (and decompressing) content using RD-AE or multi-rate AE, the encoding and decoding mechanism can be adapted to various use cases. Machine learning based compression techniques can generate compressed content with high quality and / or reduced bitrate. In some examples, RD-AE can be trained to minimize the average rate-distortion loss over a dataset of data points, such as image and / or video data points. In some cases, RD-AE can also be fine-tuned to specific data points that are sent to and decoded by a receiver. In some examples, by fine-tuning RD-AE on data points, RD-AE can obtain high compression (rate / distortion) performance. An encoder associated with RD-AE can send an AE model or a portion of the AE model to a receiver (e.g., a decoder) to decode the bitstream.

[0075] In some cases, the neural network compression system can reconstruct the input instance (e.g., input image, video, audio, etc.) from the (quantized) latent representation. The neural network compression system can also be used prior to losslessly compressing the latent representation. In some cases, the neural network compression system can determine a test-time data distribution of known relatively low entropy (e.g., a camera viewing a static scene, a dash cam of an autonomous vehicle, etc.) and fine-tune or adapt to such a distribution. The fine-tuning or adaptation can result in improved rate / distortion (RD) performance. In some examples, a model of the neural network compression system can be adapted to a single input instance to be compressed. The neural network compression system can provide model updates, which in some examples can be quantized and compressed using parameter space prior information along with the latent representation.

[0076] The fine-tuning can take into account the effects of model quantization and the additional cost incurred by transmitting model updates. In some examples, the neural network compression system can be fine-tuned using the RD loss as well as an additional model rate term M that measures the number of bits required to transmit model updates under model prior information, resulting in a combined RDM loss.

[0077] 4 illustrates a system 400 including a transmitting device 410 and a receiving device 420 according to some examples of the present disclosure. The transmitting device 410 and the receiving device 420 may each be referred to as an RD-AE, in some cases. The transmitting device 410 may compress image content, store the compressed image content, and / or transmit the compressed image content to the receiving device 420 for decompression. The receiving device 420 may decompress the compressed image content, output the decompressed image content on the receiving device 420 (e.g., for display, editing, etc.), and / or output the decompressed image content to another device (e.g., a television, a mobile device, or other device) connected to the receiving device 420. In some cases, the receiving device 420 may become a transmitting device by compressing image content (using an encoder 422) and storing and / or transmitting the compressed image content to another device, such as the transmitting device 410 (in which case the transmitting device 410 becomes a receiving device). Although system 400 is described herein with respect to compressing and decompressing images, those skilled in the art will appreciate that system 400 can use the techniques described herein to compress and decompress video content.

[0078] As shown in FIG. 4, the transmitting device 410 includes an image compression pipeline, and the receiving device 420 includes an image bitstream decompression pipeline. According to aspects of the present disclosure, the image compression pipeline in the transmitting device 410 and the bitstream decompression pipeline in the receiving device 420 generally use one or more artificial neural networks to compress image content and / or decompress a received bitstream into image content. The image compression pipeline in the transmitting device 410 includes an autoencoder 401, a code model 404, and an arithmetic coder 406. In some implementations, the arithmetic coder 406 is optional and may be omitted in some cases. The image decompression pipeline in the receiving device 420 includes an autoencoder 421, a code model 424, and an arithmetic decoder 426. In some implementations, the arithmetic decoder 426 is optional and may be omitted in some cases. The autoencoder 401 and the code model 404 of the transmitting device 410 are illustrated in FIG. 4 as machine learning systems that have been pre-trained and are therefore configured to perform operations during inference or operation of the trained machine learning system. The autoencoder 421, the code model 424, and the completion model 425 are also shown as pre-trained machine learning systems.

[0079] The autoencoder 401 comprises an encoder 402 and a decoder 403. The encoder 402 can perform lossy compression on received uncompressed image content by mapping pixels in one or more images of the uncompressed image content to a latent code space (including codes z). In general, the encoder 402 can be configured such that the codes z representing the compressed (or encoded) image are discrete or binary. These codes can be generated based on stochastic perturbation techniques, soft vector quantization, or other techniques capable of generating distinct codes. In some aspects, the autoencoder 401 can map the uncompressed image to codes with compressible (low entropy) distributions. These codes may have cross-entropy close to a predefined or learned prior distribution.

[0080] In some examples, the autoencoder 401 may be implemented using a convolutional architecture. For example, in some cases, the autoencoder 401 may be configured as a two-dimensional convolutional neural network (CNN) such that the autoencoder 401 learns spatial filters for mapping image content to a latent code space. In examples where the system 400 is used to encode video data, the autoencoder 401 may be configured as a three-dimensional CNN such that the autoencoder 401 learns spatio-temporal filters for mapping video to a latent code space. In such a network, the autoencoder 401 may encode the video in terms of a keyframe (e.g., an initial frame that marks the start of a sequence of frames where subsequent frames in the sequence are described as differentials relative to the initial frame in the sequence), warping (or differences) between the keyframe and other frames in the video, and residual factors. In other aspects, the autoencoder 401 may be implemented as a two-dimensional neural network conditioned on previous frames, residual coefficients between frames, and adjustments via stacking channels or including recurrent layers.

[0081] The encoder 402 of the autoencoder 401 may receive as input a first image (designated as image x in FIG. 4) and may map the first image x to a code z in a latent code space. As described above, the encoder 402 may be implemented as a two-dimensional convolutional network such that the latent code space has at each (x,y) location a vector that describes a block of image x centered at that location. The x coordinate may represent a horizontal pixel location within the block of image x, and the y coordinate may represent a vertical pixel location within the block of image x. When encoding video data, the latent code space may have t variables or locations, where the t variables represent a timestamp within the block of video data (in addition to the spatial x and y coordinates). By using the two dimensions of horizontal and vertical pixel location, a vector may describe an image patch within image x.

[0082] The decoder 403 of the autoencoder 401 then decompresses the code z to reconstruct the first image x.

[0083]

number

[0084]

number

[0085]

number

[0086] The code model 404 receives a code z that represents an encoded image or a portion thereof, and generates a probability distribution P(z) over a set of compressed codewords that can be used to represent the code z. In some examples, the code model 404 can include a probabilistic autoregressive generative model. In some cases, the code for which the probability distribution can be generated includes a learned distribution that controls bit allocation based on the arithmetic coder 406. For example, using the arithmetic coder 406, the compressed code for a first code z can be predicted alone, the compressed code for a second code z can be predicted based on the compressed code of the first code z, the compressed code for a third code z can be predicted based on the compressed codes of the first code z and the second code z, and so on. The compressed codes generally represent different spatio-temporal chunks of a given image to be compressed.

[0087] In some aspects, z may be represented as a three-dimensional tensor. The three dimensions of the tensor are the feature channel dimensions, as well as the height and width spatial dimensions (e.g., denoted z (c,w,h) Each symbol z (c,w,h)(representing a code indexed by channel and horizontal and vertical position) may be predicted based on the previous code, which may be a fixed and theoretically arbitrary order of codes. In some examples, the code may be generated by analyzing a given image file from beginning to end, analyzing each block in the image in raster scan order.

[0088] The code model 404 can learn a probability distribution of the input code z using a stochastic autoregressive model. The probability distribution can be conditioned on its previous values ​​(as described above). In some examples, the probability distribution can be represented by the following equation:

[0089]

number

[0090] In some examples, the probability distribution P(z) may be predicted by a fully convolutional neural network of causal convolutions. In some embodiments, the kernels of each layer of the convolutional neural network are calculated by the convolutional network based on the previous value z 0:c,0:w,0:h , and may be masked so as not to need to know other values ​​when computing the probability distribution. In some aspects, the final layer of the convolutional network may include a softmax function that determines the probability that a code in the latent space is applicable across input values ​​(e.g., the likelihood that a given code may be used to compress a given input).

[0091] The arithmetic coder 406 uses the probability distribution P(z) generated by the code model 404 to generate a bitstream 415 (shown in FIG. 4 as “0010011...”) corresponding to a prediction of code z. The prediction of code z can be represented as the code having the highest probability score in the probability distribution P(z) generated over the set of possible codes. In some aspects, the arithmetic coder 406 can output a variable length bitstream based on the accuracy of the prediction of code z and the actual code z generated by the autoencoder 401. For example, the bitstream 415 can correspond to a short codeword when the prediction is accurate, while the bitstream 415 can correspond to a longer codeword as the magnitude of the difference between code z and the prediction of code z increases.

[0092] In some cases, the bitstream 415 may be output by the arithmetic encoder 406 for storage in a compressed image file. The bitstream 415 may also be output for transmission to a requesting device (e.g., receiving device 420, as shown in FIG. 4). In general, the bitstream 415 output by the arithmetic encoder 406 may losslessly encode z such that z can be exactly restored during a decompression process applied to the compressed image file.

[0093] The bitstream 415 generated by the arithmetic coder 406 and transmitted from the transmitting device 410 may be received by the receiving device 420. The transmission between the transmitting device 410 and the receiving device 420 may occur using any of a variety of suitable wired or wireless communication techniques. The communication between the transmitting device 410 and the receiving device 420 may occur directly or through one or more network infrastructure components (e.g., base stations, relay stations, mobile stations, network hubs, routers, and / or other network infrastructure components).

[0094] As shown, the receiving device 420 may include an arithmetic decoder 426, a code model 424, and an autoencoder 421. The autoencoder 421 comprises an encoder 422 and a decoder 423. For a given input, the decoder 423 may generate the same or similar output as the decoder 403. Although the autoencoder 421 is shown as including an encoder 422, the encoder 422 may derive an arithmetic decoder 426 from the code z received from the transmitting device 410.

[0095]

number

[0096] The received bitstream 415 may be input to an arithmetic decoder 426 to obtain one or more codes z from the bitstream. The arithmetic decoder 426 may extract the decompressed codes z based on a probability distribution P(z) generated by the code model 424 over a set of possible codes and information associating each generated code z with the bitstream. Given a received portion of the bitstream and a probabilistic prediction of the next code z, the arithmetic decoder 426 may generate a new code z as encoded by the arithmetic encoder 406 at the transmitting device 410. Using the new code z, the arithmetic decoder 426 may make a probabilistic prediction of successive codes z, read additional portions of the bitstream, and decode successive codes z until the entire received bitstream is decoded. The decompressed codes z may be provided to a decoder 423 in the autoencoder 421. The decoder 423 decompresses the codes z and obtains an approximation of the image content x.

[0097]

number

[0098]

number

[0099]

number

[0100] As mentioned above, the autoencoder 401 and the code model 404 of the transmitting device 410 are shown in FIG. 4 as pre-trained machine learning systems. In some aspects, the autoencoder 401 and the code model 404 may be trained together using image data. For example, the encoder 402 of the autoencoder 401 may receive a first training image n as input and may map the first training image n to a code z in a latent code space. The code model 404 may use a probabilistic autoregressive model (similar to the technique described above) to learn a probability distribution P(z) of the code z. The arithmetic encoder 406 may use the probability distribution P(z) generated by the code model 404 to generate an image bitstream. Using the bitstream from the code model 404 and the probability distribution P(z), the arithmetic encoder 406 may generate a code z and output the code z to the decoder 403 of the autoencoder 401. The decoder 403 may then decompress the code z to reconstruct the first training image n.

[0101]

number

[0102]

number

[0103] In some cases, a backpropagation engine used during training of the transmitting device 410 may perform a backpropagation process to adjust the parameters (e.g., weights, biases, etc.) of the neural network of the autoencoder 401 and the code model 404 based on one or more loss functions. In some cases, the backpropagation process may be based on stochastic gradient descent. Backpropagation may include a forward pass, one or more loss functions, a backward pass, and weight (and / or other parameter) updates. The forward pass, loss function, backward pass, and parameter updates may be performed for one training iteration. This process may be repeated for a certain number of iterations for each set of training data until the weights and / or other parameters of the neural network are precisely tuned.

[0104] For example, the autoencoder 401 may take n and

[0105]

number

[0106]

number

[0107]

number

[0108]

number

[0109]

number

[0110] Based on the determined loss (e.g., a distance vector or other difference value) and using a backpropagation process, the parameters (e.g., weights, biases, etc.) of the neural network system of the autoencoder 401 and the code model 404 can be adjusted (effectively adjusting the mapping between the received image content and the latent code space) to reduce the loss between the input uncompressed image and the compressed image content produced as output by the autoencoder 401.

[0111] The actual output values ​​(reconstructed images) may differ significantly from the input images, so the loss (or error) may be high for the first training images. The objective of training is to minimize the amount of loss for the predicted output. The neural network can perform a backward pass by determining which nodes of the neural network (with corresponding weights) contributed most to the neural network's loss, and the weights (and / or other parameters) can be adjusted so that the loss decreases and is eventually minimized. The derivative of the loss with respect to the weights (denoted as dL / dW, where W is the weight in a particular layer) can be calculated to determine the weights that contributed most to the neural network's loss. For example, the weights can be updated such that they change in the opposite direction of the gradient. The weight update can be done by:

[0112]

number

[0113] The neural network system of autoencoder 401 and code model 404 can continue to be trained in this manner until a desired output is achieved. For example, autoencoder 401 and code model 404 can repeat the backpropagation process to generate the input image n and the reconstructed image

[0114]

number

[0115] The autoencoder 421 and the code model 424 may be trained using techniques similar to those described above for training the autoencoder 401 and the code model 404 of the transmitting device 410. In some cases, the autoencoder 421 and the code model 424 may be trained using the same or a different training data set used to train the autoencoder 401 and the code model 404 of the transmitting device 410.

[0116] 4, the rate-distortion autoencoders (transmitting device 410 and receiving device 420) are trained and run at inference according to bit rate. In some implementations, the rate-distortion autoencoders may be trained at multiple bit rates to enable the generation and output of high-quality reconstructed images or video frames (e.g., with or without artifacts due to distortion to the input image) when various amounts of information are provided to the latent code z.

[0117] In some implementations, the latent code z may be split into at least two chunks z1 and z2. If the RD-AE model is used at a high rate setting, both chunks are transmitted to the device for decoding. If the rate-distortion autoencoder model is used at a low rate setting, only chunk z1 is transmitted and chunk z2 is inferred from z1 on the decoder side. The inference of z2 from z1 may be performed using various techniques, as described in more detail below.

[0118] In some implementations, a set of continuous potentials (e.g., capable of conveying a large amount of information) and corresponding quantized discrete potentials (e.g., containing less information) may be used. After training the RD-AE model, an auxiliary inverse quantization model may be trained. In some cases, when using RD-AE, only the discrete potentials are transmitted, and the auxiliary inverse quantization model is used at the decoder side to infer the continuous potentials from the discrete potentials.

[0119] Although system 400 is shown to include certain components, one skilled in the art will understand that system 400 may include more or less components than those shown in FIG. 4. For example, transmitting device 410 and / or receiving device 420 of system 400 may also include one or more memory devices (e.g., RAM, ROM, cache, etc.), one or more network interfaces (e.g., wired and / or wireless communication interfaces, etc.), one or more display devices, and / or other hardware or processing devices not shown in FIG. 4. The components shown in FIG. 4 and / or other components of system 400 may be implemented using one or more computing or processing components. The one or more computing components may include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), and / or an image signal processor (ISP). Illustrative examples of computing devices and hardware components that may be implemented by system 1600 are described below with respect to FIG. 16.

[0120] The system 400 may be part of or implemented by a single computing device or multiple computing devices. In some examples, the transmitting device 410 may be part of a first device and the receiving device 420 may be part of a second computing device. In some examples, the transmitting device 410 and / or the receiving device 420 may be included as part of an electronic device, such as a telephone system (e.g., a smartphone, a mobile phone, a conferencing system, etc.), a desktop computer, a laptop or notebook computer, a tablet computer, a set-top box, a smart television, a display device, a game console, a video streaming device, a SOC, an Internet of Things (IoT) device, a smart wearable device (e.g., a head mounted display (HMD), smart glasses, etc.), a camera system (e.g., a digital camera, an IP camera, a video camera, a security camera, etc.), or any other suitable electronic device. In some cases, the system 400 may be implemented by the image processing system 100 shown in FIG. 1. In other cases, the system 400 may be implemented by one or more other systems or devices.

[0121] FIG. 5A illustrates an exemplary neural network compression system 500. In some examples, the neural network compression system 500 may include an RD-AE system. In FIG. 5A, the neural network compression system 500 includes an encoder 502, an arithmetic encoder 508, an arithmetic decoder 512, and a decoder 514. In some cases, the encoder 502 and / or the decoder 514 may be the same as the encoder 402 and / or the decoder 403, respectively. In other cases, the encoder 502 and / or the decoder 514 may be different from the encoder 402 and / or the decoder 403, respectively.

[0122] The encoder 502 receives as input an image 501 (image x i ) and image 501 (image x i) in the latent code space 504 (latent z i ), the image 501 may represent a still image and / or a video frame associated with a sequence of frames (e.g., a video). In some cases, the encoder 502 may perform a forward pass to generate a latent code 504. In some examples, the encoder 502 may implement a learnable function. In some cases, the encoder 502 may implement a learnable function parameterized by φ. For example, the encoder 502 may implement a function q φ (z|x). In some examples, the learnable function does not need to be shared with or known by the decoder 514.

[0123] The arithmetic coder 508 generates a latent code 504 (latent z i ) and latent prior information 506. In some examples, the latent prior information 506 may implement a learnable function. In some cases, the latent prior information 506 may implement a learnable function parameterized by ψ. For example, the latent prior information 506 may be a function p ψ (z). The latent prior information 506 can be implemented by using lossless compression to generate the latent code 504 (latent z i ) may be used to convert the pre-defined bitstream 510. The latent a priori information 506 may be shared and / or utilized at both the transmitting side (e.g., the encoder 502 and / or the arithmetic encoder 508) and the receiving side (e.g., the arithmetic decoder 512 and / or the decoder 514).

[0124] The decoder 514 receives the coded bitstream 510 from the arithmetic coder 508 and uses the latent a priori information 506 to extract the latent code 504 (latent z i ) can be decoded. The decoder 514 can decode the latent code 504 (latent z i ) is approximated by the reconstructed image 516 (reconstruction

[0125]

number

[0126] The neural network compression system 500 may be trained to minimize the rate distortion. In some examples, the rate reflects the length of the bitstream 510 (bitstream b) and the distortion reflects the length of the image 501 (image x i ) and reconstructed image 516 (reconstruction

[0127]

number

[0128] In some examples, the loss can be expressed as:

[0129]

number

[0130] The rate for sending potential is Rz (z;ψ). In some cases, the term logp ψ (z) is the rate R z (z; ψ) can be denoted and / or expressed as: In some cases, the loss can be minimized over the entire data set D as follows:

[0131]

number

[0132] 5B illustrates an inference process 530 by the neural network compression system 500. As shown, an encoder 502 can convert an image 501 into a latent code 504. In some examples, the image 501 can represent a still image and / or a video frame associated with a sequence of frames (e.g., a video).

[0133] In some examples, the encoder 502 may include a single forward pass

[0134]

number

[0135]

number

[0136]

number

[0137] The arithmetic decoder 512 receives the bitstream 520 from the arithmetic encoder 508 and generates a latent code 504 (latent z i ) In some examples, the arithmetic decoder 512 can decode the latent code 504 from the bitstream 520 as follows:

[0138]

number

[0139]

number

[0140]

number

[0141] In some examples, the RD-AE system may be trained using a set of training data and further fine-tuned for data points (e.g., image data, video data, audio data) transmitted and decoded by a receiver (e.g., a decoder). For example, during inference, the RD-AE system may be fine-tuned to the image data being transmitted to the receiver. Because compression models are generally large, transmitting parameters associated with the model to the receiver may be very costly in terms of resources, such as network (e.g., bandwidth, etc.), storage, and computational resources. In some cases, the RD-AE system may be fine-tuned on a single data point that is compressed and transmitted to the receiver for decompression. This may limit the amount of information (and associated costs) transmitted to the receiver while maintaining and / or improving the efficiency, performance, and / or quality of the compression / decompression.

[0142] 6 illustrates an example inference process implemented by an example neural network compression system 600 fine-tuned using model prior information. In some examples, the neural network compression system 600 can include an RD-AE system fine-tuned using RDM-AE model prior information. In some cases, the neural network compression system 600 can include an AE model fine-tuned using model prior information.

[0143] In this illustrative example, the neural network compression system 600 includes an encoder 602, an arithmetic encoder 608, an arithmetic decoder 612, a decoder 614, model prior information 616, and latent prior information 606. In some cases, the encoder 602 may be the same as or different from the encoder 402 or the encoder 502, and the decoder 614 may be the same as or different from the decoder 403 or the decoder 514. The arithmetic encoder 608 may be the same as or different from the arithmetic encoder 406 or the arithmetic encoder 508, and the arithmetic decoder 612 may be the same as or different from the arithmetic decoder 426 or the arithmetic decoder 512.

[0144] The neural network compression system 600 generates a latent code 604 (latent z i ) can be generated. The neural network compression system 600 can generate an image 601 (image x i ) and encode the reconstructed image 620 (reconstruction

[0145]

number

[0146] In some examples, the neural network compression system 600 may be fine-tuned using the RDM-AE loss. The neural network compression system 600 may be trained by minimizing the rate-distortion model (RDM) loss. In some examples, at the encoder side, the AE model is trained to estimate the image 601 (image x i ) can be tweaked:

[0147]

number

[0148] The fine-tuned encoder 602 computes an image 601 (image x i ) can be encoded using a single forward pass as follows: i ) can be encoded as:

[0149]

number

[0150] In some cases, the fine-tuned latent prior 606 may be entropy coded under the model prior 616 as follows:

[0151]

number

[0152]

number

[0153]

number

[0154]

number

[0155]

number

[0156]

number

[0157] The decoder 614 converts the latent code 604 (latent z i) is approximated as a reconstructed image 620 (reconstruction

[0158]

number

[0159]

number

[0160] As previously mentioned, the neural network compression system 600 may be trained by minimizing the RDM loss. In some cases, the rate may reflect the length of the bitstream b (e.g., bitstreams 610 and / or 611), and the distortion may reflect the length of the input image 601 (image x i ) and reconstructed image 620 (reconstruction

[0161]

number

[0162] In some examples, the loss of a data point x may be minimized during inference as follows:

[0163]

number

[0164]

number

[0165] term-logp θ (x│z) can denote and / or represent the distortion D(x|z;θ). The term βlogp ψ (z) is the potential R z (z; ψ), the term β log p ω (ψ,θ) is the fine-tuned model update R ψ,θ A rate for transmitting (ψ, θ; ω) can be denoted and / or represented.

[0166] In some cases, the model prior information 616 may reflect the length of the bitrate overhead for transmitting the model updates. In some examples, the bitrate for transmitting the model updates may be described as follows:

[0167]

number

[0168]

number

[0169] In some cases, using an RDM loss function, the neural network compression system 600 performs a model update only if the latency or distortion is reduced by at least the same number of bits.

[0170]

number

[0171]

number

[0172] The neural network compression system 600 may be trained end-to-end. In some cases, RDM loss may be minimized during end-to-end inference. In some instances, a certain amount of computation may be spent once (e.g., fine-tuning the model) and a high compression ratio may be subsequently obtained without extra cost on the receiver side. For example, a content provider may spend a large amount of computation to train and fine-tune the neural network compression system 600 more extensively for a video provided to a large number of receivers. The highly trained and fine-tuned neural network compression system 600 may provide high compression performance for that video. Having spent a large amount of computation, the video provider may store and efficiently provide updated parameters of the model prior to each receiver of the compressed video to decompress the video. The video provider may achieve a significant advantage in compression (as well as reduced network and computational resources) with each transmission of the video, which may significantly outweigh the initial computational cost of training and fine-tuning the model.

[0173] Due to the large number of pixels in videos and images (e.g., high-resolution images), the above-mentioned training / learning and fine-tuning techniques can be very advantageous for video compression and / or high-resolution images. In some cases, the complexity and / or decoder computation can be used as an additional consideration for the overall system design and / or implementation. For example, a very small network that is fast to perform inference can be fine-tuned. As another example, a cost term can be added for receiver complexity, which can force the model to remove and / or have one or more layers removed. In some examples, more complex model priors can be learned using machine learning to achieve even greater gains.

[0174] The model prior design may include various attributes. In some examples, the implemented model prior information provides a high probability of transmitting the model without any updates.

[0175]

number

[0176]

number

[0177]

number

[0178] Despite accelerating research and development, implementation of such machine learning based compression systems exhibits certain drawbacks. For example, neural compression algorithms require large neural networks that can result in increased computation and / or memory requirements. Furthermore, optimal settings or parameters (e.g., weights) used in deep neural networks depend on the training dataset and may not perform well when used on different data. For example, a neural video codec trained on natural scenes may not perform well on animated scenes. Furthermore, a particular neural network may be fine-tuned on an instance-by-instance basis, but sending updated and fine-tuned parameters to the decoder may significantly increase file size and / or bitrate.

[0179] As noted above, systems and techniques are described herein for content compression and decompression using one or more machine learning (ML) systems that can address the problems discussed above. For example, aspects of the present disclosure include a machine learning system (e.g., one or more neural networks, such as a rate-distortion autoencoder (RD-AE) or other neural network) that can be trained to minimize an average rate-distortion loss over a dataset of data points, such as image and / or video data points. In some examples, a set of global model parameters (e.g., weights) can be associated with the trained machine learning system. In some cases, training the machine learning system can include identifying parameters (e.g., a weight vector) associated with each iteration of training. For example, the weight vector can correspond to each training iteration, and the global model parameters can correspond to the weight vector of the trained neural network.

[0180] In some examples, training of the machine learning system may include determining a subspace or manifold of model parameters having a lower dimensionality than the full parameter space. In some aspects, the subspace or manifold of model parameters includes a portion of the weight vector associated with each iteration of training. In some cases, the subspace or manifold of model parameters may be determined using principal component analysis (PCA). For example, PCA may be used to identify one or more directions and / or trajectories in the full parameter space in which the model parameters performed well during training of the neural network (e.g., where the loss function fell below a threshold). In some aspects, sparse PCA may be used to reduce the size of the subspace of model parameters. In some examples, the subspace or manifold of model parameters may be shared with a neural network configured to decode the encoded data.

[0181] In some examples, the machine learning system can be fine-tuned (e.g., trained, adapted) to input data that is compressed and transmitted to a receiving device including a decoder (which may also include the machine learning system). In some aspects, the fine-tuning of the machine learning system can be performed using a subspace or manifold of model parameters. For example, fine-tuning a neural network can include selecting a set of updated model parameters that correspond to a weight vector that is part of the subspace or manifold of model parameters (e.g., selecting an optimal weight vector for an instance). In some cases, the set of updated parameters (e.g., weight vectors selected during fine-tuning) can be associated with one or more subspace coordinates. In one example, the one or more subspace coordinates can be relative to a set of global parameters (e.g., the subspace coordinates can correspond to a trajectory relative to the set of global parameters).

[0182] In some aspects, the updated set of parameters can be used to encode the input data. In some examples, the machine learning system can further include an arithmetic coder (e.g., including an arithmetic coder, an arithmetic decoder, or a hybrid arithmetic coder-decoder). The arithmetic coder (e.g., an arithmetic coder or a hybrid arithmetic coder-decoder) can generate a bitstream including a compressed version of the input data. In some cases, the bitstream can also include a compressed version of one or more subspace coordinates corresponding to the updated set of model parameters. In some cases, a receiving device can receive the bitstream. A decoder of the receiving device can use the one or more subspace coordinates to determine updated model parameters of the neural network. A machine learning system of the decoder (e.g., a neural network such as an RD-AE or other neural network) can use the updated model parameters to decode the compressed input data.

[0183] In some aspects, the systems and techniques disclosed herein may be used to improve compression performance by adapting a neural network to each data instance. In some examples, the systems and techniques disclosed herein may reduce the bit rate and / or file size for transmitting network parameter updates (e.g., fine-tuned neural networks) to a decoder by selecting fine-tuned weight vectors from a low-dimensional subspace.

[0184] FIG. 7 illustrates an instance adaptation process implemented by an exemplary neural network compression system 700. In some aspects, the neural network compression system 700 may include an encoder 710 and a decoder 714 that may be configured to perform compression and / or decompression of image, video, and / or audio data. In some cases, the encoder 710 and the decoder 714 may be part of the same device. In other cases, the encoder 710 and the decoder 714 may be part of different devices. In some examples, the encoder 710 and / or the decoder 714 may include, determine, or otherwise access one or more aspects of the shared knowledge 706 associated with the neural network compression system 700. In some cases, the shared knowledge 706 may include a network architecture (e.g., a deep learning neural network architecture), global model parameters (e.g., network weights), and / or subspace definitions (described further below).

[0185] In some examples, the neural network compression system 700 may be trained using one or more training data sets, which may include images, video, audio, etc. (e.g., training data 702). For example, network training 704 may be implemented using the training data 702 to determine parameters (e.g., weights, biases, etc.) of the neural network compression system 700. In some cases, network training 704 may include an iterative flow of the training data 702 through the neural network compression system 700 (e.g., using backpropagation training techniques). In some aspects, the parameters (e.g., weights, biases, etc.) of the trained neural network compression system 700 may be referred to as global model parameters.

[0186] In some aspects, network training 704 may be used to generate, construct, determine, and / or define a subspace or manifold of network parameters. In some cases, the subspace or manifold of network parameters may be determined based on a set of model parameters (e.g., weights) associated with network training 704. For example, a weight vector (e.g., a set of network parameters) may be determined during each iteration of network training 704. In some examples, a weight vector associated with a threshold level of performance during network training 704 may be used to define the subspace or manifold of network parameters. In one illustrative example, the threshold level of performance may be determined based on a loss function associated with a data rate and / or a distortion metric (e.g., rate-distortion model rate (RDM) loss). In some aspects, the subspace or manifold of network parameters may be defined based on "N" of the best performing weight vectors during network training 704 (e.g., the 100 best performing weight vectors).

[0187] In one example, the subspace or manifold of network parameters may be represented as a matrix M and may be defined according to the relationship given by the following equation (1), where θ corresponds to optimized parameters of the compression network for a given instance (e.g., video), and θ global where m corresponds to global model parameters (e.g., weights, biases, etc. of a trained neural network that may be stored in the sending and / or receiving devices), M corresponds to a matrix defining the subspace, and δ corresponds to a vector of subspace coordinates (e.g., updates that may be determined for each instance). θ=θ global +Mδ (1)

[0188] In some aspects, the subspace M of the network parameters may be determined using a machine learning method. For example, a meta-learning machine learning algorithm (e.g., model-independent meta-learning (MAML)) may be implemented to determine the subspace M. In some aspects, MAML may be used to train the neural network compression system 700 (e.g., a global model) with a definition of the subspace M (e.g., a function that can map the transmitted coordinates δ to the network parameter space).

[0189] FIG. 10 illustrates an example process 1000 for training a neural network compression system (e.g., system 700) and determining a subspace of network parameters. At block 1002, the process 1000 may include initializing a machine learning algorithm. In some aspects, the machine learning algorithm may correspond to a model-independent meta-learning (MAML) algorithm. In some cases, the initialization of the machine learning algorithm may include defining and / or initializing one or more parameters, constraints, variables, etc. For example, the initialization of the machine learning algorithm may include defining a training data set ρ(x) having x instances. In some cases, the initialization of the machine learning algorithm may include defining a compression model f with weights θ. θ In some examples, the initialization of the machine learning algorithm may include defining a hyper-network θ=g with instance parameters δ and weights ψ. ψ In some aspects, the initialization of the machine learning algorithm can include defining a rate-distortion loss L(x, δ, ψ), which can include a model update rate (e.g., a rate-distortion model loss). In some cases, the initialization of the machine learning algorithm can include initialization of weights (e.g., ψ←ψ), a batch size N of training data, learning rates α, β, and / or a number of optimizer steps n.

[0190] At block 1004, the process 1000 may include zeroing the gradient. In some aspects, the zeroing of the gradient may be expressed as Δψ←ψ0. At block 1006, the method 1000 may include sampling an instance (e.g., input data). In some cases, sampling an instance may be expressed as: x i ~ρ(x);δ i ← 0. At block 1008, the process 1000 may include performing instance refinement. In some aspects, the instance refinement may be i ←δ i -α∇ δ L(x i , δ i ,ψ). At block 1010, the process 1000 may determine whether k is less than or equal to n optimizer steps. If so, the process 1000 may increment the value of index k and return to block 1008 to repeat the instance refinement. If k is greater than n, the process may proceed to block 1012 and accumulate hypernetwork gradients. In some examples, accumulating hypernetwork gradients may be expressed as: Δψ←Δψ−β∇ ψ L(x i ;δ i ,ψ).

[0191] At block 1014, the process 1000 may determine whether i is less than or equal to the N batch size. If so, the process 1000 may increment the value of index i and return to block 1006 and repeat the operations of blocks 1006 to 1012. If i is greater than N, the process may proceed to block 1016 and perform a hyper-network update. In some aspects, performing a hyper-network update may be represented as ψ←ψ+Δψ. At block 1018, the process 1000 may determine whether the model has converged (e.g., based on an error bound or loss function). If the model has not converged, the process 1000 may return to block 1004 (e.g., zero output gradient) and repeat the operations of blocks 1004 to 1016. If the model has converged, the process 1000 may proceed to block 1020, where the process 1000 may end.

[0192] Referring back to FIG. 7 , in some examples, network training 704 can include a principal component analysis (PCA) algorithm that can be used to determine a subspace M of network parameters. For example, PCA can be used to determine one or more directions and / or trajectories in the total parameter space in which the model parameters performed well during network training 704 (e.g., based on a loss function). In some examples, PCA can be used to reduce the dimensionality of the parameter space into principal components. In some aspects, PCA can be used to determine the subspace M by training a compressed model for k steps and saving the values ​​of the n network parameters after each step. In some examples, the corresponding network parameters can be arranged in a k×n matrix, which can be referred to as A. In some cases, singular value decomposition can be applied to matrix A. In some aspects, the first m eigenvectors can be obtained according to singular value decomposition (e.g., sorted by reducing eigenvalues) and arranged in a k×m matrix. In some examples, the k×m matrix can correspond to matrix M (e.g., as used in Equation (1)). In some cases, the matrix components M ij may correspond to the i-th component of the j-th eigenvector of matrix A.

[0193] In some embodiments, sparse PCA can be used to reduce the size of a subspace M of network parameters (e.g., by applying sparsity constraints to input variables). In one exemplary example, sparse PCA can be implemented by first applying PCA as described above to determine a subspace matrix M. In some embodiments, sparse PCA can include reducing the size of M by maintaining that p components have the largest absolute values and setting all other components to a value of zero. Optionally, p can be selected such that p < m. In some examples, sparse PCA can be used to determine a k×m sized matrix having k×p non-zero entries. In some embodiments, the memory requirements for M can be substantially reduced by storing only the non-zero entries determined using sparse PCA.

[0194] FIG. 8 is a graph 800 showing an example of a one-dimensional subspace 806. As shown, graph 800 includes a number of training parameter points 804. In some embodiments, each of the training parameter points 804 can correspond to a weight vector (e.g., a set of network parameters) used or accessed during network training 704. Graph 800 also includes an optimal parameter point 802 that can correspond to a set of global model parameters of the fully trained neural network compression system 700.

[0195] As mentioned above, in some examples, PCA can be used to process the training parameter points 804 and determine the subspace 806. For example, during network training 704 of the global model, PCA can be used to find the major principal components of the optimizer trajectory (e.g., based on weight vectors corresponding to training iterations). In one example, the data set on which PCA is performed is constructed by looking at how the model evolves over the course of training. For example, for each training iteration, a snapshot of the model's parameters can be determined. Given a certain number of parameter snapshots (e.g., 1000 sets of parameters, 2000 sets of parameters, etc.), there is a number of data points on which PCA can be performed to determine the most important directions (corresponding to the major principal components) during training. In some aspects, the major principal components of the optimizer trajectory can be used to define the subspace 806. In some cases, the subspace 806 can correspond to a matrix (e.g., subspace matrix M) that parameterizes the directions from the optimal parameter points 802. The subspace 806 can be used to constrain the values ​​to which the neural network can be updated (e.g., the parameters of the neural network can only be updated to values ​​included in the subspace). By constraining the neural network parameter updates to the subspace 806, the rate is significantly reduced (e.g., because only the changes along the subspace need to be transmitted to the receiver, such as by transmitting a set of subspace coordinates as described below) with minimal impact on distortion, thus improving the overall coding performance of the system.

[0196] In some cases, the subspace 806 may be defined during and / or after network training 704. For example, manifold-aware training of the global model may be implemented to define the subspace 806 during training of the neural network compression system 700.

[0197] Although subspace 806 is shown as a one-dimensional subspace, one skilled in the art will recognize that the present techniques may be used to define subspaces having any number of dimensions. In one illustrative example, neural network compression system 700 may be associated with a parameter space that includes millions of weights, and subspace 806 may have thousands of dimensions.

[0198] 7, the neural network compression system 700 may include an encoder 710. In some examples, the encoder 710 may be configured to receive, process, compress, and / or encode input data 708. In some cases, the input data 708 may include image data, video data, and / or audio data. In some aspects, the encoder 710 may fine-tune global model parameters based on the input data 708 by selecting and using a modified set of parameters from the subspace.

[0199] In some cases, the fine-tuning of the global model parameters may be based on the bit size (e.g., rate cost) of the compressed version of the input data and / or the distortion between the input data and the reconstructed data generated from the compressed version of the input data. In one illustrative example, the encoder 710 may iteratively encode the input data 708 using a set of parameters that is part of a subspace or manifold of network parameters defined during network training 704. In some aspects, the encoder 710 may select a modified set of parameters (e.g., from the subspace of network parameters) that optimizes a loss function.

[0200] In some examples, the encoder 710 may determine a model update that corresponds to a difference between the global model parameters and the set of modified parameters. In some aspects, the model update may correspond to a vector, a set of coordinates, a matrix, an equation, and / or any other suitable representation that can indicate one or more shifts in the global model parameters.

[0201] FIG. 9 is a graph 900 illustrating model updates 906 within a subspace 902. In some cases, the subspace 902 corresponds to a subspace 806 defined during and / or after network training 704. In some aspects, the encoder 710 may be configured to operate using a set of global model parameters 904. In some examples, the encoder 710 may fine-tune the set of global model parameters based on the input data 708, which is the particular instance being encoded. In some aspects, the fine-tuning of the set of global model parameters may include selecting a modified set of parameters 908 from within the subspace 902. In some cases, the modified set of parameters 908 from within the subspace 902 may be selected based on a loss function. In one illustrative example, the loss function may include a combination of the bit rate it takes to transmit all the information being output and a distortion that indicates the quality of the information. In some aspects, the loss function may be represented by the relationship given by the following equation (2), where the first term corresponds to the distortion measured as the mean squared error between the original data x and the reconstructed data x′, the second term corresponds to the rate required to transmit the latent code z weighted by the hyperparameter β, and the last term corresponds to the rate required to transmit the model update vector δ weighted by the same coefficient β. L=MSE(x,x')-βlog p(z)-βlog p(δ) (2)

[0202] In some aspects, the encoder 710 may determine the model update 906 by determining a difference between the global model parameters 904 and a set of modified parameters 908. In some cases, the model update 906 may include a set of subspace coordinates. For example, the set of subspace coordinates may indicate a delta between the subspace 902 and the model update 906. The decoder 714 may use the set of subspace coordinates to determine the modified set of parameters 908. For example, since the decoder already has a definition of the subspace 902, the decoder may use the set of subspace coordinates to reference the subspace 902 (e.g., a matrix that defines the subspace) and determine new parameters (e.g., weights, biases, etc.) to use to decode the data instances corresponding to the input data 708. In some examples, the model update 906 (e.g., a set of subspace coordinates) may correspond to or reference a matrix of values ​​that define the subspace 902 that may be used by the decoder 714 to determine the modified set of parameters 908. In one illustrative example, the revised parameter set 908 may be determined as follows: updated parameter points (e.g., 908) = (global parameter points (e.g., 904) + subspace matrices (e.g., 902)). * Subspace update (e.g., 906).

[0203] In one illustrative example, the three-dimensional parameter space can be represented by a matrix M and the subspace coordinates can be represented by δ, as follows:

[0204]

number

[0205] In some examples, the columns of the matrix M can indicate subspace directions (e.g., the first column can point diagonally between the first and second network parameters). In some aspects, updates in which the first component δ is non-zero can modify the values ​​of the first and second neural network parameters. In some cases, the second column can be used to represent changes to the second and third network parameters. In some cases, the model update δ above can correspond to a change of +0.5 for the first network parameter, 0 for the second network parameter, and -0.5 for the third network parameter.

[0206] 7, in some cases, the encoder 710 can encode the input data 708 into latent variables using an optimized network (e.g., using a modified set of parameters from a subspace of network parameters). In some examples, the neural network compression system 700 can also include a probabilistic model (e.g., latent prior information 606) that can losslessly compress the latent variables. In some cases, the probabilistic model can generate a probability distribution over a set of latent variables that can represent the encoded data based on the input data 708.

[0207] In some aspects, the encoder 710 can encode the model updates (e.g., model updates 906, such as a set of subspace coordinates and / or a matrix of values ​​described above) into latent variables (e.g., under model prior information). In some examples, the neural network compression system 700 can include an arithmetic encoder (e.g., arithmetic encoder 608) that can entropy encode the compressed model updates and / or compressed latent variables and generate one or more bitstreams (e.g., bitstream 712).

[0208] In some aspects, the bitstream 712 may be sent or transmitted to the decoder 714. In some examples, the decoder 714 may receive the bitstream 712 and may decompress the bitstream 712 to obtain latent variables and / or model updates (e.g., a set of subspace coordinates, a matrix of values, etc.). In some cases, the decoder 714 may determine a modified set of parameters based on the model updates and the subspace definitions (e.g., determined by the decoder 714 from the shared knowledge 706 received from the encoder 710). For example, the decoder 714 may determine a modified set of parameters by applying the model updates to the global model parameters. With reference to FIG. 9, the decoder 714 may determine a modified parameter set 908 by applying the model updates 906 to the global model parameters 904. For example, the decoder 714 may determine updated parameters for the global model parameters 904: updated parameter points (e.g., 908)=(global parameter points (e.g., 904)+subspace matrix (e.g., 902)) * Subspace update (e.g., 906).

[0209] In some examples, the decoder 714 can use the modified set of parameters (e.g., updated weights from the parameter subspace) to decode latent variables corresponding to the input data 708. In some aspects, the decoder 714 can use the modified set of parameters to generate a reconstructed image 716 (reconstructed

[0210]

number

[0211] 11 illustrates an example process 1100 for performing instance adaptive neural compression. At block 1102, the process 1100 may include training a neural network to determine global model parameters. For example, the neural network compression system 700 may be trained using training data 702 to determine global model parameters (e.g., network weights) that may be included as part of the shared knowledge 706.

[0212] At block 1104, the process 1100 may include defining a subspace of neural network parameters. In some aspects, the subspace may be based on weight vectors implemented during a training phase. For example, the training parameter points 804 may be used to define the subspace 806. In some cases, principal component analysis (PCA) and / or sparse PCA may be used to determine the subspace. For example, PCA may be used to determine one or more directions and / or trajectories in the total parameter space in which model parameters performed well during training of the neural network.

[0213] At block 1106, the process 1100 may include receiving input data for compression by the neural network compression system. For example, the input data 708 (e.g., image data, video data, audio data) may be received by the decoder 714. At block 1108, the process 1100 may include fine-tuning neural network parameters in the subspace using the input data. In some aspects, the encoder 710 may use one or more weight vectors in the subspace to determine a modified set of parameters (e.g., fine-tuned parameters). In some examples, the modified set of parameters may be selected based on the performance of the encoder as measured by a loss function (e.g., rate and / or distortion).

[0214] At block 1110, the process 1100 may include compressing the input data using the fine-tuned neural network (e.g., using a modified set of parameters from within the subspace). At block 1112, the process 1100 may include determining parameter updates based on the global parameter points and the fine-tuned parameters. With reference to FIG. 9, the parameter updates 906 may be determined based on a shift from the global parameters 904 to the fine-tuned parameters 908 within the subspace 902.

[0215] At block 1114, the process 1100 may include transmitting the compressed input data and the parameter updates to a receiver. For example, the encoder 710 may transmit the compressed latent variables and the compressed subspace coordinates to a decoder 714. In some examples, an arithmetic encoder (e.g., the arithmetic encoder 608) may entropy encode the compressed subspace coordinates and / or the compressed latent variables to generate one or more bitstreams (e.g., the bitstream 712).

[0216] 12 illustrates an example process 1200 for performing instance adaptive neural decompression. At block 1202, the process 1200 may include receiving compressed input data and neural network parameter updates. For example, the decoder 714 may receive a bitstream 712 that may include compressed latent variables and compressed subspace coordinates.

[0217] At block 1204, the process 1200 may include determining updated neural network parameters based on the parameter updates in the subspace. In some aspects, the decoder 714 may determine updated neural network parameters (e.g., fine-tuned parameters used to encode input data) by applying the parameter updates (e.g., subspace coordinates) to global model parameters. For example, the network updates 906 may be used to determine updated neural network parameters 908 by shifting the global model parameters 904 within the subspace 902.

[0218] At block 1206, the process 1200 may include decompressing the input data using the updated network parameters. For example, the updated neural network parameters 908 may be used to decompress the compressed latent variables corresponding to the input data 708. In some aspects, the decoder 714 may generate the reconstructed image 716 using the updated network parameters.

[0219] 13 illustrates an example process 1300 for performing instance adaptive neural compression. At block 1302, the process 1300 may include receiving input data for compression by a neural network compression system. In some aspects, the neural network compression system may correspond to the neural network compression system 600 and / or the neural network compression system 700. In some cases, the input data may include image data, video data, and / or audio data (e.g., input data 708).

[0220] At block 1304, the process 1300 may include determining a set of updated model parameters of the neural network compression system based on the input data, the set of updated model parameters being selected from a subspace of model parameters. In some examples, the subspace of model parameters includes a portion of a plurality of weight vectors. For example, the subspace of model parameters 806 may include a portion (e.g., weight vectors) of the training parameter points 804. In some aspects, each of the plurality of weight vectors may correspond to a weight vector used during training of the neural network compression system. For example, each of the training parameter points 804 may correspond to a weight vector (e.g., a set of training parameters) used or visited during network training 704.

[0221] In some cases, a portion of the weight vectors may be determined using at least one of principal component analysis (PCA), sparse principal component analysis (SPCA), and model-independent meta-learning (MAML). For example, PCA may be used to process the training parameter points 804 and determine the subspace 806. In some cases, SPCA may be used to reduce the size of the subspace 806 by retaining the component with the largest absolute value and setting all other components (e.g., the subspace matrix M) to zero. In some aspects, a portion of the weight vectors may be determined using a MAML algorithm according to the operations of the process 1000.

[0222] In some examples, the process 1300 can include generating a set of global model parameters based on a training data set used to train the neural network compression system, where one or more subspace coordinates corresponding to the set of updated model parameters are for the set of global model parameters. In some cases, the training data set can correspond to the training data 702. In some cases, the training data 702 can be used to perform network training 704 and determine optimal parameter points 802 (e.g., a set of global model parameters). In some examples, the updated parameter points 908 are for the global parameter points 904 (e.g., based on the subspace matrices 902 and the subspace updates 906).

[0223] In some examples, the process 1300 may include adjusting a set of global model parameters using the input data, where the set of global model parameters is adjusted based on a bit size of a compressed version of the input data and a distortion between the input data and reconstruction data generated from the compressed version of the input data. In some aspects, the set of global model parameters may correspond to global parameter points 904 that may be adjusted based on the input 708. For example, the encoder 710 may iteratively encode the input data 708 using a set of parameters that is part of a subspace (e.g., the subspace 902). In some examples, adjusting the set of global parameters 904 may include selecting a modified set of parameters 908 based on a loss function (e.g., the loss function of Equation (2)).

[0224] At block 1306, the process 1300 may include generating at least one bitstream including a compressed version of the input data and a compressed version of one or more subspace coordinates corresponding to the set of updated model parameters. For example, an arithmetic coder (e.g., arithmetic coder 608) may be used to entropy code the compressed model updates (e.g., subspace updates 906) and the compressed latent variables into the bitstream 712. In some cases, the at least one bitstream may include multiple encoded quantization parameters used to quantize the one or more subspace coordinates. For example, the bitstream 712 may include quantization parameters used to quantize the subspace updates 906. In some aspects, generating the at least one bitstream may include entropy coding the one or more subspace coordinates using model prior information. For example, the model prior information 616 may be used by the arithmetic coder 608 to entropy code the one or more subspace coordinates (e.g., subspace updates 906).

[0225] At block 1308, the process 1300 may include outputting at least one bitstream for transmission to a receiver. For example, the bitstream 712 may be output for transmission to a decoder 714. In some examples, the process 1300 may include sending a subspace of model parameters to a receiver. For example, the subspace 808 may be encoded as part of the bitstream 712 and transmitted to the decoder 714.

[0226] 14 illustrates an example process 1400 for performing instance-adaptive neural decompression. At block 1402, the process 1400 may include receiving a compressed version of input data and a compressed version of one or more subspace coordinates. For example, the decoder 714 may receive a bitstream 712 that may include a compressed version of the input 708 and a compressed version of the model updates 906.

[0227] At block 1404, process 1400 may include determining a set of updated model parameters of the neural network compression system based on the one or more subspace coordinates. For example, the set of updated model parameters may correspond to updated parameter points 908 determined based on updated subspace 906. In some aspects, determining the set of updated model parameters may include determining a shift from a global model parameter set based on the subspace of model parameters and the one or more subspace coordinates. In some examples, the set of updated model parameters may correspond to global parameter points 904 + (subspace matrix 902). * The subspace update 906 may correspond to updated parameter points 908 .

[0228] In some aspects, the subspace of model parameters can include a portion of a plurality of weight vectors, each of which corresponds to a weight vector used during training of the neural network compression system. For example, the subspace 806 can include a portion of the training parameter points 804, which can correspond to training parameter points used during training of the neural network compression system 700.

[0229] At block 1406, the process 1400 may include processing the input data using the updated set of model parameters to generate a reconstructed version of the input data. For example, the input data 708 (e.g., compressed into a bitstream 712) may be processed using the updated parameter points 908 to generate a reconstructed image 716.

[0230] In some examples, the process 1400 may include receiving a subspace of model parameters. For example, the subspace 902 may be encoded as part of the bitstream 712 and transmitted to the decoder 714.

[0231] In some examples, the processes described herein (e.g., process 1000, process 1100, process 1200, process 1300, process 1400, and / or other processes described herein) may be performed by a computing device or apparatus. In one example, process 1300 and / or 1400 may be performed by transmitting device 410 of system 400 illustrated in FIG. 4. In another example, process 1300 and / or 1400 may be performed by a computing device such as system 400 illustrated in FIG. 4 or computing system 1500 illustrated in FIG.

[0232] The computing device may include any suitable device, such as a mobile device (e.g., a mobile phone), a desktop computing device, a tablet computing device, a wearable device (e.g., a VR headset, an AR headset, AR glasses, a network-connected watch or smartwatch, or other wearable device), a server computer, an autonomous vehicle or a computing device of an autonomous vehicle, a robotic device, a television, and / or any other computing device having resource capabilities to perform the processes described herein, including process 1100, process 1200, and / or other processes described herein. In some cases, a computing device or apparatus may include various components, such as one or more input devices, one or more output devices, one or more processors, one or more microprocessors, one or more microcomputers, one or more cameras, one or more sensors, and / or other components configured to perform steps of the processes described herein. In some examples, the computing device may include a display, a network interface configured to communicate and / or receive data, any combination thereof, and / or other components. The network interface may be configured to communicate and / or receive Internet Protocol (IP)-based data or other types of data.

[0233] Components of a computing device may be implemented in circuitry. For example, components may include and / or be implemented using electronic circuitry or other electronic hardware, which may include one or more programmable electronic circuits (e.g., a microprocessor, a graphics processing unit (GPU), a digital signal processor (DSP), a central processing unit (CPU), and / or other suitable electronic circuitry), and / or may include and / or be implemented using computer software, firmware, or any combination thereof, to perform various operations described herein.

[0234] Processes 1300 and 1400 are illustrated as logical flow diagrams, whose operations represent sequences of operations that may be implemented in hardware, computer instructions, or a combination thereof. In the context of computer instructions, the operations represent computer-executable instructions stored on one or more computer-readable storage media that, when executed by one or more processors, perform the described operations. Generally, computer-executable instructions include routines, programs, objects, components, data structures, etc. that perform particular functions or implement particular data types. The order in which the operations are described is not intended to be construed as a limitation, and any number of the described operations can be combined in any order and / or in parallel to implement a process.

[0235] Additionally, processes 1300, 1400, and / or other processes described herein may be executed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that collectively execute on one or more processors, by hardware, or a combination thereof. As mentioned above, the code may be stored on a computer-readable or machine-readable storage medium, for example, in the form of a computer program comprising a plurality of instructions executable by one or more processors. The computer-readable or machine-readable storage medium may be non-transitory.

[0236] Fig. 15 illustrates an example of a system for implementing certain aspects of the present technology. In particular, Fig. 15 illustrates an example of a computing system 1500, which may be any computing device, such as an internal computing system, a remote computing system, a camera, or any components thereof, in which the components of the system communicate with each other using a connection 1505. The connection 1505 may be a physical connection using a bus, or a direct connection to a processor 1510, such as in a chipset architecture. The connection 1505 may also be a virtual connection, a network connection, or a logical connection.

[0237] In some embodiments, computing system 1500 is a distributed system in which the functionality described in this disclosure may be distributed across a data center, multiple data centers, a peer network, etc. In some embodiments, one or more of the system components described represent many components, each performing some or all of the functionality that is the subject of the component description. In some embodiments, the components may be physical or virtual devices.

[0238] The exemplary system 1500 includes at least one processing unit (CPU or processor) 1510 and connections 1505 coupling various system components to the processor 1510, including system memory 1515, such as read only memory (ROM) 1520 and random access memory (RAM) 1525. The computing system 1500 may include a cache 1512 of high speed memory directly connected to the processor 1510, in close proximity to the processor, or integrated as part of the processor.

[0239] The processor 1510 may include any general-purpose processor, as well as hardware or software services, such as services 1532, 1534, and 1536 stored in a storage device 1530, configured to control the processor 1510, and special-purpose processors where software instructions are embedded in the actual processor design. The processor 1510 may essentially be a completely self-contained computing system including multiple cores or processors, buses, memory controllers, caches, etc. Multi-core processors may be symmetric or asymmetric.

[0240] To enable user interaction, computing system 1500 includes input devices 1545, which can represent any number of input mechanisms, such as a microphone for speech, a touch-sensitive screen for gesture or graphical input, a keyboard, a mouse, motion input, speech, etc. Computing system 1500 can also include output devices 1535, which can be one or more of several output mechanisms. In some cases, a multi-modal system can enable a user to provide multiple types of input / output to communicate with computing system 1500. Computing system 1500 can include a communication interface 1540, which can generally govern and manage user input and system output.

[0241] The communications interface may be an audio jack / plug, a microphone jack / plug, a Universal Serial Bus (USB) port / plug, an Apple® Lightning® port / plug, an Ethernet port / plug, a fiber optic port / plug, a proprietary wired port / plug, BLUETOOTH® wireless signal transmission, BLUETOOTH® Low Energy (BLE) wireless signal transmission, IBEACON® wireless signal transmission, Radio Frequency Identification (RFID) wireless signal transmission, Near Field Communication (NFC) wireless signal transmission, Dedicated Short Range Communications (DSRC) wireless signal transmission, 802.11 The device may perform or facilitate the reception and / or transmission of wired or wireless communications using wired and / or wireless transceivers, including those utilizing Wi-Fi wireless signal transmission, wireless local area network (WLAN) signal transmission, visible light communication (VLC), Worldwide Interoperability for Microwave Access (WiMAX), infrared (IR) communication wireless signal transmission, public switched telephone network (PSTN) signal transmission, integrated services digital network (ISDN) signal transmission, 3G / 4G / 5G / LTE cellular data network wireless signal transmission, ad-hoc network signal transmission, radio wave signal transmission, microwave signal transmission, infrared signal transmission, visible light signal transmission, ultraviolet light signal transmission, wireless signal transmission along the electromagnetic spectrum, or any combination thereof.

[0242] The communication interface 1540 may also include one or more Global Navigation Satellite System (GNSS) receivers or transceivers used to determine a position of the computing system 1500 based on reception of one or more signals from one or more satellites associated with one or more GNSS systems. GNSS systems include, but are not limited to, the United States Global Positioning System (GPS), the Russian Global Navigation Satellite System (GLONASS), the Chinese BeiDou Navigation Satellite System (BDS), and the European Galileo GNSS. There is no constraint to operate on any particular hardware configuration, and therefore the basic features herein may be easily substituted for improved hardware or firmware configurations as they are developed.

[0243] The storage device 1530 may be a non-volatile and / or non-transitory and / or computer readable memory device, such as a magnetic cassette, a flash memory card, a solid state memory device, a digital versatile disk, a cartridge, a floppy disk, a flexible disk, a hard disk, a magnetic tape, a magnetic strip / stripe, any other magnetic storage medium, a flash memory, a memory storage, any other solid state memory, a compact disc read only memory (CD-ROM) optical disk, a rewritable compact disc (CD) optical disk, a digital video disk (DVD) optical disk, a blu-ray disc (BDD) optical disk, a holographic optical disk, another optical medium, a secure digital (SD) card, a micro secure digital (microSD) card, a memory stick card, a smart card chip, an EMV chip, a subscriber identity module (SIM) card, a mini / micro / nano / pico SIM card, another integrated circuit (ICC), circuit, IC chip / card, random access memory (RAM), static RAM (SRAM), dynamic RAM (DRAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash EPROM, cache memory (L1 / L2 / L3 / L4 / L5 / L#), resistive random-access memory (RRAM),The memory may be a hard disk or other type of computer readable medium capable of storing data that is accessible by a computer, such as a memory (RRAM / ReRAM), phase change memory (PCM), spin transfer torque RAM (STT-RAM), another memory chip or cartridge, and / or a combination thereof.

[0244] Storage device 1530 may include software services, servers, services, etc., that cause the system to perform functions when code defining such software is executed by processor 1510. In some embodiments, hardware services that perform a particular function may include software components stored in a computer readable medium in association with necessary hardware components, such as processor 1510, connections 1505, output devices 1535, etc., to perform the function. The term "computer readable medium" includes, but is not limited to, portable or non-portable storage devices, optical storage devices, and various other media that may store, store, or convey instruction(s) and / or data. Computer readable media may include non-transitory media on which data is stored and does not include carrier waves and / or transitory electronic signals propagating wirelessly or over wired connections. Examples of non-transitory media may include, but are not limited to, magnetic disks or tapes, optical storage media such as compact disks (CDs) or digital versatile disks (DVDs), flash memory, memory, or memory devices. A computer-readable medium may have code and / or machine-executable instructions stored on it, which may represent a procedure, a function, a subprogram, a program, a routine, a subroutine, a module, a software package, a class, or any combination of instructions, data structures, or program statements. A code segment may be coupled to another code segment or a hardware circuit by passing and / or receiving information, data, arguments, parameters, or memory contents. Information, arguments, parameters, data, etc. may be passed, forwarded, or transmitted via any suitable means including memory sharing, message passing, token passing, network transmission, etc.

[0245] In some embodiments, computer readable storage devices, media, and memories may include cables or wireless signals containing bit streams, etc. However, when mentioned, non-transitory computer readable storage media specifically excludes media such as energy, carrier signals, electromagnetic waves, and the signals themselves.

[0246] Specific details are provided in the above description to provide a thorough understanding of the embodiments and examples provided herein. However, it will be understood by those skilled in the art that the embodiments may be practiced without these specific details. For clarity of explanation, in some cases, the present technology may be presented as including individual functional blocks comprising devices, device components, and steps or routines in a method embodied in software or a combination of hardware and software. Additional components may be used other than the components shown in the figures and / or described herein. For example, circuits, systems, networks, processes, and other components may be shown as components in block diagram form so as not to obscure the embodiments in unnecessary detail. In other cases, well-known circuits, processes, algorithms, structures, and techniques may be shown without unnecessary detail so as to avoid obscuring the embodiments.

[0247] Individual embodiments may be described above as a process or method that is depicted as a flowchart, a flow diagram, a data flow diagram, a structure diagram, or a block diagram. Although the flowcharts may describe operations as a sequential process, many of the operations may be performed in parallel or simultaneously. In addition, the order of steps may be rearranged. A process terminates when its operations are completed, but may have additional steps not included in the diagrams. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc. When a process corresponds to a function, its termination may correspond to a return of the function to the calling function or to the main function.

[0248] The processes and methods according to the examples described above may be implemented using computer-executable instructions stored on or otherwise available from a computer-readable medium. Such instructions may include, for example, instructions and data that cause a general-purpose computer, a special-purpose computer, or a processing device to perform a certain function or group of functions, or otherwise configure a general-purpose computer, a special-purpose computer, or a processing device to perform a certain function or group of functions. Portions of the computer resources used may be accessible over a network. The computer-executable instructions may be, for example, binary, intermediate format instructions such as assembly language, firmware, source code, etc. Examples of computer-readable media that may be used to store instructions, information used, and / or information created during the methods according to the described examples include magnetic or optical disks, flash memory, USB devices provided with non-volatile memory, network-attached storage devices, etc.

[0249] Devices implementing the processes and methods according to these disclosures may include hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof, and may take any of a variety of form factors. When implemented in software, firmware, middleware, or microcode, the program code or code segments (e.g., computer program product) to perform the necessary tasks may be stored in a computer-readable or machine-readable medium. A processor(s) may perform the necessary tasks. Typical examples of form factors include laptops, smartphones, mobile phones, tablet devices or other small-footprint personal computers, personal digital assistants, rack-mounted devices, standalone devices, and the like. The functionality described herein may also be embodied in a peripheral device or an add-in card. Such functionality may also be implemented on a circuit board among different chips, or on different processes executing in a single device, as further examples.

[0250] The instructions, media for carrying such instructions, computing resources for executing such instructions, and other structures for supporting such computing resources are exemplary means for providing the functionality described in this disclosure.

[0251] In the above description, aspects of the present application are described with reference to specific embodiments thereof, but those skilled in the art will recognize that the present application is not limited thereto. Thus, while exemplary embodiments of the present application have been described in detail herein, it should be understood that the inventive concepts may be embodied and employed in various other ways, and that the appended claims are intended to be construed to include such variations, except as limited by the prior art. The various features and aspects of the present application described above may be used individually or jointly. Moreover, the embodiments may be utilized in any number of environments and applications other than those described herein without departing from the broader scope of the present specification. Thus, the present specification and drawings should be regarded as illustrative and not restrictive. For purposes of illustration, the methods have been described in a particular order. It should be understood that in alternative embodiments, the methods may be performed in an order different from that described.

[0252] Those skilled in the art will understand that the less than ("<") and greater than (">") symbols or terminology used herein may be replaced with the less than or equal to ("≦") and greater than or equal to ("≧") symbols, respectively, without departing from the scope of the present specification.

[0253] When a component is described as being "configured to" perform a particular operation, such configuration may be achieved, for example, by designing electronic circuitry or other hardware to perform the operation, by programming a programmable electronic circuitry (e.g., a microprocessor or other suitable electronic circuitry) to perform the operation, or any combination thereof.

[0254] The phrase "coupled to" refers to any component that is physically connected, either directly or indirectly, to another component and / or that is in communication, either directly or indirectly, with another component (e.g., connected to the other component via a wired or wireless connection and / or other suitable communication interface).

[0255] Claim language or other language reciting "at least one of" a set and / or "one or more" of a set indicates that one member of the set or multiple members of the set (in any combination) satisfy the claim. For example, a claim language reciting "at least one of A and B" or "at least one of A or B" means A, B, or A and B. In another example, a claim language reciting "at least one of A, B, and C" or "at least one of A, B, or C" means A, B, C, or A and B, or A and C, or B and C, or A and B and C. The language "at least one of" a set and / or "one or more" of a set does not limit the set to the items recited in the set. For example, a claim language reciting "at least one of A and B" or "at least one of A or B" can mean A, B, or A and B, and can additionally include items not recited in the set of A and B.

[0256] The various exemplary logic blocks, modules, circuits, and algorithm steps described with respect to the examples disclosed herein may be implemented as electronic hardware, computer software, firmware, or a combination thereof. To clearly illustrate this interchangeability of hardware and software, various exemplary components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the particular application and design constraints imposed on the overall system. Those skilled in the art may implement the described functionality in varying ways for each particular application, and such implementation decisions should not be interpreted as causing a departure from the scope of the present application.

[0257] The techniques described herein may also be implemented in electronic hardware, computer software, firmware, or any combination thereof. Such techniques may be implemented in any of a variety of devices, such as a general purpose computer, a wireless communication device handset, or an integrated circuit device having multiple uses, including applications in wireless communication device handsets and other devices. Any features described as modules or components may be implemented together in an integrated logic device, or separately as discrete but interoperable logic devices. If implemented in software, the techniques may be realized at least in part by a computer-readable data storage medium including program code including instructions that, when executed, perform one or more of the methods, algorithms, and / or operations described above. The computer-readable data storage medium may form part of a computer program product, which may include packaging materials. The computer readable medium may comprise a memory or data storage medium, such as random access memory (RAM), such as synchronous dynamic random access memory (SDRAM), read-only memory (ROM), non-volatile random access memory (non-volatile RAM, NVRAM), electrically erasable programmable read-only memory (EEPROM), FLASH memory, magnetic or optical data storage medium, etc. The techniques may additionally or alternatively be realized at least in part by a computer readable communications medium, such as a propagated signal or wave, which may carry or communicate program code in the form of instructions or data structures and which may be accessed, read, and / or executed by a computer.

[0258] The program code may be executed by a processor, which may include one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Such a processor may be configured to perform any of the techniques described in this disclosure. A general-purpose processor may be a microprocessor, but the processor may alternatively be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration. Thus, the term "processor" as used herein may refer to any of the above structures, any combination of the above structures, or any other structure or apparatus suitable for implementing the techniques described herein.

[0259] Illustrative examples of the present disclosure include the following: Aspect 1: An apparatus comprising at least one memory and at least one processor coupled to the at least one memory, the at least one processor configured to receive input data for compression by a neural network compression system, determine a set of updated model parameters for the neural network compression system based on the input data, the set of updated model parameters selected from a subspace of model parameters, generate at least one bitstream including a compressed version of the input data and a compressed version of one or more subspace coordinates corresponding to the set of updated model parameters, and output the at least one bitstream for transmission to a receiver.

[0260] Aspect 2: The apparatus of aspect 1, wherein the subspace of model parameters includes a portion of a plurality of weight vectors.

[0261] Aspect 3: The apparatus of aspect 2, wherein each of the plurality of weight vectors corresponds to a weight vector used during training of the neural network compression system.

[0262] Aspect 4: The apparatus of aspect 2 or 3, wherein a portion of the plurality of weight vectors are determined using at least one of principal component analysis (PCA), sparse principal component analysis (SPCA), and model-independent meta-learning (MAML).

[0263] Aspect 5: The apparatus of any one of aspects 1 to 4, wherein at least one processor is further configured to generate a set of global model parameters based on a training dataset used to train the neural network compression system, and wherein one or more subspace coordinates corresponding to the set of updated model parameters are relative to the set of global model parameters.

[0264] Aspect 6: The apparatus of aspect 5, wherein to determine a set of updated model parameters from the subspace of model parameters, at least one processor is further configured to adjust a set of global model parameters using the input data, and the set of global model parameters is adjusted based on a bit size of a compressed version of the input data and a distortion between the input data and reconstruction data generated from the compressed version of the input data.

[0265] Aspect 7: The apparatus of any one of aspects 1 to 6, wherein at least one processor is further configured to quantize one or more subspace coordinates to generate one or more quantized subspace coordinates, and wherein at least one bitstream includes a compressed version of the one or more quantized subspace coordinates.

[0266] Aspect 8: The apparatus of aspect 7, wherein at least one bitstream includes a plurality of encoded quantization parameters used to quantize one or more subspace coordinates.

[0267] Aspect 9: The apparatus of any one of aspects 1 to 8, wherein at least one processor is further configured to entropy encode one or more subspace coordinates using model prior information to generate at least one bitstream.

[0268] Aspect 10: The apparatus of any one of aspects 1 to 9, wherein the at least one processor is further configured to send the subspace of model parameters to the receiver.

[0269] Aspect 11: A method of performing any of the operations of aspects 1 to 10.

[0270] Aspect 12: A computer-readable storage medium storing instructions that, when executed, cause one or more processors to perform any of the operations of aspects 1 to 10.

[0271] Example 13: An apparatus comprising means for performing any of the operations of Examples 1 to 10.

[0272] Aspect 14: An apparatus comprising at least one memory and at least one processor coupled to the at least one memory, wherein the at least one processor is configured to receive a compressed version of input data and a compressed version of one or more subspace coordinates, determine a set of updated model parameters for a neural network compression system based on the one or more subspace coordinates, and process the input data using the set of updated model parameters to generate a reconstructed version of the input data.

[0273] Aspect 15: The apparatus of aspect 14, wherein to determine an updated set of model parameters, at least one processor is further configured to determine a shift from the set of global model parameters based on a subspace of model parameters and one or more subspace coordinates.

[0274] Aspect 16: The apparatus of aspect 15, wherein the subspace of model parameters includes a portion of a plurality of weight vectors, each of the plurality of weight vectors corresponding to a weight vector used during training of the neural network compression system.

[0275] Example 17: The apparatus of example 16, wherein a portion of the plurality of weight vectors are determined using principal component analysis (PCA).

[0276] Example 18: The apparatus of any one of Examples 15 to 17, wherein the at least one processor is further configured to receive a subspace of model parameters.

[0277] Aspect 19: A method of performing any of the operations of aspects 14 to 18.

[0278] Aspect 20: A computer-readable storage medium storing instructions that, when executed, cause one or more processors to perform any of the operations of aspects 14 to 18.

[0279] Example 21: An apparatus comprising means for performing any of the operations of Examples 14 to 18.

Claims

1. 1. A method for processing image data, comprising the steps of: receiving input data for compression by a neural network compression system; determining a set of updated model parameters for the neural network compression system based on the input data, the set of updated model parameters being selected from a subspace of model parameters; generating at least one bitstream including a compressed version of the input data and a compressed version of one or more subspace coordinates corresponding to the updated set of model parameters; outputting the at least one bitstream for transmission to a receiver; and A method comprising:

2. The method of claim 1 , wherein the subspace of model parameters comprises a portion of a plurality of weight vectors.

3. The method of claim 2 , wherein each of the plurality of weight vectors corresponds to a weight vector used during training of the neural network compression system.

4. 3. The method of claim 2, wherein the portion of the plurality of weight vectors is determined using at least one of principal component analysis (PCA), sparse principal component analysis (SPCA), and model-independent meta-learning (MAML).

5. 2. The method of claim 1 , further comprising generating a set of global model parameters based on a training data set used to train the neural network compression system, wherein the one or more subspace coordinates corresponding to the updated set of model parameters are relative to the set of global model parameters.

6. determining the set of updated model parameters from the subspace of model parameters; 6. The method of claim 5, further comprising: adjusting the set of global model parameters using the input data, the set of global model parameters being adjusted based on a bit-size of the compressed version of the input data and a distortion between the input data and reconstructed data generated from the compressed version of the input data.

7. 2. The method of claim 1, further comprising quantizing the one or more subspace coordinates to generate one or more quantized subspace coordinates, wherein the at least one bitstream comprises a compressed version of the one or more quantized subspace coordinates.

8. The method of claim 7 , wherein the at least one bitstream includes a plurality of encoded quantization parameters used to quantize the one or more subspace coordinates.

9. generating the at least one bitstream, The method of claim 1 , comprising entropy encoding the one or more subspace coordinates using model prior information.

10. The method of claim 1 , further comprising transmitting the subspace of model parameters to the receiver.

11. At least one memory; at least one processor coupled to the at least one memory; 11. An apparatus comprising: receiving input data for compression by the neural network compression system; determining a set of updated model parameters for the neural network compression system based on the input data, the set of updated model parameters being selected from a subspace of model parameters; generating at least one bitstream including a compressed version of the input data and a compressed version of one or more subspace coordinates corresponding to the updated set of model parameters; outputting the at least one bitstream for transmission to a receiver. The apparatus is configured to:

12. The apparatus of claim 11 , wherein the subspace of model parameters comprises a portion of a plurality of weight vectors.

13. The apparatus of claim 12 , wherein each of the plurality of weight vectors corresponds to a weight vector used during training of the neural network compression system.

14. 13. The apparatus of claim 12, wherein the portion of the plurality of weight vectors is determined using at least one of principal component analysis (PCA), sparse principal component analysis (SPCA), and model-independent meta-learning (MAML).

15. The at least one processor:

12. The apparatus of claim 11, further configured to generate a set of global model parameters based on a training data set used to train the neural network compression system, wherein the one or more subspace coordinates corresponding to the updated set of model parameters are relative to the set of global model parameters.

16. To determine the set of updated model parameters from the subspace of model parameters, the at least one processor:

16. The apparatus of claim 15, further configured to adjust the set of global model parameters using the input data, the set of global model parameters being adjusted based on a bit-size of the compressed version of the input data and a distortion between the input data and reconstruction data generated from the compressed version of the input data.

17. The at least one processor:

12. The apparatus of claim 11, further configured to quantize the one or more subspace coordinates to generate one or more quantized subspace coordinates, the at least one bitstream including a compressed version of the one or more quantized subspace coordinates.

18. 20. The apparatus of claim 17, wherein the at least one bitstream includes a plurality of encoded quantization parameters used to quantize the one or more subspace coordinates.

19. To generate the at least one bitstream, the at least one processor: The apparatus of claim 11 , further configured to entropy encode the one or more subspace coordinates using model a priori information.

20. The at least one processor: The apparatus of claim 11 , further configured to send the subspace of model parameters to the receiver.

21. 1. A method for processing image data, comprising the steps of: receiving a compressed version of the input data and a compressed version of the one or more subspace coordinates; determining a set of updated model parameters of a neural network compression system based on the one or more subspace coordinates; processing the input data using the updated set of model parameters to generate a reconstructed version of the input data; A method comprising:

22. Determining the set of updated model parameters 22. The method of claim 21, comprising determining a shift from a set of global model parameters based on a subspace of model parameters and the one or more subspace coordinates.

23. 23. The method of claim 22, wherein the subspace of model parameters includes a portion of a plurality of weight vectors, each of the plurality of weight vectors corresponding to a weight vector used during training of the neural network compression system.

24. The method of claim 23 , wherein the portion of the plurality of weight vectors is determined using principal component analysis (PCA).

25. The method of claim 22 , further comprising receiving a subspace of the model parameters.

26. At least one memory; at least one processor coupled to the at least one memory; 11. An apparatus comprising: receiving a compressed version of the input data and a compressed version of the one or more subspace coordinates; determining a set of updated model parameters of a neural network compression system based on the one or more subspace coordinates; processing the input data using the updated set of model parameters to generate a reconstructed version of the input data.

27. To determine the updated set of model parameters, the at least one processor:

27. The apparatus of claim 26, further configured to determine a shift from a set of global model parameters based on a subspace of model parameters and the one or more subspace coordinates.

28. 28. The apparatus of claim 27, wherein the subspace of model parameters includes a portion of a plurality of weight vectors, each of the plurality of weight vectors corresponding to a weight vector used during training of the neural network compression system.

29. 30. The apparatus of claim 28, wherein the portion of the plurality of weight vectors is determined using principal component analysis (PCA).

30. The at least one processor: The apparatus of claim 27 , further configured to receive a subspace of the model parameters.

Citation Information

Patent Citations

  • Tiled image compression using neural networks

    US20200111238A1

  • Compressing weight updates for decoder-side neural networks

    US20200311551A1

  • Instance-adaptive image and video compression using machine learning systems

    US20220103839A1

  • Neural network representation formats

    WO2021064013A2

  • Method and apparatus for neural network model compression / decompression

    WO2021101790A1