Text summarization using generative machine learning models

By using a classifier model to determine a semantic label and a prompt generation model to create a label-specific prompt, the method enhances the accuracy and relevance of text summaries, addressing the limitations of existing generative models.

US12817902B1Active Publication Date: 2026-12-01STATE FARM MUTAL AUTOMOBILE INSURANCE COMPANY
View PDF 19 Cites 0 Cited by

Patent Information

Application Number
US18/627310
Authority / Receiving Office
US · United States
Patent Type
Patents(United States)
Current Assignee / Owner
Filing Date
2024-04-04
Publication Date
2026-12-01
Estimated Expiration
2044-11-28

AI Technical Summary

Technical Problem

Existing generative language models for text summarization often produce summaries that are not grounded in the source text or fail to focus on the most relevant segments, leading to low-quality summaries.

Method used

A method involving a classifier model to determine a semantic label, a prompt generation model to create a label-specific prompt, and a generative model to generate summaries tailored to the semantic label, ensuring the summaries are accurate and relevant.

Benefits of technology

The proposed method generates summaries that are more accurate representations of the source text by conditioning on the semantic label, reducing operational load and improving user information accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US12817902-D00000_ABST
    Figure US12817902-D00000_ABST
Patent Text Reader

Abstract

This disclosure describes techniques for text summarization using a generative machine learning model. In some cases, an example method may include receiving first text data; providing the first text data to a classifier machine learning model and a summarizer machine learning model; receiving, from the classifier machine learning model, a first semantic label representing a subject matter of the first text data; determining, based on the first semantic label, a prompt for generating a summary of the first text data; determining, by the processor and based on the first semantic label, a generative machine learning model; providing the prompt to the generative machine learning model; receiving, from the generative machine learning model, the summary; and presenting the summary using a first user interface.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to natural language processing, and more particularly to techniques for text summarization using machine learning models.BACKGROUND

[0002] Text summarization is an active area of research in natural language processing. Existing approaches for automatic text summarization include extractive methods, which identify and extract key sentences from the original text, as well as abstractive methods, which generate new sentences representing the core content. Recent advancements in generative language models using deep learning, such as transformer-based architectures, have shown promising results for abstractive summarization. However, generating high-quality abstractive summaries remains challenging. Summaries produced by generative models may contain content not grounded in the source text or may not focus on the most relevant segments.

[0003] Examples of the techniques described in the present disclosure are directed to overcoming the deficiencies noted above.SUMMARY

[0004] In some examples, the techniques described herein relate to a computer-implemented method, including receiving first text data. The method may further include providing the first text data to a classifier machine learning model and a summarizer machine learning model. The method may further include receiving, from the classifier machine learning model, a first semantic label representing a subject matter of the first text data. The method may further include determining, based on the first semantic label, a prompt for generating a summary of the first text data. The method may further include determining, by the processor and based on the first semantic label, a generative machine learning model. The method may further include providing the prompt to the generative machine learning model. The method may further include receiving, from the generative machine learning model, the summary. The method may further include presenting the summary using a first user interface.

[0005] In additional examples, the techniques described herein relate to a computing system, including a processor and memory storing computer-executable instructions that, when executed by the processor, cause the computing system to perform operations including receiving first text data. The operations may further include providing the first text data to a classifier machine learning model and a summarizer machine learning model. The operations may further include receiving, from the classifier machine learning model, a first semantic label representing a subject matter of the first text data. The operations may further include determining, based on the first semantic label, a prompt for generating a summary of the first text data. The operations may further include determining, by the processor and based on the first semantic label, a generative machine learning model. The operations may further include providing the prompt to the generative machine learning model. The operations may further include receiving, from the generative machine learning model, the summary. The operations may further include presenting the summary using a first user interface. In further examples, the techniques described herein relate to one or more non-transitory computer-readable media storing computer-executable instructions that, when executed by the processor, cause the one or more processors to perform operations, including receiving first text data. The operations may further include providing the first text data to a classifier machine learning model and a summarizer machine learning model. The operations may further include receiving, from the classifier machine learning model, a first semantic label representing a subject matter of the first text data. The operations may further include determining, based on the first semantic label, a prompt for generating a summary of the first text data. The operations may further include determining, by the processor and based on the first semantic label, a generative machine learning model. The operations may further include providing the prompt to the generative machine learning model. The operations may further include receiving, from the generative machine learning model, the summary. The operations may further include presenting the summary using a first user interface.BRIEF DESCRIPTION OF THE DRAWINGS

[0006] The detailed description is set forth with reference to the accompanying figures. In the figures, the left-most digit(s) of a reference number identifies the figure in which the reference number first appears. The use of the same reference numbers in different figures indicates similar or identical items or features.

[0007] FIG. 1 depicts an environment for simulating the logical flow of a contact center system without requiring a user-initiated contact instance.

[0008] FIG. 2 is a flowchart diagram of an example process for performing simulated testing of the contact center system.

[0009] FIG. 3 is a flowchart diagram of an example process for determining natural language output data including summary data based on text data.

[0010] FIG. 4 is a flowchart diagram of an example process for determining a deficiency associated with the contact center system using simulated testing.

[0011] FIG. 5 shows an example system architecture for a computing device associated with an environment described herein.DETAILED DESCRIPTION

[0012] This disclosure describes techniques for text summarization using a generative machine learning model. In some cases, the described techniques include determining a semantic label for a text using a classifier machine learning model. The techniques may further includes determining a prompt based on the semantic label and providing the prompt as the input to the generative machine learning model. The techniques may further include determining one or more extracted fields and / or a sentiment analysis output based on the generative model output.

[0013] FIG. 1 provides an example environment 100 for summarizing text data. As depicted in FIG. 1, the environment 100 includes a summarization system 102 that is configured to receive audio data 106 from an audio input system 104. The audio data 106 may, for example, include audio data associated with a communication session, such as audio data associated with an audio conference or audio data associated with an audiovisual conference.

