Rhetorical structure analysis learning device, system, parameter optimization method, and program
The rhetorical structure analysis learning device uses back-translation to generate pseudo-training data, optimizing parameters effectively without extensive raw text data, addressing bias and domain limitations in existing methods.
Patent Information
- Application Number
- JP2023031747
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2024-09-12
- Estimated Expiration
- 2043-03-02
AI Technical Summary
Existing methods for rhetorical structure analysis require large amounts of costly annotated training data, and using pseudo-training data can lead to biased parameter optimization and domain-specific limitations.
A rhetorical structure analysis learning device that generates pseudo-training data through back-translation of training data, optimizing parameters using pre-learning with pseudo-data and additional learning with actual data to minimize bias and domain dependence.
Enables parameter optimization without the need for extensive raw text data, maintaining data size similarity to original training data and reducing bias, thus enhancing the accuracy of rhetorical structure analysis.
Smart Images

Figure 2024123924000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to the field of natural language processing, which processes language using a computer, and in particular to the use of pseudo training data in parameter optimization for rhetorical structure analysis, which automatically infers the structure of a document. [Background technology]
[0002] In rhetorical structure analysis, a document is considered as a sequence of text units equivalent to clauses, called Elementary Discourse Units (EDUs), which are smaller than sentences. These are then represented as a tree (a tree with a recursive structure in which non-terminal nodes represent span relationships) formed by a series of terminal nodes and EDUs (see Figure 7). In Figure 7, the terminal node is EDU (e). A non-terminal node represents the coreness (subordinate relationship) of the span it governs, that is, whether it is a nucleus (N) or a satellite (S). A nucleus (N) is a text area that represents more central information, and a satellite (S) is a text area that supplements the nucleus.
[0003] A relationship label is assigned to the edge connecting two non-terminal nodes. When the two non-terminal nodes are a pair of S and N, a relationship label such as Elaboration (18 types in total) is assigned to the edge on the S side, and the default label span is assigned to the edge on the N side. Note that span is the default label assigned to the N side, so it is not considered a relationship label. Also, when the two non-terminal nodes are a pair of N and N, a relationship label such as Same-Unit is assigned to both edges.
[0004] The technique of inferring a rhetorical tree structure given a sequence of documents, i.e., EDUs, is currently implemented using neural networks. For example, after obtaining a vector of spans using a pre-trained language model, the neural network performs (1) tree structure inference (deciding whether to join or split spans), (2) kernelity inference (selecting either NS, SN, or NN), and (3) relation label inference (selecting one of 18 relations).
[0005] In addition, most current rhetorical structure analyses are top-down, that is, they estimate trees by dividing spans. For example, in the following, we will explain Non-Patent Document 1 on the premise of a top-down analyzer, but the contents of this disclosure can be applied to bottom-up analysis without any problems.
[0006] Next, Figure 8 shows an overview of a typical top-down analyzer. First, a document is considered as a sequence of tokens t. The vector u of a span consisting of consecutive EDUs is the average of the embedding vector of the leftmost token of the leftmost EDU and the embedding vector of the rightmost token of the rightmost EDU. The vector of a span consisting of the i-th EDU to the j-th EDU in Figure 8 is the embedding vector w b(i) and the embedding vector w of the leftmost token of the kth EDU e(k) Then, the top-down analyzer inputs the vector u to a feedforward neural network to obtain a vector h, which is then input to a bi-fin layer to estimate the tree structure, kernelity, and relation labels.
[0007] In this case, the span consisting of the i-th EDU to the j-th EDU is
[0008]
number
[0009]
number
[0010]
number
[0011]
number
[0012]
number
[0013]
number
[0014]
number
[0015]
number
[0016] Finally, the kth EDU into which the span consisting of the ith EDU and the jth EDU is divided is determined by the following (Equation 4).
[0017]
number
[0018]
number
[0019]
number
[0020]
number
[0021]
number
[0022]
number
[0023]
number
[0024]
number
[0025]
number
[0026]
number
[0027] However, a sufficient amount of training data is generally required for neural network learning, i.e., parameter estimation. However, annotation for rhetorical structure analysis is costly, making it difficult to prepare large-scale training data (rhetorical structure tree data). In response to this problem, Non-Patent Document 2 proposes a method of pre-training an analysis model using a large amount of pseudo training data, and then performing additional training using the training data. Specifically, Non-Patent Document 2 proposes applying multiple analyzers to a large amount of raw text data, and using subtrees common to the output results as pseudo training data. [Prior art documents] [Non-patent literature]
[0028] [Non-Patent Document 1] Naoki Kobayashi, Tsutomu Hirao, Hidetaka Kamigaito, Manabu Okumura, and Masaaki Nagata. 2020. Top-down rst parsing utilizing granularity levels in documents. In Proceedings of the 2020 Conference on Artificial Intelligence for the American, pages 8099-8106 [Non-Patent Document 2] Naoki Kobayashi, Tsutomu Hirao, Hidetaka Kamigaito, Manabu Okumura, and Masaaki Nagata. 2021. Improving Neural RST Parsing Model with Silver Agreement Subtrees. In Proceedings of the 2021 Conference of NAACL, pages, 1600-1612 Summary of the Invention [Problem to be solved by the invention]
[0029] However, the method in Non-Patent Document 2 has the problem that the size of the common subtree (the number of leaves) tends to be smaller than the original training data (subtrees consisting of a few EDUs), which biases parameter optimization during pre-learning. In addition, depending on the domain of the target text, it may not be possible to prepare a large amount of raw text data in the first place.
[0030] The present invention has been made in consideration of the above points, and aims to eliminate the need to prepare large amounts of raw text data as correct answer data without biasing parameter optimization during pre-learning. [Means for solving the problem]
[0031] In order to solve the above problem, the invention of claim 1 is a rhetorical structure analysis learning device that optimizes parameters for rhetorical structure analysis, comprising: a data expansion unit that generates pseudo training data by performing reverse translation after translation on training data, which is correct answer data in the form of sentences; a pre-learning unit that uses the pseudo training data to generate specified parameters by optimizing randomly initialized parameters; and an additional learning unit that sets the specified parameters as initial values and generates final parameters by optimizing the specified parameters using the training data. Effect of the Invention
[0032] As described above, according to the present invention, by using documents obtained by translating and then back-translating training data as pseudo-training data, it is possible to achieve the effect of eliminating the need to prepare large amounts of raw text data as correct answer data without biasing parameter optimization during pre-learning. [Brief description of the drawings]
[0033] [Figure 1] 1 is an overall configuration diagram of a system constructed using a rhetorical structure analysis learning device and a rhetorical structure estimation device according to an embodiment. [Diagram 2] 1 is a hardware configuration diagram of a rhetorical structure analysis learning device according to an embodiment. [Diagram 3] 1 is a functional configuration diagram of a rhetorical structure analysis learning device according to an embodiment. [Figure 4] FIG. 4 is a detailed functional block diagram of a data extension unit according to the embodiment. [Diagram 5] 1 is a flowchart showing the overall processing of the rhetorical structure analysis learning device. [Figure 6] 13 is a flowchart showing the processing of a data expansion unit of the rhetorical structure analysis learning device. [Figure 7] A diagram showing a tree with a recursive structure in rhetorical structure analysis. [Figure 8] FIG. 1 shows an overview of a general top-down analyzer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0034] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0035] [System configuration of the embodiment] First, an overview of the configuration of the system according to the present embodiment will be described with reference to Fig. 1. Fig. 1 is a diagram showing the overall configuration of a system constructed by a rhetorical structure analysis learning device and a rhetorical structure estimation device according to the embodiment.
[0036] As shown in FIG. 1, the system is constructed by a rhetorical structure analysis learning device 1 and a rhetorical structure estimation device 2 .
[0037] Furthermore, the rhetorical structure analysis learning device 1 and the rhetorical structure estimation device 2 can communicate with each other via a communication network such as the Internet, a LAN (Local Area Network), etc. The connection form of the communication network may be either wireless or wired.
[0038] The rhetorical structure analysis learning device 1 and the rhetorical structure estimation device 2 are configured by one or more computers.
[0039] The rhetorical structure analysis learning device 1 optimizes each parameter of rhetorical structure analysis, which automatically estimates the structure of a document, and transmits each optimized parameter to the rhetorical structure estimation device 2. The rhetorical structure analysis learning device 1 transmits correct answer data in advance to the rhetorical structure estimation device 2. The correct answer data includes multiple pairs of text data indicating a document and a correct answer tree corresponding to this text data, and is called "development data" in the field of rhetorical structure analysis.
[0040] The rhetorical structure estimation device 2 generates an evaluation score indicating the degree of match between a subtree obtained by estimating a tree structure based on the parameters acquired from the rhetorical structure analysis learning device 1 and a subtree of the tree structure indicated by the correct answer data, and transmits the evaluation score to the rhetorical structure analysis learning device 1. The evaluation score is indicated as a value between 0 and 1, with a perfect mismatch being "0" and a perfect match being "1", for example.
[0041] [Hardware configuration of the rhetorical structure analysis learning device] Next, the hardware configuration of the rhetorical structure analysis learning device 1 will be described with reference to Fig. 2. Fig. 2 is a hardware configuration diagram of the rhetorical structure analysis learning device according to the embodiment. Note that the hardware configuration of the rhetorical structure estimation device 2 is similar to that of the rhetorical structure analysis learning device 1, and therefore the description thereof will be omitted.
[0042] 2, rhetorical structure analysis learning device 1 has processor 101, memory 102, auxiliary storage device 103, connection device 104, communication device 105, and drive device 106. The hardware components constituting rhetorical structure analysis learning device 1 are connected to each other via bus 107.
[0043] The processor 101 serves as a control unit that controls the entire rhetorical structure analysis learning device 1, and includes various arithmetic devices such as a CPU (Central Processing Unit). The processor 101 reads various programs onto the memory 102 and executes them. The processor 101 may include a GPGPU (General-purpose computing on graphics processing units).
[0044] The memory 102 has a main storage device such as a Read Only Memory (ROM) and a Random Access Memory (RAM). The processor 101 and the memory 102 form a so-called computer, and the processor 101 executes various programs read onto the memory 102, causing the computer to realize various functions.
[0045] The auxiliary storage device 103 stores various programs and various information used when the processor 101 executes the various programs.
[0046] The connection device 104 is a connection device that connects an external device (for example, a display device 110, an operation device 111) and the rhetorical structure analysis learning device 1.
[0047] The communication unit 105 is a communication device for transmitting and receiving various types of information to and from other units.
[0048] The drive device 106 is a device for setting a (non-transient) recording medium 130. The recording medium 130 here includes media that record information optically, electrically, or magnetically, such as a CD-ROM (Compact Disc Read-Only Memory), a flexible disk, a magneto-optical disk, etc. The recording medium 130 may also include semiconductor memories that record information electrically, such as a ROM (Read Only Memory), a flash memory, etc.
[0049] The various programs to be installed in the auxiliary storage device 103 are installed, for example, by setting the distributed recording medium 130 in the drive device 106 and reading out the various programs recorded on the recording medium 130 by the drive device 106. Alternatively, the various programs to be installed in the auxiliary storage device 103 may be installed by being downloaded from a network via the communication device 105.
[0050] [Functional configuration of the rhetorical structure analysis learning device] Next, the functional configuration of the rhetorical structure analysis learning device 1 will be described with reference to Figures 3 and 4. Figure 3 is a functional configuration diagram of the rhetorical structure analysis learning device according to the embodiment. The rhetorical structure analysis learning device 1 pre-learns parameters using input pseudo training data, and additionally learns the parameters using training data, thereby outputting the final parameters. For this reason, the rhetorical structure analysis learning device 1 has an input unit 10, a data extension unit 20, a pre-learning unit 30, an additional learning unit 40, and an output unit 50. Each of these units is a function realized by an instruction from the processor 101 in Figure 2 based on a program.
[0051] Furthermore, the memory 102 or the auxiliary storage device 103 in FIG. 2 stores each of the trained language models to be used by the machine translation unit 22 and the inverse machine translation unit 23 described below when performing machine translation.
[0052] The input unit 10 inputs training data from a user, and inputs data such as evaluation scores sent from the rhetorical structure estimation device 2.
[0053] The data extension unit 20 acquires training data as correct answer data from the input unit 10, and generates pseudo training data by using back translation.
[0054] The pre-learning unit 30 obtains pseudo training data from the data augmentation unit 20, generates predetermined parameters by optimizing the randomly initialized parameters using (Equation 7), and inputs these predetermined parameters to the additional learning unit 40.
[0055] The additional learning unit 40 uses the predetermined parameters acquired from the pre-learning unit 30 as initial values, and optimizes the predetermined parameters again using the training data acquired from the input unit 10 and (Equation 7) to generate final parameters. In this case, since the training data is a tree with EDUs as leaves, the parameters for constructing the intra-sentence tree structure are also optimized. Note that the rhetorical structure tree may be decomposed in advance into an inter-sentence rhetorical structure tree, i.e., a rhetorical structure tree representing documents with sentences as leaves, and an intra-sentence rhetorical structure tree, i.e., a rhetorical structure tree representing sentences with EDUs as leaves, and used for parameter learning of the inter-sentence rhetorical structure tree.
[0056] The output unit 50 transmits the correct answer data and each parameter (final parameter) to the rhetorical structure estimation device 2.
[0057] Next, the data extension unit 20 will be described in more detail.
[0058] <Functional configuration of the data extension section> 4 is a detailed functional block diagram of the data extension unit. The data extension unit 20 receives training data (text: a collection of sentences) and generates pseudo training data by reverse translating the training data. The training data is processed for each document. Therefore, the data extension unit 20 has a sentence selection unit 21, a machine translation unit 22, a reverse machine translation unit 23, and a pseudo training data generation unit 24.
[0059] Of these, the sentence selection unit 21 acquires sentences in a first language, s, and an arbitrary integer n from the input unit 10, and randomly selects a predetermined percentage of the sentences, n% (if the value does not reach an integer, the decimal part is truncated, etc.).The sentence selection unit 21 then inputs the selected n% of sentences to the machine translation unit 22. The arbitrary integer n is input by the user of the rhetorical structure analysis learning device 1.
[0060] The machine translation unit 22 machine translates the sentence (selected sentence) selected by the sentence selection unit 21 from language s into a second language, language t, and inputs the translated sentence to the inverse machine translation unit 23. Language t and language s are different languages. Note that the machine translation unit 22 may use existing technology.
[0061] The inverse machine translation unit 23 machine translates the selected sentences translated by the machine translation unit 22 from language t to language s, and inputs the translated sentences to the pseudo training data generation unit 24. In this case, the sentences are returned to language s again, but are not necessarily translated into the original content selected by the sentence selection unit 21. It is assumed that there are usually multiple translation candidates for any sentence among the selected sentences. It is to be noted that the inverse machine translation unit 23 may use existing machine translation technology.
[0062] The pseudo training data generation unit 24 randomly selects one predetermined translation sentence from a number of translation candidates, and combines this selected predetermined translation sentence with sentences not selected by the sentence selection unit 21 (non-selected sentences) to generate pseudo training data as sentences.
[0063] Considering the combination of the method of selecting n% of sentences in the sentence selection unit 21 and the method of selecting from multiple machine translation results for one sentence, a large number of pseudo training data (documents) can be obtained for one training data (document). The user can decide how many pseudo training data (documents) to generate for one training data (document). Usually, it is sufficient to select about several tens of data.
[0064] In addition to reverse translation, the pseudo training data generator 24 may increase the number of pseudo training data by swapping the above-mentioned nucleus (N) and satellite (S) according to the rhetorical structure of the document. For example, swapping sentence s1 "e1, e2" with sentence s2 "e3" in Fig. 7 results in a different text order but an equivalent rhetorical structure tree.
[0065] Moreover, instead of the reverse machine translation unit 23, a paraphrase unit may be used that simply paraphrases a sentence without performing reverse translation.
[0066] [Processing or Operation of the Embodiment] Next, the processing or operation of this embodiment will be described in detail with reference to Figures 5 and 6. Figure 5 is a flowchart showing the overall processing of the rhetorical structure analysis learning device.
[0067] S11: Training data is obtained as correct answer data from the input unit 10, and pseudo training data is generated by reverse-translating the training data.
[0068] Here, the processing of the data extension unit will be described with reference to Fig. 6. Fig. 6 is a flowchart showing the processing of the data extension unit of the rhetorical structure analysis learning device.
[0069] S21: The sentence selection unit 21 randomly selects n% of sentences from the sentences in the language s acquired from the input unit 10.
[0070] S22: The machine translation unit 22 translates the selected sentence (language s) selected by the sentence selection unit 21 into a selected sentence (language t).
[0071] S23: The reverse machine translation unit 23 reverse-translates the selected sentence (language t) translated by the machine translation unit 22 into a selected sentence (language s).
[0072] S24: The pseudo training data generating unit 24 generates pseudo training data by combining the selected sentences (language s) and the non-selected sentences (language s).
[0073] This ends the process S11.
[0074] S12: Returning to FIG. 5, the pre-learning unit 30 obtains pseudo training data from the data augmentation unit 20, and generates predetermined parameters by optimizing the randomly initialized parameters using (Equation 7), and inputs these predetermined parameters to the additional learning unit 40.
[0075] S13: The additional learning unit 40 sets the predetermined parameters acquired from the pre-learning unit 30 as initial values, and uses the training data and (Equation 7) to optimize the predetermined parameters again to generate final parameters.
[0076] As a result, the output unit 50 transmits the final parameters as parameters to be sent to the rhetorical structure estimation device 2.
[0077] [Main Effects of the Embodiments] As described above, according to this embodiment, the data extension unit 20 performs reverse translation after translation, thereby obtaining a large amount of pseudo training data that becomes a tree of a size not much different from that of the original training data. Then, the pre-learning unit 30 uses the pseudo training data for pre-learning of parameters, and the additional learning unit 40 uses the training data for additional learning of parameters, so that precise parameter optimization can be expected. This makes it possible to obtain a large amount of pseudo training data without being influenced by the domain of the text while maintaining the tree size of the pseudo training data at a level similar to that of the original training data, and thus has the effect of not biasing parameter optimization during pre-learning and not requiring the preparation of a large amount of raw text data as correct answer data.
[0078] 〔supplement〕 The present invention is not limited to the above-described embodiment, and may have the following configurations or processes (operations).
[0079] Each component of the rhetorical structure analysis learning device 1 can be realized by a computer and a program as described above, but this program can also be recorded on a (non-temporary) recording medium and provided, or provided via a network such as the Internet. [Explanation of symbols]
[0080] 1. Rhetorical Structure Analysis Learning Device 2 Rhetorical structure estimation device 10 Input section 20 Data Extension Section 21 Sentence Selection Section 22 Machine Translation Department (First Machine Translation Department) 23 Reverse Machine Translation Unit (Second Machine Translation Unit) 24 Pseudo training data generation unit 30 Pre-learning section 40 Additional Learning Section 50 Output section
Claims
1. A rhetorical structure analysis learning device that optimizes parameters of a rhetorical structure analysis, comprising: A data augmentation unit that generates pseudo training data by translating and then back-translating training data, which is sentences as correct answer data; a pre-learning unit that generates predetermined parameters by optimizing randomly initialized parameters using the pseudo training data; an additional learning unit that generates final parameters by optimizing the predetermined parameters using the training data with the predetermined parameters as initial values; A rhetorical structure analysis learning device having the above structure.
2. The data extension unit is a sentence selection unit for selecting selected sentences that are a predetermined percentage of sentences from sentences presented in a first language; a machine translation unit that machine translates the selected sentence into a second language different from the first language; a reverse machine translation unit that reverse-translates the selected sentence translated into the second language into the first language; a pseudo training data generation unit that generates the pseudo training data by combining the reverse-translated selected sentences and non-selected sentences that are sentences not selected by the sentence selection unit; and 2. The rhetorical structure analysis learning device according to claim 1, further comprising:
3. A rhetorical structure analysis learning device according to claim 1 or 2; a rhetorical structure estimation device that calculates an evaluation score indicating a degree of agreement between a subtree obtained by estimating a tree structure based on each parameter and a subtree of the tree structure indicated by the correct answer data; A system having
4. A parameter optimization method for optimizing parameters of a rhetorical structure analysis executed by a rhetorical structure analysis learning device that learns rhetorical structure analysis, comprising: The rhetorical structure analysis learning device is A data augmentation process in which pseudo training data is generated by translating and then back-translating training data, which is sentence-based correct answer data; A pre-learning process for generating predetermined parameters by optimizing randomly initialized parameters using the pseudo training data; an additional learning process for generating final parameters by optimizing the predetermined parameters using the training data with the predetermined parameters as initial values; A parameter optimization method to be performed.
5. The data augmentation process includes: a sentence selection process for selecting selected sentences from the sentences presented in the first language, the selected sentences being a predetermined percentage of sentences; a machine translation process for machine translating the selected sentence into a second language different from the first language; a reverse machine translation process for reverse translating the selected sentence translated into the second language into the first language; a pseudo training data generation process for generating the pseudo training data by combining the reverse-translated selected sentences and non-selected sentences that are sentences not selected by the sentence selection process; The parameter optimization method according to claim 4, comprising:
6. A program for causing a computer to execute the method according to claim 4 or 5.
Citation Information
Patent Citations
Parameter optimization device, parameter optimization method, and program
JP2022135517A
