A progressive compression method for acoustic coding

By gradually compressing the length of the feature sequence during the acoustic coding process and using the representation fusion module, the problems of excessive computing resource consumption and information loss in acoustic coding are solved, and more efficient acoustic model coding and performance improvement are achieved.

CN114007075BActive Publication Date: 2024-11-29XIAONIU FANYI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111440309.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2024-11-29
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

The existing acoustic encoding methods occupy too much computing resources and have information loss problems, making it difficult to effectively reduce computing resource consumption and information loss.

Method used

The step-by-step compression method for acoustic coding is adopted to gradually reduce the sequence length during the encoding process, reduce information loss through the representation fusion module, and improve the coding efficiency of the acoustic model.

Benefits of technology

It reduces the model's demand for computing resources, reduces information loss, achieves more efficient acoustic model coding, and improves the model's computing speed and performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114007075B_ABST
    Figure CN114007075B_ABST
Patent Text Reader

Abstract

The present invention discloses a progressive compression method for acoustic coding, the steps of which are: 1) for acoustic tasks, extracting a frame-based audio feature sequence from an original audio file using a signal processing method; 2) randomly initializing the parameters of an acoustic model, encoding the audio feature sequence using the acoustic model, and gradually compressing the sequence length during the encoding process; 3) fusing the audio features during the encoding process; 4) passing the fused representation to a speech recognition module or a speech translation module to complete the entire modeling process. The present invention gradually compresses the length of the feature sequence during the encoding process, reducing the model's demand for computing resources; at the same time, it avoids the problem of information loss caused during the compression process, thereby achieving more efficient encoding; it can be applied to a variety of acoustic tasks, not only speeding up the model's calculation speed, but also effectively improving the model's performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an acoustic model coding method, in particular to a step-by-step compression method for acoustic coding. Background Art

[0002] Speech is the most commonly used medium of communication in people's daily lives. In today's intelligent society, various intelligent technologies based on speech play an increasingly important role in people's daily lives, such as speech recognition, speech translation, and speech understanding. However, for acoustic models, the input is usually a frame-based feature sequence. Audio is essentially a waveform after several signal processing. Specifically, sound is a vibration of air, so it can be converted into an analog signal. An analog signal is a continuous signal that is converted into a discrete digital signal after sampling. Sampling is to record the amplitude of the sound at fixed intervals. The sampling rate represents the number of sampling points per second, and the unit is Hertz (Hz). The higher the sampling rate, the more similar the sampling result is to the original speech. In other words, the representation of audio is actually a very long sequence of sampling points, which makes it difficult to directly use existing deep learning technologies to process audio sequences. In addition, the original audio signal may contain a lot of noise, ambient sound or redundant information, which will also interfere with the model. Therefore, the audio sequence is generally processed to extract acoustic features, specifically converting the long sequence of sampling points into a short sequence of feature vectors, which are then used in downstream systems. The first step of acoustic feature extraction is preprocessing, and the process mainly involves pre-emphasis, framing, and windowing of the audio. Among them, the framing operation is based on the short-term stationary assumption, that is, according to biological characteristics, the speech signal is a slowly changing process, and the 10ms-30ms signal segment is relatively stable. Based on this assumption, every 25ms is generally used as a frame to extract features. At the same time, in order to ensure the smoothness of the signal between different frames, there is a certain overlap between every two adjacent frames, and generally a frame is taken every 10ms. After the preprocessing operation, the frame sequence corresponding to the audio can be obtained, and then different types of acoustic features are extracted through different operations. The more commonly used ones are filter banks and Mel frequency cepstral coefficients. The length of the extracted acoustic features is much larger than the length of the text, usually about 20-30 times the length of the corresponding text. Long sequences will cause the model to require more video memory and computing time, significantly increasing the demand for computing resources. In addition, the input of long sequences will make it difficult for the model to effectively focus on the relevant positions in the attention mechanism module, thereby increasing the complexity of modeling. A common solution to this problem is to stack two convolutional layers with an interval of 2 to compress the dimension of the input sequence, thereby compressing the sequence length to one-fourth of the previous length. However, this approach still has two problems. First, the length of the compressed sequence is still much longer than the length of the text corresponding to the speech. Second, two consecutive sequence compressions at the input layer will cause information loss in the input sequence.

