Data Augmentation for Text-Based AI Applications

By applying multiple data enhancement methods to the training data set and verifying the scores, the best method is automatically selected, which solves the problem of being unable to determine the best data enhancement method in the existing technology and improves the quality and accuracy of training data for cognitive systems. Ensures the efficient response capability of the system.

CN111967604BActive Publication Date: 2024-09-06INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010357329.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-05-20
Filing Date
2020-04-29
Publication Date
2024-09-06
Estimated Expiration
2040-04-29

AI Technical Summary

Technical Problem

Existing technology makes it difficult to determine the best data augmentation method for a specific cognitive system, resulting in the quality and accuracy of training data not being effectively optimized.

Method used

By receiving a training data set of a type suitable for training, applying multiple different data augmentation methods to generate multiple augmented training data sets, training the cognitive system using these augmented data sets, and ranking each augmentation method by its validation score, The method with the highest validation score is selected as the best data augmentation method for training.

Benefits of technology

Automated selection of the best data augmentation method for a specific cognitive system improves the quality of training data and the accuracy of the cognitive system, ensuring that the system can provide accurate answers when processing user queries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111967604B_ABST
    Figure CN111967604B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to data enhancement for text-based AI applications. A cognitive system (artificial intelligence) is optimized by evaluating different data enhancement methods for enhancing training data, and then training the system using a training set enhanced by the best identification method. The enhancement method is evaluated by applying the enhancement method to the same training data set to generate different enhanced training data sets. The corresponding instance of the cognitive system is trained with the enhancement set, and each instance is subjected to a validation test to evaluate its excellence. The validation test may include multiple validation tests that result in component scores, and the combined validation score is calculated as a weighted average of the component scores using the corresponding weights of each validation test. The enhancement method corresponding to the instance with the highest combined validation score is selected as the best enhancement method for the current specific cognitive system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates generally to cognitive systems (artificial intelligence), and more particularly to methods for optimizing cognitive systems using augmented training data. Background Art

[0002] Cognitive systems (sometimes called deep learning, deep thinking, or deep problem solving) are a form of artificial intelligence that uses machine learning and problem solving. Cognitive systems typically employ neural networks, but there are alternative designs. Neural networks can be of various types. A feedforward neural network is an artificial neural network in which the connections between units do not form a loop. A feedforward neural network is the first and simplest type of artificial neural network designed. In this network, information moves in only one direction, i.e., from the input nodes forward through the hidden nodes (if present) and to the output nodes. There are no cycles or loops in the network. Therefore, it is different from a recursive neural network. A recursive neural network is a type of artificial neural network in which the connections between units form a directed cycle. This creates an internal state of the network, causing it to exhibit dynamic temporal behavior. Unlike a feedforward neural network, a recursive neural network can use its internal memory to process arbitrary input sequences. A convolutional neural network is a specific type of feedforward neural network based on animal visual perception, and is therefore particularly useful when processing image data. A convolutional neural network is similar to a normal neural network, but consists of neurons with learnable weights and biases.

[0003] There are many alternative approaches to machine learning using neural networks, such as support vector machines (SVMs). SVMs essentially construct a multidimensional mathematical space based on training examples and provide boundaries in that space that allow binary classification of inputs (e.g., as "good" answers versus "bad" answers). Another approach involves Bayesian networks, which use directed acyclic graphs to represent sets of variables. The network is then used to compute probabilistic relationships between the variables. The cognitive system is not limited to the use of a single approach, i.e., it can incorporate any number of these and other machine learning algorithms.

[0004] The modern implementation of AI is IBM Watson TMCognitive technologies that apply advanced natural language processing, information retrieval, knowledge representation, automated reasoning, and machine learning techniques to the field of open-domain question answering. Such cognitive systems can rely on existing documents (corpora) and analyze them in various ways to extract answers relevant to the query (e.g., people, locations, organizations, and specific objects), or to identify positive and negative sentiment. Different techniques can be used to analyze natural language, identify sources, find and generate hypotheses, find and score evidence, and merge and rank hypotheses. Models for scoring and ranking answers can be trained based on a large number of question (input) and answer (output) pairs. The more algorithms that independently find the same answer, the more likely it is that the answer is correct, resulting in an overall score or confidence.

