Optimized quantification of a latent space in neural audio coding

Decorrelating latent vectors through PCA or KLT and using direct quantization optimizes neural audio coding, addressing inefficiencies in existing methods by reducing complexity and storage needs while maintaining quality.

FR3147899A1Inactive Publication Date: 2024-10-18ORANGE SA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
FR2023003578
Authority / Receiving Office
FR · FR
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-11
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing neural audio coding methods, such as multi-stage vector quantization, suffer from suboptimal signal-to-noise ratio, significant storage requirements, and high computational complexity, particularly as the number of stages increases.

Method used

Applying a linear transform, such as PCA or KLT, to decorrelate latent vectors, followed by direct quantization, reduces the need for nearest neighbor searches and storage, and improves coding efficiency.

Benefits of technology

The proposed method achieves better coding quality with reduced complexity and storage requirements while maintaining performance comparable to existing methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Optimized Latent Space Quantization in Neural Audio Coding. The invention relates to a method for encoding an audio signal comprising an analysis (E401) of the audio signal by an analysis neural network to obtain a latent representation of the audio signal, wherein the encoding of the latent representation is carried out according to the following steps: - application (E404) to a latent vector (z) representing the latent representation of the audio signal or to a preprocessed latent vector (z'), of an orthogonal linear transform (T), to obtain a transformed latent vector (y); - quantization (E405) of the transformed latent vector (y) obtained. The invention also relates to a method for decoding an audio signal, a corresponding encoding device, and a corresponding decoding device. Abstract figure: Figure 4a
Need to check novelty before this filing date? Find Prior Art

Description

Title of the invention: Optimized quantization of a latent space in neural audio coding Technical field

[0001] The present invention relates to the general field of audio signal encoding and decoding. The invention relates in particular to the optimized quantization of a latent space (or signal transformed by a neural network) for the encoding and decoding of an audio signal. Previous technique

[0002] We are interested here in the lossy coding (or compression) of speech and audio signals.

[0003] In a lossy compression system, the general objective is to seek a representation of the signal that is as suitable as possible for coding at the lowest possible bit rate at a given quality or conversely with the best possible quality at a given bit rate, taking into account constraints such as complexity, storage quantity or algorithmic delay.

[0004] Historically, this field has developed according to two approaches:

[0005] • Speech signal coding dominated by a temporal approach based on the Linear prediction (short-term and long-term) is used to model the speech signal; the unmodeled portion (innovation or prediction residual) is coded in addition to the model parameters. Auditory perception is generally accounted for through the use of perceptual weighting. The CELP model (for "Code Excited Linear Prediction") remains the reference paradigm for good-quality, low-bitrate "conventional" speech coding.

[0006] • Audio signal coding, which relies mainly on a frequency- Quantitative coding by sub-bands or transforms is used to achieve coding gain and take advantage of psychoacoustic characteristics and the limitations of auditory perception. MDCT (Modified Discrete Cosine Transform) coding, with critical decimation, remains the reference technique for conventional low-bitrate audio coding.

[0007] Speech coding and audio coding have subsequently converged with "universal" coding models, in particular through time-combining (CELP) and frequency-combining (MDCT) approaches.

[0008] The state of the art in "conventional" speech and audio coding is very rich, and numerous standardized or proprietary codes have been developed, incorporating various technical advances and responding to diverse applications and constraints. The most recent standards such as US AC, MPEG-H 3D Audio, EVS or Opus give a good overview of the latest advances and currently represent the state of the art of "conventional" coding.

[0009] Artificial intelligence-based approaches, particularly those using neural networks such as WaveNet and VQ-VAE (for "Vector quantized-variational auto-encoder"), have stimulated the emergence of speech and audio coding methods based on neural networks. Deep learning has shown great potential in other areas related to audio coding, such as text-to-speech synthesis, image and video coding, and audio signal analysis and processing in general.

[0010] A particular feature of neural methods applied to speech and audio is that they generally operate directly in the time domain (on the waveform). However, models in the frequency domain are also found.

[0011] Two approaches to neuronal speech and audio coding can be distinguished: • Coding of features to feed into a decoding by synthesis with generative model: parameters, such as the spectrogram according to the Mel scale, are estimated and coded and a neural network decoder (ex: WaveNet) reconstructs the waveform from this coded representation. • End-to-end coding, inspired by the VQ-VAE approach, where the code is decomposed into an analysis part, a quantifier, and a synthesis part, which are learned end-to-end. The principle is to represent the distribution of the (high-dimensional) input using discretized latent codes.

[0012] Neural audio coding has reached a level of maturity sufficient for neural coded systems to be deployed in conversational applications.

[0013] The methods used here for representing neural audio coding are the coded methods called "SoundStream" and "EnCodec", which are described respectively in:

[0014] N. Zeghidour, A. Luebs, A. Omran, J. Skoglund and M. Tagliasacchi, “Soundstream: An end-to-end neural encoded audio,” IEEE / ACM Transactions on Audio, Speech, and Language Processing, 2021, and

[0015] A. Unditch and e. al., “High fidelity neural audio compression,” arXiv preprint arXiv:2210.13438, 2022.

[0016] Their low bitrate performance (in the order of 3 to 6 kbit / s) rivals "conventional" speech and audio coding approaches such as EVS or Opus which operate at higher bitrates.

[0017] These two coded methods, SoundStream and Encodec, are very similar; here we only describe the principle of the "EnCodec" method (in the case of a mono signal, i.e. one-dimensional).

[0018] Figure 1 illustrates the coding principle according to the EnCodec method (in the case of a mono-, i.e., one-dimensional signal). Two stages can be distinguished in the design of this coded neural network: training and inference. In the training phase, the model parameters are trained using training data. The inference phase refers to the deployment of the model and its application in a real-world situation.

[0019] In the inference phase, i.e. when using the already "trained" code, the encoding (block 100) of a signal frame of 320 samples of the input signal x sampled at a frequency of 24 kHz is broken down into two blocks:

[0020] - an analysis part (block 101) by a neural network that converts the signal input x in a latent representation z also called "latent space". This latent space represents in compact form the important characteristics of the input signal.

[0021] In the EnCodec example, the architecture of the analysis part is described later with reference to Figures 9 and 10.

[0022] - a quantization / coding part (block 102) of the latent representation z with even actually an entropic coding (called language model) in the case of EnCodec, generating a binary train I made up of multiplexed quantization indices.

[0023] Similarly, in the inference phase, the decoding (block 110) which reconstructs the audio signal is broken down into two blocks:

[0024] - an inverse quantization / latent space decoding (block 111) from the train binary I;

[0025] - a synthesis part by a synthesis neural network (block 112). The architecture of this part is symmetric (in reverse order) to the analysis part, with transposed convolutions instead of convolutions; this architecture is described later with reference to figures 9 and 10. The synthesis generates an approximate value of the signal x called x.

[0026] Note that a complete implementation of Encodec (blocks 100 and 110) is given in: https: / / github.com / facebookresearch / encodec

[0027] The quantization used in EnCodec is a multistage vector quantization, called "Residual VQ" or RVQ (for "Residual Vector Quantization" in English).

[0028] During the training phase, the RVQ quantization dictionaries are learned and stored; the selected codeword is updated with a moving average (with a forgetting factor), and unused entries are replaced with candidates drawn from the current batch of the training set. Quantization is bypassed in the backpropagation phase of gradients for the analysis / synthesis networks. A variable number of stages (called "residual stages") is selected during training to train a single model representing multiple data rates. Furthermore, during training, the code also includes additional metric calculation blocks (block 121) and a complementary neural network called a "discriminator" (block 120), based on the principle of Generative Adversarial Networks (GANs), to obtain different cost functions for training. Details concerning the training process are not detailed here as this is beyond the scope of the present invention, which focuses on improving a neural network code to an audio signal, once the analysis and synthesis networks have already been trained (shaded area of ​​[Fig. 1]).

[0029] Fig. 2 illustrates the operation of multi-stage quantization (block 102 without entropic coding) and Fig. 3 describes the associated decoding (block 111 without entropic decoding).

[0030] Depending on the number of bits R per frame, this works with a series of K quantizers (blocks 201, 202, ... 20K) in cascade, where the signal z of the latent space is coded by a first stage and then the quantization error of the previous stage ek is calculated (block 251, 252, ...) to obtain the input of the current stage.

[0031] In the EnCodec described in the aforementioned article, the bit rate of a stage is 10 bits for an input signal of dimension D=128. For a mono input at 24 kHz, EnCodec defines stages of N=1024 inputs (10 bits per frame of 320 samples at 24 kHz, i.e., 0.75 kbit / s), and can combine up to 32 (for a bit rate of 24 kbit / s). RVQ quantization involves storing K=32 dictionaries (blocks 001 to 00K), with one dictionary per stage; each dictionary Ck = { q(Z ), i = 0, ..., N - 1} has dimension D=128 and size N=1024. Quantification in the k-th floor is done by simply searching for the nearest neighbor between ek and all the code words in the dictionary Ck = { q ( zj, i — 0, ...,1023}, minimizing the quadratic error (the Euclidean distance).

[0032] By default, the number of successive stages combined is predefined: K=2, 4, 8, 16 or 32 stages, for a bit rate of 1.5, 3, 6, 12 or 24 kbit / s (or R = 20, 40, 80, 160, 320 bits per frame). The indices ik of each stage are multiplexed to form the bit stream I of the current frame (block 200).

[0033] During decoding, shown in Figure 3, the number of stages K is determined as a function of the data rate R. The binary stream I is demultiplexed and its indices are separated (block 300), and each stage (blocks 301, 302, ... 30K) provides the stored codeword, which is decoded by reading from the associated dictionary Ck (blocks 001 to 00K). All the decoded codewords Ck^k) a^ns^ are successively added (blocks 352, ..., 35K) to obtain the decoded signal z of the latent space in the current frame.

[0034] The RVQ type latent space quantification method has some advantages: the implicit structures of the latent space are learned implicitly (without being explicitly extracted) by vector quantization, the multi-stage approach allows hierarchical (scalable) coding with stages of improvements whose number depends on the target throughput.

[0035] This method, however, presents several problems. It is known to those skilled in the art that multi-stage (unstructured) quantization is suboptimal, particularly in terms of the quantization signal-to-noise ratio, and this problem becomes increasingly pronounced as the number of stages increases. Furthermore, multi-stage quantization requires significant storage; each stage (of 10 bits) requires N x D stored values, where N = 1024 is the size of the dictionary (in number of codewords) and D is the dimension of the latent space (D = 128 in EnCodec).

[0036] Finally, the complexity of the nearest neighbor search (which must be carried out exhaustively by minimizing the quadratic error between the input ej and all the code words ck(i)) is significant for the 10-bit throughput, and it increases linearly with the number of stages and the throughput.

[0037] There is therefore a need for optimization of latent space coding techniques for the field of neuronal type audio coding / decoding. Description of the invention

[0038] The invention improves upon the state of the art.

[0039] To this end, the invention relates to a method for encoding an audio signal comprising an analysis of the audio signal by an analysis neural network to obtain a latent representation of the audio signal and in which the encoding of the latent representation is carried out according to the following steps: - application to a latent vector representing the latent representation of the audio signal or to a pre-processed latent vector, of a linear transform, to obtain a transformed latent vector; - quantification of the transformed latent vector obtained.

[0040] Applying a transform to the latent vector yields a transformed vector whose components are uncorrelated and for which quantization does not require the same nearest-neighbor search complexity or storage requirements as state-of-the-art methods. In an embodiment where the multi-stage quantization approach is replaced by direct quantization, this method also provides better high-throughput coding quality compared to the multi-stage vector quantization method.

[0041] In one embodiment, the pre-processed latent vector is obtained by subtracting from the latent vector a correction vector representing an average value of the latent vector or a latent vector from at least one first direct quantization.

[0042] The correction vector allows the latent vector to be adapted to the transformation implemented, by removing average values ​​that could interfere with the transformed vector obtained and make the transformation less optimal.

[0043] In a particular embodiment, the pre-processed latent vector is further obtained after scaling the components of the pre-processed latent vector.

[0044] This scaling allows another adaptation of the latent vector before the transform step.

[0045] In a particular embodiment, the transform further includes a reduction of the components to be quantified by removing a part of the components of the latent vector.

[0046] In this embodiment, an order of importance of the transform parameters makes it possible to truncate part of the components of the latent vector to be transformed and thus reduce the number of components to be quantified, without degrading the quality of quantification.

[0047] In one possible embodiment, a quantization index, corresponding to the bit budget used in at least one first direct quantization, is coded.

[0048] This index allows the remaining coding rate to be adjusted.

[0049] In one embodiment, the quantization of the transformed latent vector is carried out by a vector quantization of the shape-gain type.

[0050] This quantification method is simple and requires little storage.

[0051] In another embodiment, the quantization of the transformed latent vector is carried out by at least one vector quantization step using a transformed quantization dictionary.

[0052] This quantification method makes it possible to make the encoder and decoder according to the invention compatible with the state-of-the-art EnCodec type encoder or decoder.

[0053] The invention also relates to a method for decoding an audio signal comprising a synthesis, by a synthetic neural network, of a decoded latent vector, to obtain a decoded audio signal and in which the decoding of the latent vector is carried out according to the following steps: - reception of a binary train containing at least quantization indices of a transformed latent vector; - decoding of the transformed latent vector from the received quantization indices; - application to the decoded transformed latent vector of a linear transform to obtain a decoded latent vector.

[0054] In one embodiment, the decoded latent vector is an inter- latent vector median to which is added a correction vector representing an average value of the latent vector or a decoded latent vector from at least one first direct inverse quantization, to obtain the decoded latent vector.

[0055] The advantages of the decoding process are the same as those of the encoding process described above.

[0056] To obtain a predefined vector size, the decoding process further includes a step of adding additional components to the decoded latent vector. This fills in the elements that were truncated during encoding.

[0057] The invention relates to a coding device comprising a processing circuit for implementing the steps of the coding process as described above.

[0058] The invention also relates to a decoding device comprising a processing circuit for implementing the steps of the decoding process as described above.

[0059] The invention relates to a computer program comprising instructions for implementing the encoding or decoding processes as described above, when executed by a processor.

[0060] Finally, the invention relates to a storage medium, readable by a processor, storing a computer program containing instructions for the execution of the encoding or decoding process described above. Brief description of the drawings

[0061] Other features and advantages of the invention will become more apparent upon reading the following description of particular embodiments, given by way of simple illustrative and non-limiting examples, and the accompanying drawings, among which:

[0062] [Fig. 1] illustrates an example of encoder and decoder by neural networks with a quantization of the latent space;

[0063] [Fig.2] illustrates an example of multi-stage vector quantization (unstructured) of the latent space according to the state of the art;

[0064] [Fig.3] illustrates an example of decoding by (unstructured) multi-stage vector quantization of the latent space according to the state of the art;

[0065] [Fig.4a] illustrates in the form of a flowchart, the steps of a coding process according to a main embodiment of the invention;

[0066] [Fig.4b] illustrates in the form of an organizational chart, the steps of a decoding process according to a main embodiment of the invention;

[0067] [Fig.5] illustrates a coding device and a coding method according to a first embodiment of the invention.

[0068] [Fig.6] illustrates a decoding device and a decoding method according to a first embodiment of the invention.

[0069] [Fig.7] illustrates a coding device and a coding method according to a second embodiment of the invention.

[0070] [Fig.8] illustrates a decoding device and a decoding method according to a second embodiment of the invention.

[0071] [Fig.9] illustrates an example of the realization of the analysis and synthesis parts of a example of coded neural audio used according to the invention;

[0072] [Fig. 10a] illustrates an example of input / output format for the analysis part of an example of neural audio encoded used according to the invention;

[0073] [Fig. 10b] illustrates an example of input / output format for the analysis part of an example of neural audio encoded used according to the invention;

[0074] [Fig. 11] illustrates examples of structural realization of an encoding device and a decoding device according to an embodiment of the invention. Description of the implementation methods

[0075] Figure 4a illustrates in flowchart form the main steps of a method for encoding an audio signal according to the invention.

[0076] In a first step E401, the audio signal x is analyzed by an analysis neural network as described with reference to [Fig. 1] (block 101) to obtain a latent representation z of this audio signal. The architecture of this neural network analysis step may be as described with reference to [Fig. 1] and detailed in Figures 9 and 10. In variations, the implementation example of block 101 from EnCodec may be replaced by other neural network architectures (for example, the analysis part of the coded SoundStream, of an auto-encoder, etc.).

[0077] The latent space obtained is represented here, in the described embodiment, in vector form and represented by a latent vector z.

[0078] This latent space can also be represented by a set of latent vectors, for example in the case of a matrix representation. In the following description, we will refer to the processing of a latent vector. It is understood that for a matrix representation, the processing can be performed on the set of latent vectors, for example by successively processing the vectors or by transforming the matrix into a one-dimensional vector by concatenating rows or columns.

[0079] A pre-processing of the latent vector can be implemented in step E403.

[0080] For this purpose, a correction vector z0 is obtained in E402 and is subtracted from the vector latent z in E403 to obtain a pre-processed latent vector z'.

[0081] This correction vector can be fixed or adaptive. It represents an average value of the latent vector (obtained from values ​​previously stored in memory (Inf)) or a latent vector resulting from at least one first direct quantization.

[0082] The different methods of obtaining this correction vector are described later with reference to Figures 5 and 7.

[0083] This correction of the latent vector is implemented to adapt the latent vector to the transform implemented in step E404. In some cases, this step may not be implemented and the transform is then applied to the unmodified latent vector.

[0084] In step E404 a linear transform is applied, either to the unpretreated latent vector z, or to the pretreated latent vector and thus modified according to step E403. We thus obtain, at the end of step E404, a transformed latent vector y.

[0085] The application of this transform is described later with reference to Figures 5 and 7.

[0086] In step E405, a quantification of this transformed latent vector is implemented.

[0087] Several embodiments of this are possible and are described in reference in figures 5 and 7.

[0088] At the end of this quantization step, a binary train I comprising quantization indices ((ib i2,...) or (m,b)) of the transformed latent vector are obtained, according to the quantization method implemented.

[0089] Fig. 4b illustrates the main steps of a process for decoding an audio signal.

[0090] A step E411 of decoding a transformed latent vector (y) is implemented from quantization indices ((ib i2,...) or (m,b)) of the transformed latent vector received from a binary train I. Examples of embodiment will be described with reference to figures 6 and 8.

[0091] In step E412, a linear transform is applied to the decoded transformed latent vector to obtain a decoded latent vector z' ■ In the case where preprocessing of the latent vector has been performed during encoding, a modification step of the decoded latent vector is performed in E414 by combining the intermediate decoded latent vector z' and a correction vector obtained in step E413 to form a decoded latent vector z-

[0092] At step E415, a neural network synthesis as described with reference to Figure 1 (block 112) is performed on the decoded latent vector to obtain the decoded audio signal r. In variants, the example implementation of block 112 from EnCodec may be replaced by other neural network architectures (for example, the synthesis part of the coded SoundStream, of an auto-encoder, etc.).

[0093] Figure 5 describes a first embodiment of a coding device and a first embodiment of a method for coding an audio signal. This figure shows in particular a coding module (500) of a latent representation (or latent space) contained in an audio signal encoder as described with reference to Figure 1 (block 100). In variations, methods other than the EnCodec analysis neural network may be used to obtain the latent space. Without loss of In general, the input audio signal is considered to be divided into successive time frames (or one-dimensional vectors) of length L (which defines the dimensions of the input vectors). The latent space is viewed here as a vector of dimension D within the current frame. Thus, as an example, we consider L = 320 samples and D = 128. In variations, the values ​​of L and D may be different and vary from one frame to another.

[0094] Thus, the latent space quantization / coding block (block 102) of [Fig.1] is replaced by the latent space coding module (block 500) described now.

[0095] This block 500 therefore receives as input a latent representation z from the neural network analysis module (block 101 of [Fig.1]).

[0096] Hereafter, the terms "latent space" or "latent representation" will refer to the same representation in the form of a set of vectors z, or to simplify, a latent vector z, that is to say, a representation of the audio signal comprising a plurality of variable data (also called latent variables), discrete or not.

[0097] The dimensions of the input of this coding module (block 500) are here denoted [D,T] where D is the dimension of the latent space in each frame and T is the number of frames.

[0098] Furthermore, to simplify the notation, we consider the case of encoding a given frame, with T=1 frame. The case T>1 is relevant for extensions of the invention where joint encoding of several frames would be performed. Hereafter, we will consider that the input of block 500 is of dimension [D,l].

[0099] It is assumed here that the latent representation is in vector form and represented by a latent vector z of dimension [D,l]. In the case where the latent space is not in vector form, it may, for example, be in matrix form, then a conversion to vector form can be provided.

[0100] As will be seen later, the coding process according to the invention consists of transforming the latent space so that the different components of the latent space are as uncorrelated as possible.

[0101] According to a first step, a modified latent vector is obtained by subtracting from the latent vector z, in block 512, a correction vector ê() from block 510 which uses data stored in block 540; it is a vector of dimension [D,l] of latent variables.

[0102] In the preferred embodiment, the vector ê0 corresponds to the (stationary) value of z when the encoder input x is a silence signal (with zero values ​​or a low random noise such as background noise from the sound capture chain or "idle noise"). In this case, block 540 directly stores this predetermined vector, and block 510 simply reads it.

[0103] In variants, the vector can be taken as the mean (or centroid) of a quantization dictionary previously learned and stored as the dictionary Cl (block 001) for the coded described with reference to Figures 2 and 3. This quantization dictionary Cl is stored in memory in block 540 or more advantageously only the centroid 20 from this dictionary is stored.

[0104] Thus, in one embodiment, the determination of the vector z0 is carried out as follows:

[0105] a _ \ Which corresponds to the centroid of the first dictionary Cl cor- <o— N lyl) corresponding to block 001 as described in figures 2 and 3.

