Remote context model in neural image compression

By using the transformer-based long-range context model in image compression, the problems of high complexity and local receptive field limitations of the autoregressive model are solved, effective coverage and efficient prediction of global features are achieved, and the coding efficiency and performance of image compression are improved. .

CN118575480APending Publication Date: 2024-08-30TENCENT AMERICA LLC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202380015412.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-08-30
Filing Date
2023-08-31
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Traditional autoregressive context models have high computational complexity and local receptive field limitations in image compression, making it difficult to effectively capture global potential features, resulting in low coding efficiency and limited performance.

Method used

A transformer-based long-range context model is adopted to maximize the reception of information by progressively predicting context features from corner positions to center positions, achieving global feature coverage and efficient prediction.

Benefits of technology

The complexity of the context model is reduced, coding efficiency is improved, rate distortion performance is enhanced, and compressed images can be reconstructed more effectively.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118575480A_ABST
    Figure CN118575480A_ABST
Patent Text Reader

Abstract

Methods and apparatus are provided for decoding a compressed image using a neural image compression network. The method may include generating a context parameter associated with the compressed image, the context parameter corresponding to the first region. The method may also include determining that there is a remote global correlation between the first potential variable and the second potential variable in a remote global region within the compressed image, and predicting a plurality of context features using a transformer-based remote context prediction model. The method may then include reconstructing a compressed image based on the predicted plurality of contextual features.
Need to check novelty before this filing date? Find Prior Art

Description

Cross-references

[0001] This application is based on and claims priority to U.S. Provisional Patent Application No. 63 / 435,512 filed on December 27, 2022 and U.S. Patent Application No. 18 / 458,595 filed on August 30, 2023, the disclosures of which are incorporated by reference in their entirety into this application. Background Art

[0002] Traditional hybrid video codecs are difficult to optimize as a whole. Improvements in a single module may not result in coding gains in overall performance. Recently, standard groups and companies have been actively looking for potential needs for standardization of future video codec technologies. These standard groups and companies have established the JPEG-AI group that focuses on AI-based end-to-end neural image compression using deep neural networks (DNNs). The Chinese AVS standard has also formed an AVS-AI special group dedicated to neural image and video compression technology. The success of recent approaches has attracted increasing industrial interest in advanced neural image and video compression methods.

[0003] In the learned image compression framework, context models play a key role in capturing the correlations in latent variables and / or latent representations (used interchangeably in the present disclosure). In the related art, autoregressive context models are used to reduce the decoding time generated by serial autoregressive contexts. However, due to the continuous prediction of latent variables, the corresponding computational complexity of the autoregressive model is of the order of O(n2) (n is the height or width of the latent variables). Such high costs arise from the basic scheme of the context model, which requires all previously decoded latent variables to predict new latent variables. Therefore, a more efficient and parallelizable context model is needed to reduce the complexity of the context model and improve the efficiency of the context model.

[0004] In addition, the related art autoregressive context model only examines a locally limited receptive field (constrained by the kernel size (e.g., 3×3, 5×5)) when decoding the current latent variable. Therefore, a context model that more effectively considers global latent features is needed. Summary of the invention

[0005] According to an embodiment, a method and apparatus for implementing a long-range context model in neural image compression are provided. The embodiments disclosed herein can be applied to encoding and decoding processes in neural image compression.

[0006] According to one aspect of the present disclosure, a method for decoding a compressed image using a neural image compression network may be provided. The method may be performed by at least one processor and may include generating context parameters associated with the compressed image; determining that there is a remote global correlation between a first latent variable and a second latent variable in a remote global region within the compressed image; predicting multiple context features using a transformer-based remote context prediction model; and reconstructing the compressed image based on the predicted multiple context features.

[0007] According to another aspect of the present disclosure, a device for decoding a compressed image using a neural image compression network may be provided. The device may include at least one memory configured to store computer program code; and at least one processor configured to read the computer program code and operate according to the instructions of the computer program code. The program code may include a generation code configured to cause at least one processor to generate a context parameter associated with the compressed image, the context parameter corresponding to a first region; a first determination code configured to cause at least one processor to determine that there is a remote global correlation between a first latent variable and a second latent variable in a remote global region within the compressed image; a context feature prediction code configured to cause at least one processor to predict multiple context features using a transformer-based remote context prediction model; and a reconstruction code configured to cause at least one processor to reconstruct the compressed image based on the predicted context features.

