Digital human system based on large language model

By introducing large language models and deep learning technology into the digital human system to perform semantic analysis and information enhancement, the problem of insufficient accuracy in digital human content generation is solved and the interactive effect is significantly improved.

CN117668195BActive Publication Date: 2024-09-27SHANGHAI YUANLU JIAJIA INFORMATION SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311712168.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-13
Publication Date
2024-09-27
Estimated Expiration
2043-12-13

AI Technical Summary

Technical Problem

The digital human system has deficiencies in content generation accuracy and interaction quality, which affects the interaction effect.

Method used

A system based on a large language model is used, combined with natural language processing and deep learning technology, to perform semantic analysis and reference information introduction on user input questions to generate more accurate and high-quality reply content.

Benefits of technology

It improves the accuracy and interactive effect of digital human content generation and optimizes the interactive experience between users and digital humans.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117668195B
    Figure CN117668195B
Patent Text Reader

Abstract

A digital human system based on a large language model is disclosed. The system includes: a data encryption module for encrypting data provided by a user; a rights management module for controlling the data access and data use operations of the user; a secure transmission module for encrypting and authenticating the communication between the user and the digital human system; and an interaction module for performing question-and-answer interaction with the user; wherein the interaction module includes: an input question acquisition unit for acquiring user input questions; and a question analysis and processing unit for analyzing and processing the user input questions to generate reply content. In this way, the accuracy and content quality of digital human content generation can be improved, and the interaction effect of digital human can be optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of digital humans, and more specifically, to a digital human system based on a large language model. Background Art

[0002] With the development of artificial intelligence technology, digital human systems, as a new type of human-computer interaction, have attracted more and more attention. Digital human systems refer to systems that can simulate human appearance, voice, expression or movement, and interact with users in a natural and smooth dialogue. Digital human systems can not only provide information retrieval, entertainment, education and other services, but also serve as a social partner to meet the emotional and social needs of users.

[0003] However, the digital human system also faces some challenges, such as how to improve the accuracy and quality of digital human content generation to optimize the interactive effect of digital humans. Therefore, an optimized digital human system is expected. Summary of the invention

[0004] In view of this, the present application proposes a digital human system based on a large language model, which can use natural language processing technology and artificial intelligence technology based on deep learning to analyze and process user input questions, and introduce reference information to semantically enhance user input questions to improve the accuracy and content quality of digital human content generation, thereby optimizing the interaction effect of digital humans.

[0005] According to one aspect of the present application, a digital human system based on a large language model is provided, comprising: a data encryption module for encrypting data provided by a user; a rights management module for controlling the data access and data use operations of the user; a secure transmission module for encrypting and authenticating the communication between the user and the digital human system; and an interaction module for performing question-and-answer interaction with the user; wherein the interaction module comprises:

[0006] An input question obtaining unit, used to obtain a user input question; and

[0007] The question analysis and processing unit is used to analyze and process the user input question to generate reply content.

[0008] According to the embodiments of the present application, the system can improve the accuracy and quality of digital human content generation and optimize the interactive effects of digital humans.

[0009] Other features and aspects of the present application will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the present application and, together with the description, serve to explain the principles of the present application.

[0011] Figure 1 A block diagram of a digital human system based on a large language model according to an embodiment of the present application is shown.

[0012] Figure 2 A block diagram of the interaction module in a digital human system based on a large language model according to an embodiment of the present application is shown.

[0013] Figure 3 A block diagram of the question analysis processing unit in the digital human system based on a large language model according to an embodiment of the present application is shown.

[0014] Figure 4 A block diagram of the reference information introduction subunit in the digital human system based on a large language model according to an embodiment of the present application is shown.

[0015] Figure 5 A flowchart of a digital human method based on a large language model according to an embodiment of the present application is shown.

[0016] Figure 6 An application scenario diagram of a digital human system based on a large language model according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0017] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work also fall within the scope of protection of the present application.

[0018] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0019] Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0020] In addition, in order to better illustrate the present application, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.