[0106] In variants, the dictionaries of the following levels can be included, for example in the case of the first 2 dictionaries Ci and C2 (blocks 001 and 002): [01071

[0108] In this case, the quantization dictionaries Cl and C2 are stored in memory in block 540 or more advantageously only the centroid <() from these 2 dictionaries is stored.

[0109] The purpose of blocks 510 and 512 is to adapt the latent vector z before applying the transform T of block 513. To achieve this, we seek to remove a component based on an average of the latent space. Without this removal, the existence of this average value could make the subsequent transformation in 513 less optimal and could corrupt the resulting transformed vector.

[0110] This vector 20 is defined here as being fixed and no additional information needs to be transmitted.

[0111] Block 513 then performs a linear transform, for example of type PC A / KLT, "PCA" (for "Principal Component Analysis" in English) designating a principal component analysis and "KLT" (for "Karhunen Loeve Transform" in English) designating a Karhunen Loeve transform.

[0112] A reminder of the two techniques is repeated below.

[0113] Karhunen Loeve Transform (or “KLT” for “Karhunen Loeve Transform”)

[0114] The Karhunen-Loeve transformation (KLT) of a random vector z centered at 0 and with covariance matrix R^ = E[z zT] is defined by:

[0115] y = t / Tz

[0116] where U is the matrix of eigenvectors (with the convention that eigenvectors are column vectors) obtained by eigenvalue decomposition of R^

[0117] R^UXU1

[0118] where A = diag(X j, ..., XD) is a diagonal matrix whose coefficients are the eigenvalues. The matrix JJ = [ut. u2, ..., uD] contains the eigenvectors (columns) of 7ÎZZ, such that

[0119] KzzUi^AjUi

[0120] The KLT can be seen as a change of basis, since the JJT product z expresses the vector z in the basis given by the eigenvectors.

[0121] The inverse transformation is given by:

[0122] z = Uy

[0123] KLT allows the components of z to be uncorrelated; the variances of the transformed vector Y are the eigenvalues ​​of Rn.

[0124] Principal component analysis (or “PC A” for “principal component analysis”)

[0125] Principal component analysis (PCA) is a dimensionality reduction technique that produces orthogonal variables and maximizes the variance of the variables after projection (or equivalently minimizes the reconstruction error).

[0126] The PCA presented below, although also based on an eigenvalue decomposition like the KLT, is such that the estimated covariance matrix is ​​calculated from M observed vectors i = 1...K of dimension D-,

[0127] £ = _l_E“r

[0128] assuming that these vectors are centered: 101291

[0130] The eigenvalue decomposition of j?zz in the form — [7AGT] allows the principal components to be calculated: y. = U1 Zf

[0131] PCA is a transformation by the matrix £ / T which projects the data into a new basis to maximize the variance of the variables after projection.

[0132] It should be noted that the PCA can also be obtained from a singular value decomposition (SVD) of the signal z< expressed as a matrix Z of size D x K. In this case, we can write:

[0133] Z=USVT

[0134] where matrices C, S, V denote singular vectors on the left, singular values ​​and singular vectors on the right.

[0135] We verify that ZZT = USS7 CT, which corresponds to a diagonalization of XXT. Thus, the projection vectors of the PCA correspond to the column vectors of U, and the projection gives the result U^X = SVT-

[0136] Without loss of generality, KLT and PCA are considered here to represent the same methods of analysis and transformation. We will subsequently refer to them as the transform linear.

[0137] Thus, block 513 implements a linear transformation step of the modified latent vector z' by applying a rotation matrix U of size DxD defined below (pre-calculated and stored in memory in 533) and a truncation operation, to obtain a transformed latent vector y such that:

[0138] y = trunc(CT - z')

[0139] where truncation(.) denotes the truncation operation which retains only the first DT components. In the preferred embodiment, DT=80 is taken as an example (to be compared with D=128).

[0140] The transformation step (block 513) does not require any bit budget.

[0141] In variants, the covariance matrix may be replaced by a correlation matrix by including a pre-normalization of the different components by the standard deviation, which gives a correlation matrix.

[0142] In variants, it will be possible to combine matrix multiplication by U1 and truncation from D to DT dimensions by performing matrix multiplication only by the matrix UT-

[0143] In the first embodiment described here, the rotation matrix U is pre-calculated and obtained from at least one of the RVQ quantization dictionaries (block 001).

[0144] The covariance matrix R of the first (centered) dictionary Ci is obtained, for example, as follows: 101451 -^,09-¾)

[0146] In variations, the following stages may also be used, for example take: [O 147 ] R = +C2(i2) A)

