Multi-objective generators in deep learning

By formulating GAN learning as a mixed strategy of a zero-sum game and introducing a multi-objective training method, the problem of data diversity and stability in VAE and GAN generation models is solved, and the diversity and stability of new data generated are improved.

CN111226236BActive Publication Date: 2024-10-15D5AI LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201880067035.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-09-14
Filing Date
2018-09-28
Publication Date
2024-10-15
Estimated Expiration
2038-09-28

AI Technical Summary

Technical Problem

Existing generative models such as VAE and GAN are prone to copy training data examples when generating new data, resulting in a lack of diversity in generated data, and the learning stability problem of GAN has not been effectively solved, prone to mode collapse.

Method used

By formulating GAN learning as a hybrid strategy of a zero-sum game and introducing additional objectives to avoid generating examples that are too similar to previous data examples, multi-objective training methods are used to prevent mode collapse, including real vs. generated discriminators, minimum distance constraints, and noise detection. and other components to form a composite generator-detector system.

Benefits of technology

It effectively prevents the generator from generating too similar data, enhances the ability to generate new data, improves the stability and diversity of the generator, and reduces the risk of model collapse.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111226236B_ABST
    Figure CN111226236B_ABST
Patent Text Reader

Abstract

Machine learning data generators use additional objectives to avoid generating data that is too similar to any previously known data examples. This prevents plagiarism or simple copying of existing data examples, thereby enhancing the generator's ability to effectively generate new data. Learning generative adversarial networks (GANs) as mixed strategy minimax solutions to zero-sum games solves the convergence and stability problems of GAN learning without mode collapse.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Priority claim

[0002] This application claims priority to (i) U.S. Provisional Patent Application Serial No. 62 / 564,754, filed on September 28, 2017, entitled “Aggressive Development with Cooperative Generators,” and (ii) PCT Application No. PCT / US 18 / 51069, filed on September 14, 2018, entitled “Mixture of Generators Model,” both of which are incorporated herein by reference in their entirety. Background Art

[0003] Generative modeling is an active and growing branch of unsupervised and semi-supervised machine learning. The goal of a generative model is to represent latent variables that describe the distribution of data, which can produce or reproduce data examples in a high-dimensional space. Two approaches, variational autoencoders (VAEs) and generative adversarial networks (GANs), have emerged as the dominant techniques for generative modeling in artificial intelligence and deep learning. A classic example is images, where generative models can be used to produce new images that appear realistic and closely resemble images from a set of training examples, without the need to exactly reproduce the existing images that the generative model was trained on. Trained using stochastic gradient descent coordinated with deep neural networks that act as universal function approximators, VAEs and GANs can be used to generate many types of realistic data.

[0004] A key aspect of generative models is that they should not simply reproduce the data examples used in training, but should be able to generate new data that is similar but different from any example in the training set. Both VAEs and GANs are trained by trying to minimize an objective cost function, which is minimized by exactly reproducing the training data. Further, GANs often suffer from mode collapse, where the GAN only generates representatives of a small appropriate subset of the modes of a multimodal distribution, and in some cases only representatives of a single mode. This reduces the diversity of the generated data and limits the usefulness of GANs in certain applications.

[0005] There is also a GAN-specific issue: the stability of GAN learning remains an open question. The original formulation as a zero-sum game failed to converge. An alternative formulation as a non-zero-sum game should tend to converge in theory, but does not seem to improve this convergence in practice. Summary of the invention

[0006] In one general aspect, the present invention is designed to overcome these and other limitations in VAEs and GANs by using an additional objective to avoid generating data that is too similar to any previously known data examples. This can prevent plagiarism or simple copying of existing data examples, thereby enhancing the generator's ability to effectively generate new data. Formulating GAN learning as a mixed strategy minimax solution to a zero-sum game solves the convergence and stability problems of GAN learning. At the same time, the present invention does not suffer from mode collapse like GAN.

[0007] These and other advantages of the present invention will become apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Various embodiments of the present invention are described herein by way of example with reference to the following drawings, in which:

[0009] Figure 1 A block diagram of an autoencoder with additional objectives according to one aspect of the present disclosure is shown;

[0010] Figure 2 A block diagram of a generator including a real and generated discriminator according to one aspect of the present disclosure is shown;

[0011] Figure 3 A block diagram of a generator including a real and generated discriminator according to one aspect of the present disclosure is shown;

[0012] Figure 3A A block diagram of a system having multiple generators and multiple classifiers according to one aspect of the present disclosure is shown;

[0013] Figure 4 is a diagram of a computer system that can be used to implement various embodiments according to one aspect of the present disclosure; and

[0014] Figure 5 is a diagram illustrating a deep neural network that may be used in various aspects of various embodiments of the invention. DETAILED DESCRIPTION

[0015] Figure 1 , 2 3 is a block diagram of a machine learning system according to various embodiments of the present invention, and the machine learning system can be used in Figure 4 The method is implemented on a computer system of computer system 400. Figure 1-3 Many components of the machine learning system in are neural networks. Before further explaining the components of the present invention, a general explanation of neural networks is provided.

[0016] Figure 5An example neural network diagram is shown in . As shown in this diagram, a neural network is a collection of nodes and directed arcs. The nodes in a neural network are usually organized into layers. Figure 5 As shown in , in a feedforward neural network, these layers can be numbered from bottom to top. Each directed arc in a layered feedforward neural network connects a source node in a lower layer and a destination node in a higher layer. Figure 5 The feedforward neural network shown in has an input layer, an output layer, and three inner layers (although deeper neural networks can have fewer or more inner layers). The inner layers of a neural network are also called "hidden" layers. Each directed arc is associated with a numerical value called a "weight". Typically, each node except the input node is associated with a numerical value called a "bias". The weights and biases of a neural network are called "learning" parameters. During training, the values ​​of the learning parameters are determined by variables such as Figure 4 The computer system 400 shown in FIG. 4 is adjusted by the computer system 400. Other parameters that control the training process are called hyperparameters.

