WO2020238985A1 - 模型训练方法、对话生成方法、装置、设备及存储介质 - Google Patents
模型训练方法、对话生成方法、装置、设备及存储介质 Download PDFInfo
- Publication number
- WO2020238985A1 WO2020238985A1 PCT/CN2020/092701 CN2020092701W WO2020238985A1 WO 2020238985 A1 WO2020238985 A1 WO 2020238985A1 CN 2020092701 W CN2020092701 W CN 2020092701W WO 2020238985 A1 WO2020238985 A1 WO 2020238985A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- question
- question sentence
- representation
- model
- generation model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/30—Semantic analysis
- G06F40/35—Discourse or dialogue representation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/332—Query formulation
- G06F16/3329—Natural language query formulation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
- G06F40/211—Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/044—Recurrent networks, e.g. Hopfield networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/044—Recurrent networks, e.g. Hopfield networks
- G06N3/0442—Recurrent networks, e.g. Hopfield networks characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
- G06N3/0455—Auto-encoder networks; Encoder-decoder networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/0475—Generative networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/09—Supervised learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/096—Transfer learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N5/00—Computing arrangements using knowledge-based models
- G06N5/04—Inference or reasoning models
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N5/00—Computing arrangements using knowledge-based models
- G06N5/04—Inference or reasoning models
- G06N5/041—Abduction
Definitions
- This application relates to the field of machine learning technology, and in particular to a dialogue generation model training method, dialogue generation method, device, equipment and computer storage medium.
- the task of generating open-domain dialogues refers to the fact that machines in the open field generate corresponding replies based on the questions of the dialogue. Due to its powerful functions and extensive application scenarios, it has recently received more and more attention and research.
- the open-domain dialogue generation task usually relies on the dialogue generation model to achieve, and in order to enable the dialogue generation model to generate more informative and more reasonable responses, other information can be integrated in the open-domain dialogue generation task to make the generated responses more Reasonable and more informative.
- This application provides a method for training a dialogue generation model, which trains the dialogue generation model by transferring the knowledge information in the knowledge base question answering model, and utilizes the high accuracy of the knowledge base question answering model to better integrate knowledge information, thereby improving dialogue generation accuracy.
- This application also provides a dialog generation method and corresponding devices, equipment, computer storage media, and computer program products.
- an embodiment of the present application provides a method for training a dialogue generation model, and the method includes:
- dialog data set Acquiring a dialog data set, where each dialog data as a training sample in the dialog data set includes a question sentence and a labeled reply corresponding to the question sentence;
- the coded representation of the question sentence and the knowledge information corresponding to the question sentence transferred and learned from the knowledge base question answering model are merged to obtain the predicted response corresponding to the question sentence;
- the model parameters of the dialogue generation model are updated based on the value of the loss function.
- An embodiment of the present application provides a method for training a dialogue generation model, and the method includes:
- the coded representation of the question sentence is obtained through the encoder in the pre-trained dialogue generation model, and the coded representation of the question sentence is merged with the question answering model from the knowledge base by the decoder in the dialogue generation model Transfer learning knowledge information to obtain the predicted response corresponding to the question output by the dialogue generation model;
- the predicted response is sent to the terminal, wherein the pre-trained dialogue generation model is trained by transferring knowledge information learned from the knowledge base question answering model, so as to realize that the dialogue generation model generates a sentence matching the question sentence Reply sentence.
- the embodiment of the present application also provides a method for training a dialogue generation model.
- the method is executed by a server.
- the server includes one or more processors and a memory, and one or more programs, wherein the one or More than one program is stored in the memory, the program may include one or more units each corresponding to a set of instructions, the one or more processors are configured to execute the instructions; the method includes:
- dialog data set Acquiring a dialog data set, where each dialog data as a training sample in the dialog data set includes a question sentence and a labeled reply corresponding to the question sentence;
- the coded representation of the question sentence and the knowledge information corresponding to the question sentence transferred and learned from the knowledge base question answering model are merged to obtain the predicted response corresponding to the question sentence;
- the model parameters of the dialogue generation model are updated based on the value of the loss function.
- the embodiment of the present application also provides a method for generating a dialog.
- the method is executed by a server.
- the server includes one or more processors, a memory, and one or more programs, wherein the one or more The program of is stored in a memory, the program may include one or more units each corresponding to a set of instructions, and the one or more processors are configured to execute instructions; the method includes:
- the predicted response is sent to the terminal, wherein the pre-trained dialogue generation model is trained by transferring knowledge information learned from the knowledge base question answering model, so as to realize that the dialogue generation model generates a sentence matching the question sentence Reply sentence.
- An embodiment of the present application provides a dialog generation model training device, the device includes:
- An acquiring module configured to acquire a dialog data set, each of the dialog data as a training sample in the dialog data set includes a question sentence and a labeled reply corresponding to the question sentence;
- the training module is configured to encode the question sentence in the dialogue data set through the encoder in the dialogue generation model to obtain the encoded representation of the question sentence;
- the training module is configured to use the decoder in the dialogue generation model to fuse the coded representation of the question sentence and the knowledge information corresponding to the question sentence transferred and learned from the knowledge base question answering model for the question sentence, Obtain the predicted response corresponding to the question;
- the training module is configured to determine the value of the loss function of the dialogue generation model based on the predicted response and the labeled response corresponding to the question sentence;
- the training module is configured to update the model parameters of the dialogue generation model based on the value of the loss function.
- An embodiment of the present application provides a dialog generating device, which includes:
- the receiving module is configured to receive the question to be answered sent by the terminal;
- a generation module configured to obtain the coded representation of the question through the encoder in the pre-trained dialogue generation model, and fuse the coded representation of the question and the subordinates to the question through the decoder in the dialogue generation model Transfer learned knowledge information in the knowledge base question answering model to obtain the predicted response corresponding to the question sentence output by the dialogue generation model;
- the sending module is configured to send the predictive reply to the terminal, wherein the pre-trained dialogue generation model is trained by transferring knowledge information learned from the knowledge base question answering model, so as to realize the generation and Reply sentence that matches the question sentence.
- An embodiment of the present application also provides a device, which includes a processor and a memory:
- the memory is configured to store a computer program
- the processor When the processor is configured to run the computer program, it executes the dialog generation model training method provided in the embodiment of the application or the dialog generation method provided in the embodiment of the application.
- An embodiment of the present application provides a computer-readable storage medium, the computer storage medium stores program code, and the program code is used to execute the dialog generation model training method provided in the foregoing embodiment of the present application, or, the embodiment of the present application The provided dialog generation method.
- the embodiment of the application provides a computer program product including instructions, which when run on a computer, causes the computer to execute the dialog generation model training method described in the embodiment of the application or the dialog generation method described in the embodiment of the application .
- the embodiment of the application Based on the dialog generation model trained by the above model training method, the embodiment of the application also provides a dialog generation method.
- the dialog generation model transfers the knowledge information in the knowledge base question answering model to the open domain dialog generation task through Using the high accuracy of the knowledge base question answering model enables the model to better integrate knowledge information, thereby improving the accuracy and rationality of dialogue generation, making it easier for users to obtain high-quality dialogue information, and reducing the impact of general responses on users.
- FIG. 1 is a scene architecture diagram of a method for training a dialogue generation model in an embodiment of the application
- FIG. 2 is a flowchart of a method for training a dialog generation model in an embodiment of the application
- FIG. 3 is a scene architecture diagram of a dialog generation method in an embodiment of the application.
- Fig. 4 is a flowchart of a dialog generating method in an embodiment of the application.
- FIG. 5 is a schematic structural diagram of a dialog generation model in an embodiment of this application.
- Fig. 6 is a flowchart of a dialog generating method in an embodiment of the application.
- FIG. 7 is a schematic diagram of an application scenario of a dialog generation method in an embodiment of the application.
- FIG. 8 is a schematic structural diagram of a dialog generation model training device in an embodiment of the application.
- FIG. 9 is a schematic structural diagram of a dialog generation model training device in an embodiment of the application.
- FIG. 10 is a schematic structural diagram of a dialog generation model training device in an embodiment of this application.
- FIG. 11 is a schematic structural diagram of a dialog generation model training device in an embodiment of this application.
- FIG. 12 is a schematic structural diagram of a dialog generating apparatus in an embodiment of the application.
- FIG. 13 is a schematic structural diagram of a dialog generating apparatus in an embodiment of the application.
- FIG. 14 is a schematic structural diagram of a dialog generating apparatus in an embodiment of the application.
- FIG. 15 is a schematic diagram of a structure of a device in an embodiment of the application.
- This application provides a method for training a dialogue generation model.
- the knowledge information for the question is migrated from the Knowledge Base Question Answering (KBQA) model. Because the knowledge base question answering model has good accuracy, the coding representation of the question is merged It has a good fusion effect with the knowledge information for the question.
- the dialogue generation model can output the predicted response to the question based on the fusion information. Based on the predicted response and the annotation response carried by the dialogue data in the dialogue data set, Determine the loss function, adjust the dialog generation model parameters based on the loss function to implement model training, improve training efficiency and accuracy, and enable the model to meet actual application requirements.
- the dialog generation model training method provided in this application can be applied to any processing device with data processing capability, and the processing device can be a terminal or a server.
- the terminal can be a desktop terminal, or a portable mobile terminal such as a smart phone or a tablet computer, or a vehicle-mounted terminal, or an augmented reality (AR) terminal or a virtual reality (VR) terminal.
- AR augmented reality
- VR virtual reality
- the processing equipment can exist independently or in the form of a cluster.
- the above-mentioned dialog generation model training method can be stored in a processing device in the form of a computer program, and the processing device implements the dialog generation model training method of this application by executing the application program.
- the computer program may be an independent application program, or may be a function module, plug-in, applet, etc. integrated on other programs.
- the scenario includes a server 10 and a sample library 20, wherein the sample library 20 stores a dialog data set, and the server 10 obtains a dialog data set from the sample library 20 Perform model training.
- the dialog data in the dialog data set includes a file and annotated replies corresponding to the question
- the server 10 generates the code in the dialog generation model based on the question in the dialog data set.
- the coded representation of the question sentence is obtained by the decoder, and the coded representation of the question sentence is merged with the knowledge information transferred from the knowledge base question answering model for the question sentence through the decoder in the dialogue generation model to obtain the dialogue Generate the predicted response corresponding to the question output by the model; then determine the loss function based on the predicted response and label response corresponding to the question, and adjust the dialog generation model parameters through the loss function until the loss function of the dialog generation model is at convergence.
- the method includes:
- the dialog data in the dialog data set includes question sentences and labeled replies corresponding to the question sentences.
- Each set of dialogue data in the dialogue data set is used as a training sample for training the dialogue generation model.
- the dialogue data set may be an existing data set, such as a reddit single-round dialogue data set, or it may be generated by the server crawling the question from the network and marking the corresponding reply to the question.
- S202 Perform encoding processing on the question sentence in the dialogue data set through the encoder in the dialogue generation model to obtain an encoded representation of the question sentence.
- the coded representation of the question sentence is obtained by the encoder in the constructed dialogue generation model, and the coded representation of the question sentence is combined with the decoder in the dialogue generation model.
- the predicted reply corresponding to the question sentence output by the dialogue generation model is obtained.
- the dialogue generation model is a network model based on an encoder-decoder structure.
- the dialogue generation model takes a question as an input and a reply to the question as an output.
- the server encodes the question sentence of the input model through an encoder to obtain the encoded expression of the question sentence, and the decoder merges the encoded expression of the question sentence with the knowledge information transferred and learned from the knowledge base question answering model for the question sentence , And decode the fused information to generate a predicted reply corresponding to the question sentence.
- the server may determine the word embedding representation of the question sentence based on the word embedding model through the constructed dialogue generation model, and then use the bidirectional long-term memory network (Bidirectional Long Short-Term Memory, BiLSTM) according to the word embedding representation. ) Encoding to obtain a hidden layer state representation, and use the hidden layer state representation as an encoding representation of the question sentence.
- BiLSTM Bidirectional Long Short-Term Memory
- the dialogue generation model is a sequence-to-sequence (Seq2Seq) framework model
- training the dialogue generation model is essentially a condition Probability P(Y
- the server is implemented in combination with the knowledge base question answering model when modeling P(Y
- the knowledge base question answering model is a question answering model based on the knowledge base.
- the knowledge base is also called the knowledge graph, which is a huge database with knowledge as the main unit and entities as the main carrier, containing the cognition of thousands of things and various facts.
- Knowledge in the knowledge base is generally presented in the form of triples, which are specifically represented as ⁇ head entity, relationship, tail entity>, where entities refer to people, places, or specific concepts, etc., and relationships refer to head entities and tail entities The logical relationship.
- the capital of China is Beijing, which can be represented by the following triplet: ⁇ China, capital, Beijing>.
- the server transfers and learns the knowledge information for the question sentence from the knowledge base question answering model.
- the server obtains the contextual attention vector of the question sentence, and inputs the contextual attention vector of the question sentence into the Multi-Layer Perception in the knowledge base question answering model In the network; the enhanced attention vector of the question sentence is obtained through the MLP, and the enhanced attention vector of the question sentence is used as the knowledge information transferred and learned from the knowledge base question answering model for the question sentence.
- the server fuses the coded representation of the question and the enhanced attention vector through the decoder in the dialogue generation model, and the fusion vector can be used to predict the word probability distribution through the classifier in the dialogue generation model such as softmax, thereby Obtain the predicted reply corresponding to the question output by the dialogue generation model.
- S204 Determine the value of the loss function of the dialogue generation model based on the predicted response and the labeled response corresponding to the question sentence.
- the loss function is used to characterize the degree of inconsistency between the predicted response and the labeled response. It can be understood that there are many types of loss functions, and the corresponding types of loss functions can be selected according to requirements in practical applications.
- the server may use a cross-entropy loss function for model training. In other words, the server can use the cross entropy of the predicted response word distribution and the labeled response word distribution as the loss function of the dialogue generation model, as follows:
- L is the loss function
- ⁇ represents the set of all parameters of the model
- D represents the training set containing the sequence pairs of ⁇ question (post)
- reply (response)> represents the length of the generated response
- x, y, and t respectively represent Question (post), reply (response) and decoding time step.
- the server determines the loss function according to the predicted response and the labeled response corresponding to the question, and then adjusts the dialog generation model parameters based on the loss function until the loss function of the dialog generation model is in a convergent state. In this way, dialog generation is realized Model training.
- the embodiment of the present application provides a method for training a dialogue generation model.
- This method transfers the knowledge information for question sentences from the knowledge base question answering model when training the dialogue generation model. Because the knowledge base question answering model is better Therefore, it has a good fusion effect when fusing the coded representation of the question and the knowledge information for the question.
- the dialogue generation model can output the predicted response to the question based on the fusion information.
- the loss function can be determined based on the predicted response and the labeled response carried by the dialog data in the dialog data set, and the dialog generation model parameters are adjusted based on the loss function to implement model training, which improves training efficiency and accuracy, and enables the model to meet actual application requirements.
- the server can also use transfer learning to transfer the sentence modeling representation for the question sentence from the knowledge base question answering model, and the coded representation obtained by encoding the question sentence with the encoder In combination, this can improve the accuracy of the coding representation, thereby improving the accuracy and rationality of the response generation of the dialogue generation model.
- the server will obtain the coding representation of the question through the encoder in the dialogue generation model.
- the server will also input the question into the knowledge base question and answer model , Obtain the coded representation output by the encoder in the knowledge base question answering model as the second coded representation of the question sentence, and then splice the first coded representation of the question sentence and the second coded representation of the question sentence , The spliced coded representation is used as the comprehensive coded representation of the question.
- the server uses the decoder in the dialogue generation model to fuse the comprehensive coded representation of the question with the question answer from the knowledge base. The knowledge information of transfer learning in the model is decoded.
- the server can also introduce a response to guide attention mechanism to generate the coded representation of the question.
- the response guiding attention mechanism refers to retrieving similar question sentences corresponding to the question sentence, taking the response corresponding to the similar question sentence as the similar candidate response of the question sentence, based on the word embedding representation and the first coding representation of the similar candidate response Determine mutual attention as the third coded representation of the question.
- the server may concatenate the first coded representation of the question sentence and the third coded representation of the question sentence, and use the concatenated coded representation as a comprehensive coded representation of the question sentence through the dialogue generation model
- the decoder integrates the comprehensive coded representation of the question sentence and decodes the knowledge information transferred and learned from the knowledge base question answering model for the question sentence.
- the server may also splice the first encoding representation of the question sentence, the second encoding representation of the question sentence, and the third encoding representation of the question sentence, and use the spliced encoding representation as the The integrated coding representation of the question sentence is then combined with the integrated coding representation of the question sentence and the knowledge information transferred and learned from the knowledge base question answering model for the question sentence through the decoder in the dialogue generation model.
- the knowledge base question answering model in the embodiment shown in FIG. 2 may be pre-built.
- This application also provides an implementation method for constructing a question and answer model of a knowledge base.
- the server constructs an end-to-end structured neural network model, and then trains the neural network model based on a general data set and a common sense knowledge base, where the general data set can be Simple Questions, and the common sense knowledge base can be It is freebase-FB2M.
- the neural network model parameters are adjusted through the hinge loss function Hinge loss until the loss function of the neural network model is converging, and the neural network model in the convergent state is used as the knowledge base question answering model .
- Hinge loss in this embodiment of the application is:
- q represents the question
- G represents the set of candidate knowledge answers
- G + represents the set of positive examples
- G - represents the set of negative examples
- S represents the correlation degree between q and the set of positive or negative examples in G
- ⁇ is a hyperparameter.
- the application provides a specific implementation of the dialog generation model training method for the embodiments of the application. Based on the dialog generation model trained in the foregoing implementation, the application also provides a dialog generation method, which will be described below in conjunction with specific embodiments.
- dialog generation method provided in this application can be applied to a server, and the dialog generation method is stored in the server in the form of a computer program, and the server implements the dialog generation method of this application by executing the computer program.
- the server 10 receives the question to be answered sent by the terminal, and obtains it through the encoder in the pre-trained dialog generation model
- the coded representation of the question sentence is obtained by fusing the coded representation of the question sentence and the knowledge information transferred and learned from the knowledge base question answering model for the question sentence by the decoder in the dialogue generation model to obtain the dialogue generation model
- the predicted response corresponding to the output question sentence then, the server 10 sends the predicted response to the terminal 20, instructing the terminal 20 to display the predicted response, so as to realize intelligent interaction with the user.
- the method includes:
- the display interface of the terminal carries input controls and/or selection controls.
- the user can input a question through the input control, or select a question through the selection control, and the terminal responds to the user's input operation or selection operation to the server Send a question, which is the question to be answered.
- the user when inputting a question sentence or selecting a question sentence, the user can input or select one question sentence or multiple question sentences, and the number of question sentences does not affect the specific implementation of the application.
- S402 Obtain the coded representation of the question sentence through the encoder in the pre-trained dialogue generation model, and merge the coded representation of the question sentence with the question answer from the knowledge base through the decoder in the dialogue generation model
- the knowledge information of transfer learning in the model obtains the predicted reply corresponding to the question output by the dialogue generation model.
- the pre-trained dialogue generation model is trained by transferring learned knowledge information from the knowledge base question answering model, so as to realize the generation of reply sentences matching the question sentences through the dialogue generation model.
- the server has a built-in dialogue generation model, and the server encodes the question sentence using the encoder of the dialogue generation model to obtain the encoded representation of the question sentence, and then uses the decoder of the dialogue generation model to fuse the question.
- the coded representation of the sentence and the knowledge information transferred and learned from the knowledge base question answering model for the question sentence are classified by using the classifier of the dialogue generation model to classify the decoded information, thereby obtaining the question output by the dialogue generation model The predictive response corresponding to the sentence.
- this application provides multiple implementation ways to obtain the encoding representation of the question sentence, which will be described separately below.
- the first implementation manner is to generate a first coded representation using the encoder coding of the dialogue generation model, and use the first coded representation as the coded representation of the question sentence.
- the server may determine the word embedding representation of the question sentence based on the word embedding model through the constructed dialogue generation model, and obtain the hidden layer state representation through BiLSTM coding according to the word embedding representation, and express the hidden layer state As the first coded representation of the question sentence, the coded representation of the question sentence is thus obtained.
- the second implementation manner is that the server inputs the question sentence into the knowledge base question answering model, and obtains the encoding representation output by the encoder in the knowledge base question answering model as the second encoding representation of the question sentence.
- the coding representation is the sentence modeling representation for the question sentence obtained by migration learning from KBQA, the first coding representation of the question sentence and the second coding representation of the question sentence are spliced, and the spliced coding representation is used as the whole The comprehensive coding representation of the interrogative sentence.
- a third implementation manner is that the server determines the reply corresponding to the similar question of the question as a similar candidate reply, and determines mutual attention based on the word embedding representation of the similar candidate reply and the first encoding representation of the question.
- the third coded representation of the question then the first coded representation of the question and the third coded representation of the question are spliced, and the spliced coded representation is used as the comprehensive coded representation of the question .
- the fourth implementation manner is to concatenate the first coded representation, the second coded representation and the third coded representation of the question sentence, and use the concatenated coded representation as the comprehensive coded representation of the question sentence .
- the server introduces the knowledge information for the question sentence obtained by migration learning from the knowledge base question answering model for fusion, which has a better fusion effect.
- the server obtains the context attention vector of the question sentence, inputs the context attention vector of the question sentence into the MLP network in the knowledge base question answering model, and obtains it through the MLP network
- the enhanced attention vector of the question sentence is used as the knowledge information transferred and learned from the knowledge base question answering model for the question sentence.
- the server fuses the coded representation of the question sentence and the knowledge information transferred and learned from the knowledge base question answering model for the question sentence through the decoder in the dialogue generation model to obtain the question sentence output by the dialogue generation model The corresponding predicted response.
- the enhanced attention vector of the question sentence is obtained based on the MLP network
- it is implemented in the following manner: obtain the context attention vector of the MLP network based on the question sentence and obtain each word from the vocabulary of the knowledge base
- the knowledge information obtained by respectively migration is determined according to the contextual attention vector and the entity embedded representation of each word in the knowledge base vocabulary to determine the enhanced attention vector of the question sentence.
- the server obtains the hidden layer state representation of the decoder in the dialog generation model, and then inputs the hidden layer state representation of the decoder in the dialog generation model and the above-mentioned enhanced attention vector into the classification layer of the dialog generation model as
- the softmax layer generates a predicted reply corresponding to the question sentence according to the predicted word distribution output by the classification layer.
- obtaining the hidden layer state representation of the decoder in the dialogue generation model is implemented in the embodiment of this application in the following manner: the hidden state representation of the encoder in the dialogue generation model for the last word in the question sentence is used as the The initial state of the decoder in the dialogue generation model and the preset symbol as the initial symbol (start of sentence, SOS), according to the previous time step state of the decoder in the dialogue generation model and the symbol generated at the previous time step
- the word embedding representation and the attention vector generated by the current time step of the encoder in the dialogue generation model are used as the input of the decoder in the dialogue generation model to obtain the hidden layer state of the decoder in the dialogue generation model at the current time step Said.
- the initial state can be used as the state of the previous time step at this time, and there is no generated word of the first time step when decoding the first time step.
- the encoding representation of the question sentence fused by the decoder is the encoding representation obtained in the foregoing encoding process. That is, when the first implementation method is used for encoding, the decoder merges the first encoding representation, and when the second, third, or fourth implementation method is used, the decoder merges with splicing. The resulting comprehensive coded representation.
- the embodiment of this application provides a dialog generation method, which is implemented based on a dialog generation model, which transfers the knowledge information in the knowledge base question answering model to the open domain dialog generation task by using
- the high accuracy of the knowledge base question answering model enables the model to better integrate knowledge information, thereby improving the accuracy and rationality of dialogue generation.
- the present application also provides a more specific embodiment of the dialog generation method, which will be described below in conjunction with the structure of the dialog generation model.
- dialog generation model is mainly composed of two modules: Knowledge Base Questions and Answers (KBQA) module and dialog Generate modules.
- KBQA Knowledge Base Questions and Answers
- the server first determines the embedded representation of the question Q and the candidate knowledge answer K.
- BiLSTM is used to encode the embedded representation, and then spliced to obtain the encoding representation of the question Q.
- the candidate knowledge answer K pass The coding layer coding obtains the coding representation of the candidate knowledge answer, and the coding representation based on the question Q and the candidate knowledge answer K calculates the semantic similarity.
- MLP can screen the best candidate answer based on the semantic similarity matching result as the answer to the question Q A.
- the dialogue generation module determine the embedded representation of the question, and then use BiLSTM to encode the embedded representation, and then splice it to get the first encoding representation of the question.
- transfer learning from KBQA to obtain the modeling representation of the question.
- the representation and the third encoding representation are spliced to obtain a comprehensive encoding representation.
- the decoder in the dialogue generation module fuses the comprehensive encoding representation and the knowledge information for the question acquired from the MLP of KBQA based on the dialog generation module to generate a reply Y .
- the training process of the dialogue generation model includes two parts. Firstly, KBQA is pre-trained, as shown in S601 and S602 in Fig. 6, and then the dialogue generation model is trained based on the pre-trained KBQA, as shown in S603 and S604 in Fig. 6.
- the method includes:
- the server For the general data set, the server respectively encodes the question and the candidate knowledge answer corresponding to the question, to obtain the coding representation of the question and the coding representation of the candidate knowledge answer.
- a general data set such as Simple Questions includes multiple sets of question and answer data, and each set of question and answer data includes a question Q and a candidate knowledge answer set G corresponding to the question Q, where the question Q corresponds to the candidate knowledge answer set can be divided into a set of positive examples and negative examples set of G + G -, refers to a collection of positive examples of elements as a set of correct answers, a negative example collection is a set of elements for the wrong answers, during training KBQA, for each question Q ,
- the set of positive examples are the correct labeled answers, and the set of negative examples are 20 incorrect answers randomly sampled in the common sense knowledge base freebase-FB2M.
- the candidate knowledge answer set G includes at least one positive example, and the server separately encodes the question and the candidate knowledge answer for model training.
- the server When coding the question, the server encodes the question Q from the word level and the dependency level respectively, and then superimposes the two representations obtained from the word level and the dependency level to obtain the coding representation of the question Q.
- the word-level coding specifically uses pre-trained Global Vectors for Word Representation (GloVe) to obtain the word embedding representation for question Q, then uses BiLSTM to encode the word embedding representation, and then encodes the representation obtained through BiLSTM Concatenating to get the word level representation of question Q.
- GloVe Global Vectors for Word Representation
- BiLSTM BiLSTM Concatenating
- Is the word embedding representation of the i-th word in question Q Is the coded representation of question Q at the word level after reverse LSTM, It is the coded representation of question Q at the word level through forward LSTM.
- the candidate knowledge answers can be represented by triples.
- the server can encode the candidate knowledge answers from word level and knowledge level, and then combine the word level and dependency The two representations obtained by the level are superimposed to obtain the coding representation of the candidate knowledge answer.
- the knowledge triples are regarded as a combination of single words, given a word sequence Use pre-trained GloVe to convert each word into a corresponding word embedding representation.
- the word embedding representation is represented by a vector, and then the vector of n words is averaged as the word-level embedding representation p of the knowledge triple (w) , which is the embedded representation of the candidate knowledge answer.
- the knowledge triples are regarded as a whole. Given the knowledge triples, the knowledge embedding representation method automatically learned by the neural network obtains the knowledge level embedding representation p (id) .
- S602 Calculate the semantic matching similarity between the question and the candidate knowledge answer through the encoding representation, determine the best answer according to the semantic matching similarity, determine the loss function based on the best answer, and adjust the nerve based on the loss function The network model parameters until the loss function of the neural network model is in convergence.
- the server uses S-MART as the entity linking tool. Get the link score S ent of all entities in the candidate knowledge answer set for each question Q, and input the result of entity linking, namely S ent , the question and the representation of the candidate knowledge answer as features into an MLP network, and the MLP network outputs question Q and candidates.
- S ent the link score of all entities in the candidate knowledge answer set for each question Q
- S ent the result of entity linking
- the question and the representation of the candidate knowledge answer as features into an MLP network
- the MLP network outputs question Q and candidates
- the degree of relevance of each candidate knowledge answer in the knowledge answer set G, the degree of relevance S(q (i) ,p (i) ) can be used as the semantic matching similarity:
- the server can determine the current loss function based on the best answer. As shown in the above formula (2), the server adjusts the neural network model parameters based on the loss function Hinge loss, which can maximize the set of positive examples and negative For the distance between the example sets, when the loss function Hinge loss of the model is converging, the server can use the converged neural network model as the KBQA model for subsequent dialogue generation model training.
- the server uses the encoder of the dialogue generation model itself to encode the question sentence to obtain the first coded representation, learns from the pre-trained KBQA migration and learns the second coded representation for the question, and obtains it through the response guide attention mechanism
- the third coded representation of the question sentence the first coded representation, the second coded representation and the third coded representation are spliced to obtain a comprehensive coded representation.
- the reddit data set includes dialogue data
- each set of dialogue data includes question sentences and labeled responses corresponding to the question sentences.
- the word embedding representation e(x t ) of each word x t is obtained based on GloVe conversion
- the hidden layer state is obtained by BiLSTM coding Representation, as the first encoding representation, as follows:
- the server also uses the BiLSTM that encodes the question Q in the pre-trained KBQA to re-encode the question sentence to obtain the question sentence representation after transfer learning, that is, the second coding representation, as shown below:
- this application also proposes a response guidance mechanism.
- the server uses a retrieval tool, such as Lucene, to retrieve the k questions that are most similar to the question, and the corresponding k Reply as a candidate reply, calculate the embedding representation e(Y i ) of the i-th candidate reply regarding the mutual attention of the hidden layer state representation of the current question:
- f is a non-linear activation function.
- it can adopt a tanh function.
- the k hidden layer state representations are weighted and averaged to obtain the final hidden layer state representation of the mechanism of replying to the guided attention example, that is, the third coded representation, as shown below:
- S604 Use the decoder of the dialogue generation model to fuse the comprehensive coded representation of the question and the knowledge information obtained from the transfer learning from the KBQA model to obtain the predicted response, determine the loss function based on the predicted response and the annotation response, and adjust the dialogue generation through the loss function Model parameters until the loss function of the dialogue generation model is in convergence.
- the decoder selects LSTM, and the hidden layer state calculation process of the decoder is:
- st-1 is the hidden layer state representation of the decoder when the decoding time step is t-1
- e(y t-1 ) is the word embedding representation of the t-1th generated word.
- c t is the context attention vector when the decoding time step is t, and the calculation process is:
- e tk is the similarity between the hidden layer state of the decoder at t-1 and the hidden layer state of the encoder at k, and it is a function of st-1 and h k , where V b , W b And U b are the parameters to be learned in the functional relationship, tanh is a hyperbolic function; in the same way, e tj is the degree of similarity between the hidden layer state of the decoder at t-1 and the hidden layer state of the encoder at time j, j
- the value is a positive integer from 1 to T x (including the endpoints), where T x refers to the number of words when the question is converted into a word sequence; a tk is the t-th time of the decoder at the k-th time of the encoder Attention weight, which can be calculated based on the above similarity.
- the server in order to transfer knowledge information from the KBQA model, the server sends the contextual attention vector to the MLP network in the previously pre-trained KBQA model:
- r k is the knowledge information obtained by transfer learning, which is the output result of sending the context attention vector to the MLP network described in the pre-trained KBQA
- e k is the entity embedding representation in the knowledge base
- is the vocabulary size of the knowledge base.
- the hidden layer state of the decoder is represented by st and the attention vector is enhanced Send it to the softmax layer to generate the predicted word distribution to generate the final dialogue response:
- W 0 , W p and b 0 are the parameters to be learned.
- dialog generation method can be applied to multiple scenarios of Artificial Intelligence (AI), for example, applied to chat robots, intelligent customer service assistants, automatic news reviews, and so on.
- AI Artificial Intelligence
- the scenario includes a server 10 and a terminal 20.
- the server 10 is a shopping platform server.
- the server 10 has a built-in dialog generation model.
- the server 10 A reply corresponding to the question asked by the user can be generated based on the dialogue generation model, and the reply can be sent to the terminal 20, thereby realizing intelligent customer service.
- the user enters a question 22 through the customer service interface 21 provided by the terminal 20, that is, "Is the number of pants correct?"
- the terminal 20 receives the question entered by the user and determines the question as And send the question to be answered to the server 10 to request a corresponding reply.
- the server 10 receives the question to be answered sent by the terminal 20, inputs the sentence into the dialogue generation model, and encodes the sentence to be answered by the encoder in the dialogue generation model to obtain the coded representation of the question to be answered.
- the encoding representation is specifically a synthesis of the first encoding representation obtained by the encoder encoding of the dialogue generation model itself, the second encoding representation obtained from the transfer learning from the knowledge base question and answer model, and the third encoding representation determined based on the response guidance attention mechanism.
- the encoding means that the server 10 also inputs the context attention vector of the question sentence into the MLP network in the knowledge base question answering model, obtains the enhanced attention vector of the question sentence through the MLP network, and transfers it As the knowledge information transferred and learned from the knowledge base question answering model for the question sentence.
- the server 10 fuses the comprehensive coding representation of the question to be answered and the knowledge information learned from the knowledge base question answering model through the decoder in the dialogue generation model, and then sends the hidden layer state representation and the enhanced attention vector of the decoder Enter the softmax layer to generate the predicted word distribution to generate the final dialogue reply, that is, the predicted reply 23.
- the server 10 sends the predicted reply 23 to the terminal 20, and the terminal 20 displays the predicted reply 23 for the user to view.
- the device 800 includes:
- the obtaining module 810 is configured to obtain a dialogue data set, and the dialogue data in the dialogue data set includes a question sentence and annotated reply corresponding to the question sentence;
- the training module 820 is configured to obtain the coded representation of the question through the encoder in the constructed dialogue generation model based on the question sentence in the dialogue data set, and fuse the said question sentence through the decoder in the dialogue generation model.
- the coded representation of the question sentence and the knowledge information transferred and learned from the knowledge base question and answer model for the question sentence, the predicted response corresponding to the question sentence output by the dialogue generation model is obtained, based on the predicted response and the corresponding question sentence
- the label response determines the loss function, and the dialog generation model parameters are adjusted through the loss function until the loss function of the dialog generation model is in convergence.
- FIG. 9 is a schematic structural diagram of the dialog generation model training apparatus provided by an embodiment of the present application. Based on the structure shown in FIG. 8, the apparatus 800 further includes:
- the first migration module 830 is configured to obtain the context attention vector of the question sentence, input the context attention vector of the question sentence into the multi-layer perceptron network in the knowledge base question answering model, and pass the multi-layer The perceptron network obtains the enhanced attention vector of the question sentence, and uses the enhanced attention vector of the question sentence as the knowledge information transferred and learned from the knowledge base question answering model for the question sentence.
- FIG. 10 is a schematic structural diagram of a dialog generation model training device provided by an embodiment of this application. Based on the structure shown in FIG. 8, the device 800 further includes:
- the second migration module 840 is configured to input the question sentence into the knowledge base question answering model, and obtain the coded representation output by the encoder in the knowledge base question answering model as the second coded representation of the question sentence;
- the determining module 850 is configured to determine a reply corresponding to a similar question of the question as a similar candidate reply, and determine mutual attention based on the word embedding representation of the similar candidate reply and the first encoding representation of the question, as The third coded representation of the interrogative sentence;
- the training module 820 is also configured as:
- the integrated coding representation of the question sentence and the knowledge information transferred and learned from the knowledge base question answering model for the question sentence are merged by the decoder in the dialogue generation model.
- FIG. 11 is a schematic structural diagram of the dialog generation model training apparatus provided by an embodiment of the present application. Based on the structure shown in FIG. 8, the apparatus 800 further includes:
- the knowledge base question answering model building module 860 is configured to construct an end-to-end structured neural network model, train the neural network model based on a general data set and a common sense knowledge base, and adjust the neural network model parameters through the hinge loss function during the training process Until the loss function of the neural network model is converging, the neural network model in the convergent state is used as the knowledge base question answering model.
- FIG. 11 may also include the above-mentioned knowledge base question answering model building module based on FIG. 9 or FIG. 10.
- the training module 820 when the training module 820 obtains the coded representation of the question sentence through the encoder in the constructed dialogue generation model, it is further configured to:
- the constructed dialogue generation model determines the word embedding representation of the question sentence based on the word embedding model.
- the hidden layer state representation is obtained through two-way long and short-term memory network coding, and the hidden layer state representation is used as the question.
- the coded representation of the sentence is used as the question.
- the apparatus 1200 includes:
- the receiving module 1210 is configured to receive the question to be answered sent by the terminal;
- the generating module 1220 is configured to obtain the coded representation of the question through the encoder in the pre-trained dialogue generation model, and to fuse the coded representation of the question with the coded representation of the question through the decoder in the dialogue generation model. Transfer the learned knowledge information from the knowledge base question answering model, and obtain the predicted response corresponding to the question sentence output by the dialogue generation model;
- the sending module 1230 is configured to send the predicted reply to the terminal.
- FIG. 13 is a schematic structural diagram of a dialog generating apparatus provided in an embodiment of this application. Based on the structure shown in FIG. 12, the apparatus 1200 further includes:
- the first migration module 1240 is configured to obtain the context attention vector of the question sentence, input the context attention vector of the question sentence into the multi-layer perceptron network in the knowledge base question answering model, and pass the multi-layer The perceptron network obtains the enhanced attention vector of the question sentence, and uses the enhanced attention vector of the question sentence as the knowledge information transferred and learned from the knowledge base question answering model for the question sentence.
- the first migration module 1240 is further configured to obtain the enhanced attention vector of the question through the multilayer perceptron network:
- the enhanced attention vector of the question sentence is determined.
- the first migration module 1240 is further configured to: when obtaining the predicted response corresponding to the question output by the dialogue generation model:
- the predicted reply corresponding to the question sentence is generated according to the predicted word distribution output by the classification layer.
- the first migration module 1240 when the first migration module 1240 obtains the hidden layer state representation of the decoder in the dialog generation model, it is further configured to:
- the input of the decoder in the generation model is used to obtain the hidden layer state representation of the decoder in the dialog generation model at the current time step.
- FIG. 14 is a schematic structural diagram of a dialog generating apparatus provided in an embodiment of this application. Based on the structure shown in FIG. 12, the apparatus 1200 further includes:
- the second migration module 1250 is configured to input the question sentence into the knowledge base question answering model, and obtain the coding representation output by the encoder in the knowledge base question answering model as the second coding representation of the question sentence;
- the determining module 1260 is configured to determine a reply corresponding to a similar question of the question as a similar candidate reply, and determine mutual attention based on the word embedding representation of the similar candidate reply and the first encoding representation of the question, as The third coded representation of the question sentence;
- the generating module 1220 is also configured to:
- the integrated coding representation of the question sentence and the knowledge information transferred and learned from the knowledge base question answering model for the question sentence are merged by the decoder in the dialogue generation model.
- the embodiment of this application also provides a device for dialogue generation model training and a device for dialogue generation.
- a device for dialogue generation model training and a device for dialogue generation.
- the following is a description of the above-mentioned methods provided in the embodiments of this application from the perspective of hardware materialization. The equipment is introduced.
- FIG. 15 is a schematic structural diagram of a device provided by an embodiment of the present application.
- the device may be a server.
- the server 1500 may have relatively large differences due to different configurations or performance, and may include one or more central processing units (central processing units). units, CPU) 1522 (for example, one or more processors) and memory 1532, and one or more storage media 1530 (for example, one or more storage devices with a large amount of data) storing application programs 1542 or data 1544.
- the memory 1532 and the storage medium 1530 may be short-term storage or permanent storage.
- the program stored in the storage medium 1530 may include one or more modules (not shown in the figure), and each module may include a series of command operations on the server.
- the central processing unit 1522 may be configured to communicate with the storage medium 1530, and execute a series of instruction operations in the storage medium 1530 on the server 1500.
- the server 1500 may also include one or more power supplies 1526, one or more wired or wireless network interfaces 1550, one or more input and output interfaces 1558, and/or one or more operating systems 1541, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
- operating systems 1541 such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
- the steps performed by the server in the above embodiment may be based on the server structure shown in FIG. 15.
- the CPU 1522 is configured to perform the following steps:
- the dialogue data in the dialogue data set including a question sentence and annotated replies corresponding to the question sentence;
- the coded representation of the question sentence is obtained by the encoder in the constructed dialogue generation model, and the coded representation of the question sentence is combined with the decoder in the dialogue generation model.
- the knowledge information transferred and learned from the question answering model of the knowledge base for the question sentence obtain the predicted reply corresponding to the question sentence output by the dialogue generation model;
- the loss function is determined based on the predicted response and the label response corresponding to the question sentence, and the dialog generation model parameters are adjusted through the loss function until the loss function of the dialog generation model is in convergence.
- the CPU 1522 is further configured to execute the dialog generation model training method provided by the present application.
- This application also provides another device, which is used to generate a dialog, and has the same structure as that of FIG. 15.
- the CPU 1522 is configured to perform the following steps:
- the coded representation of the question sentence is obtained through the encoder in the pre-trained dialogue generation model, and the coded representation of the question sentence is merged with the question answering model from the knowledge base by the decoder in the dialogue generation model Transfer learning knowledge information to obtain the predicted response corresponding to the question output by the dialogue generation model;
- the CPU 1522 is further configured to execute the steps of any implementation manner of the dialog generation method provided in the present application.
- the embodiments of the present application also provide a computer-readable storage medium storing a computer program, and the computer program is used to execute any one of the dialog generation model training method or the dialog generation method described in the foregoing embodiments.
- the embodiments of the present application also provide a computer program product including instructions, which when run on a computer, cause the computer to execute any one of the dialog generation model training method or the dialog generation method described in the foregoing embodiments.
- the disclosed system, device, and method may be implemented in other ways.
- the device embodiments described above are merely illustrative.
- the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- each unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
- the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
- the technical solution of this application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (English full name: Read-Only Memory, English abbreviation: ROM), random access memory (English full name: Random Access Memory, English abbreviation: RAM), magnetic Various media that can store program codes, such as discs or optical discs.
- the model when training the model, firstly obtain each dialog data in the dialog data set as a training sample, including the question sentence and the labeled reply corresponding to the question sentence, and then based on the said training sample Question, the coded representation of the question is obtained by the encoder in the dialogue generation model, and then the coded representation of the question is merged with the knowledge base question answering model for the question by the decoder in the dialogue generation model Because the knowledge information in the knowledge base question and answer model has high accuracy, the prediction response corresponding to the question output by the dialogue generation model fused with the knowledge information has high accuracy.
- the loss function determined by the predicted response and the labeled response adjusts the dialog generation model parameters to implement model training, which not only improves the training efficiency of the model, but also improves the accuracy of the model.
- the dialogue generation model trained based on the above-mentioned model training method.
- the dialogue generation model transfers the knowledge information in the knowledge base question answering model to the open domain dialogue generation task, by using the high accuracy of the knowledge base question answering model , So that the model can better integrate knowledge information, thereby improving the accuracy and rationality of dialogue generation, making it easier for users to obtain high-quality dialogue information, and reducing the impact of general responses on users.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computational Linguistics (AREA)
- Mathematical Physics (AREA)
- General Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- Evolutionary Computation (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Molecular Biology (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Databases & Information Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Machine Translation (AREA)
Abstract
Description
Claims (22)
- 一种对话生成模型训练方法,所述方法由服务器执行,所述服务器包括有一个或多个处理器以及存储器,以及一个或一个以上的程序,其中,所述一个或一个以上的程序存储于存储器中,所述程序可以包括一个或一个以上的每一个对应于一组指令的单元,所述一个或多个处理器被配置为执行指令;包括:获取对话数据集,所述对话数据集中作为训练样本的每一对话数据包括问句和所述问句对应的标注回复;通过对话生成模型中的编码器,对所述对话数据集中的所述问句进行编码处理,得到所述问句的编码表示;通过所述对话生成模型中的解码器,融合所述问句的编码表示和从知识库问答模型中迁移学习的对应所述问句的知识信息,得到所述问句对应的预测回复;基于所述问句对应的预测回复和标注回复,确定所述对话生成模型的损失函数的值;基于所述损失函数的值更新所述对话生成模型的模型参数。
- 根据权利要求1所述的方法,其中,针对所述问句从知识库问答模型中迁移学习得到知识信息,包括:获取所述问句的上下文注意力向量,将所述问句的上下文注意力向量输入所述知识库问答模型中的多层感知机网络中;通过所述多层感知机网络获得所述问句的增强注意力向量,确定所述问句的增强注意力向量为从知识库问答模型中迁移学习的知识信息。
- 根据权利要求1所述的方法,其中,所述通过对话生成模型中的编码器,对所述对话数据集中的所述问句进行编码处理,得到所述问句的编码表示,包括:基于词嵌入模型,通过对话生成模型中的编码器确定所述问句的词嵌入表示;通过所述编码器的双向长短期记忆网络,对所述词嵌入表示编码得到隐藏层状态表示,将所述隐藏层状态表示作为所述问句的编码表示。
- 根据权利要求3所述的方法,其中,所述方法还包括:将通过所述对话生成模型中的编码器得到的所述问句的编码表示,作为所述问句的第一编码表示,将所述问句输入所述知识库问答模型,通过所述知识库问答模型中的编码器对所述问句进行编码,得到所述问句的第二编码表示;将所述第一编码表示与所述第二编码表示进行拼接,得到所述问句的综合编码表示。
- 根据权利要求3所述的方法,其中,所述方法还包括:将通过所述对话生成模型中的编码器得到的所述问句的编码表示,作为所述问句的第一编码表示,确定所述问句的相似问句对应的回复作为相似候选回复,根据所述相似候选回复的词嵌入表示和所述问句的第一编码表示确定互注意力,作为所述问句的第三编码表示;将所述问句的第一编码表示和所述问句的第三编码表示进行拼接,将拼接后的编码表示作为所述问句的综合编码表示。
- 根据权利要求3所述的方法,其中,所述方法还包括:将通过所述对话生成模型中的编码器得到的所述问句的编码表示,作为所述问句的第一编码表示,将所述问句输入所述知识库问答模型,获取所述知识库问答模型中编码器输出的编码表示,作为所述问句的第二编码表示;确定所述问句的相似问句对应的回复作为相似候选回复,根据所述 相似候选回复的词嵌入表示和所述问句的第一编码表示确定互注意力,作为所述问句的第三编码表示;将所述问句的第一编码表示、所述问句的第二编码表示和所述问句的第三编码进行拼接,将拼接后的编码表示作为所述问句的综合编码表示。
- 根据权利要求4至6中任一项所述的方法,其中,所述通过所述对话生成模型中的解码器融合所述问句的编码表示和针对所述问句从知识库问答模型中迁移学习的知识信息,获得所述对话生成模型输出的所述问句对应的预测回复,包括:通过所述对话生成模型中的解码器,融合所述问句的综合编码表示和从知识库问答模型中迁移学习的对应所述问句的知识信息,获得所述对话生成模型输出的所述问句对应的预测回复。
- 根据权利要求1所述的方法,其中,所述方法还包括:构建端到端结构的神经网络模型;获取与所述神经网络模型相匹配的通用数据集和常识知识库;基于所述通用数据集包括的多组问答数据,通过与所述神经网络模型相匹配的铰链损失函数调整所述神经网络模型参数,直到所述铰链损失函数处于收敛,将处于收敛状态的神经网络模型作为所述知识库问答模型,以实现对所述知识库问答模型的训练。
- 根据权利要求8所述的方法,其中,所述方法还包括:对所述通用数据集和所述常识知识库中的问题和对应的候选知识答案进行编码,得到所述问题的编码表示和所述候选知识答案的编码表示;确定所述问题的编码表示和所述候选知识答案的编码表示的语义匹配相似度;根据所述语义匹配相似度确定最佳答案,并基于该最佳答案确定所 述知识库问答模型相匹配的损失函数。
- 一种对话生成方法,所述方法由服务器执行,所述服务器包括有一个或多个处理器以及存储器,以及一个或一个以上的程序,其中,所述一个或一个以上的程序存储于存储器中,所述程序可以包括一个或一个以上的每一个对应于一组指令的单元,所述一个或多个处理器被配置为执行指令;包括:接收终端发送的待回答的问句;通过预训练的对话生成模型中的编码器获得所述问句的编码表示;通过所述对话生成模型中的解码器融合所述问句的编码表示和针对所述问句从知识库问答模型中迁移学习的知识信息,获得所述对话生成模型输出的所述问句对应的预测回复;向所述终端发送所述预测回复,其中,所述预训练的对话生成模型通过从知识库问答模型中迁移学习的知识信息进行训练,以实现通过所述对话生成模型生成与问题语句相匹配的回复语句。
- 根据权利要求10所述的方法,其中,所述针对所述问句从知识库问答模型中迁移学习得到知识信息,包括:获取所述问句的上下文注意力向量;将所述问句的上下文注意力向量输入所述知识库问答模型中的多层感知机网络中;通过所述多层感知机网络获得所述问句的增强注意力向量,将所述问句的增强注意力向量作为针对所述问句从知识库问答模型中迁移学习的知识信息。
- 根据权利要求11所述的方法,其中,所述通过所述多层感知机网络获得所述问句的增强注意力向量,包括:获取所述多层感知机网络基于所述问句的上下文注意力向量和从知 识库词表中各词分别迁移到的知识信息;根据所述问句的上下文注意力向量和所述知识库词表中各词的实体嵌入表示,确定所述问句的增强注意力向量。
- 根据权利要求12所述的方法,其中,所述获得所述对话生成模型输出的所述问句对应的预测回复,包括:获得所述对话生成模型中解码器的隐藏层状态表示;将所述对话生成模型中解码器的隐藏层状态表示和所述增强注意力向量输入所述对话生成模型中分类层;根据所述分类层输出的预测单词分布生成所述问句对应的预测回复。
- 根据权利要求13所述的方法,其中,所述获得所述对话生成模型中解码器的隐藏层状态表示,包括:将所述对话生成模型中编码器针对所述问句中最后一个词的隐藏状态表示,作为所述对话生成模型中解码器的初始状态并将预设符号作为初始符号;根据所述对话生成模型中解码器的上一时间步状态和上一时间步生成的符号对应的词嵌入表示以及所述对话生成模型中编码器的当前时间步生成的注意力向量作为所述对话生成模型中解码器的输入,获得所述对话生成模型中解码器在当前时间步的隐藏层状态表示。
- 根据权利要求12所述的方法,其中,所述方法还包括:将通过所述对话生成模型中的编码器得到的所述问句的编码表示,作为所述问句的第一编码表示,将所述问句输入所述知识库问答模型,通过所述知识库问答模型中的编码器对所述问句进行编码,得到所述问句的第二编码表示;将所述第一编码表示与所述第二编码表示进行拼接,得到所述问句 的综合编码表示。
- 根据权利要求12所述的方法,其中,所述方法还包括:将通过所述对话生成模型中的编码器得到的所述问句的编码表示,作为所述问句的第一编码表示,确定所述问句的相似问句对应的回复作为相似候选回复,根据所述相似候选回复的词嵌入表示和所述问句的第一编码表示确定互注意力,作为所述问句的第三编码表示;将所述问句的第一编码表示和所述问句的第三编码表示进行拼接,将拼接后的编码表示作为所述问句的综合编码表示。
- 根据权利要求12所述的方法,其中,所述方法还包括:将通过所述对话生成模型中的编码器得到的所述问句的编码表示,作为所述问句的第一编码表示,将所述问句输入所述知识库问答模型,获取所述知识库问答模型中编码器输出的编码表示,作为所述问句的第二编码表示;确定所述问句的相似问句对应的回复作为相似候选回复,根据所述相似候选回复的词嵌入表示和所述问句的第一编码表示确定互注意力,作为所述问句的第三编码表示;将所述问句的第一编码表示、所述问句的第二编码表示和所述问句的第三编码进行拼接,将拼接后的编码表示作为所述问句的综合编码表示。
- 根据权利要求15至17中任一项所述的方法,其中,所述通过所述对话生成模型中的解码器融合所述问句的编码表示和针对所述问句从知识库问答模型中迁移学习的知识信息,获得所述对话生成模型输出的所述问句对应的预测回复,包括:通过所述对话生成模型中的解码器,融合所述问句的综合编码表示 和从知识库问答模型中迁移学习的对应所述问句的知识信息,获得所述对话生成模型输出的所述问句对应的预测回复。
- 一种对话生成模型训练装置,包括:获取模块,配置为获取对话数据集,所述对话数据集中作为训练样本的每一对话数据包括问句和所述问句对应的标注回复;训练模块,配置为通过对话生成模型中的编码器,对所述对话数据集中的所述问句进行编码处理,得到所述问句的编码表示;所述训练模块,配置为通过所述对话生成模型中的解码器,融合所述问句的编码表示和针对所述问句从知识库问答模型中迁移学习的对应所述问句的知识信息,得到所述问句对应的预测回复;所述训练模块,配置为基于所述问句对应的预测回复和标注回复,确定所述对话生成模型的损失函数的值;所述训练模块,配置为基于所述损失函数的值更新所述对话生成模型的模型参数。
- 一种对话生成装置,包括:接收模块,配置为接收终端发送的待回答的问句;生成模块,配置为通过预训练的对话生成模型中的编码器获得所述问句的编码表示,通过所述对话生成模型中的解码器融合所述问句的编码表示和针对所述问句从知识库问答模型中迁移学习的知识信息,获得所述对话生成模型输出的所述问句对应的预测回复;发送模块,配置为向所述终端发送所述预测回复,其中,所述预训练的对话生成模型通过从知识库问答模型中迁移学习的知识信息进行训练,以实现通过所述对话生成模型生成与问题语句相匹配的回复语句。
- 一种设备,所述设备包括处理器以及存储器:所述存储器配置为存储计算机程序;所述处理器配置为运行所述计算机程序时,执行权利要求1至9任一项所述的对话生成模型训练方法,或者,执行权利要求10至18任一项所述的对话生成方法。
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序用于执行权利1至9任一项所述的对话生成模型训练方法,或者,执行权利要求10至18任一项所述的对话生成方法。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US17/367,883 US11875126B2 (en) | 2019-05-31 | 2021-07-06 | Method, apparatus, device, and storage medium for training model and generating dialog |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910470526.9 | 2019-05-31 | ||
| CN201910470526.9A CN110188182B (zh) | 2019-05-31 | 2019-05-31 | 模型训练方法、对话生成方法、装置、设备及介质 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US17/367,883 Continuation US11875126B2 (en) | 2019-05-31 | 2021-07-06 | Method, apparatus, device, and storage medium for training model and generating dialog |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020238985A1 true WO2020238985A1 (zh) | 2020-12-03 |
Family
ID=67719565
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2020/092701 Ceased WO2020238985A1 (zh) | 2019-05-31 | 2020-05-27 | 模型训练方法、对话生成方法、装置、设备及存储介质 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US11875126B2 (zh) |
| CN (1) | CN110188182B (zh) |
| WO (1) | WO2020238985A1 (zh) |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112784028A (zh) * | 2021-01-25 | 2021-05-11 | 浪潮云信息技术股份公司 | 基于深度学习模型构建智能聊天平台的方法及系统 |
| CN112800203A (zh) * | 2021-02-05 | 2021-05-14 | 江苏实达迪美数据处理有限公司 | 一种融合文本和知识表征的问答匹配方法及系统 |
| CN113569559A (zh) * | 2021-07-23 | 2021-10-29 | 北京智慧星光信息技术有限公司 | 短文本实体情感分析方法、系统、电子设备及存储介质 |
| CN113656569A (zh) * | 2021-08-24 | 2021-11-16 | 电子科技大学 | 一种基于上下文信息推理的生成式对话方法 |
| CN114036960A (zh) * | 2021-11-29 | 2022-02-11 | 中国人民大学 | 一种多粒度个性化对话生成方法 |
| CN114238621A (zh) * | 2021-11-30 | 2022-03-25 | 南通大学 | 一种基于Transformer的编程问题帖标题自动生成方法 |
| CN114625861A (zh) * | 2022-05-11 | 2022-06-14 | 之江实验室 | 改进Transformer融入知识的端到端对话方法 |
| CN115358289A (zh) * | 2022-07-20 | 2022-11-18 | 南京航空航天大学 | 一种融合多类型知识库和推理技术的文本生成算法 |
| CN116737888A (zh) * | 2023-01-11 | 2023-09-12 | 北京百度网讯科技有限公司 | 对话生成模型的训练方法和答复文本的确定方法、装置 |
| CN117591658A (zh) * | 2024-01-17 | 2024-02-23 | 翌东寰球(深圳)数字科技有限公司 | 一种智能问答方法、装置、设备及存储介质 |
Families Citing this family (83)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110188182B (zh) | 2019-05-31 | 2023-10-27 | 中国科学院深圳先进技术研究院 | 模型训练方法、对话生成方法、装置、设备及介质 |
| CN110222164B (zh) * | 2019-06-13 | 2022-11-29 | 腾讯科技(深圳)有限公司 | 一种问答模型训练方法、问题语句处理方法、装置及存储介质 |
| CN110674246A (zh) * | 2019-09-19 | 2020-01-10 | 北京小米智能科技有限公司 | 问答模型训练方法、自动问答方法及装置 |
| CN110704597B (zh) * | 2019-09-29 | 2022-07-29 | 北京金山安全软件有限公司 | 对话系统可靠性校验方法、模型生成方法及装置 |
| CN110990543A (zh) * | 2019-10-18 | 2020-04-10 | 平安科技(深圳)有限公司 | 智能对话的生成方法、装置、计算机设备及计算机存储介质 |
| CN111061847A (zh) * | 2019-11-22 | 2020-04-24 | 中国南方电网有限责任公司 | 对话生成及语料扩充方法、装置、计算机设备和存储介质 |
| CN111160512B (zh) * | 2019-12-04 | 2023-06-13 | 华东师范大学 | 基于生成式对抗网络构建双判别器对话生成模型的方法 |
| CN111061851B (zh) * | 2019-12-12 | 2023-08-08 | 中国科学院自动化研究所 | 基于给定事实的问句生成方法及系统 |
| CN113010023B (zh) * | 2019-12-20 | 2024-12-24 | 北京搜狗科技发展有限公司 | 一种信息推荐方法、装置和电子设备 |
| US11544946B2 (en) * | 2019-12-27 | 2023-01-03 | Robert Bosch Gmbh | System and method for enhancing neural sentence classification |
| CN111310847B (zh) * | 2020-02-28 | 2023-06-23 | 支付宝(杭州)信息技术有限公司 | 训练要素分类模型的方法和装置 |
| CN111368058B (zh) * | 2020-03-09 | 2023-05-02 | 昆明理工大学 | 一种基于迁移学习的问答匹配方法 |
| CN111428015B (zh) * | 2020-03-20 | 2023-03-14 | 腾讯科技(深圳)有限公司 | 一种信息生成方法、装置、设备及存储介质 |
| CN113495943B (zh) * | 2020-04-02 | 2023-07-14 | 山东大学 | 一种基于知识追踪与转移的人机对话方法 |
| CN111639163A (zh) * | 2020-04-29 | 2020-09-08 | 深圳壹账通智能科技有限公司 | 问题生成模型的训练方法、问题生成方法及其相关设备 |
| CN111400481B (zh) * | 2020-05-15 | 2023-04-28 | 支付宝(杭州)信息技术有限公司 | 针对多轮对话生成回复语句的方法和装置 |
| CN112308650B (zh) * | 2020-07-01 | 2022-09-30 | 北京沃东天骏信息技术有限公司 | 推荐理由生成方法、装置、设备及存储介质 |
| CN111897933B (zh) * | 2020-07-27 | 2024-02-06 | 腾讯科技(深圳)有限公司 | 情感对话生成方法、装置及情感对话模型训练方法、装置 |
| CN112035627B (zh) * | 2020-07-27 | 2023-11-17 | 深圳技术大学 | 自动问答方法、装置、设备及存储介质 |
| CN111949768B (zh) * | 2020-08-23 | 2024-02-02 | 云知声智能科技股份有限公司 | 一种文件分类方法 |
| CN112256851A (zh) * | 2020-10-23 | 2021-01-22 | 大连东软教育科技集团有限公司 | 一种教育机器人对话数据集的生成方法、装置及存储介质 |
| KR102529431B1 (ko) * | 2020-11-10 | 2023-05-08 | 주식회사 포티투마루 | 문맥 기반 질의응답 생성 아키텍처 |
| CN112347760B (zh) * | 2020-11-16 | 2024-11-22 | 北京京东尚科信息技术有限公司 | 意图识别模型的训练方法及装置、意图识别方法及装置 |
| CN113780610B (zh) * | 2020-12-02 | 2024-08-20 | 北京沃东天骏信息技术有限公司 | 一种客服画像构建方法和装置 |
| CN112650768A (zh) * | 2020-12-22 | 2021-04-13 | 网易(杭州)网络有限公司 | 对话信息的生成方法、装置及电子设备 |
| US20220198149A1 (en) * | 2020-12-23 | 2022-06-23 | Industrial Technology Research Institute | Method and system for machine reading comprehension |
| CN114691815B (zh) * | 2020-12-25 | 2025-01-03 | 科沃斯商用机器人有限公司 | 模型训练方法、装置、电子设备和存储介质 |
| US12380344B2 (en) * | 2020-12-31 | 2025-08-05 | International Business Machines Corporation | Generating summary and next actions in real-time for multiple users from interaction records in natural language |
| CN112926736B (zh) * | 2021-02-26 | 2023-12-08 | 国网智能电网研究院有限公司 | 一种深度学习技术工具链系统 |
| CN113076944A (zh) * | 2021-03-11 | 2021-07-06 | 国家电网有限公司 | 一种基于人工智能的单据检测识别方法 |
| CN113239157B (zh) * | 2021-03-31 | 2022-02-25 | 北京百度网讯科技有限公司 | 对话模型的训练方法、装置、设备和存储介质 |
| CN113486160B (zh) * | 2021-05-26 | 2023-04-11 | 山东大学 | 基于跨语言知识的对话方法及系统 |
| CN113268577B (zh) * | 2021-06-04 | 2022-08-23 | 厦门快商通科技股份有限公司 | 一种基于对话关系的训练数据处理方法、装置及可读介质 |
| CN113377907B (zh) * | 2021-06-08 | 2023-06-09 | 四川大学 | 基于记忆掩码自注意力网络的端到端任务型对话系统 |
| CN115640383A (zh) * | 2021-07-20 | 2023-01-24 | 阿里巴巴新加坡控股有限公司 | 模型训练方法、装置、设备及计算机存储介质 |
| CN113515617B (zh) * | 2021-07-30 | 2023-07-04 | 中央财经大学 | 一种对话生成模型的方法、装置以及设备 |
| CN113627557B (zh) * | 2021-08-19 | 2023-10-03 | 电子科技大学 | 一种基于上下文图注意力机制的场景图生成方法 |
| CN114281958A (zh) * | 2021-10-20 | 2022-04-05 | 腾讯科技(深圳)有限公司 | 回复模型的获取方法、回复语句的获取方法、装置及设备 |
| CN113961722B (zh) * | 2021-11-05 | 2025-04-04 | 叩鼎(厦门)大数据科技有限公司 | 一种新的面向知识图谱完备的端到端嵌入学习系统 |
| CN114417086B (zh) * | 2021-12-13 | 2025-05-13 | 贝壳找房(北京)科技有限公司 | 基于强化学习策略的人机交互训练方法及装置 |
| CN116881393A (zh) * | 2022-03-28 | 2023-10-13 | 北京沃东天骏信息技术有限公司 | 一种确定客服答复文本的方法和装置 |
| CN114661884B (zh) * | 2022-04-19 | 2025-06-13 | 杭州电子科技大学 | 一种开放域问答下基于kl正则化的检索器预训练方法 |
| CN114817467B (zh) * | 2022-04-20 | 2024-12-03 | 中国人民解放军国防科技大学 | 一种意图识别响应方法、装置、设备及存储介质 |
| CN114860877B (zh) * | 2022-04-29 | 2024-10-29 | 华侨大学 | 一种基于知识图谱关系预测的问题链生成方法及系统 |
| CN115035405B (zh) * | 2022-05-26 | 2024-09-10 | 华南农业大学 | 基于双重迁移学习的柑橘叶片病害识别方法、系统及设备 |
| CN115062123A (zh) * | 2022-05-26 | 2022-09-16 | 北京航空航天大学 | 一种对话生成系统的知识库问答对生成方法 |
| CN114925681B (zh) * | 2022-06-08 | 2024-08-27 | 工银科技有限公司 | 知识图谱问答问句实体链接方法、装置、设备及介质 |
| CN114783596B (zh) * | 2022-06-17 | 2022-10-18 | 天津幸福生命科技有限公司 | 诊断数据识别方法及装置、电子设备、存储介质 |
| CN115080739B (zh) * | 2022-06-24 | 2025-10-24 | 北京百度网讯科技有限公司 | 用于训练对话模型的方法以及用于输出应答信息的方法 |
| CN115293142B (zh) * | 2022-07-15 | 2025-07-22 | 浙江大学 | 一种基于词典增强预训练模型的常识问答方法 |
| CN115186149B (zh) * | 2022-07-28 | 2025-07-18 | 天津大学 | 一种知识对话生成中主题驱动的知识选择方法 |
| CN115470327A (zh) * | 2022-08-11 | 2022-12-13 | 天津泰凡科技有限公司 | 基于知识图谱的医疗问答方法及相关设备 |
| CN115526184A (zh) * | 2022-10-08 | 2022-12-27 | 齐鲁工业大学 | 基于局部自注意力的知识增强的词义消歧方法和装置 |
| CN115617954B (zh) * | 2022-11-17 | 2023-03-28 | 清华大学 | 问答方法、装置、电子设备及存储介质 |
| CN116245114B (zh) * | 2022-11-23 | 2023-09-12 | 重庆大学 | 一种基于对话状态指导的端到端任务型对话系统 |
| CN116108918A (zh) * | 2022-12-30 | 2023-05-12 | 深圳数联天下智能科技有限公司 | 对话预训练模型的训练方法及相关装置 |
| CN116000929A (zh) * | 2022-12-30 | 2023-04-25 | 上海交通大学 | 一种基于知识嵌入的服务机械臂任务为导向的抓取方法 |
| CN116738976A (zh) * | 2023-02-01 | 2023-09-12 | 南通大学 | 基于预训练模型t5的编程问答帖子标题自动补全方法 |
| CN116127040B (zh) * | 2023-02-20 | 2026-04-17 | 马上消费金融股份有限公司 | 多轮对话模型的训练方法、多轮对话预测方法及装置 |
| CN116665662A (zh) * | 2023-02-20 | 2023-08-29 | 阿里巴巴(中国)有限公司 | 人机对话方法及对话数据集生成方法 |
| CN116136870A (zh) * | 2023-02-21 | 2023-05-19 | 深圳市网联安瑞网络科技有限公司 | 基于增强实体表示的智能社交对话方法、对话系统 |
| CN116595985A (zh) * | 2023-03-09 | 2023-08-15 | 华院计算技术(上海)股份有限公司 | 一种基于生成式常识辅助增强对话中情绪识别的方法 |
| CN116467413A (zh) * | 2023-03-22 | 2023-07-21 | 信号旗智能科技(上海)有限公司 | 一种提取报关单申报要素的方法、系统、装置和存储介质 |
| CN116541494B (zh) * | 2023-04-14 | 2025-09-23 | 中国农业银行股份有限公司 | 模型训练方法、回复信息的方法、装置、设备及介质 |
| CN116306917B (zh) * | 2023-05-17 | 2023-09-08 | 卡奥斯工业智能研究院(青岛)有限公司 | 任务处理方法、装置、设备和计算机存储介质 |
| CN116756280A (zh) * | 2023-06-07 | 2023-09-15 | 京东科技控股股份有限公司 | 生成对话的方法、装置和计算机可读存储介质 |
| EP4738181A1 (en) * | 2023-06-30 | 2026-05-06 | Guangdong Midea Kitchen Appliances Manufacturing Co., Ltd. | Session information processing method, apparatus and system, and statement generation method and apparatus |
| CN117112742B (zh) * | 2023-07-24 | 2025-06-10 | 苏州浪潮智能科技有限公司 | 一种对话模型优化方法、装置、计算机设备和存储介质 |
| CN121713195A (zh) * | 2023-08-16 | 2026-03-20 | 维萨国际服务协会 | 经由查询数据库进行大型语言模型推理 |
| CN117216210A (zh) * | 2023-09-06 | 2023-12-12 | 中核装备技术研究(上海)有限公司 | 问答方法、装置、设备、介质及产品 |
| CN117332851B (zh) * | 2023-09-08 | 2024-05-31 | 珠海盈米基金销售有限公司 | 一种基于私有知识库的llm问答平台搭建方法及系统 |
| CN117370516B (zh) * | 2023-10-10 | 2025-11-14 | 中国科学院信息工程研究所 | 一种基于层级对比学习知识增强对话系统训练的方法 |
| WO2025090062A1 (en) * | 2023-10-25 | 2025-05-01 | Hitachi Vantara Llc | Generative ai appliance |
| CN117131187B (zh) * | 2023-10-26 | 2024-02-09 | 中国科学技术大学 | 一种基于噪声绑定扩散模型的对话摘要方法 |
| CN117151228B (zh) * | 2023-10-31 | 2024-02-02 | 深圳大数信科技术有限公司 | 一种基于大模型与知识库生成的智能客服系统 |
| US20250209278A1 (en) * | 2023-12-20 | 2025-06-26 | Adobe Inc. | Identifying speaker names in transcripts utilizing language models |
| CN117708307B (zh) * | 2024-02-06 | 2024-05-14 | 西北工业大学 | 一种大语言模型微调和Adapter融合方法及装置 |
| CN118504988B (zh) * | 2024-07-11 | 2024-10-29 | 国网安徽省电力有限公司电力科学研究院 | 新增设备启动风险识别方法及系统 |
| CN118886426B (zh) * | 2024-09-27 | 2025-04-01 | 中铁七局集团第三工程有限公司 | 一种情感对话生成方法及系统 |
| CN119578490B (zh) * | 2024-11-26 | 2025-11-18 | 神州数码(中国)有限公司 | 模型训练方法、装置、电子设备和计算机可读存储介质 |
| CN119415961B (zh) * | 2025-01-03 | 2025-05-13 | 成都数之联科技股份有限公司 | 一种多点位虚拟量测方法、系统、设备及存储介质 |
| CN120106222B (zh) * | 2025-03-04 | 2025-10-31 | 中山大学 | 一种基于多源知识融合的问句生成方法及装置 |
| CN121415084B (zh) * | 2025-12-24 | 2026-04-17 | 崂山国家实验室 | 声纳图像视觉问答方法及其系统 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170323204A1 (en) * | 2016-05-03 | 2017-11-09 | International Business Machines Corporation | Text Simplification for a Question and Answer System |
| CN108021705A (zh) * | 2017-12-27 | 2018-05-11 | 中科鼎富(北京)科技发展有限公司 | 一种答案生成方法及装置 |
| CN109213851A (zh) * | 2018-07-04 | 2019-01-15 | 中国科学院自动化研究所 | 对话系统中口语理解的跨语言迁移方法 |
| CN109597993A (zh) * | 2018-11-30 | 2019-04-09 | 深圳前海微众银行股份有限公司 | 语句分析处理方法、装置、设备以及计算机可读存储介质 |
| US20190130248A1 (en) * | 2017-10-27 | 2019-05-02 | Salesforce.Com, Inc. | Generating dual sequence inferences using a neural network model |
| CN110188182A (zh) * | 2019-05-31 | 2019-08-30 | 中国科学院深圳先进技术研究院 | 模型训练方法、对话生成方法、装置、设备及介质 |
Family Cites Families (21)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5171962B2 (ja) * | 2007-10-11 | 2013-03-27 | 本田技研工業株式会社 | 異種データセットからの知識移転を伴うテキスト分類 |
| CA2689026A1 (en) * | 2009-07-17 | 2011-01-17 | Andre Gene Douen | Systems, methods and articles for managing presentation of information |
| US11961624B2 (en) * | 2013-03-15 | 2024-04-16 | James Paul Smurro | Augmenting clinical intelligence with federated learning, imaging analytics and outcomes decision support |
| US9836452B2 (en) * | 2014-12-30 | 2017-12-05 | Microsoft Technology Licensing, Llc | Discriminating ambiguous expressions to enhance user experience |
| US10706063B2 (en) * | 2015-10-28 | 2020-07-07 | Qomplx, Inc. | Automated scalable contextual data collection and extraction system |
| KR102447513B1 (ko) * | 2016-01-22 | 2022-09-27 | 한국전자통신연구원 | 점증적 대화지식 자가학습 기반 대화장치 및 그 방법 |
| US10540967B2 (en) * | 2016-11-14 | 2020-01-21 | Xerox Corporation | Machine reading method for dialog state tracking |
| US11586827B2 (en) * | 2017-05-10 | 2023-02-21 | Oracle International Corporation | Generating desired discourse structure from an arbitrary text |
| CN109710915B (zh) * | 2017-10-26 | 2021-02-23 | 华为技术有限公司 | 复述语句生成方法及装置 |
| KR102132407B1 (ko) * | 2017-11-22 | 2020-07-10 | 인하대학교 산학협력단 | 점진적 딥러닝 학습을 이용한 적응적 영상 인식 기반 감성 추정 방법 및 장치 |
| WO2020032919A1 (en) * | 2018-08-06 | 2020-02-13 | Google Llc | Captcha automated assistant |
| CN111046147A (zh) * | 2018-10-11 | 2020-04-21 | 马上消费金融股份有限公司 | 一种问答方法、装置及终端设备 |
| CN109508457B (zh) * | 2018-10-31 | 2020-05-29 | 浙江大学 | 一种基于机器阅读到序列模型的迁移学习方法 |
| US11074253B2 (en) * | 2018-11-02 | 2021-07-27 | International Business Machines Corporation | Method and system for supporting inductive reasoning queries over multi-modal data from relational databases |
| US11620544B2 (en) * | 2018-12-21 | 2023-04-04 | TeselaGen Biotechnology Inc. | Method, apparatus, and computer-readable medium for efficiently optimizing a phenotype with a specialized prediction model |
| SG10201914104YA (en) * | 2018-12-31 | 2020-07-29 | Dathena Science Pte Ltd | Deep learning engine and methods for content and context aware data classification |
| CN109800294B (zh) * | 2019-01-08 | 2020-10-13 | 中国科学院自动化研究所 | 基于物理环境博弈的自主进化智能对话方法、系统、装置 |
| WO2020159395A1 (ru) * | 2019-01-29 | 2020-08-06 | Публичное Акционерное Общество "Сбербанк России" | Способ создания модели анализа диалогов на базе искусственного интеллекта |
| CN110032646B (zh) * | 2019-05-08 | 2022-12-30 | 山西财经大学 | 一种基于多源领域适应联合学习的跨领域文本情感分类方法 |
| US11531875B2 (en) * | 2019-05-14 | 2022-12-20 | Nasdaq, Inc. | Systems and methods for generating datasets for model retraining |
| US11501233B2 (en) * | 2019-05-21 | 2022-11-15 | Hcl Technologies Limited | System and method to perform control testing to mitigate risks in an organization |
-
2019
- 2019-05-31 CN CN201910470526.9A patent/CN110188182B/zh active Active
-
2020
- 2020-05-27 WO PCT/CN2020/092701 patent/WO2020238985A1/zh not_active Ceased
-
2021
- 2021-07-06 US US17/367,883 patent/US11875126B2/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170323204A1 (en) * | 2016-05-03 | 2017-11-09 | International Business Machines Corporation | Text Simplification for a Question and Answer System |
| US20190130248A1 (en) * | 2017-10-27 | 2019-05-02 | Salesforce.Com, Inc. | Generating dual sequence inferences using a neural network model |
| CN108021705A (zh) * | 2017-12-27 | 2018-05-11 | 中科鼎富(北京)科技发展有限公司 | 一种答案生成方法及装置 |
| CN109213851A (zh) * | 2018-07-04 | 2019-01-15 | 中国科学院自动化研究所 | 对话系统中口语理解的跨语言迁移方法 |
| CN109597993A (zh) * | 2018-11-30 | 2019-04-09 | 深圳前海微众银行股份有限公司 | 语句分析处理方法、装置、设备以及计算机可读存储介质 |
| CN110188182A (zh) * | 2019-05-31 | 2019-08-30 | 中国科学院深圳先进技术研究院 | 模型训练方法、对话生成方法、装置、设备及介质 |
Cited By (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112784028A (zh) * | 2021-01-25 | 2021-05-11 | 浪潮云信息技术股份公司 | 基于深度学习模型构建智能聊天平台的方法及系统 |
| CN112800203A (zh) * | 2021-02-05 | 2021-05-14 | 江苏实达迪美数据处理有限公司 | 一种融合文本和知识表征的问答匹配方法及系统 |
| CN113569559B (zh) * | 2021-07-23 | 2024-02-02 | 北京智慧星光信息技术有限公司 | 短文本实体情感分析方法、系统、电子设备及存储介质 |
| CN113569559A (zh) * | 2021-07-23 | 2021-10-29 | 北京智慧星光信息技术有限公司 | 短文本实体情感分析方法、系统、电子设备及存储介质 |
| CN113656569A (zh) * | 2021-08-24 | 2021-11-16 | 电子科技大学 | 一种基于上下文信息推理的生成式对话方法 |
| CN113656569B (zh) * | 2021-08-24 | 2023-10-13 | 电子科技大学 | 一种基于上下文信息推理的生成式对话方法 |
| CN114036960A (zh) * | 2021-11-29 | 2022-02-11 | 中国人民大学 | 一种多粒度个性化对话生成方法 |
| CN114036960B (zh) * | 2021-11-29 | 2024-04-02 | 中国人民大学 | 一种多粒度个性化对话生成方法 |
| CN114238621A (zh) * | 2021-11-30 | 2022-03-25 | 南通大学 | 一种基于Transformer的编程问题帖标题自动生成方法 |
| CN114625861A (zh) * | 2022-05-11 | 2022-06-14 | 之江实验室 | 改进Transformer融入知识的端到端对话方法 |
| CN114625861B (zh) * | 2022-05-11 | 2022-09-06 | 之江实验室 | 改进Transformer融入知识的端到端对话方法 |
| CN115358289A (zh) * | 2022-07-20 | 2022-11-18 | 南京航空航天大学 | 一种融合多类型知识库和推理技术的文本生成算法 |
| CN116737888A (zh) * | 2023-01-11 | 2023-09-12 | 北京百度网讯科技有限公司 | 对话生成模型的训练方法和答复文本的确定方法、装置 |
| CN116737888B (zh) * | 2023-01-11 | 2024-05-17 | 北京百度网讯科技有限公司 | 对话生成模型的训练方法和答复文本的确定方法、装置 |
| CN117591658A (zh) * | 2024-01-17 | 2024-02-23 | 翌东寰球(深圳)数字科技有限公司 | 一种智能问答方法、装置、设备及存储介质 |
| CN117591658B (zh) * | 2024-01-17 | 2024-03-29 | 翌东寰球(深圳)数字科技有限公司 | 一种智能问答方法、装置、设备及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| US20210342551A1 (en) | 2021-11-04 |
| US11875126B2 (en) | 2024-01-16 |
| CN110188182A (zh) | 2019-08-30 |
| CN110188182B (zh) | 2023-10-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020238985A1 (zh) | 模型训练方法、对话生成方法、装置、设备及存储介质 | |
| CN112214591B (zh) | 一种对话预测的方法及装置 | |
| EP4113357A1 (en) | Method and apparatus for recognizing entity, electronic device and storage medium | |
| CA2929018C (en) | Natural expression processing method, processing and response method, device and system | |
| US12333426B2 (en) | Method and apparatus for creating dialogue, and storage medium | |
| CN111143540A (zh) | 智能问答方法、装置、设备及存储介质 | |
| WO2022078146A1 (zh) | 语音识别方法、装置、设备以及存储介质 | |
| CN113392265B (zh) | 多媒体处理方法、装置及设备 | |
| EP3623957A1 (en) | Generation of point of interest copy | |
| CN112069302A (zh) | 会话意图识别模型的训练方法、会话意图识别方法及装置 | |
| CN116932731A (zh) | 面向5g消息的多模态知识问答方法及系统 | |
| CN108959388B (zh) | 信息生成方法及装置 | |
| CN118230091A (zh) | 图像评价模型构建方法、评价方法、装置及存储介质 | |
| CN114330704A (zh) | 语句生成模型更新方法、装置、计算机设备和存储介质 | |
| CN114648032A (zh) | 语义理解模型的训练方法、装置和计算机设备 | |
| CN113868451A (zh) | 基于上下文级联感知的社交网络跨模态对话方法及装置 | |
| CN116975288A (zh) | 文本处理方法及文本处理模型训练方法 | |
| Jiang et al. | Knowledge augmented dialogue generation with divergent facts selection | |
| CN112445899A (zh) | 一种基于神经网络的知识库问答中的属性匹配方法 | |
| CN117636849A (zh) | 语音识别方法以及语音识别模型训练方法 | |
| CN117271745A (zh) | 一种信息处理方法、装置及计算设备、存储介质 | |
| CN113761189B (zh) | 一种修正文本的方法、装置、计算机设备及存储介质 | |
| CN114996426A (zh) | 一种问答交互的方法和装置 | |
| KR20230116141A (ko) | 지식 컨텐츠 기반 상담 시스템 | |
| CN115130461B (zh) | 一种文本匹配方法、装置、电子设备及存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20814248 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20814248 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20814248 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 090622) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20814248 Country of ref document: EP Kind code of ref document: A1 |