[0003] To address this problem, researchers have tried to use convolutional modules to compress sequences at different layers in the encoding process. This approach can compress a relatively larger proportion of the input sequence and reduce information loss, but this solution is not flexible. Some researchers also use the entire input sequence for encoding, but use a special attention module to reduce the computing resources consumed by the attention module. Although this approach can retain the complete input sequence, other modules of the model still require huge computing resources and increase the modeling complexity of the model. Another approach is to extract speech features through a pre-trained speech recognition encoder, and then use a feature selection model to extract useful features from the encoded features, thereby effectively reducing the length of the input sequence, but the process of this approach is too cumbersome.

[0004] In view of the problems existing in acoustic coding and the shortcomings of previous solutions, we consider whether there is a more effective coding method that can not only reduce the computing resources used for coding, but also reduce the information loss during the coding process. Summary of the invention

[0005] In view of the problem that acoustic coding in the prior art occupies too many computing resources and there is information loss, the technical problem to be solved by the present invention is to provide a progressive compression method for acoustic coding, which reduces the consumption of computing resources by the model by gradually reducing the length of the sequence during the encoding process; and reduces the information loss caused by compression through a representation fusion module, thereby significantly improving the efficiency of acoustic model encoding.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0007] The present invention provides a stepwise compression method for acoustic coding, comprising the following steps:

[0008] 1) For acoustic tasks, use signal processing methods to extract frame-based audio feature sequences from original audio files;

[0009] 2) Randomly initialize the parameters of the acoustic model, use the acoustic model to encode the audio feature sequence, and gradually compress the sequence length during the encoding process;

[0010] 3) Fusion of audio features during encoding;

[0011] 4) The fused representation is passed to the speech recognition module or the speech translation module to complete the entire modeling process.

[0012] In step 2), the parameters of the acoustic model are randomly initialized, and the acoustic model is used to encode the audio feature sequence. The sequence length is gradually compressed during the encoding process, specifically:

[0013] 201) Input the audio feature sequence into the acoustic model, and compress the sequence length through a convolutional layer with an interval of 2 and a kernel size of 5, so that the sequence length becomes half of the previous one;

[0014] 202) normalizing the compressed representation by a layer regularization method, then adding position encoding to the compressed sequence, and then encoding it through multiple encoding layers;

[0015] 203) Repeat the above two steps multiple times to continuously compress the sequence length. In each stage, different numbers of coding layers can be selected. If the sequence length at the bottom stage of the encoder is greater than L, two coding layers are selected for encoding to reduce the computational cost. The sequence length at the middle stage is relatively moderate and six coding layers are used for encoding. In the top stage, two coding layers are used for encoding to further compress the sequence features and obtain an encoder representation with a length of 1 / 8, 1 / 16 or 1 / 32L.

[0016] 204) The compression ratio is controlled by controlling the interval of the convolutional layer; in the case of preferring faster computing speed, more compression is performed to obtain a shorter sequence length; in the case of preferring better model performance, a smaller compression ratio is used to retain more original information, thereby performing more sufficient encoding and obtaining an acoustic model with better performance.

[0017] In step 3), the features in the encoding process are fused, specifically:

[0018] 301) The encoding process is divided into multiple stages, so that the length of the feature sequence in each stage is different;

[0019] 302) The features encoded at different stages are fused through a feature fusion module, all features are compressed to the same length as the final sequence through a convolutional layer, and then multiplied by the corresponding weights to obtain the final encoding representation;

[0020] 303) The weights of different stages are initialized to the same value. Through continuous optimization during the training process, the features of the top stage obtain more than 50% of the weight, while the bottom layer still retains 8% to 12% of the weight.

[0021] In step 4), the fused representation is passed to the speech recognition module or the speech translation module to complete the entire modeling process, specifically:

[0022] The above acoustic model is used as the encoder of the speech recognition model, and the representation after feature fusion is passed to a decoder to obtain a speech recognition system.

[0023] In step 4), for the speech translation module, the entire modeling process is completed, specifically:

[0024] The representation obtained by the acoustic model is passed to a text encoder and then through a decoder to obtain a speech translation system.

[0025] The present invention has the following beneficial effects and advantages:

[0026] 1. The present invention proposes a progressive compression method for acoustic coding, which gradually compresses the length of the feature sequence during the coding process, thereby reducing the model's demand for computing resources; at the same time, the method avoids the problem of information loss caused during the compression process, thereby achieving more efficient coding;

[0027] 2. The present invention is applied to a variety of acoustic tasks, which can not only speed up the calculation speed of the model, but also effectively improve the model performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a diagram of the step-by-step compression method of the present invention;

[0029] Figure 2 It is a diagram of the compression module in the present invention. DETAILED DESCRIPTION