[0014] The audio input system 104 may be a server computing device associated with a communication service, such as a communication service that enables users to communicate using audio and / or video data. For example, users may provide audio and / or video data to the audio input system 104 using at least one of a microphone or a webcam. In some cases, a user may connect to a communication session using a computing device associated with the user. After connecting to the communication session, the user device may provide at least one of audio data or video data to the server computing device associated with the communication service. The user device may also receive at least one of audio data or video data to the server computing device.

[0015] The audio input system 104 may generate the audio data 106 by recording one or more sounds (e.g., verbal communications) detected during a communication session. In some cases, after termination of a communication session between a set of users, the audio input system 104 generates a file containing the audio data 106 associated with the communication session and provides the file to the summarization system 102. The audio data 106 may include records of one or more sounds (e.g., verbal communications) exchanged between the participants in the communication session. The summarization system 102 may receive the audio data by querying an application programming interface (API) associated with the audio input system.

[0016] After receiving the audio data 106, the summarization system 102 may process the audio data 106 to generate corresponding text data 110. For example, a speech-to-text converter 108 of the summarization system 102 may process the audio data 106 to generate the text data 110. The text data 110 may include a transcript of a conversation associated with a corresponding communication session whose verbal utterances are captured by the audio data 106.

[0017] In some cases, the speech-to-text converter 108 may include an automated speech recognition software such at least one of an acoustic model or a language model to translate the sound(s) associated with the audio data 106 into corresponding text data 110. For example, the speech-to-text converter 108 may utilize a neural network-based acoustic model and / or a neural network-based language model trained on large volumes of training data. The training data may represent one or more pairings of audio data segments to text data segments.

[0018] As another example, the speech-to-text converter 108 may determine the text data 110 associated with the audio data 106 using at least one of a convolutional neural network, a recurrent neural network, or an encoder-decoder model that is configured to encode the audio data 106 using an encoder model and determine the text data 110 by processing the encoding using a decoder model. In some cases, the text data 110 includes not only words and / or lexical constructs detected in the verbal utterances captured by the audio data 106, but also one or more semantic structure indicators (e.g., paragraph indicators, punctuation symbols, and / or the like) that are embedded into the words and / or lexical constructs. For example, the speech-to-text converter 108 may use one or more linguistic rules and / or heuristics, or a trained language model, to determine the semantic structure indicators embedded into the text data 110.

[0019] While the example environment 100 depicted in FIG. 1 depicts that the text data 110 is generated based on the audio data 106 received from the audio input system 104, a person of ordinary skill in the relevant technology will recognize that the text data 110 may in some cases be based on sources other than audio data. For example, in some cases, the text data 110 may include text data other than the transcript of a recorded communication session. Such text data 110 may, for example, be retrieved from a database. In an example embodiment, the text data 110 includes contents of an article stored on a database and retrieved by the summarization system 102 from that database.

[0020] Additionally, while the example environment 100 depicted in FIG. 1 depicts that the speech-to-text converter 108 is part of the summarization system 102, a person of ordinary skill in the relevant technology will recognize that the speech-to-text converter 108 may in some cases be part of another system such as the audio input system 104. For example, the audio input system 104 may generate the audio data 106, process the audio data 106 using the speech-to-text converter 108 to generate text data 110 (e.g., transcript of a recorded communication session associated with the audio data 106), and provide the generated text data 110 to the summarization system. As another example, the audio input system 104 may be part of a third system other than the summarization system 102 and the audio input system 104. As another example, different components of the audio input system 104 may be distributed across two or more systems, such as two or more systems including at least one of the summarization system 102, the audio input system 104, or a third system other than the summarization system 102 and the audio input system 104 (e.g., a third system that stores the speech-to-text converter 108). In some cases, at least two of the summarization system 102, the audio input system 104, or a third system other than the summarization system 102 and the audio input system 104 (e.g., a third system that stores the speech-to-text converter 108) may be different components of the same overall computing environment.