[0148] In other embodiments, an audio database defining a set of input frames of the signal x may be used, and the sequence of values ​​of the signal z' may be recorded to determine R as the covariance (or correlation) matrix of this signal z'. This matrix R does not need to be stored; it serves only as intermediate information to determine the linear transform to be applied subsequently in the inference step according to the invention.

[0149] A principal component analysis (PCA) or, equivalently, a Karhunen-Loeve transform (KLT) is applied to R, with covariance matrix estimation and eigenvalue decomposition (EVD) to obtain eigenvalues ​​A = dag, X2, ..., ad) and an eigenvector matrix U from the covariance matrix R such that R = UAUr

[0150] In a particular embodiment, the eigenvalues ​​are ordered in descending order with X1 > X2 > ... > XD. In practice, this property can be obtained by using, for example, a singular value decomposition (SVD) on the matrix R or by sorting the eigenvalues ​​obtained and reordering the matrix U.

[0151] According to the invention, in this first embodiment, RVQ quantization is modified by exploiting the decorrelation of the transformed latent space from z to y. Thus, the predefined dictionaries Ci, C2, ..., CK of different levels can be replaced by transformed dictionaries C'i, C'2, ..., C'K on which the latent space can be trunculated. Indeed, since the U transform was performed according to an order of importance of the eigenvalues ​​of the transform matrix, the resulting components are also ordered by order of importance, which makes it possible to truncate a portion and represent only the remaining portion without significantly degrading the quantization quality.