[0030] The present invention will be further described below in conjunction with the accompanying drawings.

[0031] The present invention provides a step-by-step compression method for acoustic coding, which optimizes the acoustic coding process from the step-by-step compression method. The method gradually compresses the length of the feature sequence during the coding process, reducing the model's demand for computing resources; at the same time, the method avoids the problem of information loss caused during the compression process, thereby achieving more efficient coding.

[0032] like Figure 1 As shown, the present invention comprises the following steps:

[0033] 1) For acoustic tasks, use signal processing methods to extract frame-based audio feature sequences from original audio files;

[0034] 2) Randomly initialize the parameters of the acoustic model, use the acoustic model to encode the audio feature sequence, and gradually compress the sequence length during the encoding process;

[0035] 3) Fusion of audio features during encoding;

[0036] 4) The fused representation is passed to the speech recognition module or the speech translation module to complete the entire modeling process.

[0037] In step 1), for acoustic tasks, a frame-based audio feature sequence is extracted from the original audio file using a signal processing method. For the original audio, a frame-based sequence is obtained through operations such as pre-emphasis, framing, and windowing, and then MFCC features or FBank features are obtained through operations such as Fourier transform, which are usually 80 dimensions and stored in the local hard disk.

[0038] In step 2), the parameters of the acoustic model are randomly initialized, and the acoustic model is used to encode the audio feature sequence. The sequence length is gradually compressed during the encoding process, including:

[0039] 201) The audio feature sequence is input into the acoustic model, and the sequence length is compressed through a convolutional layer with an interval of 2, so that the sequence length becomes half of the previous one, such as Figure 2 Here, the convolution kernel size of the convolution layer is set to 5, similar to the setting in the frame operation, and the ratio of frame length to frame shift is 5:2. In this way, the surrounding information is taken into account during the compression process to avoid information loss as much as possible.

[0040] 202) Use layer regularization on the compressed representation, and then add position representation. In the Transformer model, since the attention module is insensitive to position, position encoding is added to the input layer in the standard model structure. However, during the sequence compression process, the length of the sequence changes, which will cause the position information to be lost. Therefore, a position encoding is added after each compression module to strengthen the position information. After that, it can be encoded through multiple encoding layers. The setting of the encoding layer is universal. For example, the currently popular Transformer and Conformer, or a variety of different attention modules can be used, which can perfectly adapt to this method;

[0041] 203) Repeat the above two steps multiple times to continuously compress the sequence length. In each stage, different numbers of coding layers can be selected. If the sequence length at the bottom stage of the encoder is greater than L, two coding layers are selected for encoding to reduce the computational cost. The sequence length at the middle stage is relatively moderate, and six coding layers are used for encoding. In the top stage, two coding layers are used to further compress the sequence features and obtain an encoder representation with a length of 1 / 8, 1 / 16 or 1 / 32L.

[0042] 204) The compression ratio is controlled by controlling the interval of the convolutional layer; in the case of faster computing speed, more compression is performed to obtain a shorter sequence length; in the case of better model performance, a smaller compression ratio is used to retain more original information, thereby performing more sufficient encoding and obtaining an acoustic model with better performance. Therefore, this method can achieve a good trade-off between speed and performance.

[0043] In step 3), the features in the encoding process are fused, including:

[0044] 301) The encoding process is divided into multiple stages, so that the length of the feature sequence in each stage is different;

[0045] 302) Since the sequence is continuously compressed during the encoding process, some information will be lost. A feature fusion module is used to fuse the features encoded at different stages, compress all features to the same length as the final sequence through the convolution layer, and then multiply them by the corresponding weights to obtain the final encoding representation;

[0046] 303) The weights of different stages are initialized to the same value. Through continuous optimization during the training process, the features of the top stage will obtain more than 50% of the weight, while the bottom layer still retains 8% to 12% of the weight.

[0047] In step 4), the fused representation is passed to the speech recognition module or the speech translation module to complete the entire modeling process.

[0048] This method is general to different acoustic tasks.

