EP4101166A1 - Systems and methods for encoding a deep neural network - Google Patents
Systems and methods for encoding a deep neural networkInfo
- Publication number
- EP4101166A1 EP4101166A1 EP21706099.5A EP21706099A EP4101166A1 EP 4101166 A1 EP4101166 A1 EP 4101166A1 EP 21706099 A EP21706099 A EP 21706099A EP 4101166 A1 EP4101166 A1 EP 4101166A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- codebook
- data
- bitstream
- encoding
- quantization
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/124—Quantisation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/0464—Convolutional networks [CNN, ConvNet]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/0495—Quantised networks; Sparse networks; Compressed networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/088—Non-supervised learning, e.g. competitive learning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/13—Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/46—Embedding additional information in the video signal during the compression process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- H04N19/94—Vector quantisation
Definitions
- the domain technical field of the one or more embodiments of the present disclosure is related to the technical domain of data processing, like for data compression and/or decompression.
- data compression/ decompression involving large volume of data like compression and/or decompression of at least a part of an audio and/or video stream, or like compression and/or decompression of data in link with Deep Learning techniques, like at least some parameters of a Deep Neural Network (DNN).
- DNN Deep Neural Network
- At least some embodiments relate to improving compression efficiency compared to existing video compression systems such as HEVC (HEVC refers to High Efficiency Video Coding, also known as H.265 and MPEG-H Part 2 described in "ITU-T H.265 Telecommunication standardization sector of ITU (10/2014), series H: audiovisual and multimedia systems, infrastructure of audiovisual services - coding of moving video, High efficiency video coding, Recommendation ITU-T H.265"), or compared to under development video compression systems such WC (Versatile Video Coding, a new standard being developed by JVET, the Joint Video Experts Team).
- HEVC refers to High Efficiency Video Coding, also known as H.265 and MPEG-H Part 2 described in "ITU-T H.265 Telecommunication standardization sector of ITU (10/2014), series H: audiovisual and multimedia systems, infrastructure of audiovisual services - coding of moving video, High efficiency video coding, Recommendation ITU-T H.265"
- WC Very Video Coding, a
- image and video coding schemes usually employ prediction, including spatial and/or motion vector prediction, and transforms to leverage spatial and temporal redundancy in the video content.
- intra or inter prediction is used to exploit the intra or inter frame correlation, then the differences between the original image and the predicted image, often denoted as prediction errors or prediction residuals, are transformed, quantized, and entropy coded.
- the compressed data are decoded by inverse processes corresponding to the entropy coding, quantization, transform, and prediction.
- At least some embodiments relate to improving compression efficiency compared to existing systems for compressing a Deep Neural Network (DNN), such as some compression standard or draft standard like the current upcoming standard ISO/MPEG7 of neural networks for multimedia content description and analysis currently developed by the International Organization for Standardization.
- DNN Deep Neural Network
- parameters of a DNN are quantized and entropy coded to obtain compressed data.
- the compressed data are decoded, the decoding processes including entropy decoding and inverse quantization.
- the present principles enable at least one of disadvantages of some known compression and/or decompression methods to be resolved by proposing a method comprising compressing data in at least one bitstream, data being for instance video data or one or more weights, also called parameters in the following, of at least one tensor of at least one layer or sub-layer of at least one Deep Neural Network.
- said compressing can comprise encoding in said bitstream at least one information representative of a kind of quantization performed on said data.
- said method is adapted to compress video data.
- said method is adapted to compress at least one weight of at least one tensor of at least layer or sub-layer of at least one Deep Neural Network.
- the representative information can permit to make a distinguish for instance between quantization of different kinds, including Uniform quantization and Codebook-based quantization.
- said representative information is adapted to indicate a use of a uniform quantization and/or a codebook-based quantization.
- said compressing can further comprise encoding in said bitstream at least one information representative of a codebook used for quantizing said data during said compressing.
- the present principles enable at least one of disadvantages of some known compression and/or decompression methods to be resolved by proposing a method comprising encoding quantized data in a bitstream according to at least one kind of quantization, said encoding comprising binarizing said quantized data, wherein a sign flag is conditionally encoded during said binarizing based on said kind of quantization.
- the present principles enable at least one of disadvantages of some known compression and/or decompression methods to be resolved by proposing a method comprising encoding quantized data in a bitstream, wherein said encoding comprises binarizing said quantized data, wherein when quantized data are based on a codebook, no sign flag is encoded during said binarizing .
- the present principles enable at least one of disadvantages of some known compression and/or decompression methods to be resolved by proposing a method comprising quantizing a data set by coding index values associated to said data set according to a codebook, said index values being coded as signed integers and said coded index values including at least one negative integer and at least one positive integer.
- the set of coded index values of said data set is centered around 0.
- said codebook is obtained by clustering said dataset and is sorted according to the size of clusters resulting from said clustering; and wherein one of two successive values of indexes of said sorted codebook is coded as a first positive integer and the other one of said two successive values of indexes of said sorted codebook is coded as a first negative integer.
- said first positive integer and said first negative integer have the same absolute value.
- said codebook is obtained by clustering said dataset and is sorted according to the size of clusters resulting from said clustering; and wherein the absolute value of a first coded index value that corresponds to a first cluster of said codebook is greater or equal to the absolute value of a second coded index value that corresponds to a second cluster of said codebook when the size of the first cluster is smaller than the size of the second cluster.
- said codebook is sorted decreasingly.
- said method comprises encoding said sorted codebook in said bitstream.
- said method comprises reordering said sorted codebook before said encoding.
- the present disclosure also proposes a method comprising decompressing a bitstream, for instance a bitstream representative of video data or representative of one or more parameters of at least one tensor of at least one layer or sub-layer of at least one Deep Neural Network.
- said decompressing can comprise extracting quantized form of data from said bitstream and decoding in said bitstream at least one information representative of a kind of quantization performed on said data.
- said method is adapted to decompress a bitstream representative of video data.
- said method is adapted to decompress a bitstream representative of at least one weight of at least one tensor of at least layer or sub-layer of at least one Deep Neural Network.
- the representative information can permit to make a distinguish for instance between quantization of different kinds, including Uniform quantization and Codebook-based quantization.
- said representative information is adapted to indicate a use of a uniform quantization and/or a codebook-based quantization on said quantized form of data.
- said decompressing can further comprise decoding in said bitstream at least one information representative of a codebook used for quantizing said data.
- the present principles enable at least one of disadvantages of some known compression and/or decompression methods to be resolved by proposing a method comprising decoding said bitstream to extract quantized form of data, said decoding taking account of a sign flag conditionally encoded in said bitstream based on a kind of quantization performed on said data.
- the present principles enable at least one of disadvantages of some known compression and/or decompression methods to be resolved by proposing a method comprising decoding a bitstream to extract quantized form of data, wherein when quantized data are based on a codebook, no sign flag is decoded.
- the present principles enable at least one of disadvantages of some known compression and/or decompression methods to be resolved by proposing a method comprising performing inverse quantizing from codebook-based quantized form of data extracted from said bitstream by decoding index values associated to said data according to a codebook, said index values being coded as signed integers and said coded index values including at least one negative integer and at least one positive integer.
- said method comprises decoding and/or reordering said codebook.
- an apparatus comprising a processor.
- the processor can be configured to compress a video stream and/or one or more parameters of at least one tensor of at least one layer of at least one Deep Neural Network in at least one bitstream, and/or to decompress a bitstream representative of a video stream and/or one or more parameters of at least one tensor of at least one layer of at least one Deep Neural Network, by executing any of the aforementioned methods.
- a device comprising 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 the input data, (ii) a band limiter configured to limit the received signal to a band of frequencies that includes the input data, or (iii) a display configured to display an output representative of a video block.
- a non- transitory computer readable medium containing data content generated according to any of the described encoding embodiments or variants.
- a signal comprising a video data and/or data representative of one or more parameters of at least one tensor of at least one layer or sub-layer of at least one Deep Neural Network, generated according to any of the described encoding embodiments or variants.
- a bitstream is formatted to include data content generated according to any of the described encoding embodiments or variants.
- a computer program product comprising instructions which, when the program is executed by a computer, cause the computer to carry out any of the described decoding embodiments or variants.
- Fig. 1 shows a generic, standard encoding scheme.
- Fig. 2 shows a generic, standard decoding scheme.
- Fig. 3 shows a typical processor arrangement in which the described embodiments niay be implemented
- Fig. 4 shows a binarization module of DeepCABAC, that can be used under the general aspects described herein.
- Fig. 5 illustrates a DNN encoding scheme using at least some embodiment of the encoding method of the present disclosure
- Fig. 6 illustrates a DNN decoding scheme using at least some embodiment of the decoding method of the present disclosure
- Fig. 7 illustrates a Probability Distribution Function (PDF) of parameter values for a fully connected layer of a neural network in an exemplary embodiment of the present disclosure.
- PDF Probability Distribution Function
- Fig. 8A illustrates an exemplary method for encoding data into a bistream, according to an embodiment.
- Fig. 8B illustrates an exemplary method for decoding data from a bistream, according to an embodiment.
- Fig. 9 shows two remote devices communicating over a communication network in accordance with an example of present principles.
- Fig. 10 shows the syntax of a signal in accordance with an example of present principles.
- Such processing can involve data compression and/or decompression of data, for a purpose a storage or of transmission of at least a part of such data for instance.
- Examples of compression and/or decompression of streams containing large amount of data can be found in the technical field of video processing, or in technical fields involving Deep Learning techniques.
- Embodiments of the present disclosure are detailed hereinafter in link with Deep Neural Networks (DNNs) as an exemplary and not limitative purpose. It is clear however that the present disclosure can also apply to the compression/decompression of other large amount of data, like in the technical field of video processing. For instance, the present disclosure can apply to the compression/decompression of a tensor obtained by a Deep Learning Algorithm from at least one image.
- DNNs Deep Neural Networks
- DNNs Deep Neural Networks
- This performance can come at the cost of massive computational cost as DNNs tend to have a huge number of parameters often running into millions, and sometimes even billions.
- inference is the deployment of a DNN, once trained, for processing input data, in view of their classification for instance.
- Inference complexity can be defined as the computational cost of applying trained DNN to input data for inference.
- Inference complexity can be defined as the computational cost of applying trained DNN to test data for inference.
- This high inference complexity can thus be an important challenge for using DNNs in environments involving an electronic device with limited hardware and/or software resource, for instance mobile or embedded devices with resource limitations like battery size, limited computational power, and memory capacity etc.
- Deep Neural Networks are made up of several layers.
- a layer is associated with a set of parameters that can be obtained for instance during a training of the DNN.
- These parameters (like Weights and/or Biases) are stored as multi-dimensional arrays (also referred to herein as “tensors”).
- tensors multi-dimensional arrays
- the term matrix can sometimes be used to denote the set of parameters of a given layer. It is to be understood, however, that some embodiments of the methods of the present disclosure can also be applied to tensors of parameters with more than two dimensions, such as 2D convolutional layers which usually contain 4D tensors of parameters.
- the huge number of parameters of DNNs can require a large bandwidth for deployment of DNNs (or solutions including DNNs) in distributed environments.
- At least some embodiments of the present disclosure apply to the compression and/or decompression (decoding) of at least some parameters of at least one DNN (for instance a pretrained DNN). Indeed, compression can facilitate the transmission and/or storage of the parameters of the at least one DNN. More precisely, at least some embodiments of the present disclosure apply to the compression of parameters of at least one tensor associated with at least one layer of at least one Deep Neural Network.
- the layers can be of different types.
- all the at least one layer can be convolutional layer(s), or fully connecter layer(s), or the at least one layer can comprise at least one convolutional layer and/or at least one fully connecter layer.
- Some embodiments of the present disclosure relate more specifically to a quantization and to an inverse quantization of parameters/weights of the tensors included in one or more layer(s) to be compressed of one or more DNNs.
- Figs. 5 and 6 illustrate respectively at a high level a general process for encoding / decoding parameters of at least one layer of at least one DNN, that can be used in at least some embodiments of the present disclosure.
- the method 500 can comprise obtaining 510 (or in other words getting) parameters of the tensor associated with a layer to be compressed.
- the obtaining can for instance be performed by retrieving the parameters of at least one layer from a storage unit, or by receiving the parameters from a data source via a communication interface.
- performing a compression of a layer of a Neural Network can comprise:
- Lossless entropy coding 540 of the quantized information Lossless entropy coding 540 of the quantized information.
- the compression 500 can further comprise, prior to the quantization 530, a step of reducing 520 the number of parameters (or Weights or Biases) of the Neural Network by utilizing the inherent redundancies in the Neural Network.
- the reducing 520 thus provides a tensor of reduced dimensions, compared to the dimension of the tensor associated with a layer. For instance, the tensors of parameters of each layer of the DNN can be decomposed or made sparse in the reducing 520 .
- the resulting tensors are quantized and entropy coded to compose the final bitstream, which is transmitted to the receivers.
- This reducing 520 is optional and can thus be omitted in some embodiments.
- Quantization can for instance be performed by using a uniform quantization or a non- uniform quantization like a Codebook-based quantization as in some DNN compression solutions, notably in some compression standard like some upcoming standard ISO/MPEG7 relating to neural networks for multimedia content description and analysis, which is denoted hereinafter more simply MPEG NNR.
- a uniform quantization or a non- uniform quantization like a Codebook-based quantization as in some DNN compression solutions, notably in some compression standard like some upcoming standard ISO/MPEG7 relating to neural networks for multimedia content description and analysis, which is denoted hereinafter more simply MPEG NNR.
- a Codebook is a set of values (like integer values or floating-point values) that the parameters of a layer can have, after quantization. Indices can be derived from the codebook values assigned to the parameters of the original tensor (associated with the layer) by the quantizing. Codebook- based quantization will be presented in more detailed hereinafter.
- the parameters input to the quantization can be of floating-point type, while the output of the quantization can comprise one or more tensor of indices of integer type.
- the quantization can also output the codebook to which the indices relate to. Indeed, in some embodiments, for instance in embodiments where the codebook is pre-fixed by the quantization, the codebook can be omitted in the output of the quantization.
- at least some of the outputs of the quantization 530 are used as input for performing a lossless entropy coding 540.
- Other elements like a shape of the original tensor or symbol counts
- the method 500 can be performed iteratively layer per layer for a DNN, until (550) the end of the encoding of parameters of the last layer to be encoded.
- Fig. 6 depicts a decoding method 600 that can be used for decoding a bitstream obtained by the encoding method 500 already described.
- the decoding method 600 can include some inverse operations (compared to the operations of the encoder side).
- the decoding method 600 can include parsing/ entropy decoding 610 of the input bins to extract the quantized form of the parameters.
- Inverse quantization 620 can theh applied to derive the final values of the parameters.
- the matrix decomposition/sparsification of the tensors at the encoder usually does not require an inverse process at the decoder. For instance, the parameters that were set to zero at the reduction of parameters stage (reducing 520) can remain zero after inverse quantization at the decoder.
- the output of parsing and decoding 610 a bitstream corresponding to a layer of the DNN can comprise metadata and quantized parameters.
- the output includes the codebook and the corresponding indices.
- both the codebook and the tensor of indices can be computed by the method of the K-meahs, which will derive a codebook of K values denoting the cluster centers and a tensor of indices that can have values belonging to the integer range [0 ... K-1]
- the decoding method can further comprise performing inverse quantization 620, using the decoded information (like the indices and the codebook).
- the method 600 can be performed iteratively layer per layer, until (650) parameters of the last layer are encoded.
- the way the quantization is implemented should be compliant with the way the entropy coding is performed, or vice-versa. This should be the case for instance, whether the quantization is a uniform quantization or a codebook-based quantization (as quantization used in some compression solutions, like in the current upcoming standard MPEG- NNR)
- codebook-based quantization can present some disadvantages, when coupled with some solutions commonly used in the entropy coding like the Context-based Adaptive Binary Adaptive Coding (CABAC), as in some MPEG NNR draft standard.
- CABAC Context-based Adaptive Binary Adaptive Coding
- At least some embodiments of the present disclosure invention help address this issue. It is to be pointed out that the embodiments of the methods of the present disclosure detailed herein can be implemented in many compression solutions and are not limited to a specific standard, even at least some of the embodiments can for instance apply in the context of some compression standards, like some draft standard developed by ISO/MPEG7.
- Some embodiments of the present disclosure can comprise transmitting/receiving signaling information between an encoder and a decoder.
- This signaling information is presented in the present disclosure in link with an exemplary, non-limitative, syntax.
- This exemplary syntax is based, for the ease of explanation, on a syntax used in an exemplary MPEG NNR draft standard, the differences with the MPEG NRR syntax being underlined in the syntax tables.
- the exemplary MPEG NNR draft standard includes a quantization method based on a codebook and indices.
- the Layer Decoding Process and the Quantized weight tensor decoding Process and the corresponding syntax of the exemplary MPEG NNR draft standard are introduced below.
- a Layer Decoding process receives as inputs:
- codebook_zero_offset which is an integer
- codebook which is a list of float32 values of size
- the layer decoding process outputs a weight tensor “RecWeights” with 32-bit floating-point values.
- variable “codebook” or the variable “codebook_zero_offset” When the variable “codebook” or the variable “codebook_zero_offset” is not present, a syntax unit “step_size()” is decoded from the bitstream.
- the arithmetic coding engine and context models are initialized as specified in subclause in the exemplary draft standard.
- a syntax unit layer( tensorDimensions, maxNumNoRem ) is decoded from the bitstream.
- RecWeights[i] codebook[ QuantWeights[ i ] + codebook_zero_offset ] ⁇
- inputs to the Quantized weight tensor decoding Process are:
- Quantized weight tensor decoding process outputs the signed integer weight tensor “QuantWeight”.
- a syntax unit “quant_weight_tensor( tensorDimensions, maxNumNoRem )” is decoded from the bitstream yielding QuantWeight.
- end_of_quant_layer_one_bit specifies a terminating bit equal to 1.
- nesting_zero_bit is one bit set to 0.
- Step size Table 2 where step_size is the quantization step size.
- sig_flag specifies whether the quantized weight QuantWeight[i] is nonzero.
- a sig_flag equal to 0 indicates that QuantWeight[i] is zero.
- sign_flag specifies whether the quantized weight QuantWeight[i] is positive or negative.
- a sign_flag equal to 1 indicates that QuantWeight[i] is negative.
- abs_level_greater_x[j] indicates whether the absolute level of QuantWeight[i] is greater j + 1.
- abs_level_greater_x2[j] comprises the unary part of the exponential golomb remainder.
- abs_remainder indicates a fixed length remainder.
- Codebook-based quantization is described hereinafter in more details.
- the output of quantization can comprise following elements: - at least one codebook, and indices.
- a Codebook is a set of values (like floating-point values) that the parameters of a layer can have, after quantization.
- a codebook can be obtained by clustering for instance. Indices (or in other words indexes) correspond to, or can be derived from, the codebook values assigned to the parameters of the original tensor by the quantizing.
- a same codebook value can be assigned to each of the parameters of the same cluster (thus the set of quantized parameters can be seen as a tensor of a same shape than the original tensor).
- the K-Means algorithm can be used to quantize input parameters of the network and represent the tensors of parameters as a codebook and tensors of indices.
- the values of a codebook can be the centers of clusters calculated by the K- Means Quantization algorithm.
- K-Means is a simple algorithm for clustering n-dimensional vectors.
- the goal of the K-Means algorithm is to partition data that are similar into “k” well-separated clusters.
- the number k can be a power of 2.
- the group of clusters is referred to hereinafter as the “Codebook”.
- CABAC CABAC Binarization
- DeepCABAC which is more adapted for instance to the compression of a Neural Network, can be used in some compression standards like the MPEG NNR draft standard. DeepCABAC uses a similar binarization as CABAC. This binarization corresponds to a combination of truncated unary code and fixed length remaining absolute value symbol.
- the binarization process 400 of DeepCABAC is illustrated in Fig. 4, as an example, for numbers 402 ranging from (-8) to 8.
- the binarization process is based a set 410 of symbols (or flags), as the illustrated flags sigFlag 411, SignFlag 412, AbsGrIFlag 413, AbsGr2Flag 414, AbsGr4Flag 415,RemAbs 416, AbsGr8Flag 417 and the bypass bins 418 and 419.
- the processing of a weight value results in a list (or sequence) 420 of bins corresponding to respective values (421 to 429) of at least some of the symbols (411 to 419).
- the encoding of the number 7 is shown in Fig. 4 by an highlighted column (element 420) .
- the column 420 encoding number 7 corresponds to a list of bins (or bits) following the number 7 at the top and descending its column) computed as follow:
- AbsGr8Flag 415 has the value “0” (element 427 of Fig. 4)
- the sequence to encode for the number “7” is “10111010”.
- Adaptive coding is applied, i.e. at both encoder and decoder sides, an initial probability is assigned to each flag, before the encoding or decoding of the first of the flags for the first weight.
- the probability of each flag is then updated after encoding or decoding at least one of the flags. For instance, in case each flag is expected to be equiprobable (i.e. 50% chance to be 0 or 1), an initial probability of 0.5 can be assigned to each flag before encoding the first of the flags.
- the probability model can thus be updated each time the value for the corresponding flag of the next weight is encoded. Of course, other initial probabilities can be assigned to the flags.
- Adaptive coding is applied, which means that an initial probability is set before encoding the first of each flags, usually expected to be equiprobable, i.e. 50% chances to be 0 or 1.
- the probability model is then updated each time the corresponding flag of the next weight is encoded.
- each bin is arithmetically coded based on the value of the neighboring weight’s corresponding bin which has been coded just before. Two different probability models are selected depending on whether the current and the previous flag have the same value
- CABAC is used to denote processing or algorithm including a binarization, which can be followed by an adaptive binary arithmetic coding, which DeepCABAC belongs to. It is to be pointed out however that the present disclosure is not limited to embodiments using CABAC and also apply to embodiments using We can generalize to coders that are optimal on a signal centered on the value zero (or on a value close to zero).
- Probability models can be reinitialized for each layer of a DNN or kept from a current layer to the next layer.
- probability models can be reinitialized at each frame or slice.
- Embodiments where the probability model is reinitialized at each layer (in case of DNN), or frame /slice for video can be adapted to embodiments where several layers, respectively several frames and/or slices for video, can be decoded in parallel.
- the reinitialization of a probability model between layers or sub-layers (and/or frames and/or slices) can avoid a propagation of errors.
- codebook design is sometimes not optimally aligned with some solutions that can be used in the entropy coding, like CABAC (or DeepCABAC), This is for instance the case in some MPEG NNR draft standards using codebook- based quantization and CABAC-based entropy coding.
- CABAC or DeepCABAC
- the CABAC binarization is optimally designed to get as input small integer signed values, as a flag “sign_flag” is contextually coded for each parameter while, as explained above, the value output by a Codebook-based quantization does not always output such small integers value. For instance, values output by a Codebook-based quantization can be unsigned values.
- the present disclosure encompasses several aspects that can be implemented in combination, or separately (one without the other), depending upon embodiments, for helping to address at least some of the above issues.
- At least some embodiments of the present disclosure propose to adapt the output of the quantization to the entropy coding that will use, as inputs, at least some of those outputs and/or to adapt the entropy coding to the outputs of the quantization.
- At least some embodiments of the present disclosure propose a compression method that helps align at least some kind of quantization with the entropy encoding to be performed, like the possibility of using a Codebook-based quantization when an algorithm including a binarization (that can be followed by an adaptive binary arithmetic coding), like CABAC or DeepCABAC, is used during the entropy coding (as in some MPEG NNR draft standard for instance).
- At least some embodiments of the present disclosure also propose at least one corresponding decoding (or decompression) method as well as signalization information to be transmitted between the encoder and the decoder. This signaling information is presented hereinafter by using an exemplary syntax, partially based on a syntax used for an MPEG NNR draft standard. Elements of the exemplary syntax presented herein that differ from the syntax of the MPEG NNR working draft are underlined to facilitate the reading of the present disclosure.
- At least some embodiments of the compression/decompression methods of the present disclosure relate to a coding/decoding process of at least one tensor of a layer or sub-layer of at least one DNN, when the at least one layer can be represented as a codebook and indices, as well as an associated syntax structure.
- a flag (e.g. codebook_quaritization_flag) can be added in the High-level syntax, to select between a use of a codebook-based quantization and a use of a uniform quantization.
- this flag (or in other word symbol,) can be included at different levels. For instance, in some embodiments, it can be included in one or more parameter set, such as the Model Parameter Set (MPS) and/or the Layer Parameter Set (LPS).
- MPS Model Parameter Set
- LPS Layer Parameter Set
- the incorporating of such a flag in a bitstream compatible with a standard allowing the use of different kinds of quantization can permit at a decoding stage to determine the kind of quantization used (at the encoding stage) for the bitstream being processed, in order for instance to adapt the decoding process accordingly.
- a decoder select the kind of inverse quantization to apply based at least partially on such a flag.
- Figures 8A and 8B illustrates an exemplary method for encoding, respectively decoding, data wherein a kind of quantization of signaled (801) by the encoder in a bistream, so the decoder determines (802) a kind of inverse quantization for reconstructing the decoded data.
- the data ca be video data or layers or sub-layers of a Neural Network.
- the codebook when a Codebook-based quantization is used at the encoding stage, the codebook has to be associated to the encoded bitstream (for instance transmitted with the bitstream to the decoder). At least some embodiments of the present disclosure thus propose to transmit the codebook used for the quantization with the bitstream.
- codebook_size_minus1 +1 specifies the size of the quantization codebook codebook[ i ] specifies the weight value of the cluster center related to the i-th index.
- the codebook values are coded as floating-point values (Flt(32)), they could also be coded as integers or other types such as float 64 for instance.
- the flag for signaling the kind of quantization introduced above can be optional when in some compression solutions only codebook-based quantization is allowed.
- a compression method comprising modifying the codebook and/or indices used during quantization and/or entropy coding (for instance when quantizing parameters of an original tensor of a layer of a DNN).
- the number of parameters corresponding to each cluster can be known and the order in which the codebook values are sorted can be chosen so as, for instance, to lower the coding cost of the encoded parameter indices, which depends on the entropy coder used.
- the DeepCABAC (used for instance in some MPEG NNR draft standard), includes the arithmetic coding engine that was developed for the arithmetic coding of transform residuals and syntax elements in the domain of video compression.
- the binarization stage has been redesigned to fit the parameter values to encode. T ensors of parameters of DNNs, for a large majority of models, are usually centered on a value close to zero, which is the starting point of the binarization for DeepCABAC as described above in link with Fig. 4.
- Fig. 7 shows the repartition of the values of an exemplary, typical, tensor of parameters, for an exemplary fully connected layer of an exemplary neural network, when represented using a 2048- bin histogram.
- Each value in abscissa represents a cluster index, which is associated to a parameter value, when the original range of values is uniformly quantized into 2048 bins.
- the graphic then shows how many parameters have a value that is closest to each index.
- PDF Probability Density Function
- the quantized parameters are represented by an integer (signed) value, which is derived by multiplying each original value by a given step size.
- the center of the Gaussian being very close to zero, it’s quantized value is likely to be zero.
- indices - here from 0 to 2047 replace the values and an additional codebook containing the value of each cluster center is transmitted. Then, at the decoding, each parameter is derived by mapping its index to the corresponding codebook value.
- index values consist of unsigned integer values
- a sign flag signaling the sign of data like the CABAC “sign flag”, will always take the value 0 (positive).
- a third aspect of the present disclosure proposes to adapt CABAC by omitting or removing the sign flag.
- a fourth aspect of the present disclosure proposes to cope with this issue, by modifying the coded index values and/or reordering the codebook so that the coded index values are signed and centered at zero to favor values coded using regular CABAC bins.
- the entropy coding can be based on a binarization different from the CABAC one as presented above with link with Fig. 4.
- the binarization can be Similar to the CABAC Binarization, but with the “sign flag” of CABAC being omitted, or the binarization based on CABAC (as presented above in link with Fig. 4) but with an additional step of removing the “sign-flag” from the output of the CABAC.
- codebook and tensor of indices are kept unchanged, for instance with the codebook being sorted decreasingly (the number of parameters per cluster decreasing with increasing index value).
- the encoding method can comprise adapting the signaling information used for deriving the parameters in the corresponding part of the bitstream, the “sign flag” being omitted.
- the information signaling the sign of data can be kept in the bitstream for other kinds of quantization, like uniform quantization for instance.
- the corresponding decoding (using or not the sign flag notably) can differ, depending upon the kind of quantization performed at the encoder.
- the inverse quantization can differ according to the kind of quantizing indicated in the signaling information.
- a signaling information regarding the kind of quantization performed can be added as a parameter to enable the proper parameter construction after the inverse quantization.
- a first exemplary syntax is provided hereinafter for decoding the parameters when Codebook-based quantization is activated.
- Such an exemplary syntax can be used for instance in embodiments adapted to be implemented in a codec/decoder only using codebook-based quantization/ inverse quantization, or in embodiments where different quantization methods can be used but where the following table is used only when codebook quantization is activated for a layer/a DNN (another table being used when uniform quant is activated for a layer) (thanks to conditional call for instance)
- sig_flag specifies whether the quantized weight QuantWeight[i] is nonzero.
- a sig_flag equal to 0 indicates that QuantWeight[i] is zero.
- sign_flag specifies whether the quantized weight QuantWeight[i] is positive or negative.
- a sign_flag equal to 1 indicates that QuantWeight[i] is negative.
- abs_level_greater_x[j] indicates whether the absolute level of QuantWeight[i] is greater j + 1.
- abs_level_greater_x2[j] comprises the unary part of the exponential
- a second exemplary syntax is provided herein after for a compression method based on a quantized weight syntax including both codebook-based quantization and uniform quantization
- sig_flag specifies whether the quantized weight QuantWeight[i] is nonzero.
- a sig_flag equal to 0 indicates that QuantWeight[i] is zero.
- sign_flag specifies whether the quantized weight QuantWeight[i] is positive or negative.
- a sign_flag equal to 1 indicates that QuantWeight[i] is negative.
- abs_level_greater_x[j] indicates whether the absolute level of QuantWeight[i] is greater j + 1.
- abs_level_greater_x2[j] comprises the unary part of the exponential Modifying indices and/or reordering of the codebook
- Some compression solutions use an offset when encoding the codebook in the bitstream, in order to encode signed index values. For instance, in some compression solutions an offset can be signaled in the bitstream, as by the external variable codebook_zero_offset in the below syntax). At the decoder, the encoded values are then mapped back to a positive index, according to the offset, so that the inverse quantization step uses the codebook array properly as per below:
- recWeights is set as follows:
- RecWeights[i] codebook[ QuantWeights[ i ] + codebook_zero_offset ] ⁇
- the centering of the indexing can be done around codebook_size/2, where codebook- size denotes the number of elements in the codebook and codebook_size/2 denotes the number of elements divided per 2. Such a centering can permit to avoid transmitting an additional offset, further to the codebook.
- the coded indices are signed integer values distributed around 0, the value 0 being used for coding the original value index 4.
- the present disclosure encompasses other distributions of signed integer values for the coded indices including at least one negative integer and at least one positive integer.
- indices with values lower that codebook-size/2 can be coded as negative integer, indices with values higher that codebook-size/2 being coded as positive integers.
- indices with values higher that codebook-size/2 can be coded as negative integer, indices with values lower that codebook- size/2 being coded as positive integers.
- increasing successive values of indices can be coded alternatively as a positive integer and a negative integer.
- two successive values of indices can be coded as positive integer and negative integer (or vice versa) having the same absolute value “av”, the integer following value(s) being coded with a positive and negative integer (or vice-versa) having an absolute value being the integer immediately greater or lower the absolute value “av”.
- difference between successive absolute values can vary.
- the codebook in order to improve (even optimize) the encoding of CABAC and use the probability distribution, can be sorted decreasingly, so that the cluster with the most parameters can be mapped to the encoded index value 0.
- Table 9 shows a codebook construction where the codebook is ordered decreasingly according to the size of corresponding parameter clusters (thus the codebook maps bigger clusters with lower index values) Table 9
- mapping function f(i) can be applied from the original index values of the codebook to obtain the corresponding values that will be coded in the bitstream.
- Those corresponding values are called hereinafter “coded index values” Equation (1) where i denotes the original index value and floor(x) is the largest integer less than or equal to x.
- mapping function can help to obtain clusters being evenly (or almost evenly) distributed around the coded index value zero.
- TablelO shows the coded indices:
- Mapping and inverse mapping processes can be used in an encoder and decoder to achieve improved coding performance without modifying the codebook order.
- the coding of the codebook array (or in other words the mapping function used for coding the indexes of the codebook) can differ upon embodiments, as detailed hereinafter in some exemplary embodiments.
- the codebook array can be encoded in decreasing order (same order as the “original” one when referring to the Table 8).
- the first value of the codebook denotes the cluster center of the largest cluster in terms of number of parameters and the codebook is ordered such as the cluster sizes decrease with increasing index.
- mapping function f(i) introduced above by (Equation 1) can then be used to derive the coded indices.
- recWeights QuantWeights * step_size
- RecWeights[i] COdebook[ (QuantWeights[i] * sign) « 1 — Floor((sign + 1) » 1)]
- the corresponding codebook values in the codebook array can further be reordered together with their corresponding indices.
- recWeights QuantWeights * step_size
- RecWeights[i] codebook[ QuantWeights[ i ] + codebook_size»1 ]
- K-means can, for instance, be performed on a super tensor, resulting of the concatenation of at least one tensor of at least one layer.
- Both embodiments provide identical results in terms of number of bits necessary to code the codebook and the tensor of indices. More precisely, preliminary results show the following gains for the coding of the model MobileNetV2 using a codebook-based quantization and the unmodified binarization of CABAC: When the codebook order is unmodified and the tensors of positive indices are fed to CABAC, as in some compression solutions , 2,334,525 bytes are required to code for the model.
- mapping function When the above mapping function is used to derive signed indices and to utilize the binarization of CABAC to optimize the use of regular bins, 2,313,370 bytes are necessary.
- the codebook is transmitted in the same order, only the tensors of indices are changed. This requires the decoder to perform the inverse mapping function to retrieve the cluster center values from the indices, which adds some minor computations at the decoder.
- the device A comprises a processor in relation with memory RAM and ROM which are configured to implement a method for compressing data, for instance data representative of a Deep Neural Network, as described in relation with the figure 1-8A-B and the device B comprises a processor in relation with memory RAM and ROM which are configured to implement a method for decompressing the data as described in relation with figure 1-8A-B.
- the network is a broadcast network, adapted to broadcast/transmit the compressed data from device A to decoding devices including the device B.
- a signal, intended to be transmitted by the device A carries at least one bitstream comprising compressed data.
- the compressed data is representative of weights of one or more layers of a Deep Neural Network.
- the compressed data is representative of video data.
- Figure 10 shows an example of the syntax of such a signal transmitted over a packet-based transmission protocol.
- Each transmitted packet P comprises a header H and a payload PAYLOAD.
- the payload PAYLOAD may comprise at least one information representative of a kind of quantization used for compressing the data encoded in the signal.
- the payload PAYLOAD may comprise information representative of a codebook used for quantizing the data. Additional Embodiments and Information
- At least one of the aspects generally relates to encoding and decoding (for instance, video encoding and decoding, and/or encoding and decoding of at least some weights of at least some layer of a DNN), and at least one other aspect generally relates to transmitting a bitstream generated or encoded.
- the terms “reconstructed” and “decoded” may be used interchangeably, the terms “pixel” and “sample” may be used interchangeably, the terms “image,” “picture” and “frame” may be used interchangeably.
- the term “reconstructed” is used at the encoder side while “decoded” is used at the decoder side.
- modules for example, the intra prediction, entropy coding, and/or decoding modules (160, 360, 145, 330), of an encoder 100 and decoder 200 as shown in FIG. 1 and FIG. 2.
- present aspects are not limited to WC or HEVC, and can be applied, for example, to other standards and recommendations, whether pre-existing or future-developed, and extensions of any such standards and recommendations (including WC and HEVC).
- the present aspects are not limited to WC or HEVC, or even to video data, and can be applied to an encoder or decoder adapted to encode, respectively decode, at least one layer of a neural network that can be used in many technical fields other than video (of course, in such embodiments, some modules like intra prediction module 160 can be optional)
- Fig. 1 illustrates an encoder 100. Variations of this encoder 100 are contemplated, but the encoder 100 is described below for purposes of clarity without describing all expected variations.
- the sequence may go through pre-encoding processing (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) in case of a video sequence, or performing a remapping of the input picture components in order to get a signal distribution more resilient to compression (for instance using a histogram equalization of one of the color components).
- pre-encoding processing can include binarization as the exemplary binarization detailed above in link with CABAC.
- Metadata can be associated with the pre-processing and attached to the bitstream.
- a picture is encoded by the encoder elements as described below.
- the picture to be encoded is partitioned (102) and processed in units of, for example, CUs.
- Each unit is encoded using, for example, either an intra or inter mode.
- intra prediction 160
- inter mode motion estimation (175) and compensation (170) are performed.
- the encoder decides (105) which one of the intra mode or inter mode to use for encoding the unit, and indicates the intra/inter decision by, for example, a prediction mode flag.
- Prediction residuals are calculated, for example, by subtracting (110) the predicted block from the original image block.
- the prediction residuals are then transformed (125) and quantized (130).
- the quantized transform coefficients, as well as motion vectors and other syntax elements, are entropy coded (145) to output a bitstream.
- the encoder can skip the transform and apply quantization directly to the non-transformed residual signal.
- the encoder can bypass both transform and quantization, i.e., the residual is coded directly without the application of the transform or quantization processes.
- the encoder decodes an encoded block to provide a reference for further predictions.
- the quantized transform coefficients are de-quantized (140) and inverse transformed (150) to decode prediction residuals. For instance, in case of a video sequence, combining (155) the decoded prediction residues and the predicted block, an image block is reconstructed.
- In-loop filters (165) are applied to the reconstructed picture to perform, for example, deblocking/SAO (Sample Adaptive Offset) filtering to reduce encoding artifacts.
- the filtered image is stored at a reference picture buffer (180).
- Fig. 2 illustrates a block diagram of a decoder 200.
- Decoder 200 generally performs a decoding pass almost reciprocal, to the encoding pass as described in FIG. 1.
- the encoder 100 also generally performs decoding as part of encoding data.
- the input of the decoder 200 includes a bitstream, which can be generated by encoder 100.
- the bitstream is first entropy decoded (230) to obtain transform coefficients, motion vectors, and other coded information.
- the picture partition information indicates how the picture is partitioned.
- the decoder may therefore divide (235) the picture according to the decoded picture partitioning information.
- the transform coefficients are de-quantized (240) and inverse transformed (250) to decode the prediction residuals.
- Combining (255) the decoded prediction residuals and the predicted block an image block is reconstructed.
- the predicted block can be obtained (270) from intra prediction (260) or motion-compensated prediction (i.e., inter prediction) (275).
- In-loop filters (265) are applied to the reconstructed image.
- the filtered image is stored at a reference picture buffer (280).
- the decoded element (like the picture or the layer weights) can further go through postdecoding processing (285), for example, in case of a decoded image, an inverse color transform (e.g. conversion from YCbCr 4:2:0 to RGB 4:4:4) or an inverse remapping performing the inverse of the remapping process performed in the pre-encoding processing (101).
- the post-decoding processing can use metadata derived in the pre-encoding processing and signaled in the bitstream.
- Fig. 3 illustrates a block diagram of an example of a system in which various aspects and embodiments are implemented.
- System 1000 can be embodied as a device including the various components described below and is configured to perform one or more of the aspects described in this document. 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.
- Elements of system 1000, singly or in combination can be embodied in a single integrated circuit (IC), multiple ICs, and/or discrete components.
- the processing and encdder/decoder elements of system 1000 are distributed across multiple ICs and/or discrete components.
- system 1000 is communicatively coupled to one or more other systems, or other electronic devices, via, for example, a communications bus or through dedicated input and/or output ports.
- system 1000 is configured to implement one or more of the aspects described in this document.
- the system 1000 includes at least one processor 1010 configured to execute instructions loaded therein for implementing, for example, the various aspects described in this document.
- Processor 1010 can include embedded memory, input output interface, and various other circuitries 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).
- System 1000 includes a storage device 1040, which can 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 can include an internal storage device, an attached storage device (including detachable and non-detachable storage devices), and/or a network accessible storage device, as non-limiting examples.
- System 1000 includes an encoder/decoder module 1030 configured, for example, to process data to provide an encoded or decoded data stream (such a video stream and/or a stream representative of at least one weight of at least one layer of at least one DNN), and the encoder/decoder module 1030 can include its own processor and memory.
- the encoder/decoder module 1030 represents module(s) that can be included in a device to perform the encoding and/or decoding functions. As is known, a device can include one or both of the encoding and decoding modules. Additionally, encoder/decoder module 1030 can be implemented as a separate element of system 1000 or can be incorporated within processor 1010 as a combination of hardware and software as known to those skilled in the art.
- processor 1010 Program code to be loaded onto processor 1010 or encoder/decoder 1030 to perform the various aspects described in this document can be stored in storage device 1040 and subsequently loaded onto memory 1020 for execution by processor 1010.
- processor 1010, memory 1020, storage device 1040, and encoder/decoder module 1030 can store one or more of various items during the performance of the processes described in this document.
- Such stored items can include, but are not limited to, the input video, the decoded video or portions of the decoded video, data representative of at least one weight of at least one layer of the at least one DNN, the bitstream, matrices, variables, and intermediate or final results from the processing of equations, formulas, operations, and operational logic.
- memory inside of the processor 1010 and/or the encoder/decoder module 1030 is used to store instructions and to provide working memory for processing that is needed during encoding or decoding.
- a memory external to the processing device (for example, the processing device can be either the processor 1010 or the encoder/decoder module 1030) is used for one or more of these functions.
- the external memory can be the memqry 1020 and/or the storage device 1040, for example, a dynamic volatile memory and/or a non-volatile flash memory.
- an external non-volatile flash memory is used to store the operating system of, for example, a television.
- a fast external dynamic volatile memory such as a RAM is used as working memory for coding and decoding operations, such as for MPEG-2 (MPEG refers to the Moving Picture Experts Group, MPEG-2 is also referred to 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 WC (Versatile Video Coding, a new standard being developed by JVET, the Joint Video Experts Team).
- MPEG-2 MPEG refers to the Moving Picture Experts Group
- MPEG-2 is also referred to as ISO/IEC 13818
- 13818-1 is also known as H.222
- 13818-2 is also known as H.262
- HEVC High Efficiency Video Coding
- WC Very Video Coding
- the input to the elements of system 1000 can be provided through various input devices as indicated in block 1130.
- Such input devices include, but are not limited to, (i) a radio frequency (RF) portion that receives an RF signal transmitted, for example, over the air 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.
- RF radio frequency
- COMP Component
- USB Universal Serial Bus
- HDMI High Definition Multimedia Interface
- the input devices of block 1130 have associated respective input processing elements as known in the art.
- the RF portion can 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 band of frequencies), (ii) down converting the selected signal, (iii) band-limiting again to a narrower band of frequencies to select (for example) a signal frequency band which can be referred to as a channel in certain embodiments, (iv) demodulating the down converted and band- limited signal, (v) performing error correction, and (vi) demultiplexing to select the desired stream of data packets.
- the RF portion of various embodiments includes one or more elements to perform these functions, for example, frequency selectors, signal selectors, band-limiters, channel selectors, filters, downconverters, demodulators, error correctors, and demultiplexers.
- the RF portion can include a tuner that performs various of these functions, including , for example, down converting the received signal to a lower frequency (for example, an intermediate frequency or a near-baseband frequency) or to baseband.
- the RF portion and its associated input processing element receives an RF signal transmitted over a wired (for example, cable) medium, and performs frequency selection by filtering, down converting, and filtering again to a desired frequency band.
- Adding elements can include inserting elements in between existing elements, such as, for example, inserting amplifiers arid an analog-to-digital converter.
- the RF portion includes an antenna.
- USB and/or HDMI terminals can include respective interface processors for connecting system 1000 to other electronic devices across USB and/or HDMI connections.
- various aspects of input processing for example, Reed-Solomon error correction, can be implemented, for example, within a separate input processing IC or within processor 1010 as necessary.
- aspects of USB or HDMI interface processing can be implemented within separate interface ICs or within processor 1010 as necessary.
- the demodulated, error corrected, and demultiplexed stream is provided to various processing elements, including, for example, processor 1010, and encoder/decoder 1030 operating in combination with the memory and storage elements to process the data stream as necessary for presentation on an output device.
- connection arrangement 1140 for example, an internal bus as known in the art, including the Inter-IC (I2C) bus, wiring, and printed circuit boards.
- the system 1000 includes communication interface 1050 that enables communication with other devices via communication channel 1060.
- the communication interface 1050 can include, but is not limited to, a transceiver configured to transmit and to receive data over communication channel 1060.
- the communication interface 1050 can include, but is not limited to, a modem or network card and the communication channel 1060 can be implemented, for example, within a wired and/or a wireless medium.
- Wi-Fi Wireless Fidelity
- IEEE 802.11 IEEE refers to the Institute of Electrical and Electronics Engineers
- the Wi-Fi signal of these embodiments is received over the communications channel 1060 and the communications interface 1050 which are adapted for Wi-Fi communications.
- the communications channel 1060 of these embodiments is typically connected to an access point or router that provides access to external networks including the Internet for allowing streaming applications and other over-the-top communications.
- Other embodiments provide streamed data to the system 1000 using a set-top box that delivers the data over the HDMI connection of the input block 1130.
- Still other embodiments provide streamed data to the system 1000 using the RF connection of the input block 1130.
- various embodiments provide data in a non-streaming manner.
- various embodiments use wireless networks other than Wi-Fi, for example a cellular network or a Bluetooth network.
- the system 1000 can provide an output signal to various output devices, including a display 1100, speakers 1110, and other peripheral devices 1120.
- the display 1100 of various embodiments includes one or more of, for example, a touchscreen 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 cell phone (mobile phone), or another device.
- the display 1100 can also be integrated with other components (for example, as in a smart phone), or separate (for example, an external monitor for a laptop).
- the other peripheral devices 1120 include, in various examples of embodiments, one or more of a stand-alone digital video disc (or digital versatile disc) (DVR, for both terms), a disk plgyer, a stereo system, and/or a lighting system.
- Various embodiments use one or more peripheral devices 1120 that provide a function based on the output of the system 1000. For example, a disk player performs the function of playing the output of the system 1000.
- control signals are communicated between the system 1000 and the display 1100, speakers 1110, or other peripheral devices 1120 using signaling such as AV. Link, Consumer Electronics Control (CEC), or other communications protocols that enable device-to- device control with or without user intervention.
- the output devices can be communicatively coupled to system 1000 via dedicated connections through respective interfaces 1070, 1080, and 1090. Alternatively, the output devices can be connected to system 1000 using the communications channel 1060 via the communications interface 1050.
- the display 1100 and speakers 1110 can be integrated in a single unit with the other components of system 1000 in an electronic device such as, for example, a television.
- the display interface 1070 includes a display driver, such as, for example, a timing controller (T Con) chip.
- the display 1100 and speaker 1110 can alternatively be separate from one or more of the other components, for example, if the RF portion of input 1130 is part of a separate set-top box.
- the output signal can be provided via dedicated output connections, including, for example, HDMI ports, USB ports, or COMP outputs.
- the embodiments can be carried out by computer software implemented by the processor 1010 or by hardware, or by a combination of hardware and software. As a non-limiting example, the embodiments can be implemented by one or more integrated circuits.
- the memory 1020 can be of any type appropriate to the technical environment and can be implemented using any appropriate data storage technology, such as optical memory devices, magnetic memory devices, semiconductor-based memory devices, fixed memory, and removable memory, as non-limiting examples.
- the processor 1010 can be of any type appropriate to the technical environment, and can encompass one or more of microprocessors, general purpose computers, special purpose computers, and processors based on a multi-core architecture, as non-limiting examples.
- Decoding can encompass all or part of the processes performed, for example, on a received encoded sequence in order to produce a final output suitable for display.
- processes include one or more of the processes typically performed by a decoder, for example, entropy decoding, inverse quantization, inverse transformation, and differential decoding.
- processes also, or alternatively, include processes performed by a decoder of various implementations described in this application.
- decoding refers only to entropy decoding
- decoding refers only to differential decoding
- decoding refers to a combination of entropy decoding and differential decoding.
- encoding can encompass all or part of the processes performed, for example, on an input sequence in order to produce an encoded bitstream.
- processes include one or more of the processes typically performed by an encoder, for example, partitioning, differential encoding, transformation, quantization, and entropy encoding.
- processes also, or alternatively, include processes performed by an encoder of various implementations described in this application.
- encoding refers only to entropy encoding
- encoding refers only to differential encoding
- encoding refers to a combination of differential encoding and entropy encoding.
- syntax elements are descriptive terms. As such, they do not preclude the use of other syntax element names.
- Various embodiments referto parametric models or rate distortion Optimization.
- the balance or trade-off between the rate and distortion is usually considered, often given the constraints of computational complexity. It can be measured through a Rate Distortion Optimization (RDO) metric, or through Least Mean Square (LMS), Mean of Absolute Errors (MAE), or other such measurements.
- RDO Rate Distortion Optimization
- LMS Least Mean Square
- MAE Mean of Absolute Errors
- the approaches may be based on an extensive testing of all encoding options, including all considered modes or coding parameters values, with a complete evaluation of their coding cost and related distortion of the reconstructed signal after coding and decoding.
- Faster approaches may also be used, to save encoding complexity, in particular with computation of an approximated distortion based on the prediction or the prediction residual signal, not the reconstructed one.
- Mix of these two approaches can also be used, such as by using an approximated distortion for only some of the possible encoding options, and a complete distortion for other encoding options.
- Other approaches only evaluate a subset of the possible encoding options. More generally, many approaches employ any of a variety of techniques to perform the optimization, but the optimization is not necessarily a complete evaluation of both the coding cost and related distortion.
- the implementations and aspects described herein can be implemented in, for example, a method or a process, an apparatus, a software program, a data stream, or a signal. Even if only discussed in the context of a single form of implementation (for example, discussed only as a method), the implementation of features discussed can also be implemented in other forms (for example, an apparatus or program).
- An apparatus can be implemented in, for example, appropriate hardware, software, and firmware.
- the methods can be implemented in, for example, , a processor, which refers to processing devices in general, including, for example, a computer, a microprocessor, an integrated circuit, or a programmable logic device. Processors also include communication devices, such as, for example, computers, cell phones, portable/personal digital assistants ("PDAs”), and other devices that facilitate communication of information between end-users.
- PDAs portable/personal digital assistants
- references to “one embodiment” or “an embodiment” or “one implementation” or “an implementation”, as well as other variations thereof, means that a particular feature, structure, characteristic, and so forth described in connection with the embodiment is included in at least one embodiment.
- the appearances of the phrase “in one embodiment” or “in an embodiment” or “in one implementation” or “in an implementation”, as well any other variations, appearing in various places throughout this application are not necessarily all referring to the same embodiment.
- Determining the information can include one or more of, for example, estimating the information, calculating the information, predicting the information, or retrieving the information from memory.
- Accessing the information can include one or more of, for example, receiving the information, retrieving the information (for example, from memory), storing the information, moving the information, copying the information, calculating the information, determining the information, predicting the information, or estimating the information.
- this application may refer to “receiving” various pieces of information. Receiving is, as with “accessing”, intended to be a broad term. (Receiving the information can include one or more of, for example, accessing the information, or retrieving the information (for example, from memory). Further, “receiving” is typically involved, in one way or another, during operations such as, for example, storing the information, processing the information, transmitting the information, moving the information, copying the information, erasing the information, calculating the information, determining the information, predicting the information, or estimating the information.
- any of the following 7”, “and/or”, and “at least one of, for example, in the cases of “A/B”, “A and/or B” and “at least one of A and B”, is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of both options (A and B).
- such phrasing is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of the third listed option (C) only, or the selection of the first and the second listed options (A and B) only, or the selection of the first and third listed options (A and C) only, or the selection of the second and third listed options (B and C) only, or the selection of all three options (A and B and C).
- This may be extended, as is clear to one of ordinary skill in this and related arts, for as many items as are listed.
- the word “signal” refers to, among other things, indicating something to a corresponding decoder.
- the encoder signals at least one of a plurality of transforms, coding modes or flags.
- the same parameter is used at both the encoder side and the decoder side.
- an encoder can transmit (explicit signaling) a particular parameter to the decoder so that the decoder can use the same particular parameter.
- signaling can be used without transmitting (implicit signaling) to simply allow the decoder to know and select the particular parameter.
- signaling can be accomplished in a variety of ways. For example, one or more syntax elements, flags, and so forth are used to signal information to a corresponding decoder in various embodiments. While the preceding relates to the verb form of the word “signal”, the word “signal” can also be used herein as a noun.
- implementations can produce a variety of signals formatted to carry information that can be, for example, stored or transmitted.
- the information can include, for example, instructions for performing a method, or data produced by one of the described implementations.
- a signal can be formatted to carry the bitstream of a described embodiment.
- Such a signal can be formatted, for example, as an electromagnetic wave (for example, using a radio frequency portion of spectrum) or as a baseband signal.
- the formatting can include, for example, encoding a data stream and modulating a carrier 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.
- embodiments can be provided alone or in any combination, across various claim categories and types. Further, embodiments can include one or more of the following features, devices, or aspects, alone or in any combination, across various claim categories and types:
- a TV, set-top box, cell phone, tablet, or other electronic device that performs transform method(s) according to any of the embodiments described.
- a TV, set-top box, cell phone, tablet, or other electronic device that performs transform method(s) determination according to any of the embodiments described, and that displays (e.g. using a monitor, screen, or other type of display) a resulting image.
- a TV, set-top box, cell phone, tablet, or other electronic device that selects, bandlimits, or tunes (e.g. using a tuner) a channel to receive a signal including an encoded image, and performs transform method(s) according to any of the embodiments described.
- a TV, set-top box, cell phone, tablet, or other electronic device that receives (e.g. using an antenna) a signal over the air that includes an encoded image, and performs transform method(s).
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- General Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Biomedical Technology (AREA)
- Molecular Biology (AREA)
- Biophysics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US202062970880P | 2020-02-06 | 2020-02-06 | |
| PCT/US2021/014686 WO2021158378A1 (en) | 2020-02-06 | 2021-01-22 | Systems and methods for encoding a deep neural network |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| EP4101166A1 true EP4101166A1 (en) | 2022-12-14 |
Family
ID=74661484
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| EP21706099.5A Pending EP4101166A1 (en) | 2020-02-06 | 2021-01-22 | Systems and methods for encoding a deep neural network |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US20230064234A1 (en) |
| EP (1) | EP4101166A1 (en) |
| WO (1) | WO2021158378A1 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20250007582A1 (en) * | 2021-10-01 | 2025-01-02 | Lg Electronics Inc. | Method for reporting channel state information in wireless communication system and apparatus therefor |
| WO2023198817A1 (en) * | 2022-04-15 | 2023-10-19 | Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. | Decoder for providing decoded parameters of a neural network, encoder, methods and computer programs using a reordering |
| EP4526800A1 (en) * | 2022-05-18 | 2025-03-26 | InterDigital CE Patent Holdings, SAS | A method or an apparatus implementing a neural network-based processing at low complexity |
| WO2025054299A1 (en) * | 2023-09-06 | 2025-03-13 | Interdigital Vc Holdings, Inc. | Context adaptive binary arithmetic coding binarization for clipped feature coding |
| WO2025059347A1 (en) * | 2023-09-12 | 2025-03-20 | Interdigital Vc Holdings, Inc. | Quantization parameters signaling for feature compression |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7580584B2 (en) * | 2003-07-18 | 2009-08-25 | Microsoft Corporation | Adaptive multiple quantization |
| US8116374B2 (en) * | 2004-05-07 | 2012-02-14 | Broadcom Corporation | Method and system for generating a transform size syntax element for video decoding |
| KR101446771B1 (en) * | 2008-01-30 | 2014-10-06 | 삼성전자주식회사 | Image coding apparatus and image decoding apparatus |
| US9338476B2 (en) * | 2011-05-12 | 2016-05-10 | Qualcomm Incorporated | Filtering blockiness artifacts for video coding |
| US9451252B2 (en) * | 2012-01-14 | 2016-09-20 | Qualcomm Incorporated | Coding parameter sets and NAL unit headers for video coding |
| US20150365703A1 (en) * | 2014-06-13 | 2015-12-17 | Atul Puri | System and method for highly content adaptive quality restoration filtering for video coding |
| CN117278172A (en) * | 2015-01-28 | 2023-12-22 | 交互数字专利控股公司 | Uplink feedback method for operating a large number of carriers |
| JP7029321B2 (en) * | 2017-04-20 | 2022-03-03 | パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ | Information processing methods, information processing equipment and programs |
-
2021
- 2021-01-22 WO PCT/US2021/014686 patent/WO2021158378A1/en not_active Ceased
- 2021-01-22 US US17/794,117 patent/US20230064234A1/en active Pending
- 2021-01-22 EP EP21706099.5A patent/EP4101166A1/en active Pending
Also Published As
| Publication number | Publication date |
|---|---|
| US20230064234A1 (en) | 2023-03-02 |
| WO2021158378A1 (en) | 2021-08-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20230252273A1 (en) | Systems and methods for encoding/decoding a deep neural network | |
| US20230064234A1 (en) | Systems and methods for encoding a deep neural network | |
| US12301818B2 (en) | Context-based binary arithmetic encoding and decoding | |
| TWI878283B (en) | Framework for coding and decoding low rank and displacement rank-based layers of deep neural networks | |
| US20230267309A1 (en) | Systems and methods for encoding/decoding a deep neural network | |
| US20220188633A1 (en) | Low displacement rank based deep neural network compression | |
| US20220300815A1 (en) | Compression of convolutional neural networks | |
| WO2021001687A1 (en) | Systems and methods for encoding a deep neural network | |
| WO2021063559A1 (en) | Systems and methods for encoding a deep neural network | |
| WO2020112453A1 (en) | Entropy coding optimization | |
| US20230014367A1 (en) | Compression of data stream | |
| EP4633155A1 (en) | Bit hiding on enhanced states dependent quantization | |
| WO2020060864A1 (en) | Multiple transforms selection signalling | |
| WO2024094478A1 (en) | Entropy adaptation for deep feature compression using flexible networks | |
| WO2025214702A1 (en) | Bit hiding on enhanced states dependent quantization | |
| WO2024158896A1 (en) | Multi-residual autoencoder for image and video compression | |
| WO2021058408A1 (en) | Most probable mode signaling with multiple reference line intra prediction |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: UNKNOWN |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE INTERNATIONAL PUBLICATION HAS BEEN MADE |
|
| PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE |
|
| 17P | Request for examination filed |
Effective date: 20220726 |
|
| AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR |
|
| RAP3 | Party data changed (applicant data changed or rights of an application transferred) |
Owner name: INTERDIGITAL PATENT HOLDINGS, INC. |
|
| DAV | Request for validation of the european patent (deleted) | ||
| DAX | Request for extension of the european patent (deleted) | ||
| RAP1 | Party data changed (applicant data changed or rights of an application transferred) |
Owner name: INTERDIGITAL MADISON PATENT HOLDINGS, SAS |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: EXAMINATION IS IN PROGRESS |
|
| 17Q | First examination report despatched |
Effective date: 20241018 |