[0021] Figure 1 FIG. 1 is a block diagram of a digital human system based on a large language model according to an embodiment of the present application. Figure 1 As shown, the present application provides a digital human system based on a large language model, which includes: a data encryption module 110, used to encrypt data provided by the user; a permission management module 120, used to control the user's data access and data usage operations; a secure transmission module 130, used to encrypt and authenticate the communication between the user and the digital human system; and an interaction module 140, used to perform question-and-answer interaction with the user.

[0022] In order to solve the above-mentioned technical problems, in particular, in the design process of the interaction module, the technical concept of the present application is to use natural language processing technology and artificial intelligence technology based on deep learning to analyze and process user input questions, and introduce reference information to semantically enhance user input questions to improve the accuracy and content quality of digital human content generation, thereby optimizing the interaction effect of digital humans.

[0023] Based on this, Figure 2 As shown, the interaction module 140 includes: an input question acquisition unit 141, which is used to acquire the user input question; and a question analysis and processing unit 142, which is used to analyze and process the user input question to generate a reply content. Figure 3 As shown, the question analysis processing unit 142 includes: a semantic analysis subunit 1421, used to perform semantic analysis on the user input question to obtain a sequence of semantic feature vectors of the user input question description word granularity; a reference information introduction subunit 1422, used to introduce reference information into the sequence of semantic feature vectors of the user input question description word granularity to obtain a compensated user input question semantic coding feature vector; and a content generation subunit 1423, used to obtain the generated reply content based on the compensated user input question semantic coding feature vector.

[0024] It should be understood that the question analysis processing unit 142 includes three subunits: a semantic analysis subunit 1421, a reference information introduction subunit 1422, and a content generation subunit 1423. The semantic analysis subunit 1421 converts the question into a machine-understandable representation by understanding the semantic meaning of the user input question. This subunit can use natural language processing technology, such as word vector representation, semantic parsing, etc., to convert the user's question into a semantic representation that can be processed by the machine. In the reference information introduction subunit 1422, the reference information can be context information, domain knowledge, or other relevant information, which is used to provide more accurate and targeted replies. By introducing reference information, the understanding of user questions and the accuracy of replies can be improved. The content generation subunit 1423 uses the knowledge of semantic encoding feature vectors and model training to generate replies that meet the context and user needs. The content generation subunit can use natural language generation technology, such as neural network generation models, text generation algorithms, etc., to generate natural, fluent and relevant reply content. These subunits work together to convert user input questions into a process of generating replies through the process of semantic analysis, introduction of reference information, and content generation, and improve the accuracy and quality of replies.

[0025] Specifically, in the technical solution of the present application, the user input question is first obtained; and the user input question is segmented and semantically encoded to obtain a sequence of semantic feature vectors of the word granularity describing the user input question. Among them, the word segmentation process divides the user input question into a sequence of words, and breaks the user input question into smaller semantic units, which helps to capture the key information and semantic relationships in the question. Next, the words in the question can be converted into a vector representation with semantic information through semantic encoding.

[0026] Correspondingly, the semantic analysis subunit 1421 is used to: perform word segmentation processing on the user input question and perform semantic encoding to obtain a sequence of semantic feature vectors of the word granularity describing the user input question. It should be understood that word segmentation plays an important role in the semantic analysis subunit 1421. Word segmentation is to segment the question text input by the user according to certain rules or algorithms, and decompose the sentence into meaningful words or phrases, which are called word segmentation results or word sequences. The purpose of word segmentation is to convert a continuous text stream into discrete word representations so that the computer can understand and process it. By decomposing the sentence into a word sequence, the semantic information and structure of the sentence can be better captured. The benefits of word segmentation are as follows: 1. Semantic understanding: word segmentation can segment the sentence into words or phrases, so that the computer can understand the meaning and function of each word one by one, which is helpful for further semantic analysis and understanding the intention of the user input question. 2. Feature extraction: After the word segmentation converts the sentence into a word sequence, each word can be used as a unit of feature. These features can be used in subsequent semantic encoding and machine learning algorithms to help the computer better understand the question and generate a response. 3. Syntactic analysis: Word segmentation provides a basis for subsequent syntactic analysis. Through word segmentation, the relationship and dependency between words can be identified, which helps to understand the structure and grammatical rules of sentences. In short, word segmentation plays a role in converting sentences into discrete word sequences in semantic analysis, providing a basis for subsequent semantic encoding and processing. It is an important step in natural language processing and helps to improve the accuracy of understanding and responding to user input questions.