[0005] As part of this effort, many systems employ some form of natural language processing to provide users with a more intuitive interface for issuing commands and queries to computer systems. Natural language processing (NLP) is an area of ​​computer science, artificial intelligence, and linguistics concerned with the interaction between computers and human (natural) language. Many challenges in NLP involve natural language understanding (i.e., enabling computers to derive meaning from human or natural language input), while other challenges involve natural language generation that allows computers to respond in a manner that is familiar to users. For example, a non-technical person can enter natural language questions into a computer system, and the system intelligence can provide natural language answers that the user will hopefully be able to understand. Examples of advanced computer systems that use natural language processing include virtual assistants, internet search engines, and applications such as Watson. TM Deep question answering system based on cognitive technology.

[0006] An important aspect of cognitive systems is training and validation, which is critical to ensuring the quality of the system. The type of training used depends on the specific type of cognitive system involved. For text-based systems, the training data can take the form of question-answer pairs, i.e., questions with corresponding answers, with answers identified as correct ("good") or incorrect ("bad"). For image-based systems, the training data can be image / object pairs, i.e., input pictures with subjects identified as animals, plants, or inanimate objects. For auditory-based systems, the training data can use audio clips identified as human speech, vehicle sounds, or environmental auditory features. Training data is typically provided by subject matter experts for cognitive systems in specific fields. The specific way in which training data is provided may also be related to the type of cognitive system. For example, in an NLP system, the input data may be subjected to text analysis. Text analysis is known in the field of NLP, and text annotation programs are typically used to analyze text relative to a defined set of tags. Text annotators can generate linguistic annotations in documents to mark concepts and entities that may be buried in the text. Other forms of analysis are used for other types of cognitive systems (e.g., image-based or auditory-based cognitive systems).

[0007] Figure 1 A general process 10 for training and validating a cognitive system 11 is shown. The cognitive system 11 acquires a set of training data 12 and applies it to its input algorithm to learn from the data. The training data set is thus used to help form the basis of the system logic (e.g., adjusting the weights on a neural network). The result is a trained cognitive system 14. A set of validation data 15 can then be submitted to the trained cognitive system 14. The validation set can be used to minimize overfitting, i.e., it is not necessary to adjust the weights of the network, but just to verify the accuracy on the training data. There are a variety of validation tests that can be used for this purpose. The result is a validation score 18, which indicates whether additional training may be needed. The test set can also be used to evaluate the final system setup (not shown) in order to confirm the actual predictive power of the network.

[0008] Training a cognitive system preferably involves the use of hundreds or thousands of input examples. Therefore, it is not always easy to construct a good training set. One approach that designers have devised to solve this problem is to take an existing dataset that has been deemed useful for training and augment the data in various ways. For example, a reference source (a thesaurus) can be used to replace one or more words in a sentence with a synonym to create a new sentence. Another approach is to swap certain words or otherwise change the order of words, such as changing "he got the flu in 2018" to "in 2018, he got the flu". There are many other conventional data augmentation methods. Summary of the invention

[0009] The present invention, in at least one embodiment, generally relates to a method for optimizing the training of a cognitive system by: receiving a training data set of a type suitable for training a cognitive system; applying a plurality of different data augmentation methods to the training data set to generate a plurality of augmented training data sets; using the augmented training data set to train a corresponding instance of the cognitive system; validating each trained instance to obtain a plurality of validation scores, each validation score being associated with a corresponding one of the data augmentation methods; ranking the data augmentation methods according to the validation scores; selecting the best data augmentation method among the data augmentation methods based on the ranking; and using the best data augmentation method to train a final instance of the cognitive system. For embodiments in which the cognitive system is text-based, the data augmentation methods may include dictionary-based text replacement, Word2Vec text generation, sentence paraphrase, and back translation. The selection may be automatic, selecting the data augmentation method with the highest validation score. In an illustrative implementation, the validation includes applying a plurality of different validation tests to a given training instance to determine a plurality of corresponding component scores for the given training instance, and the validation score is a combination of the component scores. For example, the validation score may be a weighted average of the component scores using the corresponding weights of each validation test. In embodiments where the cognitive system is text-based, validation tests may include syntactic variation, grammatical quality, readability, accuracy gain, and vocabulary gain. Once the cognitive system has been so optimized, it may perform its intended operations, such as a deep question / answer system that receives user queries and responsively provides answers to the user queries.

[0010] The above and other objectives, features, and advantages of various embodiments of the present invention will become apparent in the following detailed written description. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The present invention may be better understood, and its numerous objects, features and advantages of various embodiments made apparent to those skilled in the art by referencing the accompanying drawings.

[0012] Figure 1 is a block diagram of the general training and validation process for cognitive systems;

[0013] Figure 2 is a block diagram of a computer system according to one implementation of the present invention, the computer system being programmed to perform training and validation of a cognitive system;