[0008] According to another aspect of the present disclosure, a non-volatile computer-readable medium storing instructions executed by at least one processor may be provided, wherein the instructions may cause the at least one processor to generate a context parameter associated with a compressed image, the context parameter corresponding to a first region; determine a remote global correlation between a first latent variable and a second latent variable in a remote global region within the compressed image; predict a plurality of context features using a transformer-based remote context prediction model; and reconstruct the compressed image based on the predicted plurality of context features.

[0009] According to one aspect of the present disclosure, a method for decoding a compressed image using a neural image compression network may be provided. The method may be performed by at least one processor and may include generating a context parameter associated with the compressed image, the context parameter corresponding to a first region; predicting a first context feature using a remote context prediction model and a first context parameter, wherein the first context parameter corresponds to a first position in the first region, and wherein the first context feature predicted using the first context parameter corresponds to a second position in the first region; predicting a second context feature using a remote context prediction model and a second context parameter, wherein the second context parameter corresponds to a second position in the first region, and wherein the second context feature predicted using the second context parameter corresponds to a third position in the first region; and reconstructing the compressed image based on the predicted context feature.

[0010] According to another aspect of the present disclosure, a device for decoding a compressed image using a neural image compression network may be provided. The device may include at least one memory configured to store a computer program code; and at least one processor configured to read the computer program code and operate according to the instructions of the computer program code. The program code may include a generation code configured to cause at least one processor to generate a context parameter associated with the compressed image, the context parameter corresponding to a first region; a first prediction code configured to cause at least one processor to use a remote context prediction model and a first context parameter to predict a first context feature, wherein the first context parameter corresponds to a first position in the first region, and wherein the first context feature predicted using the first context parameter corresponds to a second position in the first region; a second prediction code configured to cause at least one processor to use a remote context prediction model and a second context parameter to predict a second context feature, wherein the second context parameter corresponds to a second position in the first region, and wherein the second context feature predicted using the second context parameter corresponds to a third position in the first region; and a reconstruction code configured to cause at least one processor to reconstruct the compressed image based on the predicted context feature.

[0011] According to another aspect of the present disclosure, a non-volatile computer-readable medium storing instructions executed by at least one processor may be provided, the instructions enabling the at least one processor to generate a context parameter associated with a compressed image, the context parameter corresponding to a first region; predict a first context feature using a remote context prediction model and a first context parameter, wherein the first context parameter corresponds to a first position in the first region, and wherein the first context feature predicted using the first context parameter corresponds to a second position in the first region; predict a second context feature using a remote context prediction model and a second context parameter, wherein the second context parameter corresponds to a second position in the first region, and wherein the second context feature predicted using the second context parameter corresponds to a third position in the first region; and reconstruct the compressed image based on the predicted context features.

[0012] Additional embodiments will be set forth in the description which follows and, in part, will be apparent from the description, and / or may be accomplished by practice of the presented embodiments of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

[0015] Figure 3 An example of a framework for a neural image compression network based on a variational autoencoder (VAE) is shown.

[0016] Figure 4 is an example illustrating a prediction strategy in a remote context model.

[0017] Figure 5 is a flow chart illustrating a method for neural image compression (NIC) using a neural network according to an embodiment.

[0018] Figure 6 is a flow chart illustrating a method for neural image compression (NIC) using a neural network according to an embodiment. DETAILED DESCRIPTION

[0019] The following detailed description of example embodiments refers to the accompanying drawings.The same reference numbers in different drawings may identify the same or similar elements.

