A framework for encoding and decoding low-rank and shift-rank based layers of deep neural networks
Through low-shift rank coding and compression technology, the problem of high inference complexity of DNN on resource-limited devices is solved, and efficient compression and decompression of deep neural networks is achieved, which is suitable for mobile or embedded devices.
Patent Information
- Application Number
- CN202080030648.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-04-23
- Filing Date
- 2020-04-20
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-04-20
AI Technical Summary
The high performance of deep neural networks (DNN) in fields such as computer vision and speech recognition comes at the expense of large computational costs, resulting in inference complexity that is too high and difficult to implement on mobile or embedded devices with limited resources.
Through low displacement rank (LDR) encoding and compression technology, the pre-trained DNN layer weight matrix is replaced by the sum of a small number of structured matrices, and a syntax structure is used to convey the information required to decode and perform inference of the LDR encoding layer, including displacement rank, vector and matrix parameters to implement compression and decompression of deep neural networks.
It reduces the inference complexity, improves deep learning capabilities on resource-limited devices, and provides an effective method to compress and decompress deep neural networks, suitable for mobile or embedded devices.
Smart Images

Figure CN113728637B_ABST
Abstract
Description
Technical Field
[0001] At least one embodiment of the present invention generally relates to a method or apparatus for a deep neural network. Background Art
[0002] Deep neural networks (DNNs) have demonstrated state-of-the-art performance in a variety of domains such as computer vision, speech recognition, natural language processing, etc. However, this performance comes at a significant computational cost, as DNNs tend to have a large number of parameters, often in the millions, and sometimes even billions. This leads to prohibitively high inference complexity—the computational cost of applying a trained DNN to test data for inference. This high inference complexity is a major challenge in bringing the performance of DNNs to mobile or embedded devices, where, for example, mobile or embedded devices have resource constraints in terms of battery size, computational power, and memory capacity. Summary of the invention
[0003] The shortcomings and disadvantages of the prior art may be addressed by the general aspects described herein, which relate to intra-prediction mode partitioning in encoding and decoding.
[0004] According to a first aspect, a method is provided. The method comprises the following steps: obtaining information representing a displacement rank of a deep neural network; obtaining vector information representing weights and nonlinearity of a matrix for the deep neural network; obtaining parameters representing matrix operators for the deep neural network; and including the information representing the displacement rank, the vector information of the nonlinearity and the parameters representing the matrix operators in a bitstream; and transmitting the bitstream.
[0005] According to a second aspect, a method is provided. The method comprises the following steps: parsing a bit stream for information representing a layer of a deep neural network; using the information to generate a vector rank representing weights and nonlinearities of the deep neural network; and decoding the vector rank to obtain weight and nonlinearity information for the deep neural network.
[0006] According to another aspect, a device is provided. The device includes a processor. The processor can be configured to communicate information required to compress and decompress a deep neural network by performing any of the above methods.
[0007] According to another general aspect of at least one embodiment, there is provided an apparatus comprising an apparatus according to any of the decoding embodiments; and at least one of: (i) an antenna configured to receive a signal comprising a video block, (ii) a band limiter configured to limit the received signal to a frequency band comprising the video block, or (iii) a display configured to display an output representing the video block.
[0008] According to another general aspect of at least one embodiment, a non-transitory computer-readable medium is provided that contains 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 comprising 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, there is provided a computer program product comprising instructions which, 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 conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 An embodiment of an encoding method according to the described general aspects is shown.
[0014] Figure 2 One embodiment of a decoding method according to the described general aspects is shown.
[0015] Figure 3 One embodiment of an apparatus for encoding or decoding using intra-prediction mode extension is shown.
[0016] Figure 4 A general standard encoding scheme is shown.
[0017] Figure 5 A general standard decoding scheme is shown.
[0018] Figure 6 A typical processor arrangement is shown in which the described embodiments may be implemented. DETAILED DESCRIPTION
[0019] Deep neural networks (DNNs) have demonstrated state-of-the-art performance in a variety of domains such as computer vision, speech recognition, natural language processing, and other areas. However, this performance comes at a significant computational cost, as DNNs tend to have a large number of parameters, often running into millions and sometimes billions. This results in prohibitively high inference complexity—the computational cost of applying a trained DNN to test data for inference. This high inference complexity is a major challenge in bringing the performance of DNNs to mobile or embedded devices, which have resource constraints in terms of battery size, computational power, and memory capacity.
[0020] The general aspects described herein apply to the context of standards for compressing a pre-trained DNN that contains layers encoded / compressed using low displacement rate, as described in detail in an application titled “Computationally Efficient Low Displacement Rank Based Deep Neural Network Compression.”
[0021] The LDR (low displacement rank) approximation allows replacing the original layer weight matrices of a pre-trained DNN into a sum of a small number of structured matrices. This decomposition of the sum of structured matrices leads to simultaneous compression and low inference complexity, thus enabling the power of deep learning in resource-limited devices.
[0022] On the decoder side, inference of this layer can be performed in two ways, depending on the requirements of the decoding DNN:
[0023] - reconstructing said layer in its original structure,
[0024] - Directly infer the layer in its LDR form.
[0025] There is no existing compression framework for DNNs that requires syntax to specify LDR type layers for decoding or inference networks. Under the general aspects described herein, several embodiments of syntax structures and decoding processes for LDR layers are provided.
[0026] Use W k Represents a weight matrix {W1, ..., W L}, deviation {b1, ..., b L} and nonlinear {g1, ..., g L}. Using these weights, biases, and nonlinearities, the output y of the kth layer k+1 is written as [where y 1 = x is the input of DNN]
[0027] y k+1 =g k (W k y k +b k ), (1)
[0028] In the prior application, it was proposed to use LDR matrix To approximate W k , With low rank r k <<min{m,n}, then this means
[0029]
[0030] Among them, A and B are square matrices of size m×m and n×n respectively, and G k is an m×r k Matrix, H k is an n×r k Matrix, and m, n are the original weight matrices W k Here, the displacement r k is the parameter of choice. k This means greater compression and computational efficiency.
[0031] Then, the resulting bitstream a contains the matrix G k and The decoded version of the operator A and B, the information about the operator A and B, and the potential deviation vector {b1, ..., b L}, and a description of the nonlinearity sent.
[0032] It is inferred that the decoded matrix can be directly applied, rather than representing the reconstruction of the decoded matrix computed back to its original structure
[0033] This requires signaling and describing the type of the layer so that appropriate matrix operations can be performed at inference time.
[0034] Under the general aspects described herein, it is proposed to define a syntax structure that conveys the information needed to decode and perform inference of an LDR coding layer.
[0035] Next, consider an example using circulant matrices as operators A and B.
[0036] It can be shown that when using the above equation, It can be expressed as:
[0037]
[0038] where r is the displacement rank, Z f =(In-1 f ) is an f-circulant matrix, and g j and h j is the r vector in G and H above. The operator Z is defined as follows f,n,m :
[0039] For a vector v=(v1, ..., v m ) T , have
[0040]
[0041] J n represents an n×n reflection matrix, i.e. all anti-diagonal entries are 1 as follows:
[0042]
[0043] For low-rank approximation, LDR needs to store the weights included in G and H. In addition, it needs to obtain the loop parameters e and f.
[0044] Therefore, the information required to perform inference includes:
[0045] - displacement rank r,
[0046] -r vector g j and h j and / or the matrix G,
[0047] - Characterization matrix Z e and Z f Parameters e and f.
[0048] The low-rank factorization can be obtained (at the encoder) using the well-known singular value decomposition (SVD) method, which states that for any matrix Singular Value Decomposition
[0049] -W=U∑V T . U and V can be decomposed into U = [U1 U2] and V = [V1 V2], and Σ is a diagonal matrix containing the real non-negative singular values of A in descending order. Therefore Σ can be decomposed into And U1, and ∑1 have sizes m×r, r×n, and r×r, respectively.
[0050] -r is a parameter of choice. If r is equal to the actual rank of W, then there is equality, otherwise, the resulting operator Included in the approximation of W.
[0051] -storage The normal way to write where G and H are of size m×r and r×n T Corresponding to U1, Multiply by the square root of the diagonal values of ∑1.
[0052] The exemplary parsing process described in Table 1 will be performed, with the parsed syntax elements indicated in bold.
[0053] Table 1: Layer parsing process
[0054]
[0055] In Table 1, syntax elements are coded using the exemplary types of coding elements described below.
[0056] ae(v): context-adaptive arithmetic entropy coding syntax element.
[0057] b(8): A byte containing a bit string (8 bits) of any pattern. The parsing of this descriptor is specified by the return value of the function read_bits(8).
[0058] u(n): an unsigned integer using n bits. When n is "v" in the syntax table, the number of bits varies in a way that depends on the values of other syntax elements. The parsing process for this descriptor is specified by the return value of the function read_bits(n) interpreted as the binary representation of the unsigned integer with the most significant bit written first.
[0059] ue(v): an unsigned integer order-0 exponent-Golomb-coded syntax element with left bits leading.
[0060] Below, the different syntax elements introduced in Table 1 are described.
[0061] layer_type_idx specifies the type of the current layer LayerTypeIdx as specified in Table 2.
[0062] has_bias_flag equal to 0 specifies that the current layer does not contain any bias vector. has_bias_flag equal to 1 specifies that the current decoding layer contains bias.
[0063] adaptive_bitdepth_flag equal to 0 specifies that the current layer is quantized using the same QP as the rest of the network. adaptive_bitdepth_flag equal to 1 specifies that the current layer is coded using a specific qp.
[0064] bit_depth_weight specifies the bit depth of the weights of the current layer.
[0065] bit_depth_bias specifies the bit depth of the weights of the current layer.
[0066] e_parameter specifies the loop operator Z e =(I n-1 e ) parameter e.
[0067] f_parameter similarly specifies the loop operator Z f Parameter f.
[0068] rank specifies the low shift rank.
[0069] recorstruct_original_shape equal to 0 specifies that the LDR layer is parsed and the factorized representation is kept. recorstruct_original_shape equal to 1 triggers construction of the layer in its original shape input size (sizeInput) x output size (sizeOutput).
[0070] For example, for a convolutional layer, the function coefficient_coding() will correspond to the decoding process adopted in the compression standard to derive the weights of the different layers.
[0071] The description of LayerTypeIdx is given in Table 2, which is an exemplary table of indices that specify the type of layer to be parsed.
[0072] Table 2: Description of LayerTypeIdx
[0073] LayerTypeIdx Association Name 0 TYPE_FULLY_CONNECTED 1 TYPE_CONVOLUTION 2 TYPE_LOW_DISPLACEMENT_RANK 3 TYPE_LOW_RANK 4 TYPE_RECURRENT 5.. …
[0074] Then, the decoding process of a layer coded in LDR mode can be expressed as the function described next. The decoder needs to know the syntax A, B for decoding.
[0075] The input to the decoding stage is:
[0076] -Layer indexLayeIdx
[0077] -Input size sizeInput
[0078] -Output size sizeOutput
[0079] Vector g r and h r is the output of this process.
[0080] If LayerTypeIdx is equal to TYPE_LOW_DISPLAEMENT_RANK, the following applies:
[0081] Parse parameters e and f (e_circulant_parameter and f_circulant_parameter) and the rank sent.
[0082] Decode as a rank vector g using any method that may include techniques such as inverse quantization, pre-coding, and entropy decoding r and h r The weights stored.
[0083] Several variations are possible:
[0084] 1. As a variant, only LR is considered in future standards, which will remove the entry TYPE_LOW_DISPLACEMENT_RANK in the proposed syntax table.
[0085] 2. As another variation, only LDR may be considered.
[0086] 3. As another alternative, LR and LDR layer types in the same structure may be recombined at parsing time, additional flags may be added to indicate to the decoder the parsing loop parameters e and f and to apply the LDR structure operation at inference time.
[0087] 4. Considering the above variations, certain values of e and f can trigger low-rank approximation.
[0088] 5. In another embodiment, different operators A and B may be considered as operators. In the above description, it is assumed that the Toeplitz operator Z is selected, and loop parameters e and f need to be transmitted in addition to the weights.
[0089] In Table 3, the grammar is extended to enable the decoder to parse different structures:
[0090] Table 3: Alternative syntax for the extension operator
[0091]
[0092] In this case, rank is always required and does not depend on the type of operator.
[0093] The syntax element ldr_operator_idx is then parsed to derive which set of parameters needs to be parsed / decoded to decode the model, e.g., e_parameter and f_parameter in the case of a Toeplitz-like matrix. For example, when using a Hankel-like operator, Z is also involved. e and Z fTheir structure can then be derived using the same parameters as described in Table 3 and knowing the type of the operator LDROperatorIdx. However, the Vandermonde operator, for example, requires an analytical diagonal matrix, which would require an additional analytical module as described in Table 3. Other Cauchy-like operators can be handled by this analytical architecture.
[0094] The generally described aspects apply to compression of deep neural networks. The described embodiments are designed to present a syntax for a bitstream associated with the MPEG7 standard, for example, for compressed representation of neural networks. However, the described aspects are equally applicable to other such standards. When describing a bitstream, it should be understood that such a bitstream may be transmitted, communicated, stored, or otherwise used, and nothing in this description should be construed as limiting the use of the bitstream.
[0095] Figure 1 One embodiment of a method 100 using the general aspects described herein is shown. The method begins at a start block 101, and control proceeds to a function block 110 for obtaining information representing a displacement rank of a deep neural network. Control then proceeds from block 110 to block 120 for obtaining vector information representing weights and nonlinearities of a matrix for a deep neural network. Control then proceeds from block 120 to block 130 for obtaining parameters characterizing matrix operators for a deep neural network. Control then proceeds from block 130 to block 140 for including the information representing the displacement rank, the vector information of the nonlinearity, and the parameters characterizing the matrix operators in a bitstream. Control then proceeds from block 140 to block 150 for transmitting the bitstream.
[0096] Figure 2 One embodiment of a method 200 using the general aspects described herein is shown. The method begins at a start block 201 and control proceeds to a function block 210 for parsing a bitstream of information representing a layer of a deep neural network. Control then proceeds from block 210 to block 220 for using the information to generate a vector rank representing weights and nonlinearities of the deep neural network. Control then proceeds from block 220 to block 230 for decoding the vector rank to obtain weight and nonlinearity information for the deep neural network.
[0097] Figure 3 One embodiment of an apparatus 300 for compressing, encoding or decoding a deep neural network in a bitstream is shown. The apparatus includes a processor 310 and may be interconnected to a memory 320 via at least one port. Both the processor 310 and the memory 320 may also have one or more additional interconnections to external connections.
[0098] Processor 310 is also configured to insert or receive parameters in the bitstream and use the parameters to compress, encode or decode the deep neural network.
[0099] The present application describes a number of aspects, including tools, features, embodiments, models, methods, etc. Many of these aspects are described as having specificity, and at least in order to illustrate individual characteristics, are usually described in a manner that may sound limited. However, this is for the purpose of describing clearly, and does not limit the application or scope of those aspects. In fact, all different aspects can be combined and interchanged to provide other aspects. In addition, these aspects can also be combined and interchanged with the aspects described in earlier documents.
[0100] The aspects described and contemplated in this application can be implemented in many different forms. Figure 4 , 5 6 provide some embodiments, but other embodiments are contemplated and are Figure 4 , 5 The discussion of 6 does not limit the breadth of implementation. At least one aspect 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 methods, 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.
[0101] In this application, the terms "reconstruction" and "decoding" are used interchangeably, the terms "pixel" and "sample" are used interchangeably, and the terms "image", "picture" and "frame" are used interchangeably. Usually, but not necessarily, the term "reconstruction" is used on the encoder side, while "decoding" is used on the decoder side.
[0102] Various methods are described herein, and each method includes one or more steps or actions for implementing the described method. Unless a specific order of steps or actions is required for proper operation of the method, the order and / or use of specific steps and / or actions may be modified or combined.
[0103] The various methods and other aspects described in this application can be used to modify e.g. Figure 4 and Figure 5Modules of the video encoder 100 and decoder 200 shown, such as intra prediction, entropy coding and / or decoding modules (160, 360, 145, 330). In addition, aspects of the present invention are not limited to VVC or HEVC, and can be applied to, for example, other standards and recommendations, whether pre-existing or developed in the future, and extensions of any such standards and recommendations (including VVC and HEVC). Unless otherwise specified or technically excluded, the aspects described in this application can be used alone or in combination.
[0104] 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.
[0105] Figure 4 An encoder 100 is shown. Variations of the encoder 100 are contemplated, but for the sake of clarity, the encoder 100 is described below without describing all contemplated variations.
[0106] Before being encoded, the video sequence may undergo a pre-encoding process (101), for example, applying a color transform to the input color picture (e.g., conversion from RGB 4:4:4 to YCbCr 4:2:0), or performing a remapping of the input picture components in order to obtain a signal distribution that is more resilient to compression (e.g., using histogram equalization of one of the color components). Metadata may be associated with the pre-processing and appended to the bitstream.
[0107] In encoder 100, a picture is encoded by encoder elements as described below. The picture to be encoded is partitioned (102) and processed in units such as CUs. Each unit is encoded using, for example, intra or inter mode. When the unit is encoded in intra mode, it performs intra prediction (160). In inter mode, motion estimation (175) and compensation (170) are performed. The encoder decides (105) which of intra mode or inter mode to use to encode the unit, and indicates the intra / inter decision by, for example, a prediction mode flag. For example, a prediction residual is calculated by subtracting (110) the predicted block from the original image block.
[0108] The prediction residual is then transformed (125) and quantized (130). The quantized transform coefficients, along with 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 the transform and quantization, i.e., directly decode the residual without applying a transform or quantization process.
[0109] 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 image block is reconstructed by combining (155) the decoded prediction residual and the prediction block. An in-loop filter (165) is applied to the reconstructed image to perform, for example, deblocking / SAO (sample adaptive offset) filtering to reduce coding artifacts. The filtered image is stored in a reference picture buffer (180).
[0110] Figure 5 1 is a block diagram illustrating a video decoder 200. In the decoder 200, a bitstream is decoded by decoder elements as described below. The video decoder 200 generally performs the same Figure 4 The encoding pass described in is a decoding pass that is the inverse of the encoding pass described in . The encoder 100 also typically performs video decoding as part of encoding the video data.
[0111] In particular, the input to the decoder includes a video bitstream, which may be generated by the video encoder 100. The bitstream is first entropy decoded (230) to obtain transform coefficients, motion vectors, and other decoding information. Picture partition information indicates how the picture is partitioned. The decoder can therefore partition (235) the picture according to the decoded picture partition information. The transform coefficients are dequantized (240) and inverse transformed (250) to decode the prediction residual. The probe combines the decoded prediction residual with the prediction block (255) to reconstruct the image block. The prediction block can be obtained (270) from intra-frame prediction (260) or motion compensated prediction (i.e., inter-frame prediction) (275). An in-loop filter (265) is applied to the reconstructed image. The filtered image is stored in a reference picture buffer (280).
[0112] The decoded picture may further undergo post-decoding processing (285), such as an inverse color transform (e.g., conversion from YCbCr 4:2:0 to RGB 4:4:4) or inverse remapping that performs the inverse of 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.
[0113] Figure 6A block diagram of an example of a system in which various aspects and embodiments are implemented is shown. System 1000 can be implemented as a device including various components described below, and is configured to perform one or more aspects described herein. Examples of such devices include, but are not limited to, various electronic devices, such as personal computers, laptop computers, smart phones, tablet computers, digital multimedia set-top boxes, digital television receivers, personal video recording systems, connected household appliances and servers. The elements of system 1000 can be implemented individually or in combination in a single integrated circuit (IC), multiple ICs and / or discrete components. For example, in at least one embodiment, the processing and encoder / decoder elements of system 1000 are distributed on multiple ICs and / or discrete components. In various embodiments, system 1000 is coupled to one or more other systems or other electronic devices via, for example, a communication bus or by a dedicated input and / or output port communication. In various embodiments, system 1000 is configured to implement one or more aspects described herein.
[0114] The system 1000 includes at least one processor 1010, which is configured to execute instructions loaded therein, for implementing various aspects described herein, for example. The processor 1010 may include embedded memory, input and output interfaces, and various other circuits 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 a non-volatile memory and / or a volatile memory, including but not limited to an electrically erasable programmable read-only memory (EEPROM), a read-only memory (ROM), a programmable read-only memory (PROM), a random access memory (RAM), a dynamic random access memory (DRAM), a static random access memory (SRAM), a flash memory, a disk drive, and / or an optical drive. As a non-limiting example, the storage device 1040 may include an internal storage device, an attached storage device (including a removable and non-removable storage device), and / or a network-accessible storage device.
[0115] The system 1000 includes an encoder / decoder module 1030, which is configured to, for example, process data to provide encoded video or decoded video, and the encoder / decoder module 1030 may include its own processor and memory. The encoder / decoder module 1030 represents a module (one or more) that may be included in a device to perform encoding and / or decoding functions. As is known, a device may include one or both of the encoding and decoding modules. In addition, the encoder / decoder module 1030 may be implemented as a separate element of the system 1000 or may be incorporated into the processor 1010 as a combination of hardware and software as known to those skilled in the art.
[0116] Program code to be loaded onto the processor 1010 or the encoder / decoder 1030 to perform various aspects described in this document may be stored in the storage device 1040 and subsequently loaded onto 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 the execution of the processes described herein. These 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, formulas, operations, and operation logic.
[0117] In some embodiments, memory within 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 the processor 1010 or the encoder / decoder module 1030) is used for one or more of these functions. The external memory may be memory 1020 and / or a storage device 1040, such as a dynamic volatile memory and / or a non-volatile flash memory. In several embodiments, the external non-volatile flash memory is used to store, for example, an operating system for a television. In at least one embodiment, a fast external dynamic volatile memory such as RAM is used as working memory for video coding and decoding operations, such as working memory for MPEG-2 (MPEG refers to Moving Picture Experts Group, MPEG-2 is also known as ISO / IEC 13818, and 13818-1 is also known as H.222, and 13818-2 is also known as H.262), HEVC (HEVC refers to 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 (Joint Video Experts Team)).
[0118] Input 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 an RF signal transmitted over the air, for example, by a broadcaster, (ii) a component (COMP) input terminal (or a set of COMP input terminals), (iii) a universal serial bus (USB) input terminal, and / or (iv) a high-definition multimedia interface (HDMI) input terminal. Figure 6 Other examples not shown include composite video.
[0119] In various embodiments, the input device of block 1130 has associated corresponding input processing elements known in the art. For example, the RF portion may be associated with elements suitable for implementing the following functions: (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) again band-limiting to a narrower frequency band to select a signal frequency band that may be referred to as a channel in some embodiments, (iv) demodulating the down-converted and band-limited signal, (v) performing error correction, and (vi) demultiplexing to select a desired data packet stream. The RF portion of various embodiments includes one or more elements to perform these functions, such as 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 portion may include a tuner that performs various of these functions, including, for example, down-converting a received signal to a lower frequency (e.g., an intermediate frequency or a near-baseband frequency) or baseband. In a set-top box embodiment, the RF part and its relevant input processing element receive the RF signal that sends by wired (for example, cable) medium, and filter to the frequency band of expectation again by filtering, down-conversion and perform frequency selection.Various embodiments rearrange the order of above-mentioned (and other) elements, remove some in these elements, and / or add other elements that perform similar or different functions.Adding element can include and insert element between existing element, for example insert amplifier and analog-to-digital converter.In various embodiments, the RF part comprises antenna.
[0120] In addition, the USB and / or HDMI terminals may include corresponding 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 input processing (e.g., Reed-Solomon error correction) may be implemented as needed, for example, in a separate input processing IC or processor 1010. Similarly, various aspects of USB or HDMI interface processing may be implemented as needed, in a separate interface IC or in processor 1010. The demodulated, error-corrected, and demultiplexed streams are provided to various processing elements (including, for example, processor 1010 and encoder / decoder 1030), which operate in conjunction with memory and storage elements to process the data streams as needed for presentation on output devices.
[0121] The various components of system 1000 may be disposed within an integrated housing. The various components may be interconnected and transfer data between them using suitable connection arrangements such as internal buses (including inter-IC (I2C) buses), wiring, and printed circuit boards known in the art.
[0122] The system 1000 includes a communication interface 1050 that enables communication with other devices via a communication channel 1060. The communication interface 1050 may include, but is not limited to, a transceiver configured to send and receive data through 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, for example, within a wired and / or wireless medium.
[0123] In various embodiments, data is streamed or otherwise provided to the system 1000 using a wireless network, such as a Wi-Fi network, such as IEEE 802.11 (IEEE refers to the Institute of Electrical and Electronics Engineers). The Wi-Fi signals of these embodiments are received through a communication channel 1060 and a communication interface 1050 suitable for Wi-Fi communication. The communication channel 1060 of these embodiments is typically connected to an access point or router that provides access to external networks including the Internet to allow streaming applications and other over-the-top communications. Other embodiments use a set-top box that transmits data through an HDMI connection of the input box 1130 to provide streaming data to the system 1000. Still other embodiments use an RF connection of the input box 1130 to provide streaming data to the system 1000. As described above, various embodiments provide data in a non-streaming manner. In addition, various embodiments use a wireless network other than Wi-Fi, such as a cellular network or a Bluetooth network.
[0124] System 1000 can provide output signals to various output devices, including display 1100, speaker 1110 and other peripheral devices 1120. Display 1100 of various embodiments includes one or more of the following: for example, touch screen display, organic light emitting diode (OLED) display, curved display and / or foldable display. Display 1100 can be used for TV, tablet computer, laptop computer, cellular phone (mobile phone) or other devices. Display 1100 can also be integrated with other components (for example, as in smart phone), or separately (for example, external monitor for laptop computer). In each example of each embodiment, other peripheral devices 1120 include one or more of the following: independent digital video disk (or digital versatile disk) (for both of these, referred to as DVR), disk player, stereo system and / or lighting system. Various embodiments use one or more peripheral devices 1120, which provide functions based on the output of system 1000. For example, the disk player performs the function of playing the output of system 1000.
[0125] In various embodiments, control signals are transmitted between the system 1000 and the display 1100, speaker 1110, or other peripheral device 1120 using signaling such as AV.link, consumer electronics control (CEC), or other communication protocols that implement device-to-device control with or without user intervention. Output devices can be communicatively coupled to the system 1000 via dedicated connections through corresponding interfaces 1070, 1080, and 1090. Alternatively, output devices can be connected to the system 1000 using communication channels 1060 via communication interface 1050. The display 1100 and speaker 1110 can be integrated into a single unit in an electronic device (e.g., a television) along with other components of the system 1000. In various embodiments, the display interface 1070 includes a display driver, such as a timing controller (T Con) chip.
[0126] For example, if the RF portion of input 1130 is part of a separate set-top box, the display 1100 and speaker 1110 may alternatively be separate from one or more of the other components. In various embodiments where the display 1100 and speaker 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.
[0127] These embodiments may be implemented by computer software implemented by the processor 1010 or hardware or 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 appropriate data storage technology, such as, as a non-limiting example, optical memory devices, magnetic memory devices, semiconductor-based memory devices, fixed memory, and removable memory. The processor 1010 may be of any type suitable for the technical environment and may include, as a non-limiting example, one or more of a microprocessor, a general-purpose computer, a special-purpose computer, and a processor based on a multi-core architecture.
[0128] Various implementations involve decoding. As used in the present application, "decoding" may include, for example, all or part of a process performed on a received coded sequence to produce a final output suitable for display. In various embodiments, such a process includes 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 a process also or alternatively includes a process performed by a decoder of the various implementations described in the present application.
[0129] As a further example, in one embodiment, "decoding" refers only to entropy decoding, in another embodiment, "decoding" refers only to differential decoding, and in another embodiment, "decoding" refers to a combination of entropy decoding and differential decoding. Whether the phrase "decoding process" is intended to refer specifically to a subset of operations or generally to a broader decoding process will be clear based on the context of the specific description and is believed to be well understood by those skilled in the art.
[0130] Various implementations involve encoding. In a manner similar to the above discussion of "decoding", "encoding" as used in this application may include, for example, all or part of a process performed on an input video sequence to produce an encoded bitstream. In various embodiments, such processes include one or more processes typically performed by an encoder, such as partitioning, differential encoding, transforms, quantization, and entropy encoding. In various embodiments, such processes also or alternatively include processes performed by encoders of the various implementations described in this application.
[0131] As a further example, in one embodiment, "encoding" refers only to entropy encoding, in another embodiment, "encoding" refers only to differential encoding, and in another embodiment, "encoding" refers to a combination of differential encoding and entropy encoding. Whether the phrase "encoding process" is intended to refer specifically to a subset of operations or generally to a broader encoding process will become clear based on the context of the specific description and is believed to be well understood by those skilled in the art.
[0132] Note that the syntax elements used here are descriptive terms. Therefore, they do not exclude the use of other syntax element names.
[0133] When a figure is presented as a flow chart, it should be understood that it also provides a block diagram of the corresponding apparatus. Similarly, when a figure is presented as a block diagram, it should be understood that it also provides a flow chart of the corresponding method / process.
[0134] Various embodiments may relate to parameter models or rate-distortion optimization. In particular, during the encoding process, a balance or trade-off between rate and distortion is usually considered, usually given a constraint on computational complexity. It can be measured by rate-distortion optimization (RDO) metric, or by least mean square (LMS), mean absolute error (MAE) or other such measurements. Rate-distortion optimization is usually formulated as minimizing a rate-distortion function, which is a weighted sum of rate and distortion. There are different methods to solve the rate-distortion optimization problem. For example, these methods can be based on extensive testing of all coding options (including all considered modes or coding parameter values), with a complete evaluation of their decoding costs and the associated distortion of the reconstructed signal after encoding and decoding. Faster methods can also be used to save coding complexity, in particular, to calculate approximate distortion based on prediction or prediction residual signals rather than reconstructed signals. A mixture of these two methods can also be used, for example by using approximate distortion only for some possible coding options and full distortion for other coding options. Other methods only evaluate a subset of possible coding options. More generally, many approaches employ any of a variety of techniques to perform optimization, but optimization is not necessarily a complete assessment of both the coding cost and the associated distortion.
[0135] The implementations and aspects described herein may be implemented in, for example, a method or process, a device, a software program, a data stream, or a signal. Even if discussed only in the context of a single form of implementation (e.g., discussed only as a method), the implementation of the features discussed may also be implemented in other forms (e.g., a device or program). For example, a device may be implemented with appropriate hardware, software, and firmware. The method may be implemented in, for example, a processor, which generally refers to a processing device, including, for example, a computer, a microprocessor, an integrated circuit, or a programmable logic device. The processor also includes a communication device, such as a computer, a cellular phone, a portable / personal digital assistant ("PDA"), and other devices that facilitate information communication between end users.
[0136] References to "one embodiment" or "an embodiment" or "an implementation" or "an implementation" and other variations mean that a particular feature, structure, characteristic, etc. described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" or "in an implementation" or "in an implementation" and any other variations in various places in this application do not necessarily all refer to the same embodiment.
[0137] Additionally, the present application may refer to “determining” various information. Determining information may include one or more of the following: estimating information, calculating information, predicting information, or retrieving information from a memory, for example.
[0138] Furthermore, the present application may refer to "accessing" various information. Accessing information may include 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 estimating information.
[0139] Additionally, the present application may refer to "receiving" various information. Like "accessing," receiving 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). Furthermore, during operations such as storing information, processing information, sending information, moving information, copying information, erasing information, calculating information, determining information, predicting information, or estimating information, "receiving" is generally involved in one way or another.
[0140] It should be understood that, for example, in the case of "A / B," "A and / or B," and "at least one of A and B," use of any of the following " / ," "and / or," and "at least one of" is intended to encompass selection of only the first listed option (A), or only the second listed option (B), or 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 wording is intended to include selection of only the first listed option (A), or only the second listed option (B), or only the third listed option (C), or only the first and second listed options (A and B), or only the first and third listed options (A and C), or only the second and third listed options (B and C), or all three options (A and B and C). This can be extended to multiple items listed, as will be apparent to one of ordinary skill in this and related arts.
[0141] In addition, as used herein, the word "signaling" especially refers to a corresponding decoder indicating something. For example, in some embodiments, the encoder signals a specific one of multiple transforms, coding modes or flags. Thus, in one embodiment, the same transform, parameter or mode is used on both the encoder side and the decoder side. Therefore, for example, the encoder can send (explicit signaling) specific parameters to the decoder so that the decoder can use the same specific parameters. On the contrary, if the decoder already has specific parameters and other parameters, signaling can be used without sending (implicit signaling) to simply allow the decoder to know and select specific parameters. By avoiding the transmission of any actual function, bit saving is achieved in various embodiments. It should be understood that signaling can be implemented in various ways. For example, in various embodiments, one or more syntax elements, flags, etc. are used to signal information to the corresponding decoder. Although the foregoing relates to the verb form of the word "signaling", the word "signaling" can also be used as a noun in this article.
[0142] As will be apparent to one of ordinary skill in the art, implementations may generate various signals formatted to carry information that may be stored or transmitted, for example. The information may include, for example, instructions for executing a method, or data generated by one of the described implementations. For example, a signal may be formatted to carry a bitstream of the described embodiments. Such a signal may be formatted as, for example, an electromagnetic wave (e.g., using a radio frequency portion of a spectrum) or a baseband signal. Formatting may include, for example, encoding a data stream and modulating a carrier with the encoded data stream. The information carried by the signal may be, for example, analog or digital information. As is known, the signal may be transmitted over a variety of different wired or wireless links. The signal may be stored on a processor readable medium.
[0143] We have described multiple embodiments across various claim categories and types. Features of these embodiments may be provided individually or in any combination. In addition, embodiments may include one or more of the following features, devices, or aspects, alone or in any combination, across various claim categories and types:
[0144] A process or apparatus for communicating information related to performing encoding and decoding using deep neural network compression of a pre-trained deep neural network.
[0145] A process or apparatus for communicating information related to performing encoding and decoding that implements deep neural network compression of a pre-trained deep neural network including one or more layers using information inserted in a bitstream representing parameters.
[0146] A process or apparatus for communicating information related to performing encoding and decoding that implements deep neural network compression of a pre-trained deep neural network using information inserted in a bitstream representing parameters until a compression standard is met.
[0147] • A bitstream or signal comprising one or more of the described syntax elements or variations thereof.
[0148] • A bitstream or signal comprising syntax conveying information generated according to any of the described embodiments.
[0149] • Creating and / or sending and / or receiving and / or decoding according to any of the embodiments described.
[0150] • A method, process, apparatus, medium storing instructions, medium storing data, or signal according to any of the described embodiments.
[0151] • Inserting syntax elements in the signaling that enable the decoder to determine the coding mode in a manner corresponding to that used by the encoder.
[0152] • Creating and / or sending and / or receiving and / or decoding a bitstream or signal comprising one or more of the described syntax elements or variations thereof.
[0153] • A TV, set-top box, cell phone, tablet or other electronic device that performs the transformation method(s) according to any of the described embodiments.
[0154] A TV, set-top box, cell phone, tablet or other electronic device that performs the transformation method(s) determined according to any of the described embodiments and displays (e.g., using a monitor, screen or other type of display) the resulting image.
[0155] A TV, set-top box, cellular phone, tablet or other electronic device that selects, band-limits or tunes (e.g. using a tuner) a channel to receive a signal comprising an encoded image, and performs the transformation method(s) according to any of the described embodiments.
[0156] • A TV, set-top box, cell phone, tablet or other electronic device that receives over the air (eg, using an antenna) a signal including an encoded image and performs the transformation method(s).
Claims
1. A method for decoding a deep neural network DNN, include: For the layer of the DNN represented by the weight matrix, decode the following into a bitstream; displacement rank; a first matrix having a dimension based on a first dimension of the weight matrix and the shift rank; a second matrix having a dimension based on a second dimension of the weight matrix and the shift rank; as well as Characterize the parameters of the matrix operator, The first matrix, the second matrix and the parameters characterizing the matrix operator are used to generate a low shift rank LDR approximation of the weight matrix.
2. A device for decoding a deep neural network DNN, include: A processor configured to perform decoding of the DNN, comprising: For the layer of the DNN represented by the weight matrix, decode the following into a bitstream; displacement rank; a first matrix having a dimension based on a first dimension of the weight matrix and the shift rank; a second matrix having a dimension based on a second dimension of the weight matrix and the shift rank; and Characterize the parameters of the matrix operator, The first matrix, the second matrix and the parameters characterizing the matrix operator are used to generate an LDR approximation of the weight matrix.
3. The method according to claim 1, or the apparatus according to claim 2, wherein the following is decoded into the bit stream include: A syntax element indicating the type of the layer is coded.
4. A method or apparatus according to claim 3, if the type of the layer indicates that the weight matrix is to be approximated by the LDR approximation, decoding the following into the bitstream is performed: the displacement rank, the first matrix and the second matrix and the parameters characterizing the matrix operator.
5. A method for decoding a deep neural network DNN, include: For the layer of the DNN represented by the weight matrix, decode from the bitstream: displacement rank; a first matrix having a dimension based on a first dimension of the weight matrix and the shift rank; a second matrix having a dimension based on a second dimension of the weight matrix and the shift rank; as well as Characterize the parameters of the matrix operator, The first matrix, the second matrix and the parameters characterizing the matrix operator are used to generate an LDR approximation of the weight matrix.
6. A device for decoding a deep neural network DNN, include: A processor configured to perform decoding of the DNN, comprising: For the layer of the DNN represented by the weight matrix, decode from the bitstream: displacement rank; a first matrix having a dimension based on a first dimension of the weight matrix and the shift rank; a second matrix having a dimension based on a second dimension of the weight matrix and the shift rank; and Characterize the parameters of the matrix operator, The first matrix, the second matrix and the parameters characterizing the matrix operator are used to generate an LDR approximation of the weight matrix.
7. The method according to claim 5 or the apparatus according to claim 6, wherein decoding from the bit stream further include: A syntax element indicating the type of the layer is decoded.
8. The method according to claim 1 or 5, or the apparatus according to claim 2 or 6, wherein the parameters characterizing the matrix operator are parameters of a circulant matrix operator.
9. The method or apparatus of claim 8, wherein a particular value of the parameter of the circulant matrix operator indicates that the weight matrix is to be approximated by the LDR approximation.
10. The method according to claim 1 or 5, or the device according to claim 2 or 6, wherein the matrix operator is a Toeplitz operator.
11. The method according to claim 1 or 5, or the apparatus according to claim 2 or 6, wherein the matrix operator is a Hankel type operator.
12. The method according to claim 1 or 5, or the apparatus according to claim 2 or 6, wherein the matrix operator is a Vandermonde operator.
13. A non-transitory computer-readable medium comprising instructions which, when executed by at least one processor, cause the processor to perform the method according to any one of claims 1, 3-5, and 7-12.
14. A computer program product comprising instructions which, when executed by a computer, cause the computer to perform the method according to any one of claims 1, 3-5 and 7-12.
