Multi-rate neural image compression method and device

By iteratively stacking multiple stackable neural networks on the weights of the neural network, multi-rate neural image compression is achieved, which solves the resource consumption problem caused by multiple model instances in the existing technology and achieves efficient multi-bitrate image compression.

CN114667544BActive Publication Date: 2024-09-27TENCENT AMERICA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202180006408.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-07-01
Filing Date
2021-07-21
Publication Date
2024-09-27
Estimated Expiration
2041-07-21

AI Technical Summary

Technical Problem

Existing neural image compression methods require multiple model instances to achieve flexible bitrate control, resulting in excessive consumption of storage and computing resources, especially in applications with limited resources, making it difficult to achieve efficient image compression and decompression.

Method used

By iteratively stacking multiple stackable neural networks on the weights of one neural network, and using the stacked weights to encode and decode input images, multi-rate neural image compression is achieved, reducing the required storage and computing resources.

Benefits of technology

Multi-bitrate image compression can be achieved using only one NIC model instance, significantly reducing storage and computing resource requirements while improving the efficiency of inference calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure GDA0003639333300000111
    Figure GDA0003639333300000111
  • Figure HDA0003639333240000011
    Figure HDA0003639333240000011
  • Figure HDA0003639333240000021
    Figure HDA0003639333240000021
Patent Text Reader

Abstract

A method for multi-rate neural image compression with a stackable nested model structure is performed by at least one processor, and the method includes: iteratively stacking first multiple sets of weights of a first plurality of stackable neural networks corresponding to current hyperparameters on a first set of weights of a first neural network, wherein the first set of weights of the first neural network remains unchanged; encoding an input image using the first set of weights of the first neural network stacked with the first multiple sets of weights of the first plurality of stackable neural networks to obtain an encoded representation; and encoding the obtained encoded representation to determine a compressed representation.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on and claims priority to U.S. Provisional Patent Application No. 63 / 065,602 filed on August 14, 2020 and U.S. Patent Application No. 17 / 365,304 filed on July 1, 2021, the disclosures of which are incorporated herein by reference in their entirety. Technical Field

[0003] The present disclosure generally relates to the field of image processing technology, and more particularly to a method and apparatus for multi-rate neural image compression, and a non-transitory computer-readable medium. Background Art

[0004] Standardization groups and companies have actively sought potential needs for future video coding technology standardization. These standardization groups and companies have focused on end-to-end neural image compression (NIC) based on artificial intelligence (AI) using deep neural networks (DNN). The success of this approach has led to increasing industry interest in advanced neural image and video compression methods.

[0005] Flexible bitrate control remains a challenging problem for previous NIC approaches. Typically, flexible bitrate control may involve training multiple model instances for each desired tradeoff between rate and distortion (quality of the compressed image). All of these multiple model instances may need to be stored and deployed on the decoder side to reconstruct images according to different bitrates. This may be very expensive for many applications with limited storage and computational resources. Summary of the invention

[0006] Given that the multiple model instances currently used for image compression and decompression require a large amount of storage and computing resources, an embodiment of the present application provides a multi-rate neural image compression method and apparatus, which can achieve multi-bitrate image compression using only one NIC model instance.

[0007] According to an embodiment, a method for multi-rate neural image compression includes: iteratively stacking first multiple groups of weights of a first multiple stackable neural network corresponding to current hyperparameters on a first group of weights of a first neural network, wherein the first group of weights of the first neural network remains unchanged; performing a first encoding on an input image using the first group of weights stacked with the first multiple groups of weights to obtain an encoded representation; and performing a second encoding on the obtained encoded representation to determine a compressed representation.

[0008] According to an embodiment, an apparatus for multi-rate neural image compression includes: at least one memory configured to store program code; and at least one processor configured to read the program code and execute the method as described above as instructed by the program code.

[0009] According to an embodiment, a non-transitory computer-readable medium stores instructions that, when executed by at least one processor for multi-rate neural image compression, cause the at least one processor to perform the method as described above.

[0010] In the embodiment of the present application, firstly, the first plurality of weights of the first plurality of stackable neural networks corresponding to the current hyperparameters are iteratively stacked on the first plurality of weights of the first neural network, and then the input image is first encoded using the first plurality of weights stacked thereon to obtain an encoded representation and the obtained encoded representation is second encoded to determine a compressed representation. In this way, the NIC model includes a plurality of stackable model structures, each of which can be progressively stacked for different values ​​of the hyperparameters. Thus, multi-rate compression is achieved while greatly reducing the required storage and computing resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 is a diagram of an environment in which the methods, apparatuses, and systems described herein may be implemented, according to an embodiment.

[0012] Figure 2 yes Figure 1 A block diagram of example components of one or more devices in FIG.

[0013] Figure 3 is a block diagram of a test setup for weighted unified multi-rate neural image compression with a stackable nested model structure and microstructure during a test phase, according to an embodiment.

[0014] Figure 4 is a block diagram of a training apparatus for weight-unified multi-rate neural image compression with a stackable nested model structure and microstructure during a training phase, according to an embodiment.

[0015] Figure 5 is a flow chart of a method of multi-rate neural image compression with a stackable nested model structure according to an embodiment.

[0016] Figure 6 is a block diagram of an apparatus for multi-rate neural image compression with a stackable nested model structure according to an embodiment.

[0017] Figure 7 is a flowchart of a method of multi-rate neural image decompression with a stackable nested model structure according to an embodiment.

[0018] Figure 8 is a block diagram of an apparatus for multi-rate neural image decompression with a stackable nested model structure according to an embodiment. DETAILED DESCRIPTION

[0019] The present disclosure describes a method and apparatus for compressing an input image through a multi-rate NIC model with a stackable nested model structure. Only one NIC model instance is used to achieve multi-bitrate image compression, and the weight coefficients of the model instance are microstructured to unify to reduce inference calculations.

[0020] Figure 1 is a diagram of an environment 100 in which the methods, apparatus, and systems described herein may be implemented, according to an embodiment.