[0020] The above disclosure provides illustration and description, but is not intended to be exhaustive or to limit the embodiments to the precise form disclosed. According to the above disclosure, modifications and variations are possible, or modifications and variations can be obtained from the practice of the embodiments. In addition, one or more features or components of an embodiment may be incorporated into another embodiment (or one or more features of another embodiment) or combined with another embodiment (or one or more features of another embodiment). Additionally, in the flowcharts and operational descriptions provided below, it should be understood that one or more operations may be omitted, one or more operations may be added, one or more operations may be performed simultaneously (at least partially), and the order of one or more operations may be switched.

[0021] Obviously, the systems and / or methods described herein can be implemented in different forms of hardware, software, 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 described herein are not referenced to specific software codes. It should be understood that software and hardware can be designed to implement the systems and / or methods based on the description herein.

[0022] Even though particular 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 depend on only one claim, the disclosure of possible implementations includes each dependent claim in combination with every other claim in the claim group.

[0023] The proposed features discussed below can be used alone or in any order. In addition, these embodiments can be implemented by processing circuits (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-volatile computer readable medium.

[0024] Unless so clearly described, any element, behavior or instruction used herein should not be interpreted as critical or essential. 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". When only one item is intended to be referred to, the term "one" or similar language is used. In addition, as used herein, the terms "has", "have", "having", "include", "including", etc. are intended to be open terms. In addition, unless otherwise explicitly stated, the phrase "based on" is intended to mean "based at least in part on". In addition, expressions such as "at least one of [A] and [B]" or "at least one of [A] or [B]" should be understood to include only A, only B, or both A and B.

[0025] Embodiments of the present disclosure relate to a corner-to-center transformer based context model (C3M) or an edge-to-center transformer based context model, which is designed to enhance context and potential prediction and improve rate-distortion performance.

[0026] VAE-based frameworks (e.g., Figure 3 ) utilizes a DNN-based transform as the primary encoder to project an image into a low-dimensional latent space. The latent space is an abstract multidimensional space that encodes a meaningful internal representation of input data such as an input image. A latent variable is a sub-part of the latent space, having the same or fewer dimensions than the entire latent space. After quantization, an entropy estimation model predicts the distribution of the latent variables, which is then compressed into a bitstream using an arithmetic encoder assisted by the estimated distribution. At the decoding end, the same entropy estimation model is applied to the arithmetic decoder to recover the latent information. This information is then fed to the DNN-based primary decoder to reconstruct the original image.

[0027] Although context models offer promising advantages in terms of enhanced compression performance, they come with significant deployment costs. Typically, due to the continuous prediction of latent variables, the corresponding computational complexity of autoregressive models is of the order of O(n2) (n is the height or width of the latent variables). Such high costs stem from the underlying scheme of context models, which requires all previously decoded latent variables to predict new latent variables. Therefore, autoregressive context models cannot be executed simultaneously.

[0028] In the above learned image compression framework, the key component is the autoregressive context model, which attempts to predict unknown codes based on the availability of previously decoded codes. The disadvantage of the autoregressive context model in the related art is that the model only extracts image texture in local areas without considering global semantic information. This incomplete causal context and restricted receptive field essentially limit the performance of the context model.

[0029] Therefore, in order to address the above challenges, embodiments of the present disclosure are directed to a context model based on an efficient and high-performance transformer, referred to as a corner-to-center context model (C3M). Specifically, the C3M model predicts context features progressively as it moves from the corner position to the center position. At each prediction, as the number of context features to be predicted increases incrementally, the total received information is maximized.

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

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

[0032] User device 110 includes one or more devices capable of receiving, generating, storing, processing, and / or providing information associated with platform 120. For example, 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 embodiments, user device 110 can receive information from platform 120 and / or send information to platform 120.

[0033] The platform 120 includes one or more devices as described elsewhere herein. In some embodiments, the platform 120 may include a cloud server or a cloud server group. In some embodiments, 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 purposes.

[0034] In some embodiments, as shown, the platform 120 may be hosted in a cloud computing environment 122. It is worth noting that while the embodiments described herein describe the platform 120 as being hosted in a cloud computing environment 122, in some embodiments, 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.

[0035] Cloud computing environment 122 includes an environment that hosts platform 120. Cloud computing environment 122 can provide computing, software, data access, storage, and other 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 one or more devices used to host the aforementioned platform 120. As shown, cloud computing environment 122 can include a set of computing resources 124 (collectively referred to as "computing resources 124" and individually referred to as "computing resource 124").

[0036] 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 embodiments, the computing resources 124 can host the above-mentioned platform 120. Cloud resources can 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 embodiments, the computing resources 124 can communicate with other computing resources 124 through wired connections, wireless connections, or a combination of wired and wireless connections.

[0037] like Figure 1 As further 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 ("VS") 124-3, one or more hypervisors ("HYP") 124-4, and the like.

[0038] 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 through cloud computing environment 122. In some embodiments, one application 124-1 can send / receive information to / from one or more other applications 124-1 through virtual machine 124-2.

[0039] Virtual machine 124-2 includes a software implementation of a machine (e.g., a computer) that executes programs like a physical machine. Depending on the use of virtual machine 124-2 and the degree of correspondence with any real machine, virtual machine 124-2 can be a system virtual machine or a process virtual 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 embodiments, 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 transfers.

[0040] Virtualized storage 124-3 includes one or more storage systems and / or one or more devices that use virtualization technology within the storage system or device of computing resource 124. In some embodiments, 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. This separation may allow administrators of storage systems to have flexibility in how to manage 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 optimize the performance of storage usage, server consolidation, and / or non-destructive file migration.

[0041] Hypervisor 124-4 may provide hardware virtualization technology that allows multiple operating systems (e.g., "guest operating systems") to execute concurrently on a host, 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.

[0042] The network 130 includes one or more wired 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.

[0043] Figure 1 The number and arrangement of devices and networks shown are provided as examples. In practice, there may be additional devices and / or networks, fewer devices and / or networks, different devices and / or networks, or different Figure 1 The devices and / or networks shown are arranged differently. 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, a set of devices (eg, one or more devices) of environment 100 may perform one or more functions that are described as being performed by another set of devices of environment 100.

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

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

[0046] 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 embodiments, 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 storage, and / or optical storage), which is used to store information and / or instructions for use by the processor 220.