[0017] A feedforward neural network can be trained by the computer system 400 using an iterative process of stochastic gradient descent, where an iterative update is made to the learning parameters for each mini-batch. The entire batch of training data is typically arranged into a set of smaller, disjoint sets, called mini-batches. An epoch includes the computer system 400 performing a stochastic gradient descent update on each mini-batch contained in the entire batch of training data. For each mini-batch, the computer system 400 estimates the gradient of the objective (or cost) function for the training data items by first calculating the activation of each node in the network using a feedforward activation calculation. The computer system 400 then estimates the partial derivatives of the objective with respect to the learning parameters, backward through the layers of the network, using a process called "backpropagation" (which calculates partial derivatives based on the chain rule of calculus). The process of stochastic gradient descent, feedforward calculations, and backpropagation is well known to those skilled in the art of training neural networks. Figures 1 to 3 Some components of the machine learning system may include a neural network including, for example, encoders 102, 202, 302, decoders 104, 204, 304, real and generated discriminators 219, 319, classifiers 321, machine learning systems 208, 328 and distortion (or noise) detectors 322.

[0018] We have summarized neural networks above. Now let’s pay attention to Figure 1 , which shows a block diagram of an autoencoder. An autoencoder is a machine learning system that can learn efficient encodings of data and can be used to generate data examples. The use of autoencoders as generators is well known to those skilled in the art of neural networks. Although Figure 1The illustrative embodiment shown in uses a variational autoencoder (VAE) as the generator 111, but it should be understood that some other forms of generators may be used, such as a stochastic categorical autoencoder network (SCAN). More details about SCAN are described in U.S. patent application Ser. No. 16 / 124,977, filed on Sept. 7, 2018, entitled “Stochastic Categorical Autoencoder Network”. Figure 1 As shown in , a typical autoencoder comprises an encoder 102 that is trained to produce a layer 103 from training examples 101, which is a bottleneck layer in the case of a traditional autoencoder, or a random layer in the case of a VAE or SCAN. A decoder 104 is then trained to produce training examples 101 from either the bottleneck layer or the random layer 103, as the case may be.

[0019] An autoencoder network is sometimes said to learn through "unsupervised" training because the autoencoder network does not require labeled training data. More accurately, the autoencoder network learns through "self-supervised" training. The learning of the autoencoder network can be trained using stochastic gradient descent, just like in supervised training. However, the autoencoder provides its own target, which is just a copy of the input data 101.

[0020] For any input data item 101, the computer system provides the input 101 to the autoencoder system 111. During training, the computer system 400 also provides a copy of the input 101 as a target for the output of the decoder 104, which is also the output of the autoencoder system 111. If the autoencoder system 111 is a traditional deterministic autoencoder, the autoencoder system 111 calculates its output by feedforward activating nodes in the neural networks 102, 103, and 104. If the autoencoder system 111 is a stochastic autoencoder (such as a VAE or SCAN), the encoder 102 produces parameter values ​​that determine the probability distribution of the parameters as output. For example, the parameters can specify the mean and standard deviation (or other central tendency and dispersion statistics) of a set of Gaussian random variables. If the autoencoder system 111 is a VAE, in addition to the goal of minimizing the error function by comparing the output of the decoder 103 with the copy of the input as the target, these parameters are trained to minimize the Kullbach-Leibler divergence of the probability distribution averaged over the training data as an imposed regularization. If the autoencoder system 111 is SCAN, then these parameters are trained only to minimize the error function, but are constrained by the parameters that determine the probability distribution. For example, the means can all be constrained to be less than or equal to 1.0 in absolute value, and the standard deviations can all be constrained to be greater than or equal to 1.0. For any type of random autoencoder, the computer system 400 generates a set of random variables according to the probability distribution specified by the parameters output by the encoder 102 for the input 101. The values ​​of these random variables are then the input to the decoder 104. The output of the encoder 104 (which is also the output of the autoencoder system 111) can then be calculated by the computer system 400 as a feedforward activation.

[0021] Figure 1 The differences between the illustrative embodiment shown in and conventional deterministic or random autoencoders include blocks 105 (nearest neighbor finder), 106 (similarity calculation), and 107 (minimum distance constraint). These blocks representing processes and / or constraints (as opposed to machine learning systems or networks) provide the autoencoder 111 with additional goals for training the autoencoder 111 as described below. To generate the additional goals, the computer system 400 first sets a minimum distance criterion in block 107. The minimum distance criterion can be determined by a hyperparameter.

[0022] At the nearest neighbor finder box 105, the computer system 400 finds the nearest neighbor that can be found in a set of nearest neighbor candidates 113 to the output pattern generated by the decoder 104 for the input data item 101. Any suitable algorithm (such as a k-nearest neighbor algorithm) can be used to find the nearest neighbor. In some embodiments, the computer system 400 at the nearest neighbor finder box 105 finds the nearest neighbor candidates by retrieving them as output from a robust self-associative memory 112, such as a Hopfield network or a robust self-associative memory as described in PCT application No. PCT / US18 / 51683, entitled "Robust Auto-Associative Memory with Recurrent Neural Network" filed on September 19, 2018, which is incorporated herein by reference in its entirety. The dashed arrow from the decoder 104 to the nearest neighbor finder block 105 indicates that the nearest neighbor finder block 105 receives data from the decoder 104 (e.g., the output of the decoder 104), but does not directly back-propagate the partial derivatives to the decoder 104. Instead, the partial derivatives of the penalty term may be directly propagated from the minimum distance constraint block 107 to the decoder 104, conditional on the detection of a violation of the minimum distance constraint at the minimum distance constraint block 107. Figure 1 In the illustrative embodiment shown in , as explained in conjunction with the minimum distance constraint block 107, it is more important for the computer system 400 at the nearest neighbor finder block 105 to accurately determine the nearest neighbor as the output of the decoder 104 gets closer and closer to this neighbor. The auto-associative memory tends to have the most accurate properties when retrieving such close matches.

