Human-computer interaction method, device, equipment and program product based on large model
By using large models to determine the characteristic values of user input requests in human-computer interaction, the problem of false triggering is solved, the accuracy and experience of interaction are improved, and the smoothness of interaction is ensured.
Patent Information
- Application Number
- CN202410490748.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-23
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-04-23
AI Technical Summary
Existing human-computer interaction technology is prone to false triggers in noisy environments or speech recognition errors, resulting in reduced interaction smoothness and poor experience. In particular, the strong generalization ability of large models increases false trigger understanding and response.
By calling the configured artificial intelligence large model and combined with the history of human-computer interaction, the characteristic values of the user input request in the target dimension, such as contextual relevance, domain range of sentence expression, smoothness and completeness, are determined to determine whether it is a false trigger. And when it is not a false trigger, the response result is output to avoid the identification of false triggers.
It effectively improves the recognition accuracy and smoothness of human-computer interaction, ensures an improved interactive experience, and avoids response errors due to false triggers.
Smart Images

Figure CN118094445B
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and more specifically, to a large model-based human-computer interaction method, device, related equipment and program product. Background Art
[0002] With the development of science and technology, human-computer interaction is increasingly used in various scenarios, such as knowledge quiz, intelligent car systems, virtual human interactive large screens, etc.
[0003] In the process of human-computer interaction, the machine may receive some inputs that are not relevant to the context or inputs caused by speech recognition errors, truncation, etc. in some scenarios. These inputs are false triggers. For example, in the process of user A interacting with the machine in a noisy environment, the machine may recognize the speech of other user B in the environment as input. At this time, the speech content of user B may be irrelevant to the previous historical input of user A. The speech input of user B is a false trigger. Another example is that in the process of user A interacting with the machine, because the microphone on the machine is far away from user A, speech recognition errors or truncation occur. This type of input is also a false trigger. If the machine still responds to the falsely triggered input, it will affect the smoothness of the interaction and reduce the interactive experience.
[0004] Previous interaction solutions mainly used traditional neural network models such as classification models and slot extraction models to understand and respond to user input requests, which can only realize functions within the user-defined range and do not have much generalization ability. This also makes the machine not respond when faced with some context-independent or falsely triggered inputs caused by speech recognition errors, truncation, etc.
[0005] With the development of big model technology, more and more companies are applying big models to human-computer interaction processes, using them to understand user input and give interactive responses, given their powerful language generalization understanding and generation capabilities. The problem that follows is that, because big models have powerful generalization understanding capabilities, they can also understand and respond to false triggers in the above examples, which seriously affects the smoothness of interaction and reduces the interactive experience. Summary of the invention
[0006] In view of the above problems, this application is proposed to provide a human-computer interaction method, device, related equipment and computer program product based on a large model to identify false triggers in the human-computer interaction process and improve the fluency and interactive experience of human-computer interaction. The specific solution is as follows:
[0007] In a first aspect, a human-computer interaction method based on a large model is provided, comprising:
[0008] Get the user's current input request and human-computer interaction history;
[0009] Calling the configured artificial intelligence big model to instruct the artificial intelligence big model to determine the feature value of the user's current input request on a set target dimension in combination with the human-computer interaction history, where the target dimension is a measurement dimension related to measuring whether the user's input request is a false trigger;
[0010] Referring to the feature value of the current input request of the user on the set target dimension, determining whether the current input request of the user is a false trigger;
[0011] When it is determined that the current input request of the user is not a false trigger, a response result corresponding to the current input request of the user is output, where the response result is an intention response result given by understanding the intention of the current input request of the user.
[0012] In one possible design, in another implementation of the first aspect of the embodiment of the present application, the target dimension includes at least one or more of the following: contextual relevance, domain scope of sentence expression, sentence fluency, sentence completeness, and whether the sentence is meaningful.
[0013] In a possible design, in another implementation of the first aspect of the embodiment of the present application, the process of calling the configured artificial intelligence big model to instruct the artificial intelligence big model to determine the feature value of the user's current input request on the set target dimension in combination with the human-computer interaction history includes:
[0014] Obtain a prompt instruction prompt format template, wherein the prompt format template includes a task instruction, an interaction history slot, a current input slot, and a target dimension slot, wherein the task instruction is used to instruct the model to determine the feature values of the user's current input request in the current input slot on each target dimension in the target dimension slot according to the human-computer interaction history in the interaction history slot;
[0015] Fill the human-computer interaction history into the interaction history slot, fill the user's current input request into the current input slot, fill the set target dimension into the target dimension slot, obtain a first prompt instruction prompt, input the first prompt instruction prompt into the artificial intelligence large model, and obtain the feature values of each target dimension output by the model.
[0016] In a possible design, in another implementation of the first aspect of the embodiments of the present application, the target dimensions include: context relevance, domain scope of sentence expression;
[0017] The process of determining whether the current input request of the user is a false trigger by referring to the feature value of the current input request of the user on the set target dimension includes:
[0018] If any one of condition 1 and condition 2 is met, it is determined that the user's current input request is not a false trigger;
[0019] The condition 1 is that the current input request of the user is associated with the context;
[0020] The condition 2 is that the domain range expressed by the sentence corresponding to the current input request of the user is within the preset business function range.
[0021] In a possible design, in another implementation of the first aspect of the embodiment of the present application, the target dimension further includes: sentence fluency, sentence completeness, and whether the sentence is meaningful;
[0022] The process of determining whether the current input request of the user is a false trigger by referring to the feature value of the current input request of the user on the set target dimension also includes:
[0023] If the condition 1 and the condition 2 are not met, then determine whether at least two of the conditions 3, 4, and 5 are met, and if so, determine that the user's current input request is not a false trigger, and if not, determine that the user's current input request is a false trigger;
[0024] The condition 3 is that the sentence corresponding to the current input request of the user meets the fluency requirement;
[0025] The condition 4 is that the sentence corresponding to the current input request of the user meets the completeness requirement;
[0026] The condition 5 is that the sentence corresponding to the current input request of the user is meaningful.
[0027] In a possible design, in another implementation of the first aspect of the embodiments of the present application, when it is determined that the current input request of the user is not a false trigger, the method further includes:
[0028] The user's current input request is counted into the human-computer interaction history.
[0029] In a possible design, in another implementation of the first aspect of the embodiment of the present application, the method further includes:
[0030] When it is determined that the current input request of the user is a false trigger, the current input request of the user is refused to be responded to, and the current input request of the user is abandoned to be counted into the human-computer interaction history.
[0031] In a possible design, in another implementation of the first aspect of the embodiments of the present application, while or before determining whether the current input request of the user is a false trigger, the method further includes:
[0032] The intent of the current input request of the user is understood, and an intent response result is provided as a response result corresponding to the current input request of the user.
[0033] In a possible design, in another implementation manner of the first aspect of the embodiments of the present application, after determining that the current input request of the user is not a false trigger and before outputting a response result corresponding to the current input request of the user, the method further includes:
[0034] The intent of the current input request of the user is understood, and an intent response result is provided as a response result corresponding to the current input request of the user.
[0035] In a possible design, in another implementation of the first aspect of the embodiment of the present application, the human-computer interaction method is applied to a full-duplex voice interaction scenario, and the process of obtaining the user's current input request includes:
[0036] The user's current input voice is acquired and recognized, and the recognized text is obtained as the user's current input request.
[0037] In a second aspect, a human-computer interaction device based on a large model is provided, comprising:
[0038] An information acquisition unit, used to obtain the user's current input request and human-computer interaction history;
[0039] A dimension feature determination unit, used to call the configured artificial intelligence big model to instruct the artificial intelligence big model to determine the feature value of the user's current input request on a set target dimension in combination with the human-computer interaction history, wherein the target dimension is a measurement dimension related to measuring whether the user's input request is a false trigger;
[0040] a false trigger determination unit, configured to determine whether the current input request of the user is a false trigger by referring to the feature value of the current input request of the user on the set target dimension;
[0041] The interactive response unit is used to output a response result corresponding to the user's current input request when it is determined that the user's current input request is not a false trigger, and the response result is an intention response result given by understanding the intention of the user's current input request.
[0042] In a third aspect, a human-computer interaction device is provided, comprising: a memory and a processor;
[0043] The memory is used to store programs;
[0044] The processor is used to execute the program to implement the various steps of the human-computer interaction method based on the large model described in any one of the first aspects of the present application.
[0045] In a fourth aspect, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the various steps of the human-computer interaction method based on a large model described in any one of the first aspects of the present application are implemented.
[0046] In a fifth aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the various steps of the large model-based human-computer interaction method described in any one of the aforementioned first aspects of the present application.
[0047] By means of the above technical scheme, the present application makes full use of the contextual language understanding and logical reasoning capabilities of the artificial intelligence large model, and combines the human-computer interaction history to determine the characteristic values of the user's current input request in each target dimension. The target dimension is a measurement dimension related to measuring whether the user's input request is a false trigger. On this basis, the characteristic values in each target dimension are comprehensively considered to determine whether the user's current input request is a false trigger interaction. When it is determined that it is not a false trigger, the response result corresponding to the user's current input request is output. The present application judges whether the user's current input is a false trigger in the human-computer interaction process, and divides the false trigger judgment process into two progressive links. The first link can accurately obtain the characteristic values of the user's current input request in each target dimension with the help of the ability of the artificial intelligence large model. The second link can combine the characteristic values of each target dimension to decide whether the user's current input request is a false trigger, which can effectively improve the recognition accuracy of false triggers. When it is identified that the user's current input request is not a false trigger, the response result is output to ensure the smoothness of human-computer interaction and improve the interactive experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the following detailed description of the preferred embodiment.The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application.
[0049] Also, throughout the drawings, the same reference symbols are used to denote the same components. In the drawings:
[0050] Figure 1 A schematic diagram of a process flow of a human-computer interaction method based on a large model provided in an embodiment of the present application;
[0051] Figure 2Another schematic diagram of the process of the human-computer interaction method based on the large model provided in the embodiment of the present application;
[0052] Figure 3 A schematic diagram of a flow chart of a false triggering determination method provided in an embodiment of the present application;
[0053] Figure 4 A schematic diagram of the structure of a human-computer interaction device based on a large model provided in an embodiment of the present application;
[0054] Figure 5 A schematic diagram of the structure of a human-computer interaction device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] Before introducing this application, the English terms involved in this article are explained first:
[0056] prompt: Instructions. When interacting with AI (such as an artificial intelligence model), you need to send instructions to AI. It can be a text description, such as "Please recommend me a pop song" when you interact with AI, or it can be a parameter description in a certain format. For example, if you want AI to draw in a certain format, you need to describe the relevant drawing parameters.
[0057] Artificial intelligence large model: also known as large deep learning model or large model, is an artificial intelligence model based on deep learning technology. It is composed of hundreds of millions of parameters and can achieve complex tasks such as natural speech processing, image recognition, and speech recognition through learning and training of large amounts of data. Artificial intelligence models can include large language models and multimodal large models.
[0058] Large language model: (LLM) generally refers to a language model with a large number of parameters and capabilities, which learns the statistical laws and semantic relationships of language by pre-training on large-scale text data. These models usually use unsupervised learning methods to predict the next word or fill in missing words to capture the context and semantic information of the language. Large language models are able to generate coherent sentences, answer questions, complete translation tasks, etc. LLMs are characterized by their large scale, containing billions or even more parameters, which help them learn complex patterns in language data. The emerging capabilities of large language models include contextual learning, instruction following, and step-by-step reasoning capabilities. With the release of ChatGPT, LLM-related research and applications have gradually exploded, such as Google's PaLM model and Meta's LLaMA model.
[0059] The multimodal large model further integrates multimodal capabilities based on the large language model and can process information in multiple modalities, such as images, text, audio, etc.
[0060] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0061] The present application provides a human-computer interaction solution based on a large model, which can leverage the capabilities of the large model to identify and determine false triggers of user input requests during the human-computer interaction process, thereby improving the smoothness of human-computer interaction.
[0062] The human-computer interaction solution of the present application can be applied to a variety of human-computer interaction scenarios, such as human-computer knowledge question-and-answer scenarios, intelligent car-machine systems, virtual human interaction large-screen scenarios, etc.
[0063] The present application scheme can be implemented based on a human-computer interaction device with data processing capabilities, which can be a mobile phone, robot, computer, server, cloud, etc.
[0064] Next, combine Figure 1 The human-computer interaction method based on the large model of the present application may include the following steps:
[0065] Step S100: Obtain the user's current input request and human-computer interaction history.
[0066] In the process of multiple rounds of human-computer interaction, the user can input request information to the machine in each round of interaction. The user's current input request can be single-mode or multi-mode. For example, the current input request can be any one or more combinations of voice request information, text request information, and image request information. For the input voice request information, voice recognition can be performed to obtain the recognized text as the user's current input request.
[0067] Taking the full-duplex voice interaction scenario as an example, the user can input an interactive voice request, such as: "Please introduce the attractions of Huangshan". Alternatively, the user can also input an interactive voice request and text request information at the same time, such as: the user inputs an Excel document to the machine and inputs the corresponding voice request "Please help me organize the data in this Excel document into a curve chart". Alternatively, the user can input an interactive voice request and image request information at the same time, such as: the user inputs an image to the machine and inputs the corresponding voice request "Please write an essay based on this image", or the voice request can be "Please adjust this image to a cartoon style", etc.
[0068] Furthermore, in order to facilitate the determination of false triggering of the user's current input request in subsequent steps, human-computer interaction history information is further obtained in this step, and the human-computer interaction history information is used to assist in the determination of false triggering.
[0069] Step S110, calling the configured artificial intelligence big model to instruct the artificial intelligence big model to determine the feature value of the user's current input request on the set target dimension in combination with the human-computer interaction history.
[0070] The target dimension is a measurement dimension related to measuring whether the user input request is a false trigger. This embodiment provides some optional examples of the target dimension, such as: context relevance, the scope of the sentence expression, sentence fluency, sentence completeness, whether the sentence is meaningful, etc.
[0071] The target dimension can be any combination of one or more of the above dimensions. The specific dimensions selected as the target dimensions can be determined according to the characteristics of the human-computer interaction scenario. For example, in the human-computer interaction scenario of the intelligent car system, the system predefines a list of functional ranges that the car can respond to, such as: turning on / off the air conditioner, switching music, adjusting the speaker volume, etc. Obviously, when the scope of the domain expressed by the user input request exceeds the above functional range list, it can be determined as a false trigger. Based on this, the "domain scope expressed by the sentence" can be set as the target dimension. Conversely, in some other human-computer interaction scenarios, if the functional range list is not predefined, the "domain scope expressed by the sentence" may not be set as the target dimension.
[0072] In this application, the natural language understanding, context learning and reasoning capabilities of the artificial intelligence big model are utilized, and the artificial intelligence big model is called to combine the human-computer interaction history to determine the feature values of the user's current input request in each target dimension.
[0073] Taking the target dimensions in the above example as an example, the corresponding feature values may include:
[0074] Context relevance dimension: the current input request is associated with the context, or the current input request is not associated with the context.
[0075] Domain scope dimension expressed by the sentence: The domain scope expressed by the sentence corresponding to the current input request, which is used to compare with the pre-set business function scope list.
[0076] Sentence fluency dimension: The fluency of the sentence corresponding to the current input request. Fluency can be represented by two categories, such as fluency and incoherence. In addition, fluency can also be divided according to levels or values. For example, the fluency value interval of a sentence is a value between [0, 1]. At this time, a fluency threshold can be pre-set. When the fluency of a sentence exceeds the fluency threshold, the sentence is considered to meet the fluency requirement. Otherwise, the sentence is considered to not meet the fluency requirement.
[0077] Sentence completeness dimension: The completeness of the sentence corresponding to the current input request. The completeness can be represented by two categories, such as complete sentence expression and incomplete sentence expression. In addition, the completeness can also be divided according to level or value. For example, if the completeness value interval is a value between [0, 1], the completeness threshold can be set in advance. When the sentence completeness value exceeds the completeness threshold, the sentence is considered to meet the completeness requirements. Otherwise, the sentence is considered to not meet the completeness requirements.
[0078] The dimension of whether the sentence is meaningful refers to whether the sentence expresses clear, complete and grammatical ideas or information. Its characteristic values can include two types, namely, the sentence is meaningful and the sentence is meaningless.
[0079] Furthermore, according to the modality of the user's current input request and human-computer interaction history obtained in step S100, the artificial intelligence big model called in this step can be a single-modal big model or a multi-modal big model. For example, when the user's current input request and human-computer interaction history are both in text mode, the big language model of text mode can be called in this step; when the user's current input request or human-computer interaction history includes at least two modes of text, image, and audio, the multi-modal big model can be called in this step to realize the processing of multi-modal input information.
[0080] Step S120: Referring to the feature value of the current input request of the user in the set target dimension, determine whether the current input request of the user is a false trigger. When it is determined that the current input request of the user is not a false trigger, execute step S130.
[0081] Specifically, in the previous step, by calling the capabilities of the artificial intelligence big model, the feature values of the current input request in each target dimension are obtained. The target dimensions are all measurement dimensions related to measuring whether the user input request is a false trigger, such as the 5 dimensions in the previous example. In this step, the feature values of each target dimension obtained in the previous step are comprehensively considered to determine whether the user's current input request is a false trigger, which can improve the accuracy of false trigger judgment.
[0082] Step S130: output a response result corresponding to the user's current input request.
[0083] The response result is an intention response result given by understanding the intention of the user's current input request.
[0084] The response result can be obtained through the semantic interaction system, that is, the semantic interaction system is used to understand the intent of the user's current input request and give the intent response result based on the recognized intent. Among them, the semantic interaction system can be implemented based on the artificial intelligence big model, that is, the ability of the artificial intelligence big model is used to understand the intent of the user's input request and output the intent response result.
[0085] Depending on the human-computer interaction scenario, the form of the response result may be different. The response result may be a single-mode result or a multi-mode result.
[0086] In this step, the response result corresponding to the user's current input request is output only when it is determined that the user's current input request is not a false trigger, ensuring that the machine will not respond incorrectly due to the user's falsely triggered input, thereby affecting the smoothness of human-computer interaction.
[0087] The human-computer interaction method provided in the embodiment of the present application makes full use of the contextual language understanding and logical reasoning capabilities of the artificial intelligence large model, and combines the human-computer interaction history to determine the characteristic values of the user's current input request in each target dimension. The target dimension is a measurement dimension related to measuring whether the user's input request is a false trigger. On this basis, the characteristic values on each target dimension are comprehensively considered to determine whether the user's current input request is a false trigger interaction. When it is determined that it is not a false trigger, the response result corresponding to the user's current input request is output. In the human-computer interaction process, the present application determines whether the user's current input is a false trigger, and divides the false trigger judgment process into two progressive links. The first link can accurately obtain the characteristic values of the user's current input request in each target dimension with the help of the ability of the artificial intelligence large model. The second link can combine the characteristic values of each target dimension to determine whether the user's current input request is a false trigger, which can effectively improve the recognition accuracy of the false trigger. When it is identified that the user's current input request is not a false trigger, the response result is output, which ensures the smoothness of human-computer interaction and improves the interactive experience.
[0088] Combination Figure 2 , illustrates another optional embodiment of the human-computer interaction method of the present application, which may specifically include the following steps:
[0089] Step S200: Obtain the user's current input request and human-computer interaction history.
[0090] Step S210: Call the configured artificial intelligence big model to instruct the artificial intelligence big model to determine the feature value of the user's current input request on the set target dimension in combination with the human-computer interaction history.
[0091] Step S220: Determine whether the current input request of the user is a false trigger by referring to the feature value of the current input request of the user on the set target dimension. If it is determined that the current input request of the user is not a false trigger, execute step S230; if it is determined that the current input request of the user is a false trigger, execute step S240.
[0092] The above steps S200-S220 correspond one-to-one to the steps S100-S120 in the aforementioned embodiment, and please refer to the above description for details, which will not be repeated here.
[0093] Step S230: output a response result corresponding to the user's current input request, and count the user's current input request into the human-computer interaction history.
[0094] Specifically, when it is determined that the current input request of the user is not a false trigger, while outputting the response result, the current input request of the user may also be counted in the human-computer interaction history.
[0095] Step S240: Refuse to respond to the current input request of the user, and give up counting the current input request of the user into the human-computer interaction history.
[0096] Specifically, when it is determined that the user's current input request is a false trigger, in order to ensure the smoothness of human-computer interaction, in this step, you can choose to refuse to respond to the user's current input request, such as not making any output response. At the same time, in order to avoid the false trigger input request affecting the judgment of whether the subsequent user input request is a false trigger, in this step, you can give up counting the user's current input request into the human-computer interaction history.
[0097] In this embodiment, when it is determined that the user's current input request is a false trigger, refusing to respond to the current input request can ensure the smoothness of human-computer interaction, while giving up counting the current input request into the human-computer interaction history to ensure the accuracy of subsequent false trigger identification.
[0098] In some embodiments of the present application, for the response results corresponding to the user request output in the aforementioned step S130 and step S230, the determination process of the response results is introduced.
[0099] As described above, the response result can be determined by the semantic interaction system. This embodiment focuses on the timing of determining the response result.
[0100] In a possible implementation, the response result may be determined while or before step S120 (or step S220) is executed, that is:
[0101] The intent of the user's current input request is understood, and an intent response result is given as a response result corresponding to the user's current input request.
[0102] The term "while step X is being executed" as used herein may refer to being executed in parallel with step X. Of course, considering the time error in computer programs, "while" here includes a very short time range in terms of timing, such as within 0.1 ms.
[0103] In addition, the above process of determining the response result may also be performed before step S120, for example, it may be performed before, after or simultaneously with step S110.
[0104] Taking into account that the process of the semantic interaction system determining the response result takes a certain amount of time, in order to be able to output the response result in a timely manner when it is determined that the user's current input request is not a false trigger, the above-mentioned process of determining the response result can be set to be executed concurrently with step S110, that is, after obtaining the user's current input request and human-computer interaction history, the process of determining the response result and the process of step S110 are executed synchronously.
[0105] Of course, it is understandable that if the above-mentioned process of determining the response result is performed at the same time as or before the above-mentioned step S120, there may be a situation where step S120 ultimately determines that the user's current input request is a false trigger. At this time, in order to ensure the smoothness of human-computer interaction, the response result will not be output, and the above-mentioned process of determining the response result is a useless operation, which consumes additional computing resources. In order to avoid this situation, in another optional implementation of the present application, the above-mentioned process of determining the response result can be performed after the judgment result of step S120 (or step S220) is that the user's current input request is not a false trigger, and before step S130.
[0106] The above embodiments provide several optional execution times for determining the response results, and the specific execution mode can be set according to the needs of the user.
[0107] In some embodiments of the present application, the process of calling the artificial intelligence big model in the aforementioned step S110 to instruct the artificial intelligence big model to determine the feature value of the user's current input request on the target dimension in combination with the human-computer interaction history is introduced, which may specifically include the following steps:
[0108] S1. Obtain a prompt format template for a prompt instruction, wherein the prompt format template includes a task instruction, an interaction history slot, a current input slot, and a target dimension slot. The task instruction is used to instruct the model to determine the characteristic values of the user's current input request in the current input slot on each target dimension in the target dimension slot according to the human-computer interaction history in the interaction history slot.
[0109] Specifically, in order to better call the artificial intelligence large model, the embodiment of the present application designs a prompt format template, which includes a task instruction, an interaction history slot, a current input slot, and a target dimension slot. Among them, the interaction history slot is used to fill in the human-computer interaction history information, the current input slot is used to fill in the user's current input request information, and the target dimension slot is used to fill in the pre-set target dimensions, such as the 5 dimensions in the previous example. The task instruction is specifically used to instruct the model to determine the characteristic values of the user's current input request in each target dimension according to the human-computer interaction history.
[0110] Optionally, the above-mentioned interaction history slot and current input slot may be combined into one information slot, that is, the human-computer interaction history and the user's current input request are combined and filled into the one information slot.
[0111] The task instruction may further limit the output format of the feature value, such as outputting in json format.
[0112] Exemplary prompt format templates may include:
[0113] “Suppose you are an intelligent interactive assistant. Based on the human-computer interaction history, determine the feature value of the sentence currently input by the user on each target dimension.
[0114] Human-computer interaction history: [interaction history slot].
[0115] Current input: [interaction history slot].
[0116] Target dimension: [target dimension slot]".
[0117] S2. Fill the acquired human-computer interaction history into the interaction history slot, fill the user's current input request into the current input slot, fill the set target dimension into the target dimension slot, obtain the first prompt instruction prompt, input the first prompt instruction prompt into the artificial intelligence large model, and obtain the characteristic values of each target dimension output by the model.
[0118] Taking the prompt format template in the above example as an example, assume that the human-computer interaction history is: "User: Please introduce Huangshan. System: Huangshan is one of the famous mountain scenic spots in China. Huangshan was originally named Yishan, and was named because of its dark blue peaks and rocks and the dark blue sky from a distance. User: What are the attractions in Huangshan? System: Help you find some famous natural landscapes in Huangshan, such as Shixin Peak, Shizi Peak, Danxia Peak, Guangmingding, etc. These attractions are famous for their "five wonders" of strange pines, strange rocks, sea of clouds, hot springs, and winter snow, which showcase the natural beauty of Huangshan."
[0119] The user's current input request is: "Oh, it's over."
[0120] The target dimensions include "contextual relevance, the scope of the sentence's expression, sentence fluency, sentence completeness, and whether the sentence is meaningful."
[0121] Fill the above information into the corresponding information slots of the prompt format template to obtain the first prompt instruction prompt, and send it to the artificial intelligence large model to obtain the model output:
[0122] {"Contextual relevance": "Irrelevant", "Scope of the sentence": "Knowledge question and answer","Completeness":"The sentence is complete", "Sentence fluency": "The sentence is fluent", "Whether the sentence is meaningful": "Meaningful"}.
[0123] Obviously, the current user's input request sentence is not related to the above text, that is, the feature value of the context relevance dimension is "irrelevant". The feature value of the domain scope dimension expressed by the input sentence is "knowledge question and answer", which meets the preset business function scope. The feature value of the completeness dimension of the input sentence is "complete sentence". The feature value of the fluency dimension of the input sentence is "fluent sentence". The feature value of the meaninglessness dimension of the input sentence is "meaningful".
[0124] The prompt format template designed based on this embodiment can guide the artificial intelligence model to combine the human-computer interaction history and give feature values from various target dimensions, thereby providing reference data for the next step of determining whether the user's current input request is a false trigger.
[0125] The artificial intelligence big model used in this application can be a general artificial intelligence big model, or it can be an artificial intelligence big model obtained by pre-training the general artificial intelligence big model with task training data, so as to further enhance the ability of the artificial intelligence big model in the specific task of outputting the characteristic value of the target dimension, and enable the artificial intelligence big model to master the input and output paradigm of the prompt instruction prompt introduced in the aforementioned embodiment.
[0126] The above-mentioned task training data may specifically include: historical training data of human-computer interaction and the characteristic value labels of each round of user input in each target dimension. During training, a target user input can be selected from the historical training data of human-computer interaction as the current user input, and each human-computer interaction before the target user input can be used as the interaction history and filled into the prompt format template to obtain the first prompt instruction prompt, and input it into the artificial intelligence large model to obtain the characteristic values of each target dimension of the model output, and calculate the value of the loss function based on the model output and the characteristic value labels of each target dimension corresponding to the target user input in the task training data, and update the model parameters according to the value of the loss function. The loss function can be expressed as:
[0127]
[0128] Among them, w t represents the t-th word, w<t represents the first t - 1 words, and T represents the sequence length. In the training process, the gradient descent algorithm can be used to minimize this loss function.
[0129] In some embodiments of the present application, the foregoing step S120 is introduced. By referring to the eigenvalue of the user's current input request on the set target dimension, it is determined whether the user's current input request belongs to an optional implementation process of mis-triggering.
[0130] As described above, the target dimension can adopt any one or a combination of multiple of the following 5 dimensions: context relevance, the domain range expressed by the sentence, sentence smoothness, sentence integrity, and whether the sentence makes sense.
[0131] Taking the example that the target dimension includes two dimensions of context relevance and the domain range expressed by the sentence, an optional implementation manner of step S120 may include:
[0132] Determine whether if any one of the set condition 1 and condition 2 is satisfied. If so, it is determined that the user's current input request does not belong to mis-triggering. Among them:
[0133] Condition 1 is that the user's current input request is associated with the context;
[0134] Condition 2 is that the domain range expressed by the sentence corresponding to the user's current input request is within the pre-set list of business function ranges.
[0135] In the method provided in this embodiment, the two dimensions of context relevance and the domain range expressed by the sentence are used as the dimensions with higher priorities. If at least one of the dimensions meets the requirements, it can be considered that the current input request is not mis-triggered, avoiding the problem of mis-rejection.
[0136] Furthermore, when the target dimension simultaneously includes the above 5 dimensions in the example, this embodiment further provides another optional implementation manner of step S120. In this embodiment, the two dimensions of context relevance and the domain range expressed by the sentence are used as the first priority, and the remaining 3 dimensions of sentence smoothness, sentence integrity, and whether the sentence makes sense are used as the second priority.
[0137] Based on the previous implementation solution, if it is determined that conditions 1 and 2 are not satisfied, it can be further determined whether at least two of conditions 3, 4, and 5 are satisfied. If so, it is determined that the user's current input request does not belong to mis-triggering. If not, it is determined that the user's current input request belongs to mis-triggering. Among them:
[0138] Condition 3 is that the sentence corresponding to the user's current input request meets the fluency requirement;
[0139] Condition 4 is that the sentence corresponding to the user's current input request meets the completeness requirement;
[0140] Condition 5 is that the sentence corresponding to the user's current input request is meaningful.
[0141] Combination Figure 3 As shown, the false triggering judgment process may include:
[0142] For the user's current input request query:
[0143] First, the domain scope is judged, that is, whether the domain scope of the sentence expression is within the pre-set business function scope list. If so, it is directly judged as a non-false trigger. If not, it enters the context relevance judgment process.
[0144] The context relevance judgment is to determine whether the query is related to the human-computer interaction history. If so, it is directly judged as a non-false trigger. If not, it enters the judgment process of the remaining three target dimensions.
[0145] For the three target dimensions of sentence completeness, sentence fluency, and sentence meaningfulness, if at least two of them are met, it is judged as not a false trigger; otherwise, it is judged as a false trigger.
[0146] Among them, the judgment process of sentence completeness is to judge whether the query meets the sentence completeness requirements; the judgment process of sentence fluency is to judge whether the query meets the sentence fluency requirements; the judgment process of whether the sentence is meaningful is to judge whether the query is a meaningful sentence.
[0147] In the false trigger judgment method provided in the embodiment of the present application, the two target dimensions of context relevance and the domain range of sentence expression are taken as the first priority, that is, if the user's current input request is associated with the context, or the sentence expression domain range belongs to the set business application function range, then in order to avoid the problem of false rejection, it can be directly determined that the user's current input request belongs to non-false trigger. Further, for sentence integrity, sentence fluency, and whether the sentence is meaningful, the three target dimensions are related to determining whether the user's input request is a false trigger, but the priority is lower than that of the first two target dimensions, that is, relying only on the result of one of the dimensions for false triggering is prone to misjudgment. Taking sentence integrity as an example, the falsely triggered sentence may also be complete, and it cannot rely solely on sentence integrity, that is, whether the decision input is a false trigger. Similarly, for the two dimensions of sentence fluency and whether the sentence is meaningful. On this basis, in order to balance the recognition recall rate of false triggers and the tolerance of false rejection, this embodiment sets the judgment logic as follows: when the judgment results of at least two of the three target dimensions are yes, it indicates that the current input is likely to be a non-false trigger, otherwise, it indicates that the current input is likely to be a false trigger.
[0148] Of course, the above embodiments only illustrate several optional judgment logics for false triggering. When the selection and number of target dimensions are changed, the corresponding judgment logic for false triggering can also be changed accordingly. In addition, other multiple judgment logics can be expanded based on the above judgment logic ideas, and this application will not be exhaustive.
[0149] The human-computer interaction device provided in the embodiment of the present application is described below. The human-computer interaction device described below and the human-computer interaction method described above can be referenced to each other.
[0150] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of a large-model-based human-computer interaction device disclosed in an embodiment of the present application.
[0151] like Figure 4 As shown, the device may include:
[0152] The information acquisition unit 11 is used to acquire the user's current input request and human-computer interaction history;
[0153] A dimension feature determination unit 12 is used to call the configured artificial intelligence big model to instruct the artificial intelligence big model to determine the feature value of the user's current input request on a set target dimension in combination with the human-computer interaction history, where the target dimension is a measurement dimension related to measuring whether the user's input request is a false trigger;
[0154] A false trigger determination unit 13, configured to determine whether the current input request of the user is a false trigger by referring to the feature value of the current input request of the user on the set target dimension;
[0155] The interactive response unit 14 is used to output a response result corresponding to the user's current input request when it is determined that the user's current input request is not a false trigger, and the response result is an intention response result given by understanding the intention of the user's current input request.
[0156] Optionally, the dimension feature determination unit calls a configured artificial intelligence big model to instruct the artificial intelligence big model to determine the feature value of the user's current input request on the set target dimension in combination with the human-computer interaction history, including:
[0157] Obtain a prompt instruction prompt format template, wherein the prompt format template includes a task instruction, an interaction history slot, a current input slot, and a target dimension slot, wherein the task instruction is used to instruct the model to determine the feature values of the user's current input request in the current input slot on each target dimension in the target dimension slot according to the human-computer interaction history in the interaction history slot;
[0158] Fill the human-computer interaction history into the interaction history slot, fill the user's current input request into the current input slot, fill the set target dimension into the target dimension slot, obtain a first prompt instruction prompt, input the first prompt instruction prompt into the artificial intelligence large model, and obtain the feature values of each target dimension output by the model.
[0159] Optionally, the above target dimensions include at least one or more of the following: contextual relevance, scope of sentence expression, sentence fluency, sentence completeness, and whether the sentence is meaningful.
[0160] When the target dimension includes: context relevance and the domain range of sentence expression, the false trigger determination unit refers to the feature value of the user's current input request on the set target dimension to determine whether the user's current input request is a false trigger process, including:
[0161] If any one of condition 1 and condition 2 is met, it is determined that the user's current input request is not a false trigger;
[0162] The condition 1 is that the current input request of the user is associated with the context;
[0163] The condition 2 is that the domain range expressed by the sentence corresponding to the current input request of the user is within the preset business function range.
[0164] When the target dimensions simultaneously include: context relevance, the domain of sentence expression, sentence fluency, sentence completeness, and whether the sentence is meaningful, the false trigger determination unit refers to the feature value of the user's current input request on the set target dimension to determine whether the user's current input request is a false trigger process, which may also include:
[0165] If the condition 1 and the condition 2 are not met, then determine whether at least two of the conditions 3, 4, and 5 are met, and if so, determine that the user's current input request is not a false trigger, and if not, determine that the user's current input request is a false trigger;
[0166] The condition 3 is that the sentence corresponding to the current input request of the user meets the fluency requirement;
[0167] The condition 4 is that the sentence corresponding to the current input request of the user meets the completeness requirement;
[0168] The condition 5 is that the sentence corresponding to the current input request of the user is meaningful.
[0169] Optionally, when determining that the current input request of the user is not a false trigger, the interaction response unit may further include the current input request of the user in the human-computer interaction history.
[0170] Optionally, when determining that the current input request of the user is a false trigger, the interaction response unit may refuse to respond to the current input request of the user, and give up counting the current input request of the user into the human-computer interaction history.
[0171] Optionally, the device of the present application may further include:
[0172] The response result determination unit is used to understand the intention of the user's current input request while or before determining whether the user's current input request is a false trigger, and provide an intention response result as a response result corresponding to the user's current input request.
[0173] In another optional implementation, the response result determination unit can be used to understand the intention of the user's current input request after determining that the user's current input request is not a false trigger and before outputting the response result corresponding to the user's current input request, and give an intention response result as the response result corresponding to the user's current input request.
[0174] Optionally, the human-computer interaction device of the present application may be applied to a full-duplex voice interaction scenario, and the process in which the information acquisition unit acquires the user's current input request may include:
[0175] The user's current input voice is acquired and recognized, and the recognized text is obtained as the user's current input request.
[0176] The human-computer interaction device based on a large model provided in the embodiment of the present application can be applied to human-computer interaction devices, such as mobile phones, robots, computers, servers, and cloud computing. Figure 5 The hardware structure diagram of the human-computer interaction device is shown in FIG. Figure 5 , the hardware structure of the human-computer interaction device may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;
[0177] In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 communicate with each other through the communication bus 4;
[0178] The processor 1 may be a central processing unit CPU, or an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention, etc.;
[0179] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), etc., such as at least one disk memory;
[0180] The memory stores a program, and the processor can call the program stored in the memory, wherein the program is used to:
[0181] Get the user's current input request and human-computer interaction history;
[0182] Calling the configured artificial intelligence big model to instruct the artificial intelligence big model to determine the feature value of the user's current input request on a set target dimension in combination with the human-computer interaction history, where the target dimension is a measurement dimension related to measuring whether the user's input request is a false trigger;
[0183] Referring to the feature value of the current input request of the user on the set target dimension, determining whether the current input request of the user is a false trigger;
[0184] When it is determined that the current input request of the user is not a false trigger, a response result corresponding to the current input request of the user is output, where the response result is an intention response result given by understanding the intention of the current input request of the user.
[0185] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0186] The embodiment of the present application further provides a readable storage medium, which may store a program suitable for execution by a processor, wherein the program is used to:
[0187] Get the user's current input request and human-computer interaction history;
[0188] Calling the configured artificial intelligence big model to instruct the artificial intelligence big model to determine the feature value of the user's current input request on a set target dimension in combination with the human-computer interaction history, where the target dimension is a measurement dimension related to measuring whether the user's input request is a false trigger;
[0189] Referring to the feature value of the current input request of the user on the set target dimension, determining whether the current input request of the user is a false trigger;
[0190] When it is determined that the current input request of the user is not a false trigger, a response result corresponding to the current input request of the user is output, where the response result is an intention response result given by understanding the intention of the current input request of the user.
[0191] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0192] An embodiment of the present application also provides a computer program product, including a computer program, which implements each step of the aforementioned human-computer interaction method of the present application when executed by a processor.
[0193] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0194] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.
[0195] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A human-computer interaction method based on a large model, characterized in that: include: Get the user's current input request and human-computer interaction history; Calling the configured artificial intelligence big model to instruct the artificial intelligence big model to determine the feature value of the user's current input request on a set target dimension in combination with the human-computer interaction history, where the target dimension is a measurement dimension related to measuring whether the user's input request is a false trigger; Referring to the feature value of the current input request of the user on the set target dimension, determining whether the current input request of the user is a false trigger; When it is determined that the current input request of the user is not a false trigger, outputting a response result corresponding to the current input request of the user, wherein the response result is an intention response result given by understanding the intention of the current input request of the user; The process of calling the configured artificial intelligence big model to instruct the artificial intelligence big model to determine the feature value of the user's current input request on the set target dimension in combination with the human-computer interaction history includes: Obtain a prompt instruction prompt format template, wherein the prompt format template includes a task instruction, an interaction history slot, a current input slot, and a target dimension slot, wherein the task instruction is used to instruct the model to determine the feature values of the user's current input request in the current input slot on each target dimension in the target dimension slot according to the human-computer interaction history in the interaction history slot; Fill the human-computer interaction history into the interaction history slot, fill the user's current input request into the current input slot, fill the set target dimension into the target dimension slot, obtain a first prompt instruction prompt, input the first prompt instruction prompt into the artificial intelligence large model, and obtain the feature values of each target dimension output by the model.
2. The method according to claim 1, characterized in that: The target dimensions include at least one or more of the following: contextual relevance, the scope of the sentence expression, sentence fluency, sentence completeness, and whether the sentence is meaningful.
3. The method according to claim 2, characterized in that The target dimensions include: contextual relevance, the scope of the sentence expression; The process of determining whether the current input request of the user is a false trigger by referring to the feature value of the current input request of the user on the set target dimension includes: If any one of condition 1 and condition 2 is met, it is determined that the user's current input request is not a false trigger; The condition 1 is that the current input request of the user is associated with the context; The condition 2 is that the domain range expressed by the sentence corresponding to the current input request of the user is within the preset business function range.
4. The method according to claim 3, characterized in that The target dimensions also include: sentence fluency, sentence completeness, and whether the sentence is meaningful; The process of determining whether the current input request of the user is a false trigger by referring to the feature value of the current input request of the user on the set target dimension also includes: If the condition 1 and the condition 2 are not met, then determine whether at least two of the conditions 3, 4, and 5 are met, and if so, determine that the user's current input request is not a false trigger, and if not, determine that the user's current input request is a false trigger; The condition 3 is that the sentence corresponding to the current input request of the user meets the fluency requirement; The condition 4 is that the sentence corresponding to the current input request of the user meets the completeness requirement; The condition 5 is that the sentence corresponding to the current input request of the user is meaningful.
5. The method according to claim 1, characterized in that When it is determined that the current input request of the user is not a false trigger, the method further includes: The user's current input request is counted into the human-computer interaction history.
6. The method according to claim 1, characterized in that Also includes: When it is determined that the current input request of the user is a false trigger, the current input request of the user is refused to be responded to, and the current input request of the user is abandoned to be counted into the human-computer interaction history.
7. The method according to claim 1, characterized in that While or before determining whether the current input request of the user is a false trigger, the method further includes: The intent of the current input request of the user is understood, and an intent response result is provided as a response result corresponding to the current input request of the user.
8. The method according to claim 1, characterized in that After determining that the current input request of the user is not a false trigger and before outputting a response result corresponding to the current input request of the user, the method further includes: The intent of the current input request of the user is understood, and an intent response result is provided as a response result corresponding to the current input request of the user.
9. The method according to any one of claims 1 to 8, characterized in that: The human-computer interaction method is applied to a full-duplex voice interaction scenario, and the process of obtaining the user's current input request includes: The user's current input voice is acquired and recognized, and the recognized text is obtained as the user's current input request.
10. A human-computer interaction device based on a large model, characterized in that: include: An information acquisition unit, used to obtain the user's current input request and human-computer interaction history; A dimension feature determination unit, used to call the configured artificial intelligence big model to instruct the artificial intelligence big model to determine the feature value of the user's current input request on a set target dimension in combination with the human-computer interaction history, wherein the target dimension is a measurement dimension related to measuring whether the user's input request is a false trigger; a false trigger determination unit, configured to determine whether the current input request of the user is a false trigger by referring to the feature value of the current input request of the user on the set target dimension; An interactive response unit, configured to output a response result corresponding to the current input request of the user when it is determined that the current input request of the user is not a false trigger, wherein the response result is an intention response result given by understanding the intention of the current input request of the user; The dimension feature determination unit is specifically used for: Obtain a prompt instruction prompt format template, wherein the prompt format template includes a task instruction, an interaction history slot, a current input slot, and a target dimension slot, wherein the task instruction is used to instruct the model to determine the feature values of the user's current input request in the current input slot on each target dimension in the target dimension slot according to the human-computer interaction history in the interaction history slot; Fill the human-computer interaction history into the interaction history slot, fill the user's current input request into the current input slot, fill the set target dimension into the target dimension slot, obtain a first prompt instruction prompt, input the first prompt instruction prompt into the artificial intelligence large model, and obtain the feature values of each target dimension output by the model.
11. A human-computer interaction device, characterized in that: include: Memory and processor; The memory is used to store programs; The processor is used to execute the program to implement each step of the large model-based human-computer interaction method as described in any one of claims 1 to 9.
12. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the large model-based human-computer interaction method as described in any one of claims 1 to 9 is implemented.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, each step of the large model-based human-computer interaction method as described in any one of claims 1 to 9 is implemented.