[0152] In an example embodiment, we go from a dimension D=128 to a truncated dimension DT=80.

[0153] Thus, according to the invention, the new quantification dictionaries are defined as follows:

[0154] C'i ^{truncÇÙ1 i)-ê0)), z = 0, ...,7V-1}

[0155] C'2 = |frMMC({7Tc2(z)), z = 0,

[0156]

[0157] C'K= z = 0,

[0158] where truncation(.) denotes the truncation operation which retains only the first DT components.

[0159] Thus, the transformed latent space is quantized by a staged RVQ quantization, by the modules 501, 502,.., 50k and the modules 551, 552, ..., corresponding to the quantization modules 201, 202, ..., 20k and 251, 252,.., described with reference to [Fig.2] using the transformed quantization dictionaries C'i, C'2, ..., C'K, stored in memory in blocks 1001, 1002, ..., 100K.

[0160] The different binary information from the RVQ quantization (ib i2, ...,ik), obtained at the end of the different RVQ quantization stages as described above, are multiplexed in block 530. It should be noted that the invention does not change the order of the codewords, thus the indices ib i2, ...,ik according to the 500 encoding are decodable by the existing RVQ decoder such as EnCodec in 111.

[0161] The advantage of the first embodiment of the invention is that the complexity of searching through successive dictionaries and storage can be reduced by approximately a factor of DT / D, i.e., 80 / 128 in the example given here. The performance of RVQ quantization, however, remains identical to that of the state of art.

