A multi-speaker time-domain speech separation method with convolution-enhanced external attention
A multi-speaker time-domain speech separation method that enhances external attention through convolution uses the ExConformer module to achieve efficient speech separation on small models, solving the balance problem of model size and separation speed in the existing technology, and improving speech separation effectiveness and efficiency.
Patent Information
- Application Number
- CN202210647059.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-09
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-06-09
AI Technical Summary
When implementing multi-speaker time-domain speech separation, it is difficult for the existing technology to achieve good separation effects in terms of smaller model size and faster separation speed, which limits its applicability on low-resource and low-power consumption platforms.
A multi-speaker time-domain speech separation method using convolution to enhance external attention is used to convert the mixed speech into a latent feature representation through the encoder, and the convolution-based external attention module is used to learn the speech mask, combined with the decoder for deconvolution product operation to achieve speech separation, and the ExConformer module is proposed to enhance the learning ability of the external attention mechanism.
It achieves better speech separation effect with smaller model size and high timeliness, reduces the number of parameters and speeds up inference, and can better balance timeliness, model size and separation effect.
Smart Images

Figure CN115101085B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of speech processing technology, and in particular to a multi-speaker time-domain speech separation method with convolution-enhanced external attention. Background Art
[0002] In practical applications, voice interaction often occurs when multiple people are speaking. Interfering human voices can seriously hinder the machine's extraction of voice information. Speech separation technology separates the voices of multiple speakers, allowing the machine to effectively extract information for tasks such as speech recognition. Currently, single-channel speech separation based on deep learning mainly uses the time-domain audio separation network (TasNet) structure. Compared with traditional time-frequency domain-based methods, TasNet uses an encoder-decoder framework to directly model speech signals in the time domain and perform speech separation on non-negative encoder outputs, eliminating the frequency decomposition step and reducing the separation problem to estimating the speech mask output by the encoder, which is then synthesized by the decoder, resulting in better performance and lower latency.
[0003] BLSTM-TasNet is based on the LSTM network, but the computational cost of the deep LSTM network is high, which limits its applicability in low-resource, low-power platforms. Chen Xiukai et al. (Luo Y, Mesgarani N. TasNet: time-domain audio separation network for real-time, single-channel speech separation [C]. 2018) replaced LSTM with a gated recurrent unit (GRU), which can model long sequences and reduce gradient vanishing, but still has a large number of parameters. Therefore, Luo Y et al. (Luo Y, Mesgarani N. Conv-TasNet: Surpassing Ideal Time–Frequency Magnitude Masking for Speech Separation [J]. IEEE / ACM Transactions on Audio, Speech, and Language Processing, 2019, PP (99): 1-1) proposed the convolution-based Conv-TasNet, which uses a time-domain convolutional network composed of one-dimensional dilated convolutional blocks to calculate the mask, so that the network can model the long-term dependency of speech signals while maintaining a small number of parameters and a faster separation speed. SSGAN uses a joint training method based on generative adversarial networks for speech separation. Both the generator and the discriminator are constructed using fully convolutional neural networks, which can effectively extract and restore high-dimensional features of time domain waveforms.However, one-dimensional convolutional neural networks (CNNs) cannot model speech-level sequences when the receptive field is smaller than the sequence length, and recurrent neural networks (RNNs) cannot effectively model longer sequences due to optimization difficulties. Therefore, Dual-Path RNN (Luo Y, Chen Z, Yoshioka T. Dual-Path RNN: Efficient Long Sequence Modeling for Time-Domain Single-Channel Speech Separation[C] / / ICASSP2020-2020IEEE International Conference on Acoustics, Speech and Signal Processing(ICASSP).IEEE, 2020:46-50, doi:10.1109 / ICASSP40776.2020.9054266.) proposed a dual-path structure that divides longer audio inputs into smaller blocks. In the deep model, the RNN is optimized to iteratively apply intra-block and inter-block operations, which alleviates the problem of RNN optimization difficulties and achieves better performance with a smaller model. The RNN-based separation model indirectly depends on the context for modeling speech sequences, and the transmission of intermediate states affects the improvement of separation performance. Chen J et al. (Chen J, Mao Q, Liu D. Dual-path transformer network: Direct context-aware modeling for end-to-end monaural speech separation[J]. arXiv preprintarXiv:2007.13975, 2020.) introduced an improved Transformer in the dual-path structure. By adding LSTM to the feedforward layer, it can learn the sequential information of speech sequences for direct interaction without using position encoding, thereby realizing direct context perception of speech sequences, but it also has a very slow reasoning speed.In terms of using limited computing resources to achieve speech separation, the SuDoRM-RF (Tzinis E, Wang Z, Smaragdis P. Sudo rm-rf: Efficient networks for universal audio source separation [C] / / 2020 IEEE 30th International Workshop on Machine Learning for Signal Processing (MLSP). IEEE, 2020: 1-6) network uses a one-dimensional convolution block similar to UNet to continuously downsample and upsample to increase the network's receptive frame, extract information from multiple resolutions, and have a faster inference speed; the extraction of multi-scale features combined with the increase in receptive frames makes SuDoRM-RF superior to other convolutions, but it also has a large number of parameters.
[0004] With regard to the existing technology, it is still very challenging to achieve a considerable separation effect with a smaller model size and a faster separation speed, and to better meet and balance the requirements of the speech recognition front end for model size, timeliness and separation effect. To this end, we propose a multi-speaker time-domain speech separation method with convolution-enhanced external attention in the present invention. Summary of the invention
[0005] The purpose of the present invention is to provide a multi-speaker time-domain speech separation method with convolution-enhanced external attention.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] A multi-speaker time-domain speech separation method with convolution-enhanced external attention, comprising the following steps:
[0008] S1. The encoder converts the mixed speech of multiple speakers into its potential feature representation through convolution operation.
[0009] Let the multi-speaker mixed speech be x(t), in, represents the real number domain; T is the speech length;
[0010] The latent feature is denoted as h, Among them, C E is the number of encoder channels; L is the potential feature representation;
[0011] S2. The speech mask is obtained by learning a separator based on a convolution-enhanced external attention module;
[0012] S3. The speech mask is multiplied by the latent feature representation output by the encoder, and then the waveform is reconstructed through the deconvolution operation of the decoder to obtain the separated speech.
[0013] Furthermore, S2 mainly includes the following steps:
[0014] Global normalization and convolution operations: The potential feature representation h is mapped and an intermediate representation is obtained
[0015] Where, C is the number of channels;
[0016] Split stacking: Split the intermediate representation h' into S smaller blocks of length K with overlap, forming a three-dimensional vector
[0017] Where K is the length of the overlapping block, and S is the number of overlapping blocks;
[0018] ExConformer transformation: Iteratively apply a transformation consisting of B ExConformer modules to the K and S dimensions of the three-dimensional vector T. The output T of the block processing b Will be used as input for inter-block processing;
[0019] That is, the output of the b-1th ECBlock will be used as the input of the bth block, b = 1, ..., B, expressed as follows:
[0020] T b =ECBlock intra (U b-1 )
[0021] U b =ECBlock inter (T b )
[0022] Dimension transformation: Output U of the Bth ECBlock B Apply a 2D convolution to learn a mask for each source, resulting in a 3D vector
[0023] Y = Conv2D(U B )
[0024] Among them, Conv2D represents a two-dimensional convolution operation.
[0025] Aggregate multi-channel information processing: The three-dimensional vector Y is transformed into an intermediate potential representation of each source through overlap-addition operations Apply one-dimensional convolution and PReLU to y to aggregate information on multiple channels. For the i-th source, the estimated mask of the speech mask is as follows:
[0026]
[0027] Furthermore, the ExConformer module is composed of a position convolution module, an external attention module, a convolution module, and a feedforward neural network module, and a residual connection is added between each module;
[0028] If the input of the i-th ExConformer module is defined as x i , then its output y i , which is expressed as follows:
[0029]
[0030]
[0031] x″ i = x′ i +Conv(x′ i )
[0032] y i =Layernorm(x″) i +FFN(x″ i )).
[0033] Furthermore, the activation functions of the convolution module and the feedforward neural network module of the ExConformer module use Penalized_tanh.
[0034] Furthermore, the position convolution module consists of multiple stacked one-dimensional convolutions with zero-paddings, layer normalization, and ReLU activation layers.
[0035] Furthermore, the steps of the external attention module are as follows:
[0036] Adjust the number of channels of the input feature through a one-dimensional convolution;
[0037] Use a linear layer to construct M k memory to learn the attention map A between query vectors;
[0038]
[0039] Among them, F is the input feature map; M k The transpose of
[0040] Perform softmax and L1 norm normalization (L1_Norm) on it;
[0041] Use a linear layer to construct M vThe memory is used to generate a refined feature map, which is expressed as follows:
[0042] F out =AM v
[0043] Perform Dropout operation on the output results.
[0044] The present invention has at least the following beneficial effects:
[0045] 1. The present invention improves the design of Conformer to meet the requirements of smaller model and high timeliness for speech separation, and achieves better separation effect by taking advantage of its sequence modeling.
[0046] 2. The present invention introduces an external attention mechanism into the speech separation task, thereby enhancing the external attention mechanism to learn more features and correlations while maintaining its advantage of fast separation speed.
[0047] 3. The present invention encodes the input by using a convolutional neural network so that each frame contains contextual information, and the convolutional coding makes the position coding trainable.
[0048] 4. The application of the multi-speaker time-domain speech separation method with convolution-enhanced external attention in a dual-path structure can better balance timeliness, model size and separation effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0050] Figure 1 It is the overall network framework diagram of the present invention;
[0051] Figure 2 It is the ExConformer module of the present invention. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0053] See also Figure 1 The present invention is a multi-speaker time-domain speech separation method with convolution enhanced external attention, comprising the following steps:
[0054] 1. The encoder performs convolution operations on the multi-speaker mixed speech and converts it into its potential feature representation h;
[0055] 2. The speech mask is obtained by learning the separator based on the convolution-enhanced external attention module;
[0056] 3. The speech mask is multiplied by the latent feature representation output by the encoder, and then the waveform is reconstructed through the deconvolution operation of the decoder to obtain the separated speech.
[0057] In step 2 above, do the following:
[0058] First, the potential representation h is mapped to a new feature space through global normalization and a one-dimensional convolution to obtain an intermediate representation The number of channels of the potential representation h is changed, the network depth is increased without changing the receptive field, and the abstract expression ability of the local module of the network is enhanced.
[0059] h′=Conv1D(GlobLN(h))
[0060] The global layer normalization GlobLN(·) defines two learnable parameters and Using global layer normalization instead of layer normalization significantly improves the convergence of the model because the gradient statistics between different channels are interdependent. Applying global normalization can be defined as:
[0061]
[0062] Then the intermediate representation h' is split into S overlapping smaller blocks of length K to form a three-dimensional vector Then, the transformation consisting of B ExConformer modules (ECBlock) is iteratively applied to the intra-block dimension (K dimension) and inter-block dimension (S dimension) of the three-dimensional vector T. The output T of the intra-block processing is b It will be used as the input for inter-block processing, and the output of the (b-1)th ECBlock will be used as the input for the bth block, b=1,…,B.
[0063] T b =ECBlock intra (U b-1 )
[0064] U b =ECBlock inter (T b )
[0065] ExConformer module Figure 2 .
[0066] Output U of the Bth ECBlock B Apply a 2D convolution to learn a mask for each source to get a 3D vector
[0067] Y = Conv2D(U B )
[0068] Then, the three-dimensional vector Y is transformed into the intermediate potential representation of each source through the overlap-add operation. Apply one-dimensional convolution and PReLU to y to aggregate information on multiple channels. For the i-th source, its estimated mask will be obtained. as follows:
[0069]
[0070] Finally, the encoded latent representation h is multiplied by the corresponding mask to obtain the latent representation of each source estimate
[0071]
[0072] Where a⊙b represents the element-wise multiplication of two tensors of the same shape.
[0073] Among them, the ExConformer module is a convolution-enhanced external attention module. Conformer uses convolution-enhanced self-attention mechanism to learn local information based on position, and uses content-based global interaction. It performs well in sequence modeling tasks. It does not consider the connection between different samples, and the combination of self-attention mechanism and convolution makes the model have a large number of parameters and a slow reasoning speed, which is difficult to apply in speech separation tasks. The external attention mechanism uses two shared, learnable external memories, which can implicitly learn features from other samples; by controlling the memory size, linear complexity can be achieved, and the reasoning speed is faster; but due to the simple structure, the learning effect is not as good as the self-attention mechanism. The present invention introduces external attention into Conformer, uses convolution-enhanced external attention to model the connection between different speech segments, reduces the number of parameters and speeds up the reasoning speed; and uses Penalied_tanh, which performs more stably in sequence tasks, as the activation function, thereby proposing a convolution-enhanced external attention module (ExConformer). The ExConformer module consists of a position convolution module (PosConv Module), an external attention module (External Attention Module), a convolution module (Convolution Module), and a feedforward neural network module (FeedForward Module). Similar to Conformer, a residual connection is added between each module. If the input of the i-th ExConformer block is defined as x i , then its output y i Its representation can be obtained through the following steps:
[0074]
[0075]
[0076] x″ i = x′ i +Conv(x′ i )
[0077] y i =Layernorm(x″) i +FFN(x″ i ))
[0078] Conformer uses two half-step feedforward layers mentioned in Macaron-Net, and sinusoidal position coding is used in the self-attention mechanism. Recent studies on speech recognition have found that convolutional position coding can achieve better results than sinusoidal position coding, so we also use convolutional position coding in Exconformer, which makes position coding trainable; at the same time, experiments have found that the gain generated by using two half-step feedforward layers is not very obvious, so in this invention, the first half-step feedforward layer of Conformer is changed to a convolutional position coding module, and the second half-step feedforward layer is changed to a normal feedforward layer. Using convolution with zero-padding, the intra-block and inter-block dimensions are modeled separately in the separator to learn their position context position information, which is faster and has fewer parameters.
[0079] Experiments were conducted on multi-speaker time-domain speech separation technology. The experimental process is described as follows:
[0080] 1. Datasets and evaluation metrics
[0081] The following experiments are mainly aimed at speech separation of two speakers. The experiments are conducted using Libri2Mix, which is a mixture of the public dataset LibriSpeech. The mixing method adopts the settings in the Libri2Mix dataset paper. The Libri2Mix training set is a mixture of data from train-100, with a total of 13,900 voices; the validation set and test set each have 3,000 voice data; each data is mixed with a random signal-to-noise ratio of -5dB to 5dB; and it is downsampled to 8kHz during preprocessing. Compared with smaller datasets such as the WSJ0 dataset and the TIMIT dataset, the LibriSpeech dataset contains more speakers, including 251 speakers in the training set train-100 and 40 speakers in the validation set and test set; the experimental results on the Libri2Mix dataset mixed with LibriSpeech can be more reliably generalized to new scenarios and can provide general modeling trends.
[0082] The evaluation index uses the scale-invariant signal-to-noise ratio SI-SNR, which is calculated as follows:
[0083]
[0084]
[0085]
[0086] in and x are the estimated target speaker speech and the pure target speaker speech, respectively, both of which are zero-mean normalized before calculation. Generally, a larger SI-SNR value indicates a better speech separation quality.
[0087] 2. Ablation Experiment
[0088] We experimented with Conformer and ExConformer with convolution-enhanced external attention as separator modules based on the TasNet separation network to verify the role of the external attention mechanism in speech separation. Conformer uses convolution-enhanced self-attention and two half-step feedforward layers (FFN); ExConformer-PosConv represents a structure that does not use the convolution encoding position; ExConformer-FFN represents a structure that does not use the feedforward layer and only uses convolution and external attention modules; ExConformer with Swish uses the Swish activation function in Conformer; ExConformer replaces Swish with Penalied_tanh, which is the model proposed in this paper. The experimental results are shown in Table 1, where all experiments were conducted on the same server. The separation speed is measured by the number of speech segments in the test set processed in one second, which can reflect the speed of separation. We believe that the separation speed can better reflect the timeliness of a model in practice compared to training.
[0089] From the experimental results in Table 1, we can see that Conformer has a large number of parameters and the slowest separation speed, and ExConformer with convolution-enhanced external attention achieves better separation effect with less parameters and twice the separation speed; at the same time, the results in the second and third rows of the table show that the use of convolution position encoding and feedforward layers is necessary, and these two parts have a significant effect on the improvement of ExConformer; and using Penalied_tanh to replace the Swish function also improves the separation effect.
[0090] Table 1 Comparative experiments of different separator modules
[0091]
[0092] 3. Comparative Experiment
[0093] We compared the experimental results of the present invention with some existing time-domain speech separation methods on the Libri2Mix dataset. We reproduced some codes on our own equipment to test the separation speed of these models. Among them, the BLSTM-TasNet, Conv-TasNet and SuDoRM-RF++ models do not divide the potential representation of mixed speech into smaller blocks and overlap them into three-dimensional vectors for intra-block and inter-block operations, so they have faster separation speeds, but also have larger parameter amounts; DPRNN and DPTNet and the present invention both use the method of segmentation overlap to perform intra-block and inter-block iterative operations, which increases the separation speed compared to the previous models, but also reduces the parameter amount. As can be seen from the table, DPTNet has the best effect and fewer parameters, but its separation speed is also the slowest. The present invention achieves a separation effect comparable to DPTNet with the smallest model size, and the separation speed is twice as fast.
[0094] Table 2 Comparison of different methods on the Libri2Mix dataset
[0095]
[0096] In summary, the following effects are achieved:
[0097] 1. Improve Conformer. Conformer performs well in sequence modeling tasks, but for speech separation tasks, which is the front-end technology of speech recognition, its large number of parameters and long inference time make it difficult to meet the requirements of speech separation model size and timeliness. This paper improves Conformer so that it can meet the requirements of smaller model and high timeliness for speech separation, and achieves better separation effect by taking advantage of its sequence modeling.
[0098] 2. Introduce the external attention mechanism into the speech separation task. The external attention mechanism replaces the self-attention mechanism with two cascaded linear layers and normalization layers. Unlike the self-attention mechanism, it implicitly considers the features from other samples by sharing weight units; and by controlling the memory size, it can achieve linear complexity and a faster separation speed; but the simpler external attention mechanism cannot learn features and correlations comparable to the self-attention mechanism. The present invention combines it with Conformer. The convolution module of Conformer can enhance the external attention mechanism to learn more features and correlations, and maintain its advantage of fast separation speed.
[0099] 3. Convolutional coding is used. A convolutional neural network is used to encode the input. After this encoding, each frame contains contextual information. And convolutional coding makes positional encoding trainable.
[0100] 4. The application of the newly proposed convolution-enhanced external attention multi-speaker time-domain speech separation method in the dual-path structure can better balance timeliness, model size and separation effect.
[0101] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. The present invention may be subject to various changes and improvements without departing from the spirit and scope of the present invention. These changes and improvements fall within the scope of the present invention. The scope of protection claimed by the present invention is defined by the attached claims and their equivalents.
Claims
1. A multi-speaker time-domain speech separation method with convolutional enhanced external attention, characterized in that: The following steps are involved: S1. The encoder performs convolution operations on the mixed speech of multiple speakers and converts it into its potential feature representation; Let the multi-speaker mixed speech be x(t), in, is the real number domain; T is the speech length; The latent feature is denoted as h, Among them, C E is the number of encoder channels; L is the length of the potential feature representation; S2. The speech mask is obtained by learning a separator based on a convolution-enhanced external attention module; S3. The speech mask is multiplied by the latent feature representation output by the encoder, and then the waveform is reconstructed through the deconvolution operation of the decoder to obtain the separated speech; S2 mainly includes the following steps: Global normalization and convolution operations: The potential feature representation h is mapped and an intermediate representation is obtained Where, C is the number of channels; Split stacking: Split the intermediate representation h' into S smaller blocks of length K with overlap, forming a three-dimensional vector Where K is the length of the overlapping block, and S is the number of overlapping blocks; ExConformer transformation: Iteratively apply a transformation consisting of B ExConformer modules to the K and S dimensions of the three-dimensional vector T. The output T of the block processing b Will be used as input for inter-block processing; That is, the output of the b-1th ECBlock will be used as the input of the bth block, b = 1, ..., B, expressed as follows: T b =ECBlock intra (U b-1 ) U b =ECBlock inter (T b ) Dimension transformation: Output U of the Bth ECBlock B Apply a 2D convolution to learn a mask for each source, resulting in a 3D vector And=Conv2D(U B ) Aggregate multi-channel information processing: The three-dimensional vector Y is transformed into an intermediate potential representation of each source through overlap-addition operations Apply one-dimensional convolution and PReLU to y to aggregate information on multiple channels. For the i-th source, the estimated mask of its speech mask is as follows: The ExConformer module consists of a position convolution module, an external attention module, a convolution module, and a feedforward neural network module, and residual connections are added between each module; If the input of the i-th ExConformer module is defined as x i , then its output y i , which is expressed as follows: x″ i =x′ i +Conv(x′ i ) y i =Layernorm(x″ i +FFN(x″ i ))。 2. The multi-speaker time-domain speech separation method with convolutional enhanced external attention according to claim 1, characterized in that: The activation functions of the convolution module and the feedforward neural network module of the ExConformer module use Penalized_tanh.
3. The multi-speaker time-domain speech separation method with convolutional enhanced external attention according to claim 1, characterized in that: The positional convolution module consists of multiple stacked one-dimensional convolutions with zero-paddings, layer normalization, and ReLU activation layers.
4. The multi-speaker time-domain speech separation method with convolutional enhanced external attention according to claim 1, characterized in that: The steps of the external attention module are as follows: Adjust the number of channels of the input features through a one-dimensional convolution; Use a linear layer to construct M k memory to learn the attention map A between query vectors; Among them, F is the input feature map; M k The transpose of Perform softmax and L1 norm normalization (L1_Norm) on it; Use a linear layer to construct M v The memory is used to generate a refined feature map, which is expressed as follows: F out =AM v Perform Dropout operation on the output results.