[0014] Figure 3 is a block diagram of a data augmentation evaluation process according to one implementation of the present invention;

[0015] Figure 4 is a block diagram illustrating how different validation tests and weights may be used to obtain a combined validation score for a particular data augmentation method according to one implementation of the present invention;

[0016] Figure 5 is a block diagram depicting an exemplary application of the present invention having a deep question answering system optimized by using a specific augmented training set according to one implementation; and

[0017] Figure 6 is a flow chart illustrating the logical flow of an automated process for selecting an optimal data augmentation method for training a cognitive system according to one implementation of the present invention.

[0018] The use of the same reference numbers in different drawings indicates similar or identical items. DETAILED DESCRIPTION

[0019] As mentioned above, data sparsity is a common problem in training machine learning algorithms. Researchers have explored techniques to augment data for various domains such as text, images, and speech. However, existing methods for data augmentation only provide additional data in a specific way, where the choice of a specific data augmentation method and the amount of augmented data is arbitrary. What may be a good augmentation for one cognitive system may not be a good augmentation for a different cognitive system. Although some systems have shown improvements in accuracy due to data augmentation, there is no systematic way to determine the best data augmentation method for a specific cognitive system.

[0020] Therefore, it is desirable to design an improved method for enhancing data for training cognitive systems, which can apply a set of enhancement methods with different parameters, control the verification process, and select the best enhancement model for a specific cognitive system. It would be further advantageous if the method could be operated in an automated manner. The present invention, in its various embodiments, achieves these and other advantages by calculating an excellent enhancement model from a set of candidate enhancement models generated by means of enhancement method selection, parameter variation, and training set size variation for enhancement, and calculating a yield score for each enhancement model by means of a feature set. A data scientist provides input training and test data, a machine learning model for a specific application (e.g., a business or engineering problem), an initial set of enhancement methods, and optionally a set of parameters associated with each enhancement method. A data enhancement engine applies the set of enhancement methods specified in the input, and uses the specified parameters / rules to select data to be enhanced, enhance the data, and generate an enhanced training data set. For each enhanced data set, a machine learning model is trained. A verification engine then calculates a score set for each enhancement model by applying different test sets (which may include the original test set and an enhanced test set containing enhanced vocabulary or other features). Each enhanced model thus receives a set of scores, such as the accuracy gain of the base model for the original test set, the accuracy gain of the base model for the enhanced test set, the vocabulary gain compared to the base model, the grammatical quality of the enhanced data, the syntactic changes of the enhanced data, the readability of the enhanced data, etc. These scores can be weighted to form a combined score; the weights can be determined via separate machine learning. The combined score represents the goodness of each enhanced model. The ranking engine ranks each enhanced model according to its score and returns the ranked list to the data scientist. The data scientist can select the highest ranked enhanced model or rerun the enhanced evaluation by changing the parameters as needed. Alternatively, the process can automatically select the enhanced model with the highest combined score.

[0021] Now refer to the drawings, and in particular to Figure 2, depicts one embodiment 20 of a computer system in which the present invention may be implemented to perform an evaluation of a data enhancement method for a cognitive system. The computer system 20 is a symmetric multiprocessor (SMP) system having a plurality of processors 22a, 22b connected to a system bus 24. The system bus 24 is also connected to a combined memory controller / host bridge (MC / HB) 26, which provides an interface to a system memory 28. The system memory 28 may be a local memory device or may alternatively include a plurality of distributed memory devices, preferably dynamic random access memory (DRAM). Additional structures not depicted may exist in the memory hierarchy, such as onboard (L1) and second level (L2) or third level (L3) caches. The system memory 28 has loaded therein one or more applications according to the present invention, such as a specific cognitive system or artificial intelligence (AI) as a training subject, various enhancement engines, one or more training data sets, and a series of validation tests adapted to the particular type of cognitive system at hand.