[0021] like Figure 1 As shown, environment 100 may include user device 110, platform 120, and network 130. The devices of environment 100 may be interconnected via wired connections, wireless connections, or a combination of wired and wireless connections.

[0022] The user device 110 includes one or more devices capable of receiving, generating, storing, processing, and / or providing information associated with the platform 120. For example, the user device 110 may include a computing device (e.g., a desktop computer, a laptop computer, a tablet computer, a handheld computer, a smart speaker, a server, etc.), a mobile phone (e.g., a smart phone, a wireless phone, etc.), a wearable device (e.g., a pair of smart glasses or a smart watch), or the like. In some implementations, the user device 110 may receive information from the platform 120 and / or send information to the platform 120.

[0023] The platform 120 includes one or more devices as described elsewhere herein. In some implementations, the platform 120 may include a cloud server or a cloud server group. In some implementations, the platform 120 may be designed to be modular so that software components can be swapped in or out. In this way, the platform 120 may be easily and / or quickly reconfigured for different uses.

[0024] In some implementations, as shown, the platform 120 can be hosted in a cloud computing environment 122. It is worth noting that although the implementations described herein describe the platform 120 as being hosted in a cloud computing environment 122, in some implementations, the platform 120 may not be cloud-based (i.e., may be implemented outside of a cloud computing environment) or may be partially cloud-based.

[0025] Cloud computing environment 122 includes an environment hosting platform 120. Cloud computing environment 122 may provide computing, software, data access, storage, etc. services that do not require end users (e.g., user devices 110) to be aware of the physical location and configuration of (one or more) systems and / or devices hosting platform 120. As shown, cloud computing environment 122 may include a set of computing resources 124 (collectively, “computing resources 124” and individually, “computing resource 124”).

[0026] The computing resources 124 include one or more personal computers, workstation computers, server devices, or other types of computing and / or communication devices. In some implementations, the computing resources 124 can host the platform 120. Cloud resources may include: computing instances executed in the computing resources 124, storage devices provided in the computing resources 124, data transmission devices provided by the computing resources 124, etc. In some implementations, the computing resources 124 can communicate with other computing resources 124 via wired connections, wireless connections, or a combination of wired and wireless connections.

[0027] Further Figure 1 As shown, the computing resources 124 include a set of cloud resources, such as one or more applications ("APP") 124-1, one or more virtual machines ("VM") 124-2, virtualized storage devices ("VS") 124-3, one or more hypervisors ("HYP") 124-4, etc.

[0028] The applications 124-1 include one or more software applications that can be provided to or accessed by the user device 110 and / or the platform 120. The applications 124-1 do not require the software applications to be installed and executed on the user device 110. For example, the applications 124-1 may include software associated with the platform 120 and / or any other software that can be provided via the cloud computing environment 122. In some implementations, one application 124-1 may send information to or receive information from one or more other applications 124-1 via the virtual machine 124-2.

[0029] Virtual machine 124-2 includes a software implementation of a machine (e.g., a computer) that executes programs similar to physical machines. Virtual machine 124-2 can be a system virtual machine or a process virtual machine, depending on the use and correspondence of virtual machine 124-2 to any real machine. System virtual machines can provide a complete system platform that supports the execution of a complete operating system ("OS"). Process virtual machines can execute a single program and can support a single process. In some implementations, virtual machine 124-2 can execute on behalf of a user (e.g., user device 110) and can manage the infrastructure of cloud computing environment 122, such as data management, synchronization, or long-duration data transfer.

[0030] The virtualized storage device 124-3 includes one or more storage systems and / or one or more devices using virtualization technology within the device or storage system of the computing resource 124. In some implementations, within the context of the storage system, the types of virtualization may include block virtualization and file virtualization. Block virtualization may refer to the extraction (or separation) of logical storage from physical storage so that the storage system can be accessed without considering physical storage or heterogeneous structures. Separation may allow administrators of the storage system flexibility in terms of administrator management of storage for end users. File virtualization may eliminate the dependency between data accessed at the file level and the location where the file is physically stored. This may enable optimization of storage usage, server consolidation, and / or performance of non-disruptive file migration.

[0031] Hypervisor 124-4 may provide hardware virtualization technology that enables multiple operating systems (e.g., "guest operating systems") to execute simultaneously on a host computer such as computing resource 124. Hypervisor 124-4 may present a virtual operating platform to the guest operating systems and may manage the execution of the guest operating systems. Multiple instances of various operating systems may share virtualized hardware resources.

[0032] The network 130 includes one or more wired networks and / or wireless networks. For example, the network 130 may include a cellular network (e.g., a fifth generation (5G) network, a long-term evolution (LTE) network, a third generation (3G) network, a code division multiple access (CDMA) network, etc.), a public land mobile network (PLMN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), a telephone network (e.g., a public switched telephone network (PSTN)), a private network, an ad hoc network, an intranet, the Internet, a fiber-based network, etc., and / or a combination of these or other types of networks.

[0033] supply Figure 1 The number and arrangement of devices and networks shown are examples. In practice, except Figure 1 In addition to the devices and / or networks shown, there may be additional devices and / or networks, fewer devices and / or networks, different devices and / or networks, or differently arranged devices and / or networks. Figure 1 Two or more of the devices shown may be implemented in a single device, or the Figure 1 The single device shown is implemented as multiple distributed devices. Additionally or alternatively, one or more devices of one set of devices (eg, one or more devices) of environment 100 may perform one or more functions described as being performed by another set of devices of environment 100.

[0034] Figure 2 yes Figure 1 A block diagram of example components of one or more devices of the present invention.

[0035] Device 200 may correspond to user device 110 and / or platform 120. Figure 2 As shown, device 200 may include a bus 210 , a processor 220 , a memory 230 , a storage component 240 , an input component 250 , an output component 260 , and a communication interface 270 .