[0023] At similarity calculation frame 106, computer system 400 calculates (i) the nearest neighbor found at nearest neighbor finder frame 105 and (ii) the distance between the output pattern from decoder 104 based on distance metric. Any suitable distance metric can be used, such as some other metrics in the data space of Euclidean distance metric or input variables. In certain embodiments, it can be a distance metric in some encodings, such as a feature vector. For example, a feature vector can be obtained by an encoder trained as a non-random autoencoder, wherein the feature vector is used as a bottleneck layer. In certain embodiments, the feature vector can be obtained as an intermediate stage in a classifier, such as a vector representation in a Word2Vec system.

[0024] Regardless of the distance metric, at the minimum distance constraint block 107, the computer system 400 compares the distance calculated at the similarity calculation block 106 to a constraint that sets a minimum allowed value for the distance. At the minimum distance constraint block 107, if the minimum distance constraint is violated (i.e., if the distance is less than the minimum allowed distance), the computer system 400 can add an additional positive penalty term to the back-propagated cost function of the generator / autoencoder 111. This prevents the generator 111 from simply copying the input and helps the generator 111 learn to generalize from the training data 101. Autoencoder systems that include additional objective functions (such as in conjunction with Figure 1 The system described in the foregoing) can be used as a system for detecting plagiarism, for example by being able to detect patterns that are close to, but not an exact match of, the original pattern.

[0025] For any violation, the penalty term can be constant, or can vary according to the scope of the violation. For example, when the distance to the nearest neighbor is close to (but still less than) the minimum distance, the penalty term can be smaller, and when the distance to the nearest neighbor is close to zero, the penalty term can be larger. The variability of the penalty can vary linearly or nonlinearly with the difference between the distance to the nearest neighbor and the minimum distance constraint. Preferably, the penalty term added by the minimum distance constraint frame 107 has a maximum value when the distance between the output of the decoder 104 and the nearest neighbor is zero, and the distance is determined by the nearest neighbor finder frame 105. If the distance is greater than the minimum distance constraint, there is no penalty. Generally, as described above, for computer system 400, at the nearest neighbor finder frame 105, it is more important to accurately determine the nearest neighbor closer to this neighbor.

[0026] Figure 2 and Figure 3 A generator that uses a real vs. generated discriminator, such as used in Generative Adversarial Networks (GANs). Figure 2 and 3 The generators 211, 311 in can be traditional autoencoders, VAEs, SCANs or GANs. However, each of the generators 211, 311 also has other objectives that help prevent mode collapse during their training.

[0027] Figure 2 Similar to Figure 1 , except for adding the real and generated discriminator 219. Figure 2Various embodiments may represent enhancements to VAE, SCAN, or GAN. For VAE or SCAN as generator 211, encoder 202 and original pattern 201 are only used to train generator 211. For GAN as generator 211, they are not used at all; GAN has a random layer 203 as its input to decoder 204 and does not have an encoder 202. Different types of generators have different random layers 203. GAN directly generates a vector of random variables without training latent variables as the output of encoder 202. SCAN and VAE have different constraints in the training of latent variables at the random layer 203.

[0028] Similar to Figure 1 , Figure 2 The system uses something like Figure 1 The steps at blocks 205, 206 and 207 of blocks 105, 106 and 107 of the example are repeated to allow the subsystem to function as an anti-plagiarism detector. The output from the real and generated discriminator 219 is also back-propagated to the generator 211. That is, the real and generated discriminator 219 can determine (or "discriminate") whether the output of the generator 211 is real or generated. If the output of the generator 211 is generated for the real and generated discriminator 219, the real and generated discriminator 219 can back-propagate an additional penalty term to the generator 211 in its training, thereby effectively rewarding the generator 211 for generating a real output pattern. Blocks 205-207 also prevent the real and generated discriminator 219 from causing the generator 211 to simply memorize the training data 101. The dashed arrow from the decoder 204 to the nearest neighbor finder block 205 indicates that the nearest neighbor finder block 205 receives data from the decoder 204, but does not directly back-propagate partial derivatives to the decoder 204. Instead, the partial derivative of the penalty term may be propagated directly from the minimum distance constraint block 207 to the decoder 204 , conditioned on the minimum distance constraint block 207 detecting a violation. In some embodiments, the real vs. generated discriminator 219 has been trained on a dataset that is disjoint from the nearest neighbor set 213 .

[0029] Figure 2The system may also include an additional machine learning system 208 that provides additional objectives for the training of the generator 211 (e.g., objectives in addition to the input data objectives and the real and generated discriminator 219). For example, the machine learning system 208 may include a classifier that has been trained prior to training the generator, or the machine learning system 208 may be trained on data received from the output of the decoder 204. In either case, the machine learning system 208 backpropagates the partial derivatives of its classification objective to the output of the decoder 204. This additional objective helps the training generator 211 learn to generate data that is useful for distinguishing between categories in the classifier 208. In addition to improving the performance of the classifier 208, this additional objective also has a regularizing effect on the generator 211. In another embodiment, the machine learning system 208 can be an ensemble of classifiers or multiple classifiers with different objectives or different categories. Figure 3 The additional targets 321 and 322 shown in FIG. 3 may alternatively be viewed as being from Figure 2 201. In general, additional goals from the machine learning system 208 help any type of generator 211 generalize from the training examples 201 and help prevent mode collapse that may be caused by the real and generated goals 219.