[0022] MC / HB 26 also has an interface to peripheral component interconnect (PCI) express links 30a, 30b, 30c. Each PCI express (PCIe) link 30a, 30b is connected to a corresponding PCIe adapter 32a, 32b, and each PCIe adapter 32a, 32b is connected to a corresponding input / output (I / O) device 34a, 34b. MC / HB 26 may additionally have an interface to an I / O bus 36, which is connected to a switch (I / O fabric) 38. Switch 38 provides fan-out for the I / O bus to multiple PCI links 30d, 30e, 30f. These PCI links are connected to more PCIe adapters 32c, 32d, 32e, which in turn support more I / O devices 34c, 34d, 34e. I / O devices may include, but are not limited to, keyboards, graphic pointing devices (mouse), microphones, display devices, speakers, permanent storage devices (hard drives) or arrays of such storage devices, optical drives that receive optical disks 35 (an example of a computer-readable storage medium) such as CDs or DVDs, and network cards. Each PCIe adapter provides an interface between a PCI link and a corresponding I / O device. MC / HB 26 provides a low-latency path by which processors 22a, 22b can access bus memory or PCI devices mapped anywhere within the I / O address space. MC / HB 26 also provides a high-bandwidth path to allow PCI devices to access memory 28. Switch 38 can provide peer-to-peer communication between different endpoints, and if the data traffic does not involve cache-coherent memory transfers, the data traffic does not need to be forwarded to MC / HB 26. Switch 38 is shown as a separate logical component, but it can be integrated into MC / HB 26.

[0023] In this embodiment, PCI link 30c connects MC / HB 26 to service processor interface 40 to allow communication between I / O device 34a and service processor 42. Service processor 42 is connected to processors 22a, 22b via JTAG interface 44 and uses alert line 46, which interrupts the operation of processors 22a, 22b. Service processor 42 may have its own local memory 48 and is connected to read-only memory (ROM) 50, which stores various program instructions for system startup. Service processor 42 may also access hardware operator panel 52 to provide system status and diagnostic information.

[0024] In alternative embodiments, computer system 20 may include modifications to these hardware components or their interconnection or additional components, and thus the depicted examples should not be construed as implying any architectural limitations with respect to the present invention. The present invention may further be implemented in an equivalent cloud computing network.

[0025] When the computer system 20 is initially started, the service processor 42 uses the JTAG interface 44 to interrogate the system (host) processors 22a, 22b and the MC / HB 26. After completing the interrogation, the service processor 42 obtains an inventory and topology of the computer system 20. The service processor 42 then performs various tests on the components of the computer system 20, such as built-in self-test (BIST), basic assurance test (BAT), and memory tests. Any error information for failures detected during testing is reported to the operator panel 52 by the service processor 42. If it is still possible to effectively configure the system resources after removing any components found to be faulty during testing, the computer system 20 is allowed to continue to operate. The executable code is loaded into the memory 28, and the service processor 42 releases the host processors 22a, 22b to execute program code (e.g., an operating system (OS) for launching an application, particularly the data enhancement assessment program of the present invention), the results of which can be stored in the system's hard drive (I / O device 34). While the host processors 22a, 22b are executing program code, the service processor 42 may enter a mode of monitoring and reporting any operating parameters or errors, such as the speed and operation of cooling fans, thermal sensors, power regulators, and recoverable and unrecoverable errors reported by any of the processors 22a, 22b, memory 28, and MC / HB 26. The service processor 42 may take further action based on the type of error or defined thresholds.

[0026] The present invention may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium (or multiple media) having computer-readable program instructions thereon for causing a processor to perform various aspects of the present invention.

[0027] A computer-readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer-readable storage media includes the following: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device (such as a punch card or a raised structure in a groove on which instructions are recorded) and any suitable combination of the foregoing. As used herein, a computer-readable storage medium should not be understood as being a transient signal itself (such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide) or other transmission medium (e.g., a light pulse transmitted through a fiber optic cable) or an electrical signal transmitted by a wire.

[0028] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device, or downloaded to an external computer or external storage device via a network (e.g., the Internet, a local area network, a wide area network, and a wireless network). The network can include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network, and forwards the computer-readable program instructions to be stored in a computer-readable storage medium in the corresponding computing / processing device.

[0029] The computer-readable program instructions for performing the operations of the present invention may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​(e.g., Java, Smalltalk, C++, etc.) and conventional procedural programming languages ​​(e.g., "C" programming language or similar programming languages). The computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as a separate software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, an electronic circuit device, such as a programmable logic circuit device, a field programmable gate array (FPGA), or a programmable logic array (PLA), may execute computer-readable program instructions by personalizing the electronic circuit device using the state information of the computer-readable program instructions to perform various aspects of the present invention.

[0030] Various aspects of the present invention are described herein with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to an embodiment of the present invention. It will be understood that each frame of the flowchart and / or block diagram and the combination of frames in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0031] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device for producing a machine, so that the instructions executed by the processor of the computer or other programmable data processing device create components for implementing the functions / actions specified in one or more boxes of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, which can guide a computer, a programmable data processing device, and / or other equipment in a specific manner, so that the computer-readable storage medium having the instructions stored therein includes an article of manufacture, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes of the flowchart and / or block diagram.

