Method and device for adaptive neural network image compression

By using shared and adaptive coding layers in neural network image compression through a meta-learning mechanism, arbitrary smooth bitrate control of a single model instance is achieved, which solves the problem of insufficient bitrate control flexibility in the existing technology and provides flexible multi- Rate compression and smoothing bitrate control framework.

CN115336261BActive Publication Date: 2024-10-01TENCENT AMERICA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202180022867.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-07-01
Filing Date
2021-08-06
Publication Date
2024-10-01
Estimated Expiration
2041-08-06

AI Technical Summary

Technical Problem

It is difficult to achieve arbitrary smooth bit rate control with existing technology. In neural network image compression, traditional methods require separate training of multiple model instances to adapt to different bit rates, and it is difficult to achieve arbitrary smooth bit rate control.

Method used

Through a meta-learning mechanism, shared and adaptive coding layers are used to generate compressed representations, the rate-adaptive weight parameters of the NIC model are adaptively calculated based on the target bitrate, and arbitrary smooth bitrate control of a single meta-NIC model instance is achieved.

Benefits of technology

It allows the use of a single model instance to achieve arbitrary smooth bitrate control, provides a flexible framework to adapt to various underlying NIC models and meta-learning methods, and solves the problems of multi-model instance storage and deployment in traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115336261B_ABST
    Figure CN115336261B_ABST
Patent Text Reader

Abstract

A method for adaptive neural network image compression with rate control through meta-learning, the method comprising: receiving an input image and hyperparameters; and encoding the received input image based on the received hyperparameters using an encoding neural network to generate a compressed representation. The encoding comprises: performing a first shared encoding on the received input image using a first shared encoding layer having a first shared encoding parameter; performing a first adaptive encoding on the received input image using a first adaptive encoding layer having a first adaptive encoding parameter; combining the first shared encoded input image and the first adaptively encoded input image to generate a first combined output; and performing a second shared encoding on the first combined output using a second shared encoding layer having a second shared encoding parameter.
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 / 139,156 filed on January 19, 2021 and U.S. Patent Application No. 17 / 365,371 filed on July 1, 2021, and the disclosures of the above two U.S. patent applications are incorporated herein by reference in their entirety. Technical Field

[0003] The present disclosure relates generally to video decoding techniques, and more particularly to a method and apparatus for adaptive neural network image compression with rate control via meta-learning. Background Art

[0004] ISO / IEC MPEG (JTC 1 / SC 29 / WG 11) has been actively looking for potential needs for standardization of future video coding technologies. ISO / IEC JPEG has established the JPEG-AI group, focusing on AI-based end-to-end neural network image compression (NIC) using neural networks (NN). The success of the latest methods has triggered more and more industrial interest in advanced neural network image and video compression methods.

[0005] Although the prior art has shown promising performance, flexible bitrate control remains a challenging problem for previous NIC methods. Traditionally, multiple model instances may need to be trained separately for each desired trade-off between bitrate and distortion (the quality of the compressed image). All of these multiple model instances may be stored and deployed on the decoder side to reconstruct images according to different bitrates. In addition, since it is difficult to train and store an infinite number of model instances for each possible target bitrate, these model instances cannot provide arbitrarily smooth bitrate control. The prior art has studied multi-rate NIC, in which one model instance is trained to achieve compression of multiple predefined bitrates. However, arbitrary smooth bitrate control remains an unexplored open problem. Therefore, the problem that the present invention needs to solve is how to achieve image compression through arbitrarily smooth different bitrates. Summary of the invention

[0006] According to an embodiment, a method for adaptive neural network image compression with rate control by meta-learning is provided, the method being executed by at least one processor and comprising: receiving an input image and a hyperparameter; and using an encoding neural network, encoding the received input image based on the received hyperparameter to generate a compressed representation. The encoding comprises: performing a first shared encoding on the received input image using a first shared encoding layer having a first shared encoding parameter; performing a first adaptive encoding on the received input image using a first adaptive encoding layer having a first adaptive encoding parameter; combining the first shared encoded input image and the first adaptively encoded input image to generate a first combined output; and performing a second shared encoding on the first combined output using a second shared encoding layer having a second shared encoding parameter.

[0007] According to an embodiment, a device for adaptive neural network image compression with rate control by meta-learning is provided, the device comprising: at least one memory configured to store program code; and at least one processor configured to read the program code and operate as instructed by the program code. The program code comprises: a first receiving code configured to cause at least one processor to receive an input image and a hyperparameter; and an encoding code configured to cause at least one processor to encode the received input image based on the received hyperparameter using an encoding neural network to generate a compressed representation. The encoding code is also configured to cause at least one processor to perform the following operations: perform a first shared encoding on the received input image using a first shared encoding layer having a first shared encoding parameter; perform a first adaptive encoding on the received input image using a first adaptive encoding layer having a first adaptive encoding parameter; combine the first shared encoded input image and the first adaptively encoded input image to generate a first combined output; and perform a second shared encoding on the first combined output using a second shared encoding layer having a second shared encoding parameter.

[0008] According to an embodiment, a device for adaptive neural network image compression with rate control through meta-learning is provided, the device comprising: a first receiving unit, the first receiving unit being configured to receive an input image and a hyperparameter; and an encoding unit, the encoding unit being configured to encode the received input image based on the received hyperparameter using an encoding neural network to generate a compressed representation. The encoding unit is further configured to perform the following operations: performing a first shared encoding on the received input image using a first shared encoding layer having a first shared encoding parameter; performing a first adaptive encoding on the received input image using a first adaptive encoding layer having a first adaptive encoding parameter; combining the first shared encoded input image and the first adaptively encoded input image to generate a first combined output; and performing a second shared encoding on the first combined output using a second shared encoding layer having a second shared encoding parameter.