[0030] Figure 3 is a block diagram of another system that can represent an enhanced version of any generator type. Figure 2 , Figure 3 There is a real and generated discriminator 319 and components (such as blocks 305, 306 and 307) which can be used to allow the subsystem to act as an anti-plagiarism detector. The operation of these components is similar to Figure 1 The blocks 105, 106 and 107 of the decoder 304 are prevented from causing the generator 311 to memorize only the training data, and the real and generated discriminator 319 is prevented from causing the generator 311 to memorize only the training data. The dashed arrow from the decoder 304 to the nearest neighbor finder block 305 indicates that the nearest neighbor finder block 305 receives data from the decoder 304, but does not directly back-propagate the partial derivatives to the decoder 304. Instead, the partial derivatives of the penalty term can be directly propagated from the minimum distance constraint block 307 to the decoder 304, conditioned on detecting a violation of the minimum distance constraint block 307.

[0031] Figure 3Two new types of objectives are added. A machine learning distortion (or noise) detector 322 can be trained to detect noise or distortion in the output of the decoder 304. In some embodiments, the distortion (or noise) detector 322 is trained as a discriminator with supervised training between (i) an original image and (ii) a noisy and distorted version of the same image. When the distortion (or noise) detector 322 determines that the output of the decoder 304 is above a threshold level of noise, the distortion (or noise) detector 322 can back-propagate a penalty term to the generator 311, effectively rewarding the generator 311 for generating patterns without noise.

[0032] The machine learning classifier 321 provides different kinds of targets; it can be a classifier trained separately from the generator 311 and is not necessarily Figure 3 The system is trained during the training process shown in Figure 3 In the training of , the target of the classifier 321 from which it is back-propagated to the generator 311 is multi-target. That is, the target output of the classifier 321 is not a single category, but contains target activation levels for multiple categories. For example, the target may be that both category A and category B have an activation of 0.5. Because no data examples in the training data of the classifier 321 should have such a fuzzy score, the classifier 321 imposes an implicit constraint that the pattern generated from the decoder 304 does not match the training data of the classifier 321. The training data of the classifier 321 may contain training data of the real and generated discriminator 319. The multi-category target of the classifier 321 then prevents the output pattern from the decoder 304 that matches one example in the training data of the discriminator 319 from being optimal for the entire target.

[0033] Thus, although the target reward generator 311 for the real vs. generated discriminator 319 produces real patterns (containing the training data of the discriminator 319), the target from the minimum distance constraint 307 and from the classifier 321 prevents the generator 311 from exactly matching the training data 301 and encourages the decoder 304 to generalize to new patterns.

[0034] Optionally, Figure 3 The system shown in FIG. 3 may also have additional back-propagation training objectives from the machine learning system 328. For example, the machine learning system 328 may include one or more classifiers, such as a combination of Figure 2 In general, the additional objective from the machine learning system 328 can have a regularizing effect, making the training of the generator 311 less likely to overfit the training data and less likely to have mode collapse.

[0035] Figure 2 and Figure 3Two illustrative examples are provided showing how multi-objective augmentation of GANs, SCANs, and VAEs can be trained to generalize from their training data and to avoid mode collapse with a real vs. generated discriminator as one of its objectives.

[0036] Having multiple goals helps avoid mode collapse, even without an anti-plagiarism subsystem (e.g. Figure 2 Components 205, 206, 207 or Figure 3 Components 305, 306, 307 in FIG. 1 ). In some embodiments, the components including Figure 2 Components 205, 206, 207 or Figure 3 305, 306, 307 in the subsystem. In these embodiments, having multiple other objectives, even without the minimum distance constraint box 207 or 307, will enhance the ability of the system (e.g., data generator 211, 311) to learn to generalize to new data. Multiple objectives will also provide regularization, reduce the effective number of degrees of freedom, and reduce the tendency to overfit the training data. Multiple objectives in addition to the real and generated discriminator 219 or 319 will also reduce the tendency of mode collapse in GAN training.

[0037] Figure 3A Another aspect of the present invention is shown, wherein there are multiple generators 331, 332, 333 and multiple detectors 341, 342, 343, each detector can embody Figure 2 and 3 A more robust version of the multiple targets shown in . Figure 3A 9 is a block diagram of an illustrative embodiment of a generative model for a collection of data as a mixture of clusters, each cluster being represented by a corresponding generator-detector pair 92A-C. In the illustrated embodiment, each class or other collection of input data is modeled as a mixture of clusters, with one generator-detector pair for each cluster. Thus, the system 90 is referred to as a multi-generator model (MGM). Figure 3A In the illustrative embodiment shown in , each detector 341, 342 or 343 is not a simple detector, but can be a complex multi-target classifier, where each output node of each classifier is replaced by a more robust 3-node output that distinguishes three results: detection (D), rejection (R) or neutral (N, no decision). Each detector 341, 342 or 343 can embody Figure 2 and 3 One or more classification targets in , namely, a real and generated discriminator (219 or 319), a classifier with multi-class targets 321, other targets (228 or 328), or a minimum distance constraint (207 or 307). For simplicity, only a set of three nodes D, R, and N are shown for each detector. Figure 3AIn the example, there are only three clusters, all belonging to the same category; therefore, only three generator-detector pairs 92A-C are shown, but it should be understood that in unsupervised training, there can be any number of clusters / generator-detector pairs and any number of categories or any number of clusters per category. In some embodiments, the 3-node output of detectors 341, 342, 343 can be a single node, in which case the detector is essentially equivalent to Figure 3 The subsystem, namely the decoder (such as Figure 3 decoder 304), and one or more targets (such as Figure 3 307, 319, 321, 322 and 328).