[0032] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operating steps are executed on the computer, other programmable apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable apparatus, or other device implement the functions / actions specified in one or more boxes of the flowchart and / or block diagram.

[0033] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functionality and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each frame in the flow chart or block diagram can represent a module, a fragment or an instruction portion including one or more executable instructions for realizing the specified (multiple) logical functions. In some alternative implementations, the function indicated in the frame may not occur in the order indicated in the figure. For example, depending on the functionality involved, the two frames shown in succession can actually be executed substantially simultaneously, or sometimes these frames can be executed in reverse order. It should also be noted that each frame of the block diagram and / or flow chart and the combination of the frames of the block diagram and / or flow chart can be implemented by a system based on dedicated hardware that performs a specified function or action or performs a combination of dedicated hardware and computer instructions.

[0034] The computer system 20 executes program instructions for an evaluation process that uses a novel approach to identify the best enhancement method for a given cognitive system. Thus, programs embodying the present invention may additionally include conventional aspects of various cognitive system tools (including data enhancement methods), and these details will become apparent to those skilled in the art after reference to this disclosure.

[0035] Reference now Figure 3 , depicts an enhancement evaluation environment 60 according to one implementation of the present invention. The environment 60 has at least one set of training data 62; and as will be further explained below, multiple different training sets may be used in more advanced implementations. The training data 62 may be in any form suitable for the cognitive system to be optimized and is provided by a data scientist. The training data 62 is acted upon by multiple enhancement engines. In this example, only four engines 64a-64d are depicted, but there may be more (or fewer) engines. Each enhancement engine enhances the training data 62 according to a particular enhancement methodology to produce enhanced training data 66a-66d, i.e., a first enhancement engine generates a first set of enhanced training data, a second enhancement engine generates a second set of enhanced training data, and so on. The particular enhancement method being evaluated may also be selected by the data scientist.

[0036] For text-based cognitive systems (e.g., natural language text or text obtained from speech-to-text transcription), the following enhancement methods are considered exemplary and not limiting. Enhancement engine 64a uses dictionary-based substitution to enhance training data 62; enhancement engine 64b uses text generation to enhance training data 62; enhancement engine 64c uses paraphrasing to enhance training data 62; and enhancement engine 64d uses back translation to enhance training data 62.

[0037] In dictionary-based augmentation, the data scientist provides a dictionary containing synonyms of words and a set of rules indicating the parts of the training data that need to be augmented. An example of such a dictionary is the English wordnet dictionary (containing synonyms of words). For dictionary-based augmentation, different variations of the augmentation set are generated from each sentence by replacing words by their synonyms.

[0038] In another embodiment, text enhancement is performed using text replacement using Word2Vec or other language models. The Word2Vec model identifies the inherent contextual interdependencies between words in a text. It is a neural network-based technique for learning vector representations of words and helps discover meaningful subspaces occupied by related words in the term space.

[0039] In another embodiment for text enhancement, the data enhancement method generates a paraphrase sentence from the original sentence. The paraphrase generation method of the prior art can be used. The engine can further implement an end-to-end automatic generation method with controlled sentence properties. In particular, there are existing methods in the field of text generation for emotion control.

[0040] In another embodiment, a statement can be translated into another language and translated back into the original language to generate a new statement. By using this back-translation based approach, variants can be added without losing the semantics of the input statement. Since there may be many intermediate languages ​​for translation, this will also generate a set of variants for each input statement. The specific language(s) can again be selected by the data scientist.

[0041] The data augmentation method may also be a combination of these methods or other methods. A hybrid augmentation method may be used in which a portion of the training data 62 is augmented using method 1, another portion of the training data 62 is augmented using method 2, and so on. The selection of a particular augmentation method for a portion of the training data may be made randomly or may be specified by the data scientist as an input parameter.

[0042] While these are exemplary enhancement methods for text-based AI, those skilled in the art will appreciate that there are other general enhancement methods that can be used for other types of cognitive systems (non-text).

[0043] Thus, given a training set, the engine applies various data augmentation methods, which are given as input by the data scientist on the training set, to obtain an enhanced training set. For each method to be applied, they can additionally generate different variants or subsets of the training set (e.g., 10% of a random sample of the training data, 50% of a random sample of the training data, 100% of the training data, 5% of the training data with input label "1", 5% of the training data with input label "2", etc.). The data augmentation method can then be applied to each such variant with selected parameters for a particular method. The data scientist also gives different variants of how to generate the training set as input. If no parameters are specified for an augmentation method, the augmentation engine selects a default set of parameters that can be any of the above parameters.