[0047] Storage component 240 stores information and / or software related to the operation and use of device 200. For example, 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 disk (CD), a digital versatile disk (DVD), a floppy disk, a cassette, a magnetic tape, and / or another type of non-volatile computer-readable medium, and a corresponding drive.

[0048] Input components 250 include components that allow device 200 to receive information through, for example, 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)).

[0049] 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 through, for example, a wired connection, a wireless connection, or a combination of wired and wireless connections. 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.

[0050] Device 200 may perform one or more processes described herein. Device 200 may perform these processes in response to processor 220 executing software instructions stored by non-volatile computer-readable media such as memory 230 and / or storage component 240. Computer-readable media is defined herein as non-volatile storage devices. Storage devices include storage space within a single physical storage device or storage space distributed on multiple physical storage devices.

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

[0052] Figure 2 The number and arrangement of components shown are provided as examples. In practice, device 200 may include additional components, fewer components, different components, or different components. Figure 2 Additionally or alternatively, one set of components (eg, one or more components) of device 200 may perform one or more functions that are described as being performed by another set of components of device 200.

[0053] In an embodiment, Figures 3 to 5 Any of the operations or processes may be performed by or using Figure 1 and Figure 3 The invention may be implemented by any one of the components shown in the figure.

[0054] Hybrid image codecs in related art are difficult to optimize. Improvements in a single module may not lead to the best coding gain in overall performance. In contrast, in an artificial neural network-based image coding framework, different modules can be jointly optimized from input to output by performing a machine learning process to improve the final goal (e.g., rate-distortion performance), resulting in an end-to-end (E2E) optimized neural image compression (NIC).

[0055] Figure 3 is an illustration of an exemplary block diagram 300 of a framework of a variational autoencoder (VAE) based neural image compression network, according to an embodiment.