[0038] For each target in a machine learning system, a two-node output with a softmax constraint is effectively equivalent to a single output node with a sigmoid activation function. Figure 3A As shown in , the three-node output with softmax constraints and "neutral" selection is a more robust version of the one-node output or the two-node output, where some data is not classified as detection or rejection. It is more robust in the sense that the "neutral" category creates a margin or buffer between the acceptance and rejection options. There are various embodiments for training a three-node detector. One embodiment is to simply label some of the training data as neutral. Another embodiment is to label as neutral any data that is classified as "detection" by multiple cluster detectors of different classes or is not labeled as "detection" by any cluster detector during training. Yet another embodiment is to dynamically re-label the training data as "detection", "rejection" or "neutral" based on optimized performance in testing on development data that does not intersect with the training data.

[0039] like Figure 3A As shown in , each generator-detector pair 92A-C may include one generator and one detector, and preferably there is one generator-detector pair 92A-C for each cluster in the category. Figure 3A , assuming there are three clusters, and therefore three generator-detector pairs, namely: generator 1 (box 331) and detector 1 (box 341) form a generator-detector pair 92A of cluster 1; generator 2 (box 332) and detector 2 (box 342) form a generator-detector pair 92B of cluster 2; and generator 3 (box 333) and detector 3 (box 343) form a generator-detector pair 92C of cluster 3. As combined Figure 2 and 3 As described, the generator-detector pairs are trained individually by computer system 400 .

[0040] Under the control of computer system 400, transport switch 340 (implemented in software) operates in accordance with the operations performed by system 90. Figure 3A Different connections are established between the elements in. During separate training, each generator (331, 332, or 333) is connected to its corresponding detector (341, 342, or 343). During development testing, the generator can be cross-connected to different detectors to test how well each one generalizes the data used to train the other. In some embodiments, the real data training data set for each generator-detector pair does not intersect with the data of other pairs. In some embodiments, there is some overlap in the real data training data for the generator-detector pair. The generator is trained to optimize its goals, such as generating real data to fool the real and generated discriminator 207 or 307 in the case of GAN, or minimizing the KL divergence of the random layer 203 or 303 in the case of VAE, but the generator is not explicitly restricted to generate data that may also be generated by another generator.

[0041] In one illustrative embodiment, each detector 341, 342, and 343 is a multi-target detector, including a real and generated detector and other targets, so each generator 331, 332, and 333 is a "clustering" GAN for generating data examples within a unique data set with additional targets (e.g., a data class with multiple clusters). In general, clustering GANs 331, 332, and 333 can constitute a composite GAN. To generate data representing a class, in node 330, the computer system 400 selects a cluster in the class. Each cluster can be selected based on a probability distribution specified by the computer system 400. In an illustrative embodiment of GAN training as a two-player game, there are two probability distributions, where the probability distributions specify the von Neumann mixed strategy of each of the two players. For the composite GAN, the set of generators 331-333 represents a player. The computer system 400 trains the probability as a learning parameter that specifies the frequency with which the composite GAN generates data from each cluster, representing the von Neumann mixed strategy of the player. The computer system 400 generates a data example for the selected cluster (eg, Cluster 2 ) using the generator of the selected cluster (eg, Generator 2 of Cluster 2 , etc.), and the data example is sent to the transmission switch 340 .

[0042] When the system 90 trains the detectors 341, 342, 343, at the switch 340, the computer system 400 can receive real or generated data from the box 335. The real or generated data 305 can be stored on board and / or off board of the computer system 400. If the data 305 is generated data, it can be generated by a data generator (not shown). The switch 340 sends the data from the box 305 to each detector 111-113, one detector corresponding to one cluster.

[0043] In selecting real data for training the composite GAN, the computer system 400 uses a similar set of probabilities 350 to select each training data item of the real data, where the probabilities over the real data sum to 1.0, thereby representing the von Neumann mixed strategy of the second player (i.e., the real and generated discriminator). In the absence of additional goals, the best strategy for the player represented by the set of generators 331-333 is to only generate training data items, and to generate each training data item with equal probability. For the player represented by the set of detectors 341-343, the best strategy is to reject any data item that does not match the training data item, and to assign a probability of each real data item equal to the probability of each other real data item. The additional goals force the generator-detector pairs to generalize from the training data to jointly satisfy multiple goals.

[0044] From each cluster detector 341-343, the computer system 400 preferably feeds the "detect" activation to two nodes. One destination is the "Max node" 351. The activation of the Max node 351 is the maximum activation of the "detect" output of all clusters in a particular category. For example, Figure 3A As shown in , the activation value of Max node 351 is equal to the single maximum activation value of the detection outputs of detectors 1 to 3. The activation of node 351 can be used as the score of the class in the class classification task. Node 351 preferably receives backpropagation during the training of the classification task, and in turn the computer system 400 backpropagates the error cost function derivative to the detector 341-343 with the maximum value.

[0045] In cluster classification mode, the second destination is a dedicated node in node set 361. For each detector 341-343, there is one node in node set 361, and therefore one node for each cluster in a specified category. Computer system 400 sends the "detect" activation of each cluster detector 341-343 to its respective dedicated node in node set 361. In the illustrative embodiment, computer system 400 performs a softmax operation on node set 361; that is, it normalizes the activations of the nodes to one. During training, computer system 400 trains node set 361 for cluster classification. For each data example, the target of node set 361 is a value of one for the correct cluster and a value of zero for all other nodes. In node set 361, computer system 400 backpropagates this target to cluster detectors 341, 342, and 343, respectively.

