Dual-path embedding learning methods, electronic devices and storage media
By introducing the dual-path embedding learning method into the speaker verification system, combining the residual path and the cyclic path, and using the triple attention module, the problem of the existing system's insufficient ability to model dynamic interaction of features is solved, and feature reuse and improvement are improved. System performance.
Patent Information
- Application Number
- CN202210494041.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-04-29
AI Technical Summary
Existing speaker verification systems lack the ability to model dynamic interactions between features, resulting in insufficient feature reuse and reuse.
A dual-path embedding learning method is adopted, combining the residual path and the recurrent path, integrating the CNN with the sequential information flow through recurrent connections along the depth, and introducing a triple attention module to capture the cross-dimensional interaction between features.
It achieves better feature reuse and reuse, significantly improving the representation capabilities and performance of the speaker verification system, especially on the Voxceleb dataset, which outperforms the corresponding ResNet.
Smart Images

Figure CN115050373B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of speaker verification, and in particular relates to a dual-path embedding learning method, electronic equipment and storage medium for a speaker verification system. Background Art
[0002] In the related art, the task of speaker verification (SV) is to verify the identity of the speaker using voice as a biometric feature. In recent years, the paradigm of state-of-the-art SV systems has shifted from i-vector combined with probabilistic linear discriminant analysis (PLDA) to deep speaker embedding learning methods, where deep neural networks (DNNs) are used to take frame-level features of the utterance as input and directly generate utterance-level representations as speaker embeddings for similarity measurement. These embeddings are obtained through a pooling mechanism, where the mean and standard deviation are usually calculated. DNN-based SV systems can be effectively trained through multi-class classification, where softmax or AAM-softmax can be used as the loss function. Subsequently, the extracted embeddings are used in standard backends, such as cosine similarity calculations.
[0003] According to the network architecture, the DNN-based SV systems proposed in previous related works can be divided into four different types: TDNN-based, CNN-based, transformer-based, and MLP-based. Time delay neural network (TDNN) is known for its ability to learn the temporal dynamics of signals with a wide range of contexts, and it adopts a hierarchical and incremental architecture to handle different temporal resolutions. These characteristics make TDNN naturally suitable for speech tasks. The related art first utilized the TDNN architecture with a multi-class cross entropy objective for text-independent speaker verification. The x-vector and its descendants were further proposed to improve the performance. ECAPA-TDNN achieved amazing results by performing multiple architecture enhancements on the x-vector. For CNN-based SV systems, the related art first introduced ResNet as a speaker embedding extractor in VoxSRC2019. In addition, the related art proposed a Transformer-based system with a self-attention encoder and pooling layers to obtain discriminative speaker embeddings, which was inspired by the effectiveness of Transformer in natural language processing and computer vision. The related art further strives to improve the transformer-based system by strengthening local information modeling. In addition, related techniques attempt to build a pure MLP network without convolution or self-attention, which shows competitive results. However, most existing DNN-based SV systems focus on a single network structure. Hybrid networks with different structures are rarely discussed in SV tasks, which demonstrate superiority in other fields.
[0004] Among them, the Dense-Residual network combines the advantages of densely connected convolutional networks (DenseNet) and residual networks (ResNet) for speaker verification. The related art proposes two types of building blocks, called DenseR blocks. First, a sequential dense block is constructed by densely connecting stacked basic units in the residual block of ResNet. Then, parallel-DenseR consists of basic units that split and connect the residual and dense components through jump connections, respectively. These building blocks are stacked into a deep network for front-end feature extraction. The inventors found that these technologies lack the ability to model dynamic interactions between features. Summary of the invention
[0005] The embodiments of the present invention provide a dual-path embedding learning method, electronic device and storage medium for a speaker verification system, which are used to solve at least one of the above-mentioned technical problems.
[0006] In a first aspect, an embodiment of the present invention provides a dual-path embedding learning method for a speaker verification system, wherein the dual-path includes a residual path and a recurrent path, and the method includes:
[0007] Performing residual learning via a residual block in the residual path;
[0008] Accumulating information from a previous layer via the cyclic path through cyclic blocks and exchanging it with the residual path, wherein each residual block has a corresponding cyclic block for accumulating information from a previous layer and exchanging information;
[0009] The embedding features of the residual path and the embedding features of the recurrent path are aggregated to obtain speaker embedding.
[0010] In a second aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the dual-path embedding learning method for a speaker verification system of any embodiment of the present invention.
[0011] In a third aspect, an embodiment of the present invention further provides a computer program product, comprising a computer program stored on a non-volatile computer-readable storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer executes the steps of the dual-path embedding learning method for a speaker verification system of any embodiment of the present invention.
[0012] In the method of the present application, the residual path can come from the commonly used ResNet, and the recurrent path is carefully designed to provide the current layer with the accumulation of information of the previous layer through recurrent connections along the depth. Finally, the result features of the two paths are aggregated to obtain the speaker embedding. The new architecture proposed by the method of this embodiment inherits the advantages of the residual network and the recurrent network, thereby achieving better feature reuse and recycling. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0014] Figure 1 A flowchart of a dual-path embedding learning method for a speaker verification system provided by an embodiment of the present invention;
[0015] Figure 2 A flowchart for implementing a solution provided by an embodiment of the present invention;
[0016] Figure 3 An overview diagram of a method provided by an embodiment of the present invention;
[0017] Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] Please refer to Figure 1 , which shows a flowchart of an embodiment of a dual-path embedding learning method for a speaker verification system of the present application. The dual-path embedding learning method of this embodiment is used for a speaker verification system, and the dual paths include a residual path and a cyclic path.
[0020] like Figure 1 As shown, in step 101, residual learning is performed via the residual block in the residual path;
[0021] In step 102, information is accumulated from a previous layer via the cyclic path through cyclic blocks and exchanged with the residual path, wherein each residual block has a corresponding cyclic block for accumulating information from a previous layer and exchanging information;
[0022] In step 103, the embedding features of the residual path and the embedding features of the recurrent path are aggregated to obtain speaker embedding.
[0023] In this embodiment, the residual path comes from the commonly used ResNet, and the recurrent path is carefully designed to provide the current layer with the accumulation of information from the previous layer through recurrent connections along the depth. Finally, the resulting features of the two paths are aggregated to obtain the speaker embedding.
[0024] The new architecture proposed by the method of this embodiment can enjoy the benefit of better reuse of information from previous layers. This new architecture inherits the advantages of residual networks and recurrent networks, thereby achieving better feature reuse and recycling.
[0025] In some optional embodiments, the performing residual learning via the residual block in the residual path includes: inputting a previous residual block X i-1and the previous loop block H i-1 By connecting and combining, we get the residual mapping Y i , the residual map Yi and the original input X i-1 Add together to get the i-th residual block X i The output of . Thus, information can be exchanged between the residual path and the loop path. Optionally, the calculation formula is as follows:
[0026] Y i =Residual([X i-1 ·H i-1 ]),
[0027] X i =Y i +X i-1 ,
[0028] Among them, X i is the i-th residual block, Y i is the residual mapping, X i-1 For X i The previous residual block, H i-1 For X i-1 The corresponding previous loop block.
[0029] In some optional embodiments, H i is the hidden state of the i-th step, initialized to 0 at step 0, the accumulation of information from the previous layer through the recurrent block via the recurrent path and the exchange with the residual path includes: for the update of the i-th step, the input is the residual map Y i and the hidden state H of the previous step i-1 , residual mapping Y i Compressed in the channel dimension by 1x1 convolution and then added to H i-1 , and then processed by batch normalization, tanh activation and 3x3 convolution. Therefore, for the recurrent path along the depth, it is equivalent to an unfolded RNN, which can realize the information accumulation and exchange between the two paths. Optionally, the calculation formula is as follows:
[0030] H0=0,
[0031] H i =Conv2(tanh(B(Conv1(Y i )+H i-1 ))),
[0032] Among them, H i is the hidden state of the i-th step, Y i is the residual mapping, H i-1is the hidden state of the previous cycle, Conv1 is a point-by-point convolution with an output channel size of K, B represents BatchNorm, tanh is a nonlinear function, and Conv2 is a 3x3 convolution.
[0033] The dual-path architecture of the embodiment of the present application is not a simple combination of CNN and RNN. The key idea is the information accumulation and exchange between the two paths, which is crucial for enhancing feature learning.
[0034] In some other optional embodiments, the aggregating the embedding features of the residual path and the embedding features of the loop path to obtain the speaker embedding includes: the last residual block X N The output and the last loop block H N The output of is first concatenated along the channel dimension, and the resulting features are then fed into a statistical pooling layer to map the variable-length representation to a low-dimensional vector, which is then transformed by a fully connected layer to generate a speaker embedding. Thus, a better speaker embedding can be obtained by aggregating the output of the last residual block and the last recurrent block in the embedding layer. Optionally, the calculation formula is as follows:
[0035] Z=[X N ·H N ],
[0036] e=FC(P(Z)),
[0037] Among them, Z is the feature obtained by connecting along the channel dimension, X N is the last residual block, H N It is the last loop block, P represents the statistical pooling layer, and FC represents the fully connected layer.
[0038] In a further optional embodiment, the speaker verification system further includes a triple attention module integrated with the dual path, wherein the triple attention module captures the interdependencies between the channel and frequency dimensions (C, F), the channel and time dimensions (C, T), and the frequency and time dimensions (F, T) through three separate branches. Specifically, the triple attention module can be inserted after the residual mapping in each residual block. Thus, the performance of the system can be further improved by interactively modeling the interdependencies between channel and frequency, channel and time, and frequency and time.
[0039] It should be noted that the above method steps are not used to limit the execution order of each step. In fact, some steps may be executed simultaneously or in the opposite order to the specified step order, and this application has no limitation on this.
[0040] The following describes some problems encountered by the inventor in the process of implementing the present invention and a specific embodiment of the solution finally determined, so that those skilled in the art can better understand the solution of the present application.
[0041] The inventors found that the prior art lacks the ability to model the dynamic interactions between features. The defects in the prior art are caused by the direct splicing and stacking of modules.
[0042] In the prior art, the above problems are mainly solved by directly splicing or stacking different paths, because this is the simplest and most easily conceivable method.
[0043] The DPNet (Dual Path Network) proposed in the embodiment of the present application consists of two paths: a residual path and a recurrent path. It combines CNN with sequential information flow through recurrent layer connections along the depth. This new architecture can enjoy the benefit of better reuse of the previous layer information. In addition, an effective triple attention module is introduced to simulate cross-dimensional interactions between features.
[0044] Continue to refer Figure 2 , which shows a flowchart for implementing the solution of the present application.
[0045] like Figure 2 As shown, (1) DPNet consists of two paths: the residual path and the recurrent path.
[0046] (2) Residual path: normal residual learning with residual blocks.
[0047] (3) Recurrent path: This is a recurrent path along the depth, equivalent to an unfolded RNN, where Hi is the hidden state. It can accumulate information from the previous layer through the recurrent block and exchange it with the residual path.
[0048] The inventors conducted a large number of experiments, and experiments on the Voxceleb dataset showed that the proposed DPNets can perform the corresponding ResNets. Further improvements can be achieved by combining the triplet attention module.
[0049] The following introduces the process of implementing the present application, the experiments conducted, and the relevant experimental data by the inventor to enable those skilled in the art to better understand the solution of the present application.
[0050] At present, many different network architectures have been explored in speaker verification, including time-delay neural networks (TDNNs), convolutional neural networks (CNNs), transformers, and multilayer perceptrons (MLPs). However, hybrid networks with different structures are rarely studied. In this article, the embodiment of the present application proposes a novel and effective dual-path embedding learning framework, called dual-path network (DPNet), for speaker verification with triple attention. A new topology that integrates CNN with internal separate recurrent layer connection paths is designed, which introduces the sequential structure along the depth into CNN. This new architecture inherits the advantages of residual networks and recurrent networks, thereby achieving better feature reuse and reuse. In addition, an efficient triple attention module is used to capture cross-dimensional interactions between features. The experimental results on the Voxceleb dataset show that the hybrid network with triple attention proposed in the embodiment of the present application can significantly outperform the corresponding ResNet.
[0051] 1. Introduction
[0052] In an embodiment of the present application, a novel hybrid network structure, namely a dual-path network (DPNet), is designed for speaker verification with triple attention. Compared with previous work, the proposed DPNet consists of two paths: a residual path and a recurrent path. It integrates CNN with sequential information flow through recurrent layer connections along the depth. This new architecture can enjoy the benefits of better reuse of information from previous layers. In addition, an effective triple attention module is introduced to model cross-dimensional interactions between features. Experiments on Voxceleb show that the DPNet with triple attention proposed in the embodiment of the present application can greatly outperform the corresponding ResNet.
[0053] 2. Related Work
[0054] Hybrid network: Hybrid networks usually integrate different network structures together, showing advantages over single network structures in various fields. In recent years, some hybrid variants have been widely studied, including CNN-CNN, CNN-RNN, and CNNTransformer. The related art designs a CNN-CNN hybrid network that combines ResNet with DenseNet, which outperforms the state-of-the-art technology. For the CNN-RNN hybrid, the convolutional residual network is enhanced with a long short-term memory mechanism for image classification. The related art uses RNN to process the output of CNN for visual description. The related art establishes a convolutional LSTM model for the precipitation nowcasting problem. Recently, a CNN-Transformer hybrid has emerged. The related art proposes that Conformer uses convolution operations and self-attention mechanisms to enhance representation learning. The related art proves that self-attention and convolution are complementary, and designs AlterNet to combine them together. In an embodiment of the present application, a new hybrid network structure for speaker verification tasks is introduced to improve the representation capability of SV systems.
[0055] Attention module in SV: Attention modules have been widely used in DNN-based SV systems. The related art incorporates squeeze and excitation modules into ResNet. The related art proposes convolutional attention for independently modeling time and frequency information. The related art adopts dual time-channel-frequency attention. The related art utilizes a simple attention module. The embodiment of the present application adopts an efficient triplet attention module that can be seamlessly integrated with DPNet.
[0056] Table 1: The structure of DPNet34. It consists of residual and recurrent paths. Similar to ResNet34, the architecture is divided into four stages, containing 3, 4, 6, and 3 blocks respectively.
[0057]
[0058] Figure 2 : The topology of the dual-path embedding learning framework. There are two parallel paths where information exchange and fusion occurs. Finally, the features from the two paths are concatenated to obtain the speaker embedding. Residual Path: Normal residual learning with residual blocks. Recurrent Path: This is a recurrent path along the depth, equivalent to an unrolled RNN, where H iis the hidden state. It can accumulate information from the previous layer and exchange with the residual path through the recurrent block. TA: A triplet attention module inserted after the residual map in each residual block. The Chinese and English correspondences are as follows: Recurrent Path: Recurrent Path, Residual Path: Residual Path, Concatenation: Concatenation, Copy: Copy, Recurrent Block: Recurrent Module, Residual Block: Residual Block, Repeat N times: Repeat N times, Statistical Pooling: Statistical Pooling Layer: Fully-connected Layer: Fully Connected Layer, Speaker Embedding: Speaker Embedding Vector, AAM-softmax: Regression Loss Function.
[0059] 3. Suggested methods
[0060] In this embodiment, the proposed dual-path embedding learning framework and the triplet attention module will be described in detail.
[0061] 3.1 Dual-path Embedding Learning Framework
[0062] In the proposed dual-path embedding learning framework, there are two paths: the residual path and the recurrent path. The residual path comes from the commonly used ResNet. The recurrent path is carefully designed to provide the current layer with the accumulation of information from the previous layer through recurrent connections along the depth. Finally, the resulting features of the two paths are aggregated to obtain the speaker embedding. Figure 2 The overall topology of the framework is schematically depicted. Taking DPNet34 as an example, the structural details are shown in Table 1.
[0063] Residual path: In this work, the embodiment of the present application uses ResNet18 and ResNet34 as the residual path. Assuming that there are N residual blocks in total, the feature map of the i-th residual block can be expressed as X i ∈R C×F×T where C, F, and T represent channel, frequency, and time dimensions, respectively, for 1≤i≤N. These features are used to exchange information between the residual and recurrent paths.
[0064] Cyclic path: In the cyclic path along the depth, each residual block has a corresponding cyclic block, the purpose of which is to accumulate layer history and exchange information for better reuse and repurposing in a sequential manner. The embodiment of the present application represents the i-th cyclic block feature map as H i ∈R K×F×T , where K represents the number of channels in the recurrent block, for 1≤i≤N. In the experiment, K is set to 32. At the i-th step, the calculation process of the residual path is as follows:
[0065] Y i =Residual([X i-1 ·H i-1 ]) (1)
[0066] X i =Y i +X i-1 (2)
[0067] Where X i-1 and H i-1 are the outputs of the previous residual block and recurrent block respectively. [·] denotes the connection along the channel dimension. Residual means normal residual learning. Specifically, the input X i-1 and H i-1 First, we combine them by concatenation, and then pass the result to the residual block to obtain Y i Finally, the residual is mapped to Y i With the original input X i-1 Add together to get the i-th residual block X i Output.
[0068] For the recurrent path along the depth, it is equivalent to an unrolled RNN, where H i is the hidden state at step i, initialized to 0 at step 0. For the i-th update, its input is the residual block output Y i and the previous hidden state H i-1 .
[0069] H0=0 (3)
[0070] H i =Conv2(tanh(B(Conv1(Y i )+H i-1 ))) (4)
[0071] Where Conv1 is a point-wise convolution with an output channel size of K. B stands for BatchNorm. Tanh is a nonlinear function. Conv2 represents a 3x3 convolution. Specifically, the residual mapping Y i First, it is compressed in the channel dimension by a 1x1 convolution and then added to H i-1 Subsequently, the generated features are processed by batch normalization, tanh activation, and 3x3 convolution. All recurrent blocks similar to RNN share point-wise convolution and 3x3 convolution.
[0072] From the above statements, it can be seen that the dual-path architecture of the embodiment of the present application is not a simple combination of CNN and RNN. The key idea is the information accumulation and exchange between the two paths, which is crucial for enhancing feature learning.
[0073] Embedding layer: To obtain speaker embedding, the last residual and recurrent block X N ,H N The outputs of are first concatenated along the channel dimension. The resulting features are then fed into a statistical pooling layer to map the variable-length representation to a low-dimensional vector, and then transformed by a fully connected (FC) layer to generate the speaker embedding e. The calculation is as follows:
[0074] Z=[X N ·H N ] (5)
[0075] e=FC(P(Z)) (6)
[0076] Where P represents the statistical pooling layer. FC is the fully connected layer.
[0077] 3.2. Triple Attention Module
[0078] The present application embodiment designs a novel and efficient attention module, namely triple attention (TA), for speaker verification. Different from the previous attention mechanism, cross-dimensional interaction is introduced into the TA proposed in the present application embodiment, and the interdependence between channel and frequency dimension (C, F), channel and time dimension (C, T), and frequency and time dimension (F, T) is captured specifically through three separate branches. Figure 3 This is an overview of the method proposed in the embodiments of the present application.
[0079] Figure 3 An inset of TA is shown.
[0080] like Figure 3 As shown, given the input feature Y∈R C×F×T , the first branch builds the interaction between the channel and frequency dimensions (C, F). The resulting attention map S(C, F)∈R C×F×1 Generated by:
[0081] S (C,F) =σ(Conv2(SiLU(B(Conv1(GAP t (Y)))))) (7)
[0082] Where Conv1 and Conv2 are point-wise convolutions with output channel sizes C / r and C respectively. r is the channel reduction rate. B stands for BatchNorm. GAPt is a one-dimensional global average pooling along the time dimension. SiLU is a nonlinear function. σ is the sigmoid function.
[0083] Similarly, in the second branch, the attention map S between the channel and frequency dimensions (C, T) (C,T) ∈R C×1×T Obtained by the following formula:
[0084] S (C,T) =σ(Conv2(SiLU(B(Conv1(GAP f (Y)))))) (8)
[0085] where GAPf is the one-dimensional global average pooling along the frequency dimension.
[0086] For the third branch, the attention map S between the frequency and time dimensions (F, T) (F,T) ∈R 1×F×T The calculation is as follows:
[0087] S (F,T) =σ(B(Conv3([GAP c (Y)·GMP(Y)]))) (9)
[0088] Where GAPc is the one-dimensional global average pooling along the channel dimension. GMP stands for global maximum pooling. Conv3 refers to the 7x7 convolution.
[0089] Finally, the refined features of TA Y′∈R C×F×T It can be generated by:
[0090]
[0091] in Represents broadcast multiplication.
[0092] 4. Experimental Setup
[0093] 4.1 Dataset and Data Augmentation
[0094] The embodiments of this application use Voxceleb1&2 to verify the proposed DPNet and TA modules in experiments. The development set of Voxceleb2 is used as training data, consisting of 1,092,009 utterances from 5994 speakers. In addition, three data enhancement techniques are used to increase the diversity of training data, including online data enhancement, specaugment, and speed perturbation using MUSAN and RIR datasets, using 0.9 and 1.1 times speed changes. For testing, the entire Voxceleb1 is used as evaluation data. Performance is reported in three official test lists: Vox1O, Vox1-E, and Vox1-H.
[0095] 4.2 System Configuration
[0096] The input acoustic features are an 80-dimensional filter bank with a 25ms window and a 10ms shift. During the training process, the embodiment of the present application randomly extracts a block of 200 frames from each utterance. In addition, the training standard for all systems uses AAM-softmax with a margin of 0.2 and a scale of 32. The model is optimized using stochastic gradient descent (SGD) with a momentum of 0.9 and a weight decay of 1e-4. The learning rate is controlled by an exponential scheduler, decreasing from 0.1 to 1e-5. During the test, adaptive score normalization (AS-Norm) was used to normalize the cosine similarity score by setting the impostor group to 600. Performance is measured in terms of equal error rate (EER) and minimum detection cost function (MinDCF), setting Ptarget=0.01 and CFA=CMiss=1. Specifically, the embodiment of the present application constructed four types of systems for comparison, and the configuration of each type is as follows:
[0097] Baseline: ResNet18 and ResNet34.
[0098] DPNets: ResNet18 and Resnet34 are used as the residual paths in the proposed dual-path architecture, and the corresponding DPNet18 and DPNet34 can be obtained in the embodiment of the present application.
[0099] Baselines with TA: We integrate the TA module into ResNet18 and ResNet34 by inserting it after batch normalization in each residual block.
[0100] DPNets with TA: Similarly, the TA module is incorporated into DPNet18 and DPNet34 by inserting it after batch normalization in each residual block of the residual path, as shown in Figure 2 shown.
[0101] Table 2: EER (Equal Error Rate) and MinDCF (Minimum Detection Cost Function) results of different systems on the Voxceleb1 dataset.
[0102]
[0103] 5. Results and Analysis
[0104] The embodiment of the present application first shows the results of the proposed DPNet and the baseline system in Table 1. Then the effects of the attention modules are analyzed, including SE, DTCF, SimAM and TA of the embodiment of the present application.
[0105] 5.1 Results of DPNet
[0106] In the embodiment of the present application, ResNet18 and ResNet34 are used as residual paths to construct DPNet18 and DPNet34, respectively, where the number of channels in the cyclic path is set to 32. In the embodiment of the present application, it can be seen that both DPNet18 and DPNet34 outperform the corresponding ResNet18 and ResNet34, which proves the information exchange between the residual and cyclic paths. Specifically, for DPNet18, in the three official trial lists, the EER obtained a relative improvement of 14.2%, 13.8%, and 13.2% respectively relative to the ResNet18 system. In addition, DPNet34 reduced the EER on Vox1-O, Vox1-E, and Vox1-H to 0.81%, 0.89%, and 1.65%, respectively. It shows that introducing cyclic paths along the depth into CNN is conducive to the reuse and reuse of features. The success of the proposed dual-path embedding learning framework can be attributed to the fact that information from different layers is accumulated and exchanged between the residual and cyclic paths. Dynamic interaction is not a simple combination of two paths, and it is crucial to improve the representation ability of SV systems.
[0107] 5.2 The role of the attention module
[0108] 5.2.1 Teaching Assistant (TA) Module
[0109] The TA module can be easily integrated into ResNet and DPNet, bringing significant improvements with negligible computational overhead. For ResNet, in the three official trial lists, the average EER is improved by 26.8%, 20.8%, and 19.4% relative to the ResNet18 and ResNet34 systems.
[0110] Similarly, DPNet18-TA and DPNet34-TA achieve an average EER reduction of 24.4%, 20.6%, and 15.1% on Vox1-O, Vox1-E, and Vox1-H, respectively. It demonstrates the effectiveness and importance of modeling cross-dimensional attention for speaker verification. In addition, it is worth noting that the combination of DPNet and TA modules produces the best performance, which indicates that the functions of the recurrent path and TA module are complementary.
[0111] Table 3: Effects of different attention modules.
[0112]
[0113] 5.2.2 Comparison with previous attention mechanisms
[0114] In order to verify the superiority of the TA module proposed in the embodiment of the present application over previous methods, the embodiment of the present application adopts ResNet18 as the baseline and re-implements the attention mechanisms commonly used in SV tasks, such as SE, DTCF, and SimAM. As shown in Table 3, the effect of the SE module is very limited, which shows that modeling channel dependencies alone is not enough for SV tasks. DTCF attempts to assemble time and frequency information into channel attention. However, the improvement is still not significant. For SimAM, although no additional parameters are introduced, the performance becomes worse than the baseline. Unlike the above methods, the TA module of the embodiment of the present application interactively models the interdependencies between channels and frequency, channels and time, and frequency and time, respectively, which is much better than all listed methods. This demonstrates the importance of capturing cross-dimensional interactions for SV tasks.
[0115] 6 Conclusion
[0116] In this paper, the embodiments of the present application introduce a novel dual-path embedding learning framework for speaker verification. By accumulating and exchanging information between the two paths, enhanced features can be learned to improve the representation ability of the SV system. In addition, an effective triplet attention module is proposed to simulate cross-dimensional attention. Experiments on the Voxceleb dataset show that the proposed DPNets can outperform the corresponding ResNets. Further improvements can be obtained when combined with the triplet attention module.
[0117] In some other embodiments, embodiments of the present invention further provide a non-volatile computer storage medium storing computer executable instructions, the computer executable instructions being capable of executing the dual-path embedding learning method for a speaker verification system in any of the above method embodiments;
[0118] As an implementation mode, the non-volatile computer storage medium of the present invention stores computer executable instructions, and the computer executable instructions are configured as follows:
[0119] Performing residual learning via a residual block in the residual path;
[0120] Accumulating information from a previous layer via the cyclic path through cyclic blocks and exchanging it with the residual path, wherein each residual block has a corresponding cyclic block for accumulating information from a previous layer and exchanging information;
[0121] The embedding features of the residual path and the embedding features of the recurrent path are aggregated to obtain speaker embedding.
[0122] The non-volatile computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the dual-path embedded learning device for the speaker verification system, etc. In addition, the non-volatile computer-readable storage medium may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the non-volatile computer-readable storage medium may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the dual-path embedded learning device for the speaker verification system via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0123] An embodiment of the present invention also provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes any one of the above-mentioned dual-path embedding learning methods for a speaker verification system.
[0124] Figure 4 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 4 As shown, the device includes: one or more processors 410 and a memory 420, Figure 4 A processor 410 is taken as an example. The device for the dual-path embedding learning method for the speaker verification system may also include: an input device 430 and an output device 440. The processor 410, the memory 420, the input device 430 and the output device 440 may be connected via a bus or other means. Figure 4 The example of connecting via a bus is taken. The memory 420 is the above-mentioned non-volatile computer-readable storage medium. The processor 410 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 420, that is, the dual-path embedding learning method for the speaker confirmation system of the above-mentioned method embodiment is implemented. The input device 430 can receive input digital or character information, and generate key signal input related to the user setting and function control of the communication compensation device. The output device 440 may include a display device such as a display screen.
[0125] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.
[0126] As an implementation mode, the electronic device is applied to a dual-path embedding learning device for a speaker verification system, and is used for a client, comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can:
[0127] Performing residual learning via a residual block in the residual path;
[0128] Accumulating information from a previous layer via the cyclic path through cyclic blocks and exchanging it with the residual path, wherein each residual block has a corresponding cyclic block for accumulating information from a previous layer and exchanging information;
[0129] The embedding features of the residual path and the embedding features of the recurrent path are aggregated to obtain speaker embedding.
[0130] The electronic device of the embodiment of the present application exists in various forms, including but not limited to:
[0131] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
[0132] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.
[0133] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
[0134] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0135] (5) Other electronic devices with data interaction functions.
[0136] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.
[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A dual-path embedding learning method for speaker verification system, wherein: The dual path includes a residual path and a loop path, and the method includes: Performing residual learning via a residual block in the residual path; Accumulating information from a previous layer via the cyclic path through cyclic blocks and exchanging it with the residual path, wherein each residual block has a corresponding cyclic block for accumulating information from a previous layer and exchanging information; Aggregating the embedding features of the residual path and the embedding features of the recurrent path to obtain a speaker embedding; Among them, H i is the hidden state of the i-th step, initialized to 0 in step 0, accumulating information from the previous layer through the cyclic block via the cyclic path and exchanging with the residual path includes: For the update of step i, the input is the residual map Y i and the hidden state H of the previous step i-1 , the residual map Yi is compressed in the channel dimension by a 1x1 convolution and then added to H i-1 , and then processed by batch normalization, tanh activation and 3x3 convolution.
2. The method according to claim 1, wherein: The performing residual learning via the residual block in the residual path includes: Input the previous residual block X i-1 and the previous loop block H i-1 By connecting and combining, we get the residual mapping Y i , the residual map Y i With the original input X i-1 Add together to get the i-th residual block X i Output.
3. The method according to claim 2, wherein: The calculation formula is as follows: Y i =Residual([X i-1 ·H i-1 ]), X i =Y i +X i-1 , Among them, X i is the i-th residual block, Y i is the residual mapping, X i-1 For X i The previous residual block, H i-1 For X i-1 The corresponding previous loop block.
4. The method according to claim 1, wherein: The calculation formula is as follows: H0=0, H i =Conv2(tanh(B(Conv1(Y i )+H i-1 ))), Among them, H i is the hidden state of the i-th step, Y i is the residual mapping, H i-1 is the hidden state of the previous cycle, Conv1 is a point-by-point convolution with an output channel size of K, B represents BatchNorm, tanh is a nonlinear function, and Conv2 is a 3x3 convolution.
5. The method according to claim 1, wherein: The aggregating the embedding features of the residual path and the embedding features of the recurrent path to obtain the speaker embedding includes: The last residual block X N The output and the last loop block H N The outputs of are first concatenated along the channel dimension, and the resulting features are then fed into a statistical pooling layer to map the variable-length representation to a low-dimensional vector, which is then transformed by a fully connected layer to produce speaker embeddings.
6. The method according to claim 5, wherein: The calculation formula is as follows: Z=[X N ·H N ], e=FC(P(Z)), Among them, Z is the feature obtained by connecting along the channel dimension, X N is the last residual block, H N It is the last loop block, P represents the statistical pooling layer, and FC represents the fully connected layer.
7. The method according to any one of claims 1 to 6, wherein: The speaker verification system also includes a triple attention module integrated with the dual path, which captures the interdependencies between channel and frequency dimensions (C, F), channel and time dimensions (C, T), and frequency and time dimensions (F, T) through three separate branches.
8. An electronic device, comprising: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the method described in any one of claims 1 to 7.
9. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