[0009] According to an embodiment, a computer device is provided, the computer device comprising a processor and a memory, the memory being used to store a program code and transmit the program code to the processor; the processor being used to execute according to the instructions in the program code: receiving an input image and a hyperparameter; and using an encoding neural network, encoding the received input image based on the received hyperparameter to generate a compressed representation. The encoding comprises: performing a first shared encoding on the received input image using a first shared encoding layer having a first shared encoding parameter; performing a first adaptive encoding on the received input image using a first adaptive encoding layer having a first adaptive encoding parameter; combining the first shared encoded input image and the first adaptively encoded input image to generate a first combined output; and performing a second shared encoding on the first combined output using a second shared encoding layer having a second shared encoding parameter.

[0010] According to an embodiment, a non-transitory computer-readable medium is provided, which stores instructions that, when executed by at least one processor to perform rate-controlled adaptive neural network image compression through meta-learning, cause the at least one processor to perform the following operations: receiving an input image and hyperparameters; and using an encoding neural network, encoding the received input image based on the received hyperparameters to generate a compressed representation. The instructions, when executed by at least one processor, also cause the at least one processor to perform the following operations: performing a first shared encoding on the received input image using a first shared encoding layer having a first shared encoding parameter; performing a first adaptive encoding on the received input image using a first adaptive encoding layer having a first adaptive encoding parameter; combining the first shared encoded input image and the first adaptively encoded input image to generate a first combined output; and performing a second shared encoding on the first combined output using a second shared encoding layer having a second shared encoding parameter.

[0011] The present disclosure describes methods and apparatus for a MetaNeural Image Compression (meta-NIC) framework for smooth bitrate control in NIC. A meta-learning mechanism is used to adaptively compute rate-adaptive weight parameters of an underlying NIC model based on the current input image and target bitrate, so that a single meta-NIC model instance can achieve image compression with arbitrarily smooth different bitrates. The present disclosure allows the ability to achieve image compression with arbitrarily smooth bitrate control using only one meta-NIC model instance. The methods and apparatus can be used for both multi-rate compression and smooth bitrate control using a single model, providing a flexible framework that accommodates a variety of underlying NIC models and meta-learning methods. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

[0014] Figure 3A and Figure 3B is a block diagram of a meta-NIC architecture for adaptive neural network image compression with rate control via meta-learning, according to an embodiment.

[0015] Figure 4A is a block diagram of an apparatus for adaptive neural network image compression with rate control through meta-learning during a test phase, according to an embodiment.

[0016] Figure 4B yes Figure 4A A block diagram of the meta-NIC encoder of the device is shown.

[0017] Figure 4C yes Figure 4A A block diagram of the meta-NIC decoder of the device is shown.

[0018] Figure 5 is a block diagram of a training apparatus for adaptive neural network image compression with rate control through meta-learning during a training phase, according to an embodiment.

[0019] Figure 6 is a flow chart of a method for adaptive neural network image compression with rate control through meta-learning according to an embodiment.

[0020] Figure 7is a block diagram of an apparatus for adaptive neural network image compression with rate control through meta-learning according to an embodiment. DETAILED DESCRIPTION

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

[0022] 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.

[0023] 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., smart glasses or a smart watch), or a similar device. In some implementations, the user device 110 may receive information from the platform 120 and / or send information to the platform 120.

[0024] 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 can be easily and / or quickly reconfigured for different uses.

[0025] In some implementations, as shown, the platform 120 can be hosted in a cloud computing environment 122. It is worth noting that while 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.

[0026] 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 the 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”).

[0027] 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.

[0028] like Figure 1 As further shown in the figure, the computing resources 124 include a group of cloud resources, such as one or more applications ("application, APP") 124-1, one or more virtual machines ("virtual machine, VM") 124-2, virtualized storage ("virtualized storage, VS") 124-3, one or more hypervisors ("hypervisor, HYP") 124-4, etc.

[0029] Applications 124-1 include one or more software applications that can be provided to or accessed by user device 110 and / or platform 120. Applications 124-1 can eliminate the need to install and execute software applications on user device 110. For example, applications 124-1 can include software associated with platform 120 and / or any other software that can be provided via cloud computing environment 122. In some implementations, one application 124-1 can send information to / receive information from one or more other applications 124-1 via virtual machine 124-2.

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

[0031] Virtualized storage 124-3 includes one or more storage systems and / or one or more devices using virtualization technology within the storage system or device of computing resource 124. In some implementations, within the context of a storage system, the types of virtualization may include block virtualization and file virtualization. Block virtualization may refer to the abstraction (or separation) of logical storage from physical storage, so that the storage system may be accessed without regard to physical storage or heterogeneous structures. Separation may allow administrators of storage systems 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.

[0032] Hypervisor 124-4 may provide hardware virtualization technology that allows 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.

[0033] 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.

[0034] Figure 1 The number and arrangement of devices and networks shown in FIG. 1 are provided as examples. Figure 1There may be additional devices and / or networks, fewer devices and / or networks, different devices and / or networks, or differently arranged devices and / or networks than those shown in FIG. Figure 1 Two or more devices shown in the figure may be implemented in a single device, or Figure 1 A single device shown in the environment 100 may be implemented as multiple distributed devices. Additionally or alternatively, one or more devices of a group of devices (eg, one or more devices) of the environment 100 may perform one or more functions described as being performed by another group of devices of the environment 100.

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

[0036] 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 .

[0037] 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.

[0038] 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 memory, a magnetic tape, and / or another type of non-transitory computer-readable medium and a corresponding drive.

[0039] 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)).

[0040] 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.

[0041] 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 are defined herein as non-transitory memory devices. Memory devices include memory space within a single physical storage device or memory space distributed across multiple physical storage devices.