[0049] The method proposed in this patent is verified on speech recognition and speech translation tasks. Speech recognition and speech translation currently have relatively mature and general framework structures. Downsampling is performed through two convolutional layers in the input layer to compress the length of the input sequence, and then it is encoded through multiple encoding layers, and then the decoder generates the corresponding annotation or translation of the speech. This method can be directly applied to these two tasks. On the LibriSpeech dataset, a commonly used benchmark dataset for speech recognition, based on the Transformer model architecture, in the case of 12 hidden layers with dimensions of 256 and 512, this method can achieve an average error rate improvement of 0.5 and a decoding acceleration of 50%, which is significantly improved compared to the standard method. As the compression ratio decreases, the training difficulty of the model decreases, and the performance improvement is more obvious. On the MuST-C speech translation dataset, this method can obtain a BLEU value improvement of 0.5, greatly accelerate the convergence speed of the model, and achieve the current best performance. In addition, under the architecture based on deep Transformer and Conformer with stronger encoding capabilities, this method can achieve greater improvement. Deep Transformer can allocate enough layers for adequate encoding at each stage, while Conformer can better capture local dependencies due to the addition of additional convolution modules, making the representations of adjacent positions more similar, thereby reducing the difficulty of downsampling. The method of the present invention can compress the length of the audio sequence to 10% of the original, which can reduce the difference between it and the text sequence, thereby alleviating the negative impact of the mismatch problem.

[0050] In addition, after analyzing the experiments, it was found that setting more coding layers in the middle layer of the model can achieve better performance, but compared with setting more top layers, the calculation speed of this method is slightly reduced. Because the coding sequence of the middle layer is relatively longer, it requires more video memory and computing resources, but at the same time the information is more complete and the encoded representation will be more complete. Therefore, different numbers of layers can be set for different usage requirements, thereby obtaining different performance and calculation speeds, which proves the flexibility of this method.

[0051] In general, the method proposed in this patent has good adaptability, performs well for different acoustic tasks, and can flexibly control the compression ratio, thereby achieving a good balance between computational efficiency and model performance.

Claims

1. A progressive compression method for acoustic coding, characterized in that The following steps are involved: 1) For acoustic tasks, use signal processing methods to extract frame-based audio feature sequences from raw audio files; 2) Randomly initialize the parameters of the acoustic model, use the acoustic model to encode the audio feature sequence, and gradually compress the sequence length during the encoding process; 3) Fusion of audio features during encoding; 4) Pass the fused representation to the speech recognition module or speech translation module to complete the entire modeling process; In step 2), the parameters of the acoustic model are randomly initialized, and the acoustic model is used to encode the audio feature sequence. The sequence length is gradually compressed during the encoding process, specifically: 201) Input the audio feature sequence into the acoustic model, and compress the sequence length through a convolutional layer with an interval of 2 and a kernel size of 5, so that the sequence length becomes half of the previous one; 202) The compressed representation is normalized by a layer regularization method, and then position encoding is added to the compressed sequence, and then encoded through multiple encoding layers; 203) Repeat the above two steps multiple times to continuously compress the sequence length. Different numbers of encoding layers can be selected in each stage. If the sequence length at the bottom stage of the encoder is greater than L, two encoding layers are selected for encoding to reduce the computational cost. The sequence length at the middle stage is relatively moderate and six encoding layers are used for encoding. At the top stage, two encoding layers are used to further compress the sequence features and obtain an encoder representation with a length of 1 / 8, 1 / 16 or 1 / 32L. 204) Control the compression ratio by controlling the interval of the convolutional layer; in the case of faster computing speed, more compression is performed to obtain a shorter sequence length; in the case of better model performance, a smaller compression ratio is used to retain more original information, thereby performing more sufficient encoding and obtaining a better acoustic model; In step 3), the features in the encoding process are fused, specifically: 301) Divide the encoding process into multiple stages so that the length of the feature sequence in each stage is different; 302) A feature fusion module is used to fuse the features encoded at different stages, compress all features to the same length as the final sequence through the convolution layer, and then multiply them by the corresponding weights to obtain the final encoding representation; 303) The weights of different stages are initialized to the same value. Through continuous optimization during the training process, the features of the top stage obtain more than 50% of the weight, while the bottom layer still retains 8% to 12% of the weight.

2. The stepwise compression method for acoustic coding according to claim 1, characterized in that In step 4), the fused representation is passed to the speech recognition module or the speech translation module to complete the entire modeling process, specifically: The above acoustic model is used as the encoder of the speech recognition model, and the representation after feature fusion is passed to a decoder to obtain a speech recognition system.

3. The stepwise compression method for acoustic coding according to claim 1, characterized in that In step 4), for the speech translation module, the entire modeling process is completed, specifically: The representation obtained by the acoustic model is passed to a text encoder and then through a decoder to obtain a speech translation system.

Citation Information

Patent Citations

  • Speech emotion recognition method based on multi-scale deep convolution recurrent neural network

    CN108717856A

  • A text translation method and related device

    CN109543199A