[0021] After receiving and / or determining the text data 110, the summarization system 102 may process the text data 110 using a set of natural language processing models to determine one or more summaries associated with the text data 110. The natural language processing models may include at least one of: (i) a classifier model 112 that is configured to process the text data 110 to generate a semantic label 114 for the text data 110, (ii) (a prompt generation model 120 that is configured to process the semantic label 114 generated by the classifier model 112 to generate a prompt 122 for the text data 110, (iii) a generative model 124 that is configured to process the text data 110 and the prompt 122 to generate a generative summary 126 for the text data 110. In some cases, in addition to the generative summary 126, the generative model 124 determines a field extraction output and / or a sentiment analysis output based on the prompt 122 as well.

[0022] The classifier model 112 may be configured to determine the semantic label 114 associated with the text data 110 based on the output of processing the text data 110. The semantic label 114 may represent a predicted subject matter classification associated with the text data 110. For example, the semantic label 114 may represent at least one of a subject, topic, genre, or semantic attribute associated with the text data 110. The semantic label 114 may be used to categorize the text data 110. For example, the semantic label 114 may represent whether the text data 110 is associated with “business,”“accounting,”“R&D,”“legal,” and / or the like. As another example, the semantic label may represent whether the text data is associated with “science,”“sports,”“politics,” and / or the like.

[0023] In some cases, the classifier model 112 is a trained machine learning model. For example, the classifier model 112 may be trained using training data that associates text files to ground-truth semantic labels. The classifier model 112 may include at least one of an embedding model, a convolutional neural network, a transformer-based model, or a recurrent neural network model. For example, the classifier model 112 may include: (i) an embedding layer (e.g., a Word2Vec and / or Paragraph2Vec embedding model) that is configured to process the text data 110 to generate a set of embedded representations (e.g., a set of fixed-size representations) associated with the text data 110, (ii) a second layer that is configured to process the set of embedded representations to generate a text-wide embedding (e.g., a fixed-size text embedding) for the text data 110, and (ii) a classification layer that is configured to process the text-wide embedding for the text data 110. The second layer may include at least one of a convolutional neural network that is configured to determine local word patterns and / or global sentence features represented by the text data 110, a recurrent neural network that is configured to sequentially process the set of embedded representations to generate the text-wide embedding (e.g., based on a hidden state generated during a final timestep associated with the sequence), or an attention-based transformer encoder (e.g., an attention-based transformer encoder using a self-attention mechanism) that is configured to process the set of embedded representations using an attention mechanism (e.g., using a self-attention mechanism) to generate the text-wide embedding. The classification layer may include a multi-class logistic regression model configured to predict the probabilities that a text-wide embedding is associated with a set of candidate sematic labels.

[0024] In some cases, the prompt generation model 120 may: (i) extract a prompt template for the text data 110 based on the semantic label 114, (ii) identify one or more dynamic data fields associated with the prompt template, (iii) use the text data 110 to determine one or more values for the one or more dynamic data fields, and (iv) combine the determined values with static text data defined by the prompt template to generate the prompt 122.

[0025] The prompt generation model 120 may be configured to determine the prompt 122 associated with the text data 110 based on the semantic label 114. In some cases, the prompt generation model 120 may first be configured to determine a prompt template 130 that defines a structure of prompts provided to the generative model 124 to summarize texts associated with the semantic label 114. The structure may define static text data associated with the prompts as well as dynamic fields whose values are determined based on the text data 110 (e.g., based on an initial summary of the text data 110).

[0026] In some cases, after receiving an indication of the semantic label 114, the prompt generation model 120 may query a prompt template database 128 to retrieve a prompt template 130 that is specific to the semantic label 114. The semantic label 114 may be one of a set of candidate semantic labels. Each candidate semantic label may be associated with a distinct prompt template. Accordingly, the prompts for summarizing texts associated with one semantic label may be generated using a template that is different from the template used to summarize texts associated with another semantic label.

[0027] For example, a sales-related text may be summarized using a prompt generated based on a template that includes the static text “Please summarize this sales-related text” and identifies a dynamic field corresponding to the sales identifier described by the text. As another example, a legal text may be summarized using a prompt generated based on a template that includes the static text “Please provide a summary of this legal document, paying particular attention to the upcoming deadlines” and identifies a dynamic field corresponding to the legal matter identifier and / or the opposing party name described by the text. As another example, a science-related text may be summarized using a prompt that includes the text “Summarize the key hypotheses, experiments, and results described in this scientific text,” along with dynamic fields for inserting extracted text segments outlining hypothesized relationships, experimental procedures, observed outcomes, and / or the like.

[0028] As described above, the prompt template 130 includes static text data and one or more dynamic field indicators. The static text data may represent a summarization request, one or more contextual features of the text data 110, one or more formatting and / or semantic requirements for the generative summary 126 of the text data 110, and / or the like. The dynamic field indicators may represent one or more segments of the prompt that are determined based on the text data 110.

[0029] For example, a prompt template may define the structure “Write a concise overview focusing on: [KEY_DETAILS]. Do not exceed three hundred words.” In this example, the static text data may include “Write a concise overview focusing on:” and “Do not exceed three hundred words,” while the [KEY_DETAILS] indicator may represent a location for the prompt generation model 120 to insert value(s) (e.g., extracted text segments) determined based on the text data 110.

[0030] As another example, a prompt template may define the structure “Summarize key events in the text, especially details related to: [WHO], [WHAT], [WHEN], [WHERE].” In this example, the static text data may include “Summarize key events in the text, especially details related to,” while [WHO], [WHAT], [WHEN], and [WHERE] may represent locations for the prompt generation model 120 to insert values (e.g., extracted text segments) determined based on the text data 110.

[0031] As another example, a prompt template may define the structure “Generate a summary of a professional executive briefing containing: [INTRODUCTION_PARAGRAPH] [PROBLEM_DESCRIPTION] [IMPACT_ASSESSMENT] [RECOMMENDATIONS].” In this example, the static text data may include “Generate a professional executive briefing containing,” while [INTRODUCTION_PARAGRAPH] [PROBLEM_DESCRIPTION] [IMPACT_ASSESSMENT] [RECOMMENDATIONS] may represent locations for the prompt generation model 120 to insert values (e.g., extracted text segments) determined based on the text data 110.

[0032] As another example, a prompt template may define the structure “Generate a summary of a customer service call transcript. This call relates to a customer with customer identifier [CUSTOMER_ID], who contacted customer service regarding [ISSUE]. The customer first spoke with [AGENT_NAME] on [DATE]. Over the course of the call, the key details discussed were: [KEY_DETAILS]. To resolve the customer's issue, [RESOLUTION_STEPS] were taken.” In this example, [ISSUE], [AGENT_NAME], [DATE], [KEY_DETAILS] and [RESOLUTION_STEPS] may represent locations for the prompt generation model 120 to insert values (e.g., extracted text segments) determined based on the text data 110.

[0033] After identifying the prompt template 130 for the text data 110, the prompt generation model 120 may: (i) identify one or more dynamic fields associated with the prompt template 130, (ii) determine value(s) corresponding to the dynamic field(s) based on the text data 110, and (iii) generate the prompt 122 by inserting the determined value(s) into the structure of the prompt template 130. In some cases, to determine a value corresponding to a dynamic field based on the text data 110, the prompt generation model 120 uses one or more natural language processing techniques.

[0034] For example, the prompt generation model 120 may use named entity recognition to identify entities such as proper names, locations, dates, and / or the like in the text data 110. The identified entities may then be inserted into corresponding dynamic field indicators such as [CUSTOMER_NAME] or [ORDER_DATE]. As another example, the prompt generation model 120 may use coreference resolution to link pronouns and / or nominals referring to the same entity across the text data 110, such as determining that “the customer” and “he” refer to John Smith. The unified entity may then be inserted into a corresponding dynamic field indicator such as [CUSTOMER]. As another example, the prompt generation model 120 may use relation extraction to identify key semantic relationships expressed in the text data 110, such as a cancellation relationship between a customer and an order. The extracted relation phrases may then be inserted into corresponding dynamic field indicators such as [CUSTOMER] and [ORDER].

[0035] In some cases, the prompt generation model 120 may use one or more sentence fusion techniques to combine information from two or more sentences of the text data 110 to generate values for dynamic field indicators. For example, the prompt generation model 120 may fuse the sentences “The order was placed on January 5th” and “John Smith cancelled the order” into “John Smith placed but cancelled the January 5th order.” The fused sentence may then be used to determine value for a dynamic field indicator such as [ORDER_STATUS_DESCRIPTION]. In some cases, the prompt generation model 120 may use one or more sentence compression techniques to shorten lengthy sentences from the text data 110 before using those sentences to generate values for dynamic field indicators. For example, the text data 110 may contain the lengthy sentence “After careful consideration of multiple quotation options, the customer ultimately selected the high-end product plan to meet his feature requirements.” The prompt generation model 120 may compress this lengthy sentence to “The customer selected the high-end product plan after reviewing multiple quotation options.” The compressed sentence may then be inserted into a corresponding dynamic field indicators such as [CUSTOMER_DECISION_RATIONALE].

[0036] Accordingly, the prompt generation model 120 may determine the prompt 122 by inserting dynamic value(s) determined based on the text data 110 into the slots identified by dynamic field indicators of the prompt template 130. The prompt template 130 may in turn be retrieved from the prompt template database 128 and based on the semantic label 114. In some cases, the static text data associated with the prompt template 130 may describe that the corresponding text is associated with the particular semantic label. After the prompt generation model 120 generates the prompt 122, the generative model 124 processes the prompt 122 to generate the generative summary 126.

[0037] The generative model 124 may be a trained machine learning model that is configured to process the text data 110 along with the prompt 122 to generate the generative summary 126. For example, the generative model 124 may be a diffusion-based model that is configured to determine the generative summary 126 based on: (i) input data determined based the text data 110, and (ii) guidance data determined based on the prompt 122. The diffusion-based model may be configured to, during inference, determine the generative summary 126 based on the input data and conditioned on the guidance data. As another example, the generative model 124 may be configured to process a text input including the text data 110 and the prompt 122 to generate a text output including the generative summary 126. The generative summary 126 may be an abstractive summary.

[0038] The generative model 124 may be a trained machine learning model that is configured to generate natural language text responsive to input prompts. For example, the generative model 124 may be implemented using a sequence-to-sequence neural network architecture including an encoder and a decoder component. The encoder component may encode the text data 110 as well as the prompt 122 into one or more latent representations capturing semantic and contextual information. The decoder component may then generate the generative summary 126 word-by-word based on the latent representation(s) generated by the encoder component, for example by using the prompt 122 as contextual guidance on the content, format, and / or style of the generative summary 126.

[0039] In some cases, the generative model 124 is trained using training data including one or more training entries, where each training entry may include an input text, a prompt, and a ground-truth generative summary. For example, in some cases, a training engine trains the generative model 124 by: (i) identifying a training entry associated with an input text, a prompt, and a ground-truth generative summary, (ii) determining, using the generative model 124 being trained and based on the input text and the prompt, a predicted generative summary, (iii) determining and / or updating a loss function based on a deviation between the predicted generative summary and the ground-truth generative summary, and (iv) determining (e.g., using a gradient descent optimization routine) a set of parameters associated with the generative model 124 that minimize (e.g., locally minimize and / or globally minimize) the loss function.

[0040] In some cases, the generative model 124 is trained using reinforcement learning with human feedback. For example, to train the generative model 124, a training engine may perform the following operations: (i) identifying a first training entry associated with a first input text, a first prompt, and a first ground-truth generative summary, (ii) determining, using the generative model 124 being trained and based on the first input text and the first prompt, a first predicted generative summary, (iii) providing the first predicted generative summary to a user and / or an automated software program to determine a first feedback score associated with the predicted generative summary, (iv) training a reward model to predict the first feedback score based on the first input text and the first prompt, (v) identifying a second training entry associated with a second input text, a second prompt, and a second ground-truth generative summary, (vi) determining, using the generative model 124 being trained and based on the second input text and the second prompt, a second predicted generative summary, (v) determining, using the trained reward model and based on the second predicted generative summary, a second feedback score, and (vi) updating the parameter(s) of the generative model 124 being trained to increase (e.g., to optimize and / or maximize) the second feedback score generated by the reward model.

[0041] After the generative model 124 determines the generative summary 126, the summarization system 102 may perform one or more text operations based on the generative summary 126. For example, the summarization system 102 may present data determined based on the generative summary 126 via a user interface 132 and to a client system 134. As another example, the summarization system 102 may process data determined based on the generative summary 126 using a prediction model 136 (e.g., a trained machine learning model) to determine a feature associated with the text data 110. The feature may be a predicted attribute associated with the text data 110 and / or with an entity (e.g., a user, an account holder, an insurance plan, and / or the like) associated with the text data 110. Examples of such attributes include text topics, text quality scores, attributes about eligibility of users (e.g., for benefits), attributes about whether to follow up on cases, and attributes about whether to investigate customer service requests. The feature(s) generated by the prediction model 136 may then be provided (e.g., via an API query and / or a user interface, such as the user interface 132) to the client system 134.

[0042] In some cases, the prediction model 136 is a classification model configured to predict a category associated with the text data 110, such as predicting whether a customer support ticket expresses a billing inquiry, technical support request, cancellation request, or other predefined category based on the generative summary 126. In some cases, the prediction model 136 is a regression model configured to predict a numerical score associated with the text data 110, such as predicting the priority level of a customer support ticket based on how urgent and / or severe the issue expressed in the generative summary 126 appears.

[0043] As described, the environment 100 may enable generating a generative summary 126 for text data 110 by: (i) determining text data 110 based on audio data 106 received from the audio input system 104, (ii) processing the text data 110 using the classifier model 112 to generate the semantic label 114 for the text data 110, (iii) determining, using the prompt generation model 120 and based on the semantic label 114, the prompt 122 for the text data 110, and / or (iv) processing the prompt 122 to generate the generative summary 126. The generative summary 126 may then be presented via the user interface 132 and / or used to determine a predicted feature associated with the text data 110 and / or an entity (e.g., a user, an account holder, an insurance plan, and / or the like) associated with the text data 110.

[0044] In some cases, the environment 100 enables improved summarization of the text data 110. The generative summary 126 may be a more accurate representation of the contents associated with the text data 110 relative to summaries determined using some other summarization techniques (e.g., the text data 110), because the generative summary 126 is determined conditioned on the prompt 122. This improved accuracy may be because the prompt 122, which is used to determine the generative summary 126, provides a guidance to the generative model 124 that represents the semantic label 114 associated with the text data 110, one or more dynamic field values that are determined to be specifically significant for summarizing text(s) corresponding to the semantic label 114, as well as constraint(s), requirement(s), context clue(s), and / or instruction(s) specific to the semantic label 114. Accordingly, by using the techniques described herein, the generative model 124 may generate a summary that is tailored to the attribute(s) of the semantic category associated with the text data 110.

[0045] Moreover, the environment 100 may improve operational reliability of the summarization system 102 by reducing the operational load on the summarization system 102. In some cases, because the generative summary 126 is a more accurate representation of the contents associated with the text data 110 relative to summaries determined using some other summarization techniques, a user of the summarization system 102 is likely to be better informed after reading the generative summary 126 and will thus be less likely to provide new read requests (e.g., new Hypertext Transfer Protocol (HTTP) GET requests) to retrieve webpages using the summarization system 102. Accordingly, because the summarization system 102 may receive fewer read requests, the operational load on the summarization system 102 is reduced. Additionally, the operational load on a network between the client system 134 used to provide read request(s) and the summarization system 102 may also be reduced. Accordingly, the environment 100 may improve operational reliability of the summarization system 102 and / or of a network between the client system 134 used to provide read request(s) and the summarization system 102.

[0046] FIG. 2 is a flowchart diagram of an example process 200 for determining a generative summary 126 for text data 110. As depicted in FIG. 2, at operation 202, the classifier model 112 receives the text data. The classifier model 112 may receive the text data 110 from the speech-to-text converter 108. The speech-to-text converter 108 may determine the text data 110 by transcribing audio data 106 received from the audio input system 104. In some cases, the classifier model 112 may retrieve the text data 110 from a database and / or receive the text data 110 from an external system, such as the client system 134.

[0047] At operation 204, the classifier model 112 determines the semantic label 114 associated with the text data 110. The semantic label 114 may represent a predicted subject matter classification associated with the text data 110. For example, the semantic label 114 may represent at least one of a subject, topic, genre, or semantic attribute associated with the text data 110. The classifier model 112 may be configured to determine the semantic label 114 associated with the text data 110 based on the output of processing the text data 110 using one or more trained machine learning models, such as at least one of an embedding model, a convolutional neural network, a transformer-based model, or a recurrent neural network model.

[0048] At operation 206, the prompt generation model 120 determines the prompt template 130. The prompt template 130 may define a structure of prompts provided to the generative model 124 to summarize texts associated with the semantic label 114. The structure may define static text data associated with the prompts. In some cases, the structure represented by the prompt template 130 represents one or more dynamic fields whose value(s) are determined based on the text data 110. In some cases, after receiving an indication of the semantic label 114, the prompt generation model 120 may query a prompt template database 128 (e.g., based on a key and / or identifier associated with the semantic label 114) to retrieve a prompt template 130 that is specific to the semantic label 114.

[0049] At operation 208, the prompt generation model 120 determines whether the prompt template 130 determined at operation 206 identifies one or more dynamic fields. A dynamic field may identify a data type and / or a data category whose respective value varies across different prompts generated for different texts associated with the semantic label 114. In some cases, the prompt generation model 120 determines the value corresponding to a dynamic field based on the text data 110. An example of a dynamic field is a case number field, a member identifier field, and / or the like.

[0050] If the prompt generation model 120 determines that the prompt template 130 identifies dynamic field(s) (operation 208—Yes), the prompt generation model 120 proceeds to operation 210 to determine the value of the dynamic field(s) based on the text data 110. In some cases, to determine a value corresponding to a dynamic field based on text data 110, the prompt generation model 120 uses one or more natural language processing techniques. For example, the prompt generation model 120 may use named entity recognition to identify entities such as proper names, locations, dates, and / or the like in the text data 110. In some cases, the prompt generation model 120 may use one or more sentence fusion techniques to combine information from two or more sentences of the text data 110 to generate values for dynamic field indicators.

[0051] At operation 212, the prompt generation model 120 determines the prompt 122 based on the dynamic field value(s) determined at operation 210 and the prompt template 130 determined at operation 208. For example, the prompt generation model 120 may determine the prompt template 130 based on the dynamic field value(s) determined at operation 210 and the static text segment(s) identified prompt template 130 determined at operation 208. In some cases, the prompt generation model 120 may: (i) identify one or more dynamic fields associated with the prompt template 130, (ii) determine value(s) corresponding to the dynamic field(s) based on the text data 110, and (iii) generate the prompt 122 by inserting the determined value(s) into the structure of the prompt template 130.

[0052] If the prompt generation model 120 determines that the prompt template 130 does not identify any dynamic fields (operation 208—No), the prompt generation model 120 proceeds to operation 214 to determine the prompt 122 based on the prompt template 130. In some cases, the prompt generation model 120 determines the prompt 122 to include the static text segment(s) identified prompt template 130 determined at operation 208.

[0053] At operation 216, the generative model 124 generates the generative summary 126 based on (e.g., in response to receiving) the prompt 122. In some cases, the prompt generation model 120 provides the prompt 122 to the generative model 124. The prompt 122 may be determined at operation 214 if the prompt template 130 identifies one or more dynamic fields, or at operation 216 if the prompt template 130 does not identify any dynamic fields. The prompt 122 may be provided as a textual prompt to the generative model 124. In some cases, the generative model 124 generates the generative summary 126 based on both the prompt 122 and the text data 110. For example, the generative model 124 may be a trained machine learning model that is configured to process the text data 110 along with the prompt 122 to generate the generative summary 126.

[0054] Accordingly, via the process 200, the summarization system 102 may generate a generative summary 126 for the text data 110 using a generative model 124. Specifically, the generative model 124 may generate the generative summary 126 based on a prompt 122 that is specific to the semantic label 114 associated with the text data 110. The prompt 122 may identify at least one of static text data or dynamic field(s). The static text data may represent a summarization request, one or more contextual features of the text data 110, one or more formatting and / or semantic requirements for the generative summary 126 of the text data 110, and / or the like. The dynamic fields may represent one or more segments of the prompt that are determined based on the text data 110. Therefore, the process 200 enables the summarization system 102 to generate a more accurate representation of the contents associated with the text data 110 relative to summaries determined using some other summarization techniques, because the generative summary 126 is determined conditioned on a label-specific prompt 122 that may contain data extracted from the text data 110.

[0055] FIG. 3 is a flowchart diagram 300 of an example process for determining natural language output data including summary data based on text data. As depicted in FIG. 3, at operation 302, the system receives text data. The text data may, for example, be generated by performing audio-to-text transcriptions on audio data (e.g., call center audio data, chat system audio data, agent system audio data, etc.).

[0056] At operation 304, the system receives a prompt library describing a set of available prompts. Each prompt may be associated with a category of text data. Each prompt may identify one or more natural language processing tasks (e.g., at least one of a summarization task, a field extraction task, or a sentiment analysis). For example, a prompt may request generating a summary, identifying a group of text fields, and determining a sentiment. The group of text fields may, for example, be identified by one or more data dictionaries and / or data catalogs. The data dictionaries and / catalogs may define data fields corresponding to a schema that is common among a network and / an organization.

[0057] At operation 306, the system receives a model library. A model library may describe a set of available generative models. Each generative model may be associated with one or more categories of text data. For example, the model library may include a generative model that is fine-tuned for processing customer service calls. As another example, the model library may include a generative model that is fine-tuned for processing business meeting transcripts.

[0058] At operation 308, the system selects one of the available prompts and / or one of the available generative models for the text data received at operation 302. For example, the system may use a classifier model to determine a category for the text data, and then select an available prompt and / or an available generative model for that category. As described above, prompts and / or generative models may be associated with specific categories data. For example, a meeting transcript category may be associated with a corresponding prompt and / or a corresponding generative model. In some cases, the system selects a prompt template associated with a category assigned to the text data. The prompt template may identify one or more dynamic fields whose values may be determined based on the text data. The selected prompt may be determined by inserting the dynamic field value(s) into the selected prompt template.

[0059] At operation 310, the system processes the selected prompt using the selected generative model to determine output data. The output data may include at least one of: (i) a summary of the text data, (ii) a set of field values extracted from the text data, and / or (iii) a sentiment analysis output for the text data.

[0060] At operation 312, the system performs one or more preprocessing operations on the output data. The preprocessing operations may include determining whether the output data contains sensitive data and, if so, performing one or more sensitive data management operations. Sensitive data management may include removal and / or masking of sensitive data fields.

[0061] At operation 314, the system performs one or more data streams management operations on the output data (e.g., on the preprocessed output data generated at operation 312). For example, the system may: (i) apply a validation logic to the output data to determine whether the data is accurate, complete, and / or compliant, (ii) determine whether the output data satisfies one or more triggers and / or thresholds for specific actions and / or alerts, (iii) determine whether the data requires triggering one or more exceptions and / or errors, and / or (iv) perform one or more post-processing routines to direct the data to an appropriate manual and / or automated processing engine. In some cases, applying the validation logic includes determining whether a value for an extracted data field matches a value from a set of known values for that data field. In some cases, if the extracted value matches one of the known values, the value may be stored in a database (e.g., a database for temporary storage of validated data before merger of the validated data with production data). In some cases, if the extracted value fails to match any of the known values, the extracted value is routed to a process (e.g., a manual process, an automated process such as a process using an artificial intelligence engine and / or a decision tree, and / or the like) for remediating the data value. In some cases, if an extracted value is successfully remediated, the remediated value may be stored in a database and / or provided to a flow configured to process a validated data value. In some cases, if an extracted value is not successfully remediated, the value may be flagged for a follow-up (e.g., for manual follow-up by a human agent).

[0062] At operation 316, the system performs one or more manual processing operations on the output data. For example, the system may provide the output data to a human agent for use in performing one or more tasks (e.g., a customer outreach task).

[0063] At operation 318, the system performs one or more automated processing operations on the output data. These operations may include performing analytical operations for agent marketing, data visualization, data reporting, fraud analysis, financial analysis, and / or the like. The automated processing operations may also include storage of data on one or more storage platforms.

[0064] FIG. 4 provides an operational example 400 of determining a generative summary 414 based on the text data 402. The text data 402 includes a transcript of a customer service call where the customer describes an issue with an order they recently placed. Based on the text data 402, the classifier model 112 may determine the semantic label 404, which assigns the label “customer_service_transcript” to the text data 402. Based on the semantic label 404, the prompt generation model 120 may extract the prompt template 406: “Summarize the key details from the customer service call transcript. The call relates to customer [CUSTOMER_NAME] who contacted support regarding order [ORDER_ID] placed on [ORDER_DATE]. The main issue reported by the customer was [ISSUE]. To resolve this, the agent [RESOLUTION_STEPS].” This prompt template 406 includes the following dynamic fields: [CUSTOMER_NAME], [ORDER_ID], [ORDER_DATE], [ISSUE], and [RESOLUTION_STEPS].

[0065] As further depicted in FIG. 4, a summarizer model determines the following initial summary 408 based on the text data 402: “John Smith contacted support on January 5th about order number 12345 placed on January 1st. He reported that the wrong item was shipped. The agent apologized and submitted a replacement order for the correct item.” Based on the initial summary 408, the prompt generation model 120 may determine the dynamic field values 410. Specifically, the dynamic field values include the value of “John Smith” for the dynamic field [CUSTOMER_NAME], the value of 12345 for the dynamic field [ORDER_ID], the value of January 1st for the dynamic field [ORDER_DATE], the value of “wrong item was shipped” for the dynamic field [ISSUE], and the value of “submitted a replacement order” for the dynamic field [RESOLUTION_STEPS].

[0066] As further depicted in FIG. 4, based on the prompt template 406 and the dynamic field values 410, the prompt generation model 120 may determine the following prompt 412: “Summarize the key details from the customer service call transcript. The call relates to customer John Smith who contacted support regarding order number 12345 placed on January 1st. The main issue reported by the customer was wrong item was shipped. To resolve this, the agent submitted a replacement order.” This prompt 412 includes the static text segments from the prompt template 406 and the dynamic field values 410.

[0067] Based on this prompt 412, the generative model 124 may generate the following generative summary 414: “This customer service call transcript documents a call made by John Smith regarding order number 12345 which he placed on January 1st. Mr. Smith contacted support because when he received his order on January 7th, he found that the wrong item was shipped to him-a red medium sweater rather than the blue, large sweater he ordered. To resolve the issue, the customer service agent named Jane apologized for the fulfillment error and submitted a replacement order for Mr. Smith for the correct blue sweater in size large. She marked the replacement order as priority shipping so that he would receive it in time for needing it as a gift next week. The transcript shows that the agent resolved the matter to the customer's satisfaction.” In this generative summary 414, key details from the call transcript are summarized, including the customer name, order details, issue reported, and resolution steps taken by the agent. These details correspond to the dynamic field values extracted from the initial summary to populate the corresponding fields in the prompt template.

[0068] FIG. 5 shows an example system architecture for a computing device 502 associated with the environment 100 described herein. A computing device 502 can be a server, computer, or other type of computing device that executes at least a portion of the environment 100. In some examples, elements of the environment 100 can be distributed among, and / or be executed by, multiple computing devices 502.

[0069] A computing device 502 can include memory 504. In various examples, the memory 504 can include system memory, which may be volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.) or some combination of the two. The memory 504 can further include non-transitory computer-readable media, such as volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. System memory, removable storage, and non-removable storage are all examples of non-transitory computer-readable media.