[0036] The bus 210 includes components that allow communication between components of the device 200. The processor 220 is implemented in hardware, firmware, or a combination of hardware and software. The processor 220 is a central processing unit (CPU), a graphics processing unit (GPU), an accelerated processing unit (APU), a microprocessor, a microcontroller, a digital signal processor (DSP), a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), or another type of processing component. In some implementations, the processor 220 includes one or more processors that can be programmed to perform functions. The memory 230 includes a random access memory (RAM), a read-only memory (ROM), and / or another type of dynamic or static storage device (e.g., flash memory, magnetic memory, and / or optical memory) that stores information and / or instructions for use by the processor 220.

[0037] The storage component 240 stores information and / or software related to the operation and use of the device 200. For example, the storage component 240 may include a hard disk (e.g., a magnetic disk, an optical disk, a magneto-optical disk, and / or a solid-state disk), a compact disc (CD), a digital versatile disc (DVD), a floppy disk, a cassette, a magnetic tape, and / or another type of non-transitory computer-readable medium and a corresponding drive.

[0038] Input components 250 include components that allow device 200 to receive information, for example, via user input (e.g., a touch screen display, a keyboard, a keypad, a mouse, buttons, switches, and / or a microphone). Additionally or alternatively, input components 250 may include sensors for sensing information (e.g., global positioning system (GPS) components, accelerometers, gyroscopes, and / or actuators). Output components 260 include components that provide output information from device 200 (e.g., a display, a speaker, and / or one or more light-emitting diodes (LEDs)).

[0039] The communication interface 270 includes transceiver-like components (e.g., a transceiver and / or a separate receiver and transmitter) that enable the device 200 to communicate with other devices, such as via a wired connection, a wireless connection, or a combination of a wired connection and a wireless connection. The communication interface 270 can allow the device 200 to receive information from another device and / or provide information to another device. For example, the communication interface 270 may include an Ethernet interface, an optical interface, a coaxial interface, an infrared interface, a radio frequency (RF) interface, a universal serial bus (USB) interface, a Wi-Fi interface, a cellular network interface, etc.

[0040] Device 200 may perform one or more of the processes described herein. Device 200 may perform these processes in response to processor 220 executing software instructions stored by a non-transitory computer-readable medium (e.g., memory 230 and / or storage component 240). Computer-readable media is defined herein as a non-transitory memory device. A memory device includes memory space within a single physical storage device or memory space distributed across multiple physical storage devices.

[0041] The software instructions may be read into the memory 230 and / or storage component 240 from another computer-readable medium or from another device via the communication interface 270. When the software instructions stored in the memory 230 and / or storage component 240 are executed, the software instructions may cause the processor 220 to perform one or more processes described herein. Additionally or alternatively, hard-wired circuits may be used in place of or in combination with software instructions to perform one or more processes described herein. Therefore, the implementations described herein are not limited to any particular combination of hardware circuitry and software.

[0042] supply Figure 2 The number and arrangement of components shown are provided as examples. Figure 2 The device 200 may include additional components, fewer components, different components, or differently arranged components than the components shown. Additionally or alternatively, a set of components (e.g., one or more components) of the device 200 may perform one or more functions described as being performed by another set of components of the device 200.

[0043] A method and apparatus for weighted unified multi-rate neural image compression with a stackable nested model structure and microstructure will now be described in detail.

[0044] This disclosure describes a multi-rate NIC framework for learning and deploying only one NIC model instance that supports multi-rate image compression. A stackable nested model structure for both encoders and decoders is described, where encoding modules or decoding modules are progressively stacked to achieve higher and higher bit rate compression results.

[0045] Figure 3 is a block diagram of a testing apparatus 300 for weighted unified multi-rate neural image compression with stackable nested model structure and microstructure during a testing phase, according to an embodiment.

[0046] like Figure 3 As shown, the test apparatus 300 includes a test DNN encoder 310, a test encoder 320, a test decoder 330, a test DNN decoder 340, a test DNN encoder 350, and a test DNN decoder 360. The test DNN encoder 350 includes stackable DNN encoders 350A, 350B, ..., and 350N, and the test DNN decoder 360 includes stackable DNN decoders 360A, 360B, ..., and 360N.

[0047] Given an input image x of size (h,w,c), where h,w,c are the height, width, and number of channels, respectively, the goal of the test phase of the NIC workflow can be described as follows: Compute a compressed representation that is compact for storage and transmission Then, based on the compressed representation Reconstructing the image And the reconstructed image should be similar to the original input image x.

[0048] The calculation is compressed The process is divided into two parts. In the first part, the DNN encoding process uses the test DNN encoder 310 to encode the input image x into the DNN encoded representation y. In the second part, the encoding process uses the test encoder 320 to encode the DNN encoded representation y (perform quantization and entropy encoding on the DNN encoded representation y) into a compressed representation

[0049] Therefore, the decoding process is divided into two parts. In the first part, the decoding process uses the test decoder 330 to convert the compressed representation Decode (compressed representation Perform decoding and dequantization) to recover the representation In the second part, the DNN decoding process uses the test DNN decoder 340 to recover the representation Decoded into reconstructed image In the present disclosure, there is no limitation on the network structure of the test DNN encoder 310 for DNN encoding or the test DNN decoder 340 for DNN decoding. There is no limitation on the method (quantization method and entropy encoding method) for encoding or decoding.

[0050] To learn the NIC model, two competing requirements should be addressed: good reconstruction quality and less bit consumption. Using the loss function To measure the image x and The reconstruction error between the two images is called a distortion loss, such as peak signal-to-noise ratio (PSNR) and / or structural similarity index measure (SSIM). Expressed as measured compression Therefore, a trade-off hyperparameter λ is used to optimize the joint rate-distortion (RD) loss:

[0051]

[0052] Training with a large hyperparameter λ results in a compression model with less distortion but more bit consumption, whereas training with a small hyperparameter λ results in a compression model with greater distortion but less bit consumption. Training a NIC model instance for each predefined hyperparameter λ will not work well for other values ​​of the hyperparameter λ. Therefore, in order to achieve multiple bit rates for the compressed stream, conventional methods may require training and storing multiple model instances.