[0027] Then, named entity recognition is performed on the user input question to obtain a named entity recognition result; and a sequence of semantically encoded feature vectors of reference information related to the named entity recognition result is extracted from the knowledge graph. Named entity recognition refers to the identification of entities with specific meanings in text, such as names of people, places, names of organizations, etc. By performing named entity recognition on the user input question, the system can identify the named entities in the question, such as specific people, places, products, etc., so that the context and meaning of the question can be more accurately understood during subsequent processing. By extracting reference information related to the named entity recognition result from the knowledge graph, the system can obtain knowledge and background information related to the user input question. For example, if the user mentions a place name, the system can extract the attributes and relationships of the place name from the knowledge graph, such as geographical location, population, and events or historical background related to the place name. These reference information can be used to enrich the content of the question and provide more comprehensive and valuable responses.

[0028] Accordingly, if Figure 3As shown, the reference information introduction subunit 1422 includes: an identification secondary subunit 14221, used to perform named entity recognition on the user input question to obtain a named entity recognition result; a reference information extraction secondary subunit 14222, used to extract a sequence of reference information semantic encoding feature vectors related to the named entity recognition result from the knowledge graph; and a vector fusion secondary subunit 14223, used to fuse the sequence of the user input question description word granularity semantic feature vectors and the sequence of the reference information semantic encoding feature vectors to obtain the compensated user input question semantic encoding feature vector.

[0029] It should be understood that the reference information introduction subunit 1422 includes three secondary subunits: an identification secondary subunit 14221, a reference information extraction secondary subunit 14222, and a vector fusion secondary subunit 14223. In the identification secondary subunit 14221, named entity recognition refers to the identification of entities with specific meanings in the text, such as names of people, places, and organizations. By identifying named entities, key information in the question can be extracted to help understand the context and semantics of the question. In the reference information extraction secondary subunit 14222, the knowledge graph is a structured knowledge representation method that contains rich entity relationships and attribute information. By extracting relevant information from the knowledge graph, more accurate and targeted reference content can be provided for the reply. The vector fusion secondary subunit 14223 can introduce the semantic information of the reference information into the question analysis process by fusing the semantic feature vector of the user input question with the semantic encoding feature vector of the reference information, thereby improving the understanding of the user's question and the accuracy of the reply. These secondary sub-units work together to provide the question analysis processing unit with supplementary semantic encoding feature vectors through the processes of named entity recognition, reference information extraction, and vector fusion to respond to users' questions more accurately.

[0030] Next, the sequence of the granular semantic feature vectors of the user input question description words and the sequence of the reference information semantic coding feature vectors are processed using a semantic interaction module to obtain a compensated user input question semantic coding feature vector. Here, the sequence of the granular semantic feature vectors of the user input question description words captures the semantic information and intent of the user input question, but there may be incomplete or ambiguous information. By fusing the sequence of semantic coding feature vectors of the reference information, background knowledge and detailed information related to the user input question can be obtained from the knowledge graph. Doing so helps to make up for the missing or unclear parts that may exist in the user input question. In other words, feature interaction and fusion of the sequence of granular semantic feature vectors of the user input question description words and the sequence of semantic coding feature vectors of the reference information can enable the system to grasp the meaning and intent of the question more comprehensively, and to make up for the missing information in the user input question to a certain extent, providing important support for the content generation of digital humans.