[0070] Examples of non-transitory computer-readable media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transitory medium which can be used to store desired information and which can be accessed by one or more computing devices 502 associated with the environment 100. Any such non-transitory computer-readable media may be part of the computing devices 502. The memory 504 can include modules and data 506 needed to perform operations of one or more computing devices 502 of the environment 100.

[0071] One or more computing devices 502 of the environment 100 can also have processor(s) 508, communication interfaces 510, displays 512, output devices 514, input devices 516, and / or a drive unit 518 including a machine readable medium 520.

[0072] In various examples, the processor(s) 508 can be a central processing unit (CPU), a graphics processing unit (GPU), both a CPU and a GPU, or any other type of processing unit. Each of the one or more processor(s) 508 may have numerous arithmetic logic units (ALUs) that perform arithmetic and logical operations, as well as one or more control units (CUs) that extract instructions and stored content from processor cache memory, and then executes these instructions by calling on the ALUs, as necessary, during program execution. The processor(s) 508 may also be responsible for executing computer applications stored in the memory 504, which can be associated with common types of volatile (RAM) and / or nonvolatile (ROM) memory.

[0073] The communication interfaces 510 can include transceivers, modems, interfaces, antennas, telephone connections, and / or other components that can transmit and / or receive data over networks, telephone lines, or other connections.