[0053] In the present disclosure, a single trained model instance of a NIC network is used to implement a multi-rate NIC with a stackable nested model structure. The NIC network contains multiple stackable nested model structures, each of which is progressively stacked for different values ​​of the hyperparameter λ. Specifically, let λ1, ..., λ N Let N hyperparameters arranged in descending order, corresponding to a compressed representation with reduced distortion (improved quality) and increased rate loss (reduced bit rate). and Respectively represent the hyperparameter λ i The corresponding compressed representation and reconstructed image. Let represents the test DNN encoder 310 for the hyperparameter λ i A set of weight coefficients. For the NIC model: Similarly, let represents the test DNN decoder 340 for the hyperparameter λ i A set of weight coefficients. is used for the hyperparameter λ i A set of weight coefficients of the stackable DNN encoder 350A, 350B, ..., or 350N, and a hyperparameter λ i The stackable DNN encoders 350A, 350B, ..., or 350N are stacked on the hyperparameter λ i-1 on top of the test DNN encoder 310 . is used for the hyperparameter λ i A set of weight coefficients of the stackable DNN decoder 360A, 360B, ..., or 360N, and a hyperparameter λ i The stackable DNN decoders 360A, 360B, ..., or 360N are stacked on a matrix for the hyperparameter λ i-1 On top of the test DNN decoder 340. Each is the weight coefficient of the jth layer of the stackable DNN encoder 350A, 350B, ..., or 350N (stackable DNN decoder 360A, 360B, ..., or 360N) for testing the DNN encoder 350 (testing the DNN decoder 360). In addition, for the hyperparameter λ i The stackable DNN encoders 350A, 350B, ..., and 350N and the stackable DNN decoders 360A, 360B, ..., and 360N for each value of can have different DNN structures. In the present disclosure, there is no limitation on the basic DNN encoder / decoder network model.

[0054] Figure 3 The overall workflow of the test phase of the method is given. Given an input image x and a given target hyperparameter λ i , the test DNN encoder 310 uses a set of weight coefficients The DNN encoded representation y is calculated. Then, during the encoding process, the test encoder 320 calculates the compressed representation Based on compressed representation The recovered representation can be computed by the DNN decoding process using the test decoder 330 Using the hyperparameter λ i , testing the DNN decoder 340 using a set of weight coefficients Based on the recovery representation To calculate the reconstructed image

[0055] In an embodiment, testing a DNN encoder may include having a hyperparameter λ i Unknown coefficients A set of common encoding network layers, followed by a set of stackable DNN encoders 350A, 350B, ..., and 350N.

[0056] In an embodiment, the test DNN decoder 340 may include a test DNN decoder 340 having a hyperparameter λ i Unknown coefficients A set of common decoding network layers, followed by a set of stackable DNN decoders 360A, 360B, ..., and 360N.

[0057] make represents the weight coefficient of the jth layer of the common network layer of the test DNN encoder 310 (test DNN decoder 340). These weight coefficients Each of (i=0, ..., N) (including common and stackable) is a general 5-dimensional (5D) tensor with size (c1, k1, k2, k3, c2). The input of the layer is a 4-dimensional (4D) tensor A of size (h1, w1, d1, c1), and the output of the layer is a 4D tensor B of size (h2, w2, d2, c2). The sizes c1, k1, k2, k3, c2, h1, w1, d1, h2, w2, d2 are integers greater than or equal to 1. When any of the sizes c1, k1, k2, k3, c2, h1, w1, d1, h2, w2, d2 takes on the value 1, the corresponding tensor is reduced to a lower dimension. Each item in each tensor is a floating point number. Parameters h1, w1, and d1 (h2, w2, and d2) are the height, weight, and depth of the input tensor A (output tensor B). Parameter c1 (c2) is the number of input (output) channels. Parameters k1, k2, and k3 are the sizes of the convolution kernels corresponding to the height axis, weight axis, and depth axis, respectively. Representation and Binary masks of the same shape. and

[0058] The output B is calculated by convolution operation ⊙. That is, according to the input A and the masking weight The convolution computes the output B, where · is an element-wise multiplication.

[0059] You can change the weight shape, thereby corresponding to the convolution of the reshaped input and the reshaped weights to obtain the same output. In an embodiment, two configurations are adopted. In the first configuration, the 5D weight tensor is reshaped into a 3D tensor of size (c′1, c′2, k), where c′1×c′2×k=c1×c2×k1×k2×k3. For example, the configuration is c′1=c1, c′2=c2, k=k1×k2×k3. In the second configuration, the 5D weight tensor is reshaped into a 2D matrix of size (c′1, c′2), where c′1×c′2=c1×c2×k1×k2×k3. For example, some configurations are c′1=c1, c′2=c2×k1×k2×k3, or c′2=c2, c′1=c1×k1×k2×k3.

[0060] Mask M e ij (M d ij ) adopts the required microstructure to align with the basic GEMM matrix multiplication process of how convolution operations are implemented, so that inference calculations using masked weight coefficients can be accelerated. In an embodiment, a block-by-block microstructure of the mask (masked weight coefficient) of each layer in the 3D reshaped weight tensor or 2D reshaped weight matrix is ​​used. Specifically, for the case of a reshaped 3D weight tensor, it is divided into (g i , g o , g k ) and for the case of a reshaped 2D weight matrix, it is divided into blocks of size (g i , g o ). All entries in the masked block will have the same binary value 1 (as unpruned) or 0 (as pruned). That is, the weight coefficients are masked in a block-by-block microstructure manner.