[0042] 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. The software instructions stored in the memory 230 and / or storage component 240, when executed, may cause the processor 220 to perform one or more processes described herein. Additionally or alternatively, hardwired circuitry 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.

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

[0044] A method and apparatus for adaptive neural network image compression with rate control via meta-learning will now be described in detail.

[0045] The present disclosure proposes a meta-NIC framework that supports arbitrary smooth bitrate control. A meta-learning mechanism is used to adaptively calculate the rate-adaptive weight parameters of the underlying NIC model based on the current input image and the target bitrate, so that a single meta-NIC model instance can achieve arbitrarily smooth image compression with different bitrates.

[0046] 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 testing 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 Reconstruct the output image And the reconstructed output image Might be similar to the original input image x. Using the distortion loss To measure the reconstruction error, such as the peak signal-to-noise ratio (PSNR) or the structural similarity index measure (SSIM). Expressed as measured compression The trade-off hyperparameter λ is used to form the joint rate-distortion (RD) loss:

[0047]

[0048] Training with a large hyperparameter λ produces a compression model with less distortion but more bit consumption, while training with a small hyperparameter λ produces a compression model with greater distortion but less bit consumption. Traditionally, for each predefined hyperparameter λ, a NIC model instance will be trained, which will not work for other values ​​of the hyperparameter λ. Therefore, in order to achieve multiple bit rates for the compressed stream, the traditional method may need to train and store multiple model instances. In addition, since it is difficult in practice to train the model for every possible value of the hyperparameter λ, the traditional method cannot achieve arbitrarily smooth bitrate control.

[0049] Figure 3A and Figure 3B is a block diagram of a meta-NIC architecture 300A and 300B for adaptive neural network image compression with rate control via meta-learning, according to an embodiment.

[0050] like Figure 3A As shown, the meta-NIC architecture 300A includes a shared encoding NN 305 , an adaptive encoding NN 310 , a shared decoding NN 315 , and an adaptive decoding NN 320 .

[0051] like Figure 3B As shown, the meta-NIC architecture 300B includes shared encoding layers 325 and 330 , adaptive encoding layers 335 and 340 , shared decoding layers 345 and 350 , and adaptive decoding layers 355 and 360 .

[0052] In the present disclosure, the model parameters of the underlying NIC encoder and the underlying NIC decoder are divided into These four parts represent shared encoding parameters (SEP), adaptive encoding parameters (AEP), shared decoding parameters (SDP) and adaptive decoding parameters (ADP). Figure 3A and Figure 3B Two implementations of NIC network architectures are shown.

[0053] exist Figure 3A In , SEP, SDP, AEP and ADP are separate individual NN modules, and these individual modules are sequentially connected to each other for network forward calculation. Here, Figure 3A The sequential order of connecting these individual NN modules is shown. Other orders can be used here.

[0054] exist Figure 3B In , the parameters are split within the NN layer. Let Denote SEP, AEP, SDP and ADP for the i-th layer of the NIC encoder and the j-th layer of the NIC decoder, respectively. The network will calculate the inference output based on the corresponding inputs of SEP and AEP (or SDP and ADP), respectively, and these outputs will be combined (e.g., by addition, concatenation, multiplication, etc.) and then sent to the next layer.

[0055] Figure 3A The implementation method can be seen as Figure 3B The case where the shared code NN 305 The layers in are empty, adaptive encoding NN 310 The layers in are empty, and the decoding NN 315 is shared The layers in are empty, and the adaptive decoding NN 320 The layer in is empty. Therefore, in other embodiments, Figure 3A and Figure 3B The network structure can be combined, where the NIC architecture includes both: pure shared encoding / decoding layers and / or pure adaptive encoding / decoding layers, and hybrid layers with partially shared encoding / decoding parameters and partially adaptive encoding / decoding parameters.

[0056] Figure 4A is a block diagram of an apparatus 400 for adaptive neural network image compression with rate control via meta-learning during a test phase, according to an embodiment.

[0057] like Figure 4A As shown, the apparatus 400 includes a meta-NIC encoder 410 and a meta-NIC decoder 420 .

[0058] Figure 4A The overall workflow of the testing phase of the meta-NIC framework is shown. and denote the SEP and AEP of the i-th layer of the meta-NIC encoder 410, respectively. This is an example notation because for a fully shared layer, For fully adaptive layers, In other words, this symbol can be used to Figure 3A implementation and Figure 3B Both implementations.

[0059] Given an input image x, and a target tradeoff hyperparameter λ, the meta-NIC encoder 410 computes a compressed representation In the meta-NIC encoder 410, the input image x is passed through the meta-NIC encoding NN. Let f(i) and f(i+1) denote the input tensor and output tensor of the i-th layer.

[0060] Figure 4B yes Figure 4A A block diagram of a meta-NIC encoder 410 of an apparatus 400 is shown in FIG.

[0061] like Figure 4B As shown, the meta-NIC encoder 410 includes a SEP inference unit 412 , an AEP prediction unit 414 , and an AEP inference unit 416 .

[0062] Figure 4B An example implementation of the inference workflow of the meta-NIC encoder 410 of the i-th layer is given. Based on the current input f(i) and SEP The SEP inference unit 412 is based on the shared inference function To calculate the shared feature g(i), the shared inference function It is modeled by forward calculation using the SEP in the i-th layer. Based on the current input f(i), shared features g(i), AEP and hyperparameter λ, the AEP prediction unit 414 calculates the estimated AEP of the i-th layer The AEP prediction unit 414 may be, for example, a NN including convolutional and fully connected layers, which is based on the original AEP The current input f(i) and the target hyperparameter λ are used to predict the updated estimated AEP In some embodiments, the current input f(i) is used as the input of the AEP prediction unit 414. In some other embodiments, the shared feature g(i) is used instead of the current input f(i). In other embodiments, the SEP loss can be calculated based on the shared feature g(i), and the gradient of the loss is used as the input of the AEP prediction unit 414. and shared features g(i), the AEP inference unit 416 uses the AEP inference function To calculate the output tensor f(i+1), the AEP inference function is modeled by forward computation using the estimated AEP in the i-th layer.