[0074] The display 512 can be a liquid crystal display or any other type of display commonly used in computing devices. For example, a display 512 may be a touch-sensitive display screen and can then also act as an input device or keypad, such as for providing a soft-key keyboard, navigation buttons, or any other type of input.

[0075] The output devices 514 can include any sort of output devices known in the art, such as a display 512, speakers, a vibrating mechanism, and / or a tactile feedback mechanism. Output devices 514 can also include ports for one or more peripheral devices, such as headphones, peripheral speakers, and / or a peripheral display.

[0076] The input devices 516 can include any sort of input devices known in the art. For example, input devices 516 can include a microphone, a keyboard / keypad, and / or a touch-sensitive display, such as the touch-sensitive display screen described above. A keyboard / keypad can be a push button numeric dialing pad, a multi-key keyboard, or one or more other types of keys or buttons, and can also include a joystick-like controller, designated navigation buttons, or any other type of input mechanism.

[0077] The machine readable medium 520 can store one or more sets of instructions (e.g., a set of computer-executable instructions), such as software or firmware that embodies any one or more of the methodologies or functions described herein. The instructions can also reside, completely or at least partially, within the memory 504, processor(s) 508, and / or communication interface(s) 510 during execution thereof by the one or more computing devices 502 of the environment 100. The memory 504 and the processor(s) 508 also can constitute machine readable media 520. The instructions may cause the processor(s) 508 to perform operations described in this document.

