Learning device, estimation device, learning method, estimation method, and program
The learning device and method enhance acoustic descriptive text generation by using a mathematical model with embedding vectors, linear transformations, and attention mechanisms to accurately describe differences in acoustic signals, addressing ambiguity in existing technologies.
Patent Information
- Application Number
- JP2024571524
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-01-19
- Publication Date
- 2026-12-03
- Estimated Expiration
- 2043-01-19
AI Technical Summary
Existing acoustic descriptive text generation technologies struggle to accurately distinguish and describe differences between similar acoustic signals, such as varying rainfall sounds, leading to ambiguity in user understanding.
A learning device and method that employs a control unit to learn a mathematical model using acoustic signals and correct explanation data, incorporating embedding vector estimation, linear transformations, attention mechanisms, and explanatory text estimation processes to reduce the difference between estimated and correct explanatory texts.
The solution enables accurate estimation of explanatory texts that describe the differences between acoustic signals, improving the clarity and precision of acoustic signal descriptions.
Smart Images

Figure 0007960278000017 
Figure 0007960278000018 
Figure 0007960278000019
Abstract
Description
[Technical Field]
[0001] The present invention relates to a learning device, an estimation device, a learning method, an estimation method, and a program. [Background technology]
[0002] The amount of acoustic signal data available on the internet and elsewhere is increasing daily, and technologies for automatically recognizing and annotating this data are essential for its utilization. Recently, acoustic descriptive text generation technology, which generates descriptive text from acoustic signals, has been widely researched. Acoustic descriptive text generation assigns text to acoustic signals rather than labels, allowing for a more detailed description of the acoustic signals. [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] K. Drossos, S. Adavanne, and T. Virtanen, “Clotho: An audio captioning dataset,” in Proc. IEEE Int. Conf. Acoust. Speech Signal Process. (ICASSP), 2019, pp. 736-740. [Overview of the Initiative] [Problems that the invention aims to solve]
[0004] For example, consider a scenario where two rain sounds with different rainfall amounts are described with the presumed descriptions "It is raining very hard without any break" and "Rain falls at a constant and heavy rate." In such a case, it would be difficult for the user to distinguish which of these two descriptions represents heavier rain. As a result, the user would likely prefer a description that explains the difference between two similar but distinct sounds.
[0005] In view of the above circumstances, the present invention aims to provide a technique for obtaining explanatory text that describes the differences in acoustic signals. [Means for solving the problem]
[0006] One aspect of the present invention comprises a control unit that learns a mathematical model to be learned using a first acoustic signal, a second acoustic signal, and correct explanation data indicating the correct explanation of the difference between the sound indicated by the first acoustic signal and the sound indicated by the second acoustic signal, wherein the mathematical model to be learned is an explanation estimate model which is a mathematical model that estimates an explanation of the difference between two input acoustic signals, and the explanation estimate model includes a first embedding vector estimation process which estimates a first embedding vector which is the embedding vector of one of the two input acoustic signals based on that first embedding vector, a second embedding vector estimation process which estimates a second embedding vector which is the embedding vector of the other of the two input acoustic signals based on that second embedding vector, a first linear transformation which performs a linear transformation on the first embedding vector, and the second embedding vector The control unit is a learning device that includes a second linear transformation which performs a linear transformation on the tor; a first attention process which executes an attention mechanism using the result of the second linear transformation as a query and the result of the first linear transformation as memory; a second attention process which executes an attention mechanism using the result of the first linear transformation as a query and the result of the second linear transformation as memory; an acoustic difference acquisition process which acquires the difference between the result of executing the first attention process and the result of executing the second attention process; and an explanatory text estimation process which estimates explanatory text data that explains the difference between the sound indicated by one and the sound indicated by the other, based on the result of the acoustic difference acquisition process, wherein the control unit updates the explanatory text estimation model in the learning process to reduce the difference between the estimation result of the explanatory text estimation process and the explanatory text indicated by the correct explanatory text data.
[0007] One aspect of the present invention is an estimation device comprising an estimation unit that executes a pre-trained explanatory text estimation model obtained by the learning device described above.
[0008] One aspect of the present invention includes a control step of learning a mathematical model to be learned using a first acoustic signal, a second acoustic signal, and correct explanation data indicating the correct explanation of the difference between the sound indicated by the first acoustic signal and the sound indicated by the second acoustic signal, wherein the mathematical model to be learned is an explanation estimation model which is a mathematical model that estimates an explanation of the difference between two input acoustic signals, and the explanation estimation model includes a first embedding vector estimation process which estimates a first embedding vector which is the embedding vector of one of the two input acoustic signals based on one of the two input acoustic signals, a second embedding vector estimation process which estimates a second embedding vector which is the embedding vector of the other of the two input acoustic signals based on the other of the two input acoustic signals, a first linear transformation which performs a linear transformation on the first embedding vector, and the second embedding vector The control step is a learning method which includes a second linear transformation that performs a linear transformation on the tor; a first attention process that executes an attention mechanism using the result of the second linear transformation as a query and the result of the first linear transformation as memory; a second attention process that executes an attention mechanism using the result of the first linear transformation as a query and the result of the second linear transformation as memory; an acoustic difference acquisition process that obtains the difference between the result of executing the first attention process and the result of executing the second attention process; and an explanatory text estimation process that estimates explanatory text data that explains the difference between the sound shown by one and the sound shown by the other, based on the result of the acoustic difference acquisition process, wherein the control step is a learning method which updates the explanatory text estimation model in the learning to reduce the difference between the estimation result of the explanatory text estimation process and the explanatory text shown by the correct explanatory text data.
[0009] One aspect of the present invention is an estimation method comprising the estimation step of executing a trained explanatory text estimation model obtained by the learning method described above.
[0010] One aspect of the present invention is a program for causing a computer to function as either the learning device or the estimation device described above. [Effects of the Invention]
[0011] According to the present invention, it is possible to estimate an explanatory text that describes differences between acoustic signals. [Brief Description of Drawings]
[0012] [Figure 1] An explanatory diagram illustrating an overview of an explanatory text generation system according to an embodiment. [Figure 2] A flowchart illustrating a first example of a processing flow executed by a learning device according to the embodiment. [Figure 3] A flowchart illustrating a second example of the processing flow executed by the learning device according to the embodiment. [Figure 4] A flowchart illustrating a third example of the processing flow executed by the learning device according to the embodiment. [Figure 5] A diagram illustrating an example of a hardware configuration of the learning device according to the embodiment. [Figure 6] A diagram illustrating an example of a configuration of a control unit included in the learning device according to the embodiment. [Figure 7] A diagram illustrating an example of a hardware configuration of an estimation device according to the embodiment. [Figure 8] A diagram illustrating an example of a configuration of a control unit included in the estimation device according to the embodiment. [Figure 9] A flowchart illustrating an example of a processing flow executed by the estimation device according to the embodiment. [Figure 10] An explanatory diagram illustrating two types of models according to the embodiment: one based on BLSTM and the other based on a self-attention structure. [Figure 11] A first diagram illustrating an example of experimental results according to the embodiment. [Figure 12] A second diagram illustrating an example of the experimental results according to the embodiment. [Figure 13] A third diagram illustrating an example of the experimental results according to the embodiment. [[Mode for Carrying Out the Invention]]
[0013] (Embodiment) Figure 1 is an explanatory diagram illustrating the overview of the explanatory text generation system 100 of an embodiment. The explanatory text generation system 100 comprises a learning device 1 and an estimation device 2. The learning device 1 comprises a learning unit 10. The learning unit 10 learns an explanatory text estimation model, which is a mathematical model that estimates an explanatory text that explains the difference between two acoustic signals based on two input acoustic signals. Image G0 in Figure 1 shows an example of the processing performed by the learning unit 10.
[0014] Learning is performed until a predetermined condition for the termination of learning (hereinafter referred to as the "learning termination condition") is met. The learning termination condition may be, for example, that a predetermined number of learning sessions have been performed, or for example, that the change in the mathematical model being learned due to learning is less than a predetermined change. In the field of machine learning, there is a term called "trained," and using this term, the explanatory text estimation model at the point when the learning termination condition is met is a trained explanatory text estimation model.
[0015] Estimation device 2 uses the pre-trained descriptive text estimation model obtained by learning device 1 to estimate a descriptive text that explains the difference between two acoustic signals input to its device.
[0016] <An example of an explanatory text estimation model and its learning method> This document describes the first example (hereinafter referred to as "the first example") of an explanatory text estimation model and its learning method. In the first example, the learning unit 10 learns the explanatory text estimation model using the first acoustic signal, which is a first acoustic signal, the second acoustic signal, which is an acoustic signal different from the first acoustic signal, and the correct explanatory text data. The correct explanatory text data is text data that shows the correct explanatory text that explains the difference between the sound indicated by the first acoustic signal and the sound indicated by the second acoustic signal.
[0017] In the first example, the descriptive text estimation model includes a first embedding vector estimation process, a second embedding vector estimation process, a first linear transformation, a second linear transformation, a first attention process, a second attention process, an acoustic difference acquisition process, and a descriptive text estimation process. These processes are executed when the descriptive text estimation model in the first example is run.
[0018] The first embedding vector estimation process estimates the first embedding vector, which is the embedding vector of the first input, based on the first input, which is one of two input acoustic signals. Specifically, the two input acoustic signals are the first acoustic signal and the second acoustic signal. The content of the process for estimating the first embedding vector based on the first input may or may not be subject to learning-based updates. Specifically, updating the content of the process means updating the values of the parameters of the mathematical model that represents the process.
[0019] The second embedding vector estimation process estimates the second embedding vector, which is the embedding vector of the second input, based on the second input, which is the other of two input acoustic signals. The parameters used to estimate the second embedding vector based on the second input may be parameters that can be updated through learning, or parameters that cannot be updated through learning.
[0020] If one of the two input audio signals is the first audio signal, the other input audio signal is the second audio signal. If one of the two input audio signals is the second audio signal, the other input audio signal is the first audio signal.
[0021] The first embedding vector estimation process is represented, for example, by equation (1) below, and in such a case, the second embedding vector estimation process is represented, for example, by equation (2) below.
[0022]
number
[0023]
number
[0024] s1 represents the first input, and s2 represents the second input. E represents the acoustic embedding network. That is, E represents the contents of the first embedding vector estimation process and the second embedding vector estimation process. e1 represents the first embedding vector. e2 represents the second embedding vector.
[0025] The first linear transformation is a process that performs a linear transformation on the first embedding vector. The content of the linear transformation in the first linear transformation may or may not be subject to learning-based updates.
[0026] The second linear transformation is a process that performs a linear transformation on the second embedding vector. The content of the linear transformation in the second linear transformation may or may not be subject to learning-based updates.
[0027] The first linear transformation is a process expressed by, for example, equation (3) below, and in such a case, the second linear transformation is a process expressed by, for example, equation (4) below.
[0028]
number
[0029]
number
[0030] Linear represents a linear transformation. z1 represents the result of the first linear transformation. z2 represents the result of the second linear transformation.
[0031] The first attention process is an execution of an attention mechanism that uses the result of the second linear transformation as a query and the result of the first linear transformation as memory. The contents of the attention mechanism in the first attention process are subject to potential updates through learning.
[0032] The second attention process executes an attention mechanism that uses the result of the first linear transformation as a query and the result of the second linear transformation as memory. The contents of the attention mechanism in the second attention process are subject to potential updates through learning.
[0033] Both the first and second attention processes are operations that perform, for example, multi-head cross-attention.
[0034] The acoustic difference acquisition process is the process of acquiring the difference between the result of the first attention process and the result of the second attention process.
[0035] The process of acquiring the acoustic difference is a process that can be expressed, for example, by equation (5) below.
[0036]
number
[0037] MHA1 represents the first attention process, and MHA2 represents the second attention process. For both MHA1 and MHA2, the arguments, from left to right, represent the query, key, and value in the attention mechanism. Therefore, in the first attention process shown in equation (5), the attention mechanism with query z2 and key and value z1 is executed, and in the second attention process, the attention mechanism with query z1 and key and value z2 is executed.
[0038] The descriptive text estimation process estimates a descriptive text that explains the difference between the sound represented by the first input and the sound represented by the second input, based on the results of the acoustic difference acquisition process. The content of the descriptive text estimation process may be updated through learning.
[0039] The descriptive text estimation process can be represented, for example, by the following equations (6) to (9).
[0040]
number
[0041]
number
[0042]
number
[0043]
number
[0044] LSTM stands for Long Short-Term Memory. n This represents the output of the nth hidden layer (where n is a non-negative integer) in an LSTM. Therefore, n is the index that identifies the hidden layer in the LSTM. Note that a hidden layer exists when n=1 or greater, and there is no hidden layer when n=0. Therefore, the value of n=0 in symbols containing n as an index represents the initial value.
[0045] w nw0 is a portion of the correct explanation data, which is input to the (n+1)th hidden layer. The portion of the correct explanation data to be input to the (n+1)th hidden layer is determined by the learning unit 10 according to a predetermined rule, and the determined text data is input to the (n+1)th hidden layer. The predetermined rule is, for example, that the element number of the vector sequence representing the text data is the nth element from the smallest. w0 represents the initial value of the text data to be input to the first hidden layer of the LSTM.
[0046] Equation (6) shows the output h of the nth hidden layer in the LSTM. n However, the output of the (n-1)th hidden layer in LSTM is h n-1 and text data w n-1 Based on this, we will show that the result obtained by LSTM is shown.
[0047] softmax means the softmax function. matmul means matrix multiplication. The symbol on the left side of equation (7) is the attention score. The symbol on the left side of equation (8) is the context vector. Tanh means the hyperbolic tangent. Concat means a concatenation in the direction of the hidden layer. The symbol on the left side of equation (9) means the decoder output.
[0048] The processes of equations (6) to (9) estimate the generation probability for each of the multiple word sequences that have been pre-stored in a predetermined memory device. In other words, the processes of equations (6) to (9) provide information showing the distribution of generation probabilities for each word sequence in a set of word sequences that have been pre-stored in a predetermined memory device such as the memory unit 14 described later.
[0049] For example, the values expressed by equations (10) and (11) below can be used as initial values for the LSTM.
[0050]
number
[0051]
number
[0052]
number
[0053] h0 is the output of the nth hidden layer of the LSTM. n , represents the value at n=0. That is, h0 represents the initial value of the output of the hidden layer of the LSTM. c0 represents the initial value of the cell of the LSTM. max represents maximum pooling. mean represents mean pooling.
[0054] The learning unit 10 performs the first example of the explanatory text estimation model on the first and second acoustic signals during the learning of the first example's explanatory text estimation model. Specifically, the performance of the first example's explanatory text estimation model on the first and second acoustic signals means that the first and second acoustic signals are input to the first example's explanatory text estimation model, and the first example's explanatory text estimation model is performed on the input first and second acoustic signals.
[0055] The learning unit 10 then performs a first-type update process. The first-type update process updates the first example's explanatory text estimation model based on the results of running the first example's explanatory text estimation model, in order to reduce the difference between the estimation result of the first example's explanatory text estimation model and the explanatory text shown in the correct explanatory text data. Specifically, the estimation result of the first example's explanatory text estimation model is the estimation result of the explanatory text estimation process.
[0056] Figure 2 is a flowchart showing a first example of the processing flow performed by the learning device 1 in the embodiment. More specifically, Figure 2 is a flowchart showing a first example of the processing flow performed by the learning device 1 when the explanatory text estimation model and its learning method are the first example.
[0057] The learning unit 10 acquires the unexecuted set of the first acoustic signal, the second acoustic signal, and the correct explanation data (step S101). Unexecuted means that it has not yet been used to train the explanation estimation model.
[0058] Next, the learning unit 10 performs the first embedding vector estimation process (step S102). Next, the learning unit 10 performs the second embedding vector estimation process (step S103). Next, the learning unit 10 performs the first linear transformation (step S104). Next, the learning unit 10 performs the second linear transformation (step S105). Next, the learning unit 10 performs the first attention process (step S106).
[0059] Next, the learning unit 10 performs the second attention processing (step S107). Next, the learning unit 10 performs the acoustic difference acquisition processing (step S108). Next, the learning unit 10 performs the explanatory text estimation processing (step S109).
[0060] Next, the learning unit 10 determines whether the learning termination condition has been met (step S110). The learning termination condition may be, for example, that the difference between the result of the explanation sentence estimation process and the explanation sentence shown in the correct explanation sentence data is smaller than a predetermined difference. If the learning termination condition is met (step S110: YES), the process ends. On the other hand, if the learning termination condition is not met (step S110: NO), the learning unit 10 executes a first-type update process (step S111). After step S111, the process returns to step S101.
[0061] The explanatory text estimation model for the first example at the point when the learning termination condition is met is an example of a trained explanatory text estimation model.
[0062] <Effects of the first example> The learning device 1, which is the first example and consists of the explanatory text estimation model and its learning method, obtains a mathematical model for estimating explanatory texts that describe differences in acoustic signals. Therefore, the learning device 1, which is the first example and consists of the explanatory text estimation model and its learning method, can provide a technique for estimating explanatory texts that describe differences in acoustic signals.
[0063] Furthermore, the learning device 1, which is the first example, with the explanatory text estimation model and its learning method configured in this way, obtains a trained explanatory text estimation model that has been trained so that the estimation results approach the correct data. Therefore, the trained explanatory text estimation model obtained by such a learning device 1 can estimate explanatory texts that explain differences in acoustic signals with higher accuracy than before training. Thus, such a learning device 1 can provide a technique for estimating explanatory texts that explain differences in acoustic signals with higher accuracy.
[0064] Furthermore, the trained explanatory text estimation model obtained by the learning device 1 in the first example configured in this way can estimate explanatory texts that describe the differences between acoustic signals. Therefore, if the explanatory texts estimated by the trained explanatory text estimation model are added to each explanatory text that describes the two acoustic signals, explanatory texts that describe each of the two acoustic signals and also express the differences between them are generated. In this way, the learning device 1 in the first example can generate explanatory texts that describe each of the two acoustic signals and also express the differences between them.
[0065] <An example of an explanatory text estimation model and its learning method> A second example of an explanatory text estimation model and its learning method (hereinafter referred to as "the second example") will be explained. In the second example, the learning unit 10 uses the first acoustic signal, the second acoustic signal, and the correct explanatory text data to train the explanatory text estimation model.
[0066] In the second example, the descriptive text estimation model includes a first embedding vector estimation process, a second embedding vector estimation process, a first linear transformation, a second linear transformation, a first attention process, a second attention process, an acoustic difference acquisition process, a descriptive text estimation process, and further, a dismantling model execution process. These processes are performed by executing the descriptive text estimation model in the second example.
[0067] The unraveling model execution process is the process of executing the unraveling model. The unraveling model is a mathematical model that estimates a high-similarity set and a low-similarity set based on the embedding vector of one of two input acoustic signals (i.e., the first input) and the embedding vector of the other (i.e., the second input).
[0068] A high-similarity set is a set in the acoustic feature space where the degree of similarity between the embedding vector of the first input and the embedding vector of the second input is relatively high. A low-similarity set is a set in the acoustic feature space where the degree of similarity between the embedding vector of the first input and the embedding vector of the second input is relatively low. In other words, a high-similarity set has a higher degree of similarity between the embedding vector of the first input and the embedding vector of the second input in the acoustic feature space than a low-similarity set. The acoustic feature space is a phase space that shows the distribution of features in the embedding vectors of acoustic signals.
[0069] The unraveling model includes a separation process. The separation process separates both the embedding vector of the first input and the embedding vector of the second input in the acoustic feature space into a high-similarity set and a low-similarity set, based on the embedding vector of the first input and the embedding vector of the second input in the acoustic feature space.
[0070] Note that the disentanglement model also includes processing for acquiring the feature amount of the embedded vector. The disentanglement model may estimate a high-similarity set and a low-similarity set for each predetermined time segment. Accordingly, in the separation processing, for each predetermined time segment, both the embedded vector of the first input in the acoustic feature amount space and the embedded vector of the second input in the acoustic feature amount space may be separated into the high-similarity set and the low-similarity set.
[0071] In the learning of the explanatory text estimation model of the second example, the learning unit 10 executes the explanatory text estimation model of the second example for the first acoustic signal and the second acoustic signal. In the learning of the explanatory text estimation model of the second example, the learning unit 10 further executes the second-type update processing.
[0072] The second-type update processing is processing for updating the explanatory text estimation model of the second example such that the first difference and the second difference are reduced and the third difference is increased, based on the result of the execution of the explanatory text estimation model of the second example. The first difference is a difference between the estimation result of the explanatory text estimation processing and the explanatory text indicated by the correct explanatory text data. The second difference is a difference between the high-similarity sets obtained by the separation processing. The third difference is a difference between the low-similarity sets obtained by the separation processing.
[0073] The following expression (13) represents an example of a loss function indicating the second difference, and the following expression (14) represents an example of a loss function indicating the third difference.
[0074] [Mathematical formula]
[0075] [Mathematical formula]
[0076] e 1、sim and e 1、disc are one and the other obtained by dividing e1 into two, and e 2、sim and e 2、discThis refers to one and the other when e2 is divided into two parts. As learning progresses, e 1、sim and e 2、sim The mathematical model (i.e., the unraveling model) is updated so that a partition is made between e1 and e2, which have a higher similarity to the given one. SymInfoNCE represents the contrast infoNCE loss, and PairwiseCossim represents the cosine similarity. Φ and Ψ are functions, for example, functions represented in a bidirectional-LSTM-based embedding network.
[0077] The loss function in the Type II update process may be, for example, the following loss function:
[0078]
number
[0079]
number
[0080] λ represents the weight parameter.
[0081] Figure 3 is a flowchart showing a second example of the processing flow performed by the learning device 1 in the embodiment. More specifically, Figure 3 is a flowchart showing an example of the processing flow performed by the learning device 1 when the explanatory text estimation model and its learning method are the second example. Hereafter, the same reference numerals are used for processes similar to those in Figure 2, and their explanation will be omitted.
[0082] Steps S101 to S109 are executed. Next, the learning unit 10 executes the unraveling model (step S112). The unraveling model is executed, which performs the separation process.
[0083] Next, the process in step S110 is executed. The learning termination condition may be, for example, that the first difference and the second difference are each smaller than a predetermined difference, and the third difference is larger than a predetermined value. If the learning termination condition is met (step S110: YES), the process ends. On the other hand, if the learning termination condition is not met (step S110: NO), the learning unit 10 executes a second type update process (step S113). After step S113, the process returns to step S101.
[0084] The explanatory text estimation model for the second example, at the point when the learning termination condition is met, is an example of a trained explanatory text estimation model.
[0085] The training of the unraveling model may, for example, be done through target learning.
[0086] <Effects of the second example> The learning device 1, configured in this way, with its explanatory text estimation model and learning method as the second example, obtains a mathematical model for estimating explanatory texts that describe differences in acoustic signals. Therefore, the learning device 1, with its explanatory text estimation model and learning method as the second example, can provide a technique for estimating explanatory texts that describe differences in acoustic signals.
[0087] Furthermore, the explanatory text estimation model and its learning method, as described above, are used in the learning device 1, which is the second example. The learning device is trained so that the estimation results approach the correct data, the degree of similarity between high-similarity sets increases, and the degree of similarity between low-similarity sets decreases. Increasing the degree of similarity between high-similarity sets and decreasing the degree of similarity between low-similarity sets means that the differences between two acoustic signals can be extracted with higher accuracy.
[0088] Therefore, the trained explanatory text estimation model obtained by the second example of the learning device 1 configured in this way can estimate explanatory texts that explain differences in acoustic signals with even higher accuracy than the trained explanatory text estimation model of the first example. Thus, such a learning device 1 can provide a technique for estimating explanatory texts that more appropriately explain differences in acoustic signals.
[0089] Furthermore, the trained descriptive sentence estimation model obtained by the learning device 1 in the second example, configured in this way, can estimate descriptive sentences that explain the differences between acoustic signals. Therefore, if the descriptive sentences estimated by the trained descriptive sentence estimation model are added to each descriptive sentence that explains the two acoustic signals, a descriptive sentence that explains each of the two acoustic signals and also expresses the differences between them is generated. In this way, the learning device 1 in the second example can generate a descriptive sentence that explains each of the two acoustic signals and also expresses the differences between them.
[0090] <An example of an explanatory text estimation model and its learning method> This section describes a third example (hereinafter referred to as "the third example") of an explanatory text estimation model and its learning method. In the third example, the learning unit 10 uses the first acoustic signal and the second acoustic signal to train the explanatory text estimation model.
[0091] In the third example, the explanatory text estimation model includes a deconstruction model execution process and an auxiliary estimation process. These processes are executed by running the explanatory text estimation model in the third example.
[0092] The auxiliary estimation process is a process that estimates an explanatory text describing the difference between the first and second sound signals, based on the results of the unraveling model execution process. The auxiliary estimation process can be any process that estimates an explanatory text describing the difference between the first and second sound signals, based on the results of the unraveling model execution process. Therefore, the auxiliary estimation process may, for example, be a process that executes a pre-trained auxiliary model that is not updated by learning of the explanatory text estimation model. The auxiliary model is a mathematical model that estimates an explanatory text describing the difference between the first and second sound signals.
[0093] The auxiliary estimation process may be a process that executes a pre-trained auxiliary model that is not updated by learning the explanatory text estimation model. In such a case, the learning of the explanatory text estimation model is the learning of the unraveling model. Below, using such a case as an example, an example of the processing flow of the learning device 1 in the third example will be explained. If the auxiliary model is also to be updated, the learning unit 10 may perform the process of updating the auxiliary model in addition to the process shown in Figure 4.
[0094] Figure 4 is a flowchart showing a third example of the processing flow performed by the learning device 1 in the embodiment. More specifically, Figure 4 is a flowchart showing an example of the processing flow performed by the learning device 1 when the explanatory text estimation model and its learning method are the third example. Even more specifically, Figure 4 is a flowchart showing an example of the processing flow for updating the unraveling model. Hereafter, the same reference numerals are used for processes similar to those in Figure 3, and their explanation will be omitted.
[0095] The learning unit 10 obtains the unexecuted pair of the first and second acoustic signals (step S101a). Next, the processes in steps S102 and S103 are executed. Next, the process in step S112 is executed. Next, the process in step S110 is executed. The learning termination condition may be, for example, that the second difference is smaller than a predetermined difference and the third difference is greater than a predetermined value.
[0096] If the learning termination condition is met (step S110: YES), the process ends. On the other hand, if the learning termination condition is not met (step S110: NO), the learning unit 10 performs a third type update process (step S114). The third type update process updates the unraveled model based on the results of the unraveled model execution process so that the second difference becomes smaller and the third difference becomes larger. The loss function is, for example, the loss function of equation (16). After step S114, the process returns to step S101a.
[0097] The third example of an explanatory text estimation model, which includes the unraveled model at the point when the learning termination condition is met, is an example of a trained explanatory text estimation model. Note that the unraveled model at the point when the learning termination condition is met is a trained unraveled model.
[0098] <The effect of the third example> The learning device 1, configured in this way, with its explanatory text estimation model and learning method being the third example, obtains a mathematical model for estimating explanatory texts that describe differences in acoustic signals. Therefore, the learning device 1, with its explanatory text estimation model and learning method being the third example, can provide a technique for estimating explanatory texts that describe differences in acoustic signals.
[0099] Furthermore, the explanatory text estimation model and its learning method, as described above, are used in the learning device 1, which is the third example. The learning device is trained to increase the degree of similarity between high-similarity sets and decrease the degree of similarity between low-similarity sets. Increasing the degree of similarity between high-similarity sets and decreasing the degree of similarity between low-similarity sets means that the differences between two acoustic signals can be extracted with higher accuracy.
[0100] Therefore, the trained explanatory text estimation model obtained by the third example of the learning device 1 configured in this way can estimate explanatory texts that explain differences in acoustic signals with even higher accuracy than a mathematical model that has not undergone training on the unraveling model. Thus, such a learning device 1 can provide a technique for estimating explanatory texts that more appropriately explain differences in acoustic signals.
[0101] Furthermore, the learning device 1 of this third example, configured in this way, performs training of a disentanglement model. Therefore, the trained disentanglement model obtained in this manner can obtain the difference between two acoustic signals with higher accuracy. Thus, the learning device 1 of this third example can provide a technique for obtaining the difference between two acoustic signals with higher accuracy.
[0102] Furthermore, the trained descriptive sentence estimation model obtained by the learning device 1 in the third example configured in this way can estimate descriptive sentences that explain the differences between acoustic signals. Therefore, if the descriptive sentences estimated by the trained descriptive sentence estimation model are added to each descriptive sentence that explains the two acoustic signals, a descriptive sentence that explains each of the two acoustic signals and also expresses the differences between them is generated. In this way, the learning device 1 in the third example can generate a descriptive sentence that explains each of the two acoustic signals and also expresses the differences between them.
[0103] <Hardware Description> Figure 5 shows an example of the hardware configuration of the learning device 1 in the embodiment. The learning device 1 includes a control unit 11 which has a processor 91 such as a CPU (Central Processing Unit) and memory 92 connected by a bus, and executes a program. The learning device 1 functions as a device comprising the control unit 11, input unit 12, communication unit 13, storage unit 14 and output unit 15 by executing the program.
[0104] More specifically, the processor 91 reads the program stored in the storage unit 14 and stores the read program in the memory 92. By executing the program stored in the memory 92, the learning device 1 functions as a device comprising a control unit 11, an input unit 12, a communication unit 13, a storage unit 14, and an output unit 15.
[0105] The control unit 11 controls the operation of various functional units of the learning device 1. For example, the control unit 11 controls the operation of the output unit 15. For example, the control unit 11 performs training on an explanatory text estimation model. The control unit 11 records various information generated by the operation of the control unit 11 in the storage unit 14.
[0106] The input unit 12 includes input devices such as a mouse, keyboard, or touch panel. The input unit 12 may also be configured as an interface for connecting these input devices to the learning device 1. The input unit 12 receives various types of information for input to the learning device 1.
[0107] The communication unit 13 is configured to include a communication interface for connecting the learning device 1 to an external device. The communication unit 13 communicates with the external device via wired or wireless means. The external device is, for example, a device that transmits data used for learning. The data used for learning is, for example, a set of a first acoustic signal, a second acoustic signal, and correct answer explanation data. The data used for learning may also be, for example, a set of the first acoustic signal and the second acoustic signal. The communication unit 13 acquires the data used for learning by communicating with the device that transmits the data used for learning.
[0108] The external device is, for example, the estimation device 2. The communication unit 13 transmits the learned mathematical model obtained by the learning device 1 to the estimation device 2 through communication with the estimation device 2. The learned mathematical model obtained by the learning device 1 is, for example, a learned descriptive text estimation model. The learned mathematical model obtained by the learning device 1 may also be, for example, the learned unraveling model in the third example. Transmitting a mathematical model means transmitting a computer program that causes the computer to execute the mathematical model.
[0109] Furthermore, the data used for learning does not necessarily have to be input via the communication unit 13; it may also be input to the input unit 12.
[0110] The memory unit 14 is configured using a computer-readable recording medium such as a magnetic hard disk drive or a semiconductor memory device. The memory unit 14 stores various information related to the learning device 1. The memory unit 14 stores information input via, for example, the input unit 12 or the communication unit 13. The memory unit 14 stores various information generated by, for example, the execution of learning. The memory unit 14 stores, for example, learned mathematical models. The memory unit 14 may, for example, store a set of word sequences in advance.
[0111] The output unit 15 outputs various types of information. The output unit 15 is comprised of a display device such as a CRT (Cathode Ray Tube) display, a liquid crystal display, or an organic EL (Electro-Luminescence) display. The output unit 15 may be configured as an interface for connecting these display devices to the learning device 1. The output unit 15 outputs information input to the input unit 12, for example. The output unit 15 may display, for example, the results of updating the mathematical model through learning.
[0112] Figure 6 shows an example of the configuration of the control unit 11 of the learning device 1 in the embodiment. The control unit 11 comprises a learning unit 10, a memory control unit 120, a communication control unit 130, and an output control unit 140. The memory control unit 120 records various information in the memory unit 14. The communication control unit 130 controls the operation of the communication unit 13. The output control unit 140 controls the operation of the output unit 15.
[0113] Figure 7 shows an example of the hardware configuration of the estimation device 2 in the embodiment. The estimation device 2 includes a control unit 21 which has a processor 93 such as a CPU and memory 94 connected by a bus, and executes a program. The estimation device 2 functions as a device comprising the control unit 21, input unit 22, communication unit 23, storage unit 24 and output unit 25 through the execution of the program.
[0114] More specifically, the processor 93 reads the program stored in the storage unit 24 and stores the read program in the memory 94. By executing the program stored in the memory 94, the processor 93 functions as a device comprising a control unit 21, an input unit 22, a communication unit 23, a storage unit 24, and an output unit 25.
[0115] The control unit 21 controls the operation of various functional units of the estimation device 2. For example, the control unit 21 controls the operation of the output unit 25. The control unit 21 executes pre-trained mathematical models obtained by the learning device 1, such as a pre-trained explanatory text estimation model or a pre-trained unraveling model in the third example. The control unit 21 records various information generated by the operation of the control unit 21 in the storage unit 24.
[0116] The input unit 22 includes input devices such as a mouse, keyboard, or touch panel. The input unit 22 may also be configured as an interface for connecting these input devices to the estimation device 2. The input unit 22 receives various types of information for input to the estimation device 2.
[0117] The communication unit 23 is configured to include a communication interface for connecting the estimation device 2 to an external device. The communication unit 23 communicates with the external device via wired or wireless means. The external device is, for example, a device that transmits an acoustic signal. The communication unit 23 acquires an acoustic signal by communicating with the device that transmits the acoustic signal.
[0118] The external device is, for example, the learning device 1. The communication unit 23 communicates with the learning device 1 to obtain the learned mathematical models obtained by the learning device 1, such as the learned descriptive text estimation model and the learned unraveling model in the third example. The acoustic signal does not necessarily have to be input via the communication unit 23; it may also be input to the input unit 22.
[0119] The memory unit 24 is configured using a computer-readable recording medium such as a magnetic hard disk drive or a semiconductor memory device. The memory unit 24 stores various information related to the estimation device 2. The memory unit 24 stores information input via, for example, the input unit 22 or the communication unit 23. The memory unit 24 stores various information generated by the execution of trained mathematical models, such as a trained explanatory text estimation model or a trained unraveling model in the third example. The memory unit 24 stores trained mathematical models obtained by the learning device 1, such as a trained explanatory text estimation model or a trained unraveling model in the third example.
[0120] The output unit 25 outputs various types of information. The output unit 25 is comprised of a display device such as a CRT display, liquid crystal display, or organic EL display. The output unit 25 may be configured as an interface for connecting these display devices to the estimation device 2. The output unit 25 outputs information input to the input unit 22, for example. The output unit 25 may display the estimation results obtained by the learning device 1 using a trained mathematical model, such as a trained explanatory text estimation model or a trained unraveling model in the third example.
[0121] Figure 8 shows an example of the configuration of the control unit 21 of the estimation device 2 in the embodiment. The control unit 21 includes a target acquisition unit 200, an estimation unit 210, a storage control unit 220, a communication control unit 230, and an output control unit 240.
[0122] The target acquisition unit 200 acquires information input to the input unit 22 or the communication unit 23. Therefore, the target acquisition unit 200 acquires, for example, two acoustic signals input to the input unit 22 or the communication unit 23. When the target acquisition unit 200 acquires two acoustic signals, the estimation unit 210 executes a learned mathematical model obtained by the learning device 1, such as a learned descriptive text estimation model or a learned unraveling model in the third example, on those acoustic signals.
[0123] When a pre-trained descriptive text estimation model is executed, the estimation unit 210 estimates a descriptive text that explains the difference between the two acoustic signals acquired by the target acquisition unit 200. When a pre-trained unraveling model in the third example is executed, the estimation unit 210 obtains the execution result of the pre-trained unraveling model for the two acoustic signals acquired by the target acquisition unit 200. That is, when a pre-trained unraveling model in the third example is executed, the estimation unit 210 estimates the difference between the two acoustic signals acquired by the target acquisition unit 200.
[0124] The memory control unit 220 records various information in the memory unit 24. The communication control unit 230 controls the operation of the communication unit 23. The output control unit 240 controls the operation of the output unit 25.
[0125] Figure 9 is a flowchart showing an example of the processing flow performed by the estimation device 2 in the embodiment. The target acquisition unit 200 acquires two acoustic signals (step S201). Next, the estimation unit 210 executes the learned mathematical model obtained by the learning device 1 on the two acoustic signals acquired in step S201 (step S202). The learned mathematical model obtained by the learning device 1 is, for example, a learned descriptive text estimation model. The learned mathematical model obtained by the learning device 1 is, for example, a learned unraveling model.
[0126] Next, the output control unit 240 controls the operation of the output unit 25 to output the result obtained in step S202 to the output unit 25 (step S203).
[0127] <Experimental Results> An example of experimental results is described below. The experiment involved constructing the AudoDiffCaps dataset and verifying the effectiveness of the pre-trained mathematical model obtained by learning device 1. The AudoDiffCaps dataset was synthesized using audio files from FSD50k and ESC-50, which are datasets for audio tagging. It was a dataset consisting of triplets of pairs of similar but different acoustic signals and text descriptions of those differences.
[0128] Data labeled "rain" and "car_passing" were used as background sounds (FSD50k), and data labeled "dog," "chirping_bird," "thunder," "footsteps," "car_horn," and "church_bell" were used as event sounds (ESC-50). 5996 training pairs and 1720 evaluation pairs were provided. The training pairs contained a maximum of 5 sentences describing the differences, while the evaluation pairs always contained 5 sentences.
[0129] For training, 10% of each training set was used as the validation set. Optimization was performed using Adam for 300 epochs, and the model with the smallest loss function value on the validation set was evaluated. BLEU-1, BLEU-4, METEOR, ROUGE-L, CIDEr, SPICE, and SPIDEr were used for evaluation. These are evaluation metrics that are also used in existing acoustic description generation. For the pre-trained models of the acoustic embedding blocks, BYOL-A (see Reference 1) and PANNs-based CNN14 (see Reference 2) were used.
[0130] As a comparison method, two baselines and two acoustic difference encoders (ADEs) were used. Both baselines were single-input BLSTM-LSTM structures, which are widely used in existing acoustic description generation. The inputs used were the time-domain subtraction of two acoustic signals and the time-coupling of two acoustic embedding representations.
[0131] In addition to the proposed method, two other ADEs were provided: one based on BLSTM and another based on a self-attention structure. Through comparisons with these, the experiment confirmed the effectiveness of the cross-attention structure in generating acoustic difference explanations, as it can efficiently handle long sequences and consider the similarity of two acoustic signals for each time segment.
[0132] Figure 10 is an explanatory diagram illustrating two types of embodiments: one based on BLSTM and one based on a self-attention structure. Figure 10 itself is a diagram illustrating the process executed by the learning device 1 in the second example. The BLSTM-based method described above is executed by replacing "MHA" in Figure 10 with BLSTM. The self-attention structure-based method described above is executed in the process of Figure 1 without swapping queries in the two attention mechanisms labeled "MHA," as is done by the learning device 1. In other words, the query for the MHA with key and value z1 is z1, and the query for the MHA with key and value z2 is z2.
[0133] Figure 11 is the first figure showing an example of experimental results in an embodiment. More specifically, Figure 11 is an example of experimental results in which learning and evaluation were performed without using unraveling loss in order to compare the trained mathematical model obtained by learning device 1 in the second example with the comparison method ADE. Figure 11 shows that when CNN14 is used as the pre-trained model for the acoustic embedding block, the proposed cross-attention-based ADE, excluding BLEU-1 and SPICE, obtains the best evaluation index value.
[0134] Examples of estimated captions for each condition are shown in Figure 12. Therefore, Figure 12 is the second figure showing an example of experimental results in the embodiment. Image G1 in Figure 12 shows the two input acoustic signals. Image G2 in Figure 12 shows the ground truth captions (GTs) and the results estimated by each model.
[0135] Figure 12 shows that neither baseline can output the distinct acoustic event, "dog barking." Figure 12 also shows that while the ADE based on BLSTM and self-attention can recognize the distinct acoustic event, it fails to output a descriptive statement for the type of difference, "sound getting louder." On the other hand, Figure 12 shows that the trained mathematical model obtained by learning device 1 in the second example can output descriptive statements for both the acoustic event and the type of difference.
[0136] In the experiment, to confirm the effect of unraveling loss, training and evaluation were performed with weight parameters λ set to 0, 0.1, and 0.2. ADE was fixed to one based on cross-attention. The results are shown in Figure 13. Therefore, Figure 13 is a third figure showing an example of experimental results in the embodiment.
[0137] Figure 13 shows that the method using unraveling loss yields the best evaluation metric value regardless of which pre-trained model is used. Furthermore, Figure 13 shows that the increase in SPIDEr value (+4.3) when using CNN14 as the pre-trained model is significantly larger than that in the case of BYOL-A (+1.3).
[0138] The estimation device 2 configured in this way performs estimation using the trained descriptive text estimation model obtained by the learning device 1 of the first example. The learning device 1 of the first example produces the effects described in <Effects of the first example>. Therefore, such an estimation device 2 can also provide a technique for estimating descriptive texts that explain the differences between acoustic signals. Furthermore, it can provide a technique for estimating descriptive texts that explain the differences between acoustic signals with higher accuracy. It can also generate descriptive texts for each of the two acoustic signals, which also express the differences between them.
[0139] The estimation device 2 configured in this way performs estimation using the trained descriptive text estimation model obtained by the learning device 1 of the second example. The learning device 1 of the second example exhibits the effects described in <Effects of the second example>. Therefore, such an estimation device 2 can also provide a technique for estimating descriptive texts that explain the differences between acoustic signals. Furthermore, it can provide a technique for estimating descriptive texts that more appropriately explain the differences between acoustic signals. It can also generate descriptive texts for each of the two acoustic signals that also express the differences between them.
[0140] The estimation device 2 configured in this way performs estimation using the trained descriptive text estimation model obtained by the learning device 1 of the third example. The learning device 1 of the third example exhibits the effects described in <Effects of the Third Example>. Therefore, such an estimation device 2 can also provide a technique for estimating descriptive texts that explain the differences between acoustic signals. Furthermore, it can provide a technique for estimating descriptive texts that more appropriately explain the differences between acoustic signals. It can also generate descriptive texts for each of the two acoustic signals that also express the differences between them.
[0141] The estimation device 2 configured in this way performs estimation using the trained unraveling model obtained by the learning device 1 of the third example. The learning device 1 of the third example exhibits the effects described in <Effects of the Third Example>. Therefore, such an estimation device 2 can provide a technique for obtaining the difference between two acoustic signals with higher accuracy.
[0142] (modified version) The learning device 1 may be implemented using multiple information processing devices connected to each other via a network. In this case, each functional unit of the learning device 1 may be distributed and implemented across the multiple information processing devices.
[0143] Furthermore, the estimation device 2 may be implemented using multiple information processing devices that are connected to each other via a network. In this case, each functional unit of the estimation device 2 may be distributed and implemented across multiple information processing devices.
[0144] Furthermore, all or part of the functions of learning device 1 and estimation device 2 may be implemented using hardware such as ASIC (Application Specific Integrated Circuit), PLD (Programmable Logic Device), or FPGA (Field Programmable Gate Array). The program may be recorded on a computer-readable recording medium. Computer-readable recording media include, for example, portable media such as flexible disks, magneto-optical disks, ROMs, and CD-ROMs, and storage devices such as hard disks built into computer systems. The program may also be transmitted via a telecommunications line.
[0145] While embodiments of this invention have been described in detail above with reference to the drawings, the specific configuration is not limited to these embodiments and includes designs and the like that do not depart from the spirit of this invention. [Explanation of symbols]
[0146] 100…Description generation system, 1…Learning device, 2…Estimation device, 10…Learning unit, 11…Control unit, 12…Input unit, 13…Communication unit, 14…Storage unit, 15…Output unit, 120…Storage control unit, 130…Communication control unit, 140…Output control unit, 21…Control unit, 22…Input unit, 23…Communication unit, 24…Storage unit, 25…Output unit, 200…Target acquisition unit, 210…Estimation unit, 220…Storage control unit, 230…Communication control unit, 240…Output control unit, 91…Processor, 92…Memory, 93…Processor, 94…Memory
Claims
1. A control unit that performs training on a mathematical model to be learned, using a first acoustic signal, a second acoustic signal, and correct explanation data that shows the correct explanation for the difference between the sound indicated by the first acoustic signal and the sound indicated by the second acoustic signal. Equipped with, The mathematical model to be learned is an explanatory text estimation model, which is a mathematical model that estimates an explanatory text that explains the difference between two input acoustic signals, The aforementioned descriptive text estimation model is, A first embedding vector estimation process estimates a first embedding vector, which is the embedding vector of one of the two input acoustic signals, based on one of the two input acoustic signals. A second embedding vector estimation process estimates a second embedding vector, which is the embedding vector of the other of the two input acoustic signals, based on the other of the two input acoustic signals. A first linear transformation that performs a linear transformation on the first embedding vector, A second linear transformation that performs a linear transformation on the second embedding vector, A first attention process executes an attention mechanism, using the result of the second linear transformation as a query and the result of the first linear transformation as memory. A second attention process executes an attention mechanism that uses the result of the first linear transformation as a query and the result of the second linear transformation as memory, An acoustic difference acquisition process that obtains the difference between the result of the execution of the first attention process and the result of the execution of the second attention process, Based on the results of the aforementioned sound difference acquisition process, an explanatory text estimation process is performed to estimate explanatory text data for an explanatory text that explains the difference between the sound shown by one and the sound shown by the other. Includes, The control unit updates the descriptive text estimation model in the learning process to minimize the difference between the estimation result of the descriptive text estimation process and the descriptive text shown in the correct descriptive text data. Learning device.
2. The descriptive text estimation model further includes a deconstruction model execution process that estimates, based on the first and second embedding vectors, a high-similarity set which is a set of relatively high similarity between the first and second embedding vectors in the acoustic feature space, which is a space showing the distribution of feature quantities of the embedding vectors of the acoustic signal, and a low-similarity set which is a set of relatively low similarity between the first and second embedding vectors in the acoustic feature space. The aforementioned explanatory text estimation model is further updated based on the results of the unraveling model execution process. The learning device according to claim 1.
3. Estimation unit that executes the learned descriptive text estimation model obtained by the learning device according to claim 1, An estimation device equipped with the following features.
4. A control step in which a mathematical model to be learned is trained using a first acoustic signal, a second acoustic signal, and correct explanation data that shows the correct explanation for the difference between the sound indicated by the first acoustic signal and the sound indicated by the second acoustic signal. It has, The mathematical model to be learned is an explanatory text estimation model, which is a mathematical model that estimates an explanatory text that explains the difference between two input acoustic signals, The aforementioned descriptive text estimation model is, A first embedding vector estimation process estimates a first embedding vector, which is the embedding vector of one of the two input acoustic signals, based on one of the two input acoustic signals. A second embedding vector estimation process estimates a second embedding vector, which is the embedding vector of the other of the two input acoustic signals, based on the other of the two input acoustic signals. A first linear transformation that performs a linear transformation on the first embedding vector, A second linear transformation that performs a linear transformation on the second embedding vector, A first attention process executes an attention mechanism, using the result of the second linear transformation as a query and the result of the first linear transformation as memory. A second attention process executes an attention mechanism that uses the result of the first linear transformation as a query and the result of the second linear transformation as memory, An acoustic difference acquisition process that obtains the difference between the result of the execution of the first attention process and the result of the execution of the second attention process, Based on the results of the aforementioned sound difference acquisition process, an explanatory text estimation process is performed to estimate explanatory text data for an explanatory text that explains the difference between the sound shown by one and the sound shown by the other. Includes, The control step updates the descriptive text estimation model in the learning process to minimize the difference between the estimation result of the descriptive text estimation process and the descriptive text shown in the correct descriptive text data. Learning methods.
5. Estimation step of executing a trained explanatory text estimation model obtained by the learning method described in claim 4, An estimation method having
6. A program for causing a computer to function as either the learning device described in claim 1 or 2 or the estimation device described in claim 3.
Citation Information
Patent Citations
Learning device, learning method, and learning program
JP2022158736A
Automatic audio captioning
US20180061439A1
Environment estimation method, environment estimation device, and program
WO2021229641A1
Sound descriptive text generation method, sound descriptive text generation device, and program
WO2022107250A1