[0162] In variants where latent space quantization uses RVQ quantization with dictionaries other than those of EnCodec (e.g. SoundStream with D=256 and other dictionaries), the C'kseront dictionaries will be defined in terms of the predefined Ck dictionaries.

[0163] In one variant, it will also be possible to directly define quantization dictionaries C'k by direct learning from a signal sequence y, without going through a preliminary step of defining existing dictionaries Ck. This variant is essentially equivalent to applying the second embodiment of the invention detailed later, with RVQ quantization of the transformed latent space y.

[0164] Figure 6 describes a first embodiment of a decoding device according to the invention and a first embodiment of a decoding method according to the invention.

[0165] This figure shows in particular a decoding module (600) of a latent representation (or latent space) included in an audio signal decoder as described with reference to [Fig. 1] (block 110). Thus, the latent space decoding block (block 111) of [Fig. 1] is replaced by the latent space decoding module (block 600) described hereafter.

[0166] The received binary stream I for the current frame is demultiplexed (block 630). In this first embodiment, the indices actually correspond to the RVQ quantization indices; however, the original RVQ quantization dictionaries Ck, C2, ..., CK are replaced by lower-dimensional DT dictionaries C'i, C'2, ..., C'K, as in the encoder described in [Fig. 5]. Typically, DT = 80 is taken instead of D = 128 in the original RVQ quantization.

[0167] A decoded transformed latent representation is thus obtained at the end of the different inverse quantization stages 1 to K comprising blocks 601 to 60K and 652 to 65K corresponding to blocks 301 to 30K and 352 to 35K of [Fig.3].