[0078] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example embodiments.

Claims

1. A method comprising:receiving, by a processor, text data;providing, by the processor, the text data to a classifier machine learning model;receiving, by the processor and from the classifier machine learning model, a first semantic label representing a subject matter of the text data;determining, by the processor, a prompt for generating a summary of the text data, by:identifying a prompt template that corresponds with the semantic label, wherein the prompt template defines a data field;identifying one or more portions of text, in the text data, associated with a subject of the data field;determining a value of the data field by using natural language processing to at least one of combine or compress information expressed in the one or more portions of text, wherein the value is different than the one or more portions of text; andgenerating the prompt based on the prompt template and the value of the data field;providing, by the processor, the prompt to a generative machine learning model configured to generate the summary based on the prompt and the text data;receiving, by the processor and from the generative machine learning model, the summary; andpresenting, by the processor, the summary using a user interface.

2. The method of claim 1, wherein:the text data comprises text data,the prompt template comprises second text data, andthe prompt comprises the second text data and the value of the data field.

3. The method of claim 1, wherein:the prompt template comprises a first prompt template,the data field comprises a first data field,the semantic label comprises a first semantic label selected from a plurality of semantic labels,the plurality of semantic labels comprises a second semantic label associated with a second prompt template, andthe second prompt template defines a second data field.