[0044] Each enhanced training data set 66a-66d is then applied to a base cognitive system 68 to train multiple individual instances of the system. The base cognitive system 68 may be a naive system (i.e., without prior training) or may be a system that has undergone some training. Figure 3 The result of this example is four cognitive system instances 70a-70d. Figure 4 As further described, each of these cognitive system instances is then subjected to validation testing 72, thereby generating at least one validation score for each cognitive system instance. The scores 74 of all cognitive system instances can then be compared (ranked) to determine which instance appears to have achieved the greatest improvement from data augmentation.

[0045] Figure 4 An example of how a validation test 80 can be applied to a given cognitive system instance using multiple variations of validation tests to obtain a combined validation score is shown. These tests can include, for example, but not limited to, syntax variation 82a, grammatical quality 82b, readability 82c, accuracy gain 82d, and vocabulary gain 82e and variations thereof. All of these tests are conventional tests, but new validation tests can also be used.

[0046] The syntactic variation test 82a refers to the variation of the syntax of the enhanced model (cognitive system). Syntax generally refers to the structure of a sentence, in particular the word order. Syntactic variation can be calculated using a variety of techniques (such as adding new bigrams or new trigrams). By constructing a dependency parse tree for each sentence, variations in sentence length and dependency structure can also be used.

[0047] The grammatical quality of the augmented model can be evaluated with the help of a prior art grammatical quality checking algorithm, which returns a set of quality scores across various grammatical dimensions, such as the percentage of spelling errors, the percentage of punctuation errors, the percentage of preposition errors, etc. When the grammatical quality scores are calculated for all sentences of the augmented data, they can be averaged to get a single score for all dimensions.

[0048] Readability is calculated with the aid of a prior art readability checker, which provides a readability score (e.g., a readability index) for any given sentence. The scores for all sentences can again be averaged to obtain an overall readability score.

[0049] The accuracy gain can involve several different variations, such as the accuracy gain compared to the base model on the original test set or the accuracy gain of the base model on the enhanced test set. The accuracy gain of the base model on the original test set is the difference in accuracy on the original test set when the original model and the enhanced model are applied. The enhanced model of the original test set is used to calculate the accuracy score based on the prediction of the enhanced model on the test set. The same operation is performed on the original model, and the difference is the accuracy gain. The difference can be positive, zero, or negative (meaning that the accuracy is reduced). As an example, for the business problem of predicting text sentiment, the original training data may contain ten thousand examples, the test data may contain one thousand examples, and the model may be based on a support vector machine. The original model (trained from the original training data) may have an accuracy of 70% on the original test data. Now, if the ten thousand examples are enhanced by another five thousand examples (the enhanced training data contains fifteen thousand examples), the enhanced model may have an accuracy of 74% on one thousand test data examples.

[0050] Therefore, the accuracy gain is 4%.

[0051] The accuracy gain of the base model on the enhanced test set is the difference in accuracy on the enhanced test set when the original model and the enhanced model are applied. For example, if the original test set has one thousand examples and is enhanced by another five hundred examples, the enhanced test set has one thousand five hundred examples. The accuracy of the original model on the enhanced test set may be 72%, while the accuracy of the enhanced model on the enhanced test set may be 75%, so the accuracy gain is 3%. In another method, a test set is created by taking enhanced words and collecting sentences containing these words from various sources (such as social media, emails, articles, news). The sentences are then annotated (for example, using a conventional text annotator) and the enhanced model is applied to them to predict the results. The accuracy score is calculated based on the predictions of the enhanced model on the test set and the predictions of the original model. The difference is the accuracy gain.

[0052] Vocabulary gain refers to the difference in vocabulary coverage between the original model and the enhanced model. For example, if the vocabulary of the original model is 20,000 words and the vocabulary of the enhanced model is 25,000 words, then the vocabulary gain is 5,000 (or 25%).

[0053] Each of the validation tests generates a separate component score. These scores can be combined in various ways to derive a combined validation score for a specific enhancement method. In a simple implementation where the scores have been normalized, the average of the scores can be obtained. However, in a preferred implementation, the combined validation score 84 is a combination of the respective scores and the corresponding weights of each test, i.e., a weighted average of the scores. Such weights represent the goodness of each enhancement method. Therefore, data scientists can set such weights / goodness. In another embodiment, weights / goodness can be determined via machine learning, wherein data scientists train a weight / goodness model (which is a separate cognitive system) for enhancement. In order to train a machine learning model, a data scientist can collect ground truth examples of good (e.g., marked as "1") and bad (e.g., marked as "0") enhancement models over time for a specific application (such as a business problem). Once trained, such a goodness model returns a goodness score (i.e., weight) for a specific enhancement model.

