Hypothesis generation device and hypothesis generation method
The hypothesis generation device and method address the limitations of existing technologies by using a trained model to generate new, reliable hypotheses through iterative text creation and neural network processing, ensuring both novelty and transparency in the reasoning behind the generated hypotheses.
Patent Information
- Application Number
- PCT/JP2024/005157
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-27
- Filing Date
- 2024-02-15
- Publication Date
- 2024-10-03
AI Technical Summary
Existing hypothesis generation technologies either rely on existing data for high reliability but fail to generate novel hypotheses or use deep learning for novelty but lack reliability and transparency in their outputs.
A hypothesis generation device and method that utilizes a trained hypothesis generation model to create related texts from input texts, allowing for the generation of new hypotheses through iterative processes involving question generation, answering, and neural network processing, ensuring both novelty and reliability.
The approach generates interesting and reliable hypotheses related to the input content, providing transparent reasoning behind the hypotheses, thus improving their utility and trustworthiness.
Smart Images

Figure JP2024005157_03102024_PF_FP_ABST
Abstract
Description
Hypothesis generation device and hypothesis generation method
[0001] This application relates to a hypothesis generation technology, and in particular to a hypothesis generation device and a hypothesis generation method capable of generating a variety of hypotheses. This application claims priority to Japanese Application No. 2023-049274, filed March 27, 2023, the entire disclosure of which is incorporated herein by reference.
[0002] Predicting future events is of great importance in academia, business, politics, etc., as it allows for appropriate decision-making based on future opportunities and risks.
[0003] In this specification, such predictions in a form understandable to humans, such as a sentence or paragraph, are referred to as a "hypothesis." Hypothesis generation techniques are broadly classified into two types. The first is a technique that extracts human-written knowledge from a large amount of text collected from the web (hereinafter referred to as "web text") and connects it to generate a hypothesis. The second is an automatic hypothesis generation technique that utilizes deep learning generation techniques.
[0004] A first technique is disclosed in Patent Document 1 (see below). The technique disclosed in Patent Document 1 collects word strings that are thought to represent causal relationships expressed as text pairs of "noun + particle + predicate" from a large amount of Japanese web text. In this word string, the preceding text represents the cause, and the following text represents the consequence. If the consequence part of the text of a first causal relationship matches the cause part of another causal relationship, a new word string is created by linking the cause part of the first causal relationship with the consequence part of the second causal relationship. In Patent Document 1, this word string is called a "social scenario." By repeating the process of linking causal relationships in this way, a large amount of social scenarios can be generated.
[0005] The second technique is known as ChatGPT, which uses a language model consisting of a neural network trained by so-called deep learning. Specifically, it generates hypotheses based on input text using a neural network and outputs them.
[0006] JP 2017-37544 A
[0007] OpenAI, "Introducing ChatGPG", [online], OpenAI homepage, [searched March 5, 2023], Internet <URL: https: / / openai.com / blog / chatgpt>
[0008] Of the above-mentioned conventional techniques, the first technique uses existing data to generate hypotheses. Therefore, it is difficult to generate hypotheses that do not exist anywhere, and the generated hypotheses are highly reliable. However, on the other hand, there is a problem in that it is difficult to obtain hypotheses that do not exist anywhere.
[0009] In contrast, in the second technique, a hypothesis is obtained as the output of the generation process, so some output can be obtained for any input, and the output may even be completely new. However, in the second technique, there is no limit to the content that can be obtained, so the problem is that the content that will be generated is unknown until the actual results are obtained. In addition, there are problems in that the output may be clearly incorrect, making the output unreliable and making it difficult to confirm whether the output is valid.
[0010] Therefore, an object of the present invention is to provide a hypothesis generation device and a hypothesis generation method that can generate interesting hypotheses that are related to the content of the input but are not easily thought of, and that are highly reliable.
[0011] A hypothesis generation device according to a first aspect of the present invention includes a related text creation unit that receives input of text and creates related text related to the text, and a hypothesis generation model that receives the text and the related text as input and has been trained in advance to generate hypotheses from the text.
[0012] Preferably, the related text creation unit includes a question generation unit that generates one or more questions based on the text, and a question answering unit that searches an existing text archive for passages containing answers to the one or more questions generated by the question generation unit and outputs them as related text.
[0013] More preferably, the hypothesis generation device further includes a hypothesis successive generation unit that inputs hypotheses generated by the hypothesis generation model to the associated text creation unit instead of the input text, and causes the hypothesis generation model to generate new hypotheses.
[0014] More preferably, the hypothesis generation device further includes a first selector that selects either the input text or a hypothesis generated by the hypothesis generation model and inputs the selected hypothesis to the associated text creation section, and a second selector that selects either the input text or a hypothesis generated by the hypothesis generation model as input to the hypothesis generation model and inputs the selected hypothesis together with the associated text to the hypothesis generation model, causing the hypothesis generation model to generate a new hypothesis.
[0015] Preferably, the hypothesis generator further includes an input selector for selecting either the input text or the related text generated by the related text generating section and inputting the selected text to the related text generating section.
[0016] A hypothesis generation method according to a second aspect of the present invention includes a step in which a computer receives input of text and creates related text related to the text, and a hypothesis generation step in which the computer receives input of the text and the related text and inputs the inputs to a hypothesis generation model that has been trained in advance to generate hypotheses from text, thereby generating a new hypothesis.
[0017] The above and other objects, features, aspects and advantages of the present invention will become apparent from the following detailed description of the invention taken in conjunction with the accompanying drawings.
[0018] According to this invention, it is possible to provide a hypothesis generation device and a hypothesis generation method that can obtain interesting hypotheses that are related to the input content but are not easily thought of, and that can generate highly reliable hypotheses. Furthermore, by presenting the relevant text used in the process of deriving the hypothesis together with the hypothesis, the user can infer the reasons and grounds for deriving the hypothesis. Hypotheses from which the reasons and grounds can be inferred in this way are much more useful than hypotheses whose grounds are completely unknown.
[0019] 1 is a block diagram showing the functional configuration of a hypothesis generation system according to a first embodiment of the present invention. FIG. 2 is a block diagram showing the functional configuration of a related text creation unit shown in FIG. 1. FIG. 3 is a schematic diagram showing the relationship between inputs and outputs of the hypothesis generation neural network shown in FIG. 1. FIG. 4 is a block diagram showing the functional configuration of a training data generation system for generating training data for the question generation unit shown in FIG. 2. FIG. 5 is a block diagram showing the functional configuration of a training data generation system for generating training data for the hypothesis generation neural network shown in FIG. 1. FIG. 6 is a schematic diagram showing the process of generating the inter-sentence semantic relation DB (DataBase) shown in FIG. 5. FIG. 7 is a schematic diagram showing the process of generating training data generated by the training data assembly unit shown in FIG. 5. FIG. 8 is a schematic diagram showing the configuration of training data and the process of generating the same in a modified example of the first embodiment. FIG. 9 is a schematic diagram showing another example of the process of generating training data in a modified example of the first embodiment. FIG. 10 is a block diagram showing the functional configuration of a training data generation system for generating modified examples of training data in a modified example of the first embodiment. FIG. 11 is a block diagram showing the functional configuration of a related text creation unit used in a second embodiment. FIG. 12 is a block diagram showing the functional configuration of a related text creation unit used in a third embodiment. FIG. 1 is a block diagram showing the functional configuration of a hypothesis generation system according to a fourth embodiment. FIG. 2 is a block diagram showing the functional configuration of the related text creation unit shown in FIG. 13. FIG. 3 is a block diagram showing the functional configuration of a hypothesis generation system according to a fifth embodiment. FIG. 4 is a block diagram showing the functional configuration of a training data generation system 620 for generating training data for the related text creation unit shown in FIG. 15. FIG. 5 is a block diagram showing the functional configuration of a training data generation system for generating training data for a hypothesis generation neural network according to a fifth embodiment. FIG. 6 is a block diagram showing the functional configuration of a hypothesis generation system according to a sixth embodiment. FIG. 7 is a block diagram showing the functional configuration of a hypothesis generation system according to a seventh embodiment. FIG. 8 is a block diagram showing the functional configuration of a training data generation system for generating training data for a hypothesis generation neural network according to an eighth embodiment.FIG. 1 is a block diagram showing the functional configuration of a training data generation system for generating training data for a hypothesis generating neural network according to the ninth embodiment. FIG. 2 is a block diagram showing the functional configuration of a training data generation system for generating training data for a hypothesis generating neural network according to the tenth embodiment. FIG. 3 is a block diagram showing the functional configuration of a training data generation system for generating training data for a hypothesis generating neural network according to the eleventh embodiment. FIG. 4 is a schematic diagram showing the configuration of training data for a hypothesis generating neural network according to the twelfth embodiment. FIG. 5 is a block diagram showing the functional configuration of a training system for a similarity calculation model used in the eighth, ninth, and tenth embodiments. FIG. 6 is a schematic diagram for explaining a training method for a model for similarity calculation in the eighth, ninth, and tenth embodiments. FIG. 7 is a block diagram showing the functional configuration of a similarity calculation model training data generation unit shown in FIG. 25. FIG. 8 is a schematic diagram for explaining a calculation method for similarity calculation in the eighth, ninth, and tenth embodiments. FIG. 9 is an external view of a computer for realizing a hypothesis generation system, a training data generation system, etc. according to each embodiment of the present invention. FIG. 11 is a block diagram showing the hardware configuration of the computer shown in FIG.
[0020] In the following description and drawings, the same parts are designated by the same reference numerals, and therefore detailed description thereof will not be repeated.
[0021] 1 to 7, a hypothesis generation system 100 according to a first embodiment of the present invention will be described. Referring to Fig. 1, the hypothesis generation system 100 receives as input an input text 110 and keywords 112. In this example, the keywords 112 are shown as being separate from the input text 110, but as will be described later, the keywords 112 may also be extracted from the input text 110.
[0022] The hypothesis generation system 100 has a first input for receiving an input text 110 and a second input for receiving a prepared hypothesis text, which will be described later, and includes a selector 118 that initially selects and outputs the input text 110 and, in subsequent processing, the hypothesis text, a related text creation section 114 that receives the output of the selector 118 and keywords 112 as inputs and, based on these, creates related text for the text input from the selector 118, and a related text storage section 116 for storing the related text created by the related text creation section 114.
[0023] The hypothesis generation system 100 further includes a hypothesis generation neural network 122 that has been trained in advance to generate and output hypotheses based on the input text and any of the related texts stored in the related text storage unit 116, a hypothesis storage unit 124 for storing the hypotheses output by the hypothesis generation neural network 122, and a selector 120 for selecting any of the related texts stored in the related text creation unit 114 and outputting it as part of the input to the hypothesis generation neural network 122. Any of the hypotheses stored in the hypothesis storage unit 124 is input to a second input of the selector 118. The output of the selector 118 is connected to the input of the related text creation unit 114 and also to the input of the hypothesis generation neural network 122.
[0024] The hypothesis generation system 100 further includes a hypothesis successive generation control unit 126 for controlling the selectors 118, 120 and the hypothesis generation neural network 122 so as to combine the input text 110 or one of the hypotheses stored in the hypothesis storage unit 124 with one of the related texts selected by the selector 120 and input the combined combination into the hypothesis generation neural network 122 to generate a new hypothesis, with the input of the input text 110 being the first stage and the output of a hypothesis from the hypothesis generation neural network 122 being the second or subsequent stage.
[0025] In this example, the related text creation unit 114 uses the text output by the selector 118 and the keywords 112 to output multiple related texts in each of the multiple iterations. However, the present invention is not limited to such an embodiment. For example, the input text 110 and the keywords 112 may be used as input in the first stage, and multiple related texts may be generated in the second and subsequent stages using the hypotheses selected by the selector 118 and keywords extracted from the hypotheses. Also, in the second and subsequent stages, the hypotheses selected by the selector 118, the initially input keywords 112, and keywords extracted from the hypotheses may be added to the input.
[0026] 2 shows the functional configuration of the related text creation unit 114 in FIG. 2. Referring to FIG. 2, the related text creation unit 114 includes a question generation unit 140 for generating one or more questions 142 using the text output by the selector 118 and the keywords 112; a large-scale corpus 144 for storing a large amount of text collected in advance from the web, for example; and a question answering unit 146 for searching the large-scale corpus 144 for each question 142, extracting answer passages from the large-scale corpus 144, which are passages consisting of one or more sentences containing answers to the questions, ranking them, filtering them so as to retain passages containing appropriate answers, and outputting the answer passages. The answer passages extracted from the large-scale corpus 144 by the question answering unit 146 become related text 148 for the text input to the related text creation unit 114.
[0027] 3 shows the input / output relationship of the hypothesis generation neural network 122. Referring to FIG. 3, the hypothesis generation neural network 122 is provided with an input 170 consisting of a [CLS] token indicating the beginning of the input, the input text (output of the selector 118), [SEP], and a character string formed by concatenating related text and the [SEP] token. It is assumed that each word constituting this character string has been converted into a word ID in advance. The hypothesis generation neural network 122 has been trained in advance to output an output word string 172, which is a hypothesis, in response to this input 170. The beginning of the output word string 172 is a vector corresponding to the [CLS] token. In this embodiment, this vector is not used.
[0028] The question generator 140 shown in FIG. 2 may be, for example, a rule-based method or one that uses a neural network-based generative model. Rule-based methods include replacing parts of input text with interrogative words. This method also varies depending on the language. In the case of Japanese, for example, questions can be generated by changing nouns in the input text to "who" or "what," or by removing some nouns and noun phrases and adding strings such as "why," "how," or "when." Alternatively, questions can be generated by adding interrogative phrases to nouns in the input text. Examples of interrogative phrases include "What do you want to do?", "What do you do?", "What do you use with?", "What do you do with?", "What does it have?", "What is good about?", "What is bad about?", "How do you do it?", "How do you use it?", "Why do you do it?", and "Why do you use it?". Adding these to nouns can generate questions.
[0029] Conversely, you can add "what," "why," "how," "what to use," etc. before the entered text, or add strings such as "what happens when," "what happens by doing this," or "what kind of trouble will occur by doing this" after the entered text.
[0030] A further method for generating a question is to delete part of the input text and then apply one of the rules described above. In this case, the resulting question will be more abstract than the one generated from the input text, since part of the input text is deleted.
[0031] In this embodiment, a generation model consisting of a neural network is used as the question generator 140. The training data for this model can be a set of inputs and questions that are obtained from the inputs and are somehow related to the inputs. For example, a set of inputs such as "I like Nagoya" and outputs such as "What tourist spots in Nagoya do you like?" can be used.
[0032] While it is possible to manually create the training data, in this embodiment, the training data is generated mechanically on a large scale from web texts, etc. In this embodiment, the training data for the question generator 140 is generated as follows.
[0033] FIG. 4 is a block diagram showing the functional configuration of a training data generation system 200 for generating training vectors for the neural network of the question generation unit 220. Referring to FIG. 4, the training data generation system 200 includes a large-scale corpus 210 and a question and prior context extraction unit 212 that focuses on a question sentence among texts stored in the large-scale corpus 210 and extracts the question sentence and a prior context consisting of a predetermined number of sentences immediately preceding the question sentence. The method for detecting a question sentence differs depending on the target language. For example, in Japanese, a sentence ending with "ka." can be treated as a question sentence. In English, a sentence beginning with an interrogative word or a sentence beginning with "Do" or "Does" can be treated as a question sentence.
[0034] The training data generation system 200 further includes a training data generation unit 214 for generating training data from each pair of question sentence and preceding context extracted by the question sentence+preceding context extraction unit 212, a training data storage unit 216 for storing the training data generated by the training data generation unit 214, and a training processing unit 218 for training the question generation unit 220 using the training data stored in the training data storage unit 216.
[0035] For example, if the text contains the sentence "What does it mean that I have cold-like symptoms and feel feverish, but I don't have a fever?" and immediately before that is the following prior context: "I thought something was wrong, so I took my temperature several times, but it remains at 36.5 to 37 degrees. I feel extremely tired, have no appetite, and feel extremely fatigued, so I can't go to work. It's hard to even get up, so I haven't been able to go to the hospital," then the former, i.e., the question, will be output, and the latter, i.e., the prior context, will be input to generate learning data.
[0036] The training data for the question generation unit 220 has a structure in which a question sentence is paired with a preceding context of the question. In other words, the parameters of the question generation unit 220 are trained so that when a preceding context is input to the question generation unit 220, the output of the question generation unit 220 generates a question sentence that follows the preceding context.
[0037] There are various other possible methods for automatically generating questions using text containing questions. In addition to the training data described above, it is also possible to automatically extract a portion of an expression (such as a noun) included in the output and add it to the input. This allows the neural network to be trained to generate questions that include the expression given in the input. Alternatively, it is also possible to identify the type of question (why, what, how, etc.) in advance and add information specifying the question type to the input. This allows the question generation unit 220 to be trained to generate questions of a specific type. In this case, inputs for the question generation unit 220 may be created for each of multiple question types so that different types of questions are generated for a single input text.
[0038] In addition to the above, other possible question types include the style of description (plain language, honorific language), tense (past tense or not), whether a personal pronoun is included, whether it is a request, etc. These question types may be added to the input along with specific keywords, for example. Details of this process will be described later with reference to FIG. 16.
[0039] FIG. 5 shows the configuration of a training data generation system 250 that generates training data for the hypothesis-generating neural network 122. Referring to FIG. 5, the training data generation system 250 includes a web text archive 262 containing a large amount of web text collected in advance from the web, and an inter-sentence semantic relation DB 260 for storing a large number of text pairs representing predetermined inter-sentence semantic relations. The inter-sentence semantic relation DB 260 is generated from pairs of word strings representing causal relationships extracted in advance from the web text archive 262 and text passages containing the pairs, and is obtained through processing such as formatting and ellipsis completion. An inter-sentence semantic relation, like the causal relationship described above, refers to a specific relationship between a pair of texts consisting of two texts. Examples include a solution relation (where the first text is a problem and the second text is a solution to the problem) and a purpose-event / action / state relation (where the first text is a purpose and the second text is the event, action, or state for the purpose).
[0040] Each text pair included in the inter-sentence semantic relationship DB 260 is extracted from the web text archive 262, and each text pair in the inter-sentence semantic relationship DB 260 is provided with access information to the corresponding part of the web text archive 262.
[0041] The training data generation system 250 further includes a training data generation unit 264 that, for each text pair included in the inter-sentence semantic relation DB 260, extracts a passage including the text pair from the web text archive 262 based on the access information assigned to the text pair, and generates training data for the hypothesis-generating neural network 122 from the original text pair and the extracted passage. The training data generated by the training data generation unit 264 is stored in a training data storage unit 266. A training unit 268 reads this training data from the training data storage unit 266 and trains the hypothesis-generating neural network 122.
[0042] The training data generation unit 264 includes: a record reading unit 290 for reading records including each text pair from the inter-sentence semantic relation DB 260; a record dividing unit 292 for dividing the records read by the record reading unit 290 into a first text, a second text, and access information; a corresponding text reading unit 294 for reading a passage including the text pair from the web text archive 262 using the access information output by the record dividing unit 292; and a training data assembly unit 296 for assembling and outputting training data using the first text and second text output by the record dividing unit 292 and the passage output by the corresponding text reading unit 294.
[0043] 6 shows a specific example of the records in the inter-sentence semantic relation DB 260 and the web text in the web text archive 262. Referring to FIG. 6, for example, assume that there is a passage 300 in the web text archive 262. By executing an inter-sentence semantic relation determination and generation process 302 using a pre-trained neural network, for example, inter-sentence semantic relation knowledge 304 is obtained.
[0044] Inter-sentence semantic relation knowledge 304 is obtained by extracting, for example, pairs of texts in a causal relationship from passage 300. For each of these texts, omission completion is performed, for example, manually or automatically, by adding character string 310 present in passage 300 as the subject, thereby obtaining inter-sentence semantic relation knowledge 304 regarding a causal relationship consisting of a cause part 320 and a consequence part 322. The same applies to other inter-sentence relations.
[0045] 7 is a schematic diagram showing the process of obtaining training data 330 from inter-sentence semantic relation knowledge 304 and passages 300 extracted from web text. Referring to FIG. 7, the cause part 320 of the inter-sentence semantic relation knowledge 304 serves as input 340 of the training data 330. The passage 300 serves as related text 342 of the training data 330. The consequence part 322 of the inter-sentence semantic relation knowledge 304 serves as output 344 of the training data 330.
[0046] [Operation] The hypothesis generation system 100 according to the first embodiment operates as follows. Referring to Fig. 1, the hypothesis successive generation control unit 126 controls the selector 118 so that the selector 118 first selects the input to the first input. As a result, the input text 110 and the keywords 112 are input to the hypothesis generation system 100. The keywords 112 are input to the related text creation unit 114, and the input text 110 is input to the related text creation unit and the first input of the selector 118.
[0047] 2 , the question generation unit 140 generates one or more questions 142 based on the input text 110 and the keywords 112, and provides the questions to the question answering unit 146. For each of the one or more questions 142 provided, the question answering unit 146 extracts one or more answer passages containing answers to the question from the large-scale corpus 144, and outputs them as related text 148.
[0048] The hypothesis successive generation control unit 126 controls the selector 120 so that the selector 120 selects the first related text in the related text storage unit 116, and a word string formed by concatenating the outputs of the selector 118 and the selector 120 is input to the hypothesis generation neural network 122. At this time, a [CLS] token is added to the beginning of the input word string, a [SEP] token is inserted between the outputs of the selector 118 and the selector 120 for separation, and the same [SEP] token is added to the end of the output of the selector 120.
[0049] The word strings output by the hypothesis generation neural network 122 in response to this input are stored in the hypothesis storage unit 124. Multiple word strings may be selected as the output of the hypothesis generation neural network 122. Similar processing is repeated while switching the related text selected by the selector 120. When the above processing has been completed for all related texts stored in the related text storage unit 116, the first stage of processing ends.
[0050] In the second stage, the hypothesis continuous generation control unit 126 controls the selectors 118 and 120 so that the selector 118 selects the second input and the selector 120 selects the second related text. The selector 118 selects the first hypothesis stored in the hypothesis storage unit 124 and inputs it to the related text creation unit 114. The related text creation unit 114 creates multiple related texts based on this hypothetical text and the keywords 112, as in the first stage, and outputs them to the related text storage unit 116. The selector 120 selects and outputs the first related text from the related texts stored in the related text storage unit 116. A word string formed by concatenating the hypothesis text output by the selector 118 and the related text output by the selector 120 is input to the hypothesis generation neural network 122, and the output of the hypothesis generation neural network 122 is stored in the hypothesis storage unit 124. The above-mentioned process is then repeated until all related texts stored in the related text storage unit 116 are used.
[0051] When all the related texts stored in the related text storage unit 116 have been used, the consecutive hypothesis generation control unit 126 controls the selector 118 to select the second hypothesis stored in the hypothesis storage unit 124. The text of the second hypothesis is input to the related text creation unit 114, and multiple related texts are created and stored in the related text storage unit 116. The consecutive hypothesis generation control unit 126 controls the selector 120 to select and output the first related text in the related text storage unit 116. The output of the selector 118 and the output of the selector 120 are concatenated and provided to the hypothesis generation neural network 122. The output of the hypothesis generation neural network 122 is stored in the hypothesis storage unit 124 as a new hypothesis. Thereafter, the consecutive hypothesis generation control unit 126 controls the selector 120 to select the second related text, and the above-mentioned processing is performed.
[0052] In this way, for each hypothesis stored in the hypothesis storage unit 124, related text is created from that hypothesis and the keywords 112. Then, that hypothesis is combined with all the related texts stored in the related text storage unit 116 to generate a new hypothesis. This process is repeated.
[0053] The process ends when a predetermined termination condition is met, such as when the number of generated hypotheses exceeds a certain number.
[0054] As described above, according to this embodiment, keywords 112 are added to input text 110 and provided to the hypothesis generation system 100, and multiple related texts are generated based on the keywords 112 in the related text creation unit 114. This related text is added to the input text 110 and input to the hypothesis generation neural network 122. These experiments have shown that interesting hypotheses that cannot be easily predicted from the input are generated. It has also been found that inputting a specific keyword tends to result in hypotheses that include that keyword. The basis for generating these hypotheses can then be understood. In other words, to generate each hypothesis, related text is obtained from the web via question-and-answering, and this text is used to generate the hypothesis. As a result, the reasons for the ultimately generated hypothesis can be confirmed by the related text used in creating the hypothesis. This has the effect of increasing the reliability of each hypothesis.
[0055] 1A. First Modification In the first embodiment described above, training data consisting of input word strings, related text word strings, and output word strings is used for training the hypothesis-generating neural network 122, as shown in FIG. 7. However, the present invention is not limited to such an embodiment. Information indicating the type of inter-sentence semantic relation knowledge 304 from which the input 340 and output 344 are obtained (e.g., causal relationship, solution relationship, purpose-event / action / state relationship, etc.) may be added to the training data. FIG. 8 shows the process of generating training data for this purpose.
[0056] 8, in this modification, training data 360 includes input 340 consisting of the cause part 320 of the inter-sentence semantic relation knowledge 304, related text 342 and inter-sentence semantic relation type 370, and output 344. The combination of related text 342 and inter-sentence semantic relation type 370 functions as related text.
[0057] When training the hypothesis generation neural network 122 in this manner, the input for hypothesis generation must include, as in the first embodiment, the input text 110 shown in FIG. 1 and related text, as well as words or symbols representing semantic relationships. In this case, the semantic relationships may be determined by the user at the time of hypothesis generation and always assigned to the input (e.g., symbols representing causal relationships), or any value representing the semantic relationship may be assigned to the input at the time of hypothesis generation. In the former case, hypotheses based on relationships according to the values determined at the time of hypothesis generation are obtained, while in the latter case, a greater variety of hypotheses is likely to be obtained.
[0058] 1B. Second Modification The method of generating training data for a hypothesis-generating neural network is not limited to the first embodiment and the first modification. For example, a method such as that shown in FIG. 9 is also possible. Referring to FIG. 9, it is assumed that a passage 380 exists in a web text archive, the passage 380 including a cause section 394 and a consequence section 396 as a causal relationship. The passage 380 includes text 390 corresponding to the cause section 394 and text 392 corresponding to the consequence section 396.
[0059] When generating training data, this passage 380 may be used as related text for the cause part 394 and the conclusion part 396. When using such training data, it is possible to input the cause part 394 and the passage 380 and learn a process for extracting the conclusion part 396. As a result, when a passage contains a cause part and a conclusion part, if the passage is input together with the cause part as related text and hypotheses are generated, the probability of obtaining the conclusion part as the output increases.
[0060] An example of a system for generating training data for executing such processing on a neural network for hypothesis generation is shown in Figure 17. Referring to Figure 17, this training data generation system 680 includes a large-scale corpus 210 storing a large amount of text, such as a web text archive, and a text pair extraction unit 690 for extracting text pairs having a specific relationship with each other from the large-scale corpus 210 and passages (such as passage 380 in Figure 9) containing the text pairs (e.g., texts 390 and 392 in Figure 9), ranking them, filtering them so as to leave passages containing appropriate answers, and outputting the results. The specific relationships referred to here include causal relationships, solution-solution relationships, and goal-event / action-state relationships, etc.
[0061] The training data generation system 680 further includes a semantic relationship estimation unit 694 that estimates the semantic relationship between the two texts that make up the text pair extracted by the text pair extraction unit 690, and a related text creation unit 692 that generates related text using the passages 380 extracted by the text pair extraction unit 690. Although the related text creation unit 692 generates related text, in this example, the extracted passages 380 are used as they are.
[0062] The training data generation system 680 further includes a training data generation unit 696 that generates training data by concatenating the first sentence (the cause part in the case of a causal relationship) of the text pairs extracted by the text pair extraction unit 690 as input, the extracted passage as related text, and the second sentence (the consequence part in the case of a causal relationship) as output. The training data output by the training data generation unit 696 is stored in a training data storage unit 698, and the training processing unit 700 uses this training data to train the hypothesis generation neural network 604, so that the hypothesis generation neural network 604 learns to generate a sentence corresponding to the output contained in the related text in response to an input.
[0063] 9 , text 400 consisting of text 390 and text 392 corresponding to cause section 394 and conclusion section 396 in passage 380 may be deleted. The resulting passage 382 is used as the related text to train hypothesis-generating neural network 604. By using this type of training data, hypothesis-generating neural network 604 can be trained based on the input and related text so as to output content (a consequence of the input) that is not described in either.
[0064] 1C. Third Modification: The training data for the hypothesis-generating neural network is not limited to the above. For example, content words or phrases included in the output portion of the training data may be added to the input as related text. Figure 10 shows the functional configuration of a training data generation system 440 that generates training data for a hypothesis-generating neural network 452 that performs such training.
[0065] Referring to FIG. 10 , the training data generation system 440 includes a web text archive 262, an inter-sentence semantic relation DB 260, and a training data generation unit 450 for generating training data for a hypothesis generation neural network 452 using the contents stored therein.
[0066] The training data generation unit 450 includes: a record reading unit 290; a record dividing unit 460 for dividing records representing inter-sentence semantic relationships read from the inter-sentence semantic relationship DB 260 by the record reading unit 290 into cause parts, consequence parts, and access information; a corresponding text reading unit 294 for reading corresponding text, which is a passage including an expression of the causal relationship being processed, from the web text archive 262 using the access information output by the record dividing unit 460; a content word / phrase extraction unit 462 for extracting, from the second text output by the record dividing unit 460, content words or phrases included in the second text; and a training data assembly unit 464 for assembling and outputting training data using the first text and the second text output by the record dividing unit 460, the words and phrases output by the content word / phrase extraction unit 462, and the passage output by the corresponding text reading unit 294.
[0067] The training data generated using such training data is stored in the training data storage unit 266. The training unit 268 uses this training data to train the hypothesis generation neural network 452. When generating hypotheses using the hypothesis generation neural network 452, it receives the input text 110 and keywords 112 similar to those shown in FIG. 1 and generates related text, and then inputs the input text 110, related text, and keywords 112 to the hypothesis generation neural network 452. As a result, hypotheses are obtained as output to the hypothesis generation neural network 452. In this case, the user may be prompted to input keywords different from the keywords 112.
[0068] According to this modification, for example, if one particularly wants to obtain hypothesis generation results related to "fishing," the hypothesis generation neural network 452 can be trained so that the keyword "fishing" is included. As a result, when one particularly wants to obtain hypotheses in a specific field, one can obtain hypotheses in the desired field with high accuracy.
[0069] 2. Second Embodiment In the first embodiment, the related text creation unit 114 shown in Fig. 1 generates a question 142 by a question generation unit 140 using a neural network as shown in Fig. 2. However, the present invention is not limited to such an embodiment.
[0070] Fig. 11 shows the functional configuration of a related text creation unit 470 that can be used in place of the related text creation unit 114 shown in Fig. 2 in the hypothesis generation system according to the second embodiment. Referring to Fig. 11, the related text creation unit 470 includes a web search unit 480 that performs a web search on the Internet 472 using the input keyword 112 as a key and collects snippets 482 consisting of a plurality of sentences that include the keyword 112. In the second embodiment, the snippets 482 are used as related text 474.
[0071] This embodiment also provides the same functions and effects as the first embodiment.
[0072] 12 shows yet another example of a related text creation unit 490 used in a hypothesis generation system according to a third embodiment of the present invention. The hypothesis generation system according to the present invention can also be realized by using this related text creation unit 490 instead of the related text creation unit 114 shown in FIG.
[0073] 12 , the related text creation unit 490 includes a keyword extraction unit 500 for extracting keywords from the input text 110 (see FIG. 1 ), a question generation unit 140 for generating one or more questions 142 based on the keywords extracted by the keyword extraction unit 500, a question answering unit 146 for extracting passages including answers to the questions from the large-scale corpus 144 using each of the questions 142, and a word extraction unit 502 for extracting content words or phrases from each of the passages including the answers extracted by the question answering unit 146. The words or phrases extracted by the word extraction unit 502 are used as the related text 492.
[0074] In this embodiment, similar to the first embodiment, words or phrases as related text can be added to the input and input to the hypothesis generating neural network, thereby achieving the same effects as in the first embodiment.
[0075] 13 shows the functional configuration of a hypothesis generation system 510 according to a fourth embodiment of the present invention. Referring to Fig. 13, the hypothesis generation system 510 includes a related text creation unit 520 that receives input text 110, generates related text, and outputs the related text, a related text storage unit 116 for storing the related text generated by the related text creation unit 520, a selector 522 that selects one of the plurality of related texts stored in the related text storage unit 116 in order, and a pre-trained hypothesis generation neural network 524 that receives an input obtained by concatenating the input text 110 and the output of the selector 522, and generates and outputs a hypothesis for the input text 110.
[0076] The hypothesis generation system 510 further includes a hypothesis storage unit 124 for storing the multiple hypotheses output by the hypothesis generation neural network 524, and a hypothesis successive generation control unit 526 for executing control 530 of the related text creation unit 520 and control 528 of the selector 522, so as to control the generation of hypotheses by the hypothesis generation neural network 524, the generation of related text by the related text creation unit 520, and the selection of related text by the selector 522, thereby generating related text from the input text 110 alone, from the input text 110 and each of the multiple hypotheses stored in the hypothesis storage unit 124, or from each of the hypotheses, and combining the related text with the input text 110 to input the resulting combination into the hypothesis generation neural network 524 to generate further new hypotheses.
[0077] Referring to FIG. 14 , the related text creation unit 520 includes a question generation unit 560 that receives as input the hypotheses generated so far and the input text 110 and combines them to generate a new question 562, and a question answering unit 146 that searches the large-scale corpus 144 for passages containing answers to the question 562, extracts answer passages containing answers to the question 562 from the large-scale corpus 144, ranks them, filters them to retain passages containing appropriate answers, and outputs the result as related text 540.
[0078] There are various possible methods for generating the question 562 in the question generation unit 560. For example, suppose the input text 110 is "global warming will progress," and one of the hypotheses generated by the previous process is "ocean temperatures will rise." An example of a question that combines both is "Why does global warming progress and ocean temperatures rise?". Such a question can be generated simply by combining the initial input with one of the hypotheses generated by the previous process and adding the character string "Why?" to the end. Questions of other formats can also be generated in a similar manner.
[0079] For example, when no hypotheses have been generated yet, the related text creation unit 520 generates a question sentence using only the input text 110. After a hypothesis has been generated, the related text creation unit 520 combines the newly generated hypothesis with the input text 110 to generate a question sentence.
[0080] By generating the question sentence in this manner, the question sentence 562 provided to the question answering unit 146 becomes a question with a clearer target as a question, which has the effect of increasing the likelihood that the related text that the question answering unit 146 searches and extracts from the large-scale corpus 144 will be highly relevant to the input.
[0081] 5. Fifth Embodiment As described above, the hypothesis generation system of the present invention can generate multiple hypotheses based on a single input. In the above embodiment, the relationship between these hypotheses cannot be specified particularly clearly. Of course, there may be a relationship in which a subsequent hypothesis is generated based on a previous hypothesis. However, when a series of hypotheses are viewed together, it is not possible to find a particularly clear connection between them.
[0082] However, if there is a story-like quality between a series of hypotheses, such as a line of reasoning or argument, the persuasiveness of the series of hypotheses is thought to increase. For this reason, the fifth embodiment introduces the concept of categories.
[0083] In this embodiment, a "category" indicates the transition of the content of hypotheses between a preceding hypothesis and a succeeding hypothesis, and specifies the semantic relationship between the preceding hypothesis and the succeeding hypothesis, the line of reasoning, the line of the topic, etc. Examples include "continuous," "paradox," and "example." By specifying a hypothesis transition such as "continuous → paradox → example" across a series of hypotheses and generating them in order, it is possible to give the series of hypotheses a story-like quality. As a result, it is possible to generate more interesting hypotheses with a more exciting story.
[0084] FIG. 15 shows the functional configuration of a hypothesis generation system 590 according to the fifth embodiment. Referring to FIG. 15 , the hypothesis generation system 590 includes a selector 600 having a first input for receiving the input text 110 and a second input for receiving a word string different from the input text 110 (a hypothesis generated by the previous processing), a related text creation unit 570 connected to receive the output of the selector 600 and for generating related text for the input based on the input, a related text storage unit 572 for storing the related text generated by the related text creation unit 570, a hypothesis generation neural network 604, and a hypothesis storage unit 124 for storing hypotheses output by the hypothesis generation neural network 604. Note that in this embodiment, no keywords are input. However, the present invention is not limited to such an embodiment. Similar to the first embodiment, keywords may be input in addition to the input text 110 and used in generating related text in the related text creation unit 570.
[0085] The configuration of the related text creation unit 570 is similar to that of the related text creation unit 114 shown in Fig. 2, but this embodiment differs from the first embodiment in the configuration of the training data for the neural network that constitutes the question generation unit 140. This point will be described later.
[0086] The hypothesis generation system 590 further includes a selector 602 for selecting either a first input that receives the input text 110 or one of the hypotheses newly stored in the hypothesis storage unit 124 and providing the selected input to the hypothesis generation neural network 604; a category setting storage unit 608 for storing category sequences to be set in order for the generated hypotheses; and a hypothesis successive generation control unit 606 for controlling the selectors 600 and 602 to select an input appropriate to the processing stage each time a new hypothesis is stored in the hypothesis storage unit 124, and for performing processing to provide information indicating the relevant category (category information) from the category sequence stored in the category setting storage unit 608 to the input of the hypothesis generation neural network 604.
[0087] The hypothesis generation neural network 604 is provided with the output of the selector 602 (the input text 110 or a newly generated hypothesis), one of the related texts stored in the related text storage unit 572, and category information from the hypothesis continuous generation control unit 606.
[0088] 15, a selector (not shown) is provided at the output from related text storage unit 572 for selecting one of the related texts stored in related text storage unit 572 and providing the selected one to hypothesis generation neural network 604. This selector is controlled by hypothesis successive generation control unit 606, and when the hypothesis selected by selector 600 is switched, for example, the related texts stored in related text storage unit 572 are selected in order and provided to hypothesis generation neural network 604. When a new hypothesis is generated by this process, at least as many hypotheses as the number of related texts stored in related text storage unit 572 are newly generated and stored in hypothesis storage unit 124.
[0089] Fig. 16 shows the functional configuration of a training data generation system 620 that generates training data for a neural network for generating questions, and is included in the related text creation unit 570 shown in Fig. 15. Referring to Fig. 16, the training data generation system 620 includes a question sentence and preceding context extraction unit 212 that extracts a question sentence and its preceding context from the large-scale corpus 210, and a training data generation unit 630 that generates training data for the question sentence generation neural network from the question sentence and its preceding context extracted by the question sentence and preceding context extraction unit 212. The configurations of the large-scale corpus 210 and the question sentence and preceding context extraction unit 212 are the same as those shown in Fig. 4.
[0090] The learning data generation unit 630 includes a text separation unit 640 for separating the question sentence and the preceding context text extracted by the question sentence + preceding context extraction unit 212 from each other, a partial expression extraction unit 642 for receiving the question sentence from the text separated by the text separation unit 640, automatically extracting a partial expression from the question sentence, and outputting an expression in which the partial expression is replaced with a variable, a style identification unit 644 for identifying the style of the text expression of the question sentence (common language, honorific language, etc.) and outputting information indicating the style, and a text separation unit 645 for identifying the tense of the question sentence. a question type identification unit 648 for identifying the type of question (why type, what type, how type, etc.) and outputting information indicating the type of question; and a concatenation unit 650 for separating the output of the partial expression extraction unit 642, the output of the style identification unit 644, the output of the tense identification unit 646, and the output of the question type identification unit 648 from one another using a [SEP] token, concatenating them with a preceding context, and further concatenating the concatenated preceding context and the question, and outputting the result as training data 634.
[0091] When various information is added to the precontext in this way, by adding desired values to the input as the various information when actually generating a question, it becomes possible to generate questions containing the intended expression, questions in the intended style, questions of the intended type, questions in the intended tense, etc., using a neural network. Figure 16 shows an example of combining values specifying each category. However, these categories are independent of each other. Therefore, when creating training data, it is possible to specify only some of the values representing these categories.
[0092] It is also possible to extract nouns and the like from the question extracted by the question and preceding context extraction unit 212 and add them to the preceding context. This allows the neural network for question generation to generate a question that includes the nouns included in the input. In addition to the information described above, it is also possible to add information indicating whether the question includes a personal pronoun, whether the question is a request, and the like to the preceding context.
[0093] 6. Sixth Embodiment Fig. 18 shows the functional configuration of a hypothesis generation system 730 according to a sixth embodiment of the present invention. This hypothesis generation system 730 receives an input text 110, first generates related text, and then generates new related text based on the generated related text. After a predetermined termination condition is met, for example, when a predetermined number of related texts have been generated, the input text 110 is combined with each of the generated related texts and input to a hypothesis generation neural network 122. This process generates long hypotheses.
[0094] 18, hypothesis generation system 730 includes a selector 740 having a first input for receiving input text 110 and a second input, a related text creation unit 570 for receiving the output of selector 740 and generating one or more related texts based on the output of selector 740, and a related text storage unit 572 for storing the related texts generated by related text creation unit 570. The configurations of related text creation unit 570 and related text storage unit 572 are similar to those shown in FIG.
[0095] The hypothesis generation system 730 further includes a selector 742 for selecting one of the related texts stored in the related text storage unit 572 and providing it to a second input of the selector 740, thereby causing the related text creation unit 570 to generate new related text; a selector 120 for sequentially selecting and outputting the related texts stored in the related text storage unit 572 after the related text creation unit 570 has completed generating the related text; a hypothesis generation neural network 122 that has been trained in advance to generate hypotheses based on an input that combines the input text 110 and the output of the selector 120; a hypothesis storage unit 124 for storing the hypotheses generated by the hypothesis generation neural network 122; and a hypothesis generation control unit 744 for controlling the selectors 740 and 120 to select appropriate inputs in the first hypothesis generation cycle and subsequent cycles, thereby causing the hypothesis generation neural network 122 to repeatedly generate hypotheses. In this embodiment, the process of obtaining multiple related texts from one related text is repeated. This process causes these related texts to expand in a tree-like relationship. As will be described later, in hypothesis generation, a series of related texts existing along a path from the root of the tree toward the leaves are concatenated, and long hypotheses are generated from them. Therefore, related text storage unit 572 also stores, for each related text, information on the input from which the related text was obtained, i.e., whether the related text was obtained from input text 110 or from one of multiple related texts.
[0096] In this embodiment, in the first cycle of hypothesis generation, the selector 740 selects the input text 110 and inputs it to the related text creation unit 570. The related text creation unit 570 generates one or more related texts in response to this input text 110. The related text storage unit 572 stores these one or more related texts. After the generation of related texts from the input text 110 is completed, the selector 742 selects these multiple related texts one by one and provides them in order to the second input of the selector 740. The selector 740 inputs this related text to the related text creation unit 570. As a result, one or more related texts are newly stored in the related text storage unit 572.
[0097] By repeating this process of creating new related text using the related text stored in related text storage unit 572, the number of related texts stored in related text storage unit 572 will eventually exceed a predetermined number, at which point selector 742 will cease selecting new related text.
[0098] After the selector 742 has finished selecting new related text, the selector 120 sequentially selects paths from the root to each leaf in the tree for the related text stored in the related text storage unit 572, and then sequentially selects the related text on each path, i.e., chains the related text on each path, and inputs them together with the input text 110 to the hypothesis generation neural network 122. The hypothesis generation neural network 122 receives as input the input text 110 and the related text sequentially output by the selector 120, and generates new hypotheses for each. The hypothesis storage unit 124 stores these generated hypotheses in the hypothesis storage unit 124. These new hypotheses are long hypotheses obtained based on the chains of related text.
[0099] When the hypothesis generation neural network 122 generates hypotheses using all of the linked related texts stored in the related text storage unit 572, the hypothesis generation by the hypothesis generation system 730 is completed.
[0100] According to this hypothesis generation system 730, first, a plurality of related texts are generated, and then hypotheses are generated by combining each of the plurality of related texts with the input text 110. As a result, there is an advantage that long hypotheses can be generated by simple processing.
[0101] 7. Seventh Embodiment Fig. 19 shows the functional configuration of a hypothesis generation system 770 according to a seventh embodiment of the present invention. Referring to Fig. 19, the hypothesis generation system 770 includes the related text creation unit 114, related text storage unit 116, selectors 118 and 120, and hypothesis storage unit 124, which are similar to those shown in Fig. 1, an input shaping unit 780 that combines the output of selector 118 and the output of selector 120 to form one sentence, a hypothesis generation neural network 782 that has the same function as the hypothesis generation neural network 122 shown in Fig. 1 but that receives the sentence shaped by the input shaping unit 780 as an input and generates hypotheses, and a hypothesis successive generation control unit 784 that controls each unit of the hypothesis generation system 770, including the selectors 118 and 120, so as to generate a plurality of hypotheses in response to the input of input text 110 and keywords 112.
[0102] This hypothesis generation system 770 differs from the hypothesis generation system 100 shown in Figure 1 in that the input format of the hypothesis generation neural network 782 is different from that of the hypothesis generation neural network 122 shown in Figure 1, and therefore an input formatting unit 780 is provided. In other respects, the hypothesis generation system 770 has the same configuration as the hypothesis generation system 100.
[0103] 1 is input to the hypothesis-generating neural network 122: [CLS] + a word string from the input text 110 + [SEP] + a word string from the related text + [SEP]. In response to this, the input shaping unit 780 concatenates the input text 110 with the related text from the selector 120 to form a natural sentence, which is input to the hypothesis-generating neural network 782. For example, the input shaping unit 780 combines and shapes the input text 110 with the related text from the selector 120 to generate a word string of "[CLS] + a word string from the related text + "ga," + a word string from the input text 110 + [SEP]," which is input to the hypothesis-generating neural network 782.
[0104] For example, suppose that input text 110 is "Develop a dialogue system," keyword 112 is "elderly," and the related text obtained is "Elderly people are having trouble securing transportation." The input shaping unit 780 concatenates and shapes these two sentences to generate the sentence "Elderly people are having trouble securing transportation, but a dialogue system will be developed," and inputs this to the hypothesis generation neural network 782.
[0105] In order for the hypothesis-generating neural network 782 to generate hypotheses based on such input, the training data must also be in the same format as the output of the input formatting unit 780. In other words, even during training, the related text storage unit 116 must be stored, and the resulting sentence must be concatenated with the input text 110 to form a single sentence, which must then be input to the hypothesis-generating neural network 782.
[0106] 8. Eighth Embodiment Fig. 20 shows the functional configuration of a training data generation system 810 for training a hypothesis-generating neural network 826 according to an eighth embodiment of the present invention. Here, the hypothesis-generating neural network 826 to be trained is not particularly limited, but is assumed to have a configuration similar to that of the hypothesis-generating neural network 122 shown in the embodiment of Fig. 1. A system that generates hypotheses using the hypothesis-generating neural network 826 may also be similar to the hypothesis-generating system 100 shown in Fig. 1.
[0107] This embodiment is characterized by the method of generating training data for the hypothesis generating neural network 826 .
[0108] The training data generation system 810 includes an inter-sentence semantic relation DB 260, and a training data generation unit 820 that generates training data for a hypothesis generation neural network 826 based on the text pairs stored in the inter-sentence semantic relation DB 260 and a web text archive 262. The training data generated by the training data generation unit 820 is stored in a training data storage unit 822. A training unit 824 trains the hypothesis generation neural network 826 using the training data stored in the training data storage unit 822, causing the hypothesis generation neural network 826 to generate hypotheses in response to inputs.
[0109] In this embodiment, the process of generating training data is different from that in the first embodiment, and as a result, the hypothesis generating neural network 826 is expected to generate hypotheses different from those generated by the hypothesis generating neural network 122 shown in FIG.
[0110] The training data generation unit 820 includes a record reading unit 830 that reads out text pairs included in each record of the inter-sentence semantic relationship DB 260, and a record dividing unit 832 that divides the text of the record read out by the record reading unit 830 into a first sentence (a cause part in the case of a causal relationship) and a second sentence (a consequence part in the case of a causal relationship).
[0111] The training data generation unit 820 further includes a question generation unit 834 for generating one or more question sentences using the cause portion output by the record division unit 832, a question answering unit 836 for searching the web text archive 262 for multiple answer passages containing answers to each of the one or more questions generated by the question generation unit 834, extracting them from the web text archive 262, filtering them to retain passages containing appropriate answers, and outputting them, and a response memory unit 838 for storing the multiple answer passages output by the question answering unit 836.
[0112] The training data generation unit 820 further includes a similarity calculation unit 840 for calculating the similarity between each of the multiple answer passages stored in the response memory unit 838 and the conclusion part (corresponding to the output in hypothesis generation) output from the record splitting unit 832; a related text selection unit 842 for selecting the answer passage corresponding to the highest similarity as the related text for the cause part (input) based on the similarity calculated for each of the multiple answer passages by the similarity calculation unit 840; and a training data assembling unit 844 for assembling training data for the hypothesis generation neural network 826 by concatenating the cause part output by the record splitting unit 832 as input, the answer passage selected by the related text selection unit 842 as related text, and the conclusion part output by the record splitting unit 832 as output.
[0113] The method of similarity calculation by the similarity calculation unit 840 will be described later with reference to FIGS.
[0114] According to this embodiment, the question generator 834 generates a question sentence from the cause part, and the question answerer 836 searches the web text archive 262 for multiple answer passages to the question sentence, extracts them from the web text archive 262, and filters them to leave passages containing appropriate answers. Then, the answer passage most similar to the conclusion part is selected by the similarity calculator 840 and the related text selector 842. As a result, training data for the hypothesis generating neural network 826 is created by inputting the cause part, combining the related text most closely related to the conclusion part of the causal relationship with the cause part, and the conclusion part of the causal relationship.
[0115] 9. Ninth Embodiment Fig. 21 shows the functional configuration of a training data generation system 850 according to a ninth embodiment of the present invention. A hypothesis-generating neural network 866 that is the subject of training in the ninth embodiment is not particularly limited, but is assumed to have a configuration similar to that of the hypothesis-generating neural network 122 shown in the embodiment of Fig. 1. A system that generates hypotheses using the hypothesis-generating neural network 866 may also be similar to the hypothesis-generating system 100 shown in Fig. 1.
[0116] This embodiment is characterized by the method of generating training data for the hypothesis generating neural network 866 .
[0117] The training data generation system 850 includes an inter-sentence semantic relation DB 260 similar to that of the eighth embodiment, and a training data generation unit 860 that generates training data for a hypothesis generation neural network 866 based on the text pairs stored in the inter-sentence semantic relation DB 260 and a web text archive 262. The training data generated by the training data generation unit 860 is stored in a training data storage unit 862. A learning unit 864 trains the hypothesis generation neural network 866 using the training data stored in the training data storage unit 862, causing the hypothesis generation neural network 866 to generate hypotheses in response to input.
[0118] In this embodiment, the process of generating training data is different from that in the first embodiment and from that in the eighth embodiment. As a result, it is considered that the hypothesis-generating neural network 866 generates hypotheses that are different from those generated by the hypothesis-generating neural network 122 shown in Figure 1 and the hypothesis-generating neural network 826 shown in Figure 20.
[0119] Similar to the one shown in FIG. 20 , the training data generation unit 860 includes a record reading unit 830 that reads out text pairs included in each record of the inter-sentence semantic relationship DB 260, and a record dividing unit 832 that divides the text of the record read out by the record reading unit 830 into a first sentence (a cause part in the case of a causal relationship) and a second sentence (a consequence part in the case of a causal relationship).
[0120] The training data generation unit 860 further includes a question generation unit 870 for generating one or more question sentences using the conclusion portion output by the record division unit 832, a question answering unit 872 for extracting from the web text archive 262 a plurality of answer passages containing answers to each of the one or more questions generated by the question generation unit 870, and a response memory unit 874 for storing the plurality of answer passages extracted by the question answering unit 872.
[0121] The training data generation unit 860 further includes a similarity calculation unit 876 for calculating the similarity between each of the plurality of answer passages stored in the response memory unit 874 and the cause part (corresponding to the input in hypothesis generation) output from the record splitting unit 832; a related text selection unit 878 for selecting, as the related text, the answer passage corresponding to the highest similarity based on the similarity calculated for each of the plurality of answer passages by the similarity calculation unit 876; and a training data assembling unit 880 for assembling training data for the hypothesis-generating neural network 866 by concatenating, as input, the cause part output by the record splitting unit 832, the answer passage selected by the related text selection unit 878 as the related text, and the conclusion part output by the record splitting unit 832.
[0122] The method of calculating the similarity by the similarity calculation unit 840 is the same as that in the eighth embodiment, and will be described later with reference to FIGS.
[0123] According to this embodiment, the question generator 870 generates a question sentence from the consequence part, and the question answerer 872 extracts multiple answer passages for the question sentence from the web text archive 262. Then, the answer passage that is most similar to the cause part is selected by the similarity calculator 876 and the related text selector 878. As a result, training data for the hypothesis generating neural network 826 is created by combining the input text corresponding to the cause part of the causal relationship with the related text that is most closely related to the input text 110 among the answer passages obtained from the consequence part of the causal relationship and the consequence part of the causal relationship.
[0124] 10. Tenth Embodiment Fig. 22 shows the functional configuration of a tenth embodiment of the present invention. Referring to Fig. 22, a training data generation system 920 according to the tenth embodiment includes a training data generation unit 930 for generating training data for a hypothesis-generating neural network 936. The training data generated by the training data generation unit 930 is stored in a training data storage unit 932. A training unit 934 uses the training data stored in the training data storage unit 932 to train the hypothesis-generating neural network 936, thereby making it possible to use the hypothesis-generating neural network 936 in place of the hypothesis-generating neural network 122 shown in Fig. 1.
[0125] The training data generation unit 930 includes a portion that combines the components of the training data generation unit 820 shown in Fig. 20 and the training data generation unit 860 shown in Fig. 21. More specifically, the training data generation unit 930 includes the record reading unit 830, record dividing unit 832, question generation unit 834, question answering unit 836, web text archive 262, response storage unit 838, and similarity calculation unit 840, which are similar to those shown in Fig. 20. The training data generation unit 930 further includes the question generation unit 870, question answering unit 872, response storage unit 874, and similarity calculation unit 876, which are similar to those shown in Fig. 21.
[0126] The training data generation unit 930 further includes a related text selection unit 940 that reads out the answer passage with the highest similarity calculated by the similarity calculation unit 840 from the response storage unit 838 and the answer passage with the highest similarity calculated by the similarity calculation unit 876 from the response storage unit 874, and selects and outputs either of the answer passages with the highest similarity as the related text; and a training data assembly unit 942 that inputs the cause part output by the record division unit 832, combines the answer passage output by the related text selection unit 940 as the related text, and outputs the conclusion part output by the record division unit 832, and stores these as training data in the training data storage unit 932.
[0127] The processes up to the calculation of the similarity by the similarity calculation units 840 and 876 are the same as those in the eighth and ninth embodiments, respectively. In this training data generation unit 930, the related text selection unit 940 compares the similarity calculated by the similarity calculation unit 840 with the similarity calculated by the similarity calculation unit 876, reads out the answer passage corresponding to the higher similarity from the response storage unit 838 or the response storage unit 874, and outputs the read answer passage to the training data assembly unit 942. As a result, by combining the eighth and ninth embodiments, training data can be generated in which an appropriate answer passage is used as the related text as a learning result.
[0128] 23 shows the configuration of a training data generation system 970 according to an eleventh embodiment of the present invention, which generates training data for a hypothesis-generating neural network 986. In this example, the training data for the hypothesis-generating neural network 986 is a combination of input, related text, and output, similar to that generated by the previous training data generation systems. However, this embodiment differs from the other embodiments, particularly the tenth embodiment, in the configuration of the related text.
[0129] 23 , a training data generation system 970 according to the eleventh embodiment includes a training data generation unit 980 that generates training data for a hypothesis-generating neural network 986. The training data generated by the training data generation unit 980 is stored in a training data storage unit 982. A training unit 984 uses the training data stored in the training data storage unit 932 to train the hypothesis-generating neural network 986. As a result, the hypothesis-generating neural network 986 can be used in place of the hypothesis-generating neural network 122 shown in FIG. 1 .
[0130] 23 , a training data generation system 920 according to the eleventh embodiment includes a training data generation unit 930 for generating training data for a hypothesis-generating neural network 936. The training data generated by the training data generation unit 930 is stored in a training data storage unit 932. A learning unit 934 uses the training data stored in the training data storage unit 932 to train the hypothesis-generating neural network 936, thereby making it possible to use the hypothesis-generating neural network 936 in place of the hypothesis-generating neural network 122 shown in FIG.
[0131] The training data generation unit 980 includes a portion that combines the components of the training data generation unit 820 shown in Fig. 20 and the training data generation unit 860 shown in Fig. 21. More specifically, the training data generation unit 930 includes the record reading unit 830, record dividing unit 832, question generation unit 834, question answering unit 836, web text archive 262, response storage unit 838, similarity calculation unit 840, and related text selection unit 842, which are similar to those shown in Fig. 20. The training data generation unit 930 further includes the question generation unit 870, question answering unit 872, response storage unit 874, similarity calculation unit 876, and related text selection unit 878, which are similar to those shown in Fig. 21.
[0132] The training data generation unit 980 further includes a training data assembly unit 990 that receives as input the cause part output by the record division unit 832, combines the answer passage output by the related text selection unit 842 and the answer passage output by the related text selection unit 878 as related text, and outputs the conclusion part output by the record division unit 832, and stores these as training data in the training data storage unit 982.
[0133] In the eleventh embodiment, the process up to the selection of answer passages by the related text selection unit 842 and the related text selection unit 878 is the same as that in the eighth and ninth embodiments, respectively. The training data generation unit 980 differs from the tenth embodiment in that a training data assembly unit 990 connects the answer passage selected by the related text selection unit 842 and the answer passage selected by the related text selection unit 878, and incorporates them into the training data as related data. In this case, [SEP] is inserted between answer passages.
[0134] 24 shows an example of the structure of the training data output by the training data assembly unit 990. Referring to FIG. 24, this training data 1010 has the format "[CLS] + 'Develop a dialogue system' (input 1020) + [SEP] + first related text 1022 + [SEP] + second related text 1024 + [SEP] + 'Support mobility for elderly people' (output 1026)." The first related text 1022 and the second related text 1024 are the answer passages obtained from the cause part and the conclusion part, respectively, that have the highest similarity to the cause part and the conclusion part, respectively.
[0135] When actually generating hypotheses, for example, in a configuration such as that shown in FIG. 1, two related texts stored in the related text storage unit 116 may be selected, linked via [SEP], added to the input text 110, and input to the hypothesis generation neural network 986.
[0136] As a result, according to the eleventh embodiment, the eighth and ninth embodiments are combined in a manner different from that of the tenth embodiment, and learning data can be generated in which appropriate answer passages are combined as related texts as learning results.
[0137] 12. Similarity Calculation In the eighth, ninth, tenth, and eleventh embodiments of the present invention, the similarity between a cause part and an answer passage, and between a conclusion part and an answer passage, for example, is calculated. Hereinafter, the method of calculating this similarity will be described with reference to FIGS. 25 to 28.
[0138] 25, in this embodiment, a similarity calculation model 1070 that performs learning by deep learning is used to calculate the similarity. FIG. 25 shows the functional configuration of a learning system 1050 for learning the similarity calculation model 1070.
[0139] Referring to FIG. 25, the learning system 1050 includes a web text archive 262, a topic word extraction unit 1060 that extracts topic words from the web text archive 262, and a topic word storage unit 1062 for storing the topic words extracted by the topic word extraction unit 1060.
[0140] Here, the topic words are not particularly limited, but may refer to, for example, the N most frequently occurring nouns in the web text archive 262. However, predetermined stop words are not used as topic words.
[0141] The learning system 1050 further includes a similarity calculation model training data generation unit 1064 for generating training data for the similarity calculation model 1070 based on the web text stored in the web text archive 262 and the topic words stored in the topic word storage unit 1062. The function of the similarity calculation model 1070 in this embodiment is to output, for each sentence or passage, a feature vector used to calculate the similarity between the sentence or passage and another sentence or passage. The configuration of the similarity calculation model training data generation unit 1064 and the configuration of the feature vector required for this will be described later.
[0142] The learning system 1050 further includes a learning data storage unit 1066 for storing the learning data generated by the similarity calculation model learning data generation unit 1064, and a learning unit 1068 for learning the similarity calculation model 1070 using the learning data stored in the learning data storage unit 1066.
[0143] Fig. 26 schematically shows a learning form of similarity calculation model 1070 used in this embodiment. Referring to Fig. 26, for learning of similarity calculation model 1070, an input text and a feature vector calculated for the input text are used as training data.
[0144] The similarity calculation model 1070 includes a language model 1100 known as BERT (Bidirectional Encoder Representations from Transformers), and a vector output unit 1102 consisting of a combination of a linear layer and a softmax layer that receives as input an output corresponding to the first "CLS" among the outputs of the language model 1100. The BERT used as the language model 1100 is pre-trained and fine-tuned by a method described below.
[0145] The training data 1104 includes a combination of an input text with [CLS] and [SEP] added to the beginning and end, respectively, and a feature vector calculated in advance for the input text.
[0146] The feature vectors of the training data 1104 are generated as follows. One sentence for which a feature vector is to be generated is extracted as an input sentence from the web text archive 262 shown in FIG. 25 . Topic words that appear in three sentences, including one before and one after the one sentence, are identified. The number of these topic words is then defined as m. In this case, even if one topic word appears multiple times as a seed in the three sentences, the number of that topic word is considered to be one.
[0147] The feature vector used is a vector with the same number of elements as the number of topic words stored in the topic word storage unit 1062. For topic words that appear in the above three sentences, the value of the corresponding element is set to 1 / m, and for topic words that do not appear in the above three sentences, the value of the element is set to 0. The vector obtained in this way is the feature vector of the above input sentence (one sentence).
[0148] For each sentence contained in the web text archive 262, a feature vector can be automatically calculated in advance using the method described above.
[0149] 26 , in training (fine tuning) of the similarity calculation model 1070, an input text of the teacher data 1104 is input to the language model 1100. An output vector 1106 is obtained as an output of a vector output unit 1102 of the similarity calculation model 1070. In training, the parameters of the similarity calculation model 1070 are trained so as to minimize the total loss L calculated by the following equation between the feature vector of the teacher data 1104 and the output vector 1106.
[0150] In this formula, N is the number of elements in the feature vector (the number of topic words), and g i is the value of the i-th element of the feature vector of the training data, p i indicates the value of the i-th element of the output vector, respectively.
[0151] By performing such fine tuning, when a certain sentence is input, the similarity calculation model 1070 can predict topic words that appear in the three sentences before and after that sentence.
[0152] Figure 27 shows, in the form of a flowchart, a control structure of a program realizing similarity calculation model learning data generation unit 1064 shown in Figure 25. Referring to Figure 27, this program includes a step 1130 of executing an initial process, a step 1132 of executing a step 1134 for each text in web text archive 262 shown in Figure 25, and a step 1136 of executing a termination process in response to completion of step 1132 and terminating execution of this program.
[0153] Step 1134 includes step 1140 of performing step 1142 for each sentence in the text being processed.
[0154] Step 1142 includes step 1150, in which a feature vector is generated for the target sentence by the above-described method while referencing topic word storage unit 1062 shown in FIG. 25 and combining the target sentence with the feature vector calculated in step 1150, to generate a training data record; and step 1154, in which the training data record generated in step 1152 is stored in training data storage unit 1066 shown in FIG. 25 and execution of step 1142 is terminated.
[0155] By executing this program, learning data for the similarity calculation model 1070 can be generated.
[0156] A method for calculating the similarity between a certain sentence or passage and a certain answer passage using the thus trained similarity calculation model 1070 will be described below. Note that the following description will be given by way of example of calculating the similarity between one of the hypothesis passages (hypothesis output word strings) stored in the response storage unit 838 and the conclusion part of a text pair read out from the inter-sentence semantic relation DB 260, as shown in FIG. 20 .
[0157] 28 , a word string 1180 of the output (conclusion) is input to similarity calculation model 1070, and an output vector 1184 is obtained as the output of similarity calculation model 1070. Meanwhile, a word string 1182 of the target passage is input to similarity calculation model 1070, and an output vector 1186 is similarly obtained. Output vector 1184 and output vector 1186 are vectors with the same number of dimensions, and the cosine similarity between them can be calculated. The calculated cosine similarity is set as the similarity 1190 between the conclusion and the target passage. By having this cosine similarity calculation unit 1188 calculate the value of similarity 1190 for each target passage, the passage with the highest similarity can be identified.
[0158] In any of the eighth, ninth, tenth and eleventh embodiments, the similarity can be calculated using this similarity calculation model 1070.
[0159] 13. Implementation by Computer Fig. 29 is an external view of an example of a computer system that implements the above embodiment. Fig. 30 is a block diagram showing an example of the hardware configuration of the computer system shown in Fig. 29.
[0160] 29, this computer system 1250 includes a computer 1270 having a DVD (Digital Versatile Disc) drive 1302, and a keyboard 1274, a mouse 1276, and a monitor 1272 for interacting with a user, all of which are connected to the computer 1270. Of course, these are just one example of a configuration for when user interaction is required, and any general hardware and software that can be used for user interaction (e.g., a touch panel, voice input, or a general pointing device) can be used.
[0161] 30, computer 1270 includes, in addition to a DVD drive 1302, a CPU (Central Processing Unit) 1290, a GPU (Graphics Processing Unit) 1292, a bus 1310 connected to CPU 1290, GPU 1292, and DVD drive 1302, a ROM (Read-Only Memory) 1296 connected to bus 1310 and storing a boot-up program of computer 1270, etc., a RAM (Random Access Memory) 1298 connected to bus 1310 and storing instructions constituting a program, system programs, working data, etc., and an SSD (Solid State Drive) 1300 which is a non-volatile memory connected to bus 1310. SSD 1300 is used to store programs executed by CPU 1290 and GPU 1292, as well as data used by the programs executed by CPU 1290 and GPU 1292. Computer 1270 further includes a network I / F 1308 that provides connection to a network 1286 that enables communication with other terminals, and a USB (Universal Serial Bus) port 1306 to which USB memory 1284 can be attached / detached and that provides communication between USB memory 1284 and each unit within computer 1270.
[0162] The computer 1270 further includes an input / output I / F 1304 that is connected to a microphone 1282, a speaker 1280, a motion capture device (not shown), and a bus 1310, and that reads out audio signals, video signals, and text data generated by the CPU 1290 and stored in the RAM 1298 or the SSD 1300 according to instructions from the CPU 1290, converts the audio signals from the microphone 1282 to analog signals, amplifies the signals, and drives the speaker 1280; digitizes the analog audio signals from the microphone 1282 and stores them at any address in the RAM 1298 or the SSD 1300 specified by the CPU 1290; and receives motion capture signals from the motion capture device and stores them at an address specified by the CPU 1290.
[0163] In the above-described embodiment, the hypothesis generation systems 100, 510, 590, 730, and 770, the training data generation systems 200, 250, 440, 620, 680, 810, 850, 920, 970, and 1050, the programs for realizing the functions of each of their components, the neural network parameters, the neural network programs, and the like are all stored, for example, in the SSD 1300, RAM 1298, DVD 1278, or USB memory 1284 shown in Fig. 30 , or in a storage medium of an external device (not shown) connected via the network I / F 1308 and the network 1286. Typically, these data, parameters, and the like are written to the SSD 1300 from an external source, and loaded into the RAM 1298 when executed by the computer 1270.
[0164] Computer programs for operating this computer system to realize the functions of the above-described hypothesis generation systems 100, 510, 590, 730, and 770, training data generation systems 200, 250, 440, 620, 680, 810, 850, 920, 970, and 1050, and each of their components, are stored on a DVD 1278 inserted into a DVD drive 1302 and transferred from the DVD drive 1302 to the SSD 1300. Alternatively, these programs may be stored in a USB memory 1284, and the USB memory 1284 may be inserted into a USB port 1306 to transfer the programs to the SSD 1300. Alternatively, the programs may be transmitted to the computer 1270 via a network 1286 and stored in the SSD 1300.
[0165] At the time of execution, the program is loaded into RAM 1298. Because training and testing of a neural network involves a large amount of calculation, it is preferable to implement each part of the embodiment of the present invention as an object program consisting of native computer code rather than a scripting language, particularly the program portion that performs the numerical calculations.
[0166] The CPU 1290 reads a program from the RAM 1298 according to an address indicated by an internal register called a program counter (not shown), interprets the instructions, reads data required to execute the instructions from the RAM 1298, the SSD 1300, or another device according to the address specified by the instruction, and executes the processing specified by the instruction. The CPU 1290 stores the execution result data at an address specified by the program, such as in the RAM 1298, the SSD 1300, or a register within the CPU 1290. At this time, the value of the program counter is also updated by the program. The computer program may be loaded directly into the RAM 1298 from the DVD 1278, the USB memory 1284, or via a network. Note that some tasks (mainly numerical calculations) among the programs executed by the CPU 1290 are dispatched to the GPU 1292 according to instructions included in the program or according to the analysis results of the CPU 1290 when executing the instructions.
[0167] A program that cooperates with computer 1270 to realize the functions of each unit according to the above-described embodiment includes a plurality of instructions written and arranged to cause computer 1270 to operate to realize those functions. Some of the basic functions required to execute these instructions are provided by an operating system (OS) or third-party programs running on computer 1270, or by modules of various toolkits installed on computer 1270. Therefore, this program does not necessarily include all of the functions required to realize the system and method of this embodiment. The program need only include instructions to execute the operations of each of the above-described devices and their components by statically linking appropriate functions or functions of a "programming toolkit" in a controlled manner to achieve the desired results, or by dynamically linking to those functions during program execution. The method for operating computer 1270 in this manner is well known, and will not be repeated here.
[0168] The GPU 1292 is capable of parallel processing, and can execute a large amount of calculations involved in machine learning simultaneously in parallel or in a pipelined manner. For example, parallel calculation elements discovered in a program when the program is compiled or when the program is executed are dispatched from the CPU 1290 to the GPU 1292 as needed, and executed. The results are returned to the CPU 1290 directly or via a predetermined address in the RAM 1298, and assigned to a predetermined variable in the program.
[0169] The embodiments disclosed herein are merely examples, and the present invention is not limited to the above-described embodiments. The scope of the present invention is defined by the claims in the scope of the claims, taking into consideration the description of the detailed description of the invention, and includes all modifications within the meaning and scope equivalent to the wordings described therein.
[0170] 100, 510, 590, 730, 770 Hypothesis generation system 110 Input text 112 Keywords 114, 470, 490, 520, 570, 692 Related text creation unit 116, 572 Related text storage unit 122, 452, 524, 604, 782, 826, 866, 936, 986 Hypothesis generation neural network 126, 526, 606, 784 Hypothesis successive generation control unit 140, 220, 560, 834, 870 Question generation unit 144, 210 Large-scale corpus 146, 836, 872 Question answering unit 148, 342, 474, 492, 540, 1022, 1024 Related text 200, 250, 440, 620, 680, 810, 850, 920, 970 Learning data generation system 212 Question sentence + preceding context extraction unit 214, 264, 450, 630, 696, 820, 860, 930, 980 Learning data generation unit 260 Inter-sentence semantic relation DB 268, 824, 864, 934, 984, 1068 Learning unit 304 Inter-sentence semantic relation knowledge 370 Inter-sentence semantic relation type 1070 Similarity calculation model 1100 Language model 1188 Cosine similarity calculation unit
Claims
1. A hypothesis generation device comprising: a related text creation unit for receiving input of text and creating related text related to the text; and a hypothesis generation model that receives the text and the related text as input and has been trained in advance to generate hypotheses from the text.
2. A hypothesis generating device as described in claim 1, wherein the related text creation unit includes: a question generation unit that generates one or more questions based on the text; and a question answering unit that searches an existing text archive for passages containing answers to the one or more questions generated by the question generation unit and outputs them as the related text.
3. The hypothesis generation device according to claim 1, further comprising a hypothesis continuous generation unit which inputs the hypothesis generated by the hypothesis generation model to the related text creation unit in place of the input text, and generates a new hypothesis by the hypothesis generation model.
4. The hypothesis generation device of claim 1, further comprising: a first selector that selects either the input text or the hypothesis generated by the hypothesis generation model and inputs the selected hypothesis to the associated text creation section; and a second selector that selects either the input text or the hypothesis generated by the hypothesis generation model as an input to the hypothesis generation model, and inputs the selected hypothesis together with the associated text to the hypothesis generation model, thereby causing the hypothesis generation model to generate a new hypothesis.
5. The hypothesis generating device according to claim 1, further comprising an input selector for selecting either the input text or the related text generated by the related text creation section and inputting the selected text to the related text generation section.
6. A hypothesis generation method comprising: a step in which a computer receives input of text and creates related text related to the text; and a hypothesis generation step in which a computer receives the text and the related text as input, and generates a new hypothesis by inputting the input to a hypothesis generation model that has been trained to generate hypotheses from the text.
Citation Information
Patent Citations
Dialog system and computer program therefor
JP2018028752A
Semantic Relationship Extraction, Text Categorization and Hypothesis Generation
US20090192954A1
Methods and apparatus for formatting text for clinical fact extraction
US20120212337A1
Disambiguating concepts in natural language
US20180329885A1