4. The method of claim 1, wherein the generative machine learning model comprises a diffusion-based model.

5. The method of claim 1, wherein receiving the text data comprises:receiving audio data; anddetermining the text data based on the audio data.

6. The method of claim 1, further comprising:predicting, by the processor, a feature of the text data based on the summary.

7. The method of claim 1, further comprising:receiving, from the generative machine learning model, one or more data values a extracted from the text data.

8. The method of claim 1, further comprising:receiving, from the generative machine learning model, a sentiment analysis associated with the text data.

9. The method of claim 1, wherein the generative machine learning model is trained on training data associated with the semantic label.

10. The method of claim 1, further comprising selecting, by the processor, and based on the semantic label, the generative machine learning model from a plurality of generative machine learning models.

11. The method of claim 1, wherein:the data field comprises a first data field,the one or more portions of text comprise one or more first portions of text,the prompt template defines a second data field, anddetermining the prompt comprises filling the second data field with a second portion of text extracted from the text data.

12. The method of claim 11, further comprising using, by the processor, named entity recognition techniques to identify the second portion of text, associated with the second data field, within the text data.

13. A computing system, comprising:a processor; andmemory storing computer-executable instructions that, when executed by the processor, cause the computing system to perform operations comprising:receiving text data;providing the text data to a classifier machine learning model;receiving, from the classifier machine learning model, a semantic label representing a subject matter of the text data;determining, based on the semantic label, a prompt for generating a summary of the text data, by:identifying a prompt template that corresponds with the semantic label, wherein the prompt template defines a data field;identifying one or more portions of text, in the text data, associated with a subject of the data field;determining a value of the data field by using natural language processing to at least one of combine or compress information expressed in the one or more portions of text, wherein the value is different than the one or more portions of text; andgenerating the prompt based on the prompt template and the value of the data field;providing the prompt to a generative machine learning model configured to generate the summary based on the prompt and the text data;receiving, from the generative machine learning model, the summary; andpresenting the summary using a user interface.