[0063] Notice, Figure 4B The workflow described in is an example notation. For an empty fully shared layer, the AEP related modules can be omitted and f(i+1)=g(i). For an empty fully adaptive layer, the SEP related module can be omitted and g(i)=f(i).

[0064] Assume that the meta-NIC encoder 410 has a total of N layers, and the output of the last layer is the compressed representation It is sent to the meta-NIC decoder 420 (eg, after being further compressed into a compact bitstream through quantization and entropy encoding).

[0065] Refer again Figure 4A , on the decoder side, let and denote the SDP and ADP of the jth layer of the meta-NIC decoder 420, respectively. Similar to the meta-NIC encoder 410, this is an example notation because for a fully shared layer, is empty, and for fully adaptive layers, Is empty.

[0066] At the decoder side, the compressed representation is recovered from the bitstream sent from the meta-NIC encoder 410 by entropy decoding and dequantization. Recovery-based compressed representation and the target trade-off hyperparameter λ, the meta-NIC decoder 420 computes the reconstructed output image In the meta-NIC decoder 420, the recovered compressed representation Decode the NN through meta-NIC. Let f(j) and f(j+1) denote the input tensor and output tensor of the jth layer.

[0067] Figure 4C yes Figure 4A 4. A block diagram of a meta-NIC decoder 420 of a device 400 is shown in FIG.

[0068] like Figure 4C As shown, the meta-NIC decoder 420 includes an SDP inference unit 422 , an ADP prediction unit 424 , and an ADP inference unit 426 .

[0069] Figure 4C An example implementation of the inference workflow for the j-th layer meta-NIC decoder 420 is given. Based on the current input f(j) and SDP The SDP inference unit 422 is based on the shared inference function To calculate the shared feature g(i), the shared inference function It is modeled using the j-th layer SDP through network forward calculation. Based on the current input f(j), shared features g(i), ADP and hyperparameter λ, the ADP prediction unit 424 calculates the estimated ADP of the jth layer The ADP prediction unit 424 may be, for example, a NN with convolutional and fully connected layers, which is based on the original ADP The current input f(j) and the target hyperparameter λ are used to predict the updated estimate In some embodiments, the current input f(j) is used as the input of the ADP prediction unit 424. In some other embodiments, the shared feature g(i) is used instead of the current input f(j). In other embodiments, the SDP loss is calculated based on the shared feature g(i), and the gradient of the loss is used as the input of the ADP prediction unit 424. and shared features g(i), the ADP inference unit 426 uses the ADP inference function To calculate the output tensor f(j+1), the ADP inference function is modeled by forward computation of the network using the estimated ADP in the jth layer.

[0070] Notice, Figure 4C The workflow described in is an example notation. For an empty fully shared layer, the ADP related modules can be omitted and f(j+1)=g(j). For an empty fully adaptive layer, the SDP related modules can be omitted and g(j)=f(j).

[0071] Assume that the meta-NIC decoder 420 has a total of M layers, and the output of the last layer is the reconstructed image output

[0072] Note that the meta-NIC framework allows for arbitrary smooth trade-offs of the hyperparameter λ, and the processing workflow will compute the compressed representation and reconstruct the output image to fit the target hyperparameter λ.

[0073] In some embodiments, the trade-off hyperparameter λ is the same for the encoder and decoder. In some other embodiments, the hyperparameter λ may be different for the meta-NIC encoder 410 and the meta-NIC decoder 420. In such a case, the meta-NIC decoder 420 attempts to adapt the compressed representation to a target quality that is different from the original encoding target quality.

[0074] In one case, when the AEP prediction unit 414 and the ADP prediction unit 424 perform predictions only on a predefined set of trade-off hyperparameters with or without considering the input f(i) or f(j), the meta-NIC model is simplified to a multi-rate NIC model that uses one model instance to adapt to the compression effects of multiple predefined bit rates.

[0075] Figure 5 is a block diagram of a training apparatus 500 for adaptive neural network image compression with rate control through meta-learning during a training phase, according to an embodiment.

[0076] like Figure 5 As shown, the training device 500 includes a task sampler 510, an inner loop loss generator 520, an inner loop update unit 530, a meta loss generator 540, a meta update unit 550 and a weight update unit 560.

[0077] The training process aims to learn Figure 4A Meta-NIC Coder 410 SEP and AEP and for Figure 4A meta-NIC decoder 420 SDP and ADP and the AEP prediction NN (denoted as Φ e Model parameters) and ADP prediction NN (denoted as Φ d of model parameters).

[0078] In an embodiment, a Model-Agnostic Meta-Learning (MAML) mechanism is used for training purposes. Figure 5 An example workflow for the meta-training framework is given. Other meta-training algorithms can be used here.

[0079] For training, there is a set of training data D tr (λ i ), i = 1, ..., K, where each D tr (λ i ) corresponds to the training trade-off hyperparameter λ i , and there are a total of K training trade-off hyperparameters (and therefore K training datasets). In addition, there is a set of validation data D val (λ j ), j = 1, ..., P, where each D val (λ j ) corresponds to the validation tradeoff hyperparameter λ j , and there are a total of P validation tradeoff hyperparameters. The validation tradeoff hyperparameters include hyperparameters that are different from the training set. The validation tradeoff hyperparameters can also include those from the training set.

