Tuning system, tuning method, and tuning program
The tuning system addresses accuracy and efficiency issues in AI model creation by using a domain reinforcement model to enhance pre-learning models, ensuring consistent accuracy and reducing time across multiple systems.
Patent Information
- Application Number
- JP2023035140
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-08
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing AI technologies face challenges in ensuring stable accuracy due to varying quality and quantity of training data, and require significant time and effort to create individual models for each system implementation.
A tuning system that utilizes a domain reinforcement model to enhance pre-learning models using learning document and named entity vectors, allowing for accurate AI model creation across multiple systems without relying on data quality or quantity, and reducing the time required.
Ensures a certain level of accuracy and reduces the time needed to create AI models by leveraging a domain reinforcement model that improves model accuracy and consistency across different systems.
Smart Images

Figure 2024126625000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a tuning system for tuning a document vector, and more particularly to a tuning system for tuning a document vector to suit a specific domain. [Background technology]
[0002] In recent years, artificial intelligence (hereinafter referred to as "AI") technology is expected to improve the productivity and efficiency of corporate activities. For example, Patent Document 1 discloses an AI chatbot that can automatically provide appropriate answer information to inquiries from users using AI technology. More specifically, Patent Document 1 discloses an information processing device that includes an answer generation device that automatically provides answer information according to a user's input using an AI algorithm obtained by performing supervised learning using the correspondence between input patterns and answer information as teacher data, and an input candidate display device that predicts the next input to be made by the user using an AI algorithm obtained by performing learning different from that of the answer generation device using past inputs and input orders as teacher data, and automatically displays the predicted results to the user as next input candidates. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 6624539 Summary of the Invention [Problem to be solved by the invention]
[0004] However, there are two main challenges when introducing AI technology into a company. The first challenge is that the quality and quantity of the learning data on which the AI model is based varies depending on the function being introduced, making it difficult to ensure stable accuracy. The second challenge is that an individual AI model needs to be created for each system being introduced, which takes a huge amount of time and effort. For example, if a company wants to introduce AI technology into three systems - a similar document search system, a question answering system, and a needs analysis system - using conventional technology, three AI models would have to be created, which would take a huge amount of time.
[0005] The technology described in Patent Document 1 does not take into account the variability of the learning data, so the accuracy of the created AI model depends on the quality and quantity of the learning data. In addition, since two different AI algorithms are used, it takes a much longer time to create the model than when one AI algorithm is used. Therefore, the technology described in Patent Document 1 cannot solve either the first or second problem.
[0006] The present invention has been made in consideration of the above-mentioned problems, and its purpose is to provide a tuning system etc. that can ensure a certain level of accuracy when a company introduces AI technology into multiple systems, regardless of the quality or quantity of training data for each system, and can reduce the time it takes to create an AI model. [Means for solving the problem]
[0007] A first invention for achieving the above-mentioned object is a tuning system for tuning document vectors, characterized in that the tuning system is configured by a learning unit including: a learning document / eigenrepresentation vector acquisition means for inputting a learning data set in a specific domain into a pre-learning model and acquiring learning document vectors and eigenrepresentation vectors; a domain reinforced model creation means for creating a domain reinforced model in which the pre-learning model is reinforced for inference to the specific domain using the learning document vectors and the eigenrepresentation vectors as learning data; and an inference unit including: an inference document data input means for inputting inference document data in the specific domain; an inference document vector acquisition means for inputting the inference document data into the pre-learning model and acquiring inference document vectors; a tuning vector acquisition means for inputting the inference document vector into the domain reinforced model and acquiring a tuning vector; and a tuning document vector output means for adding the tuning vector to the inference document vector at a predetermined addition rate, and outputting a tuning document vector. The first invention makes it possible to ensure a certain level of accuracy regardless of the quality or quantity of learning data for each system when a company introduces AI technology into multiple systems, and to reduce the time required to create an AI model.
[0008] It is preferable that the domain reinforced model creation means in the first invention generates pairs of a token sequence in which a named entity is masked, a position of the named entity corresponding to the token sequence, and a correct token sequence of the named entity, and executes learning of the domain reinforced model so that a difference between the correct token sequence of the named entity and the token sequence in which the masked portion is filled is small. This makes it possible to create a domain reinforced model in a short time and to improve the accuracy of the created domain reinforced model.
[0009] In addition, it is preferable that the domain reinforced model creation means in the first aspect of the present invention uses, as the learning data, the eigenvalue vectors obtained by vectorizing the eigenvalues excluding expressions related to numbers, thereby improving the accuracy of the created domain reinforced model.
[0010] The second invention is a tuning method for tuning document vectors, characterized in that a computer executes the following steps: inputting a learning data set in a specific domain into a pre-learning model to acquire learning document vectors and eigenrepresentation vectors; creating a domain reinforced model by using the learning document vectors and the eigenrepresentation vectors as learning data to reinforce the pre-learning model for inference to the specific domain; inputting document data for inference in the specific domain; inputting document data for inference in the specific domain; inputting document data for inference in the pre-learning model to acquire document vectors for inference; inputting document data for inference in the pre-learning model to acquire document vectors for inference; acquiring a tuning vector by inputting the document vector for inference into the domain reinforced model to acquire a tuning vector; and outputting a tuning document vector by adding the tuning vector to the document vector for inference at a predetermined addition rate. By executing the second invention, when a company introduces AI technology into multiple systems, it is possible to ensure a certain level of accuracy regardless of the quality or quantity of learning data for each system, and to reduce the time required to create an AI model.
[0011] The third invention is a tuning program for making a computer function as a tuning system for tuning document vectors, the tuning program making a computer function as a learning document / eigenrepresentation vector acquisition means for inputting a learning data set in a specific domain into a pre-learning model and acquiring learning document vectors and eigenrepresentation vectors, a domain reinforced model creation means for creating a domain reinforced model in which the pre-learning model is reinforced for inference to the specific domain using the learning document vectors and the eigenrepresentation vectors as learning data, an inference document data input means for inputting inference document data in the specific domain, an inference document vector acquisition means for inputting the inference document data into the pre-learning model and acquiring inference document vectors, a tuning vector acquisition means for inputting the inference document vector into the domain reinforced model and acquiring a tuning vector, and a tuning document vector output means for adding the tuning vector to the inference document vector at a predetermined addition rate and outputting a tuning document vector. By installing the third invention into a general-purpose computer, the tuning system of the first invention can be constructed. Effect of the Invention
[0012] The present invention makes it possible to provide a tuning system or the like that can ensure a certain level of accuracy when a company introduces AI technology into multiple systems, regardless of the quality or quantity of training data for each system, and that can reduce the time it takes to create an AI model. [Brief description of the drawings]
[0013] [Figure 1] Overview of Tuning System 1 [Diagram 2] A diagram showing the data flow of Tuning System 1 [Diagram 3] FIG. 2 is a diagram for explaining processing by the domain reinforcement model creation means 22. [Figure 4] Diagram explaining the introduction of AI technology to companies using Tuning System 1 DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] The tuning system in this embodiment is a computer system, and is composed of one or more computers. The computer includes a CPU (abbreviation of "Central Processing Unit") as a control unit, a memory as a main storage unit, an HDD (abbreviation of "Hard Disk Drive") or a flash memory as an auxiliary storage unit, a liquid crystal display as a display unit, a keyboard or mouse as an input unit, a touch panel display, a LAN (Local Area Network) cable as a wired communication unit, or a wireless module as a wireless communication unit. The HDD or flash memory as the auxiliary storage unit stores an OS (abbreviation of "Operating System"), application programs, data required for processing, and the like. The CPU reads out the OS and application programs from the auxiliary storage unit and stores them in the main storage unit, and while accessing the main storage unit, controls other devices and functions as each of the means described below. The computers transmit and receive data to each other via a network such as a LAN (Local Area Network) or the Internet.
[0015] The tuning system in this embodiment is a system that tunes "embedded expressions" output by a "pre-training model" in a specific domain of natural language processing. First, this will be described.
[0016] In natural language processing, embedded representations are used to convert words in a sentence into numerical values that a computer can handle. An embedded representation is a method of positioning documents such as words and sentences in some kind of vector space. In this embodiment, a "distributed representation" is used, which has a number of dimensions far less than the number of words. A distributed representation is a representation of a word as a vector of real numbers (usually decimals less than zero). In this embodiment, an embedded representation of a document, etc., that is, a vectorized document, etc., is referred to as a "document vector", etc.
[0017] The substance of an AI model is a computer program for causing a computer to execute a series of processes from analyzing input data using a predetermined analysis method to outputting the analysis results, and the data used for the execution. The computer creates a combination pattern of features from the statistical distribution of a data set using a predetermined algorithm, and creates an AI model. In this embodiment, this series of computer processes is referred to as "learning". The computer also applies the data to be classified or identified to the AI model, and outputs the results. In this embodiment, this series of computer processes is referred to as "inference".
[0018] A "pre-learned model" is an AI model that has been trained using a large-scale corpus (=dataset). A certain level of accuracy is ensured for the pre-learned model because it is trained using a large-scale corpus. In addition, in this embodiment, "domain" refers to the field of the corpus used for learning. The field of the corpus is not particularly limited, and may be, for example, entertainment-related data such as sports and movies, or data related to products and services of a specific company. A "domain-reinforced model" described later is an AI model in which a "pre-learned model" is reinforced for inference to a specific domain.
[0019] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. Fig. 1 is a diagram showing an overview of a tuning system 1. The tuning system 1 is a system for tuning document vectors, and is composed of a learning unit 2 and an inference unit 3, as shown in Fig. 1.
[0020] The learning unit 2 includes a training document / eigenvalue vector acquisition means 21 that inputs a training dataset in a specific domain into a pre-learning model and acquires training document vectors and eigenvalue vectors, and a domain reinforced model creation means 22 that uses the training document vectors and eigenvalue vectors as training data to create a domain reinforced model that reinforces the pre-learning model for inference to a specific domain.
[0021] The inference unit 3 includes an inference document data input means 31 for inputting inference document data in a specific domain, an inference document vector acquisition means 32 for inputting the inference document data to a pre-learning model and acquiring an inference document vector, a tuning vector acquisition means 33 for inputting the inference document vector to a domain reinforcement model and acquiring a tuning vector, and a tuning document vector output means 34 for adding the tuning vector to the inference document vector at a predetermined addition rate and outputting a tuning document vector. The tuning document vector output means 34 may receive the predetermined addition rate via the input unit.
[0022] A named entity is a general term for proper nouns such as people's names and place names, date expressions, time expressions, etc. A named entity vector is an embedding representation of a named entity, that is, a vectorized named entity.
[0023] FIG. 2 is a diagram showing the data flow of the tuning system 1. FIG. 2(a) shows the data flow in the learning phase, and FIG. 2(b) shows the data flow in the inference phase. In the learning phase, as shown in FIG. 2(a), a learning dataset 10 is input to a pre-learning model 4. In addition, a training document vector 11, which is an embedded representation of the training document data included in the training dataset 10, and a named entity vector 12, which is an embedded representation of a named entity extracted from the training document data included in the training dataset 10, are output from the pre-learning model 4 and input to a domain reinforcement model 5.
[0024] In the inference phase, as shown in Fig. 2(b), inference document data 13 is input to the pre-learning model 4. In addition, an inference document vector 14, which is an embedded representation of the inference document data 13, is output from the domain reinforced model 5 and input to the domain reinforced model 5. Then, the inference document vector 14 output from the pre-learning model 4 and the tuning vector 15 output from the domain reinforced model 5 are added at a predetermined addition ratio, and output as a tuning document vector 16.
[0025] The learning dataset 10 is acquired from an external system via the Internet or the like, and is stored in advance in a storage unit of a computer of the tuning system 1. In this embodiment, the livedoor (registered trademark) news corpus is used as the learning dataset 10 (Internet, URL: https: / / www.rondhuit.com / download.html, retrieved on February 6, 2023).
[0026] [Table 1]
[0027] Table 1 shows the analysis results of the livedoor (registered trademark) news corpus. As shown in Table 1, this dataset has nine categories. Each category is divided into news, sports, IT, etc., and in this embodiment, each category is regarded as a domain. The number of named entities per category (however, the number of duplicated instances of the same named entity is counted) is between 8,500 and 17,500.
[0028] In this embodiment, "spaCy" (Internet, https: / / spacy.io / , searched February 6, 2023) is used as a program for enabling a computer to realize the functions of the pre-learning model 4. spaCy is a Python language library of open source software specialized for developing natural language processing applications. The Japanese-compatible library of spaCy is provided by "Megagon Labs," an AI research institute of Recruit Co., Ltd., as "GiNZA" (Internet, https: / / megagonlabs.github.io / ginza / , searched February 6, 2023).
[0029] When spaCy version 2.0 or earlier loads a document, it serially (pipelines) executes four processes that are commonly used in natural language processing. The four processes are (1) tokenization (words) and vectorization (tokenizer), (2) part-of-speech tagging (taggekr), (3) dependency analysis (parser), and (4) named entity recognition (named entity recognition: ner). spaCy version 3.0 and later also executes (5) lemmatization (dictionary entry word generation) (lemmatizer), and (6) text classification (textcat). In addition, spaCy version 3.0 and later uses a Transformer model, which allows word vectors from the tok2vec (vectorization (feature extraction)) component to be shared with downstream components such as named entity extraction.
[0030] The Transformer model is an Encoder-Decoder model that uses Attention. Attention is a mechanism that indicates which tokens (words) should be paid attention to in natural language processing.
[0031] In this embodiment, "GiNZA version 4 (ja_ginza)" is used as the pre-training model 4. The number of dimensions of "ja_ginza" is 300, which is the number of dimensions of the distributed representation in this embodiment. "GiNZA version 4 (ja_ginza)" uses "SudachiPy" for morphological analysis and "chiVe" for word vectorization.
[0032] In the domain reinforced model 5 in this embodiment, the features of the domain are expressed using named entities. In particular, the domain reinforced model creation means 22 in this embodiment uses, as learning data, named entity vectors obtained by vectorizing named entities excluding expressions related to numbers.
[0033] [Table 2]
[0034] Table 2 shows the named entities excluded in the process by the domain reinforced model creation means 22. In Table 2, the expressions related to numbers are "date expression", "numerical expression", "time expression", "percentage expression", "age", "ordinal number", "number of people", and "year period". In addition, "Title name_other" is an honorific such as "san", "kimi", or "sama".
[0035] In addition, in the extended named entity hierarchy (Internet, URL: http: / / ene-project.info / , RIKEN Center for Advanced Intelligence Project (AIP), searched on February 6, 2023), named entities are divided into three classes: "name", "time expression", and "numerical expression". Of these three classes, expressions related to numbers are "time expression" and "numerical expression". That is, the domain reinforced model creation means 22 in this embodiment uses the named entity vector of "name" as learning data from the three classes of "name", "time expression", and "numerical expression" in the extended named entity hierarchy, and excludes the named entity vectors of "time expression" and "numerical expression" from the learning data.
[0036] [Table 3]
[0037] Table 3 shows the data structure of domain reinforcement model 5. Domain reinforcement model 5 is implemented using the model building library "Tensorflow2". As shown in Table 3, domain reinforcement model 5 has a data structure that stacks three Transformer encoders, receives an array of 320 300-dimensional tokens (words) as input, and outputs the same size, and also supports batch processing.
[0038] The basic idea of the domain reinforcement model 5 in this embodiment is a "Masked Language Model" in BERT (Bidirectional Encoder Representations from Transformers: a bidirectional encoder using a Transformer). In order to create a BERT model, a general-purpose large-scale dataset is first "pre-trained". This allows language characteristics to be learned. Then, "transfer learning" and "fine-tuning" of target tasks such as classification and prediction are performed. BERT executes two processes: "intentionally masking words from a sentence and predicting the words" and "predicting whether the sentence is continuous". The former is called "Masked Language Model" and the latter is called "Next Sentence Prediction".
[0039] In the "Masked Language Model" in BERT, the tokens to be masked are randomly determined, but in this embodiment, only named entity tokens are masked. Also, in BERT, masked tokens (words) are predicted by a classification task with cross-entropy as the loss function, but in this embodiment, the model input / output is "320 300-dimensional vectors for the batch size," so specific words cannot be predicted. Therefore, "mean squared error" is adopted as the loss function, and training is performed so that the difference from the correct token string of the named entity is small.
[0040] FIG. 3 is a diagram for explaining the process by the domain reinforced model creation means 22. As shown in FIG. 3, the domain reinforced model creation means 22 generates pairs of a token sequence in which a named entity is masked, a position of the named entity corresponding to the token sequence, and a correct token sequence of the named entity, and executes learning of the domain reinforced model 5 so as to reduce the error between the correct token sequence of the named entity and the token sequence in which the masked portion is filled (backpropagation method). That is, the domain reinforced model creation means 22 minimizes the "mean square error" (see formula (1)) between the correct token sequence of the named entity and the token sequence in which the masked portion is filled. The domain reinforced model creation means 22 ends learning at the point in time when it can be determined that the loss function has converged, for example, at the number of epochs at which the rate of decrease of the error becomes equal to or less than a predetermined value. According to this embodiment, the loss function converges in a small number of epochs, and the domain reinforced model 5 can be created in a short time. The loss function is not limited to the "mean square error" and may be changed as appropriate.
[0041]
number
[0042] For example, in the case of a sentence "I went to Akita Prefecture to see the Kanto Festival," the token sequence with masked named entities is "I went to ###MASK_2### to see ###MASK_1###," and the correct token sequence is "Kanto Festival Akita Prefecture." Here, both the token sequence with masked named entities and the correct token sequence are distributed representations in actual processing, but for convenience of explanation, they are described in natural language. The domain reinforcement model creation means 22 learns to minimize the sum of the difference between "###MASK_1###" and "Kanto Festival" and the difference between "###MASK_2###" and "Akita Prefecture" in one token sequence.
[0043] FIG. 4 is a diagram for explaining the introduction of AI technology to a company using the tuning system 1. Conventionally, when a company introduces AI technology, the quality and amount of learning data on which the AI model is based varies for each function to be introduced, so stable accuracy could not be ensured. In addition, for example, when introducing AI technology into three systems, a similar document search system, a question answering system, and a needs analysis system, it is necessary to create three AI models, which requires a huge amount of time to create them. On the other hand, according to the tuning system 1 in this embodiment, as shown in FIG. 4, one domain reinforcement model 5 is created using a pre-learning model 4 in which a certain level of accuracy is ensured, so that a certain level of accuracy can be ensured regardless of the quality and amount of learning data for each system, and the time required to create the AI model can be reduced.
[0044] In particular, in the domain strengthened model 5 in this embodiment, the features of the domain are expressed using named entities. Therefore, as will be described in the examples below, by tuning the document vector using the tuning vector 15 output from the domain strengthened model 5, it is expected that the accuracy of similar document search and the like can be improved.
[0045] <Example> In this embodiment, in order to show the characteristics of the livedoor (registered trademark) news corpus shown in Table 1, a "similar document evaluation value" was calculated for each category shown in Table 1. The similar document evaluation value is an evaluation value unique to this embodiment that calculates the similarity between documents in each category. The higher this evaluation value, the more similar documents there are in the category.
[0046] A specific calculation method for determining the similar document evaluation value is as follows. Step 1. Convert the livedoor (registered trademark) news corpus into JSON (JavaScript Object Notation) objects of "headline," "body text," and "label (category)." Step 2. Using the spaCy “ja_ginza” model, vectorize the text (300 dimensions) and save it as a Python object (pickle it). Step 3. Take one text vector and calculate the "cosine similarity" with the other text vectors. Step 4. Repeat step 3 for all documents and calculate the combinations of cosine similarities with all documents (7366 x 7366 = approximately 5.42 million combinations). Step 5: Take one document and find the top 100 similar documents with the highest cosine similarity. Step 6: Calculate the number of category matches among the top 100 documents. Step 7. Repeat steps 5 and 6 for all categories and calculate the average.
[0047] [Table 4]
[0048] The rightmost column in Table 4 shows the calculation results of similar document evaluation values. For example, "Sports Watch" and "MOVIE ENTER" have many similar documents in the same category, and are therefore highly unique. On the other hand, "IT Life Hack," "livedoor HOMME" and "Peachy" have many documents that are similar to other categories, and are therefore less unique.
[0049] Additionally, processing was performed by the tuning system 1 using the livedoor (registered trademark) news corpus shown in Table 1 as the learning dataset 10. As shown in Tables 1 and 4, the number of unique expressions in the category "IT life hack" is close to the average for all categories, so the execution results are shown with the category "IT life hack" as the main category.
[0050] [Table 5]
[0051] Table 5 shows the average value of the tuning vector 15 output from the domain reinforced model 5 created with the dataset for the category "IT life hacks." The tuning vector 15 is a 300-dimensional vector, but in Table 5, only the average value is listed in consideration of visibility. As shown in Table 5, when each inference document vector 14 was input, the average value of the tuning vector 15 output from the domain reinforced model 5 was almost the same. In other words, it was found that no matter what kind of inference document vector 14 was input to the domain reinforced model 5 that has learned the features of a certain domain, the tuning vector 15 output would be almost the same value.
[0052] [Table 6]
[0053] Table 6 shows the calculation results of the cosine similarity between tuning document vector 16 of the category "IT life hack" and the document vectors of each category. The "ab:pr" in the table heading indicates the addition ratio. For example, if "ab:pr=0.5:1.0", the tuning vector 15 (ab) of IT life hack is multiplied by 0.5 and added to the 1.0-times IT life hack document vector (pr) output by the pre-training model. The baseline has the same meaning as "ab:pr=0.0:1.0", where tuning vector 15 is "0 times".
[0054] As shown in Table 6, when the addition ratio is "ab:pr=0.5:1.0", the cosine similarity values of "IT Life Hack", "Home Appliance Channel", and "Smax" have improved compared to the baseline. It can also be seen that the cosine similarity values for the other categories have decreased. This can be presumed to be because the contents of the categories "Home Appliance Channel" and "Smax" are "home appliances" and "mobile-related" respectively, which are similar to the content of the category "IT Life Hack", i.e., they share many common named entities.
[0055] In the case of the addition ratio of "ab:pr=1.0:1.0", all except "Smax" were below the baseline, but the difference in the cosine similarity value for each category became larger. For example, the difference between the tuned "IT Life Hack x Dokujo Tsuushin" and the tuned "IT Life Hack x IT Life Hack" at the addition ratio of "ab:pr=0.5:1.0" is 0.9456-0.9128=0.0328. On the other hand, in the case of the addition ratio of "ab:pr=1.0:1.0", the difference became larger, 0.9369-0.8961=0.408. This change can be presumed to be due to the fact that the larger the ratio of the tuning vector 15 to be added, the larger the difference between the categories. Therefore, it is thought that by changing the ratio of the tuning vector 15 to be added, it is possible to strengthen the characteristics of a specific domain while also increasing the difference with other domains.
[0056] As described above, it has been found that the domain reinforcement model 5 in this embodiment can output tuning vectors 15 that are expected to improve the accuracy of similar document search using cosine similarity. Similarly, for systems other than similar document search systems, such as question answering systems and needs analysis systems, the use of tuning vectors 15 output by the domain reinforcement model 5 can be expected to improve accuracy.
[0057] It was also found that by adjusting the addition ratio between the inference document vector 14 and the tuning vector 15, it is possible to strengthen the characteristics of a specific domain while increasing the difference with other domains. The tuning document vector output means 34 accepts a predetermined addition ratio via the input unit, so that the user can adjust the addition ratio to achieve the desired tuning.
[0058] Although the preferred embodiments of the tuning system and the like according to the present invention have been described above with reference to the accompanying drawings, the present invention is not limited to such examples. It is clear that a person skilled in the art can come up with various modified or revised examples within the scope of the technical ideas disclosed in this application, and it is understood that these also naturally fall within the technical scope of the present invention. [Explanation of symbols]
[0059] 1. Tuning system 2. Learning section 3…… Reasoning part 4. Pre-learning model 5. Domain reinforcement model 10. Training data set 11. Learning document vectors 12... Eigenvalue vector 13. Document data for inference 14....Document vector for inference 15...Tuning vector 16...Tuning document vector 21....Means for acquiring learning document and eigenvalue vectors 22....Domain reinforcement model creation method 31: Inference document data input means 32....Inference document vector acquisition means 33...Tuning vector acquisition means 34: Tuning document vector output means
Claims
1. 1. A tuning system for tuning document vectors, comprising: A learning document / eigenvalue vector acquisition means for inputting a learning dataset in a specific domain into a pre-learning model to acquire learning document vectors and eigenvalue vectors; a domain reinforced model creation means for creating a domain reinforced model by reinforcing the pre-learning model for inference to the specific domain using the learning document vectors and the eigenvalue vectors as learning data; A learning unit comprising: an inference document data input means for inputting inference document data in the specific domain; an inference document vector acquisition means for inputting the inference document data to the pre-learning model and acquiring an inference document vector; a tuning vector acquisition means for inputting the inference document vector to the domain reinforcement model and acquiring a tuning vector; a tuning document vector output means for adding the tuning vector to the inference document vector at a predetermined addition ratio and outputting a tuning document vector; An inference unit comprising: A tuning system comprising:
2. The tuning system according to claim 1, characterized in that the domain reinforced model creation means generates a pair of a token sequence in which a named entity is masked, a position of the named entity corresponding to the token sequence, and a correct token sequence of the named entity, and performs learning of the domain reinforced model so as to reduce a difference between the correct token sequence of the named entity and the token sequence in which the masked portions are filled.
3. 3. The tuning system according to claim 1, wherein the domain reinforcement model creation means uses, as the learning data, the eigenvalue vectors obtained by vectorizing the eigenvalues excluding expressions related to numbers.
4. 1. A method for tuning document vectors, comprising: The computer A learning document / eigenvalue vector acquisition step of inputting a learning dataset in a specific domain into a pre-learning model to acquire learning document vectors and eigenvalue vectors; a domain reinforced model creation step of creating a domain reinforced model by using the learning document vectors and the eigenvalue vectors as learning data and reinforcing the pre-learning model for inference to the specific domain; an inference document data input step of inputting inference document data in the specific domain; an inference document vector acquisition step of inputting the inference document data into the pre-learning model to acquire an inference document vector; a tuning vector acquisition step of inputting the inference document vector into the domain reinforcement model to acquire a tuning vector; a tuning document vector output step of adding the tuning vector to the inference document vector at a predetermined addition ratio and outputting a tuning document vector; A tuning method comprising the steps of:
5. A tuning program for causing a computer to function as a tuning system for tuning a document vector, comprising: Computer, A learning document / eigenvalue vector acquisition means for inputting a learning dataset in a specific domain into a pre-learning model to acquire learning document vectors and eigenvalue vectors; a domain reinforced model creation means for creating a domain reinforced model by reinforcing the pre-learning model for inference to the specific domain, using the learning document vectors and the eigenvalue vectors as learning data; an inference document data input means for inputting inference document data in the specific domain; an inference document vector acquisition means for inputting the inference document data to the pre-learning model and acquiring an inference document vector; a tuning vector acquisition means for inputting the inference document vector to the domain reinforcement model and acquiring a tuning vector; a tuning document vector output means for adding the tuning vector to the inference document vector at a predetermined addition ratio and outputting a tuning document vector; A tuning program to make it function as a
Citation Information
Patent Citations
How to build an AI chatbot by combining classification and regression classification
JP6624539B1
Cited By
Press forming device
KR1020240071223A