[0168] Next, in block 613, a linear transformation, for example the inverse KLT / PCA transformation, is applied to the decoded transformed latent vector.

[0169] The rotation matrix U stored in 533 and obtained by learning allows the inverse transform to be applied according to the equation:

[0170] ^=Uext^

[0171] representing an intermediate decoded latent vector and ext(.) represents the extension operation from dimension DT to dimension D by adding (D-DT) zeros to the end of the vector.

[0172] In block 610, the correction vector is obtained in the same way as in the encoder in block 510, using the information stored in 510, such as described with reference to [Fig.5].

[0173] Then the vectors and êj are combined in 612 to form the decoded vector of the latent space z-

[0174] This is then provided as input to the neural network synthesis module (Syn.) 112 as described with reference to Figure 1, in order to obtain the decoded audio signal x.

[0175] In one variant, it will also be possible to directly define quantization dictionaries C'k by direct learning from a signal sequence y, without going through a preliminary step of defining existing dictionaries Ck. This variant is in fact equivalent to applying the second embodiment of the invention detailed later, with RVQ quantization of the transformed latent space y.

[0176] Figure 7 describes a second embodiment of a coding device as well as a second embodiment of a method for encoding an audio signal according to the invention. This figure shows in particular a coding module (700) of a latent representation (or latent space) included in an audio signal encoder as described with reference to [Fig.1] (block 100).

[0177] Thus, the latent space quantization / coding block (block 102) of [Fig.1] is replaced by the latent space coding module (block 700) described now.

[0178] This block 700 therefore receives as input a latent representation z from the neural network analysis module (block 101 of [Fig.l]).

[0179] The dimensions of the input of this coding module (block 700) are here denoted [D,T] where D is the dimension of the latent space in each frame and T is the number of frames.

[0180] We again take the example of the audio encoder in [Fig. 1] corresponding to EnCodec, where D=128; in variants, this dimension may have a different value. Furthermore, to simplify the notation, we consider the case of encoding a given frame, with T=1 frame. The case T>1 is relevant for extensions of the invention where joint encoding of several frames would be performed. Hereafter, we will consider the input of block 700 to be of dimension [D,1].

[0181] As in the first embodiment, the coding process according to the invention consists of transforming the latent space so that the different components are as uncorrelated as possible.

[0182] According to a first step, a modified latent vector u is obtained by subtracting from the latent vector z, in block 702, a correction vector zQ from block 701.

[0183] The vector can be: has. As in the case of the first embodiment (block 510), a predetermined average (therefore a vector of dimension [D,l]) of the latent variables of The latent space. Preferably, an input x from the encoder with zero values ​​(silence) or low noise values ​​is taken, and the value of z is retrieved after a certain number of frames; in the EnCodec example, which includes LSTM (Long Short Term Memory) layers, it is important to wait until the encoded system has stabilized its analysis due to the recursive nature of the LTSM layers. In alternative approaches, the centroid of one or more RVQ dictionaries can be used. b. the decoded latent vector CjOj) at the end of a first stage of residual vector quantization RVQ such as block 201 described in [Fig.2] for coding with K=l, or c. more generally, the decoded latent vector, for example C} ( ij ) + ^(ô)' at the end of a predetermined number greater than 1, for example K = 2, of RVQ floors, for example blocks 201 and 202 described in [Fig.2].

[0184] Thus, in the embodiment corresponding to mode a) described above, module 701 reads a determined average vector from memory (block 710). In variants, block 710 determines the centroid of the dictionary Cl as follows:

[0185] a <■0 —

[0186] which corresponds to the centroid of the first quantization dictionary (Cl) of blocks 201 and 301 of RVQ as described in Figures 2 and 3. This quantization dictionary Cl is stored in memory in block 710 or, more advantageously, block 710 can directly store the predetermined value of zQ. As in the first embodiment, the definition of the vector z0 can be generalized to the case where several RVQ dictionaries are used to determine its centroid.

[0187] In embodiments corresponding to modes b) or c) above, block 701 corresponds respectively to one or more vector quantization stages described for the EnCodec method and represented in [Fig. 2] (blocks 201, 202, ...). In this case, block 710 stores the corresponding RVQ dictionary(ies).

[0188] These quantification blocks are not illustrated here in [Fig.7] but they are implemented in block 701.

[0189] The purpose of blocks 701 and 702 is to adapt the latent vector z before applying the T-transform of block 704. This is achieved by removing a component based on an average of the latent space. In case a), this component is approximated as fixed, and no additional information, such as an index (m), needs to be transmitted. The bit budget used by block 701 is then RM = 0 bits.

[0190] In cases b) and c), this component is removed adaptively, and a quantization index m of 10 bits (case b) or 20 bits (example of case c) is given at the output of block 701 to the multiplexer in block 710. In this example, the bit budget used by block 701 is then RM=10 or RM=20, this corresponding to the bit budget used in the quantization stage(s) Q1 or Q1 / Q2.

[0191] Block 703 optionally scales each component of the signal u representing the modified latent vector after the subtraction of z0 performed in 702. Preferably, each component of u is normalized by its standard deviation; in variants, other normalizations are possible. The standard deviation 07) (or alternatively, another normalization value) is pre-calculated and stored in memory in 711. This yields a modified and scaled, i.e., pre-processed, latent vector z'. In variants, values ​​other than the standard deviation of each component of u may be used.

[0192] Next, block 704 performs a linear transform, for example of type PCA / KLT; the pre-processed latent vector z' is transformed by applying a rotation matrix U of size DxD defined below, to obtain a transformed latent vector y such that:

[0193] y = trunc(UT.z')

[0194] where truncation(.) denotes the truncation operation which retains only the first DT components. In the preferred embodiment, DT=80 is taken as an example (to be compared with D=128).

[0195] In general, block 704 does not require any bit budget.

[0196] Matrix U is stored in block 712.

[0197] In the embodiment described here, the rotation matrix U can be determined as in the first embodiment.

[0198] In one embodiment, the coding in block 705 performs a quantization of the transformed latent vector y of dimension DT fixed for example to DT = 80.

[0199] In an example embodiment, shape-gain algebraic vector quantization (AVQ) may be used according to the method described in:

[0200] S. Ragot, B. Bessette, and R. Lefebvre, “Low-Complexity Multi-Rate Lattice Vector Quantization with Application to Wideband TCX Speech Coding at 32 kbit / s,” Proc. ICASSP, Montreal, Canada, May 2004.

[0201] In this case, the transformed signal y (or transformed latent vector) is divided into Nv successive subvectors of dimension 8. In the example with a truncation in dimension DT= 80, we have Nv = 10 subvectors to be coded.

[0202] As described in the aforementioned Ragot et al. article, the signal is scaled by the inverse (1 / g) of an overall gain denoted g which can be pre-estimated or determined by bisection by maximizing the number of bits used B while respecting the budget constraint B< (R-Rm).

[0203] The transformed and scaled latent signal, by a factor of 1 / g, i.e., (l / g)*y, is therefore coded by a subvector. This yields a series of quantization indices of a The number of bits is a variable (multiple of 4), and a unary code represents the quantizer index. A complete implementation example of this AVQ quantization is given in the 3GPP AMR-WB+ standard (see 3GPP TS 26.273 for the fixed-point version or TS 26.304 for the floating-point version); therefore, we will not go into further detail here regarding the implementation of block 705.

[0204] The set of binary data resulting from quantization is multiplexed in block 705 to form a binary train b.

[0205] The different binary information (m, b), as defined above, are multiplexed in block 720.

[0206] In variants, an entropic coding of the indices m and b may also be implemented.

[0207] In variants, other methods of quantizing the transformed latent space are possible in block 705. For example, pyramidal quantization (PVQ) per subvector with a fixed or adaptive binary allocation can be used; examples of PVQ implementations are given, for example, in the Opus encoded or EVS encoded versions. The implementation of PVQ is similar to that described previously for AVQ quantization. The signal is typically divided into subvectors and normalized by an overall gain. A fixed (predetermined) or variable (as in the AVQ case) binary allocation can be used to quantize each subvector with a PVQ quantizer.

[0208] In another embodiment, the signal y is determined as described above but quantized by RVQ according to the principle of encoding y in block 500 with truncated dimension DT dictionaries C'k. In this case, once blocks 701, 702, 703, 710, 711, 712 are predetermined, the dictionaries can be determined by learning according to the principles of RVQ quantization. In this case, the binary train b consists of the sub-indices associated with each RVQ dictionary.

[0209] In variants, a uniform scalar quantization followed by an entropy coding may also be taken as block 705.

[0210] An example of implementation is given, for example, in the article by Johannes Ballé, Valero Laparra, Eero P. Simoncelli, End-to-end Optimized Image Compression, Proc. ICLR 2017. Instead of quantizing the latent space of an autoencoder (here of an image signal), we take the encoding of the transformed latent space y. We apply to y a uniform scalar quantization of a predetermined step size and then encode the integer quantization indices by arithmetic coding.

[0211] One advantage of the invention is that the arithmetic coding can exploit the eigenvalue decomposition, XD, associated with the determination of the transformation (block 704). Only the first DT values ​​are retained since y is defined here after truncation. Thus, the probability model for the entropy coding is This is easily derived by assuming, for example, a Gaussian or Laplacian distribution of y with variances given per component respectively by , XDr

[0212] Figure 8 describes a second embodiment of a decoding device according to the invention and a second embodiment of a decoding method according to the invention.

[0213] This figure shows in particular a decoding module (800) of a latent representation (or latent space) included in an audio signal decoder as described with reference to [Fig. 1] (block 110). Thus, the latent space decoding block (block 111) of [Fig. 1] is replaced by the latent space decoding module (block 800) described below.

[0214] The received binary train I for the current frame is demultiplexed (block 801).

[0215] In block 802, the correction vector is obtained in the same way as in encoder in block 701. This correction vector from block 802 can be:

[0216] a) a predetermined average of the latent variables of the latent space; b) the decoded latent vector following a first stage of inverse vector quantization RVQ according to decoding block 301 of [Fig.3] for decoding with K=l, or c) more generally, the latent vector decoded at the end of a predetermined number of RVQ stages of inverse vector quantization of a predetermined number greater than 1, for example K=2, according for example to the decoding of blocks 301 and 302 of [Fig.3].

[0217] In cases b) and c), block 802 then corresponds respectively to one or more decoding stages D1, D2,... , described for the EnCodec method and represented in [Fig.3] (blocks 301, 302, ...). These inverse quantization blocks are not shown here in [Fig.8].

[0218] These decoding stages use the bit budget indicated by the quantization index m on Rm bits transmitted in the bitstream and decoded in 802.

[0219] Block 803 of Figure 8 decodes the transformed latent vector y from the binary train b. This decoding step is not described in further detail; it corresponds to the decoding according to the implementation of block 705, with examples of variants being: AVQ, PVQ, RVQ, or scalar quantization with entropy coding.

[0220] To replace the truncated elements and complete the frames of the resulting transformed latent space, 0s can be added to the transformation step T of block 805. In an alternative embodiment, an injection of noise, for example of the type of noise substitution known to the person skilled in the art, of block 804 may be provided.

[0221] Next, in block 805, a linear transformation is applied, for example the inverse KLT / PCA transformation to the decoded transformed latent vector.

[0222] The rotation matrix U stored in 712 and obtained by learning allows the inverse transform to be applied according to the equation:

[0223] v=Uext(y)

[0224] v representing an intermediate decoded latent vector and ext(.) representing the extension operation from dimension DT to dimension D by adding (D-DT) zeros to the end of the vector. This vector is then scaled componentically (block 806), in the same way as in block 703 of Figure 7, to obtain the vector û.

[0225] Then the vectors and « are combined in 807 to form the decoded vector of the latent space z.

[0226] This is then provided as input to the neural network synthesis module (Syn.) 112 as described with reference to Figure 1, in order to obtain the decoded audio signal î.

[0227] Figure 9 illustrates an example of the implementation of neural networks used in the invention, specifically the elements of the analysis section 101 and the synthesis section 112. The EnCodec case is illustrated here as an example. The architecture used is very similar to and derived from that of the SoundStream coded network – the main difference between the architectures of EnCodec and SoundStream lies in the fact that the "ResNetBlock" blocks are more complex in SoundStream and that SoundStream also contains a special layer called FiLM. In contrast, EnCodec contains an LSTM layer, which SoundStream does not have.