[0056] like Figure 3 As shown, the NIC framework includes a main encoder 310, a main decoder 320, a super encoder 330, a super decoder 340, a context model 350, an entropy parameter network 355, and a factorized entropy model 390. The VAE-based NIC framework may include one or more such modules. The VAE-based NIC framework further includes a quantizer 360 / 361, an arithmetic encoder 370 / 371, and an arithmetic decoder 380 / 381. The same or similar modules are represented by the same reference numerals. The NIC framework may include Figure 3 One or more modules not shown.

[0057] The NIC framework can use any DNN-based image compression method, such as the scale-hyperprior encoder-decoder framework (or Gaussian Mixture Likelihoods framework) and its variants, RNN-based recursive compression methods and their variants.

[0058] According to an embodiment of the present disclosure, the NIC framework may utilize block diagram 300 as follows. Given an input image or video sequence x, the primary encoder 310 may compute a compressed representation or y, which is compact for storage and transmission purposes when compared to the input image x. The compressed representation can be converted using a quantizer 360 Quantization into discrete value quantization representation The discrete value can then be quantized using arithmetic coding (lossless or lossy) using an arithmetic encoder 370 At the decoder side, the code stream can be restored to the discrete value quantized representation by lossless or lossy entropy decoding using the arithmetic decoder 380. Then the discrete value is quantized to represent may be input to the primary decoder 320 to recover and / or reconstruct the input image or video sequence The primary encoder 310 and the primary decoder 320 may be a neural network based encoder and decoder (eg, a DNN based encoder).

[0059] In some embodiments, previous NIC methods adopt a variational autoencoder (VAE) structure, where the DNN encoder directly uses the entire image x as its input, which computes the output representation x through a set of network layers that work like a black box. Correspondingly, the DNN decoder uses the entire representation As its input, it passes through another set of network layers that works like another black box to compute the reconstructed

[0060] The super encoder 330 can use a series of convolutional layers and long-range crossing attention modules (LCAM) to compress the representation 360. The super-compressed representation of the super-encoded compressed representation may then be generated using a quantizer 361 and an arithmetic encoder 371. The arithmetic decoder 381 may decode the super-compressed representation. The super-decoder 340 may then be used to generate a super-reconstructed image x′. The super-reconstructed image x′ and the quantized representation from the quantizer 360 may be used to train a neural network-based context model 350. The arithmetic encoder 370 and the arithmetic decoder 380 may use the context model 350 for encoding and decoding, respectively.

[0061] The VAE-based neural image compression architecture can further incorporate super priors to effectively capture spatial correlations in the latent representation. A context model inspired by the concept of context from traditional codecs can be used to predict the probability of an unknown code based on the already decoded latent variables. The latent variables can be generated by the main encoder 310 in the VAE structure. Super latent variables and context can be used jointly to predict the location (e.g., mean) and scale parameters of the entropy model.

[0062] Use the following objective loss function L, with the trade-off hyperparameter λ, to optimize the rate-distortion (RD) loss to achieve the reconstructed image Distortion loss and compressed representation The trade-off between bit consumption R:

[0063]

[0064] Embodiments of the proposed long-range context model predict latent variables by focusing on long-range global regions and covering the entire latent feature more effectively. Unlike autoregressive-based context models (and their variants) and parallel-based context models (and their variants), known convolutional layer-based methods only examine local restricted receptive fields (constrained by kernel size (e.g., 3×3, 5×5)) when decoding the current latent variable, the embodiments disclosed herein focus on long-range global regions (correlations in the entire latent variable can be learned and are not constrained by kernel size), which covers the entire latent feature more effectively.

[0065] Figure 3 An exemplary legend of can be seen in Table 1 below. Parts Symbols Table 1- Figure 3 An example of

[0066] Figure 4 An example of a prediction strategy 400 in a remote context model is illustrated.

[0067] like Figure 4 As shown, during context modeling, in the first step, the four corner context parameters can be sampled and fed into the entropy parameter network 355 to predict four pairs of corresponding means and scales. Then, the corresponding code stream can be sent to the arithmetic decoder (AD, arithmetic decoder) with the help of four pairs of means and scales to decode the latent variables. Then, these pairs and / or previously predicted latent variables are sent to the remote context model. By using this prediction strategy, the model can predict the midpoints in those latent variables that have been decoded. Therefore, context features can be predicted based on latent variables in edge regions. Then, the part of the latent variables remaining undecoded can be predicted by sampling the context parameters corresponding to the previously predicted context features. Then, the predicted context features can be stacked based on the channel dimension to predict five pairs of means and scales corresponding to their positions. The latent variables can be decoded by sending the corresponding code stream to the arithmetic decoder 381.