[0031] Among them, the semantic interaction module highlights the intrinsic semantic connection between the two by measuring the correlation between the granular semantic feature vectors of each user-input question description word and the semantic encoding feature vector of the reference information, and uses this intrinsic semantic connection to iteratively update the semantic feature distribution expressed by the sequence of the granular semantic feature vectors of the user-input question description word and the sequence of the semantic encoding feature vectors of the reference information, thereby realizing the interaction and fusion of semantic features.

[0032] Correspondingly, the vector fusion secondary subunit 14223 is used to: use the semantic interaction module to process the sequence of semantic feature vectors of the word granularity of the user input question description and the sequence of semantic encoding feature vectors of the reference information to obtain the compensated user input question semantic encoding feature vector. It should be understood that in the vector fusion secondary subunit 14223, the semantic interaction module refers to a processing mechanism or algorithm for interacting and fusing between different semantic feature vectors to obtain a more comprehensive and accurate semantic representation. The functions of the semantic interaction module are as follows: 1. Fusion of information from different sources: Through the semantic interaction module, the semantic feature vector of the word granularity of the user input question description and the semantic encoding feature vector of the reference information can be fused, so that the key information in the user question can be combined with the reference information extracted from the data source such as the knowledge graph, so as to obtain a more comprehensive and rich semantic representation. 2. Make up for missing information: Sometimes, the question input by the user may be incomplete or ambiguous, and it is impossible to directly obtain sufficient semantic information from it. By interacting with the reference information, the semantic interaction module can make up for the missing information in the question and provide a more accurate and complete semantic encoding feature vector. 3. Improve the accuracy of responses: By fusing the semantic feature vectors of user input questions and reference information, the semantic interaction module can provide more accurate semantic representation, thereby improving the accuracy of the digital human system's understanding of user questions and responses. The fused semantic encoding feature vector can better capture the semantic information and contextual associations of the question. In short, the semantic interaction module plays a role in processing and fusing the granular semantic feature vector of the user input question description word and the semantic encoding feature vector of the reference information in the vector fusion secondary subunit 14223. It can provide a more comprehensive and accurate semantic representation, helping the digital human system to better understand user questions and generate more accurate responses.

[0033] In a specific example, Figure 4As shown, the vector fusion secondary subunit 14223 includes: an attention enhancement tertiary subunit, which is used to perform attention enhancement based on the correlation between the sequence of the user input question description word granularity semantic feature vectors and the sequence of the reference information semantic coding feature vectors to obtain a sequence of attention-enhanced user input question description word granularity semantic feature vectors and a sequence of attention-enhanced reference information semantic coding feature vectors; a first fusion tertiary subunit, which is used to fuse the feature vectors of the corresponding positions in the sequence of the user input question description word granularity semantic feature vectors and the sequence of the attention-enhanced user input question description word granularity semantic feature vectors to obtain a sequence of user input question description local fusion feature vectors, and fuse the reference information semantic coding feature vector and the feature vectors of corresponding positions in the sequence of the attention-enhanced reference information semantic encoding feature vectors to obtain a sequence of reference information local fusion feature vectors; a maximum pooling three-level sub-unit, used to perform maximum pooling processing on the sequence of user input question description local fusion feature vectors to obtain a user input question description local fusion maximum pooling feature vector, and perform maximum pooling processing on the sequence of reference information local fusion feature vectors to obtain a reference information local fusion maximum pooling feature vector; and a second fusion three-level sub-unit, used to fuse the user input question description local fusion maximum pooling feature vector and the reference information local fusion maximum pooling feature vector to obtain the compensated user input question semantic encoding feature vector.

[0034] Then, the compensated user input question semantic encoding feature vector is input into the generator based on the large language model to generate the reply content. Here, the generator will use its internal large language model to generate text based on the semantic information expressed in the compensated user input question semantic encoding feature vector. The generator will generate reply content related to the user's question based on the input feature vector and the parameters and weights within the model. In actual application scenarios, the generated reply can be one or more natural language text sentences, depending on the model settings and task requirements.