[0080] The overall training goal is to learn a meta-NIC model that is broadly applicable to all (both training and future unseen) trade-off hyperparameters under the assumption that NIC tasks with target trade-off hyperparameters are drawn from the task distribution P(λ). To achieve this, the loss of the learned meta-NIC model is minimized over all training datasets over all training trade-off hyperparameters.

[0081] make Include all shared parameters in SEP and SDP, and let Including all adaptive parameters in AEP and ADP. The MAML training process can have an outer loop and an inner loop for gradient-based parameter updates. For each outer loop iteration, the task sampler 510 first samples a set of K′ training tradeoff hyperparameters (K′≤K). Then, for each sampled training tradeoff hyperparameter λ i , the task sampler 510 is trained from a set of data D tr (λ i ) for a set of training data In addition, the task sampler 510 samples a set of P′ (P′≤P) validation tradeoff hyperparameters, and for each sampled validation hyperparameter λ i , from a set of verification data D val (λ j ) for a set of verification data Then, for each sampled data Based on the current parameter Θ s , Θ a , Φ e and Φ d to perform the meta-NIC forward computation, and the inner-loop loss generator 520 then calculates the cumulative inner-loop loss

[0082]

[0083] The loss function L(x, Θ) s , Θ a , Φ e , Φ d ,λ i ) may include the RD loss of Eq. (1) and another regularization loss (e.g., an auxiliary loss that differentiates the intermediate network outputs with different trade-offs). Then, based on the inner loop loss Given a step size α si and α ai As λ i The inner loop update unit 530 calculates the updated task-specific parameter update:

[0084] as well as

[0085]

[0086] Cumulative inner ring loss Gradient and gradient are used to calculate the adaptive parameters and An updated version of .

[0087] The meta-loss generator 540 then computes an external meta-objective or loss over all sampled validation hyperparameters:

[0088] as well as

[0089]

[0090] in, Is to use parameters Φ s , Φ a The loss calculated for the input x based on the meta-NIC forward calculation. Given a step size β aj and β sj As λ i The meta-updating unit 550 updates the model parameters to:

[0091] as well as

[0092]

[0093] In some embodiments, θ s is not updated in the inner loop, i.e., α si =0, This can help stabilize the training process.

[0094] The parameters Φ for AEP prediction NN and ADP prediction NN e , Φ d , the weight updating unit 560 updates them in a conventional training manner. That is, according to the training and verification data D tr (λ i ), i = 1, ..., K, D val (λ j ), j = 1, ..., P, based on the current parameter Θ s , Θ a , Φ e and Φ d , calculate all samples x∈D tr (λ i ) loss L(x, Θ) s , Θ a , Φ e , Φ d ,λ i ) and all samples x∈D val (λ j ) loss L(x, Θ) s , Θ a , Φ e , Φ d ,λ i). The gradients of all these losses can be accumulated (e.g., summed up) to obtain the gradient of Φ via conventional back-propagation. e and Φ d Perform parameter updates on .

[0095] Note that this disclosure does not impose any restrictions on the optimization algorithms or loss functions used to update these model parameters.

[0096] for Figure 4B In the case where the AEP prediction unit 414 of the meta-NIC model and the ADP prediction unit 424 of the meta-NIC model perform predictions only on a predefined set of training trade-off hyperparameters, the validation trade-off hyperparameters will be the same as the training trade-off hyperparameters. The same MAML training process can be used to train this simplified meta-NIC model (i.e., a multi-rate NIC model that uses one model instance to accommodate the compression effects of multiple predefined bit rates).

[0097] Embodiments described herein allow the ability to perform arbitrary smooth bitrate control of image compression using meta-learning using only one meta-NIC model instance. Methods and apparatus can be used for both multi-rate compression and smooth bitrate control using a single model. Embodiments provide a flexible framework that accommodates a variety of underlying NIC models and meta-learning methods.

[0098] Figure 6 is a flow chart of a method for adaptive neural network image compression with rate control through meta-learning according to an embodiment.

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

[0100] like Figure 6 As shown, in operation 610 , method 600 includes receiving an input image and hyperparameters.

[0101] At operation 620 , method 600 includes encoding the received input image based on the received hyperparameters using an encoding neural network to generate a compressed representation.

[0102] The encoding includes: performing first shared encoding on a received input image using a first shared encoding layer having first shared encoding parameters; performing first adaptive encoding on a received input image using a first adaptive encoding layer having first adaptive encoding parameters; combining the first shared encoded input image and the first adaptive encoded input image to generate a first combined output; and performing second shared encoding on the first combined output using a second shared encoding layer having second shared encoding parameters. The encoding may also include performing second adaptive encoding on the first combined output using a second adaptive encoding layer having second adaptive encoding parameters.

[0103] In operation 630 , method 600 includes receiving the recovered compressed representation and hyperparameters.

[0104] In operation 640 , method 600 includes decoding the received recovered compressed representation based on the received hyperparameters using a decoding neural network to reconstruct an output image.

[0105] The decoding includes: using a first shared decoding layer with first shared decoding parameters, performing a first shared decoding on a received recovered compressed representation; using a first adaptive decoding layer with first adaptive decoding parameters, performing a first adaptive decoding on a received recovered compressed representation; combining the first shared decoding-recovered compressed representation and the first adaptive decoding-recovered compressed representation to generate a second combined output; using a second shared decoding layer with second shared decoding parameters, performing a second shared decoding on the second combined output; and using a second adaptive decoding layer with second adaptive decoding parameters, performing a second adaptive decoding on the second combined output.

[0106] The encoding may include: generating shared features based on a received input image and first shared encoding parameters; generating estimated adaptive encoding parameters using a predictive neural network based on the received input image, the first adaptive encoding parameters, the generated shared features, and one or more of the received hyperparameters; and generating a compressed representation based on the estimated adaptive encoding parameters and the received hyperparameters.