[0046] if Figure 3AIf the multiple generators 331, 332, and 333 in are GANs (i.e., "clustered GANs"), then the introduction of probability in node 330 fundamentally changes the composite GAN learning process. In the two-player game interpretation of GANs, the probability in node 330 represents the probability of the player represented by the clustered GAN generator choosing the clustered von Neumann mixed strategy. The probability in node 350 represents the probability of the von Neumann mixed strategy used to select real data 355 by the player represented by the real and generated discriminator in the multi-target detector. The other targets in the multi-target detector help improve the ability of the system 90 to learn induction, but are not controlled by the "players" in the hypothetical two-player game trained on the GAN. The fundamental theorem of game mathematics theory is von Neumann's fixed point minimax theorem, which guarantees that any two-player zero-sum game has a unique value, and that each player has a probabilistic mixed strategy that is guaranteed to have at least a unique value, regardless of what strategies the other players may use. Figure 3A As shown in , this theorem means that the GAN learning method based on the von Neumann mixing strategy will converge to the von Neumann fixed point value. In other words, based on Figure 3A The GAN learning method of the embodiment shown in avoids the stability problems of other GAN learning methods. In particular, it avoids the periodic non-convergence behavior of the original GAN ​​implementation based on players alternating pure strategies in a two-player zero-sum game model. It also avoids the problem of multiple Nash equilibria in non-zero-sum games, because the von Neumann solution of a zero-sum game is unique. Figure 3A The robustness and multiple targets of the 3-node detectors 341, 342, 343 shown in are not necessary for the stability of the von Neumann solution. Figure 3A One embodiment of is that each detector 341, 342, 343 is simply a copy of a decoder with multiple targets, such as Figure 3 The decoder 304 of the targets 307, 319, 321, 322 and 328 is shown in FIG. In addition, Figure 3A The system shown in can avoid mode collapse by having a separate cluster generator 331, 332, 333 for each mode. On the other hand, although the von Neumann mixing strategy itself solves the stability problem, in the preferred embodiment, multi-target, robust detectors and cross-training and development testing are desired because they help the generator learn to generalize to new data not included in the training data.

[0047] Figure 44 is a diagram of a computer system 400 that can be used to implement the above-described embodiments. The illustrated computer system 400 includes a plurality of processor units 402A-B, and in the illustrated embodiment, each processor unit includes a plurality (N) of processor cores 404A-N. Each processor unit 402A-B may include an on-board memory (ROM or RAM) (not shown) and an off-board memory 406A-B. The on-board memory may include primary, volatile and / or non-volatile memory (e.g., memory directly accessible by the processor cores 404A-N). The off-board memory 406A-B may include auxiliary non-volatile memory (e.g., memory that the processor cores 404A-N cannot directly access), such as ROM, HDD, SSD, flash memory, etc. The processor cores 404A-N may be CPU cores, GPU cores, and / or AI accelerator cores. The GPU cores operate in parallel (e.g., a general purpose GPU (GPGPU) pipeline), and therefore can generally process data more efficiently than a collection of CPU cores, but all the cores of the GPU execute the same code at the same time. An AI accelerator is a class of microprocessors designed to accelerate artificial neural networks. They are also often used as co-processors in devices with a main CPU 410. AI accelerators typically have tens of thousands of matrix multiplier units, which operate at lower precision than CPU cores, such as 8-bit precision in AI accelerators versus 64-bit precision in CPU cores.

[0048] In various embodiments, different processor cores 404 may train and / or implement different networks or subnetworks or components. For example, in one embodiment, the core of the first processor unit 402A may implement Figure 1 402B may implement the encoder 102 in the processor unit 402A, and the second processor unit 402B may implement the decoder 104. In other embodiments, different groups of cores in the first processor unit 402A may be responsible for the encoder 102 and the decoder 104. In addition, one or more of the processor cores 404 and / or one or more of the processor units may implement other components in the system herein, such as the neighbor finder 105, the real and generated discriminator 219, the distortion or noise detector 322, the multi-class classifier 321, etc. One or more main processors 410 may coordinate and control the processor units 402A-B.

[0049] In other embodiments, system 400 can be implemented with one processor unit 402. In embodiments where multiple processor units are present, the processor units can be co-located or distributed. For example, processor units 402 can be interconnected via a data network such as a LAN, WAN, the Internet, etc. using suitable wired and / or wireless data communication links. Data can be shared between various processing units 402 using suitable data links, such as a data bus (preferably a high-speed data bus) or a network link (e.g., Ethernet).

[0050] The software of the various computer systems 400 described herein and other computer functions described herein can be implemented in computer software using any suitable computer programming language (such as .NET, C, C++, Python) and using traditional, functional or object-oriented techniques. The programming language of instructions for computer software and other computer implementations can be translated into machine language by a compiler or assembler before execution, and / or can be directly translated by an interpreter at runtime. Examples of assembly languages ​​include ARM, MIPS, and x86; examples of high-level languages ​​include Ada, BASIC, C, C++, C#, COBOL, Fortran, Java, Lisp, Pascal, Object Pascal, Haskell, ML; and examples of scripting languages ​​include Bourne script, JavaScript, Python, Ruby, Lua, PHP, and Perl.

[0051] Thus, in one general aspect, the present invention relates to a machine learning computer system and a computer-implemented method for training a machine learning data generator. In one embodiment, the method includes training a machine learning data generator 111, 211, 311 with a computer system 400 including a set of processor cores 404A-N, wherein training the data generator includes training the data generator by machine learning with multiple goals, the goals including: a first goal, the data generator generates a data pattern as an output pattern that matches a data pattern in a target data pattern set; and a second goal, which is different from the first goal.