[0035] Accordingly, the content generation subunit 1423 is used to: input the semantic encoding feature vector of the compensated user input question into the generator based on the large language model to obtain the generated reply content. It should be understood that the role of the content generation subunit 1423 is to input the semantic encoding feature vector of the compensated user input question into the generator based on the large language model to generate the reply content. This generator can be a model based on machine learning, such as a recurrent neural network (RNN) or a transformer (Transformer), which can generate natural language text as a reply based on the input semantic encoding feature vector. The role of the content generation subunit 1423 is mainly reflected in the following aspects: 1. Generate natural language reply: By inputting the semantic encoding feature vector of the compensated user input question into the generator, the content generation subunit can use the ability of the large language model to generate a natural language reply related to the user question. The generated reply can be a coherent text that can answer the user's question, provide relevant information or perform a specific task. 2. Provide fluent responses: The content generation subunit can generate responses with good language fluency and grammatical correctness through a generator based on a large language model, which can make the responses of the digital human system more natural and easy to understand, and improve the user experience. 3. Consider context and semantics: The generator generates based on the input semantic encoding feature vector, which means that it can take into account the context and semantic information of the user's question. The generated response can be better related to the user's question and can be appropriately adjusted according to the different details and meanings of the question. In other words, the content generation subunit 1423 can generate natural language responses related to the user's question by inputting the semantic encoding feature vector that compensates for the user's input question into the generator based on a large language model, which can enable the digital human system to respond to the user in a natural and fluent manner and provide accurate and useful information.

[0036] Further, in the technical solution of the present application, the digital human system based on the large language model also includes a training module for training the semantic interaction module and the generator based on the large language model. It should be understood that the training module plays a key role in the digital human system based on the large language model. It is used to train the semantic interaction module and the generator based on the large language model so that the system can better understand user questions and generate accurate and fluent replies. The main functions of the training module include: 1. Data preparation: The training module is responsible for preparing data sets for training, which includes collecting and collating data on user questions and corresponding correct replies, and constructing training samples. The quality and diversity of the data set are crucial to the effect of the training module. 2. Model training: The training module uses the prepared data set to train the semantic interaction module and the generator based on the large language model. It uses machine learning algorithms and optimization techniques to continuously adjust the parameters of the model in an iterative manner so that the model can better adapt to the pattern of user questions and replies. 3. Parameter tuning: The training module can improve the performance of the model by adjusting the model's hyperparameters and the parameters of the optimization algorithm, which includes selecting appropriate learning rates, regularization methods, and other hyperparameters, and using appropriate optimization algorithms for parameter updates. 4. Evaluation and verification: The training module is also responsible for evaluating and verifying the performance of the trained model. It uses a portion of the reserved data set to evaluate the model's performance on new samples, and selects and adjusts the model based on the evaluation results. Through the training process of the training module, the digital human system can continuously optimize and improve its ability to understand user questions and generate responses. Effective training of the training module can help the system better adapt to user needs in different fields and contexts, and provide more accurate and useful responses.

[0037] In a specific example, the training module includes: a training data acquisition unit for acquiring training data, the training data including training user input questions, and generating true values ​​of reply content; a training word segmentation processing unit for performing word segmentation processing on the training user input questions and performing semantic encoding to obtain a sequence of semantic feature vectors of the granularity of the training user input question description words; a training named entity recognition unit for performing named entity recognition on the training user input questions to obtain training named entity recognition results; a training reference information extraction unit for extracting a sequence of training reference information semantic encoding feature vectors related to the training named entity recognition results from the knowledge graph; a training semantic interaction unit for using the semantic interaction module to perform semantic encoding on the training user input questions. The sequence of description word granularity semantic feature vectors and the sequence of training reference information semantic coding feature vectors are processed to obtain training compensated user input question semantic coding feature vectors; a generation loss function value calculation unit is used to input the training compensated user input question semantic coding feature vectors into the generator based on the large language model to obtain a generation loss function value; a predetermined loss function value calculation unit is used to calculate the predetermined loss function value of the sequence of description word granularity semantic feature vectors of the training user input question and the sequence of training reference information semantic coding feature vectors; and a weighted loss training unit is used to train the semantic interaction module and the generator based on the large language model using the weighted sum of the generation loss function value and the predetermined loss function value as the loss function value.