[0054] Once the combined validation scores 84 are calculated for each augmented model, they can be ranked and presented to the data scientist via a display device or other I / O device of the computer system 10. For ease of illustration, the ranked list can also show each component of the combined validation score for a particular augmented model. The data scientist can select a data augmentation method (i.e., the augmentation method used to train the best augmented model) based on these scores. Alternatively, the computer system 10 can automatically select an augmentation method by selecting the method corresponding to the highest ranked validation score.

[0055] After the best augmentation method is selected, it can be used to build a more comprehensive training dataset for the cognitive system. Figure 5An example application 90 for a deep question / answer system that can be executed on the same computer system 10 is shown. The selected data enhancement method 92 is applied to a training set 94 (in this case, a deep question / answer training set). The training set 94 can be the same as the earlier training set 62 used for the enhancement evaluation, but in the illustrative implementation, it is a different training set. In particular, the training data used for the validation test of different enhancement methods may be limited, while the training data for the final cognitive system is more comprehensive. The result is an enhanced training data set 96, which is then used to train the cognitive system, thereby producing an optimized deep question / answer system 98. A user can submit a query to the optimized deep question / answer system 98, for example in natural language form. Then, the NLP engine of the optimized deep question / answer system 98 can process the query and apply it to the trained system to provide one or more answers.

[0056] refer to Figure 6 The present invention can be further understood by the diagram of Figure 6The logical flow of an automated process 100 for evaluating data augmentation methods for cognitive system training data is illustrated, which may also be executed on a computer system such as computer system 10. The evaluation process 100 begins when computer system 10 receives a training data set for a cognitive system (102). The training data is in a form suitable for the particular cognitive system involved, for example, question / answer pairs for a text-based AI. A plurality of augmented training data sets are generated using various augmentation techniques (104). The augmented training data sets may also be different variations of a single augmentation method (where one or more parameters are varied). A cognitive system is trained using the first augmented training data set (106). The nature of the training involved again depends on the particular type of cognitive system, for example, a text-based AI may use tools such as a text annotator, a parse tree generator, etc. to classify input variables. Different validation tests are applied to the trained cognitive system (108). Each validation test produces a score, and the scores are preferably combined with weights to derive a combined validation score for the current method, which is then stored (110). If there are more enhancement methods to be tested (112), the process moves to the next enhancement training data set (114) and continues iteratively at box 106 to train the cognitive system using the next set. Once all enhancement training data sets have been processed, the enhancement methods are ranked according to their combined validation scores (116). Alternatively, as shown by the dashed arrow returning to box 102, the entire process so far can be repeated using different training data sets (the combined validation scores from different training sets can be averaged to obtain an overall score for each enhancement method). The best enhancement method is then selected for deployment (118). This selection can be automatic (i.e., the enhancement method with the highest combined score is selected) or manual (i.e., the system designer is asked to select the method after reviewing the different scores and their components). The selected enhancement method is then used to fully train the cognitive system for regular operation (120). Figure 6 The process thus results in an optimized cognitive system, which can then be used for its intended application, e.g. Figure 5 The deep Q / A system shown.

[0057] Thus, the present invention provides advanced methods for data augmentation in the training of cognitive systems. As discussed above, such training is critical to the proper operation of cognitive systems and constitutes a technical field in itself. Training a cognitive system can be thought of as improving the performance of a tool by sharpening a blade. A variety of implements can be used to sharpen a blade, but some implements produce a sharper edge. The present invention therefore represents a significant improvement in the technical field of cognitive system training. In at least some embodiments, the present invention also allows the entire process to be automated, so that the best augmentation method can be reliably identified for a particular cognitive system in existence.

[0058] Although the present invention has been described with reference to specific embodiments, the description is not meant to be interpreted in a restrictive sense. Various modifications of the disclosed embodiments and alternative embodiments of the present invention will become apparent to those skilled in the art after reference to the description of the present invention. For example, the present invention is not limited to text-based AI applications. It can be used with other types of cognitive systems (image-based, auditory-based, etc.) as long as there are sufficient data enhancement methods available for such a system. Therefore, it is expected that such modifications can be made without departing from the spirit or scope of the present invention as defined by the appended claims.