14. The computing system of claim 13, wherein:the text data comprises first text data,the prompt template comprises second text data, andthe prompt comprises the second text data and the value of the data field.

15. The computing system of claim 13, wherein:the prompt template comprises a first prompt template,the data field comprises a first data field,the semantic label comprises a first semantic label selected from a plurality of semantic labels,the plurality of semantic labels comprises a second semantic label associated with a second prompt template, andthe second prompt template defines a second data field.

16. The computing system of claim 13, wherein the generative machine learning model comprises a diffusion-based model.

17. One or more non-transitory computer-readable media storing computer-executable instructions that, when executed by a processor, cause the processor to perform operations comprising:receiving text data;providing the text data to a classifier machine learning model;receiving, from the classifier machine learning model, a semantic label representing a subject matter of the text data;determining, based on the semantic label, a prompt for generating a summary of the text data, by:identifying a prompt template that corresponds with the semantic label, wherein the prompt template defines a data field;identifying one or more portions of text, in the text data, associated with a subject of the data field;determining a value of the data field by using natural language processing to at least one of combine or compress information expressed in the one or more portions of text, wherein the value is different than the one or more portions of text; andgenerating the prompt based on the prompt template and the value of the data field;providing the prompt to a generative machine learning model configured to generate the summary based on the prompt and the text data;receiving, from the generative machine learning model, the summary; andpresenting the summary using a user interface.

18. The one or more non-transitory computer-readable media of claim 17, wherein:the text data comprises first text data,the prompt template comprises second text data, andthe prompt comprises the second text data and the value of the data field.

19. The one or more non-transitory computer-readable media of claim 17, wherein:the prompt template comprises a first prompt template,the data field comprises a first data field,the semantic label comprises a first semantic label selected from a plurality of semantic labels,the plurality of semantic labels comprises a second semantic label associated with a second prompt template, andthe second prompt template defines a second data field.

20. The one or more non-transitory computer-readable media of claim 17, wherein the generative machine learning model comprises a diffusion-based model.

Citation Information

Patent Citations

  • Generating personalized content summaries for users

    US10963273B2

  • Data processing system with machine learning engine to provide automated collaboration assistance functions

    US10972297B2

  • Content generation using target content derived modeling and unsupervised language modeling

    US11423234B2

  • Determining topic labels for communication transcripts based on a trained generative summarization model

    US11630958B2

  • Text reduction and analysis interface to a text generation modeling system

    US11861320B1