[0068] This embodiment discloses latent variables encoded or decoded in a corner-to-center or edge-to-center manner. In one embodiment, the context parameters in the four corners of the latent variable may be decoded first. In another embodiment, the context parameters in the edge of the latent variable (the middle context parameters of the edge) may be decoded first. The embodiment does not constrain the exact encoding / decoding order.

[0069] In an embodiment, the width and height of the latent variable may be w and h, and the latent space may be a square, where w = h. In another embodiment, the shape of the latent space may be a rectangle, where w>h, or h>w.

[0070] In the related art, the traditional convolution kernel focuses on a small area (such as 3×3, 5×5, 7×7) near the pixel to be predicted, which can only capture local correlation with texture information. In order to adapt to long-range prediction, in an embodiment, a transformer-based context model can be used because it can pay attention to the entire token of the image, especially when predicting global correlation with semantic information.

[0071] Figure 5 is an exemplary flow diagram illustrating a process 500 for decoding a compressed image using a neural image compression network.

[0072] At operation 505, context parameters associated with the compressed image may be generated. In some embodiments, the context parameters may correspond to a first region. In some embodiments, the first region may be one of a square region or a rectangular region.

[0073] At operation 510, a first context feature may be predicted using a remote context prediction model and a first context parameter. In some embodiments, the first context parameter may correspond to a first location in a first region. In some embodiments, the first context feature predicted using the first context parameter may correspond to a second location in the first region.

[0074] In some embodiments, the first position in the first area may be an angular position in the first area, the second position in the first area may be a position at a midpoint between one or more of the angular positions, and the third position in the first area may be a position at a midpoint between one or more of the second positions.

[0075] In some embodiments, predicting the first context feature may include generating a corresponding mean and scale pair associated with each of the first context parameters; decoding a first latent variable based on the corresponding mean and scale pair; and inputting the first latent variable into a remote context prediction model to predict the first context feature.

[0076] At operation 515, a second context feature may be predicted using the remote context prediction model and the second context parameter. In some embodiments, the second context parameter may correspond to a second position in the first region. In some embodiments, the second context feature predicted using the second context parameter may correspond to a third position in the first region.

[0077] In some embodiments, predicting the second context feature may include generating a corresponding mean and scale pair associated with each of the second context parameters; decoding a second latent variable based on the corresponding mean and scale pair; and inputting the second latent variable into a remote context prediction model to predict the second context feature.

[0078] In some embodiments, the first position in the first region may be an edge position in the first region, the second position in the first region may be a position at a midpoint between one or more of the edge positions or a position at a midpoint between one or more of the angular positions associated with the corresponding edge of the first region, and the third position in the first region may be a position at a midpoint between one or more of the second positions.

[0079] At operation 520, the compressed image may be reconstructed based on the predicted context features. In some embodiments, the decoder may include a series of LCAM and convolutional layers.

[0080] In some embodiments, the remote context prediction model or LCAM may be a transformer based context prediction model.

[0081] Figure 6 is an exemplary flow diagram illustrating a process 600 for decoding a compressed image using a neural image compression network.

[0082] At operation 605 , context parameters associated with the compressed image may be generated, wherein the context parameters may correspond to the first region.

[0083] At operation 610 , it may be determined whether there is a long-range global correlation between a first latent variable and a second latent variable in a long-range global region within a compressed image.

[0084] At operation 615 , a plurality of context features may be predicted using a transformer-based long-range context prediction model.

[0085] In some embodiments, operations 610 and 615 may include predicting a first context feature using a remote context prediction model and a first context parameter, and predicting a second context feature using a remote context prediction model and a second context parameter. In some embodiments, the first context parameter corresponds to a first position in a first region, and the first context feature predicted using the first context parameter corresponds to a second position in the first region. In the same or other embodiments, the second context parameter corresponds to a second position in the first region, and the second context feature predicted using the second context parameter corresponds to a third position in the first region.