Claims

1. A method for optimizing training of a cognitive system, comprising: receiving a training data set suitable for training the cognitive system; Applying multiple data enhancement methods to the training data set to generate multiple enhanced training data sets; For each given augmented training data set, training a corresponding instance of the cognitive system, the trained instance being associated with a corresponding data augmentation method used to generate the augmented training data set, wherein the instance is trained on the augmented training data set; Validating each trained instance to obtain a validation score set, wherein the validation of each trained instance includes: determining, by a machine learning module, a set of weights corresponding to each validation score in the set of validation scores, wherein each validation score in the set of validation scores is associated with the data augmentation method corresponding to the trained instance being validated, and the set of validation scores is based at least in part on a plurality of validation tests, and determining a weighted average validation score for the plurality of validation tests using the set of weights corresponding to each validation score in the set of validation scores; ranking the plurality of data augmentation methods according to the validation scores of corresponding instances of the cognitive system; selecting an optimal data augmentation method among the plurality of data augmentation methods based on the ranking; and A final instance of the cognitive system is trained using the optimal data augmentation method.

2. The method of claim 1, wherein the cognitive system is text-based and the data augmentation method comprises at least dictionary-based text replacement, Word2Vec text generation, sentence paraphrase, and back translation.

3. The method of claim 1, wherein the selecting automatically selects one of the data augmentation methods having the highest validation score.

4. The method of claim 1, wherein the validation comprises applying a plurality of different validation tests to a given trained instance to determine a plurality of corresponding component scores for the given trained instance, and the validation score is a combination of the component scores. 5 . The method of claim 4 , wherein the validation score is a weighted average of the component scores using a respective weight for each validation test.

6. The method of claim 4, wherein the cognitive system is text-based and the plurality of validation tests include at least syntactic variation, grammatical quality, readability, accuracy gain, and vocabulary gain.

7. The method of claim 1, wherein the cognitive system is a deep question / answer system, and further comprising: receiving, at said final instance of said cognitive system, a user query; as well as An answer to the user query is provided using the resulting instance of the cognitive system.

8. A computer system comprising: one or more processors to process program instructions; a memory device connected to the one or more processors; as well as Program instructions resident in the memory device, the program instructions for optimizing training of a cognitive system by: receiving a training data set suitable for training the cognitive system; Applying multiple data enhancement methods to the training data set to generate multiple enhanced training data sets; For each given augmented training data set, training a corresponding instance of the cognitive system, the trained instance being associated with a corresponding data augmentation method used to generate the augmented training data set, wherein the instance is trained on the augmented training data set; Validating each trained instance to obtain a validation score set, wherein the validation of each trained instance includes: determining, by a machine learning module, a set of weights corresponding to each validation score in the set of validation scores, wherein each validation score in the set of validation scores is associated with the data augmentation method corresponding to the trained instance being validated, and the set of validation scores is based at least in part on a plurality of validation tests, and determining a weighted average validation score for the plurality of validation tests using the set of weights corresponding to each validation score in the set of validation scores; ranking the plurality of data augmentation methods according to the validation scores of corresponding instances of the cognitive system; selecting an optimal data augmentation method among the plurality of data augmentation methods based on the ranking; and A final instance of the cognitive system is trained using the optimal data augmentation method.

9. The computer system of claim 8, wherein the cognitive system is text-based and the data augmentation methods include at least dictionary-based text replacement, Word2Vec text generation, sentence paraphrase, and back translation.

10. The computer system of claim 8, wherein the selecting automatically selects one of the data augmentation methods having a highest validation score.

11. The computer system of claim 8, wherein the validation comprises applying a plurality of different validation tests to a given trained instance to determine a plurality of corresponding component scores for the given trained instance, and the validation score is a combination of the component scores.

12. The computer system of claim 11, wherein the validation score is a weighted average of the component scores using a respective weight for each validation test.

13. The computer system of claim 11, wherein the cognitive system is text-based and the plurality of validation tests include at least syntactic variation, grammatical quality, readability, accuracy gain, and vocabulary gain.

14. The computer system of claim 8, wherein the cognitive system is a deep question / answer system, and further comprising: receiving, at said final instance of said cognitive system, a user query; as well as An answer to the user query is provided using the resulting instance of the cognitive system.

15. A computer program product comprising: computer readable storage medium; as well as Program instructions residing in the storage medium, the program instructions are used to execute the steps in the method according to any one of claims 1 to 7.

16. A computer system comprising modules for executing the steps of the method according to any one of claims 1 to 7.