Method and system for training intent classification model by using intent description
The intent classification model enhances chatbot accuracy by using intent descriptions and a ranker to map user queries to intents, providing precise responses through retraining and similarity calculation.
Patent Information
- Application Number
- PCT/KR2025/006643
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-15
- Filing Date
- 2025-05-16
- Publication Date
- 2025-12-04
AI Technical Summary
Existing intent classification models in chatbots struggle to accurately map user utterances to predefined intents, leading to suboptimal response generation.
A method and system for learning an intent classification model using intent descriptions, which includes independent, dependent, and refined intent descriptions, and employs a ranker to calculate similarity and adjust the number of intent options, with retraining capabilities.
Improves the accuracy of intent classification by generating faithful and factual answers to user queries through advanced inference and estimation functions, mimicking human cognitive reasoning.
Smart Images

Figure KR2025006643_04122025_PF_FP_ABST
Abstract
Description
Learning method and system for an intention classification model using intention description
[0001] The present invention relates to a learning method and system for an intention classification model, and more particularly, to a learning method and system for an intention classification model using an intention description, which can improve the accuracy of intention classification by learning an intention classification model based on input data including an intention description.
[0002] Artificial intelligence (AI) technology has recently been garnering attention across society as it demonstrates cutting-edge developments. AI encompasses "a computer brain capable of executing tasks previously reserved for human intelligence," "the engineering and science of creating intelligent machines," and "a set of algorithmic systems designed to think, perceive, and act like humans," enabling computers to perform highly advanced, human-like intellectual abilities.
[0003] AI, combined with augmented reality, the Internet of Things, edge computing, and digital twins, is being touted as a key new technology that will drive the Fourth Industrial Revolution, promising highly integrated smart spaces. Furthermore, AI is gaining traction as a next-generation growth engine capable of evolving industrial ecosystems beyond simply solving standardized problems. It is actively being applied not only to IT, healthcare, agriculture, energy, automobiles, and robotics, but also to knowledge service industries such as distribution, finance, law, education, real estate, advertising, and communications. In other words, AI is integrating with all existing systems, not just those that seek to improve the convenience and quality of daily life, but also across the entire spectrum of our society's culture and arts, preparing for a new era.
[0004] Chatbots, task-oriented conversational systems that engage users through voice or text-based input and perform specific tasks, have recently been introduced and are being used in a variety of fields. Chatbots utilize conversational AI technologies like Natural Language Processing (NLP) to understand users' queries and automatically display responses.
[0005] Meanwhile, in these task-oriented conversational systems, intent classification technology, which accurately identifies the user's intent from the query, may be essential to accurately understand the user's query and provide appropriate services in response. Research on intent classification, which accurately identifies user intent from the query and maps the user's utterance to a predefined set of intents, is actively underway.
[0006] As a related technology, Effectiveness of pre-training for few-shot intent classification.(https: / aclanthology.org / 2021.findings-emnlp.96 / )(Zhang et al., Findings 2021) was published.
[0007] One embodiment of the present invention aims to provide a method and system for learning an intent classification model using intent descriptions, which can improve the accuracy of intent classification that maps a user utterance to one of a predefined set of intents by learning an intent classification model of a large-scale language model including intent descriptions in input data.
[0008] An embodiment of the present invention aims to provide a method and system for generating and providing highly accurate answers to user queries through a step-by-step process for advanced inference and estimation functions.
[0009] A system according to an embodiment of the present invention comprises: at least one processor; and at least one memory storing commands or information to be executed by the at least one processor; wherein operations performed by the commands or information to be executed by the at least one processor include: receiving a user query including user intents through a user input / output unit; outputting intent descriptions corresponding to the user intents from a language model stored in the memory; providing the intent descriptions stored in the memory to the user through the user input / output unit and receiving a user input; and using at least one intent description determined by the user input as an input prompt of an intent classification model executed by the at least one processor to perform intent classification; wherein the intent descriptions may include at least one of an independent intent description written independently of other intent descriptions, a dependent intent description written dependently on other intent descriptions, or a refined intent description refined by the user based on an independent or dependent intent description and input through the user input unit.
[0010] In addition, the command prompt input to the language model to output the intent descriptions from the language model may include an independent prompt to obtain first data including a plurality of intent descriptions for a single intent; a dependent prompt to obtain second data including a plurality of intent descriptions for a plurality of intents, wherein the context of each of the plurality of intents and the plurality of intent descriptions is analyzed; and a refined prompt to obtain third data input by a user based on the independent intent description or the dependent intent description.
[0011] Additionally, the input prompt may be comprised of an instruction and user query section and an intent options section including an intent name and intent descriptions for the intent name.
[0012] Additionally, it further includes a ranker that adjusts the number of the intent options, and the ranker can calculate the similarity between the user query and the intent description.
[0013] Additionally, the intent classification model can be retrained using at least a portion of the independent intent description, the dependent intent description, or the refined intent description.
[0014] Additionally, at least a portion of the first data may be provided as an input prompt when determining the performance of the intent classification model, or at least a portion of the second data may be provided as an input prompt when determining the performance of the intent classification model.
[0015] A method executed by at least one processor of one embodiment of the present invention comprises the steps of: receiving a user query including user intents through a user input / output unit; outputting intent descriptions corresponding to the user intents using a language model stored in a memory; providing the intent descriptions stored in the memory to the user through the user input / output unit and receiving a user input through the user input unit; using at least one intent description determined by the user input as an input prompt for an intent classification model executed by the at least one processor, such that the intent classification model performs intent classification; wherein the intent descriptions may include at least one of an independent intent description written independently of other intent descriptions, a dependent intent description written dependently on other intent descriptions, or a refined intent description refined by the user based on an independent or dependent intent description and input through the user input unit.
[0016] In addition, in the step of outputting the intent descriptions, a command prompt input to the language model is configured to generate a data set including the intent descriptions from the language model, and the command prompt may include an independent prompt to obtain first data including a plurality of intent descriptions for a single intent; a dependent prompt to obtain second data including a plurality of intent descriptions for a plurality of intents, wherein the context of each of the plurality of intents and the plurality of intent descriptions is analyzed; and a refined prompt to obtain third data by being input by a user based on the independent intent description or the dependent intent description.
[0017] Additionally, in the step where the intent classification model performs intent classification, the input prompt may be composed of an instruction and user query section and an intent option section including an intent name and intent descriptions for the intent name.
[0018] Additionally, the ranker that controls the number of intent options can calculate the similarity between the user query and the intent description and sort the intent descriptions in descending order according to the similarity.
[0019] Additionally, in the step where the intention classification model performs intention classification, the intention classification model may be retrained using at least a part of the independent intention description, the dependent intention description, or the refined intention description.
[0020] In addition, the method further includes a step of determining the performance of the intention classification model, and in the step of determining the performance of the intention classification model, at least a part of the first data may be provided as an input prompt when determining the performance of the intention classification model, or at least a part of the second data may be provided as an input prompt when determining the performance of the intention classification model.
[0021] A system according to an embodiment of the present invention comprises: at least one processor; and at least one memory for storing commands or information executed by the at least one processor; wherein operations performed by the commands or information executed by the at least one processor may include: an operation of inputting a user intent of query data obtained from a user through a prompt from a user input / output unit into a language model stored in the memory to generate intent descriptions for the user intent, thereby specifying the query intent; an operation of searching for information for generating an answer corresponding to the query intent; an operation of detecting response data corresponding to the query intent from the searched information; and an operation of generating an answer corresponding to the query intent based on the detected response data.
[0022] Additionally, the action of specifying the above query intent can generate an independent intent description that is written independently of other intent descriptions or a dependent intent description that is written dependently on other intent descriptions through the language model.
[0023] In addition, the operation of specifying the intent of the query may be performed by outputting the independent intent description and the dependent intent description through the user input / output unit, and at least one of the independent intent description or the dependent intent description may be selected through the user input / output unit, or a refined intent description refined by the user based on the independent or dependent intent description may be input through the user input / output unit, and an intent classification model may perform intent classification with the selected or input intent description.
[0024] Additionally, the action of searching for the above information may search for information related to the user intent and the intent descriptions in a database or the Internet.
[0025] In addition, the operation of detecting the response data may include an operation of determining an evidence paragraph related to the query data in the intent description, an operation of obtaining evidence data for the query data based on the determined evidence paragraph, and an operation of generating response data for the query data based on the obtained evidence data.
[0026] Additionally, the above-mentioned source data may be documents and websites collected through a database or the Internet.
[0027] A method executed by at least one processor of an embodiment of the present invention may include: a step of inputting a user intent of query data obtained from a user through a prompt of a user input / output unit of an interactive system into a language model stored in the memory to generate intent descriptions for the user intent, thereby specifying the query intent; a step of searching for information for generating an answer corresponding to the query intent from a database or the Internet; a step of detecting response data corresponding to the query intent from the searched information; and a step of generating an answer to the query intent based on the detected response data.
[0028] Additionally, in the step of specifying the query intent, the language model can generate an independent intent description or intent names that are written independently of other intent descriptions and a dependent intent description that is written dependently on other intent descriptions.
[0029] In addition, the step of specifying the intent of the query may include a step of outputting the independent intent description and the dependent intent description through the user input / output unit; a step of selecting at least one of the independent intent description or the dependent intent description through the user input / output unit, or a step of inputting a refined intent description refined by the user based on the independent or dependent intent description through the user input / output unit; and a step of performing intent classification by an intent classification model using the selected or input intent description.
[0030] In addition, the step of detecting the response data includes the step of determining an evidence paragraph related to the query data in the intent description; the step of obtaining basis data for the query data based on the determined evidence paragraph; and the step of generating response data for the query data based on the obtained basis data, wherein the basis data may be documents and websites collected through a database or the Internet.
[0031] According to one embodiment of the present invention, a method and system for learning an intent classification model using intent descriptions can be provided, which can improve the accuracy of intent classification that maps a user utterance to one of a predefined set of intents by learning an intent classification model by including intent descriptions in input data.
[0032] According to one embodiment of the present invention, there is an effect of being able to generate an intent description for a user's query and an intent description for the intent, and to provide a faithful, factual, and clearly grounded answer to an in-depth query to the user based on the intent description based on an advanced chain-of-thought reasoning and estimation function implemented in a process similar to human cognitive reasoning.
[0033] Figure 1 is a schematic diagram of an electronic device according to one embodiment of the present invention.
[0034] Figure 2 is a schematic diagram showing an example of a command prompt input to a language model.
[0035] Figure 3 is a schematic diagram showing an example of an input prompt input into an intent classification model.
[0036] FIG. 4 is a schematic diagram of a learning method for an intention classification model using intention description according to one embodiment of the present invention.
[0037] Figure 5 is a schematic diagram showing the accuracy performance of an intent classification model according to the number of intent options.
[0038] Figure 6 is a schematic diagram of a learning method using intent description according to another embodiment of the present invention.
[0039] Figure 7 is a schematic diagram of a method for generating an answer to a query according to another embodiment of the present invention.
[0040] In order to clarify the technical idea of the present disclosure, embodiments of the present disclosure will be described in detail with reference to the attached drawings. In describing the present disclosure, if a detailed description of a related known function or component is determined to unnecessarily obscure the gist of the present disclosure, the detailed description will be omitted. In the drawings, components having substantially the same functional configuration are given the same reference numbers and symbols as possible even if they are shown in different drawings. For convenience of explanation, devices and methods are described together when necessary. Each operation of the present disclosure does not necessarily have to be performed in the described order and may be performed in parallel, selectively, or individually.
[0041] The terms used in the embodiments of this disclosure have been selected from widely used, current terms, taking into account the functions of the present disclosure. However, these terms may vary depending on the intentions of those skilled in the art, precedents, the emergence of new technologies, etc. Furthermore, in certain cases, the applicant may arbitrarily select terms, and in such cases, their meanings will be described in detail in the description of the relevant embodiments. Therefore, the terms used in this specification should not be defined simply as names of terms, but rather based on their meanings and the overall content of the present disclosure.
[0042] Throughout this disclosure, singular expressions may include plural expressions unless the context clearly dictates otherwise. Terms such as "comprise" or "have" should be understood to indicate the presence of a feature, number, step, operation, component, part, or combination thereof, but do not preclude the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof. In other words, when it is said throughout this disclosure that a part "comprises" a certain component, unless specifically stated otherwise, this does not mean that other components may be included, but rather that other components may be excluded.
[0043] Expressions such as "at least one" modify the entire list of elements, not individual elements of the list. For example, "at least one of A, B, and C" and "at least one of A, B, or C" refer to only A, only B, only C, both A and B, both B and C, both A and C, all of A, B, and C, or any combination thereof.
[0044] In addition, terms such as “...unit”, “...module”, etc. described in the present disclosure mean a unit that processes at least one function or operation, which may be implemented as hardware or software, or a combination of hardware and software.
[0045] Throughout this disclosure, when a part is said to be "connected" to another part, this includes not only cases where the parts are "directly connected," but also cases where the parts are "electrically connected" with other elements intervening. Furthermore, when a part is said to "include" a component, this does not exclude other components, but rather includes other components, unless otherwise specifically stated.
[0046] The expression “configured to” as used throughout this disclosure can be used interchangeably with, for example, “suitable for,” “having the capacity to,” “designed to,” “adapted to,” “made to,” or “capable of.” The term “configured to” does not necessarily mean something that is “specifically designed to” in terms of hardware. Instead, in some contexts, the expression “a system configured to” can mean that the system, together with other devices or components, is “capable of.” For example, the phrase “a processor configured (or set) to perform A, B, and C” may mean a dedicated processor (e.g., an embedded processor) for performing those operations, or a generic-purpose processor (e.g., a CPU or application processor) that can perform those operations by executing one or more software programs stored in memory.
[0047] Artificial intelligence (AI) is a field of computer engineering and information technology that studies how to enable computers to perform human-like tasks, such as thinking, learning, and self-improvement. It aims to enable computers to mimic human intelligent behavior. Furthermore, AI does not exist in isolation; rather, it is closely linked, both directly and indirectly, to other fields of computer science. In particular, efforts are actively underway to incorporate AI elements into various fields of information technology and utilize them to solve problems in those fields.
[0048] Machine learning is a branch of artificial intelligence that empowers computers to learn without explicit programming. Specifically, machine learning is the study and development of algorithms and systems that learn from empirical data, make predictions, and improve their own performance. Rather than executing strictly defined, static program instructions, machine learning algorithms build specific models based on input data to derive predictions or decisions. The term "machine learning" can be used interchangeably with "machine learning."
[0049] Many machine learning algorithms have been developed to classify data. Representative examples include decision trees, Bayesian networks, support vector machines (SVMs), and artificial neural networks (ANNs). Decision trees are an analytical method that performs classification and prediction by diagramming decision rules in a tree-like structure. Bayesian networks are models that represent probabilistic relationships (conditional independence) between multiple variables in a graph structure. Bayesian networks are suitable for data mining through unsupervised learning. Support vector machines are supervised learning models for pattern recognition and data analysis, primarily used for classification and regression analysis. Artificial neural networks model the operating principles and interconnected relationships of biological neurons. They are information processing systems in which numerous neurons, called nodes or processing elements, are connected in layers.
[0050] An artificial neural network (ANN) is a model used in machine learning. It is a statistical learning algorithm inspired by biological neural networks (especially the brain, the central nervous system of animals) in machine learning and cognitive science. Specifically, an ANN can refer to a general model in which artificial neurons (nodes) form a network through the connection of synapses, which change the strength of the synaptic connections through learning, thereby achieving problem-solving capabilities. The term "ANN" can be used interchangeably with the term "neural network."
[0051] An artificial neural network can include multiple layers, each of which can include multiple neurons. Furthermore, an artificial neural network can include synapses, which connect neurons. An artificial neural network can generally be defined by three factors: a) the connection pattern between neurons in different layers, b) a learning process that updates the weights of the connections, and c) an activation function that generates an output value from a weighted sum of the inputs received from the previous layer.
[0052] Artificial neural networks may include, but are not limited to, network models such as Deep Neural Networks (DNNs), Recurrent Neural Networks (RNNs), Bidirectional Recurrent Deep Neural Networks (BRDNNs), Multilayer Perceptrons (MLPs), and Convolutional Neural Networks (CNNs). In this specification, the term "layer" may be used interchangeably with the term "layer."
[0053] Artificial neural networks are categorized into single-layer neural networks and multi-layer neural networks based on the number of layers. A typical single-layer neural network consists of an input layer and an output layer. A typical multi-layer neural network consists of an input layer, one or more hidden layers, and an output layer.
[0054] The input layer is the layer that receives external data, and the number of neurons in the input layer is the same as the number of input variables, and the hidden layer is located between the input layer and the output layer. It receives signals from the input layer, extracts characteristics, and transmits them to the output layer. The output layer receives signals from the hidden layer and outputs output values based on the received signals. The input signals between neurons are multiplied by each connection strength (weight) and then added, and if this sum is greater than the threshold of the neuron, the neuron is activated and outputs the output value obtained through the activation function.
[0055] Meanwhile, deep neural networks, which include multiple hidden layers between the input and output layers, are representative artificial neural networks that implement deep learning, a type of machine learning technique. The term "deep learning" can be used interchangeably with "deep learning," and the term "learning" can be used interchangeably with "training."
[0056] The workflow of machine learning consists of a series of steps: collecting data for learning and validation, modeling, and then training the model. This can include the processes of collecting training data, inspecting and exploring the data, preprocessing and cleaning the data, modeling, and training.
[0057] 1. Collect training data
[0058] The training data applied to the learning model of this specification can be generated using data collected from multiple samples. In this specification, at least one or more different types of training data sets can be used to train the learning model, and each training data set can further include one or more experimental results used as feature labels. At least a portion of the training data set can be used to train the learning model, and another portion can be used to validate the learned learning model.
[0059] 2. Checking and exploring data
[0060] Once training data for learning a learning model is collected, the collected training data can be inspected and explored for data structure, noisy data, and data cleaning methods for applying machine learning.
[0061] This data review and exploration phase is called Exploratory Data Analysis (EDA), and EDA can be defined as the process of observing and understanding collected data from various perspectives. Before data learning, visualizations such as graphs and statistical tests are used to examine independent and dependent variables, variable types, and their data types, allowing for preliminary identification of data characteristics and inherent structural relationships. Through EDA, data distributions and values can be examined to better understand the phenomena expressed by the data and identify potential problems. Furthermore, through the process of examining data from various perspectives, various patterns that might not have been detected during the problem definition phase can be discovered, allowing for modification of existing hypotheses or the development of new ones. Exploratory data analysis can broadly include the process of searching for outliers and analyzing the relationships between data attributes.
[0062] The process of detecting outliers involves determining whether data contains outliers. This process can involve sampling, statistical methods, and visualization methods. Sampling methods extract a random sample from the data to identify overall trends and anomalies in the data values. Statistical methods can utilize summary statistics such as the mean, median, and mode to determine the center of the data, or the range and variance to determine the distribution of the data. Visualization methods can utilize probability density functions, histograms, dotplots, word clouds, time series charts, and maps to determine which statistical indicators are appropriate for each attribute of the collected data. However, when using statistical indicators, it is important to note that the mean reflects all data values in the set, so outliers can affect the value, whereas the median uses the single value in the middle, so it can produce representative results even with outliers.
[0063] The process of analyzing the relationship between data attributes is to find combinations of attributes that have meaningful correlations within the data. The relationship analysis can be performed differently depending on the combination of attributes between qualitative attributes (Categorical Variable; Qualitative) that cannot be expressed numerically but can be arbitrarily quantified and quantitative attributes (Numeric Variable; Quantitative). The qualitative-qualitative relationship (Categorical - Categorical) can be displayed by using cross tables and mosaic plots to count the number of values corresponding to each pair of attribute values. The quantitative-qualitative relationship (Numeric-Categorical) can be visually expressed by observing statistical values (mean, median, etc.) by category or using box plots. The quantitative-quantitative relationship (Numeric-Numeric) can be analyzed for the association between two attributes using correlation coefficients. A correlation coefficient of -1 indicates a negative correlation where the two attributes change in opposite directions, 0 indicates no correlation, and 1 indicates a positive correlation where the two attributes always change in the same direction. The relationship between two attributes with a correlation coefficient can take many forms, and this can be visually represented using a scatter plot.
[0064] 3. Data preprocessing and cleaning
[0065] Once the data has been inspected and explored, data preprocessing is performed to transform it into a format suitable for machine learning training models. Data preprocessing involves refining data and transforming it into a form understandable by the model. Data preprocessing typically includes handling missing data, removing outliers, scaling, categorical data encoding, feature selection and extraction, and data transformation. The detailed data preprocessing steps can be performed in whole or in part, and a separate machine learning model may be used for data preprocessing.
[0066] Handling missing data involves handling missing values in data. Missing values can be displayed as NaN (Not a Number) or blank, or they can be deleted. Filling in or deleting missing values within the data improves data completeness. When filling in missing values, values such as the mean, median, or mode can be used.
[0067] Outlier removal is the process of removing outliers, values that deviate from the normal data pattern. Outliers can degrade model performance and should therefore be removed or replaced. Identifying outliers can be accomplished by deleting the corresponding rows or columns or replacing them with different values.
[0068] Data scaling is the process of adjusting the size of data. Through data scaling, the range of data can be adjusted, and the performance of the model or the convergence speed can be improved. Through data scaling, the characteristics of the data can be adjusted to a similar range, and data scaling can generally be applied with standardization and normalization. Standardization is a method of converting data into a distribution with a mean of 0 and a standard deviation of 1, and is mainly converted using the mean and standard deviation, and the standardized value z is It can be expressed as (x is the original value, μ is the mean, σ is the standard deviation). Normalization is a method to convert the range of data to [0,1] or [-1,1], and mainly converts data using the minimum and maximum values, and the normalized value x norm silver can be expressed as (x is the original value, x min is the minimum, x max is the maximum value).
[0069] Categorical data encoding is the process of converting categorical variables, represented as strings or integers that cannot be directly input into a model, into numerical data types that can be input into the model. Typically, one-hot encoding or label encoding is used to convert categorical variables into numerical data types.
[0070] Feature selection and extraction is a process to improve model performance by selecting the most useful features for model learning or extracting new features. This process can reduce model complexity and prevent overfitting.
[0071] Data transformation is the process of transforming data to extract new information or to improve model understanding. This can include tokenizing text data or preprocessing image data. Data transformation can extract useful features from source data or transform data into an appropriate format, improving model performance.
[0072] Through data preprocessing as described above, the performance of machine learning models can be improved and stability can be secured.
[0073] Meanwhile, when training a learning model according to one embodiment of the present invention, a process of preprocessing information expressed in natural language and a process of learning a language model based on the preprocessed data may be performed.
[0074] 3-1. Text Preprocessing for Large-Scale Language Models
[0075] If the collected data has not been preprocessed to suit your needs, tokenization, cleaning, and normalization can be performed to suit the intended use of the data.
[0076] Tokenization refers to the process of dividing given data into units called tokens, which can be broadly defined as meaningful units. Tokenization can broadly include word tokenization and sentence tokenization.
[0077] Tokenization refers to the process of dividing given data into units called tokens, which can be broadly defined as meaningful units. Tokenization can broadly include word tokenization and sentence tokenization.
[0078] Word tokenization refers to cases where tokens are based on words, and in this case, words can include not only individual words but also word phrases and meaningful strings. Word tokenization separates words based on spaces or punctuation marks, such as periods, commas, question marks, semicolons, and exclamation marks. However, removing all punctuation or special characters during tokenization can sometimes result in tokens losing their meaning, necessitating a more precise tokenization algorithm. For example, if a word itself contains punctuation or uses special characters with meaning, simply removing them may not be enough. Therefore, tokenization rules such as the Penn Treebank Tokenization Rules can be applied during tokenization.
[0079] Sentence tokenization refers to the process of dividing text into sentences. Typically, if the data is unrefined, the corpus is not segmented into sentences, and thus sentence tokenization may be necessary to meet the intended use. Various rules for sentence tokenization can be defined depending on the language being used and how special characters are used within the corpus.
[0080] Tokenization is the process of classifying tokens according to their intended use. Before and after tokenization, cleaning and normalization are performed on text data to suit the intended use. Cleaning removes noise, while normalization integrates words with different representations and transforms them into a single, consistent word.
[0081] Refinement can occur before tokenization to eliminate any interference and facilitate tokenization. However, it can also be performed continuously and iteratively after tokenization to remove any remaining noise. The noise data removed during refinement are meaningless characters. Methods for removing unnecessary words include removing stopwords, low-frequency words, and short words.
[0082] Normalization work includes unifying words with different spellings based on rules, unifying uppercase and lowercase letters, etc. Unifying uppercase and lowercase letters is a normalization method that can reduce the number of words in English-speaking languages. In English-speaking languages, uppercase letters are only used in certain situations such as the beginning of a sentence, and most texts are written in lowercase letters, so unifying uppercase and lowercase letters can mostly be done by converting uppercase letters to lowercase letters.
[0083] Processing natural language in computing systems requires preprocessing, which involves digitizing text. This involves mapping each word in the text to a unique integer. This mapping process can utilize techniques such as integer encoding, padding, and one-hot encoding.
[0084] Integer encoding is a method of assigning integers to words. It creates a vocabulary by sorting words in order of frequency, and assigns integers in order of frequency, starting with the lowest number. Integer encoding performs sentence tokenization on text data containing multiple sentences, and performs word tokenization through parallel refinement and normalization. During this process, words are lowercase to unify the number of words, and stopwords and word length can be deleted. Through this, words can be recorded as keys and the frequency of each word as values. Integer encoding can be performed by sorting the text in order of frequency and assigning integers to words with high frequencies.
[0085] Padding is the process of randomly adjusting the length of sentences of different lengths within a text to the same length. Computing systems can perform parallel computations by grouping sentences of the same length into a single matrix. Specifically, to perform parallel computations, the lengths of sentences of different lengths within a text can be randomly padded with "0" to equalize the integer encoding results. Specifically, the longest sentence in a set of integer-encoded words can be identified, and a "0" can be added to the integer matrix corresponding to the length of the longest sentence. The computing system can then process sentences of the same length as a single matrix, allowing it to perform parallel processing. At this point, the computing system can ignore the "0" word, which is perceived as meaningless. This process of adjusting the size (shape) of data by filling it with a specific value is called padding. Using the number "0" to adjust the length is called zero padding.
[0086] One-hot encoding is a vector representation of words that uses the size of the vector as the dimension of the word set, assigning a value of 1 to the index of the word to be expressed, and 0 to all other indices. The vector expressed in this way is called a one-hot vector. One-hot encoding consists of integer encoding and an index assignment process. After integer encoding is performed and a unique integer is assigned to each word, the unique integer of the word to be expressed is regarded as an index, and a "1" is assigned to the corresponding position, and a "0" is assigned to the index positions of other words. However, one-hot encoding has the disadvantage that the space required to store the vector increases as the number of words increases (the dimensionality of the vector increases), and the similarity between words cannot be identified. To address these shortcomings, techniques that reflect the latent meaning of words and vectorize them into a multidimensional space include LSA (Latent Semantic Analysis), a count-based vectorization method; NNLM, RNNLM, Word2Vec, and FastText, which vectorize based on prediction; and the GloVe method, which uses both count-based and prediction-based methods.
[0087] Meanwhile, for computers to understand and process text, it must be appropriately converted into numbers. Because the performance of natural language processing can vary significantly depending on how words are represented, numerous techniques have been proposed to quantify words. Currently, the most widely used method is word embedding, which vectorizes each word through artificial neural network training.
[0088] Word embedding is a method of representing words as vectors, converting them into dense representations. The resulting word embedding is called a dense vector, or embedding vector. Word embedding methods include LSA, Word2Vec, FastText, and Glove.
[0089] 4. Modeling and Training
[0090] Artificial neural networks can be trained using training data. Here, "training" refers to the process of determining the parameters of an artificial neural network using training data to achieve objectives such as classification, regression analysis, or clustering of input data. Representative examples of artificial neural network parameters include the weights assigned to synapses and the biases applied to neurons.
[0091] An artificial neural network trained using training data can classify or cluster input data based on its patterns. Meanwhile, an artificial neural network trained using training data is referred to herein as a "trained model."
[0092] The following explains the learning methods of artificial neural networks. Learning methods of artificial neural networks can be broadly categorized into supervised learning, unsupervised learning, semi-supervised learning, and reinforcement learning.
[0093] Supervised learning is a machine learning method that infers a function from training data. Among these inferred functions, regression analysis is the process of outputting continuous values, while classification is the process of predicting and outputting the class of an input vector.
[0094] In supervised learning, an artificial neural network is trained with labels for training data. Here, the label can mean the correct answer (or result value) that the artificial neural network should infer when training data is input to the artificial neural network. In this specification, the correct answer (or result value) that the artificial neural network should infer when training data is input is called a label or labeling data. In addition, in this specification, setting a label on training data for learning of the artificial neural network is called labeling the training data. In this case, the training data and the label corresponding to the training data constitute a single training set, and can be input to the artificial neural network in the form of a training set.
[0095] Meanwhile, training data represents multiple features, and labeling the training data can mean that the features represented by the training data are labeled. In this case, the training data can represent the features of the input object in vector form. An artificial neural network can use the training data and labeled data to infer a function regarding the relationship between the training data and the labeled data. Furthermore, the parameters of the artificial neural network can be determined (optimized) by evaluating the function inferred by the artificial neural network.
[0096] Unsupervised learning is a type of machine learning in which training data is not labeled. Specifically, unsupervised learning can be a learning method that trains an artificial neural network to find and classify patterns in the training data itself, rather than the relationship between the training data and the corresponding labels. Examples of unsupervised learning include clustering and independent component analysis (ICA). In this specification, the term "clustering" may be used interchangeably with the term "clustering."
[0097] Examples of artificial neural networks that utilize unsupervised learning include generative adversarial networks (GANs) and autoencoders (AEs).
[0098] Generative adversarial networks (GANs) are a machine learning method in which two different AI components, a generator and a discriminator, compete to improve performance. In this case, the generator is a model that creates new data, capable of generating new data based on original data. The discriminator, a model that recognizes data patterns, can determine whether the input data is original or new data generated by the generator. The generator learns from data that fails to fool the discriminator, while the discriminator learns from data that the generator deceives. Accordingly, the generator can evolve to fool the discriminator as effectively as possible, while the discriminator can evolve to effectively distinguish between original data and data generated by the generator.
[0099] An autoencoder is a neural network that aims to reproduce the input itself as an output. An autoencoder comprises an input layer, at least one hidden layer, and an output layer. In this case, since the number of nodes in the hidden layer is smaller than that in the input layer, the data dimensionality is reduced, leading to compression or encoding. Furthermore, data output from the hidden layer is fed into the output layer. In this case, since the number of nodes in the output layer is larger than that in the hidden layer, the data dimensionality increases, leading to decompression or decoding.
[0100] Meanwhile, autoencoders express input data as hidden layer data by adjusting the connection strengths of neurons through learning. The hidden layer expresses information with a smaller number of neurons than the input layer. The ability to reproduce input data as output implies that the hidden layer has discovered and expressed hidden patterns in the input data.
[0101] Semi-supervised learning is a type of machine learning that utilizes both labeled and unlabeled training data. One technique for semi-supervised learning is to infer labels for unlabeled training data and then use these inferred labels to perform training. This technique can be useful in situations where labeling is expensive.
[0102] Reinforcement learning is the theory that, if an agent is given an environment in which it can determine the optimal action at any given moment, it can find the optimal path through experience without data. Reinforcement learning is primarily implemented using a Markov Decision Process (MDP). A Markov Decision Process is described as follows: first, an environment containing the information necessary for the agent to take the next action is provided; second, how the agent will act in that environment is defined; third, what rewards the agent will receive for performing well and what penalties will be imposed for performing poorly is defined; and fourth, the optimal policy is derived through repeated experience until the future reward reaches its maximum.
[0103] The structure of an artificial neural network is specified by the model configuration, activation function, loss function or cost function, learning algorithm, optimization algorithm, etc., and the hyperparameters are set in advance before learning, and the model parameters are set through learning afterwards, so that the content can be specified.
[0104] For example, factors that determine the structure of an artificial neural network may include the number of hidden layers, the number of hidden nodes included in each hidden layer, the input feature vector, and the target feature vector.
[0105] Hyperparameters include various parameters that must be initially set for learning, such as initial values for model parameters. Furthermore, model parameters include various parameters to be determined through learning. For example, hyperparameters may include initial values for inter-node weights, initial values for inter-node biases, mini-batch size, number of learning iterations, and learning rates. Furthermore, model parameters may include inter-node weights, inter-node biases, and more.
[0106] The loss function can be used as an indicator (standard) to determine the optimal model parameters during the learning process of an artificial neural network. In an artificial neural network, learning refers to the process of manipulating model parameters to reduce the loss function, and the purpose of learning can be seen as determining the model parameters that minimize the loss function. The loss function can mainly use the mean squared error (MSE) or the cross entropy error (CEE), but the present invention is not limited thereto. The cross entropy error can be used when the correct answer label is one-hot encoded. One-hot encoding is an encoding method that sets the correct answer label value to 1 only for neurons corresponding to the correct answer, and sets the correct answer label value to 0 for neurons that are not the correct answer.
[0107] In machine learning or deep learning, learning optimization algorithms can be used to minimize the loss function. Learning optimization algorithms include gradient descent (GD), stochastic gradient descent (SGD), momentum, Nesterov Accelerate Gradient (NAG), Adagrad, AdaDelta, RMSProp, Adam, and Nadam.
[0108] Gradient descent is a technique that adjusts model parameters in a direction that reduces the loss function value by considering the gradient of the loss function at the current state. The direction of model parameter adjustment is called the step direction, and the size of the adjustment is called the step size. Here, the step size can represent the learning rate. Gradient descent obtains the gradient by partially differentiating the loss function with respect to each model parameter, and updates the model parameters by changing the learning rate in the direction of the obtained gradient.
[0109] Stochastic gradient descent is a technique that divides learning data into mini-batches and performs gradient descent on each mini-batch to increase the frequency of gradient descent.
[0110] Adagrad, AdaDelta, and RMSProp are techniques for improving optimization accuracy by adjusting the step size in SGD. In SGD, momentum and NAG are techniques for improving optimization accuracy by adjusting the step direction. Adam combines momentum and RMSProp to improve optimization accuracy by adjusting the step size and step direction. Nadam combines NAG and RMSProp to improve optimization accuracy by adjusting the step size and step direction.
[0111] The learning speed and accuracy of artificial neural networks are significantly influenced by not only the network structure and the type of learning optimization algorithm, but also hyperparameters. Therefore, to obtain a good learning model, it is crucial not only to determine an appropriate artificial neural network structure and learning algorithm, but also to set appropriate hyperparameters.
[0112] Typically, hyperparameters are experimentally set to various values while training an artificial neural network, and the learning results are set to the optimal values that provide stable learning speed and accuracy.
[0113] Embodiments of the present invention are applied to a chatbot that converses with a user through voice or text-based input and performs specific tasks, understanding the speaker's questions and outputting appropriate answers. The chatbot's structure may include, depending on its core functions, question intent classification, named entity recognition, core keyword extraction, and answer search. The question intent classification function identifies the speaker's question intent and predicts the intent class for the question using an intent classification model. The named entity recognition function recognizes named entities by word token in the speaker's question, and the core keyword extraction function extracts nouns or verbs that are core to the meaning of the speaker's question using a morphological analyzer. The answer search function searches for and displays appropriate answers corresponding to the question intent, recognized named entities, and extracted core keywords from a learning database. In other words, when a user's query sentence is entered, the chatbot preprocesses the sentence, extracts keywords (word tokens) through a morphological analyzer, extracts only necessary keywords such as nouns and verbs, and removes stop words. Afterwards, the chatbot performs intent analysis and entity recognition on the extracted keywords to derive a corresponding response. For this purpose, chatbots generally use deep learning models such as intent analysis (classification) models and entity recognition models for natural language processing.
[0114] This embodiment may be related to fine tuning or prompt engineering for improving the accuracy of an intent classification model, which is one of the main components of such a chatbot. Fine tuning or prompt engineering is a technique for improving the accuracy and usability of a deep learning model. Fine tuning is a method that retrains a pre-trained model to fit a specific task or data set, and is a method that requires domain-specific data. Prompt engineering optimizes the input prompts of a model to obtain a desired output result, and can be usefully applied to various tasks in a relatively short period of time using a relatively small amount of data compared to fine tuning. A method and system for learning an intent classification model using intent descriptions according to an embodiment of the present invention may include both an intent classification model that retrains a pre-trained model based on learning data including intent descriptions, and an intent classification model that performs inference from the intent classification model based on input data (input prompts) including intent descriptions.
[0115] The method and system for learning an intent classification model using intent description according to one embodiment of the present invention can be applied to various fields using chatbots based on large-scale language models. The intent classification model optimized according to this embodiment can be utilized in customer support chatbots based on corporate customer response data, domain models optimized for specific domains (work fields) such as medicine, law, and finance, various natural language processing tasks such as text generation / summarization / translation, market trend analysis reflecting the latest information and trends, and personalized recommendation systems based on user service usage data.
[0116] Figure 1 is a schematic diagram of an electronic device according to one embodiment of the present invention.
[0117] As illustrated in FIG. 1, an electronic device (100) (hereinafter referred to as an electronic device) according to an embodiment of the present invention may include at least one processor (110), a memory (120), and a communication unit (130). The electronic device (100) is a basic configuration for performing a computing environment, and in other embodiments, the electronic device (100) may be implemented by additionally or alternatively including some other components, may be implemented as a single or multiple entities, or may be implemented as only some of the disclosed components. Components or at least some of the components inside or outside the electronic device (100) may be connected to each other through a BUS, a GPIO (General Purpose Input / Output), a SPI (Serial Peripheral Interface), or a MIPI (Mobile Industry Processor Interface), thereby transmitting and receiving data or signals.
[0118] Unless the context clearly indicates otherwise, the processor (110) may refer to a set of one or more processors, and may control components of the processor (110) and the electronic device (100) by executing software (e.g., commands, programs, etc.) stored in at least the memory (120). In addition, the processor (110) may perform various operations such as calculations, processing, data generation or processing, and may read data from or store data in the memory (120). The processor (110) may be composed of at least one core and may include a processor for data analysis, machine learning (ML), or deep learning (DL), such as a central processing unit (CPU), a general purpose graphics processing unit (GPGPU), or a tensor processing unit (TPU). The processor (110) may read software stored in the memory (120) to perform data processing for machine learning (or deep learning) of the present invention. According to one embodiment of the present disclosure, the processor (110) can perform operations for learning a neural network. The processor (110) can perform calculations for learning a neural network, such as processing input data for learning in deep learning, extracting features from the input data, calculating errors, and updating weights of the neural network using backpropagation. At least one of the CPU, GPGPU, and TPU of the processor (110) can process learning of a neural network model. For example, the CPU and GPGPU can together process learning of a neural network model and data classification using a neural network model. In addition, in one embodiment of the present disclosure, at least one processor (110) of the electronic device (100) can be used together to process learning of a neural network model and data classification using a neural network model.
[0119] The memory (120) is for storing various data, and the data is data acquired, processed, or used by at least one component of the electronic device (100), and may include software (e.g., commands, programs, etc.). Unless explicitly expressed otherwise in the context, the memory (120) may refer to a set of one or more memories, and may include at least one type of storage medium among a flash memory type, a hard disk type, a multimedia card micro type, a card type memory (e.g., SD or XD memory, etc.), a RAM (Random Access Memory), a SRAM (Static Random Access Memory), a ROM (Read Only Memory), an EEPROM (Electrically Erasable Programmable Read-Only Memory), a PROM (Programmable Read-Only Memory), a magnetic memory, a magnetic disk, an optical disk, and a web storage that performs a storage function on the Internet. The instructions or programs or software stored in the memory (120) may be used to refer to an operating system, an application for controlling components of the electronic device (100), or middleware that provides various functions to the application so that the application can utilize the components of the electronic device (100). In one embodiment, when the processor (110) performs a specific operation, the memory (120) may store instructions that are performed by the processor (110) and correspond to the specific operation.
[0120] The communication unit (130) performs wireless or wired communication between the electronic device (100) and another device (e.g., a user terminal or another server), and the communication unit (130) can use wireless communication systems according to methods such as eMBB, URLLC, MMTC, LTE, LTE-A, NR, UMTS, GSM, CDMA, WCDMA, TDMA, FDMA, OFDMA, SCFDMA, WiBro, WiFi, Bluetooth, NFC, GPS, or GNSS. In addition, the communication unit (130) can use various wired communication systems such as USB, HDMI, RS-232 (Recommended Standard-232), POTS (Plain Old Telephone Service), PSTN (Public Switched Telephone Network), xDSL (x Digital Subscriber Line), RADSL (Rate Adaptive DSL), MDSL (Multi Rate DSL), VDSL (Very High Speed DSL), UADSL (Universal Asymmetric DSL), HDSL (High Bit Rate DSL), and local area network (LAN). In one embodiment of the present invention, the communication unit (130) can be configured regardless of the communication mode such as wired or wireless, and can be configured with various communication networks such as a personal area network (PAN), a wide area network (WAN), etc. Additionally, the network may be the well-known World Wide Web (WWW), or may utilize a wireless transmission technology used for short-range communication, such as Infrared Data Association (IrDA) or Bluetooth. The technologies described in one embodiment of the present invention can also be used in other networks mentioned above.
[0121] An electronic device (100) according to an embodiment of the present invention can execute software that configures a learning system for an intention classification model using an intention description or configures a learning method for an intention classification model using an intention description.
[0122] The learning system of the intent classification model according to an embodiment of the present invention can be applied to a task-oriented dialogue system such as a chatbot to improve the accuracy of the intent classification model for understanding the intent of a user query. In general, an intent classification model can predict the domain (or class) used for learning. Therefore, even when unseen data is input to such a pre-trained intent classification model, it is necessary to smoothly perform prediction or classification of the unseen data. In this case, additional work (fine-tuning or prompt engineering) may be required for the intent classification model. In other words, even when unseen data is input to the intent classification model, the intent classification model may be modified to predict or classify an unseen domain (class; unseen domain or unseen class) not included in the learning data set, rather than classifying it into one of the learned domains (classes; seen domain or seen class) by its internal mechanism. When modifying such an intent classification model, the learning system and method of the intent classification model of the present embodiment can be applied.
[0123] In one embodiment, independent intent descriptions, dependent (or "dependent") intent descriptions, and refined intent descriptions can be generated. An independent intent description can be obtained by providing a description for only one intent and three user query examples for that intent. By omitting information about other intents, the intent can be described individually without comparison. Consequently, independent intent descriptions may not sufficiently reflect the relative differences between other intents, resulting in relatively low quality. Dependent intent descriptions can be generated by providing a prompt that includes a list of all intents, allowing each intent description to be distinguished from other intents. Therefore, generated dependent intent descriptions are likely to have higher quality than independent intent descriptions because they clearly distinguish specific intents from others. Considering the possibility that automatically generated intent descriptions, such as independent and dependent intent descriptions, may not clearly reflect the differences between intents, a refined intent description, manually refined by a human, can also be generated. A refined intent description is a manual description created by a human to clearly distinguish intents from other intents, resulting in higher quality than automatically generated descriptions.
[0124] A learning system for an intent classification model using intent descriptions according to one embodiment of the present invention outputs a data set including intent descriptions of an intent classification model from a language model, uses at least a portion of the data set as an input prompt of the intent classification model to perform intent classification, and determines the performance of the intent classification model using at least a portion of the data set as an input prompt of the intent classification model. Here, the data set may include first data including independent intent descriptions and second data including dependent intent descriptions. That is, the intent classification model may be retrained or tested with the first data or the second data.
[0125] In one embodiment, the learning system may obtain or generate a data set for retraining a pre-trained intent classification model from a separate language model. The language model of one embodiment of the present invention may be an AI chatbot that generates output in response to an input prompt, such as ChatGPT. The learning system of one embodiment may obtain two data sets from the language model, the first data including independent intent descriptions and the second data including dependent intent descriptions.
[0126] That is, as illustrated in FIG. 2, the learning system of one embodiment can obtain first data and second data by inputting a command prompt (independent prompt) to include an independent intent description in a language model such as ChatCPT and a command prompt (dependent prompt) to include a dependent intent description, respectively.
[0127] Referring to FIG. 2, first data can be acquired through an independent prompt to include an intent description for a single intent. That is, the first data acquired through the independent prompt can include an intent name and an intent description for the intent name. The first data acquired through such an independent prompt will include multiple intent names and intent descriptions for the intent names, and it will be difficult or impossible to determine the differences between the multiple intent names included in the first data by an intent classification model. That is, the independent prompt can include a single intent and three user queries for the intent, and other intents are excluded from the prompt. In addition, the intent description for the intent included in the independent prompt is called an independent intent description because it is written independently without analyzing the context of the intent descriptions for other intents. In this way, independent intent descriptions are created or established independently of other intent descriptions, without analyzing, considering, referencing, or referencing the context of other intent descriptions, and are not dependent on or influenced by other intent descriptions. Therefore, the collected intent descriptions lack comparative context, resulting in low quality intent descriptions. In one embodiment, the independent prompt may be invoked multiple times to obtain multiple independent intent descriptions for a single intent name.
[0128] Referring to FIG. 2, second data can be acquired through a dependent prompt to include intent descriptions for multiple intents. That is, the second data acquired through the dependent prompt can include multiple intent names and intent descriptions for the corresponding intent names. This second data includes multiple intent names and intent descriptions for the corresponding intent names, and the differences between the multiple intent names included in the second data can be determined by an intent classification model. That is, a dependent prompt can include multiple intents and three user queries for each intent in a single prompt. Multiple intents are included in a single dependent prompt, and the prompt's directive acquires intent descriptions for the multiple intents, but each intent description can be set so as not to include a superordinate or subordinate concept of another intent description. In other words, each intent description can be set so as not to overlap or duplicate the content of another intent description. In this way, the dependent intent description can be created or set dependently by analyzing the context of another intent description. That is, a dependent intent description analyzes, considers, references, or refers to the context of another intent description, and thus may be dependent on and influenced by the other intent description. Accordingly, since a dependent intent description is related to the content of another intent description and is created or established by taking this into consideration, the generated intent descriptions including all possible intents within the prompt can be uniquely distinguished from each other, and thus the quality of the intent description of the second data may be higher than that of the first data. In one embodiment, a dependent prompt may be called multiple times to obtain multiple dependent intent descriptions for a single intent name.
[0129] In this way, the data set obtained from the language model can be used as retraining data for fine-tuning the intent classification model and as test data for testing or determining the performance of the intent classification model after fine-tuning has been completed.
[0130] Meanwhile, in one embodiment, in addition to the first or second data, third data may be included, in which the intent and the intent description for the intent are manually reviewed and adjusted by the operator. The third data may include refined intent descriptions. That is, the third data is the highest quality data for determining the accuracy of the intent classification model. The third data may be used solely for validating the intent classification model, or may be selectively included in the data set to improve the accuracy of the intent classification model.
[0131] In addition, the data set secured as above can be set in the form of an input prompt for fine-tuning an intention classification model, and an example of an input prompt based on the data set is illustrated in Fig. 3.
[0132] Referring to FIG. 3, the input prompt inputted into the intent classification model can be divided into a section including an instruction and the user query for classifying the intent given to the model, and a section including intent options. Here, the intent options can include an intent name and an intent description for the intent name. In other words, the input prompt for fine-tuning the intent classification model can be generated based on the first data, the second data, and additionally the third data, and the formats of the input prompts based on the first to third data can be generated identically.
[0133] In one embodiment, the learning system can perform intent classification of an intent classification model by inputting an input prompt based on a data set of a language model as described above, to improve the performance of the intent classification model. In this case, the input prompt input to the intent classification model may be based on the first data, the second data, or the third data, or may include all of these.
[0134] Additionally, the learning system of one embodiment can determine the performance of an intent classification model by inputting a test data set into a retrained intent classification model based on a retraining data set.
[0135] In this way, an intention classification model retrained based on a data set including intention descriptions can have improved classification accuracy compared to a model that has not been retrained, and the evaluation of the model will be described below.
[0136] Meanwhile, the learning system of one embodiment may further include a ranker to adjust the number of intent options included in the input prompt for retraining. If the input prompt for model retraining includes intent descriptions, the length of the input prompt increases proportionally with the number of intent options.
[0137] For example, assuming that the model can receive up to 1024 tokens as input, providing a 10-word description for each of 100 intents will likely exceed the input length limit. To address this issue, in one embodiment, the ranker calculates the similarity between the user query and the intent description, sorts all intent options in descending order of similarity, and then passes only the top k intents to the intent classification model. In one embodiment, by selecting the k intent options with the highest similarity, the input length can be optimized instead of including the entire intent in the model input. The performance evaluation of the intent classification model by increasing or decreasing the number of intent options will be described below.
[0138] As illustrated in FIG. 4, a method for learning an intention classification model using a language model implemented in a learning system for an intention classification model using a language model according to an embodiment of the present invention may include a step of generating a data set including an intent description of the intention classification model using the language model (S110), a step of using at least a part of the data set as an input prompt of the intention classification model to perform intent classification by the intention classification model (S120), and a step of determining the performance of the intention classification model using at least a part of the data set as an input prompt of the intention classification model (S130). Here, the data set may include first data including an independent intent description and second data including a dependent intent description.
[0139] In the step (S110) of generating a data set including the intent description of the intent classification model using the language model, the learning system can obtain a data set for the pre-trained intent classification model from a separate language model. That is, the learning system of the present embodiment can obtain a data set for fine-tuning the intent classification model from a separate language model, for example, ChatGPT. To obtain the data set from the language model, the learning system inputs a pre-written command prompt into the language model to obtain the data set. At this time, the command prompt input into the language model can include two command prompts to determine the quality of the data. The independent prompt can be a command prompt for obtaining first data including the independent intent description from the language model, and the dependent prompt can be a command prompt for obtaining second data including the dependent intent description.
[0140] The first data obtained through independent prompts includes multiple intent names and intent descriptions for those intent names. However, the intent classification model makes it difficult or impossible to determine the differences between the multiple intent names included in the first data. In other words, the intent descriptions in the first data lack comparative context, resulting in low quality intent descriptions.
[0141] The second data obtained by the dependent prompt includes multiple intent names and intent descriptions for the corresponding intent names. This second data includes multiple intent names and intent descriptions for the corresponding intent names, and the intent classification model allows the intent names included in the second data to be distinguished from each other. In other words, since the intent descriptions in the second data can be uniquely distinguished from each other, the quality of the intent descriptions in the second data can be higher than that of the first data.
[0142] In this way, the data set obtained from the language model can be used as retraining data for fine-tuning the intent classification model and as test data for testing the intent classification model after fine-tuning has been completed.
[0143] In the step (S120) where the intent classification model performs intent classification by using at least a part of the data set as an input prompt of the intent classification model, the input prompt inputted to the intent classification model may have a form of a section including an instruction and a user query for classifying the intent given to the model (instruction and the user query) and a section including an intent option (intent option). Accordingly, the data set acquired from the language model is reset to the form of an input prompt of the intent classification model. A first input prompt based on first data configured to include an independent intent description or a second input prompt based on second data configured to include a dependent intent description may be inputted to the intent classification model to fine-tune the intent classification model. An intent classification model retrained with the first input prompt and an intent classification model retrained with the second input prompt may differ in classification accuracy and performance, and a performance comparison between these models will be described below.
[0144] In the step S130 of determining the performance of the intent classification model by using at least a portion of the data set as an input prompt of the intent classification model, the learning system of one embodiment may perform a test using a first input prompt based on first data including an independent intent description obtained from a language model or a second input prompt based on second data including a dependent intent description. At this time, the input prompts for the test are distinct from the input prompts for training the intent classification model, and the input prompts for the test are input to a baseline model that has not been retrained, i.e., a vanilla intent classification model, an intent classification model retrained with the first input prompt, and an intent classification model retrained with the second input prompt, respectively, so as to test each model and evaluate the performance of the model.
[0145] Meanwhile, a method for learning an intent classification model using a language model of one embodiment may further include a step of adjusting the number of intent options included in a first input prompt based on first data, a second input prompt based on second data, and a third input prompt based on third data, i.e., adjusting the number of intent options of an input prompt of an intent classification model.
[0146] To this end, the learning system of one embodiment can select only the top k intents by sorting all intent options in descending order of similarity in a ranker that calculates the similarity between the user query and the intent description included in the input prompt.
[0147] The performance of an intention classification model can be evaluated according to a learning method and system for an intention classification model using an intention description of an embodiment of the present invention having a configuration as described above.
[0148] The intent classification performance of each model can be evaluated by testing a first intent classification model retrained with a first input prompt including independent intent descriptions derived from a language model, a second intent classification model retrained with a second input prompt including dependent intent descriptions, and a baseline model trained without intent descriptions.
[0149] Types of Descriptions Used in Testingwithout descriptionsindependent descriptiondependent descriptionTypes of Descriptions Used in Trainingwithout descriptions84.28%±3.95%84.15%±3.67%90.55%±2.16%independent description81.93%±4.05%85.64%±3.53%90.97%±1.45%dependent description82.1%±3.56%86.99%±3.09%91.75%±1.91%
[0150] As shown in [Table 1], the first intent classification model (independent descriptions), the second intent classification model (dependent descriptions), and the baseline model (without descriptions) were tested on a test data set that did not include intent descriptions. As a result, the baseline model showed the highest performance of 84.28%, the first intent classification model showed a lower performance of 81.93%, and the second intent classification model showed a performance of 82.1%. However, when each model was tested with the first input prompt (independent descriptions) that included independent intent descriptions, the first intent classification model and the second intent classification model showed performances of 85.64% and 86.99%, respectively, which were 1.49% and 2.84% better than the baseline model. When testing each model with a second input prompt containing dependent intent descriptions, the first and second intent classification models achieved accuracy rates of 90.97% and 91.75%, respectively, representing a 0.42% and 1.2% performance improvement over the baseline model. This demonstrates that when testing based on input prompts containing intent descriptions, intent descriptions are more effective in interpreting the detailed meaning of the intent of a user's utterance, and that adjusting the model based on intent descriptions can improve performance in testing.
[0151] In addition, the second intent classification model retrained with dependent intent descriptions shows a performance of 86.99% when tested with the first input prompt including independent intent descriptions, whereas it shows a performance of 91.75% when tested with the second input prompt including dependent intent descriptions. This confirms that improving the quality of input prompts including intent descriptions during testing has a greater impact on improving model performance than model training.
[0152] In addition, the second intent classification model retrained based on the second input prompt including the dependent intent description was shown to have improved performance during testing compared to the first intent classification model, which confirms that the performance of the model can be improved by improving the quality of the input prompt for retraining.
[0153] Types of Descriptions Used in Testing1 dependent description1 cleansed descriptionTypes of Descriptions Used in Training5 dependent descriptions82.05%±3.15%85.28%±1.69%1 dependent descriptions82.52%±2.44%85.71%±1.61%1 cleansed descriptions83.4%±3.71%85.79%±1.69%
[0154] Meanwhile, in one embodiment, performance can be evaluated based on the number of intent descriptions (the number of intent options) within the input prompts used during retraining and testing of an intent classification model. As shown in [Table 2], testing was conducted using the trained model by varying the number of intent descriptions in a second input prompt containing dependent intent descriptions. At this time, performance was also evaluated based on the quality of the intent descriptions using a third input prompt based on third data qualitatively adjusted by a human operator, including data containing dependent intent descriptions.
[0155] After preparing an intent classification model retrained using input prompts containing 5 dependent intent descriptions per intent (5 dependent descriptions), a retrained intent classification model retrained using input prompts containing 1 dependent intent description per intent (1 dependent description), and a retrained intent classification model retrained using input prompts containing 1 dependent intent description per intent that was manually adjusted (refined) by a human operator (1 cleansed description), each model was tested based on input prompts containing 1 dependent intent description per intent and 1 dependent intent description per intent that was manually adjusted by a human operator. In this case, the input prompts manually adjusted by a human operator had the highest quality intent descriptions. As shown in [Table 2], the performance of the model trained with a single intent description and the model trained with multiple intent descriptions did not differ significantly, but the model trained with higher quality intent descriptions (manually adjusted by a human operator) was confirmed to have the highest performance. This confirmed that the intent classification model is more affected by the quality of the intent descriptions than the quantity of the intent descriptions.
[0156] Meanwhile, referring to FIG. 5, the number of intent options (the number of intent descriptions) included in the input prompt for retraining the intent classification model can be optimized. In one embodiment, the learning system includes a ranker for controlling the number of intent options included in the input prompt for retraining. The ranker can calculate the similarity between the user query and the intent description of the input prompt and sort all intent options in descending order according to the similarity. In other words, the ranker performs the function of passing only the top k intents among the descendingly sorted intent options to the intent classification model. Referring to FIG. 5, it can be confirmed that the performance of the intent classification model improves as the number of top intent options k increases. For example, in the CLINC data set, the intent classification model exhibits an accuracy (performance) of approximately 44.21% when k is 1, and its performance improves as k increases, reaching an accuracy of approximately 90% when k reaches 13. Based on these results, it is confirmed that the optimal performance is achieved when retraining or testing the intent classification model using input prompts having the top 10 intent options. For example, if the CLINC data set contains 75 intent options and each intent description is 10 tokens long, approximately 1,200 to 1,300 tokens are required, but if only the top 10 intent options are used using the ranker, the length of the input prompt can be reduced to 300 to 400 tokens. In other words, the learning system of this embodiment can obtain the same similar performance in the intent classification model while reducing the input size by approximately 75% by setting the number of intent descriptions in the input prompt to 10 using the ranker.
[0157] As described above, according to the learning method and system for an intention classification model using an intention description of an embodiment of the present invention, and the evaluation results of the learning system of an embodiment, the intention classification model retrained based on the intention description of the intention shows higher performance when a prompt based on the intention description is used during testing, and it can be confirmed that a higher quality of the intention description during training and testing of the model affects the improvement of the performance of the model, and the quality of the intention description is more effective in improving the performance of the model than the number of the intention descriptions.
[0158] In one embodiment, the processor may receive a user's utterance as input, refer to a database including a plurality of intent candidates and a natural language-based description of the intent, evaluate a similarity between the user's utterance and the natural language-based description, determine a top k intent candidate having a high relevance to the user's utterance based on the similarity evaluation, and determine an intent appropriate for the user's utterance using the determined k intent candidates and the natural language-based description as input.
[0159] In one embodiment of the present invention, independent intent descriptions, dependent (or interdependent) intent descriptions, and refined intent descriptions are generated, and these generated intent descriptions can be provided to a user via an interactive system. In a prompt displayed to the user via the interactive system's display, the independent intent description may include a description of only one intent and provide three user query examples for that intent. In this case, the independent intent description does not include information about other intents, allowing the intent to be described individually without comparison. Consequently, the independent intent description may not sufficiently reflect the relative differences between other intents, resulting in a relatively low quality. The dependent intent descriptions displayed to the user can be generated and provided to the user by providing a prompt that includes a list of all intents, allowing each intent description to be distinguished from other intents. In other words, the generated dependent intent descriptions are likely to be of relatively higher quality than the independent intent descriptions because they can clearly distinguish specific intents from others. Considering the possibility that automatically generated intent descriptions, such as independent and interdependent intent descriptions, may not clearly reflect the differences between intents, a refined intent description manually refined by a human (user) may also be generated.
[0160] That is, based on the prompts presented to the user via the interactive system's display, the user can create a refined intent description based on the independent or dependent intent descriptions provided in the prompt. These refined intent descriptions, manually created by a human for each intent, are clearly distinguishable from other intents and can thus be of higher quality than automatically generated descriptions.
[0161] That is, in one embodiment of the present invention, independent / dependent intent descriptions generated from a language model can be provided to a user via a prompt in an interactive system, and user input can be obtained from the user based on the provided intent descriptions. The user input can be at least one of independent intent descriptions or dependent intent descriptions selected for training or retraining a learning system of an intent classification model, or can further be a refined intent description directly written by the user.
[0162] An interactive system according to one embodiment of the present invention includes a user computing device and a server computing system, and each device and system can be communicatively connected through a communication unit.
[0163] In one embodiment, a user computing device may learn an artificial intelligence model, relearn a model, or predict or infer target characteristics using an artificial intelligence model built into the device or provided by a server computing system. Furthermore, the server computing device may provide a service for predicting target characteristics to the user computing device via an application or the web, based on a user request via the user computing device.
[0164] User computing devices may include wearable devices such as smartphones, tablet PCs, and other types of computing devices, such as desktop computers. These user computing devices include at least one processor and memory. The memory may include one or more non-transitory / transitory computer-readable storage media and combinations thereof, and may include web storage on a server that performs memory storage functions over the Internet. The memory may store data and instructions necessary for one or more processors to perform operations of an application for learning / relearning an artificial intelligence model or predicting target characteristics.
[0165] In addition, the user computing device can store at least one artificial intelligence model. For example, the user computing device can store machine learning models such as multiple neural networks, and other types of machine learning models including linear / nonlinear models. In addition, the user computing device can store a prompt template as an input means to be used in the process of retraining the artificial intelligence model or predicting target characteristics. That is, in one embodiment, the user computing device can perform target prediction based on data received by requesting performance through a prompt during the process of retraining or fine-tuning the model or predicting target characteristics. In addition, the server computing system can perform a process corresponding to the requested task through an embedded artificial intelligence model in response to the task requested through the user computing device, and the performance result can be transmitted to the user computing device. Such a user computing device can include at least one user input unit that detects a user's input. For example, the user input unit may include a touch screen that detects the touch of a user's input medium (e.g., a finger or stylus), an image sensor that detects the user's motion input, a microphone that detects the user's voice input, buttons, a mouse, and a keyboard.
[0166] The server computing system includes at least one processor and memory, and the at least one processor may be configured as at least one or a plurality of processors electrically connected among central processing units (CPUs), graphics processing units (GPUs), application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors and / or other electrical units for performing functions.
[0167] The memory may include one or more non-transitory / transitory computer-readable storage media and combinations thereof. The memory may store artificial intelligence models, data, and instructions for at least one processor to learn / relearn an artificial intelligence model or perform target characteristic prediction. The memory may store a neural network or a linear / non-linear model, and may include a feed-forward neural network, a deep neural network, a recurrent neural network, a convolutional neural network, and the like. In one embodiment, the server computing system may further include a database, which is a storage for continuously storing and managing raw data that serves as the basis for learning the artificial intelligence model, augmented data (oversampled data) for improving the prediction performance of the artificial intelligence model, and the like. The database may include various forms of storage, including a file system and cloud storage. For example, a database may include at least one of a relational database that uses a structured query language (SQL) to define and manipulate data; a NoSQL database that is designed for flexibility and scalability and handles unstructured and semi-structured data; a data warehouse that centralizes large amounts of data from multiple sources and is optimized for querying and analysis, a data warehouse that stores large amounts of raw data in their native formats of structured, semi-structured, and unstructured data; and a local storage device or Network Attached Storage (NAS) that stores data in files in a format that is generally accessible by a computer operating system. In addition, a server computing system may further include separate input / output devices for data input, output, etc.
[0168] The communication unit performs wireless or wired communication between the user computing device and the server computing system, and the communication unit can use wireless communication systems according to methods such as eMBB, URLLC, MMTC, LTE, LTE-A, NR, UMTS, GSM, CDMA, WCDMA, TDMA, FDMA, OFDMA, SCFDMA, WiBro, WiFi, Bluetooth, NFC, GPS, or GNSS. In addition, the communication unit can use various wired communication systems such as USB, HDMI, RS-232 (Recommended Standard-232), POTS (Plain Old Telephone Service), PSTN (Public Switched Telephone Network), xDSL (x Digital Subscriber Line), RADSL (Rate Adaptive DSL), MDSL (Multi Rate DSL), VDSL (Very High Speed DSL), UADSL (Universal Asymmetric DSL), HDSL (High Bit Rate DSL), and local area network (LAN). In one embodiment, the communication unit may be configured regardless of the communication mode, such as wired or wireless, and may be configured with various communication networks, such as a personal area network (PAN) and a wide area network (WAN). In addition, the communication network may be the well-known World Wide Web (WWW), and may also utilize a wireless transmission technology used for short-distance communication, such as infrared (IrDA: Infrared Data Association) or Bluetooth.
[0169] An interactive system of one embodiment of the present invention can perform an operation of specifying a query intent from query data obtained from a user (S310), an operation of searching for information for generating an answer corresponding to the query intent (S320), an operation of detecting response data corresponding to the query intent from the searched information (S330), and an operation of generating an answer corresponding to the query intent based on the detected response data (S340).
[0170] In the operation of specifying a query intent from query data obtained from a user (S310), an interactive system of one embodiment of the present invention receives a user query including user intents through a prompt of a user input / output unit (S210), outputs an intent description corresponding to the user intents from a language model stored in a memory (S220), provides the output intent description to the user through a prompt to receive user input (S230), and uses a data set including the intent description determined by the user input as an input prompt of an intent classification model so that the intent classification model can perform intent classification (S240). Here, the data set may include first data including an independent intent description, second data including a dependent intent description, or third data including an intent description refined by the user. That is, the intent classification model may be retrained or tested using at least one or more of the first data, the second data, or the third data.
[0171] In one embodiment, the conversational system may obtain intent descriptions corresponding to user intents included in a user query from a language model such as ChatGPT based on prompt input provided to the user, and may select or receive input from the user an intent description for retraining a pre-trained intent classification model among the intent descriptions obtained in this manner. That is, a data set for retraining an intent classification model may be generated based on user input including at least one of independent / dependent or refined intent descriptions.
[0172] To this end, the conversational system of one embodiment can generate command prompts for obtaining intent descriptions from a language model using the user intent contained in the user query. The command prompts can include prompts for obtaining independent intent descriptions (independent prompts), prompts for obtaining dependent intent descriptions (dependent prompts), and prompts for obtaining intent descriptions refined by the user (refined prompts). The conversational system can then display the generated prompts to the user and receive user input.
[0173] An independent prompt for obtaining an independent intent description provided to a user can obtain first data from a language model, with reference to FIG. 2, to include an intent description for a single intent. That is, the first data obtained through the independent prompt can include an intent name and an intent description for the corresponding intent name. The first data obtained through this independent prompt includes multiple intent names and intent descriptions for the corresponding intent names, and it is difficult or impossible to determine the differences between the multiple intent names included in the first data by the intent classification model. Furthermore, since the intent description for the intent included in the independent prompt does not analyze, compare, or determine the context of the intent descriptions for other intents, the independent intent description is created independently, without any relation to other intent descriptions. That is, the independent intent descriptions collected through the independent prompt lack a comparative context, resulting in low quality of the intent descriptions. In one embodiment, the independent prompt can be called multiple times to obtain multiple independent intent descriptions for a single intent name. Referring to FIG. 2, a dependent prompt for obtaining dependent intent descriptions provided to a user may obtain second data from a language model to include intent descriptions for multiple intents. That is, the second data obtained through the dependent prompt may include multiple intent names and intent descriptions for the corresponding intent names. The second data obtained through such a dependent prompt includes multiple intent names and intent descriptions for the corresponding intent names, and the intent classification model allows the differences between the multiple intent names included in the second data to be determined.That is, the dependent intent descriptions collected by the dependent prompt may be configured to obtain multiple intents and intent descriptions for the multiple intents, but each intent description may not include a superordinate or subordinate concept of another intent description. Each intent description generated by the dependent prompt may be configured to not overlap or duplicate the content of another intent description. That is, the dependent intent description may analyze, consider, refer to, or reference the content or context of another intent description, and may thus be dependent on and influenced by another intent description. Accordingly, the generated intent descriptions including all possible intents within the prompt may be uniquely distinguishable from each other, and thus the quality of the intent description of the second data may be higher than that of the first data. In one embodiment, the dependent prompt may be called multiple times to obtain multiple dependent intent descriptions for a single intent name.
[0174] In this way, the intent descriptions obtained from the language model can be provided to the user through a prompt of the conversational system, and at least one of the independent intent descriptions or the dependent intent descriptions (the first data or the second data or both) can be selected by the user.
[0175] Meanwhile, in one embodiment of the present invention, a refined intent description (third data) may be obtained by manually reviewing and adjusting an intent and an intent description for the corresponding intent through a refined prompt based on an independent intent description or a dependent intent description. The refined intent description is an intent description directly input by the user, and the refined intent description may be input by the user through a prompt of an interactive system. In other words, the third data is data with the highest quality for judging the accuracy of the intent classification model, and the third data may be included in a data set for verifying the intent classification model or improving the accuracy of the intent classification model.
[0176] That is, in one embodiment, the data set for retraining the intent classification model may include at least one of independent intent descriptions, dependent intent descriptions, or refined intent descriptions selected by the user based on user input, and the data set thus obtained may be set in the form of an input prompt for retraining the intent classification model as shown in FIG. 3 and input to the intent classification model.
[0177] An intent classification model that is retrained based on a newly input data set can more precisely identify or specify the intent of a user's query by more precisely identifying the intent contained in the user's query.
[0178] As described above, the operation (S320) of searching for information to generate an answer in response to the identified or specified user's query intent may include searching for documents or files included in the database of the interactive system, searching for specialized documents or files in an external database (e.g., a database storing academic papers or report documents) connected via the communication unit, and web browsing performed on the interactive system via the communication unit. The answer response model performed by the interactive system in one embodiment may search online / offline through a database or the web for specialized documents including content corresponding to the specified user query intent through an intent classification model. At this time, the searched documents or contents may be searched based on the query intent, intent name, and independent / dependent / refined intent description selected by the user by outputting them from a language model of the user query data. For example, specialized documents corresponding to the intent name included in the user query data, keywords extracted from the selected intent description, and the query intent or intent class determined from the intent classification model may be secured through a database search and web browsing.
[0179] The operation (S330) of detecting response data corresponding to the query intent from the searched information can be performed by an answer response model, which is an artificial intelligence model that inputs at least one piece of searched information (e.g., a paper, a report, or a website), query data, etc., and outputs at least one piece of response data based on the input intent description and query data.
[0180] In one embodiment, such a response model, upon inputting an intent description and a query, performs inference that implements a step-by-step process (in one embodiment, a multi-step inference process) for advanced inference and estimation functions, thereby providing high-quality response data for the input query. In one embodiment, the response model may be a large language model (LLM) pre-trained based on a training data set containing multiple documents to perform the above-described functional operations.
[0181] In one embodiment, the answer response model can generate response data for a given user query based on a multi-step inference process. The multi-step inference process may refer to a structured process for generating response data based on query data. This multi-step inference process may include an association selection process, a rationale generation process, and a systematic composition process.
[0182] The association selection process can determine an evidence paragraph from an intent description linked to query data (S331). The answer response model can extract at least one evidence paragraph, which is a paragraph containing an answer and / or basis for the query data, from among the intent descriptions used in the intent classification model, i.e., paragraphs included in the intent descriptions selected or refined by the user. In this case, in one embodiment, the answer response model can perform the association selection process described above based on a prompt engineering algorithm. For reference, prompt engineering can refer to the process of creating and optimizing prompts to obtain a desired result from an artificial intelligence model. Here, a prompt can refer to structured text input to generate output from an artificial intelligence model. Such prompts can guide the artificial intelligence model to explore specific content among data learned, thereby outputting a result that meets the goal. For example, components of a prompt may include 'Instruction' that specifies a task or instruction that a deep learning model is desired to perform, 'Context' that specifies external information or additional context that can adjust the deep learning model, 'Input Data' that specifies an input or question for which an answer is to be found, and / or 'Output Data' that specifies a type or format of an output. That is, in one embodiment, the answer response model may generate a structured prompt (hereinafter, a full-text document query prompt) according to a predetermined intent description and query data based on a prompt engineering algorithm, and may perform an associated selection process that extracts at least one paragraph of evidence within the corresponding intent description based on the generated query prompt.Therefore, the answer-response model can extract at least one paragraph of evidence from the intent description based on a clearer interpretation of the query data, such as a more accurate understanding of the query intent and the underlying assumptions. In this way, the answer-response model significantly enhances the interpretation performance of query data, thereby directly improving the quality of the response data generated in the future.
[0183] In one embodiment, the answer response model can obtain basis data for query data based on the determined evidence paragraph (S332). Here, the basis data may refer to data that serves as the basis for generating response data for the query data. That is, in an embodiment, the basis data may be a collection of various data utilized when generating response data. In one embodiment of the present invention, the basis data may be information collected through a document or file included in a database of an interactive system searched in the operation (S320) of searching for information for generating an answer in response to the above-described query intent, a document or file search of an external database (e.g., a database storing academic papers or report documents) connected via a communication unit, web browsing performed on the interactive system via a communication unit, etc. In one embodiment, the answer response model can detect, based on at least one evidence paragraph, main answer data, which is data including a direct answer to the query data, explanatory sentence data, which is data explaining the direct answer in detail, and / or auxiliary information data, which is data including related background knowledge, from the searched information. And the answer response model can obtain the basis data as described above based on the detected data.
[0184] Additionally, in one embodiment, the answer response model can generate response data based on the acquired basis data (S333). That is, in one embodiment, the answer response model can generate response data for a user query by performing data processing based on the acquired basis data. In one embodiment, the answer response model can generate a response by performing certain data processing (e.g., removing duplicate text, etc.) to improve the conciseness and readability of the response based on the basis data (S340).
[0185] As described above, in one embodiment of the present invention, the conversational system can clearly recognize the intent of a user's query based on the intent description of the intent of the user's query, extract paragraphs of evidence that can answer the query data from the intent description selected by the user or refined by the user, generate evidential evidence based on the contents of the extracted paragraphs of evidence, and provide response data that provides a more in-depth answer based on the generated evidential evidence. That is, in one embodiment, the conversational system can resolve the problems of hallucination and vague answers, which are limitations of existing conversational models (e.g., OpenAI GPT, etc.) when performing in-depth query and response tasks based on intent description. In addition, the conversational system according to one embodiment of the present invention can provide response data that is faithful to the question, factual, and presents a clear basis for in-depth queries related to the query intent and intent description, based on advanced chain-of-thought reasoning and estimation functions implemented through a process similar to human cognitive reasoning.
[0186] An interactive system according to one embodiment of the present invention can provide generated response data to a user via an output device of a user computing device or a server computing system. Specifically, an application running on the user computing device or server computing system can provide the user with at least one piece of response data obtained based on the user's query data.
[0187] In one embodiment of the present invention, the application may provide a response output interface based on an intelligent interactive system. Here, the response output interface according to the embodiment may refer to a user interface that visualizes and displays predetermined response data and various related data and information in a predetermined manner. Furthermore, in the embodiment, the application may display and provide response data generated based on the provided response output interface to the user.
[0188] At this time, in one embodiment, the application may provide at least one piece of basis information corresponding to each response data by matching and displaying it in conjunction with the corresponding response data. Here, the basis information may refer to data and / or information utilized as basis data when generating a given response data. For example, the basis information may include text data of an intention description corresponding to the given response data, searched full-text document identification information (e.g., paper number and / or paper title, etc.), evidence paragraph data, and / or basis data. Furthermore, in one embodiment, the basis information may further include query data corresponding to the given response data. In one embodiment, the application may display at least one piece of basis information corresponding to each response data. In an embodiment, the application may detect at least one piece of basis information related to the generation of each response data, full-text document identification information for the full-text document data, evidence paragraph data, evidence paragraph identification information for the evidence paragraph data, and / or basis data. Additionally, in one embodiment, the application can match the detected basis information to each response data and display it in a linked manner through a response output interface (e.g., list, image, and / or text, etc.).
[0189] Meanwhile, one embodiment of the present invention may be implemented as an application-specific integrated circuit (ASIC) manufactured to suit the special functions of a specific application field and device.
[0190] An application-specific integrated circuit is also called an application-specific semiconductor. Unlike standard semiconductors that have set specifications and can be applied to any electronic product or application as long as certain requirements are met, an application-specific semiconductor is an integrated circuit that a semiconductor manufacturer manufactures according to a specific order for a specific product or function. In other words, an application-specific semiconductor is designed and manufactured to perform only the functions required for a specific device or specific function. Depending on the design method, application-specific semiconductors are largely divided into full custom ICs, which design and manufacture the circuit from scratch according to the user's needs, and semi-custom ICs, which design and manufacture the circuit using some standardized designs.
[0191] Application-specific semiconductors are primarily used in communications systems, high-performance computing systems, consumer electronics, automobiles, industrial automation, medical devices, military, and aerospace industries. Recently, they are being applied to AI semiconductors that perform large-scale calculations required for AI implementation with high performance and power efficiency.
[0192] Application-specific integrated circuits (ASICs) are core components of network routers, switches, and modems in communication systems, performing data packet processing, protocol conversion, and signal processing to deliver high throughput and low latency. In high-performance computing systems, ASICs are key components for high-speed and parallel processing. In consumer electronics such as digital cameras, smartphones, tablets, and game consoles, ASICs provide high-performance and low-power solutions required to perform specific functions. In the automotive industry, ASICs control various electronic systems within vehicles, and in industrial automation systems, ASICs provide solutions for high-precision control and high-performance processing.
[0193] An application-specific integrated circuit to which one embodiment of the present invention is applied includes a memory in which an individual memory interface (I / F) is implemented, and may include a plurality of functional blocks that request memory access. Each functional block may be a direct memory access (DMA) functional block, a processor, a video processor, a cache controller, a decompression block, or a data path block. The basic configuration of the application-specific integrated circuit may include a transistor that amplifies or switches an electrical signal, a logic gate that is a circuit that performs a logical function by combining transistors, a memory cell that stores data, an analog circuit that is a circuit that processes a continuous voltage or current by combining transistors, and an IP core (Intellectual Property Core) such as a microprocessor, DSP, or graphic core that is pre-designed to perform a specific function.
[0194] The ASIC may also include a separate memory I / F interfacing with individual memories and an embedded memory I / F interfacing with embedded memories. The separate memory I / F is connected to each functional block, receives memory access signals (e.g., control signals, address signals, and data signals), and generates signals for controlling the individual memories based on these input signals. The embedded memory I / F is connected to each functional block, receives memory access signals (e.g., control signals, address signals, and data signals), and generates modified memory access signals for controlling the embedded memories based on these input signals. The separate memory I / F and the embedded memory I / F may be designed within the memory control block of the ASIC to provide a memory control structure that can be flexibly applied to both the individual memories and the embedded memories.
[0195] Additionally, an application-specific integrated circuit (ASIC) for an artificial neural network (ANN) may be configured to include a plurality of neurons arranged in an array and a plurality of synaptic circuits, each neuron including a register, a microprocessor, and at least one input, and each synaptic circuit including a memory for storing synaptic weights. Each neuron of the ASIC may be connected to at least one other neuron through one of the plurality of synaptic circuits.
[0196] Although the present disclosure has been described above as being generally implemented by a computing device, those skilled in the art will appreciate that the present disclosure may also be implemented in combination with computer-executable instructions and / or other program modules that may be executed on one or more computers and / or as a combination of hardware and software.
[0197] Those skilled in the art will appreciate that information and signals may be represented using any of a variety of different technologies and techniques. For example, the data, instructions, commands, information, signals, bits, symbols, and chips referenced in the above description may be represented by voltages, currents, electromagnetic waves, magnetic fields or particles, optical fields or particles, or any combination thereof.
[0198] Those skilled in the art will appreciate that the various illustrative logical blocks, modules, processors, means, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, various forms of programs or design code (referred to herein, for convenience, as software), or a combination of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Those skilled in the art may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
[0199] The various embodiments presented herein can be implemented as a method, apparatus, or article of manufacture using standard programming and / or engineering techniques. The term article of manufacture includes a computer program, carrier, or media accessible from any computer-readable storage device. For example, computer-readable storage media include, but are not limited to, magnetic storage devices (e.g., hard disks, floppy disks, magnetic strips, etc.), optical disks (e.g., CDs, DVDs, etc.), smart cards, and flash memory devices (e.g., EEPROMs, cards, sticks, key drives, etc.). Furthermore, various storage media presented herein include one or more devices and / or other machine-readable media for storing information.
[0200] It should be understood that the specific order or hierarchy of steps in the presented processes is merely an example of exemplary approaches. It should be understood that the specific order or hierarchy of steps in the processes may be rearranged within the scope of the present disclosure based on design priorities. The appended method claims provide elements of various steps in a sample order, but are not intended to be limited to the specific order or hierarchy presented.
[0201] The description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the embodiments disclosed herein, but is to be construed in the broadest scope consistent with the principles and novel features disclosed herein.
Claims
1. As a system, at least one processor; and At least one memory for storing instructions or information executed by at least one processor; The operation performed by the above command or information executed by at least one processor is: An action of receiving user queries including user intentions through the user input / output section; An operation of outputting intent descriptions corresponding to the user intents from the language model stored in the memory; An operation of providing the intention descriptions stored in the memory to the user through the user input / output unit and receiving user input; An operation of using at least one intent description determined by the user input as an input prompt of an intent classification model performed by the at least one processor to perform intent classification; The above intent descriptions include at least one of an independent intent description written independently of other intent descriptions, a dependent intent description written dependently on other intent descriptions, or a refined intent description refined by a user based on an independent or dependent intent description and input through the user input unit. System.
2. In claim 1, The command prompt input to the language model to output the intent descriptions from the language model is: An independent prompt for obtaining first data including multiple intent descriptions for a single intent; a dependent prompt for obtaining second data including multiple intent descriptions for multiple intents, wherein the context of each of the multiple intents and the multiple intent descriptions is analyzed; and a refined prompt for obtaining third data by being input by a user based on the independent intent description or the dependent intent description. System.
3. In claim 1, The above input prompt consists of an instruction and user query section and an intent options section containing an intent name and intent descriptions for the intent name. System.
4. In claim 3, It further includes a ranker that controls the number of the above intention options, The above ranker calculates the similarity between the user query and the intent description. System.
5. In claim 1, The above intent classification model is retrained using at least a part of the independent intent description, the dependent intent description, or the refined intent description. System.
6. In claim 2, At least a portion of the first data is provided as an input prompt when determining the performance of the intent classification model, or at least a portion of the second data is provided as an input prompt when determining the performance of the intent classification model. System.
7. A method executed by at least one processor, A step of receiving user queries including user intentions through a user input / output unit; A step of outputting intent descriptions corresponding to the user intents using a language model stored in memory; A step of providing the intention descriptions stored in the memory to the user through the user input / output unit and receiving user input through the user input unit; A step of using at least one intent description determined by the user input as an input prompt of an intent classification model performed by the at least one processor, wherein the intent classification model performs intent classification; The above intent descriptions include at least one of an independent intent description written independently of other intent descriptions, a dependent intent description written dependently on other intent descriptions, or a refined intent description refined by a user based on an independent or dependent intent description and input through the user input unit. method.
8. In claim 1, In the step of outputting the above intention descriptions, A command prompt input to the language model is configured to generate a data set including the intent descriptions from the language model, the command prompt including: an independent prompt to obtain first data including a plurality of intent descriptions for a single intent; a dependent prompt to obtain second data including a plurality of intent descriptions for a plurality of intents, wherein the context of each of the plurality of intents and the plurality of intent descriptions is analyzed; and a refined prompt input by a user based on the independent intent description or the dependent intent description to obtain third data. method.
9. In claim 7, In the step where the above intention classification model performs intention classification, The above input prompt consists of an instruction and user query section and an intent options section containing an intent name and intent descriptions for the intent name. method.
10. In claim 9, The ranker that adjusts the number of the above intent options calculates the similarity between the user query and the intent description and sorts the intent descriptions in descending order according to the similarity. method.
11. In claim 7, In the step where the above intention classification model performs intention classification, the intention classification model is retrained using at least a part of the independent intention description, the dependent intention description, or the refined intention description. method.
12. In claim 8, Further comprising a step of determining the performance of the above intention classification model, In the step of determining the performance of the intention classification model, at least a part of the first data is provided as an input prompt when determining the performance of the intention classification model, or at least a part of the second data is provided as an input prompt when determining the performance of the intention classification model. method.
13. As a system, At least one processor; and at least one memory storing instructions or information executed by the at least one processor; The operation performed by the above command or information executed by at least one processor is: An operation of inputting the user intent of query data obtained from a user through a prompt of a user input / output unit into a language model stored in the memory to generate intent descriptions for the user intent and specifying the query intent; An action to retrieve information to generate an answer corresponding to the above query intent; An operation of detecting response data corresponding to the query intent from the searched information; and an operation of generating an answer to the query intent based on the detected response data; System.
14. In claim 13, The action of specifying the above query intent is to generate an independent intent description that is written independently of other intent descriptions or a dependent intent description that is written dependently on other intent descriptions through the language model. System.
15. In claim 14, The operation of specifying the above query intent is to output the independent intent description and the dependent intent description through the user input / output unit, and at least one of the independent intent description or the dependent intent description is selected through the user input / output unit, or a refined intent description refined by the user based on the independent or dependent intent description is input through the user input / output unit, and an intent classification model performs intent classification with the selected or input intent description. System.
16. In claim 13, The action of searching for the above information is to search for information related to the user intent and the intent descriptions in a database or the Internet. System.
17. In claim 13, The operation of detecting the above response data is as follows: An operation including an action of determining an evidence paragraph related to the query data in the above intent description, an action of obtaining basis data for the query data based on the determined evidence paragraph, and an action of generating response data for the query data based on the obtained basis data. System.
18. In claim 17, The above-mentioned basis data is documents and websites collected through databases or the Internet. System.
19. A method executed by at least one processor, A step of inputting the user intent of query data obtained from a user through a prompt of a user input / output section of an interactive system into a language model stored in the memory to generate intent descriptions for the user intent and specify the query intent; A step of searching for information to generate an answer corresponding to the query intent from a database or the Internet; A step of detecting response data corresponding to the query intent from the searched information; and A step of generating an answer to the query intent based on the detected response data; comprising; method.
20. In claim 19, In the step of specifying the intent of the above inquiry, The above language model generates an independent intent description that is written independently of other intent descriptions or a dependent intent description that is written dependently on other intent descriptions. method.
21. In claim 20, The step of specifying the intent of the above query is: A step of outputting the independent intent description and the dependent intent description through the user input / output unit; a step of selecting at least one of the independent intent description or the dependent intent description through the user input / output unit, or a step of inputting a refined intent description refined by a user based on the independent or dependent intent description through the user input / output unit; and a step of performing intent classification by an intent classification model using the selected or input intent description. method.
22. In claim 19, The step of detecting the above response data is: A step of determining an evidence paragraph related to the query data in the above intent description; A step of obtaining basis data for the query data based on the determined above evidence paragraph; and A step of generating response data for the query data based on the acquired basis data is included. The above-mentioned basis data is documents and websites collected through databases or the Internet. method.
Citation Information
Patent Citations
Optimization method, response method and system for natural language processing model
CN116911315B
Mold device
KR1020240133610A
Question-answering system based on reconfiguration of dialogue
KR102280792B1
Content addressable memory for large search words
KR102690877B1
Slot extraction for intents using large language models
US20240144922A1