[0086] At operation 615 , a compressed image may be reconstructed based on the predicted plurality of context features.

[0087] It is known that the above-described processes 500 and 600 can be modified to encode images using a neural image compression network.

[0088] The techniques described above may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media, or implemented by one or more specially configured hardware processors. Figure 1 An environment 100 suitable for implementing various embodiments is shown. In one example, one or more processors execute a program stored in a non-transitory computer-readable medium.

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

[0090] Obviously, the systems and / or methods described herein can be implemented in various forms of hardware, software, 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.

[0091] Computer software may be encoded using any suitable machine code or computer language that may be subjected to assembly, compilation, linking or similar mechanisms to create code comprising instructions that may be executed by a computer central processing unit (CPU), graphics processing unit (GPU), etc., either directly or through interpretation, microcode execution, etc.

[0092] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, Internet of Things devices, etc.

[0093] Although the present disclosure has described several exemplary embodiments, there are changes, permutations, and various substitute equivalents that fall within the scope of the present disclosure. It should therefore be appreciated that those skilled in the art will be able to design many systems and methods that, although not explicitly shown or described herein, embody the principles of the present disclosure and are therefore within the spirit and scope of the present disclosure.

Claims

1. A method for decoding a compressed image using a neural image compression network, characterized in that: The method is executed by at least one processor, and the method includes: generating context parameters associated with the compressed image; determining that there is a long-range global correlation between a first latent variable and a second latent variable in a long-range global region within the compressed image; predicting a plurality of context features using a transformer-based long-range context prediction model; and The compressed image is reconstructed based on the predicted multiple context features.

2. The method according to claim 1, characterized in that Predicting multiple contextual features includes: predicting a first context feature using the transformer-based long-range context prediction model and a first context parameter, wherein the first context parameter corresponds to a first position in a first region, and wherein the first context feature predicted using the first context parameter corresponds to a second position in the first region; predicting a second context feature using the transformer-based long-range context prediction model and a second context parameter, wherein the second context parameter corresponds to the second position in the first area, and The second context feature predicted using the second context parameter corresponds to a third position in the first area.

3. The method according to claim 2, characterized in that the first position in the first area is an angular position in the first area, wherein the second position in the first area is a position at a midpoint between one or more of the angular positions, and The third position in the first area is a position at a midpoint between one or more of the second positions.

4. The method according to claim 2, characterized in that: The first position in the first area is an edge position in the first area, wherein the second position in the first area is a position at a midpoint between one or more of the edge positions or a position at a midpoint between one or more of the angular positions associated with the corresponding edge of the first area, and The third position in the first area is a position at a midpoint between one or more of the second positions.

5. The method according to claim 2, characterized in that: Predicting the first context feature includes: generating a respective mean and scale pair associated with each of the first context parameters; decoding the first latent variable based on the corresponding mean and scale pair; and The first latent variable is input into the transformer-based long-range context prediction model to predict the first context feature.

6. The method according to claim 2, characterized in that Predicting the second context feature includes: generating a respective mean and scale pair associated with each of the second context parameters; decoding a second latent variable based on the corresponding mean and scale pair; and The second latent variable is input into the transformer-based long-range context prediction model to predict the second context feature.

7. The method according to claim 2, characterized in that The first area is one of a square area or a rectangular area.

8. A device for decoding a compressed image using a neural image compression network, characterized in that: The device comprises: at least one memory configured to store computer program code; and At least one processor, the at least one processor being configured to read the computer program code and operate according to instructions of the computer program code, the computer program code comprising: generating code configured to cause the at least one processor to generate context parameters associated with a compressed image; first determining code configured to cause the at least one processor to determine that there is a remote global correlation between a first latent variable and a second latent variable in a remote global region within the compressed image; contextual feature prediction code configured to cause the at least one processor to predict a plurality of contextual features using a transformer-based remote context prediction model; and Reconstruction code is configured to cause the at least one processor to reconstruct the compressed image based on the predicted plurality of context features.