[0107] The prediction neural network can be trained by: generating a first loss of training data corresponding to the received hyperparameters and a second loss of verification data corresponding to the received hyperparameters based on the received hyperparameters, the first shared encoding parameters, the first adaptive encoding parameters, the first shared decoding parameters, the first adaptive decoding parameters, and the prediction parameters of the prediction neural network; and updating the prediction parameters based on the gradients of the generated first loss and the generated second loss.

[0108] Decoding may include: using a predictive neural network to generate shared features based on a received input image and first shared decoding parameters; generating estimated adaptive decoding parameters based on the received input image, the first adaptive decoding parameters, the generated shared features, and one or more of the received hyperparameters; and reconstructing an output image based on the estimated adaptive decoding parameters and the received hyperparameters.

[0109] The prediction neural network can be trained by: generating a first loss of training data corresponding to the received hyperparameters and a second loss of verification data corresponding to the received hyperparameters based on the received hyperparameters, the first shared encoding parameters, the first adaptive encoding parameters, the first shared decoding parameters, the first adaptive decoding parameters, and the prediction parameters of the prediction neural network; and updating the prediction parameters based on the gradients of the generated first loss and the generated second loss.

[0110] The encoding neural network and the decoding neural network can be trained by: generating an inner-loop loss of training data corresponding to the received hyperparameters based on the received hyperparameters, the first shared encoding parameters, the first adaptive encoding parameters, the first shared decoding parameters, and the first adaptive decoding parameters; performing a first update to the first shared encoding parameters, the first adaptive encoding parameters, the first shared decoding parameters, and the first adaptive decoding parameters based on the gradient of the generated inner-loop loss; generating a meta-loss of verification data corresponding to the received hyperparameters based on the received hyperparameters, the first updated first shared encoding parameters, the first updated first adaptive encoding parameters, the first updated first shared decoding parameters, and the first updated first adaptive decoding parameters; and performing a second update to the first updated first shared encoding parameters, the first updated first adaptive encoding parameters, the first updated first shared decoding parameters, and the first updated first adaptive decoding parameters based on the gradient of the generated meta-loss.

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

[0112] Figure 7 is a block diagram of an apparatus 700 for task-adaptive preprocessing of neural network image compression according to an embodiment.

[0113] like Figure 7 As shown, the apparatus 700 includes a first receiving code 710 , an encoding code 720 , a second receiving code 730 and a decoding code 740 .

[0114] The first receiving code 710 is configured to cause at least one processor to receive an input image and hyperparameters.

[0115] The encoding code 720 is configured to cause at least one processor to encode the received input image using an encoding neural network based on the received hyperparameters to generate a compressed representation.

[0116] The encoding code 720 is also configured to cause at least one processor to: perform first shared encoding on a received input image using a first shared encoding layer having first shared encoding parameters; perform first adaptive encoding on a received input image using a first adaptive encoding layer having first adaptive encoding parameters; combine the first shared encoding input image and the first adaptive encoding input image to generate a first combined output; and perform second shared encoding on the first combined output using a second shared encoding layer having second shared encoding parameters. The encoding code 720 is also configured to cause at least one processor to perform second adaptive encoding on the first combined output using a second adaptive encoding layer having second adaptive encoding parameters.

[0117] The second receiving code 730 is configured to cause at least one processor to receive the restored compressed representation and the hyperparameters.

[0118] The decoding code 740 is configured to cause at least one processor to: use a decoding neural network to decode the received restored compressed representation based on the received hyperparameters to reconstruct the output image.

[0119] The decoding code 740 is also configured to cause at least one processor to: perform a first shared decoding on the received recovered compressed representation using a first shared decoding layer having first shared decoding parameters; perform a first adaptive decoding on the received recovered compressed representation using a first adaptive decoding layer having first adaptive decoding parameters; combine the first shared decoding-recovered compressed representation and the first adaptive decoding-recovered compressed representation to generate a second combined output; perform a second shared decoding on the second combined output using a second shared decoding layer having second shared decoding parameters; and perform a second adaptive decoding on the second combined output using a second adaptive decoding layer having second adaptive decoding parameters.

[0120] The encoding code 720 is also configured to cause at least one processor to: generate shared features based on the received input image and the first shared encoding parameters; generate estimated adaptive encoding parameters based on the received input image, the first adaptive encoding parameters, the generated shared features, and one or more of the received hyperparameters using a predictive neural network; and generate a compressed representation based on the estimated adaptive encoding parameters and the received hyperparameters.

[0121] The prediction neural network can be trained by: generating a first loss of training data corresponding to the received hyperparameters and a second loss of verification data corresponding to the received hyperparameters based on the received hyperparameters, the first shared encoding parameters, the first adaptive encoding parameters, the first shared decoding parameters, the first adaptive decoding parameters, and the prediction parameters of the prediction neural network; and updating the prediction parameters based on the gradients of the generated first loss and the generated second loss.

[0122] The decoding code 740 is also configured to cause at least one processor to: generate shared features based on the received input image and the first shared decoding parameters; generate estimated adaptive decoding parameters based on the received input image, the first adaptive decoding parameters, the generated shared features, and one or more of the received hyperparameters using a predictive neural network; and reconstruct an output image based on the estimated adaptive decoding parameters and the received hyperparameters.

[0123] The prediction neural network can be trained by: generating a first loss of training data corresponding to the received hyperparameters and a second loss of verification data corresponding to the received hyperparameters based on the received hyperparameters, the first shared encoding parameters, the first adaptive encoding parameters, the first shared decoding parameters, the first adaptive decoding parameters, and the prediction parameters of the prediction neural network; and updating the prediction parameters based on the gradients of the generated first loss and the generated second loss.