[0052] A computer system according to one embodiment of the present invention includes a set of processor cores 404A-N and a computer memory (e.g., on-board or off-board memory 406A-B) in communication with the set of processor cores. The computer memory stores software that, when executed by the set of processor cores, enables the set of processor cores to train a machine learning data generator 111, 211, 311 through machine learning with multiple objectives, the objectives including: a first objective, the data generator generates a data pattern that matches a data pattern in a target data pattern set as an output pattern; and a second objective, which is different from the first objective.

[0053] In various embodiments, the data generator includes a feedforward neural network, and training the data generator includes training the data generator using stochastic gradient descent. In addition, the first goal of the data generator is to generate an input pattern input to the data generator as an output pattern. In this case, the data generator may include a deterministic autoencoder or a random autoencoder, such as a variational autoencoder or a random classification autoencoder network. In other embodiments, the data generator may include a generative adversarial network.

[0054] In any of the above examples, the second target may include a target from the anti-plagiarism subsystem (e.g., Figure 1 Components 105-107). When the output pattern from the data generator is within the minimum threshold distance of the nearest neighbor pattern of the nearest neighbor in the nearest neighbor candidate pattern set as the output pattern, the target from the anti-plagiarism subsystem can back-propagate the partial derivative of the anti-plagiarism penalty term through the data generator. The computer software can store software that, when a group of processor cores execute the software, enables the group of processor cores to generate a group of nearest neighbor candidate patterns using a Hopfield network or an auto-associative memory. The computer memory can store software that, when a group of processor cores execute the software, enables the group of processor cores to calculate the distance between the output pattern and the nearest neighbor candidate pattern. The distance may include the Euclidean distance between the output pattern and the nearest neighbor candidate pattern. In addition, the anti-plagiarism penalty term is preferably inversely proportional to the distance between the output pattern and the nearest neighbor candidate pattern.

[0055] In addition to or in lieu of the anti-plagiarism second objective, the plurality of objectives may include a third (or second, as the case may be) objective, the third objective being the output of the real versus generated discriminator, such that when an output pattern from the data generator is determined to be generated by the real versus generated discriminator, the generated data penalty term is back-propagated to the data generator.

[0056] In addition to or in lieu of the above objectives, the multiple objectives may include an additional objective that is an output of a machine learning subsystem that includes a classifier, such that partial derivatives of the classification objective of the machine learning subsystem are back-propagated to the data generator. The machine learning subsystem may include an ensemble of classifiers or a multi-objective classification objective.

[0057] In addition to or in lieu of the above objectives, the plurality of objectives may include an objective as an output of a machine learning distortion detector such that this objective backpropagates an over-distortion penalty term to the data generator.

[0058] In another general aspect, the present invention relates to a computer-implemented method comprising the following steps: training a composite generative adversarial network (GAN) for generating data examples in a data set by a computer system 400 including a set of processor cores 402A-N. The composite GAN includes N generator-detector pairs 92A-C, where N>1. Each of the N generator-detector pairs includes: a clustering GAN 331-333 for generating data for a cluster in the data set, so that there are N clusters, one cluster corresponding to one generator-detector pair; and a corresponding multi-target classifier 341-343 for classifying data in a cluster of the corresponding clustering GAN of the generator-detector pair. Each of the N multi-target classifiers 341-343 includes a real and generated discriminator for discriminating whether the input data of the multi-target classifier is real data or generated data. When training the clustering GANs 331-333 of multiple generator-detector pairs 92A-C, one of the N clusters is selected based on a first specified probability distribution. Additionally, when training the multi-target classifiers 341 - 343 , the probability that the training examples of the multi-target classifiers are specific examples of real data is set based on the second specified probability distribution.

[0059] In another general aspect, the present invention is directed to a computer system 400 comprising a set of processor cores 402A-N and computer memory (e.g., off-board memory 406A-B) storing software that, when executed by the set of processor cores, causes the set of processor cores to train a composite generative adversarial network (GAN) for generating data examples in a data set as described above.

[0060] In various embodiments, the first specified probability distribution corresponds to a first von Neumann mixing strategy of a first player in a two-player GAN training game, and the second specified probability distribution corresponds to a second von Neumann mixing strategy of a second player in the two-player GAN training game. In addition, the data set may include data categories

[0061] From the above description, it is obvious that the machine learning data generator according to an embodiment of the present invention can avoid generating data that is too similar to any previously known data examples. Such generated or "synthetic" data can be used for a variety of applications, such as training computer vision systems, image classifiers or other types of classifiers.

[0062] The examples given herein are intended to illustrate potential and specific implementations of the present invention. It should be understood that these examples are primarily intended to illustrate the present invention to those skilled in the art. One or more specific aspects of the examples are not intended to limit the scope of the present invention. Further, it should be understood that the drawings and descriptions of the present invention have been simplified to illustrate elements relevant to a clear understanding of the present invention, while other elements have been eliminated for clarity. Although various embodiments have been described herein, it is apparent that various modifications, changes, and adaptations may be made to these embodiments by those skilled in the art while obtaining at least some advantages. Therefore, without departing from the scope of the embodiments set forth herein, the disclosed embodiments are intended to include all such modifications, changes, and adaptations.

Claims

1. A computer-implemented method, include: training a machine learning real-generated discriminator using a computer system including a set of processor cores to discriminate whether an image output from a data generator is real or generated; training a multi-class classifier using a computer system through machine learning so that a target output of the multi-class classifier includes a target activation level for each of a plurality of classification classes; as well as Training a machine learning data generator by machine learning with a computer system, wherein training the machine learning data generator comprises training the machine learning data generator by machine learning with a plurality of common objectives to generate an image, wherein the plurality of common objectives comprises: First, the machine learning data generator generates images that are real and classified as real by the machine learning discriminator as output patterns; a second objective, different from the first objective, wherein the second objective imposes a penalty on a cost function of a data generator for output patterns that are within a threshold distance of a nearest neighbor candidate pattern in a set of nearest neighbor candidate patterns of the output pattern; and A third objective, which is different from the first and second objectives, wherein the third objective includes an objective from a multi-objective of a multi-class classifier such that an output pattern from the machine learning data generator does not match the training data of the multi-class classifier.