[0061] for The remaining weight coefficients in (whose mask M e ij and M d ij The corresponding elements in take the value 1), which are further unified in a microstructural manner. Similarly, for the case of the reshaped 3D weight tensor, it is divided into (p i , p o , p k ) and for the case of a reshaped 2D weight matrix, it is divided into blocks of size (p i , p o ) block. A unified operation occurs within the block. For example, in an embodiment, when in block B uWhen unifying weights within a block, the weights within the block are set to have the same absolute value (the average of the absolute values ​​of the original weights in the block) and retain their original signs. The unified loss L can be calculated u (B u ) to measure the error caused by this unification operation. In an embodiment, L is calculated using the standard deviation of the absolute values ​​of the original weights in the block. u (B u The main advantage of using micro-structured unified weights is to save the number of multiplications in inference calculations. Unified Block B u Can have a different shape than the trim block.

[0062] Figure 4 is a block diagram of a training apparatus 400 for weight-unified multi-rate neural image compression with a stackable nested model structure and microstructure during a training phase, according to an embodiment.

[0063] like Figure 4 As shown, the training device 400 includes a weight update module 410, an add stackable module 415, a training DNN encoder 420, a training DNN decoder 425, a weight update module 430, a pruning module 435, a weight update module 440, a unification module 445, and a weight update module 450. The training DNN encoder 420 includes stackable DNN encoders 420A, 420B, ..., and 420N, and the training DNN decoder 425 includes stackable DNN decoders 425A, 425B, ..., and 425N.

[0064] Figure 4 The overall workflow of the training phase of the method is given. The goal is to learn the embedding weights

[0065]

[0066] The progressive multi-stage training framework can achieve this goal.

[0067] Assume that there is a set of initial weight coefficients and These initial weight coefficients can be randomly initialized according to some distribution. These initial weight coefficients can also be pre-trained using some pre-trained data sets. In an embodiment, the weight update module 410 optimizes the hyperparameter λ N The RD loss of formula (1) is used, using the training data set S tr And a set of model weights are learned by using the weight update process of conventional back-propagation and In another embodiment, the weight update process can be skipped and and Set directly to the initial value and

[0068] Assume that you have trained a model with weight coefficients and The current model instance, and the current goal is to train for the hyperparameter λ i Additional weight and Add stackable module 415 will be used for weight in the add stackable module process The stackable DNN encoders 420A, 420B, ..., and 420N and the weights The stackable DNN decoders 425A, 425B, ..., and 425N are stacked, where the initial module weights are and

[0069] Then, during the weight update process, the weight update module 430 fixes the learned weights and And use the hyperparameter λ i The RD loss of formula (1) is used to update the newly added weights through conventional back propagation and So as to get the updated weight and Multiple epochs of iterations will be used to optimize the RD loss during this weight update process, for example, until a maximum number of iterations is reached or until the loss converges.

[0070] After that, the microstructure weight pruning process is performed. In this process, for the newly added stackable weights and The pruning module 435 prunes the block B for each microstructure p (3D block for 3D reshaped weight tensor or 2D block for 2D reshaped weight matrix) Compute the pruning loss L s (B p ) (e.g., the L1 or L2 norm of the weights in the block), as described above. The pruning module 435 sorts these micro-architecture blocks in ascending order and prunes these blocks from the sorted list from top to bottom (i.e., by setting the corresponding weights in the pruned blocks to 0) until the stopping criterion is reached. For example, given a validation dataset S val , with weight and and and The current NIC model generates a distortion loss. As more and more microblocks are pruned, the distortion loss will gradually increase. The stopping criterion can be a tolerable percentage threshold to which the distortion loss can increase. The stopping criterion can also be a preset percentage of microstructure pruned blocks to be pruned (e.g., 80% of the top ranked pruned blocks will be pruned). The pruning module 435 generates a set of binary pruning masks and The mask or An entry of 0 in means and The corresponding weights in are pruned.

[0071] Next, the weight update module 440 is fixed by and The pruned weights are masked and updated by backpropagation and The remaining weights in , to optimize for the hyperparameter λ i The total RD loss of formula (1) is obtained. In the weight update process, multiple epochs of iterations are used to optimize the RD loss, for example, until the maximum number of iterations is reached or until the loss converges. The microstructure weight pruning process outputs the updated weights and

[0072] Then, a microstructure weight unification process is performed to generate microstructure unified weights and In this process, for and Not and Masking is the weight coefficient of pruning, the unification module 445 first calculates each microstructure unified block B as described above. u (3D blocks for 3D reshaped weight tensors or 2D blocks for 2D reshaped weight matrices) u (B u ). The unification module 445 then sorts the microstructural unified blocks in ascending order according to their unified losses and unifies the blocks from top to bottom in the sorted list until a stopping criterion is reached. The stopping criterion may be a tolerable percentage threshold to which the distortion loss can be increased. The stopping criterion may also be a preset percentage of microstructural unified blocks to be unified (e.g., 50% of the top ranked blocks will be unified). The unification module 445 generates a set of binary unified masks and The mask or An entry of 0 in means that the corresponding weights are unified.

[0073] Then, the weight update module 450 fixes and Mask or Mask these uniform weights to unity, and fix and Zhongyou and Then, the weight update module 450 updates the weights by back propagation in the weight update process. and The remaining weights in , to optimize the hyperparameter λ i The total RD loss of formula (1) will be obtained by multiple epochs of iterations to optimize the RD loss in the weight update process, for example, until the maximum number of iterations is reached or until the loss converges. The microstructure weight unification process will output the final unified weight and

[0074] The microstructure weight pruning process can be considered as a special case of the microstructure weight unification process in which the weights in the selected blocks are set to a uniform value of 0. There can be different implementations of the training framework in which the microstructure weight pruning process, the microstructure weight unification process, or both processes can be skipped.

[0075] Compared with previous E2E image compression methods, Figure 3 and Figure 4 Embodiments may include substantially reduced deployed storage to achieve multi-rate compression, have substantially reduced inference time by using microstructure pruning and / or unification of weight coefficients, and include a flexible framework to accommodate various types of NIC models. Additionally, shared computations from nested network structures performing higher bitrate compression may be achieved by reusing computations for lower bitrate compression, which saves computations in multi-rate compression. Embodiments may be flexible to accommodate any desired microstructure.

[0076] Figure 5 is a flow chart of a method 500 of multi-rate neural image compression with a stackable nested model structure, according to an embodiment.

[0077] In some implementations, the platform 120 may execute Figure 5 In some implementations, the processing may be performed by another device or group of devices (eg, user device 110) that is separate from or includes platform 120. Figure 5 One or more processing blocks of .

[0078] like Figure 5As shown, in operation 510, method 500 includes iteratively stacking first multiple groups of weights of a first plurality of stackable neural networks corresponding to current hyperparameters on a first group of weights of a first neural network, wherein the first group of weights of the first neural network remains unchanged.

[0079] At operation 520 , method 500 includes encoding the input image using a first set of weights of a first neural network stacked with a first plurality of sets of weights of a first plurality of stackable neural networks to obtain an encoded representation.

[0080] In operation 530 , method 500 includes encoding the obtained encoded representation to determine a compressed representation.

[0081] In one embodiment, method 500 also includes: iteratively stacking second sets of weights of a second plurality of stackable neural networks corresponding to the current hyperparameters on a second set of weights of a second neural network, wherein the second set of weights of the second neural network remains unchanged; performing a first decoding on the determined compressed representation to determine a restored representation; and performing a second decoding on the determined restored representation using the second set of weights stacked with the second set of weights to reconstruct an output image.

[0082] In one embodiment, the first neural network and the second neural network are trained by updating a first initial weight set of the first neural network and a second initial weight set of the second neural network to optimize a rate-distortion loss determined based on the input image, the output image, and the compressed representation.

[0083] In one embodiment, the first neural network and the second neural network are trained by: iteratively stacking first multiple groups of weights of the first multiple stackable neural networks corresponding to the current hyperparameters on the first group of weights of the first neural network, wherein the first group of weights of the first neural network remains unchanged; iteratively stacking second multiple groups of weights of the second multiple stackable neural networks corresponding to the current hyperparameters on the second group of weights of the second neural network, wherein the second group of weights of the second neural network remains unchanged; and updating the stacked first multiple groups of weights of the first multiple stackable neural networks and the stacked second multiple groups of weights of the second multiple stackable neural networks to optimize the rate-distortion loss determined based on the input image, the output image and the compressed representation.

[0084] In one embodiment, the first neural network and the second neural network are further trained by: pruning the updated first plurality of sets of weights of the first plurality of stackable neural networks and the updated second plurality of sets of weights of the second plurality of stackable neural networks to determine a first pruning mask indicating whether each of the updated first plurality of sets of weights is pruned and a second pruning mask indicating whether each of the updated second plurality of sets of weights is pruned; and performing a second update on the pruned first plurality of sets of weights and the pruned second plurality of sets of weights based on the determined first pruning mask and the determined second pruning mask to optimize the rate-distortion loss.

[0085] In one embodiment, the first neural network and the second neural network are further trained by: unifying the second updated first plurality of groups of weights of the first plurality of stackable neural networks and the second updated second plurality of groups of weights of the second plurality of stackable neural networks to determine a first unified mask indicating whether each of the second updated first plurality of groups of weights is unified and a second unified mask indicating whether each of the second updated second plurality of groups of weights is unified; and performing a third update on the remaining weights of the first plurality of groups of weights and the second plurality of groups of weights that are not unified based on the determined first unified mask and the determined second unified mask to optimize the rate-distortion loss.

[0086] In one embodiment, one or more of the first plurality of sets of weights of the first plurality of stackable neural networks and the second plurality of sets of weights of the second plurality of stackable neural networks do not correspond to the current hyperparameters.

[0087] although Figure 5 Example blocks of method 500 are shown, but in some implementations, Figure 5 The method 500 may include additional blocks, fewer blocks, different blocks, or differently arranged blocks than those depicted in FIG. Additionally or alternatively, two or more blocks of the method 500 may be performed in parallel.

[0088] Figure 6 is a block diagram of an apparatus 600 for multi-rate neural image compression with a stackable nested model structure according to an embodiment.

[0089] like Figure 6 As shown, the device 600 includes a first stacking code 610 , a first encoding code 620 , and a second encoding code 630 .

[0090] The first stacking code 610 is configured to cause at least one processor to iteratively stack first multiple groups of weights of a first plurality of stackable neural networks corresponding to current hyperparameters on a first set of weights of a first neural network, wherein the first set of weights of the first neural network remains unchanged.

[0091] The first encoding code 620 is configured to cause the at least one processor to encode the input image using a first set of weights of a first neural network stacked with a first plurality of sets of weights of a first plurality of stackable neural networks to obtain an encoded representation.

[0092] The second encoding code 630 is configured to cause at least one processor to encode the obtained encoded representation to determine a compressed representation.

[0093] Figure 7 is a flow chart of a method 700 of multi-rate neural image decompression with a stackable nested model structure, according to an embodiment.

[0094] In some implementations, the platform 120 may execute Figure 7 In some implementations, the processing may be performed by another device or group of devices (eg, user device 110) that is separate from or includes platform 120. Figure 7 One or more processing blocks of .

[0095] like Figure 7 As shown, in operation 710, method 700 includes iteratively stacking second sets of weights of a second plurality of stackable neural networks corresponding to current hyperparameters on a second set of weights of a second neural network, wherein the second set of weights of the second neural network remains unchanged.

[0096] At operation 720 , method 700 includes decoding the determined compressed representation to determine a recovered representation.

[0097] In operation 730 , method 700 includes decoding the determined restored representation using a second set of weights of a second neural network stacked with a second plurality of sets of weights of a second plurality of stackable neural networks to reconstruct the output image.

[0098] The first neural network and the second neural network can be trained by updating a first initial weight set of the first neural network and a second initial weight set of the second neural network to optimize a rate-distortion loss determined based on the input image, the output image, and the compressed representation.

[0099] The first neural network and the second neural network may be trained by iteratively stacking first sets of weights of a first plurality of stackable neural networks corresponding to current hyperparameters on a first set of weights of the first neural network, wherein the first set of weights of the first neural network remains unchanged; iteratively stacking second sets of weights of a second plurality of stackable neural networks corresponding to current hyperparameters on a second set of weights of the second neural network, wherein the second set of weights of the second neural network remains unchanged; and updating the first sets of weights of the stacked first plurality of stackable neural networks and the second sets of weights of the stacked second plurality of stackable neural networks to optimize a rate-distortion loss determined based on an input image, an output image, and a compressed representation.

[0100] The first neural network and the second neural network may also be trained by: pruning the updated first plurality of sets of weights of the first plurality of stackable neural networks and the updated second plurality of sets of weights of the second plurality of stackable neural networks to determine a first pruning mask indicating whether each of the updated first plurality of sets of weights is pruned and a second pruning mask indicating whether each of the updated second plurality of sets of weights is pruned; and performing a second update on the pruned first plurality of sets of weights and the pruned second plurality of sets of weights based on the determined first pruning mask and the determined second pruning mask to optimize a rate-distortion loss.

[0101] The first neural network and the second neural network may also be trained by: unifying the second updated first plurality of groups of weights of the first plurality of stackable neural networks and the second updated second plurality of groups of weights of the second plurality of stackable neural networks to determine a first unified mask indicating whether each of the second updated first plurality of groups of weights is unified and a second unified mask indicating whether each of the second updated second plurality of groups of weights is unified; and performing a third update on the remaining weights of the first plurality of groups of weights and the second plurality of groups of weights that are not unified based on the determined first unified mask and the determined second unified mask to optimize the rate-distortion loss.

[0102] One or more of the first plurality of sets of weights of the first plurality of stackable neural networks and the second plurality of sets of weights of the second plurality of stackable neural networks may not correspond to the current hyperparameters.

[0103] although Figure 7 Example blocks of method 700 are shown, but in some implementations, Figure 7 The method 700 may include additional blocks, fewer blocks, different blocks, or differently arranged blocks than those depicted in FIG. Additionally or alternatively, two or more blocks of the method 700 may be performed in parallel.

[0104] Figure 8is a block diagram of an apparatus 800 for multi-rate neural image decompression with a stackable nested model structure according to an embodiment.

[0105] like Figure 8 As shown, the apparatus 800 includes a second stacked code 810 , a first decoding code 820 , and a second decoding code 830 .

[0106] The second stacking code 810 is configured to cause at least one processor to iteratively stack second sets of weights of a second plurality of stackable neural networks corresponding to the current hyperparameters on a second set of weights of the second neural network, wherein the second set of weights of the second neural network remains unchanged.

[0107] The first decoding code 820 is configured to cause at least one processor to decode the determined compressed representation to determine a restored representation.

[0108] The second decoding code 830 is configured to cause the at least one processor to decode the determined restored representation using a second set of weights of a second neural network stacked with a second plurality of sets of weights of a second plurality of stackable neural networks to reconstruct the output image.

[0109] The first neural network and the second neural network can be trained by updating a first initial weight set of the first neural network and a second initial weight set of the second neural network to optimize a rate-distortion loss determined based on the input image, the output image, and the compressed representation.

[0110] The first neural network and the second neural network may be trained by iteratively stacking first sets of weights of a first plurality of stackable neural networks corresponding to current hyperparameters on a first set of weights of the first neural network, wherein the first set of weights of the first neural network remains unchanged; iteratively stacking second sets of weights of a second plurality of stackable neural networks corresponding to current hyperparameters on a second set of weights of the second neural network, wherein the second set of weights of the second neural network remains unchanged; and updating the first sets of weights of the stacked first plurality of stackable neural networks and the second sets of weights of the stacked second plurality of stackable neural networks to optimize a rate-distortion loss determined based on an input image, an output image, and a compressed representation.

[0111] The first neural network and the second neural network may also be trained by: pruning the updated first plurality of sets of weights of the first plurality of stackable neural networks and the updated second plurality of sets of weights of the second plurality of stackable neural networks to determine a first pruning mask indicating whether each of the updated first plurality of sets of weights is pruned and a second pruning mask indicating whether each of the updated second plurality of sets of weights is pruned; and performing a second update on the pruned first plurality of sets of weights and the pruned second plurality of sets of weights based on the determined first pruning mask and the determined second pruning mask to optimize a rate-distortion loss.

[0112] The first neural network and the second neural network may also be trained by: unifying the second updated first plurality of groups of weights of the first plurality of stackable neural networks and the second updated second plurality of groups of weights of the second plurality of stackable neural networks to determine a first unified mask indicating whether each of the second updated first plurality of groups of weights is unified and a second unified mask indicating whether each of the second updated second plurality of groups of weights is unified; and performing a third update on the remaining weights of the first plurality of groups of weights and the second plurality of groups of weights that are not unified based on the determined first unified mask and the determined second unified mask to optimize the rate-distortion loss.

[0113] One or more of the first plurality of sets of weights of the first plurality of stackable neural networks and the second plurality of sets of weights of the second plurality of stackable neural networks may not correspond to the current hyperparameters.

[0114] These methods can be used alone or in any order. In addition, each of the method (or implementation), encoder and decoder can be implemented by a processing circuit system (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored in a non-transitory computer readable medium.

[0115] The foregoing disclosure provides illustration and description, but is not intended to be exhaustive or to limit the implementations to the precise forms disclosed.Modifications and variations are possible in light of the above disclosure or may be acquired from practice of the implementations.

[0116] As used herein, the term "component" is intended to be broadly interpreted as hardware, firmware, or a combination of hardware and software.

[0117] It will be apparent that the systems and / or methods described herein can be implemented in various forms of hardware, firmware, or a combination of hardware and software. The actual dedicated control hardware or software code used to implement these systems and / or methods does not limit the implementation. Therefore, the operation and behavior of the systems and / or methods are described herein without reference to specific software codes, and it should be understood that software and hardware can be designed to implement the systems and / or methods based on the description herein.

[0118] Even if combinations of features are defined in the claims and / or disclosed in the specification, these combinations are not intended to limit the disclosure of possible implementations. In fact, many of these features may be combined in ways not specifically recited in the claims and / or disclosed in the specification. Although each dependent claim listed below may directly refer to only one claim, the disclosure of possible implementations includes each dependent claim in combination with every other claim in the claim group.

[0119] Any element, action or instruction used herein should not be interpreted as critical or necessary unless explicitly described as such. In addition, as used herein, the articles "a" and "an" are intended to include one or more items and can be used interchangeably with "one or more". In addition, as used herein, the term "group" is intended to include one or more items (e.g., related items, unrelated items, combinations of related items and unrelated items, etc.), and can be used interchangeably with "one or more". In the case of meaning only one item, the term "one" or similar language is used. Moreover, as used herein, the terms "having", "having", "containing", etc. are intended to be open terms. In addition, unless otherwise expressly stated, the phrase "based on" is intended to mean "based at least in part on".

Claims

1. A method for multi-rate neural image compression, characterized in that The method is applied to a NIC model, the NIC model comprising a plurality of stackable nested model structures, each stackable nested model structure being progressively stacked for different values ​​of a hyperparameter, the method comprising: iteratively stacking first sets of weights of a first plurality of stackable neural networks corresponding to current hyperparameters on a first set of weights of a first neural network, wherein the first set of weights of the first neural network remains unchanged; performing a first encoding of the input image using the first set of weights stacked with the first plurality of sets of weights to obtain an encoded representation; and performing a second encoding on the obtained encoded representation to determine a compressed representation; iteratively stacking a second plurality of sets of weights of a second plurality of stackable neural networks corresponding to the current hyperparameters on a second set of weights of a second neural network, wherein the second set of weights of the second neural network remains unchanged; performing a first decoding on the determined compressed representation to determine a recovered representation; and performing a second decoding on the determined restored representation using the second set of weights stacked with the second plurality of sets of weights to reconstruct an output image; The first neural network and the second neural network are trained in the following manner: iteratively stacking the first plurality of sets of weights of the first plurality of stackable neural networks corresponding to the current hyperparameters on the first set of weights of the first neural network, wherein the first set of weights of the first neural network remains unchanged; iteratively stacking the second plurality of sets of weights of the second plurality of stackable neural networks corresponding to the current hyperparameters on the second set of weights of the second neural network, wherein the second set of weights of the second neural network remains unchanged; and The stacked first plurality of sets of weights of the first plurality of stackable neural networks and the stacked second plurality of sets of weights of the second plurality of stackable neural networks are updated to optimize a rate-distortion loss determined based on the input image, the output image, and the compressed representation.

2. The method according to claim 1, characterized in that The first neural network and the second neural network are trained by updating a first initial weight set of the first neural network and a second initial weight set of the second neural network to optimize a rate-distortion loss determined based on the input image, the output image, and the compressed representation.

3. The method according to claim 1, characterized in that The first neural network and the second neural network are also trained in the following manner: pruning the updated first plurality of sets of weights of the first plurality of stackable neural networks and the updated second plurality of sets of weights of the second plurality of stackable neural networks to determine a first pruning mask indicating whether each of the updated first plurality of sets of weights is pruned and a second pruning mask indicating whether each of the updated second plurality of sets of weights is pruned; as well as Based on the determined first pruning mask and the determined second pruning mask, a second update is performed on the pruned first plurality of sets of weights and the pruned second plurality of sets of weights to optimize the rate-distortion loss.

4. The method according to claim 3, characterized in that The first neural network and the second neural network are also trained in the following manner: unifying the second updated first plurality of sets of weights of the first plurality of stackable neural networks and the second updated second plurality of sets of weights of the second plurality of stackable neural networks to determine a first unification mask indicating whether each of the second updated first plurality of sets of weights is unified and a second unification mask indicating whether each of the second updated second plurality of sets of weights is unified; as well as Based on the determined first unified mask and the determined second unified mask, a third update is performed on the remaining weights in the first plurality of groups of weights and the second plurality of groups of weights that are not unified, so as to optimize the rate-distortion loss.

5. The method according to claim 1, characterized in that One or more of the first plurality of sets of weights of the first plurality of stackable neural networks and the second plurality of sets of weights of the second plurality of stackable neural networks do not correspond to the current hyperparameters.

6. A device for multi-rate neural image compression, characterized in that The device comprises: at least one memory configured to store program code; and At least one processor is configured to read the program code and execute the method according to any one of claims 1 to 5 according to instructions of the program code.

7. A non-transitory computer readable medium storing instructions, characterized in that: When the instructions are executed by at least one processor for multi-rate neural image compression, the at least one processor performs the method of any one of claims 1-5.

8. An apparatus for multi-rate neural image compression, characterized in that The apparatus comprises a NIC model, the NIC model comprising a plurality of stackable nested model structures, each stackable nested model structure being progressively stacked for different values ​​of a hyperparameter, the apparatus comprising: a stacking module that iteratively stacks first sets of weights of a first plurality of stackable neural networks corresponding to current hyperparameters on a first set of weights of a first neural network, wherein the first set of weights of the first neural network remains unchanged; A first encoding module, which performs a first encoding on the input image using a first set of weights stacked with the first plurality of sets of weights to obtain an encoded representation; and A second encoding module performs a second encoding on the obtained encoded representation to determine a compressed representation; iteratively stacking a second plurality of sets of weights of a second plurality of stackable neural networks corresponding to the current hyperparameters on a second set of weights of a second neural network, wherein the second set of weights of the second neural network remains unchanged; performing a first decoding on the determined compressed representation to determine a recovered representation; and performing a second decoding on the determined restored representation using the second set of weights stacked with the second plurality of sets of weights to reconstruct an output image; The first neural network and the second neural network are trained in the following manner: iteratively stacking the first plurality of sets of weights of the first plurality of stackable neural networks corresponding to the current hyperparameters on the first set of weights of the first neural network, wherein the first set of weights of the first neural network remains unchanged; iteratively stacking the second plurality of sets of weights of the second plurality of stackable neural networks corresponding to the current hyperparameters on the second set of weights of the second neural network, wherein the second set of weights of the second neural network remains unchanged; and The stacked first plurality of sets of weights of the first plurality of stackable neural networks and the stacked second plurality of sets of weights of the second plurality of stackable neural networks are updated to optimize a rate-distortion loss determined based on the input image, the output image, and the compressed representation.