[0124] The encoding neural network and the decoding neural network can be trained by: generating an inner-loop loss of training data corresponding to the received hyperparameters based on the received hyperparameters, the first shared encoding parameters, the first adaptive encoding parameters, the first shared decoding parameters, and the first adaptive decoding parameters; performing a first update on the first shared encoding parameters, the first adaptive encoding parameters, the first shared decoding parameters, and the first adaptive decoding parameters based on the gradient of the generated inner-loop loss; generating a meta-loss of verification data corresponding to the received hyperparameters based on the received hyperparameters, the first updated first shared encoding parameters, the first updated first adaptive encoding parameters, the first updated first shared decoding parameters, and the first updated first adaptive decoding parameters; and performing a second update on the first updated first shared encoding parameters, the first updated first adaptive encoding parameters, the first updated first shared decoding parameters, and the first updated first adaptive decoding parameters based on the gradient of the generated meta-loss.

[0125] The disclosed embodiment also provides a device for adaptive neural network image compression with rate control through meta-learning, the device comprising: a first receiving unit, the first receiving unit is configured to receive an input image and a hyperparameter; and an encoding unit, the encoding unit is configured to use an encoding neural network to encode the received input image based on the received hyperparameter to generate a compressed representation. The encoding unit is further configured to perform the following operations: perform a first shared encoding on the received input image using a first shared encoding layer with a first shared encoding parameter; perform a first adaptive encoding on the received input image using a first adaptive encoding layer with a first adaptive encoding parameter; combine the first shared encoded input image and the first adaptively encoded input image to generate a first combined output; and perform a second shared encoding on the first combined output using a second shared encoding layer with a second shared encoding parameter.

[0126] In some examples, the encoding unit is further configured to perform a second adaptive encoding on the first combined output using a second adaptive encoding layer having a second adaptive encoding parameter. The apparatus further comprises: a second receiving unit configured to receive the recovered compressed representation and the hyperparameters; and a decoding unit configured to decode the received recovered compressed representation based on the received hyperparameters using a decoding neural network to reconstruct an output image. The decoding unit is further configured to perform the following operations: perform a first shared decoding on the received recovered compressed representation using a first shared decoding layer having a first shared decoding parameter; perform a first adaptive decoding on the received recovered compressed representation using a first adaptive decoding layer having a first adaptive decoding parameter; combine the first shared decoded recovered compressed representation and the first adaptively decoded recovered compressed representation to generate a second combined output; perform a second shared decoding on the second combined output using a second shared decoding layer having a second shared decoding parameter; and perform a second adaptive decoding on the second combined output using a second adaptive decoding layer having a second adaptive decoding parameter.

[0127] In some examples, the encoding unit is further configured to perform the following operations: generate shared features based on the received input image and the first shared encoding parameters; generate estimated adaptive coding parameters based on the received input image, the first adaptive coding parameters, the generated shared features, and one or more of the received hyperparameters using a predictive neural network; and generate the compressed representation based on the estimated adaptive coding parameters and the received hyperparameters.

[0128] In some examples, the prediction neural network is trained by: generating a first loss for training data corresponding to the received hyperparameters and a second loss for validation data corresponding to the received hyperparameters based on the received hyperparameters, the first shared encoding parameters, the first adaptive encoding parameters, the first shared decoding parameters, the first adaptive decoding parameters, and prediction parameters of the prediction neural network; and updating the prediction parameters based on the gradients of the generated first loss and the generated second loss.

[0129] In some examples, the decoding unit is further configured to perform the following operations: generate shared features based on the received input image and the first shared decoding parameters; generate estimated adaptive decoding parameters based on the received input image, the first adaptive decoding parameters, the generated shared features, and one or more of the received hyperparameters using a predictive neural network; and reconstruct the output image based on the estimated adaptive decoding parameters and the received hyperparameters.

[0130] In some examples, the prediction neural network is trained by: generating a first loss for training data corresponding to the received hyperparameters and a second loss for validation data corresponding to the received hyperparameters based on the received hyperparameters, the first shared encoding parameters, the first adaptive encoding parameters, the first shared decoding parameters, the first adaptive decoding parameters, and prediction parameters of the prediction neural network; and updating the prediction parameters based on the gradients of the generated first loss and the generated second loss.

[0131] In some examples, the encoding neural network and the decoding neural network are trained by: generating an inner-loop loss of training data corresponding to the received hyperparameters based on the received hyperparameters, the first shared encoding parameters, the first adaptive encoding parameters, the first shared decoding parameters, and the first adaptive decoding parameters; performing a first update to the first shared encoding parameters, the first adaptive encoding parameters, the first shared decoding parameters, and the first adaptive decoding parameters based on the gradient of the generated inner-loop loss; generating a meta-loss of validation data corresponding to the received hyperparameters based on the received hyperparameters, the first updated first shared encoding parameters, the first updated first adaptive encoding parameters, the first updated first shared decoding parameters, and the first updated first adaptive decoding parameters; and performing a second update to the first updated first shared encoding parameters, the first updated first adaptive encoding parameters, the first updated first shared decoding parameters, and the first updated first adaptive decoding parameters based on the gradient of the generated meta-loss.

[0132] The present disclosure embodiment also provides a computer device, characterized in that the device includes a processor and a memory, the memory is used to store program code and transmit the program code to the processor; the processor is used to execute according to the instructions in the program code: receiving an input image and a hyperparameter; and using a coding neural network, encoding the received input image based on the received hyperparameter to generate a compressed representation. The encoding includes: using a first shared coding layer with a first shared coding parameter to perform a first shared coding on the received input image; using a first adaptive coding layer with a first adaptive coding parameter to perform a first adaptive coding on the received input image; combining the first shared coded input image and the first adaptive coded input image to generate a first combined output; and using a second shared coding layer with a second shared coding parameter to perform a second shared coding on the first combined output.