2. The computer-implemented method of claim 1, in: The machine learning data generator includes a feed-forward neural network; and Training the machine learning data generator includes training the machine learning data generator using stochastic gradient descent.

3. The computer-implemented method of claim 1 , wherein the machine learning data generator comprises a random autoencoder.

4. The computer-implemented method of claim 3, wherein the stochastic autoencoder comprises a variational autoencoder.

5. The computer-implemented method of claim 3, wherein the random autoencoder comprises a random classification autoencoder network.

6. The computer-implemented method of claim 1, wherein the machine learning data generator comprises a generative adversarial network.

7. A computer-implemented method according to claim 1, wherein when an output pattern from the machine learning data generator is within a threshold distance of a nearest neighbor candidate pattern in a set of nearest neighbor candidate patterns of the output pattern, a second objective backpropagates the partial derivative of the penalty through the machine learning data generator.

8. The computer-implemented method of claim 7, further comprising generating, by the computer system, the set of nearest neighbor candidate patterns using a Hopfield network.

9. The computer-implemented method of claim 7, further comprising generating, by the computer system, the set of nearest neighbor candidate patterns using an auto-associative memory.

10. The computer-implemented method of claim 7, further comprising calculating, by the computer system, a distance between the output pattern and the nearest neighbor candidate pattern.

11. The computer-implemented method of claim 10, wherein calculating the distance comprises calculating a Euclidean distance between the output pattern and the nearest neighbor candidate pattern.

12. The computer-implemented method of claim 10, wherein the penalty is inversely proportional to the distance between the output pattern and the nearest neighbor candidate pattern.

13. A computer-implemented method according to claim 1, wherein when an output pattern from the machine learning data generator is determined by the machine learning real-generated discriminator to be generated rather than real, the first objective applies a generated data penalty term that is back-propagated to the machine learning data generator.

14. A computer-implemented method according to claim 1, wherein the plurality of common objectives includes a fourth objective, the fourth objective being the output of a machine learning distortion detector, such that when the distortion detector determines that an image output by the data generator adds noise above a threshold level to a true image, the fourth objective back-propagates an over-distortion penalty term to the machine learning data generator.

15. The computer-implemented method of claim 1, in: Training the real and generated discriminator includes training the real and generated discriminator using the real and generated training data; and Training the multi-class classifier includes training the multi-class classifier using training data from the real and generated training data.

16. A machine learning computer system, include: A set of processor cores; as well as a computer memory in communication with the set of processor cores, wherein the computer memory stores software that, when executed by the set of processor cores, causes the set of processor cores to: Training a machine learning real-generated discriminator trained with real data in a training set of real data to discriminate whether the image output from the data generator is real or generated; training a multi-class classifier by machine learning such that a target output of the multi-class classifier includes a target activation level for each of a plurality of classification classes; The machine learning data generator is trained to generate images with a plurality of common objectives, wherein the plurality of common objectives include: First, the machine learning data generator generates images that are real and classified as real by the machine learning discriminator as output patterns; a second objective, different from the first objective, wherein the second objective imposes a penalty on a cost function of a data generator for output patterns that are within a threshold distance of a nearest neighbor candidate pattern in a set of nearest neighbor candidate patterns of the output pattern; and A third objective, which is different from the first and second objectives, wherein the third objective includes an objective from a multi-objective of a multi-class classifier such that an output pattern from a data generator does not match training data for the multi-class classifier.

17. The machine learning computer system of claim 16, in: The machine learning data generator includes a feed-forward neural network; and Training the machine learning data generator includes training the machine learning data generator using stochastic gradient descent.

18. The machine learning computer system of claim 16, wherein the machine learning data generator comprises a random autoencoder.

19. The machine learning computer system of claim 18, wherein the stochastic autoencoder comprises a variational autoencoder.

20. The machine learning computer system of claim 18, wherein the random autoencoder comprises a random classification autoencoder network.

21. The machine learning computer system of claim 16, wherein the machine learning data generator comprises a generative adversarial network.

22. A machine learning computer system according to claim 16, wherein when an output pattern from the machine learning data generator is within a threshold distance of a nearest neighbor candidate pattern in a set of nearest neighbor candidate patterns of the output pattern, a second objective backpropagates the partial derivative of the penalty through the machine learning data generator.

23. The machine learning computer system of claim 22, wherein the computer memory stores software that, when executed by the set of processor cores, causes the set of processor cores to generate the set of nearest neighbor candidate patterns using a Hopfield network.

24. The machine learning computer system of claim 22, wherein the computer memory stores software that, when executed by the set of processor cores, causes the set of processor cores to generate the set of nearest neighbor candidate patterns using an auto-associative memory.

25. The machine learning computer system of claim 16, wherein the first objective applies a generated data penalty term back-propagated to the machine learning data generator when an output pattern from the machine learning data generator is determined by the machine learning real-generated discriminator to be generated rather than real.

26. The machine learning computer system of claim 16, wherein the plurality of common objectives includes a fourth objective, the fourth objective being the output of a machine learning distortion detector, such that when the distortion detector determines that an image output by a data generator adds noise above a threshold level to a true image, the fourth objective back-propagates an over-distortion penalty term to the machine learning data generator.

27. The machine learning computer system of claim 16, wherein the computer memory stores software that, when executed by the set of processor cores, causes the set of processor cores to: training a real-generated discriminator by training it with real and generated training data; and Train a multi-class classifier by training it using training data from both real and generated training data.