Low-Variation Rank-Based Deep Neural Network Compression
The LDR-based approximation of DNN weight matrices addresses the high computational complexity issue in existing DNN compression methods, enabling efficient compression and low inference complexity for resource-constrained devices.
Patent Information
- Application Number
- JP2021548231
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-03-15
- Filing Date
- 2020-03-13
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-03-13
AI Technical Summary
Existing deep neural network (DNN) compression methods suffer from high computational complexity, making them unsuitable for resource-constrained devices due to their large parameter count and unstructured low-rank matrices, which lack control over sparsity patterns.
The proposed method employs Low Displacement Rank (LDR)-based approximation to decompose weight matrices of DNN layers into structured matrices, allowing for simultaneous compression and reduced inference complexity.
This approach enables efficient compression and low inference complexity, facilitating the use of deep learning on resource-limited devices by approximating weight matrices as a sum of structured matrices, thereby reducing computational demands.
Smart Images

Figure 0007575388000019 
Figure 0007575388000020 
Figure 0007575388000021
Abstract
Description
[Technical field]
[0001] At least one of the present embodiments generally relates to a method or apparatus for video encoding or decoding. [Background technology]
[0002] To achieve high compression efficiency, image and video coding schemes usually employ prediction, including spatial and / or motion vector prediction, and transformation to exploit spatial and temporal redundancy of video content. In general, intra- or inter-prediction is used to exploit intra- or inter-frame correlation, and then the difference between the original and predicted image, often called prediction error or prediction residual, is transformed, quantized, and entropy coded. To reconstruct the video, the compressed data is decoded by an inverse process corresponding to the entropy coding, quantization, transformation, and prediction. The mapping and inverse mapping process can be used in the encoder and decoder to achieve improved coding performance. In fact, signal mapping can be used to achieve better coding efficiency. The mapping aims to better exploit the distribution of sample codeword values of a video picture. Summary of the Invention
[0003] The drawbacks and disadvantages of the prior art may be addressed by the general aspects described herein, which are directed to intra-prediction mode splitting during encoding and decoding.
[0004] According to a first aspect, a method is provided, the method including obtaining information representing weights, biases, and nonlinearities of a deep neural network and an approximate training set for the deep neural network, generating an output matrix of information of a layer of the deep neural network using the information and the approximate training set, updating the output matrix of an additional layer by repeatedly using an output matrix of a previous layer of the deep neural network and the approximate training set to generate coefficients representing the output matrix until a minimization criterion is satisfied for that layer and until a final layer is reached, and performing quantization and entropy coding on the coefficients.
[0005] According to a second aspect, there is provided a method, comprising: performing entropy decoding on data from a bitstream, performing inverse quantization on the entropy decoded data, and iteratively obtaining inverse quantized matrices representing a deep neural network until a last layer is reached, to construct a weight matrix.
[0006] According to another aspect, an apparatus is provided that includes a processor, the processor may be configured to compress and decompress a deep neural network by performing any of the methods described above.
[0007] According to another general aspect of at least one embodiment, a device is provided that includes an apparatus according to any of the decoding embodiments and at least one of: (i) an antenna configured to receive a signal, the signal including a video block; (ii) a band limiter configured to limit the received signal to a frequency band including the video block; or (iii) a display configured to display an output representative of the video block.
[0008] According to another general aspect of at least one embodiment, a non-transitory computer-readable medium is provided that includes data content generated according to any of the described encoding embodiments or variations.
[0009] According to another general aspect of at least one embodiment, there is provided a signal including video data generated according to any of the described encoding embodiments or variations.
[0010] According to another general aspect of at least one embodiment, a bitstream is formatted to include data content generated according to any of the described encoding embodiments or variations.
[0011] According to another general aspect of at least one embodiment, a computer program product is provided that includes instructions that, when executed by a computer, cause the computer to perform any of the described decoding embodiments or variations.
[0012] These and other aspects, features and advantages of the general aspects will become apparent from the following detailed description of illustrative embodiments, which is to be read in connection with the accompanying drawings. [Brief description of the drawings]
[0013] [Figure 1] 1 illustrates a pipeline for low variance rank-based neural network compression under the described general aspects. [Diagram 2] 1 illustrates low-variance rank approximation under the general aspects described. [Diagram 3] 1 shows a flow diagram for determining a low-displacement rank approximation layer under the described general aspect. [Figure 4] 1 shows an example of a flow diagram of a training / update loop for low variance rank approximation evaluation under the described general aspects. [Diagram 5] 1 illustrates an example of a decoding process under the described general aspect. [Figure 6] 1 illustrates one embodiment of an encoding method under the general aspects described. [Figure 7] 1 illustrates one embodiment of a decoding method under the general aspects described. [Figure 8] 1 illustrates an embodiment of an apparatus for encoding or decoding using intra-prediction mode extensions. [Figure 9] This shows a general-purpose standard encoding method. [Figure 10] This shows a general-purpose standard decoding method. [Figure 11] 1 illustrates an exemplary processor configuration in which the described embodiments may be implemented. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Deep Neural Networks (DNNs) have demonstrated state-of-the-art performance in various domains such as computer vision, speech recognition, and natural language processing. However, this performance comes at a huge computational cost, as DNNs tend to have a huge number of parameters, often millions and sometimes billions. This complicates inference and makes the computational cost of applying a trained DNN for inference to test data prohibitive. This high level of inference complexity is a major challenge in deploying the performance of DNNs in mobile or embedded devices with resource limitations such as battery size, computational power, and memory capacity.
[0015] The present invention is applied to compressing pre-trained DNNs, thereby facilitating transmission and / or storage, as well as low inference complexity. We propose compressing pre-trained DNNs by low-displacement rank (LDR)-based approximation of the network layer weight matrices. This LDR approximation allows replacing the original layer weight matrices of the pre-trained DNN as a sum of a small number of structured matrices. This decomposition into a sum of structured matrices results in simultaneous compression, and low inference complexity, thereby enabling the power of deep learning on resource-limited devices.
[0016] Most approaches to compress DNNs are based on either sparsity-based assumptions or low-rank-based approximations. Although these approaches lead to compression, they still suffer from high inference complexity. Sparsity structures are difficult to implement in hardware because their performance depends heavily on the sparsity pattern, and existing approaches have no control over the sparsity pattern. Low-rank matrices are still unstructured. For these reasons, these approaches do not necessarily bring about improvements in inference complexity. The LDR-based approximation proposed in this invention approximates the weight matrix of a given layer as a sum of a small number of structured matrices, which allows for joint compression and low inference complexity.
[0017] The weight matrix {W1,…,W L}, bias {b1,…,b L}, and nonlinearities {g1,…,g L Suppose we are provided with a pre-trained DNN with L layers, each with a weight, bias, and nonlinearity. We use these weights, biases, and nonlinearities to train the kth layer y k+1 The output of can be written as follows (where y 1 =x is the input to the DNN). y k+1 =g k (W k yk +b k )
[0018] We use layers {W1,…,W L} into the LDR matrix
number
number
number
[0019] Here, the displacement r k are the selected parameters. k A smaller σ means more compression and computational efficiency. Alternatively, the LDR can also be determined by an equivalent but alternative formula:
number
[0020] With different choices of A, B, the LDR structure is versatile enough to cover a whole host of other structures such as Toeplitz, circulant, and Hankel matrices. For the proposal that illustrates the invention, we use the first formula for the quantile rank. To obtain such an approximation, the proposed approach considers an approximate training set X={x1,...,x T}, and the approximate training set can be selected as a subset of the original training set used to train a given DNN, or as an example set on the DNN it is supposed to operate on. Using the approximate training set X, it is possible to obtain the outputs and inputs of each layer of the original pre-trained DNN. For a given example x in the approximate set X, t The input and output of the kth layer of
number
number
[0021] The above problem can be approximately solved by using a stochastic gradient descent algorithm. The sum terms are being minimized. The equality constraints of the above problem can be handled using an inversion formula from "Inversion of Displacement Operators" by Pan and Wang. An exemplary overall architecture for compressing a neural network is shown in Figure 1. The figure shows the DNN training stages involved in training a DNN on given training data. The next block is the weight matrix {W1, ..., W L}, bias {b1,…,b L}, and nonlinearities {g1,…,g L} as input, as well as an approximate training set X={x1,…,x T} and may work with an approximation training set that is independent of the training set. The first sub-step within the LDR-based compression block is the LDR-based approximation, which is the object of the present invention.
[0022] After this, the weight matrix G k and H k is quantized, which is then lossless coefficient compressed layer-wise.
[0023] This results in a bitstream that can be stored or transmitted. The resulting bitstream, along with the metadata, is then processed using the matrices A, B, and the bias vectors {b1, ..., b L A description of the nonlinearity is sent along with the metadata. The compressed bitstream is decompressed using the metadata and the DNN is loaded into memory to infer test data for the application at hand.
[0024] 1 Encoder Figure 2 shows the LDR-based approximation subblock of Figure 1 in detail. The layer-by-layer LDR approximation is performed on an approximate training set X = {x1, ..., x T} can be used to obtain them in parallel, as shown in FIG.
[0025] The LDR approximation of a pre-trained DNN in an encoder is illustrated in Figure 3. Using the approximate training set X, we can obtain the outputs and inputs of each layer of the original pre-trained DNN. For a given example x in the approximation set X, t The input and output of the kth layer of
number
[0026] Step 103 is further explained in Figure 4. For each layer, the approximation set can be split into batches and several iterations or epochs can be run over the entire set (204). For each iteration, we access the current batch of input / output data for that layer (201) and solve the minimization problem of Figure (1) on this dataset (202), as well as the matrix G k and H k But it is updated (203).
[0027] The termination criterion (204) can be based on the number of training steps associated with the number of epochs, or on the matrix G of successive training steps. k and H k are numerically close to each other for the selected parameters, the matrix G k and H k is output for all k.
[0028] This parallel version allows G k and H k After the matrix modification, efficient calculations are possible without taking into account the unupdated inputs to the subsequent layers. The parallel version first processes the inputs and outputs of each layer of the original network, which have been obtained once, and updates the layers in parallel using those inputs and outputs. The serial version is described as a variant later in this description. As a variant, the output of each layer k can be updated using the training data, so that the LDR calculation of layer k+1 can be performed using the appropriate inputs.
[0029] 2 Decoder To decode the generated bitstream, a compatible decoder needs to perform a decompression step. Figure 5 details the different steps. The symbols of the input bitstream are first taken from the entropy decoding engine 301 and then dequantized (302). For each layer (305), the dequantized matrices are accessed (303) and each matrix
number
[0030] Therefore, in order to decode and obtain the reconstructed DNN, it will be necessary to include the proposed method in a decoder that will implement a standard compression scheme, such as the future MPEG NNR standard.
[0031] In one variation, using one of the frameworks described above, it is possible to use a different A and B for each layer. This would change the metadata that needs to be sent from the encoder. While decoding a layer, the decoder would use that layer's specific A and B.
[0032] In a second variant, the LDR approximation can also be performed in a successive manner, where the next layer is approximated by taking into account the approximation in the previous layer.
[0033] One embodiment of a method 600 using the general aspects described herein is shown in Figure 6. The method begins at start block 601 and control passes to function block 610, which obtains information representing the weights, biases, and nonlinearities of the deep neural network, as well as an approximate training set for the deep neural network. Control then passes from block 610 to block 620, which uses the information and the approximate training set to generate an output matrix for the information of a layer of the deep neural network. Control then passes from block 620 to block 630, which updates the output matrix of an additional layer by iteratively using the output matrix of a previous layer of the deep neural network, and the approximate training set, to generate coefficients representing the output matrix, until the minimization criterion for that layer is met, and until the last layer is reached. Control then passes from block 630 to block 640, which performs quantization and entropy coding on the coefficients.
[0034] One embodiment of a method 700 employing the general aspects described herein is shown in Figure 7. The method begins at start block 701 and control passes to function block 710 which performs entropy decoding on data from the bitstream. Control then passes from block 710 to block 720 which performs inverse quantization on the entropy decoded data. Control then passes from block 720 to block 730 which repeatedly obtains inverse quantized matrices representing the deep neural network until the last layer is reached to build a weight matrix.
[0035] 8 illustrates one embodiment of an apparatus 800 for compressing, encoding, or decoding a deep neural network in a bitstream. The apparatus may include a processor 810 and may be interconnected to a memory 820 via at least one port. Both the processor 810 and the memory 820 may also have one or more additional interconnections to external connections.
[0036] The processor 810 is also configured to either insert or receive the parameters into the bitstream and to either compress, encode, or decode the deep neural network using the parameters.
[0037] This application describes various aspects, including tools, features, embodiments, models, approaches, and the like. Many of these aspects are described to illustrate specificity, or at least individual characteristics, and are described in a manner that may often sound limiting. However, this is for clarity of description and does not limit the application or scope of these aspects. In fact, all of the different aspects can be combined and interchanged to provide further aspects. Additionally, these aspects can also be combined and interchanged with aspects described in previous applications.
[0038] The aspects described and contemplated in this application can be implemented in many different forms. Figures 9, 10, and 11 provide some embodiments, but other embodiments are contemplated, and discussion of Figures 9, 10, and 11 is not intended to limit the scope of implementations. At least one of these aspects generally relates to video encoding and decoding, and at least one other aspect generally relates to transmitting a generated or encoded bitstream. These and other aspects can be implemented as a method, an apparatus, a computer-readable storage medium having stored thereon instructions for encoding or decoding video data according to any of the described methods, and / or a computer-readable storage medium having stored thereon a bitstream generated according to any of the described methods.
[0039] In this application, the terms "reconstructed" and "decoded" may be used interchangeably, the terms "pixel" and "sample" may be used interchangeably, and the terms "image", "picture", and "frame" may be used interchangeably. Typically, but not necessarily, the term "reconstructed" is used on the encoder side while "decoded" is used on the decoder side.
[0040] Various methods are described herein, each of which includes one or more steps or acts for achieving the described method. Unless a specific order of steps or acts is required for the correct operation of the method, the order and / or use of specific steps and / or acts may be varied or combined.
[0041] Various methods and other aspects described in the present application may be used to modify modules, such as intra prediction modules, entropy coding modules, and / or decoding modules (160, 360, 145, 330) of video encoder 100 and decoder 200, as shown in Figures 9 and 10. Furthermore, the aspects are not limited to VVC or HEVC, but may be applied to other standards and recommendations, whether existing or developed in the future, and extensions of any such standards and recommendations (including VVC and HEVC). Unless otherwise indicated or technically excluded, the aspects described in the present application may be used individually or in combination.
[0042] Various numerical values are used in this application. The specific values are for illustrative purposes and the described aspects are not limited to these specific values.
[0043] 9 shows an encoder 100. Variations of this encoder 100 are envisioned, but the encoder 100 is described below for clarity without describing all possible variations.
[0044] Before being encoded, a video sequence may undergo a pre-encoding process (101), such as applying a color transformation to the input color picture (e.g., from RGB 4:4:4 to YCbCr 4:2:0) or performing a remapping of the input picture components to obtain a signal distribution that is more resilient to compression (e.g., using histogram equalization of one of the color components). Metadata can be attached to the bitstream associated with the pre-processing.
[0045] In the encoder 100, a picture is coded by the encoder elements as described below. The picture to be coded is divided (102) and processed, for example, in units of CUs. Each unit is coded, for example, using either intra mode or inter mode. When a unit is coded in intra mode, intra prediction is performed (160). In inter mode, motion estimation (175) and motion compensation (170) are performed. The encoder decides (105) whether intra mode or inter mode is used to code the unit, and indicates the intra / inter decision, for example, by a prediction mode flag. A prediction residual is calculated, for example, by subtracting (110) the predicted block from the original image block.
[0046] The prediction residual is then transformed (125) and quantized (130). The quantized transform coefficients, as well as the motion vectors and other syntax elements, are entropy coded (145) to output a bitstream. The encoder may skip the transform and apply quantization directly to the untransformed residual signal. The encoder may bypass both the transform and quantization, i.e., the residual is coded directly without applying a transform or quantization process.
[0047] The encoder decodes the coded block to provide a reference for further prediction. The quantized transform coefficients are dequantized (140) and inverse transformed (150) to decode the prediction residual. The decoded prediction residual is combined (155) with the predicted block to reconstruct an image block. An in-loop filter (165) is applied to the reconstructed picture, for example to perform deblocking / SAO (sample adaptive offset) filtering to reduce coding artifacts. The filtered image is stored in a reference picture buffer (180).
[0048] Figure 10 shows a block diagram of a video decoder 200. In the decoder 200, the bitstream is decoded by elements of the decoder as described below. The video decoder 200 generally performs a decoding pass that is the inverse of the encoding pass as described in Figure 9. The encoder 100 also generally performs video decoding as part of the encoding of the video data.
[0049] In particular, the input of the decoder includes a video bitstream, which may be generated by the video encoder 100. First, the bitstream is entropy decoded (230) to obtain transform coefficients, motion vectors, and other coded information. Picture partition information indicates how the picture is partitioned. Thus, the decoder can partition the picture according to the decoded picture partition information (235). The transform coefficients are inverse quantized (240) and inverse transformed (250) to decode the prediction residual. The decoded prediction residual is combined with a predicted block (255) to reconstruct an image block. The predicted block may be obtained from intra prediction (260) or motion compensated prediction (i.e., inter prediction) (275) (270). An in-loop filter (265) is applied to the reconstructed image. The filtered image is stored in a reference picture buffer (280).
[0050] The decoded picture may further undergo post-decoding processing (285), such as an inverse color conversion (e.g., from YCbCr 4:2:0 to RGB 4:4:4) or inverse remapping that reverses the remapping process performed in the pre-encoding process (101). The post-decoding process may use metadata derived in the pre-encoding process and signaled in the bitstream.
[0051] FIG. 11 illustrates a block diagram of an example of a system in which various aspects and embodiments are implemented. System 1000 may be embodied as a device including various components described below and configured to perform one or more of the aspects described herein. Examples of such devices include, but are not limited to, various electronic devices such as personal computers, laptop computers, smartphones, tablet computers, digital multimedia set-top boxes, digital television receivers, personal video recording systems, connected home appliances, and servers. The elements of system 1000, either alone or in combination, may be embodied in a single integrated circuit (IC), multiple ICs, and / or separate components. For example, in at least one embodiment, the processing and encoder / decoder elements of system 1000 are distributed across multiple ICs and / or separate components. In various embodiments, system 1000 is communicatively coupled to one or more other systems or to other electronic devices, for example, via a communication bus or through dedicated input and / or output ports. In various embodiments, system 1000 is configured to implement one or more of the aspects described herein.
[0052] The system 1000 includes at least one processor 1010 configured to execute loaded instructions, for example, to implement various aspects described herein. The processor 1010 may include embedded memory, input / output interfaces, and various other circuits, as known in the art. The system 1000 includes at least one memory 1020 (e.g., a volatile memory device and / or a non-volatile memory device). The system 1000 includes a storage device 1040, which may include non-volatile memory and / or volatile memory, including, but not limited to, electrically erasable programmable read-only memory (EEPROM), read-only memory (ROM), programmable read-only memory (PROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash, magnetic disk drive, and / or optical disk drive. The storage device 1040 may include, by way of non-limiting example, an internal storage device, an attached storage device (including removable and non-removable storage devices), and / or a network-accessible storage device.
[0053] The system 1000 includes an encoder / decoder module 1030 configured to process data to provide, for example, encoded or decoded video, which may include its own processor and memory. The encoder / decoder module 1030 represents a module or modules that may be included in a device that performs encoding and / or decoding functions. As is known, a device may include one or both of an encoding and decoding module. Furthermore, the encoder / decoder module 1030 may be implemented as a separate element of the system 1000 or may be incorporated within the processor 1010 as a combination of hardware and software, as is known to those skilled in the art.
[0054] Program code loaded into the processor 1010 or the encoder / decoder 1030 to perform various aspects described herein may be stored in the storage device 1040 and subsequently loaded into the memory 1020 for execution by the processor 1010. According to various embodiments, one or more of the processor 1010, the memory 1020, the storage device 1040, and the encoder / decoder module 1030 may store one or more of various items during execution of the processes described herein. Such stored items may include, but are not limited to, input video, decoded video or portions of decoded video, bitstreams, matrices, variables, and intermediate or final results from the processing of equations, expressions, operations, and computational logic.
[0055] In some embodiments, memory internal to the processor 1010 and / or the encoder / decoder module 1030 is used to store instructions and provide working memory for processing required during encoding or decoding. However, in other embodiments, memory external to the processing device (e.g., the processing device may be either the processor 1010 or the encoder / decoder module 1030) is used for one or more of these functions. The external memory may be the memory 1020 and / or the storage device 1040, e.g., dynamic volatile memory and / or non-volatile flash memory. In some embodiments, an external non-volatile flash memory is used to store, for example, the television's operating system. In at least one embodiment, a high-speed external dynamic volatile memory such as a RAM is used as working memory for video coding and decoding operations such as MPEG-2 (MPEG stands for Moving Picture Experts Group, MPEG-2 is also referred to as ISO / IEC 13818, 13818-1 is also known as H.222, and 13818-2 is also known as H.262), HEVC (HEVC stands for High Efficiency Video Coding, also known as H.265 and MPEG-H Part 2), or VVC (Versatile Video Coding, a new standard developed by JVET, i.e. the Joint Video Experts Team).
[0056] Inputs to the elements of system 1000 may be provided through various input devices as shown in block 1130. Such input devices include, but are not limited to, (i) a radio frequency (RF) section that receives, for example, an RF signal transmitted over the air by a broadcast station, (ii) a component (COMP) input terminal (or set of COMP input terminals), (iii) a universal serial bus (USB) input terminal, and / or (iv) a high definition multimedia interface (HDMI) input terminal. Other examples not shown in FIG. 11 include composite video.
[0057] In various embodiments, the input devices of block 1130 have associated respective input processing elements as known in the art. For example, the RF section may be associated with elements suitable for (i) selecting a desired frequency (also referred to as selecting a signal or band-limiting a signal to a frequency band), (ii) down-converting the selected signal, (iii) band-limiting again to a narrower frequency band to select a signal frequency band, which in certain embodiments may be referred to as a channel (for example), (iv) demodulating the down-converted, band-limited signal, (v) performing error correction, and (vi) demultiplexing to select a desired data packet stream. The RF section of various embodiments includes one or more elements that perform these functions, e.g., a frequency selector, a signal selector, a band limiter, a channel selector, a filter, a down-converter, a demodulator, an error corrector, and a demultiplexer. The RF section may include, for example, a tuner that performs various of these functions, including down-converting a received signal to a lower frequency (e.g., an intermediate frequency or a frequency close to baseband) or to baseband. In one set-top box embodiment, the RF section and its associated input processing elements perform frequency selection by receiving, filtering, downconverting, and filtering again to a desired frequency band an RF signal transmitted over a wired (e.g., cable) medium. In various embodiments, the order of the above (and other) elements is rearranged, some of these elements are removed, and / or other elements that perform similar or different functions are added. Adding elements can include inserting elements between existing elements, such as inserting amplifiers and analog-to-digital converters. In various embodiments, the RF section includes an antenna.
[0058] Additionally, the USB and / or HDMI terminals may include respective interface processors for connecting the system 1000 to other electronic devices via USB and / or HDMI connections. It should be understood that various aspects of the input processing, e.g., Reed-Solomon error correction, may be implemented, for example, in a separate input processing IC or in the processor 1010, as desired. Similarly, aspects of the USB or HDMI interface processing may be implemented in a separate interface IC or in the processor 1010, as desired. The demodulated, error corrected, and demultiplexed stream is provided to various processing elements, including, for example, the processor 1010 and an encoder / decoder 1030, which operates in combination with memory and storage elements to process the data stream as desired for display on an output device.
[0059] The various elements of system 1000 may be provided within a unitary housing in which the various elements are interconnected and can transmit data between them using suitable connection configurations, e.g., internal buses as are known in the art, including the Inter-IC (I2C) bus, hardwired, and printed circuit boards.
[0060] The system 1000 includes a communication interface 1050 that enables communication with other devices over a communication channel 1060. The communication interface 1050 may include, but is not limited to, a transceiver configured to transmit and receive data over the communication channel 1060. The communication interface 1050 may include, but is not limited to, a modem or a network card, and the communication channel 1060 may be implemented in a wired and / or wireless medium, for example.
[0061] Data is streamed or otherwise provided to the system 1000 in various embodiments using a wireless network such as a Wi-Fi network, e.g., IEEE 802.11 (IEEE refers to the Institute of Electrical and Electronics Engineers). The Wi-Fi signal in these embodiments is received via a communication channel 1060 and a communication interface 1050 adapted for Wi-Fi communication. The communication channel 1060 in these embodiments is typically connected to an access point or router that provides access to external networks, including the Internet, enabling streaming applications and other over-the-top communications. Other embodiments provide streamed data to the system 1000 using a set-top box that delivers data via an HDMI connection in the input block 1130. Still other embodiments provide streamed data to the system 1000 using an RF connection in the input block 1130. As noted above, various embodiments provide data in a non-streaming manner. Additionally, various embodiments use wireless networks other than Wi-Fi, e.g., a cellular network or a Bluetooth network.
[0062] The system 1000 can provide output signals to various output devices, including a display 1100, speakers 1110, and other peripheral devices 1120. The display 1100 of various embodiments includes, for example, one or more of a touch screen display, an organic light emitting diode (OLED) display, a curved display, and / or a foldable display. The display 1100 can be for a television, a tablet, a laptop, a mobile phone, or other device. The display 1100 can also be integrated with other components (e.g., as in a smartphone) or can be separate (e.g., an external monitor for a laptop). The other peripheral devices 1120 include, in various example embodiments, one or more of a stand-alone digital video disc (or digital versatile disc) (both terms DVR), a disc player, a stereo system, and / or a lighting system. Various embodiments use one or more peripheral devices 1120 that provide functionality based on the output of the system 1000. For example, a disc player performs the function of playing the output of the system 1000.
[0063] In various embodiments, control signals are communicated between the system 1000 and the display 1100, speaker 1110, or other peripheral devices 1120 using signaling such as AV.Link, Consumer Electronics Control (CEC), or other communication protocols that allow inter-device control with or without user intervention. The output devices may be communicatively coupled to the system 1000 via dedicated connections through respective interfaces 1070, 1080, and 1090. Alternatively, the output devices may be connected to the system 1000 using a communication channel 1060 via the communication interface 1050. The display 1100 and speaker 1110 may be integrated into a single unit with other components of the system 1000 in an electronic device such as, for example, a television. In various embodiments, the display interface 1070 includes a display driver, such as, for example, a timing controller (T Con) chip.
[0064] The display 1100 and speakers 1110 may alternatively be separate from one or more of the other components, for example, if the RF section of the input 1130 is part of a separate set-top box. In various embodiments in which the display 1100 and speakers 1110 are external components, the output signal may be provided via a dedicated output connection including, for example, an HDMI port, a USB port, or a COMP output.
[0065] The embodiments may be executed by the processor 1010 or by computer software implemented by hardware or by a combination of hardware and software. As a non-limiting example, the embodiments may be implemented by one or more integrated circuits. The memory 1020 may be of any type suitable for the technical environment and may be implemented using any suitable data storage technology, such as, as non-limiting examples, optical memory devices, magnetic memory devices, semiconductor-based memory devices, fixed memories, and removable memories. The processor 1010 may be of any type suitable for the technical environment and may include, as non-limiting examples, one or more of a microprocessor, a general-purpose computer, a special-purpose computer, and a processor based on a multi-core architecture.
[0066] Various implementations involve decoding. "Decoding" as used herein can encompass all or part of the processes performed on a received encoded sequence to generate a final output suitable for display, for example. In various embodiments, such processes include one or more of the processes typically performed by a decoder, such as entropy decoding, inverse quantization, inverse transform, and differential decoding. In various embodiments, such processes also or alternatively include processes performed by the decoders of the various implementations described herein.
[0067] As a further example, in one embodiment, "decoding" refers to entropy decoding only, in another embodiment, "decoding" refers to differential decoding only, and in another embodiment, "decoding" refers to a combination of entropy and differential decoding. Whether the phrase "decoding process" is intended to refer specifically to a subset of operations or to the broader decoding process in general will be clear based on the context of a particular description and will be well understood by one of ordinary skill in the art.
[0068] Various implementations involve encoding. In a manner similar to the above discussion of "decoding," "encoding" as used herein can encompass all or part of the processes performed on an input video sequence to generate, for example, an encoded bitstream. In various embodiments, such processes include one or more processes typically performed by an encoder, such as partitioning, differential encoding, transforming, quantization, and entropy encoding. In various embodiments, such processes also or alternatively include processes performed by an encoder in the various implementations described herein.
[0069] As a further example, in one embodiment, "encoding" refers to only entropy encoding, in another embodiment, "encoding" refers to only differential encoding, and in another embodiment, "encoding" refers to a combination of differential and entropy encoding. Whether the phrase "encoding process" is intended to refer specifically to a subset of operations or to the broader encoding process in general will be clear based on the context of the particular description and will be well understood by one of ordinary skill in the art.
[0070] It should be noted that the syntax elements used herein are descriptive terms, and therefore they do not preclude the use of other syntax element names.
[0071] Where a diagram is presented as a flow diagram, it should be understood that it also provides a block diagram of the corresponding apparatus. Similarly, where a diagram is presented as a block diagram, it should be understood that it also provides a flow diagram of the corresponding method / process.
[0072] Various embodiments may refer to parametric models or rate-distortion optimization. In particular, during the encoding process, a balance or trade-off between rate and distortion is usually considered, often given computational complexity constraints. This may be measured through a rate-distortion optimization (RDO) metric, or through least mean squares (LMS), mean absolute error (MAE), or other such measures. Rate-distortion optimization is usually formulated as minimizing a rate-distortion function, which is a weighted sum of rate and distortion. There are different approaches to solving the rate-distortion optimization problem. For example, approaches are based on extensive testing of all encoding options, including all modes or coding parameter values considered, and can fully evaluate the coding cost and associated distortion of the reconstructed signal after coding and decoding. Faster approaches can also be used to reduce the encoding complexity, in particular by calculating approximate distortion based on a prediction or prediction residual signal rather than a reconstructed signal. A combination of these two approaches can also be used, such as by using approximate distortion only for some of the possible encoding options and full distortion for others. Other approaches evaluate only a subset of the possible encoding options. More generally, many approaches employ any of a variety of techniques to perform an optimization that is not necessarily a complete evaluation of both the coding cost and the associated distortion.
[0073] The implementations and aspects described herein may be implemented, for example, in a method or process, an apparatus, a software program, a data stream, or a signal. Even if discussed in the context of only a single implementation (e.g., discussed only as a method), the implementation of the discussed features may also be implemented in other forms (e.g., an apparatus or a program). The apparatus may be implemented, for example, in appropriate hardware, software, and firmware. The methods may be implemented, for example, in a processor, which refers generally to processing devices including, for example, computers, microprocessors, integrated circuits, or programmable logic devices. Processors also include communication devices, such as computers, mobile phones, portable / personal digital assistants ("PDAs"), and other devices that facilitate communication of information between end users.
[0074] References to "one embodiment" or "one implementation" or "one implementation," as well as other variations thereof, mean that a particular feature, structure, characteristic, etc. described in connection with an embodiment is included in at least one embodiment. Thus, the appearances of the phrases "in one embodiment" or "in one embodiment" or "in one implementation," as well as any other variations, in various places throughout this application are not necessarily all referring to the same embodiment.
[0075] Additionally, the application may refer to "determining" various portions of information. Determining the information may include, for example, one or more of evaluating the information, calculating the information, predicting the information, or retrieving the information from a memory.
[0076] Additionally, the application may refer to "accessing" various portions of information. Accessing information may include, for example, one or more of receiving information, retrieving information (e.g., from a memory), storing information, moving information, copying information, calculating information, determining information, predicting information, or evaluating information.
[0077] Additionally, the application may refer to "receiving" various portions of information. Receiving, like "accessing," is intended to be a broad term. Receiving information may include, for example, one or more of accessing information or retrieving information (e.g., from a memory). Additionally, "receiving" typically involves in some manner, for example, an operation such as storing information, processing information, transmitting information, moving information, copying information, erasing information, calculating information, determining information, predicting information, or evaluating information.
[0078] For example, in the case of "A / B," "A and / or B," and "at least one of A and B," it should be understood that the use of any of the following " / ," "and / or," and "at least one of" is intended to cover the selection of only the first listed option (A), or the selection of only the second listed option (B), or the selection of both options (A and B). As a further example, in the case of "A, B, and / or C" and "at least one of A, B, and C," such language is intended to cover the selection of only the first listed option (A), or the selection of only the second listed option (B), or the selection of only the third listed option (C), or the selection of only the first and second listed options (A and B), or the selection of only the first and third listed options (A and C), or the selection of only the second and third listed options (B and C), or the selection of all three options (A and B and C). This can be expanded to as many items as are listed, as would be apparent to one skilled in the art.
[0079] Also, as used herein, the word "signal" refers to, among other things, instructing a corresponding decoder to do something. For example, in a particular embodiment, an encoder signals a particular one of a plurality of transforms, coding modes, or flags. Thus, in one embodiment, the same transform, parameter, or mode is used at both the encoder side and the decoder side. Thus, for example, the encoder can transmit a particular parameter to the decoder (explicit signaling), so that the decoder can use the same particular parameter. Conversely, if the decoder already has a particular parameter as well as other parameters, signaling can be used without transmission (implicit signaling) to allow the decoder to easily recognize and select the particular parameter. By avoiding the transmission of any actual function, bit savings are realized in various embodiments. It should be seen that signaling can be achieved in various ways. For example, one or more syntax elements, flags, etc. are used in various embodiments to signal information to a corresponding decoder. Although the above is about the verb form of the word "signal", the word "signal" can also be used as a noun in this specification.
[0080] As will be apparent to one of ordinary skill in the art, implementations can generate a variety of signals formatted to carry information that can be, for example, stored or transmitted. Information can include, for example, instructions for performing a method or data generated by one of the described implementations. For example, a signal can be formatted to carry a bit stream of the described embodiments. Such a signal can be formatted, for example, as an electromagnetic wave (e.g., using a radio frequency portion of the spectrum) or as a baseband signal. Formatting can include, for example, encoding a data stream and modulating a carrier wave with the encoded data stream. The information that the signal carries can be, for example, analog or digital information. The signal can be transmitted over a variety of different wired or wireless links, as is known. The signal can be stored on a processor-readable medium.
[0081] Several embodiments are described across various claim categories and types. The features of these embodiments may be provided alone or in any combination. In addition, the embodiments may include one or more of the following features, devices, or aspects across various claim categories and types, alone or in any combination: A process or device that performs encoding and decoding using deep neural network compression of a pre-trained deep neural network. A process or device that performs encoding and decoding using information inserted into a bitstream representing parameters for implementing deep neural network compression of a pre-trained deep neural network that includes one or more layers. A process or device that performs encoding and decoding using information inserted into a bitstream representing parameters for implementing deep neural network compression of a pre-trained deep neural network until a compression criterion is reached. A bitstream or signal containing one or more of the described syntax elements, or variants thereof. A bitstream or signal including syntax conveying information generated according to any of the described embodiments. Creating and / or transmitting and / or receiving and / or decoding according to any of the described embodiments. A method, process, apparatus, instruction storage medium, data storage medium, or signal according to any of the described embodiments. Inserting in signaling syntax elements that allow a decoder to determine the coding mode used by the encoder in a manner that corresponds to that coding mode. Creating and / or transmitting and / or receiving and / or decoding a bitstream or signal comprising one or more of the described syntax elements, or variations thereof. A TV, set-top box, mobile phone, tablet, or other electronic device that performs the conversion method(s) according to any of the described embodiments. A TV, set-top box, mobile phone, tablet, or other electronic device that performs the determination of the conversion method(s) according to any of the described embodiments and displays the resulting image (e.g., using a monitor, screen, or other type of display). A TV, set-top box, mobile phone, tablet, or other electronic device that receives a signal containing encoded images and performs the conversion method(s) by selecting, band-limiting, or tuning (e.g., using a tuner) to a channel in accordance with any of the described embodiments. A TV, set-top box, mobile phone, tablet, or other electronic device that receives the signal containing the encoded image over the air (e.g., using an antenna) and performs the conversion method(s).
Claims
1. obtaining information representing weights, biases, and nonlinearities of a deep neural network and an approximate training set for said deep neural network; generating inputs and outputs for the at least one layer of the deep neural network based on the weights, biases, and nonlinearities of at least one layer and based on the approximate training set; determining an output matrix based on the obtained inputs and outputs of the at least one layer, the output matrix being used to derive a low-variance rank approximation of weights of the at least one layer, and determining the output matrix includes: generating a current output matrix for the at least one layer using the current batch of inputs and outputs of the at least one layer; and updating an output matrix generated in a previous iteration based on the current output matrix; repeating the generating and updating with the next batch until a minimization criterion is met for the at least one layer; and and performing quantization and entropy coding of coefficients of the output matrix.
2. 1. A processor comprising: obtaining information representing weights, biases, and nonlinearities of a deep neural network and an approximate training set for said deep neural network; generating inputs and outputs for the at least one layer of the deep neural network based on the weights, biases, and nonlinearities of at least one layer and based on the approximate training set; determining an output matrix based on the obtained inputs and outputs of the at least one layer, the output matrix being used to derive a low-variance rank approximation of weights of the at least one layer, and determining the output matrix includes: generating a current output matrix for the at least one layer using the current batch of inputs and outputs of the at least one layer; and updating an output matrix generated in a previous iteration based on the current output matrix; repeating the generating and updating with the next batch until a minimization criterion is met for the at least one layer; and and performing quantization and entropy coding of coefficients of the output matrix.
3. The method of claim 1 , wherein the approximate training set comprises a subset of an original training set of the deep neural network.
4. 2. The method of claim 1 , wherein generating a current output matrix of the at least one layer using the current batch of inputs and outputs of the at least one layer comprises minimizing an error between a generated output of the at least one layer and a corresponding output obtained from a low-variance rank approximation of the weights.
5. Minimizing the error between the generated output of the at least one layer and the corresponding output obtained from the low-variance rank approximation of the weights is accomplished by: [0010] Under the above, the output matrix (G k , H k ) the sum of [0025] minimizing Where: [0030] is the element x of the approximate training set t is the output of the kth layer of [0045] is the input of the kth layer, A, B are predefined matrices, and b k is the bias of the kth layer, and g k is the nonlinearity of the kth layer, [0050] The method of claim 4 , wherein: ĥ is a low-variance rank approximation of the weights.
6. The apparatus of claim 2 , wherein the approximate training set comprises a subset of an original training set of the deep neural network.
7. 3. The apparatus of claim 2, wherein generating a current output matrix of the at least one layer using the current batch of inputs and outputs of the at least one layer comprises minimizing an error between a generated output of the at least one layer and a corresponding output obtained from a low-variance rank approximation of the weights.
8. Minimizing the error between the generated output of the at least one layer and the corresponding output obtained from the low-variance rank approximation of the weights is accomplished by: [006] Under the above, the output matrix (G k , H k ) the sum of [0070] minimizing Where: [0080] is the element x of the approximate training set t is the output of the kth layer of [0097] is the input of the kth layer, A, B are predefined matrices, and b k is the bias of the kth layer, and g k is the nonlinearity of the kth layer, [0089] The apparatus of claim 7 , wherein: x is a low-variance rank approximation of the weights.
9. A computer program comprising instructions which, when said program is executed by a computer, cause said computer to carry out the method according to any one of claims 1 and 3 to 5.
Citation Information
Patent Citations
Network coefficient compressing device, network coefficient compressing method and program
JP2019028746A
Processing artificial neural network weights
US20180239992A1
Image coding method, image decoding method, image coding device and image decoding device
WO2016199330A1
Data processing device, data processing method, and compressed data
WO2019008752A1