[0038] In the technical solution of the present application, the sequence of the training user input question description word granularity semantic feature vectors and the sequence of the training reference information semantic coding feature vectors respectively express the encoded text semantic features of the training user input question and the named entities identified in the training user input question, that is, from the perspective of the source semantic space, the sequence of the training reference information semantic coding feature vectors is the encoded semantic feature expression under the source semantic space subset of the sequence of the training user input question description word granularity semantic feature vectors. Therefore, when the sequence of the training user input question description word granularity semantic feature vectors and the sequence of the training reference information semantic coding feature vectors are processed using a semantic interaction module, if the cross-source semantic space distribution encoded semantic feature sharing between the sequence of the training user input question description word granularity semantic feature vectors and the sequence of the training reference information semantic coding feature vectors can be strengthened based on the source semantic space distribution difference between the sequence of the training user input question description word granularity semantic feature vectors and the sequence of the training reference information semantic coding feature vectors, then the semantic interactive fusion expression effect of the training compensation user input question semantic coding feature vector can be improved.

[0039] That is, considering the differences in the distribution of encoded semantic features corresponding to different source semantic space distributions, it is necessary to avoid the sparse distribution of feature sharing between the sequence of granular semantic feature vectors of the training user input question description words and the sequence of the training reference information semantic encoding feature vectors under semantic interaction. Based on this, the applicant of the present application introduces a predetermined loss function for the sequence of granular semantic feature vectors of the training user input question description words and the sequence of the training reference information semantic encoding feature vectors.

[0040] Accordingly, in one example, the predetermined loss function value calculation unit is further used to: calculate the predetermined loss function value of the sequence of the training user input question description word granularity semantic feature vectors and the sequence of the training reference information semantic encoding feature vectors using the following predetermined loss function value calculation formula; wherein the predetermined loss function value calculation formula is: in, is the first cascade feature vector obtained by cascading the sequence of granular semantic feature vectors of the training user input question description word, and is a second concatenated feature vector obtained by concatenating the sequence of the semantic encoding feature vectors of the training reference information, and are the 1-norm and 2-norm of the eigenvector, is the threshold hyperparameter, and the feature vectors are all in the form of row vectors, represents vector multiplication, represents vector subtraction, represents the transpose operation, is the predetermined loss function value.

[0041] Specifically, the strengthening of the shared key features between the sequence of granular semantic feature vectors of the training user input question description words and the sequence of semantic coding feature vectors of the training reference information can be regarded as the compression of the distribution information of the global feature set. The distribution sparseness control of the key features is performed on the basis of reconstructing the relative shape relationship of the original feature manifold based on the structural representation between the sequence of granular semantic feature vectors of the training user input question description words and the sequence of semantic coding feature vectors of the training reference information. While strengthening the shared key features between the sequence of granular semantic feature vectors of the training user input question description words and the sequence of semantic coding feature vectors of the training reference information, a sparse but meaningful geometric representation of the fusion manifold of the training compensated user input question semantic coding feature vector as a fusion feature can be obtained to improve the interactive fusion expression effect of the training compensated user input question semantic coding feature vector on the sequence of granular semantic feature vectors of the training user input question description words and the sequence of semantic coding feature vectors of the training reference information based on semantic interaction, thereby improving the text quality of the generated reply content obtained by the training compensated user input question semantic coding feature vector through a generator based on a large language model.

[0042] In summary, the digital human system 100 based on the large language model according to the embodiment of the present application is explained, which can improve the accuracy and content quality of the digital human content generation and optimize the interaction effect of the digital human.

[0043] As described above, the digital human system 100 based on the large language model according to the embodiment of the present application can be implemented in various terminal devices, such as a server with a digital human algorithm based on the large language model. In one example, the digital human system 100 based on the large language model can be integrated into the terminal device as a software module and / or a hardware module. For example, the digital human system 100 based on the large language model can be a software module in the operating system of the terminal device, or can be an application developed for the terminal device; of course, the digital human system 100 based on the large language model can also be one of the many hardware modules of the terminal device.