[0228] The analysis part of block 101 is composed of several successive layers: - 1D convolution (with a filter or "kernel" of length 7) with 32 channels in block 901 - 4 convolution blocks (902-904, 905-907, 908-910, 911-913) including a residual unit block (two convolutions and a "skip" connection) and a convolution with decimation ("stride") of 2, 4, 5 or 8 and a filter of double the length of the "stride" - LSTM layer divided into 2 sub-layers in blocks 914-915 - Final 1D convolution layer in block 916

[0229] The activation functions are of type ELU (Exponential Linear Unit) which is defined as: f(x) = xsix>0 and a*(exp( x ) - 1) if x < 0, a is a positive value.

[0230] The input and output tensor dimensions of each block are detailed in [Fig. 10a] for the analysis section. The input to the analysis neural network is a column vector of dimension L=320 (samples); this dimension is written here in the form [1, 1, 320]. Block 900 uses 32 channels, resulting in an output of dimension [1, 32, 320]. Subsequent blocks modify the tensor dimensions, doubling the number of channels each time (from 32 to 64, then 128, 256, and 512) and reducing the last dimension by a factor given by the The step parameter ("stride") is 2, 4, 5, and 8, respectively. Blocks 914 and 915 do not change the dimensions of the tensors. The final block, 916, reduces the dimension from [1, 512, 1] to only [1, 128, 1], resulting in a latent vector of dimension D=128.

[0231] The synthesis part of block 112 has an "inverted" architecture with the same number of blocks: - Initial 1D convolution layer in block 921 - LSTM layer divided into 2 sub-layers in blocks 922-923 - 4 transposed convolution blocks (924-926, 927-929, 930-932, 933-935) including a transposed convolution, a residual unit block and an ELU activation - 1D convolution in block 936

[0232] The input and output tensor dimensions of each block are detailed in [Fig.10b] for the synthesis part. Starting from a latent vector of dimension D=128, noted in tensor form [1, 128, 1], we finally obtain an audio vector of dimension L=320, noted in tensor form [1,1, 320].

[0233] Figure 11 illustrates a DCOD encoding device and a DDEC decoding device, according to the invention, these devices being dual to each other (in the sense of "reversible") and connected to each other by a communication network RES.

[0234] The DCOD coding device comprises a processing circuit typically including: - a MEM1 memory to store instruction data of a computer program as defined in the invention (these instructions can be distributed between the DCOD encoder and the DDEC decoder) as well as data calculated during a learning phase; - an INT1 interface for receiving an audio signal of origin x; - a PROC1 processor to receive this signal and process it by executing the computer program instructions stored in the MEM1 memory, for the purpose of encoding it; in particular, the processor being capable of driving a neural network-based analysis module and a latent representation quantification module as described with reference to Figures 5 and 7; and - a COM 1 communication interface for transmitting coded signals over the network.

[0235] The DDEC decoding device includes its own processing circuit, typically including: - a MEM2 memory for storing instruction data from a computer program as defined in the invention (these instructions can be distributed between the DCOD encoder and the DDEC decoder as previously indicated) as well as data calculated during a learning phase; - a COM2 interface to receive coded signals from the RES network for decoding in compression as defined in the invention; - a PR0C2 processor to process these signals by executing the computer program instructions stored in the MEM2 memory, for the purpose of decoding them; in particular, the processor being capable of driving a latent space decoding module as described with reference to Figures 6 and 8 and a neural network-based synthesis module; and - an INT2 output interface to deliver the decoded audio signal x.

[0236] Of course, this [Fig. 1 1] illustrates an example of a structural embodiment of a coded device (encoder or decoder) within the meaning of the invention. Figures 4 to 10, discussed above, describe in detail functional embodiments of these coded devices.

Claims

Claims

1. Method for coding an audio signal comprising an analysis (E401) of the audio signal by an analysis neural network to obtain a latent representation of the audio signal and in which the coding of the latent representation is carried out according to the following steps: - application (E404) to a latent vector (z) representative of the latent representation of the audio signal or to a preprocessed latent vector (z'), of a linear transform (T), to obtain a transformed latent vector (y); - quantification (E405) of the transformed latent vector (y) obtained.

2. Method according to claim 1, in which the preprocessed latent vector (z') is obtained by subtracting from the latent vector (z) a correction vector (z0) representing an average value of the latent vector or a latent vector resulting from at least a first direct quantization.

3. The method of claim 2, wherein the preprocessed latent vector is further obtained after scaling the components of the preprocessed latent vector.

4. Method according to one of claims 1 to 3, in which the transform further comprises a reduction of the components to be quantified by removing a part of the components of the latent vector.

5. A method according to claim 2, wherein a quantization index, corresponding to the bit budget used in the at least one first direct quantization, is encoded.

6. Method according to one of claims 1 to 5, in which the quantization of the transformed latent vector is carried out by a vector quantization of the gain-shape type.

7. Method according to one of claims 1 to 5, in which the quantization of the transformed latent vector is carried out by at least one vector quantization step using a transformed quantization dictionary.

8. Method for decoding an audio signal comprising a synthesis (E415), by a synthesis neural network, of a decoded latent vector, to obtain a decoded audio signal and in which the decoding of the latent vector is carried out according to the following steps: - reception of a binary train comprising at least quantization indices of a transformed latent vector; - decoding (E411) of the transformed latent vector (y) from the indices received quantization; - application (E412) to the decoded transformed latent vector (y) of a linear transform to obtain a decoded latent vector (2').

9. Method according to claim 8, in which the decoded latent vector is an intermediate latent vector to which a correction vector (<0) representing an average value of the latent vector or a decoded latent vector resulting from at least a first direct inverse quantization is added, to obtain the decoded latent vector.

10. Method according to one of claims 8 to 9 further comprising a step of adding additional components to the decoded latent vector to obtain a predefined vector size.

11. Coding device comprising a processing circuit for implementing the coding steps according to one of claims 1 to 7.

12. Decoding device comprising a processing circuit for implementing the decoding steps according to one of claims 8 to 10.

13. Storage medium, readable by a processor, storing a computer program comprising instructions for executing the coding method according to one of claims 1 to 7 and / or a decoding method according to one of claims 8 to 10.

Citation Information

Patent Citations

  • Quantization method of latent vector for audio encoding and computing device for performing the method

    US20210174815A1