[0133] The proposed methods can be used alone or in combination 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.

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

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

[0136] 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 code - it should be understood that software and hardware can be designed to implement the systems and / or methods based on the description herein.

[0137] Even if combinations of features are recited 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.

[0138] Any element, action or instruction used herein should not be interpreted as critical or necessary unless clearly described as such. In addition, as used herein, the items ("(a)" and "(an)") modified by no quantifiers 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 (such as 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 only meaning one item, the term "one (one)" or similar language is used. In addition, as used herein, the terms "have", "have", "with" 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 adaptive neural network image compression and decompression, the method comprising: Receive input image and hyperparameters; as well as encoding the received input image based on the received hyperparameters using an encoding neural network to generate a compressed representation, The encoding includes: performing a first shared encoding on the received input image using a first shared coding layer having first shared coding parameters; performing first adaptive encoding on the received input image using a first adaptive coding layer having first adaptive coding parameters; combining the first shared encoded input image and the first adaptively encoded input image to generate a first combined output; and performing a second shared encoding on the first combined output using a second shared coding layer having second shared coding parameters; receiving the recovered compressed representation and the hyperparameters; and decoding the received recovered compressed representation based on the received hyperparameters using a decoding neural network to reconstruct an output image, Wherein, the decoding includes: performing a first shared decoding on the received recovered compressed representation using a first shared decoding layer having first shared decoding parameters; performing a first adaptive decoding on the received recovered compressed representation using a first adaptive decoding layer having first adaptive decoding parameters; combining the first shared decoded recovered compressed representation and the first adaptive decoded recovered compressed representation to generate a second combined output; The encoding neural network and the decoding neural network are trained by: Based on the received hyperparameters, the first shared encoding parameters, the first adaptive encoding parameters, the first shared decoding parameters, and the first adaptive decoding parameters, generating an inner loop loss of the training data corresponding to the received hyperparameters; Based on the generated gradient of the inner loop loss, performing a first update on the first shared encoding parameter, the first adaptive encoding parameter, the first shared decoding parameter, and the first adaptive decoding parameter; generating a meta-loss of validation data corresponding to the received hyperparameters based on the received hyperparameters, the first updated first shared encoding parameters, the first updated first adaptive encoding parameters, the first updated first shared decoding parameters, and the first updated first adaptive decoding parameters; and Based on the gradient of the generated meta-loss, a second update is performed on the first updated first shared encoding parameters, the first updated first adaptive encoding parameters, the first updated first shared decoding parameters, and the first updated first adaptive decoding parameters.

2. The method according to claim 1, wherein the encoding further comprises: performing a second adaptive encoding on the first combined output using a second adaptive coding layer having second adaptive coding parameters; Wherein, the decoding further includes: performing a second shared decoding on the second combined output using a second shared decoding layer having second shared decoding parameters; and A second adaptive decoding is performed on the second combined output using a second adaptive decoding layer having second adaptive decoding parameters.

3. An apparatus for adaptive neural network image compression and decompression, the apparatus comprising: A first receiving unit, configured to receive an input image and a hyperparameter; as well as an encoding unit configured to encode the received input image based on the received hyperparameters using an encoding neural network to generate a compressed representation, The encoding unit is further configured to perform the following operations: performing a first shared encoding on the received input image using a first shared coding layer having first shared coding parameters; performing first adaptive encoding on the received input image using a first adaptive coding layer having first adaptive coding parameters; combining the first shared encoded input image and the first adaptively encoded input image to generate a first combined output; and performing a second shared encoding on the first combined output using a second shared coding layer having second shared coding parameters; a second receiving unit configured to receive the restored compressed representation and the hyperparameter; and a decoding unit configured to decode the received restored compressed representation based on the received hyperparameters using a decoding neural network to reconstruct an output image, and The decoding unit is further configured to perform the following operations: performing a first shared decoding on the received recovered compressed representation using a first shared decoding layer having first shared decoding parameters; performing a first adaptive decoding on the received recovered compressed representation using a first adaptive decoding layer having first adaptive decoding parameters; combining the first shared decoded recovered compressed representation and the first adaptive decoded recovered compressed representation to generate a second combined output; The encoding neural network and the decoding neural network are trained by: Based on the received hyperparameters, the first shared encoding parameters, the first adaptive encoding parameters, the first shared decoding parameters, and the first adaptive decoding parameters, generating an inner-loop loss of the training data corresponding to the received hyperparameters; Based on the generated gradient of the inner loop loss, performing a first update on the first shared encoding parameter, the first adaptive encoding parameter, the first shared decoding parameter, and the first adaptive decoding parameter; generating a meta-loss of validation data corresponding to the received hyperparameters based on the received hyperparameters, the first updated first shared encoding parameters, the first updated first adaptive encoding parameters, the first updated first shared decoding parameters, and the first updated first adaptive decoding parameters; and Based on the gradient of the generated meta-loss, a second update is performed on the first updated first shared encoding parameters, the first updated first adaptive encoding parameters, the first updated first shared decoding parameters, and the first updated first adaptive decoding parameters.

4. The device according to claim 3, characterized in that The encoding unit is further configured to perform a second adaptive encoding on the first combined output using a second adaptive encoding layer having second adaptive encoding parameters, The decoding unit is further configured to perform the following operations: performing a second shared decoding on the second combined output using a second shared decoding layer having second shared decoding parameters; and A second adaptive decoding is performed on the second combined output using a second adaptive decoding layer having second adaptive decoding parameters.

5. A non-transitory computer readable medium storing instructions which, when executed by at least one processor, implement the method according to any one of claims 1-2.

6. A computer device, characterized in that: The device comprises a processor and a memory, The memory is used to store program code and transmit the program code to the processor; The processor is configured to execute the method according to any one of claims 1 to 2 according to instructions in the program code.