[0044] Alternatively, in another example, the digital human system 100 based on the large language model and the terminal device may also be separate devices, and the digital human system 100 based on the large language model may be connected to the terminal device via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.

[0045] Figure 5 FIG. 1 is a flowchart of a digital human method based on a large language model according to an embodiment of the present application. Figure 5As shown, the digital human method based on a large language model according to an embodiment of the present application includes: S110, encrypting the data provided by the user; S120, controlling the data access and data usage operations of the user; S130, encrypting and authenticating the communication between the user and the digital human system; and, S140, performing question-and-answer interaction with the user.

[0046] In a possible implementation, performing question-and-answer interaction with the user includes: obtaining a question input by the user; and analyzing and processing the question input by the user to generate reply content.

[0047] In one possible implementation, the user input question is analyzed and processed to generate reply content, including: performing semantic analysis on the user input question to obtain a sequence of semantic feature vectors at the granularity of user input question description words; introducing reference information into the sequence of semantic feature vectors at the granularity of user input question description words to obtain a compensated user input question semantic coding feature vector; and, based on the compensated user input question semantic coding feature vector, obtaining the generated reply content.

[0048] Here, those skilled in the art can understand that the specific operations of each step in the above-mentioned digital human method based on the large language model have been referred to above. Figures 1 to 4 The present invention has been introduced in detail in the description of the digital human system based on the large language model, and therefore, its repeated description will be omitted.

[0049] Figure 6 FIG. 1 shows an application scenario diagram of a digital human system based on a large language model according to an embodiment of the present application. Figure 6 As shown, in this application scenario, first, obtain the user input question (for example, Figure 6 D), then, the user input question is input to a server (e.g., Figure 6 In S) as shown in , the server is able to use the digital human algorithm based on the large language model to process the user input question to generate reply content.

[0050] Furthermore, it is worth mentioning that digital human is an application of artificial intelligence technology, which refers to a system that can simulate human appearance, voice, expression or action, and interact with users in a natural and fluent conversation. The digital human system uses deep learning, computer graphics, speech synthesis and other technologies to enable virtual characters to be presented in a realistic way and interact with users in various forms. The digital human system can not only provide services such as information retrieval, entertainment and education, but also serve as a social partner to meet the emotional and social needs of users. It can be used in scenarios such as virtual assistants, virtual anchors, virtual teachers, etc. to provide users with personalized services and experiences. The development of the digital human system has benefited from the progress of artificial intelligence technology, especially breakthroughs in computer vision, natural language processing and machine learning. With the continuous evolution of technology, the performance and interaction effects of the digital human system will become closer and closer to real humans, bringing more convenience and fun to people.

[0051] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can also be executed in the opposite order sometimes, depending on the function involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a dedicated hardware-based system that performs the function or action of the specification, or can be realized by a combination of special-purpose hardware and computer instructions.