9. The device according to claim 8, characterized in that The context prediction code includes: a first prediction code configured to cause the at least one processor to predict a first context feature using a remote context prediction model and a first context parameter, wherein the first context parameter corresponds to a first position in a first region, and wherein the first context feature predicted using the first context parameter corresponds to a second position in the first area; and second prediction code configured to cause the at least one processor to predict a second context feature using the remote context prediction model and a second context parameter, wherein the second context parameter corresponds to the second position in the first area, and The second context feature predicted using the second context parameter corresponds to a third position in the first area.

10. The device according to claim 9, characterized in that the first position in the first area is an angular position in the first area, wherein the second position in the first area is a position at a midpoint between one or more of the angular positions, and The third position in the first area is a position at a midpoint between one or more of the second positions.

11. The device according to claim 9, characterized in that The first position in the first area is an edge position in the first area, wherein the second position in the first area is a position at a midpoint between one or more of the edge positions or a position at a midpoint between one or more of the angular positions associated with the corresponding edge of the first area, and The third position in the first area is a position at a midpoint between one or more of the second positions.

12. The device according to claim 9, characterized in that The first prediction code is further configured to cause the at least one processor to: generating a respective mean and scale pair associated with each of the first context parameters; decoding the first latent variable based on the corresponding mean and scale pairs; as well as The first latent variable is input into the remote context prediction model to predict the first context feature.

13. The device according to claim 9, characterized in that The second prediction code is further configured to cause the at least one processor to: generating a respective mean and scale pair associated with each of the second context parameters; decoding a second latent variable based on the corresponding mean and scale pairs; as well as The second latent variable is input into the remote context prediction model to predict the second context feature.

14. The device according to claim 9, characterized in that The first area is one of a square area or a rectangular area.

15. A non-volatile computer-readable medium storing instructions, characterized in that: The instructions, when executed by at least one processor of an apparatus for decoding a compressed image using a neural image compression network, cause the at least one processor to: generating context parameters associated with the compressed image; determining that there is a long-range global correlation between a first latent variable and a second latent variable in a long-range global region within the compressed image; Use a transformer-based long-range context prediction model to predict multiple context features; as well as The compressed image is reconstructed based on the predicted multiple context features.

16. The non-volatile computer readable medium of claim 15, wherein: Predicting the plurality of context features comprises: predicting a first context feature using the long-range context prediction model and the first context parameter, wherein the first context parameter corresponds to a first position in a first region, and wherein the first context feature predicted using the first context parameter corresponds to a second position in the first area; and predicting a second context feature using the remote context prediction model and the second context parameter, wherein the second context parameter corresponds to the second position in the first area, and The second context feature predicted using the second context parameter corresponds to a third position in the first area.

17. The non-volatile computer readable medium of claim 16, wherein: The first position in the first region is an angular position in the first region; wherein the second position in the first area is a position at a midpoint between one or more of the angular positions, and The third position in the first area is a position at a midpoint between one or more of the second positions.

18. The non-volatile computer readable medium of claim 16, wherein: The first position in the first area is an edge position in the first area; wherein the second position in the first area is a position at a midpoint between one or more of the edge positions or a position at a midpoint between one or more of the angular positions associated with the corresponding edge of the first area, and The third position in the first area is a position at a midpoint between one or more of the second positions.

19. The non-volatile computer readable medium of claim 16, wherein: Predicting the first context feature includes: generating a respective mean and scale pair associated with each of the first context parameters; decoding the first latent variable based on the corresponding mean and scale pair; and The first latent variable is input into the remote context prediction model to predict the first context feature.

20. The non-volatile computer readable medium of claim 16, wherein: Predicting the second context feature includes: generating a respective mean and scale pair associated with each of the second context parameters; decoding a second latent variable based on the corresponding mean and scale pair; and The second latent variable is input into the remote context prediction model to predict the second context feature.

Citation Information

Patent Citations

  • Long-range context model in neural image compression

    US20240212215A1