[0052] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A digital human system based on a large language model, comprising: Data encryption module, used to encrypt data provided by users; A rights management module, used to control the data access and data usage operations of the user; A secure transmission module, used for encrypting and authenticating the communication between the user and the Digital Human system; And, an interaction module, used for performing question-and-answer interaction with the user; characterized in that the interaction module comprises: An input question obtaining unit, used to obtain a user input question; and A question analysis and processing unit, used to analyze and process the question input by the user to generate a reply content; Wherein, the problem analysis and processing unit includes: A semantic analysis subunit, configured to perform semantic analysis on the user input question to obtain a sequence of granular semantic feature vectors of description words of the user input question; A reference information introduction subunit, used to introduce reference information into the sequence of the user input question description word granularity semantic feature vectors to obtain a compensated user input question semantic encoding feature vector; and A content generation subunit, configured to obtain the generated reply content based on the semantic encoding feature vector of the compensated user input question; The reference information introduction subunit includes: Identify a secondary subunit, used to perform named entity recognition on the user input question to obtain a named entity recognition result; A reference information extraction secondary subunit, used to extract a sequence of reference information semantic encoding feature vectors related to the named entity recognition result from the knowledge graph; and A vector fusion secondary subunit, used to fuse the sequence of the user input question description word granularity semantic feature vectors and the sequence of the reference information semantic encoding feature vectors to obtain the compensated user input question semantic encoding feature vector; Wherein, the vector fusion secondary subunit is used for: Using a semantic interaction module, the sequence of the user input question description word granularity semantic feature vectors and the sequence of the reference information semantic encoding feature vectors are processed to obtain the compensated user input question semantic encoding feature vector; Wherein, the vector fusion secondary subunit includes: The attention enhancement tertiary subunit is used to perform attention enhancement based on the correlation between the sequence of the user input question description word granularity semantic feature vectors and the sequence of the reference information semantic encoding feature vectors to obtain a sequence of attention enhanced user input question description word granularity semantic feature vectors and a sequence of attention enhanced reference information semantic encoding feature vectors; The first fusion three-level sub-unit is used to fuse the sequence of the user input question description word granularity semantic feature vectors and the feature vectors at corresponding positions in the sequence of the attention enhanced user input question description word granularity semantic feature vectors to obtain a sequence of user input question description local fusion feature vectors, and fuse the sequence of reference information semantic encoding feature vectors and the feature vectors at corresponding positions in the sequence of the attention enhanced reference information semantic encoding feature vectors to obtain a sequence of reference information local fusion feature vectors; a maximum pooling tertiary subunit, configured to perform maximum pooling processing on the sequence of the local fusion feature vectors of the user input question description to obtain the local fusion maximum pooling feature vector of the user input question description, and perform maximum pooling processing on the sequence of the local fusion feature vectors of the reference information to obtain the local fusion maximum pooling feature vector of the reference information; and The second fusion three-level sub-unit is used to fuse the local fusion maximum pooling feature vector of the user input question description and the local fusion maximum pooling feature vector of the reference information to obtain the compensated user input question semantic encoding feature vector.

2. The digital human system based on a large language model according to claim 1, characterized in that: The semantic analysis subunit is used to: The user input question is segmented and semantically encoded to obtain a sequence of semantic feature vectors of the word granularity describing the user input question.

3. The digital human system based on a large language model according to claim 2, characterized in that: The content generation subunit is used to: The semantic encoding feature vector of the compensated user input question is input into a generator based on a large language model to obtain the generated reply content.

4. The digital human system based on a large language model according to claim 3 is characterized in that: Also included is a training module for training the semantic interaction module and the generator based on the large language model; Wherein, the training module includes: A training data acquisition unit, used to acquire training data, wherein the training data includes questions input by training users and true values ​​of generated reply contents; A training word segmentation processing unit, used for performing word segmentation processing and semantic encoding on the training user input question to obtain a sequence of semantic feature vectors of the word granularity of the training user input question description; A training named entity recognition unit, used for performing named entity recognition on the training user input question to obtain a training named entity recognition result; A training reference information extraction unit, used to extract a sequence of training reference information semantic encoding feature vectors related to the training named entity recognition result from the knowledge graph; A training semantic interaction unit, used to use the semantic interaction module to process the sequence of the training user input question description word granularity semantic feature vectors and the sequence of the training reference information semantic encoding feature vectors to obtain a training compensation user input question semantic encoding feature vector; A generation loss function value calculation unit is used to input the training compensation user input question semantic encoding feature vector into the generator based on the large language model to obtain a generation loss function value; A predetermined loss function value calculation unit, used to calculate the predetermined loss function value of the sequence of the training user input question description word granularity semantic feature vectors and the sequence of the training reference information semantic encoding feature vectors; and A weighted loss training unit is used to train the semantic interaction module and the generator based on the large language model by using the weighted sum of the generated loss function value and the predetermined loss function value as the loss function value.