Training neural networks with limited data using reversible enhancement operators
By using the adaptive discriminator enhancement mechanism in the generative adversarial neural network, the problem of discriminator overfitting in GAN training under limited data is solved, stable training and data efficiency improvement are achieved, and it is suitable for application scenarios with high-cost data sets. .
Patent Information
- Application Number
- CN202110623844.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-03-24
- Filing Date
- 2021-06-04
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-06-04
AI Technical Summary
When existing technologies use limited data to train generative adversarial neural networks (GANs), it is easy to cause the discriminator to overfit, leading to training divergence. Obtaining high-quality, high-resolution training data is costly and challenging, especially when needed. Capture custom datasets in your application.
The adaptive discriminator enhancement mechanism is adopted to ensure that the images generated by the generator do not leak enhancement information by applying a reversible enhancement operator to the distribution of the discriminator input under limited data conditions, thereby stabilizing training and reducing the amount of training data required.
It effectively avoids training divergence, improves the convergence ability of GAN under limited data, and reduces the cost of generating models in fields such as medicine without changing the loss function or network architecture.
Smart Images

Figure CN113762461B_ABST
Abstract
Description
[0001] Claiming priority
[0002] This application claims the benefit of U.S. Provisional Application No. 63 / 035,448, filed on June 5, 2020, entitled “Training Generative Adversarial Networks with Limited Data,” the entire contents of which are incorporated herein by reference. Background Art
[0003] A large amount of training data is required to adequately train a generative adversarial neural network (GAN) to perform well, for example, to generate realistic images. Training a GAN with too little data often results in overfitting of the discriminator, where the feedback of the discriminator to the generator becomes meaningless, causing the training to diverge rather than converge. Unfortunately, it may be difficult to provide a large amount of training data. It may be challenging to collect a large enough collection of images for a specific application that imposes constraints on subject type, image quality, geographic location, time period, privacy, copyright status, etc. In applications where new, custom datasets need to be captured, these difficulties are further exacerbated: acquiring, processing, and distributing up to a million or more images required to train modern high-quality, high-resolution GANs is an expensive task.
[0004] In almost all areas of deep learning, dataset augmentation provides additional training data and is a standard solution to overfitting. For example, training an image classifier under rotation, noise, etc. results in an increase in the constancy of these semantically preserving distortions (a highly desired quality in a classifier). In contrast, a GAN trained under similar dataset augmentation learns to generate an augmented distribution. Typically, this "leakage" of augmentation to the generated images is highly undesirable. For example, noise augmentation results in noisy results, even if noise is not present in the dataset. In other words, the generator learns to generate images containing augmentations. There is a need to address these issues and / or other issues associated with the prior art. Summary of the invention
[0005] Embodiments of the present disclosure relate to a technique for training a neural network (such as a generative adversarial neural network (GAN)) using a limited amount of data. Depending on the task, the data generated by the GAN may include images, audio, video, three-dimensional (3D) objects, text, etc. Using too little example data to train the GAN typically results in overfitting of the discriminator, resulting in training divergence. To avoid divergence during training, an adaptive discriminator enhancement mechanism is used, which significantly stabilizes training in a limited data regime. The adaptive discriminator enhancement mechanism does not require changes to the loss function or network architecture, and can be applied both when training from scratch and when fine-tuning an existing GAN on another data set. The enhancement operator applied to the distribution of the input to the discriminator represents a reversible transformation to ensure that there is no enhancement leakage into the images generated by the generator trained by the discriminator. Reducing the amount of training data required to achieve convergence has the potential to significantly help many applications. For example, reducing the amount of training data required can increase the use of generative models in fields such as medicine.
[0006] A method, computer-readable medium, and system for training a neural network using a limited amount of data are disclosed. The neural network receives training data including input data and a ground truth output, wherein the input data is associated with a first distribution. At least one augmentation is applied to the input data to produce augmented input data associated with a second distribution, wherein an augmentation operator corresponding to a transformation from the first distribution to the second distribution is reversible and specifies the at least one augmentation. The augmented input data is processed by the neural network according to parameters to produce output data, and the parameters are adjusted to reduce differences between the output data and the ground truth output. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] The present system and method for adaptive enhancement are described in detail below with reference to the accompanying drawings, wherein:
[0008] Figure 1A A block diagram of a GAN training framework according to an embodiment is shown.
[0009] Figure 1B Plots showing convergence for various amounts of GAN training data using prior art.
[0010] Figure 1C The GAN training process using prior art is shown.
[0011] Figure 2A A block diagram of an example boost training configuration suitable for implementing some embodiments of the present disclosure is shown.
[0012] Figure 2B A block diagram of an example boost training configuration suitable for implementing some embodiments of the present disclosure is shown.
[0013] Figure 2C A transformation using an irreversible boosting operator according to an embodiment is shown.
[0014] Figure 2D A transformation using a reversible enhancement operator according to an embodiment is shown.
[0015] Figure 2E A flow chart of a method for training a neural network with limited data using discriminator augmentation according to an embodiment is shown.
[0016] Figure 3A According to the embodiment, Figure 2A and Figure 2B The enhancement unit shown in .
[0017] Figure 3B A graph showing FID for different p-values and various amounts of GAN training data, in accordance with an embodiment.
[0018] Figure 3C Plots showing FID for different target values and various amounts of GAN training data for adaptive discriminator enhancement, according to an embodiment.
[0019] Figure 3D A flow chart of a method for training a neural network with limited data using adaptive discriminator boosting according to an embodiment is shown.
[0020] Figure 3E An improved GAN training process using adaptive discriminator enhancement according to an embodiment is shown.
[0021] Figure 4 An example parallel processing unit suitable for implementing some embodiments of the present disclosure is shown.
[0022] Figure 5A For use Figure 4 A conceptual diagram of a PPU-implemented processing system suitable for implementing some embodiments of the present disclosure.
[0023] Figure 5B An exemplary system is shown in which the various architecture and / or functionality of the various previous embodiments may be implemented.
[0024] Figure 5C Components of an exemplary system that can be used to train and utilize machine learning in at least one embodiment are shown.
[0025] Figure 6 An exemplary streaming system suitable for implementing some embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0026] Systems and methods are disclosed that involve training neural networks (such as generative adversarial networks) using limited amounts of data. First, a better understanding of how the amount of available training data affects GAN training is needed. A comprehensive analysis of conditions that prevent enhancement leakage is then described. Different sets of enhancements can then be provided, and an adaptive control scheme enables the use of a consistent solution regardless of the amount of training data, the properties of the dataset, or the exact training setting (e.g., training from scratch or transfer learning).
[0027] Specifically, the techniques described herein can be used to train a generative adversarial neural network (GAN). A GAN includes a generator neural network and a discriminator neural network. The generator receives a latent code (random number) and applies the parameters learned during training to the latent code to generate output data, such as an image. The discriminator acts as an adaptive loss function used during the training of the generator. The training data of the discriminator includes example output data (real data) with which the output data (generated data) produced by the generator should be consistent. The discriminator determines whether the generated data looks similar to the real data included in the training data. For example, when the generator is trained to generate an image of a face, the discriminator determines whether the generated face looks similar to an example image of a face (e.g., a real image). The discriminator enhancement technique provides a wide range of enhancements to prevent the discriminator from overfitting while ensuring that the enhancement does not leak to the generated data.
[0028] Figure 1A A block diagram of a GAN training framework according to an embodiment is shown. GAN 120 can be implemented by a program, a custom circuit, or a combination of a custom circuit and a program. For example, GAN 120 can be implemented using a GPU, a CPU, or any processor capable of performing the operations described herein. Moreover, a person of ordinary skill in the art will understand that any system that performs the operations of GAN 120 is within the scope and spirit of the embodiments of the present invention.
[0029] GAN 120 includes a generator (neural network) 100, a discriminator (neural network) 110, and a training loss unit 115. The topology of both the generator 100 and the discriminator 110 can be modified during training. GAN 120 can operate in an unsupervised setting or a conditional setting. Generator 100 receives input and produces output data. Depending on the task, the output data can be an image, audio, video, or other type of data (configuration setting). In one embodiment, the training simulates a "two-player game" in which the generator 100 and the discriminator 110 operate as the first and second players, respectively. In one embodiment, the generator 100 learns to generate data that is judged by the discriminator 110 to be real or generated. In other words, the game is to make the generator 100 deceive the discriminator 110 into thinking that the generated data is real.
[0030] In an embodiment, training is performed on one or more iterations, wherein each iteration consists of a plurality of stages performed in an alternating manner. In the first stage, the parameters of the discriminator 110 are learned while the discriminator 110 receives the generated output data produced by the generator 100. The discriminator 110 is trained to indicate that the generated output data is generated and not real. In the second stage, the discriminator 110 receives the example output data (e.g., the real image of the face), and updates the parameters when the discriminator 110 is trained to indicate that the example output data is real and not generated. In an embodiment, the ground truth output indicates that the example output data is real (not generated) and the generated data is not real. In the third stage, the parameters of the generator 100 are adjusted (while the parameters of the discriminator 110 are fixed) because the generator 100 learns to generate the output data that the discriminator 110 indicates is consistent with the example output data. In an embodiment, transfer learning is performed and training is started using generators and discriminators that have been trained for different tasks.
[0031] like Figure 1A As shown in , the earlier generated face images may include some realistic features (e.g., eyes, mouth, nose, hair), but are inconsistent with real images of faces. Discriminator 110 indicates that the earlier generated images are inconsistent with the example output data used to train discriminator 110. Generated images produced later during the training of generator 100 are more consistent with real images of faces.
[0032] In one embodiment, the discriminator 110 outputs a continuous value indicating how closely the output data matches the example output data. For example, in one embodiment, the discriminator 110 outputs a first training stimulus (e.g., a high value, TRUE, a first state) when the output data is determined to match the example output data, and outputs a second training stimulus (e.g., a low value, FALSE, a second state) when the output data is determined not to match the example output data. The training loss unit 115 adjusts the parameters (weights) of the generator and the discriminator 120 based on the output of the discriminator 110. In an embodiment, the training loss unit 115 adjusts the parameters to reduce the difference between the value and the ground truth output.
[0033] When the generator 100 is trained for a particular task, such as generating an image of a human face, the discriminator 110 outputs a high value when the output data is an image of a human face. The output data generated by the generator 100 need not be exactly the same as the example output data used by the discriminator 110 to determine that the output data matches the example output data. In the context described below, the discriminator 110 determines that the output data matches the example output data when the output data is similar to any of the example output data. Training can continue to adjust the parameters of the discriminator and / or the generator by providing the generated output data and the example output data to the discriminator and evaluating the output values.
[0034] In a conditional setting, the input data to the GAN 120 may include other data, such as images, classification labels, segmentation outlines, and other (additional) types of data (distributions, audio, etc.). After training, the additional data may be used as an explicit way to control the output of the generator, e.g. to generate images corresponding to a particular selection of classification labels. The additional data may be specified in addition to the random latent code, or may replace the random latent code entirely.
[0035] Now, more illustrative information about various optional architectures and features that can implement the aforementioned framework will be described, depending on the user's desire. It should be particularly noted that the following information is described for illustrative purposes and should not be interpreted as limiting in any way. The optional following features can be optionally incorporated with or without excluding other features described.
[0036] Figure 1B Convergence for various amounts of GAN training data using prior art is shown. Different curves on the graph correspond to different training data set sizes for training GAN. The vertical axis indicates the Fréchet initiation distance (FID) and the horizontal axis corresponds to the number of training samples (i.e., real images) shown to the discriminator. The training data set is repeatedly (in a randomized order) input to the discriminator until a fixed number of training samples have been processed. FID measures the difference between the generated image and the real image, where lower values are associated with greater similarity. For a training data set size of 140k, FID steadily improves as training progresses. In contrast, training data set sizes 30k, 10k, and 2k begin to improve and then degrade as training continues. Specifically, training data sets of 2k, 10k, and 30k sizes begin to degrade at points 122, 124, and 126, respectively. The less data in the training data set, the earlier the FID starts to rise. In contrast, as described further in this paper, when GANs are trained using discriminator augmentation techniques, steady improvements are achieved throughout the training process—even for reduced training dataset sizes.
[0037] Figure 1CThe GAN training process using the prior art is shown. The graph for 50k image training 130 shows the improved FID until the point 128 where the progress reverses. The discriminator output 135 shows the value D(x) produced in response to the input x during training. At 2M training samples, the value output by the discriminator is an overlapping distribution 132 indicating the real image and the generated image, where negative values indicate generated images and positive values indicate real images. The overlapping distribution 132 at 2M training samples is shown in the following graph, where the overlapping area is centered at D(x)=0. As training continues, at 13M training samples, the distribution 134 shifts apart, coinciding with the beginning of the FID rising. For training samples beyond 13M, the separation continues to increase.
[0038] The true and generated distributions initially overlap, but as the discriminator becomes more confident, drift further and further apart, and the point at which FID begins to degrade coincides with the loss of sufficient overlap between the distributions. This is a strong indication of overfitting, further evidenced by a decrease in accuracy (FID) measured against a separate validation set. Discriminator enhancement techniques employ general enhancements that prevent the discriminator from becoming overconfident.
[0039] By definition, as a result of training the generator, any enhancement applied to the training dataset will be inherited into the generated image. Recently, balanced consistency regularization (bCR) has been proposed as a solution that is speculated not to leak enhancements to the generated image. Consistency regularization states that two sets of enhancements applied to the same input image should produce the same output. The consistency regularization term is used for the discriminator loss, and the discriminator consistency is implemented for both the real image and the generated image, while no enhancement or consistency loss terms are applied when training the generator. As such, bCR effectively strives to generalize the discriminator by blinding the discriminator to the enhancements used in the CR term. However, meeting this goal opens the door to leakage enhancements, because the generator will freely produce images containing enhancements without any penalty. In fact, bCR does suffer from leakage, and therefore does not provide a high-quality solution for training GANs with limited data.
[0040] Instead of using a separate CR loss term, the random discriminator augmentation technique uses only the augmented images to evaluate the discriminator. Similarly, when training the generator, the feedback the generator receives from the discriminator is based on evaluating the discriminator using augmented versions of the generated images. The possibility of using only augmented images has received little attention, probably because at first glance it is not obvious that it even works: if the discriminator has never seen what the training images really look like, it is unclear whether the discriminator can correctly guide the generator. In the following, we determine the conditions under which the random discriminator augmentation technique will not leak augmentations to the generated images, as combined with Figure 2D , Figure 3B and Figure 3CAs further described, a complete pipeline can be implemented based on the conditions.
[0041] Figure 2A A block diagram of an example enhanced training configuration suitable for implementing some embodiments of the present disclosure is shown. Output data generated by the generator 100 is processed by the enhancement unit 200 before being input to the discriminator 110. In one embodiment, one or more enhancement units 200 are executed in conjunction with the discriminator 110 within the GAN 120. The training loss unit 115 updates the parameters of the generator 100 based on the values output by the trained discriminator 110. In an embodiment, the enhancement operator implemented by the enhancement unit 200 is one or more reversible transformations, as further described herein. In an embodiment, the updates are calculated via backpropagation, and the enhancement operator is differentiable.
[0042] The discriminator enhancement performed by the enhancement unit 200 can be understood as placing distortions (possibly even destructive goggles) on the discriminator 110 and requiring the generator 100 to produce samples that are indistinguishable from example output data (e.g., a training dataset) when viewed through the goggles. Conceptually, the enhancement unit 200 corresponds to the goggles. In one embodiment, the enhancement is random.
[0043] Figure 2B Another block diagram of an example adaptive boost training configuration suitable for implementing some embodiments of the present disclosure is shown. The discriminator 110 is trained using example output data processed by the boost unit 200 and using generated output data produced by the generator 100 and also processed by the boost unit 200. The discriminator 110 processes the enhanced example output data and the enhanced generated output data to produce a value. The training loss unit 115 provides a discriminator parameter update based on the value and whether the input to the discriminator 110 corresponds to the enhanced example output data or the enhanced generated output data. In an embodiment, the update is calculated to reduce the difference between the value and the ground truth output.
[0044] In an embodiment, the training goal achieved by the training loss unit 115 is to make the distribution x of the generated output data match the distribution y of the example output data as closely as possible. The goal of the training generator 100 is to generate output data with distribution x=y. In addition, for image generation, when the enhancement unit 200 adds the enhancement operator When applied to all inputs to the discriminator 110 (both real and generated images), the training objective drives the distribution of enhanced generated images to be To match the distribution of the augmented real image When the enhancement operator is reversible, there is only one distribution x that, when enhanced, produces the distribution In other words, existence As long as the corruption process is represented by a reversible transformation of the probability distribution on the data space, the generator 100 training implicitly undoes the corruption introduced by the enhancement unit 200 and discovers the correct distribution. In other words, Will necessarily imply that if the enhancement operator is reversible, then x=y, but if the operator is not reversible, the implication is not true. In the context of the following description, an enhancement operator that represents such a reversible transformation is called leak-free. A reversible enhancement operator is called leak-free because the enhancement will not leak into the generated data. When the transformation represented by the enhancement operator is reversible - considering the distribution as a whole, the distribution of the output data generated by the generator converges to become more similar to the distribution of the real image, x=y. The enhancement operator corresponds to the data distribution and specifies the enhancement applied to individual samples (e.g., individual images) of the input data.
[0045] The power of the reversible transformations performed by the augmentation unit 200 is that conclusions about the equality or inequality of the underlying datasets can be drawn by observing only the augmented datasets without the generator 100 and / or the discriminator 110 seeing the unaugmented datasets. It is important to understand that this does not mean that the augmentations performed on individual images will need to be undone. For example, augmentations as extreme as setting the input images to zero 90% of the time are reversible in a probability distribution sense: even for humans, it is easy to infer the original distribution by ignoring black images until only 10% of the images remain. On the other hand, random rotations uniformly selected from {0°, 90°, 180°, 270°} are not reversible: it is impossible to discern the difference between the orientations after augmentation.
[0046] Figure 2C A transformation using an irreversible enhancement operator according to an embodiment is shown. A random rotation selected with uniform probability from {0°, 90°, 180°, 270°} is an enhancement operator corresponding to an irreversible transformation that produces a set of enhanced data. Example output data 212 includes an upright face that is enhanced to produce enhanced example output data 216. The same set of enhancements is applied to generated data 210 that erroneously includes only an inverted face to produce enhanced generated data 214. The generator should be trained to produce generated data 210 that is consistent with example output data 212. However, because the distribution of enhanced generated data 214 matches the distribution of enhanced example output data 216, the discriminator will incorrectly conclude that generated data 210 is consistent with example output data 216. Specifically, a uniform probability of 25% for each of the four different rotations produces a uniform distribution of 25% for both enhanced generated data 214 and enhanced example output data 216, regardless of what the original orientations are and whether they match between the set of generated data 210 and the set of example output data 212.
[0047] Figure 2D A transformation using a reversible enhancement operator according to an embodiment is shown. Figure 2C In contrast to the irreversible rotation transformation shown in , the rotation transformation can be made reversible by changing the probability from uniform to non-uniform. The enhancement unit 200 uses a reversible rotation transformation to process the generated data 211 and the example output data 213 to produce enhanced generated data 220 and enhanced example output data 222, respectively. The probability of performing enhancement is set to 80%, so that for 0°, 90°, 180°, 270°, each of the four rotations is 20%, 20%, 20%, 20%, respectively. Because enhancement does not occur at a probability of 20%, the resulting probability of rotating 0° is 40%.
[0048] When enhancement is skipped, the relative occurrence of 0° rotation increases, and now the distribution of enhancements can only be matched when the generated data 211 has the correct orientation consistent with the example output data 213. Similarly, many other random enhancements can be designed to be leak-free when enhancement is skipped with a non-zero probability. For example, such enhancements include geometric distortions, color transforms, deterministic mappings (e.g., basis transforms), additive noise, transformation groups (e.g., image or color space rotations, flips, and scaling), and projections (e.g., shearing). In addition, synthesizing leak-free enhancements in a fixed order produces an overall leak-free enhancement. In an embodiment, a probability value p is provided as an input to the enhancement unit 200 to control the application of the enhancement, where 0<p<1. When p<1, the transformation corresponding to the enhancement operator will be reversible.
[0049] Figure 2E A flow chart of a method 250 for training a neural network with limited data using adaptive and / or random discriminator enhancement according to an embodiment is shown. Each block of the method 250 described herein includes a computational process that can be performed using any combination of hardware, firmware, and / or software. For example, different functions can be performed by a processor executing instructions stored in a memory. The method 250 can also be embodied as computer-usable instructions stored on a computer storage medium. To name a few, the method 250 can be provided by a stand-alone application, a service or a hosted service (standalone or in combination with another hosted service), or a plug-in to another product. In addition, by way of example, with respect to Figure 1A GAN 120 and / or Figure 2A and / or Figure 2B . However, the method 250 may additionally or alternatively be performed by any system or any combination of systems, including but not limited to the systems described herein. For example, the method 250 may be used to train a neural network for tasks such as classification. Furthermore, one of ordinary skill in the art will appreciate that any system that performs the method 250 is within the scope and spirit of the embodiments of the present disclosure.
[0050] At step 255, a neural network (e.g., a discriminator) receives training data comprising input data and a ground truth output, wherein the input data is associated with a first distribution. In one embodiment, the neural network is the discriminator 110. In one embodiment, the input data comprises images and each image in the training data is enhanced. In one embodiment, based on a value (p) defining the strength of the enhancement, at least one enhancement is randomly disabled. In one embodiment, the at least one enhancement is differentiable. In one embodiment, the at least one enhancement is implemented as a sequence of different enhancements.
[0051] At step 260, at least one augmentation is applied to the input data to produce augmented input data associated with a second distribution, wherein the augmentation operator corresponding to the transformation from the first distribution to the second distribution is reversible and specifies the at least one augmentation. In an embodiment, the input data is output data produced by the generator 100. In an embodiment, the first distribution is only the distribution for which applying the at least one augmentation for the portion to the input data associated with the first distribution results in an augmented distribution that matches the second distribution.
[0052] At step 265, the augmented input data is processed by the neural network according to the parameters to produce output data. At step 270, the parameters are adjusted to reduce the difference between the output data and the ground truth output. In an embodiment, the input data includes a first subset of generated data and a second subset of real data, and the first subset of generated data is generated by the generator neural network model based on second parameters. In an embodiment, the second parameters are adjusted so that the distributions of the first subset and the second subset more closely match.
[0053] In an embodiment, the input data includes a first subset of generated data and a second subset of real data, the output data includes a value indicating a first state or a second state, and the parameters are adjusted so that a first portion of the output data generated for the first subset more closely matches the first state, and a second portion of the output data generated for the second subset more closely matches the second state. In other words, the distribution of the real and generated input images matches the corresponding distribution of the discriminator classification outputs generated for the augmented real and generated input images.
[0054] Figure 3AAn enhancement unit 200 according to an embodiment is shown. The enhancement pipeline within the enhancement unit 200 includes a series of transform units 300, each of which is configured to apply a transform to produce enhanced data. In an embodiment, the enhancement unit 200 may include fewer or more transform units 300. In an embodiment, the transform units 300 are random, that is, they may produce different outputs when executed multiple times for the same input. The probability value p input to each transform unit 300 controls the enhancement strength and ensures that the transform is reversible. In one embodiment, the enhancement unit 200 includes at least one transform unit 300. In one embodiment, each transform unit 300 may be configured to perform any one of N transforms. In another embodiment, each transform unit 300 is configured to perform a specific one of the N transforms. In one embodiment, the N transforms can be grouped into 6 categories: pixel bit block transfer (x flip, 90° rotation, integer translation), more general geometric transformation, color transformation, image space filtering, additive noise and shear block. In one embodiment, during training, each image is shown to the discriminator 110 after being processed by the augmentation unit 200 using a predefined set of transformations in a fixed order. Because augmentation is also used when training the generator 100, augmentation should be differentiable for back-propagation when computing generator parameter updates.
[0055] The strength of the enhancement is controlled by a scalar p∈[0,1], so that each transform unit 300 applies a transform with probability p or skips a transform with probability 1-p. In an embodiment, the transform unit 300 is always executed on the data input to the transform unit 300, and p is used to selectively output the enhanced data or the data input to the transform unit 300 according to the probability p. In an embodiment, the same p value is input to each transform unit 300. In one embodiment, randomization according to p is performed separately for each enhancement and each image in a minibatch. Assuming that there are multiple transform units 300 in the enhancement pipeline, it is unlikely that the discriminator will see a clean image even if the value of p is quite small. Nevertheless, as long as p remains below the actual safety limit, the generator 100 is guided to produce only clean images.
[0056] Not surprisingly, using p=1 can cause the augmentation to leak into the output images of the generator 100. More specifically, experiments confirm that the above-mentioned rotations of random multiples of 90° should be skipped for at least a portion of the time to optimally train the generator 100. When p is too high, the generator 100 cannot know which way the generated image should be oriented and ends up randomly picking one of the possibilities. As might be expected, this problem does not occur exclusively in the limiting case of p=1. In fact, the training setting is also poorly conditioned for nearby values due to limited sampling, limited representation power of the network, inductive bias, and training dynamics. Based on experiments with several different kinds of augmentation, when p is kept below about 0.85, the generated images are always correct, i.e., there is no leakage.
[0057] The effectiveness of random discriminator augmentation is evaluated by performing an exhaustive scan of P for different augmentation categories and dataset sizes. The optimal augmentation strength depends largely on the amount of training data. Therefore, relying on any fixed p may not be the best choice for datasets of different sizes. Moreover, the training improvement may vary for different augmentation categories.
[0058] Figure 3B A graph of FID for different p values and various GAN training data amounts according to an embodiment is shown. For the 2k training set, strong enhancement can be used to obtain the best results. Specifically, a value of p=0.4 corresponds to the lowest FID at point 315. The curve also indicates that some of the enhancements become leaky when p approaches the value 1. In the case of the 10k and 50K training sets, higher values of p are less useful, and a value of p=0.2 corresponds to the lowest FID at points 305 and 310, respectively. Using the 140k training set (not shown), the situation is significantly different: all enhancements are harmful, so p=0 provides the best results. In fact, the sensitivity to the size of the data set requires an expensive grid search to determine the optimal p value for each data set size.
[0059] Preferably, manual tuning of augmentation strength will be avoided and augmentation strength should instead be dynamically controlled during training based on the degree of overfitting. One way to quantify overfitting is to use a separate validation set and observe its behavior relative to the training set. For a finite size training dataset, overfitting sets in when the validation set starts to behave more and more like the generated images. This is a quantifiable effect, although has the disadvantage of requiring a separate validation set when training data may already be in short supply. Figure 1C As shown in , when overfitting gets worse, the discriminator 110 output values for real and generated images diverge symmetrically around zero. The divergence can be quantified without a separate validation set.
[0060] The discriminator output values are represented as D for the training set, validation set, and generated images respectively.train , D validation and D generated , and they are averaged over N consecutive mini-batches by E[·]. In one embodiment, N=4, which corresponds to 4x64=256 images. Two reasonable overfitting heuristics can be defined:
[0061]
[0062] For both heuristics, r=0 means no overfitting, and r=1 indicates complete overfitting, and the goal is to adjust the enhancement probability p so that the chosen heuristic matches the appropriate target value. v represents the output of the discriminator with respect to the training set and the generated images for the validation set. Because the first heuristic assumes the existence of a separate validation set, it is mainly used as a comparison to evaluate the second heuristic. The second heuristic r t Estimates the fraction of the training set for which the discriminator 110 outputs positive values. v and r t Both are effective in preventing overfitting, and both improve over the best fixed p found using grid search (see Figure 3B ). In one embodiment, the second heuristic is more efficient than directly checking The obvious alternative to is less sensitive to the chosen hyperparameters.
[0063] The enhancement strength p can be controlled as follows. In an embodiment, p is initialized to zero and adjusted once every N mini-batches based on the selected overfitting heuristic. If the heuristic indicates too much / little overfitting, p can be adjusted by increasing / decreasing with a fixed adjustment size (i.e., a predetermined amount). In one embodiment, the determination is based on comparing the value of the heuristic with a predefined target value. If the value of the heuristic is higher than the target value, it is determined that there is too much overfitting, and vice versa. In an embodiment, the adjustment size is set so that p can rise from 0 to 1 quickly enough, for example, in 500k images. The value of p can be clamped to 0, which means that it will not become negative after decrementing. Dynamically controlling the enhancement strength may be referred to as adaptive discriminator enhancement (ADA). The ADA mechanism does not require changing the loss function or network architecture, and is applicable both when training from scratch and when fine-tuning an existing GAN on another dataset.
[0064] Figure 3C shows r enhanced using an adaptive discriminator according to an embodiment t Plot of FID for different target values (x-axis) for heuristic and various amounts of GAN training data. In the embodiment, the target value chosen is 0.6, and based on r tThe dashed line shows the Figure 3B The optimal fixed value p for each training dataset is shown in Figure 2. When ADA is used for the 2k training set, the best result is obtained at point 320 with a target value of 0.5. In the case of the 10k and 50K training sets, target values of 0.5 and 0.6 correspond to the lowest FID at points 322 and 324, respectively. Using the 140k training set, 0.6 provides the best results.
[0065] Figure 3D A flow chart of a method 330 for training a neural network with limited data using adaptive discriminator enhancement according to an embodiment is shown. Each block of the method 330 described herein includes a computational process that can be performed using any combination of hardware, firmware, and / or software. For example, different functions can be performed by a processor executing instructions stored in a memory. The method 330 can also be embodied as computer usable instructions stored on a computer storage medium. To name a few, the method 330 can be provided by a stand-alone application, a service or a hosted service (standalone or in combination with another hosted service), or a plug-in to another product. In addition, by way of example, with respect to Figure 1A GAN 120 and / or Figure 2A and / or Figure 2B . However, this method may additionally or alternatively be performed by any system or any combination of systems, including but not limited to the systems described herein. For example, method 330 may be used to train a neural network for tasks such as classification. In addition, one of ordinary skill in the art will appreciate that any system that performs method 330 is within the scope and spirit of the embodiments of the present disclosure.
[0066] At step 335, the enhancement strength is initialized by setting p to a value (e.g., zero). At step 340, the neural network model is trained for N mini-batches, where N is a positive integer. At step 345, if the neural network model being trained is overfitting, the method 330 proceeds to step 350. Otherwise, the method 330 proceeds to step 352 and reduces the enhancement strength before proceeding to step 355. At step 350, the enhancement unit 200 increases the enhancement strength before proceeding to step 355. In an embodiment, the resize for increasing or decreasing the enhancement strength is applied to p. In an embodiment, the enhancement unit 200 increases the enhancement strength based on the training data obtained by the neural network model for N mini-batches (e.g., D train ) to increase or decrease p. In an embodiment, the neural network model is used for N small batches (e.g., r t ) is compared with a reference (e.g., a target value of 0.6), and p is adjusted based on the result of the comparison.
[0067] At step 355, the training loss unit 115 determines whether training should continue, and if so, returns to step 340. Otherwise, training is complete. In an embodiment, training is complete when the loss calculated by the training loss unit 115 is below a threshold. In one embodiment, training is complete when the entire training data set has been applied to the neural network model M times, where M is a predefined constant. In one embodiment, training is complete when a predetermined number of mini-batches have been completed. In one embodiment, the neural network model includes at least one of a generator 100 and a discriminator 110.
[0068] Figure 3E An improved GAN training process using adaptive discriminator enhancement according to an embodiment is shown. Figure 1C The graph for 50k image training 130 shown in , the graph for 20k image training 365 is performed without any augmentation, and the FID improves until point 362 where progress begins to reverse. Similar to Figure 1C 135, the discriminator output 370 shows the values D(x) generated during training. Prior to point 362, the values output by the discriminator have overlapping distributions for the real data and the generated data. As training continues after point 362, the discriminator output values separate.
[0069] In contrast, when ADA is used for 20k image training 375, FID steadily improves throughout the course of training and reaches lower values than those reached at any point in non-augmented training 365. Similarly, the discriminator output 380 has an overlapping distribution for both real and generated data throughout training. Thus, when random discriminator augmentation or ADA is used during training, overfitting that occurs during conventional training can be avoided, especially when a reduced size training dataset is used.
[0070] Data-driven generative modeling means learning a computational recipe that generates complex data purely based on examples. In addition to playing a fundamental role in machine learning, generative models have several uses as priors, regularizers, etc. within applied machine learning research. Generative models advance the ability of computer vision and graphics algorithms for analyzing and synthesizing realistic images. Random discriminator enhancement (SDA) and ADA reliably stabilize training and greatly improve the training results of generative models when training data is limited. SDA and ADA can be used to train high-quality generative models using significantly less data than required by existing methods. In particular, when using ADA, regardless of the size of the training set, the generator output is steadily improved throughout the training, and overfitting does not occur. In the absence of enhancement, the gradients received by the generator from the discriminator become very simple over time-the discriminator begins to focus on only a few features, and the generator is free to create meaningless images in other ways.
[0071] SDA and ADA make it easier to train high-quality generative models with customized datasets, significantly lowering the barrier to applying GAN-type models in many applied research areas. For example, modeling the space of possible appearances of biological samples (tissues, tumors, etc.) is a growing research area that seems to have long suffered from limited high-quality data. In general, generative models hold the promise of increasing understanding of complex and difficult-to-precise relationships in many real-world phenomena.
[0072] Parallel processing architecture
[0073] Figure 4 FIG. 4 shows a parallel processing unit (PPU) 400 according to one embodiment. PPU 400 may be used to implement GAN 120. PPU 400 may be used to implement Figure 1A , Figure 2A , Figure 2B and Figure 3A The PPU 400 may be configured to perform the method 150 and / or 250.
[0074] In an embodiment, PPU 400 is a multi-threaded processor implemented on one or more integrated circuit devices. PPU 400 is a latency-hiding architecture designed for processing many threads in parallel. A thread (e.g., an execution thread) is an instance of an instruction set configured to be executed by PPU 400. In one embodiment, PPU 400 is a graphics processing unit (GPU) configured to implement a graphics rendering pipeline for processing three-dimensional (3D) graphics data to generate two-dimensional (2D) image data for display on a display device. In other embodiments, PPU 400 can be used to perform general-purpose calculations. Although an exemplary parallel processor is provided herein for illustrative purposes, it should be specifically noted that the processor is described only for illustrative purposes, and any processor can be used to supplement and / or replace the processor.
[0075] One or more PPUs 400 can be configured to accelerate thousands of high-performance computing (HPC), data center, cloud computing, and machine learning applications. PPU 400 can be configured to accelerate numerous deep learning systems and applications for autonomous vehicles, simulations, computational graphics (such as ray or path tracing), deep learning, high-precision speech, image and text recognition systems, intelligent video analysis, molecular simulations, drug development, disease diagnosis, weather forecasting, big data analysis, astronomy, molecular dynamics simulations, financial modeling, robotics, factory automation, real-time language translation, online search optimization, and personalized user recommendations, among others.
[0076] like Figure 4 As shown, the PPU 400 includes an input / output (I / O) unit 405, a front-end unit 415, a scheduler unit 420, a work distribution unit 425, a hub 430, a crossbar switch (Xbar) 470, one or more general processing clusters (GPCs) 450, and one or more memory partition units 480. The PPU 400 can be connected to a host processor or other PPUs 400 via one or more high-speed NVLink 410 interconnects. The PPU 400 can be connected to a host processor or other peripheral devices via an interconnect 402. The PPU 400 can also be connected to a local memory 404 including multiple memory devices. In one embodiment, the local memory may include multiple dynamic random access memory (DRAM) devices. The DRAM device can be configured as a high bandwidth memory (HBM) subsystem, in which multiple DRAM dies are stacked within each device.
[0077] The NVLink 410 interconnect enables the system to scale and include one or more PPUs 400 in conjunction with one or more CPUs, supporting cache coherency between the PPU 400 and the CPU, and CPU mastering. Data and / or commands may be sent by the NVLink 410 through the hub 430 to or from other units of the PPU 400, such as one or more copy engines, video encoders, video decoders, power management units, etc. (not explicitly shown). Figure 5B NVLink 410 is described in more detail.
[0078] I / O unit 405 is configured to send and receive communications (e.g., commands, data, etc.) from a host processor (not shown) via interconnect 402. I / O unit 405 may communicate with the host processor directly via interconnect 402, or through one or more intermediate devices (such as a memory bridge). In one embodiment, I / O unit 405 may communicate with one or more other processors (such as one or more PPUs 400) via interconnect 402. In one embodiment, I / O unit 405 implements a peripheral component interconnect express (PCIe) interface for communicating over a PCIe bus, and interconnect 402 is a PCIe bus. In alternative embodiments, I / O unit 405 may implement other types of known interfaces for communicating with external devices.
[0079] The I / O unit 405 decodes packets received via the interconnect 402. In one embodiment, the packets represent commands configured to cause the PPU 400 to perform different operations. The I / O unit 405 sends the decoded commands to various other units of the PPU 400 as specified by the commands. For example, some commands may be sent to the front end unit 415. Other commands may be sent to the hub 430 or other units of the PPU 400, such as one or more replication engines, video encoders, video decoders, power management units, etc. (not explicitly shown). In other words, the I / O unit 405 is configured to route communications between and among the various logical units of the PPU 400.
[0080] In one embodiment, a program executed by a host processor encodes a command stream in a buffer that provides a workload to the PPU 400 for processing. The workload may include many instructions and data to be processed by those instructions. A buffer is an area in memory that is accessible (e.g., read / write) by both the host processor and the PPU 400. For example, the I / O unit 405 may be configured to access a buffer in a system memory connected to the interconnect 402 via a memory request transmitted through the interconnect 402. In one embodiment, the host processor writes a command stream to the buffer and then sends a pointer to the start of the command stream to the PPU 400. The front end unit 415 receives a pointer to one or more command streams. The front end unit 415 manages one or more streams, reads commands from the streams, and forwards the commands to the various units of the PPU 400.
[0081] The front end unit 415 is coupled to a scheduler unit 420, which configures the various GPCs 450 to process the tasks defined by one or more streams. The scheduler unit 420 is configured to track state information related to the various tasks managed by the scheduler unit 420. The state may indicate which GPC 450 the task is assigned to, whether the task is active or inactive, a priority associated with the task, etc. The scheduler unit 420 manages the execution of multiple tasks on one or more GPCs 450.
[0082] Scheduler unit 420 is coupled to work distribution unit 425, which is configured to dispatch tasks for execution on GPCs 450. Work distribution unit 425 may keep track of a number of scheduled tasks received from scheduler unit 420. In one embodiment, work distribution unit 425 manages a pool of pending tasks and a pool of active tasks for each GPC 450. When a GPC 450 completes execution of a task, the task is evicted from the pool of active tasks for GPC 450, and one of the other tasks from the pool of pending tasks is selected and scheduled for execution on GPC 450. If an active task on a GPC 450 has become idle, such as while waiting for a data dependency to be resolved, then the active task may be evicted from GPC 450 and returned to the pool of pending tasks, while another task in the pool of pending tasks is selected and scheduled for execution on GPC 450.
[0083] In one embodiment, the host processor executes a driver kernel that implements an application programming interface (API) that enables one or more applications to be executed on the host processor to schedule operations for execution on the PPU 400. In one embodiment, multiple computing applications are executed simultaneously by the PPU 400, and the PPU 400 provides isolation, quality of service (QoS), and independent address spaces for multiple computing applications. The application can generate instructions (e.g., API calls) that cause the driver kernel to generate one or more tasks to be executed by the PPU 400. The driver kernel outputs the task to one or more streams being processed by the PPU 400. Each task can include one or more related thread groups, referred to herein as warps. In one embodiment, a warp includes 32 related threads that can be executed in parallel. A cooperative thread can refer to multiple threads that include instructions to execute a task and can exchange data through a shared memory. Tasks can be assigned to one or more processing units within the GPC 450, and instructions are scheduled for execution by at least one warp.
[0084] Work distribution unit 425 communicates with one or more GPCs 450 via XBar 470. XBar 470 is an interconnect network that couples many of the units of PPU 400 to other units of PPU 400. For example, XBar 470 may be configured to couple work distribution unit 425 to a particular GPC 450. Although not explicitly shown, one or more other units of PPU 400 may also be connected to XBar 470 via hub 430.
[0085] Tasks are managed by a scheduling unit 420 and dispatched to GPCs 450 by a work distribution unit 425. GPCs 450 are configured to process tasks and generate results. Results may be consumed by other tasks within the GPC 450, routed to different GPCs 450 via XBar 470, or stored in memory 404. Results may be written to memory 404 via a memory partition unit 480, which implements a memory interface for writing data to and reading data from memory 404. Results may be transferred to another PPU 400 or CPU via NVlink 410. In one embodiment, a PPU 400 includes a number U of memory partition units 480, which is equal to the number of separate and distinct memory devices coupled to the memory 404 of the PPU 400. Each GPC 450 may include a memory management unit to provide virtual address to physical address translation, memory protection, and arbitration of memory requests. In one embodiment, the memory management unit provides one or more translation lookaside buffers (TLBs) for performing translations of virtual addresses to physical addresses in memory 404 .
[0086] In one embodiment, the memory interface implements an HBM2 memory interface and Y is equal to half of U. In one embodiment, the HBM2 memory stack is located on the same physical package as the PPU 400, providing significant power and area savings compared to conventional GDDR5 SDRAM systems. In one embodiment, each HBM2 stack includes four memory dies and Y is equal to 4, wherein each HBM2 stack includes two 128-bit channels per die, for a total of 8 channels and a data bus width of 1024 bits.
[0087] In one embodiment, memory 404 supports single error correction double error detection (SECDED) error correction code (ECC) to protect data. ECC provides higher reliability for computing applications that are sensitive to data corruption. Reliability is particularly important in large cluster computing environments where PPU 400 processes very large data sets and / or long-running applications.
[0088] In one embodiment, the PPU 400 implements a multi-level memory hierarchy. In one embodiment, the memory partition unit 480 supports unified memory to provide a single unified virtual address space for the CPU and PPU 400 memory, enabling data sharing between virtual memory systems. In one embodiment, the frequency of accesses by the PPU 400 to memory located on other processors is tracked to ensure that memory pages are moved to the physical memory of the PPU 400 that accesses the page more frequently. In one embodiment, the NVLink 410 supports address translation services that allow the PPU 400 to directly access the CPU's page tables and provide full access to the CPU memory by the PPU 400.
[0089] In one embodiment, the copy engine transfers data between multiple PPUs 400 or between a PPU 400 and a CPU. The copy engine can generate a page fault for an address that is not mapped to a page table. The memory partition unit 480 can then service the page fault, map the address into a page table, and then the copy engine can perform the transfer. In conventional systems, fixed memory (e.g., non-pageable) is operated for multiple copy engines between multiple processors, which significantly reduces the available memory. Due to hardware paging faults, addresses can be passed to the copy engine without worrying about whether the memory page is resident, and the copy process is transparent.
[0090] Data from memory 404 or other system memory can be retrieved by memory partition unit 480 and stored in L2 cache 460, which is located on the chip and shared between various GPCs 450. As shown, each memory partition unit 480 includes a portion of the L2 cache associated with the corresponding memory 404. Lower-level caches can then be implemented in multiple units within GPC 450. For example, each processing unit within GPC 450 can implement a level 1 (L1) cache. L1 cache is a dedicated memory dedicated to a specific processing unit. L2 cache 460 is coupled to memory interface 470 and XBar 370, and data from the L2 cache can be retrieved and stored in each L1 cache for processing.
[0091] In one embodiment, the processing unit within each GPC 450 implements a SIMD (single instruction, multiple data) architecture, wherein each thread in a group of threads (e.g., a warp) is configured to process different data sets based on the same instruction set. All threads in the group of threads execute the same instruction. In another embodiment, the processing unit implements a SIMT (single instruction, multiple thread) architecture, wherein each thread in a group of threads is configured to process different data sets based on the same instruction set, but wherein individual threads in a group of threads are allowed to diverge during execution. In one embodiment, a program counter, call stack, and execution state are maintained for each warp, enabling concurrency between warps and serial execution within a warp when threads within a warp diverge. In another embodiment, a program counter, call stack, and execution state are maintained for each individual thread, enabling equal concurrency between all threads, within a warp, and between warps. When the execution state is maintained for each individual thread, threads executing the same instruction can converge and execute in parallel for maximum efficiency.
[0092] Cooperative Groups is a programming model for organizing groups of communicating threads that allows developers to express the granularity at which threads are communicating, enabling the expression of richer and more efficient decompositions of parallelism. The cooperative launch API supports synchronization between thread blocks to execute parallel algorithms. Conventional programming models provide a single simple structure for synchronizing cooperative threads: a barrier across all threads of a thread block (e.g., the syncthreads() function). However, programmers often want to define thread groups at a granularity smaller than the thread block granularity and synchronize within the defined group, enabling higher performance, design flexibility, and software reuse in the form of a collective group-wide function interface.
[0093] Cooperative Groups enables programmers to explicitly define thread groups at sub-block (e.g., as small as a single thread) and multi-block granularity and perform collective operations such as synchronization on threads in a cooperative group. The programming model supports clean composition across software boundaries so that libraries and utility functions can safely synchronize in their local environment without making assumptions about convergence. Cooperative Groups primitives enable new patterns of cooperative parallelism, including producer-consumer parallelism, opportunistic parallelism, and global synchronization across the entire grid of thread blocks.
[0094] The processing unit includes a large number (e.g., 128, etc.) of different processing cores (e.g., functional units), which can be fully pipelined, single-precision, double-precision, and / or mixed-precision and include a floating-point arithmetic logic unit and an integer arithmetic logic unit. In one embodiment, the floating-point arithmetic logic unit implements the IEEE 754-2008 standard for floating-point operations. In one embodiment, the core includes 64 single-precision (32-bit) floating-point cores, 64 integer cores, 32 double-precision (64-bit) floating-point cores, and 8 tensor cores.
[0095] The tensor cores are configured to perform matrix operations. Specifically, the tensor cores are configured to perform deep learning matrix operations, such as GEMM (matrix-matrix multiplication) for convolution operations during neural network training and inference. In one embodiment, each tensor core operates on a 4×4 matrix and performs a matrix multiplication and accumulation operation D=A×B+C, where A, B, C, and D are 4×4 matrices.
[0096] In one embodiment, the matrix multiplication inputs A and B can be integer, fixed-point, or floating-point matrices, and the accumulation matrices C and D can be integer, fixed-point, or floating-point matrices of equal or higher bit width. In one embodiment, the tensor core operates on 1, 4, or 8-bit integer input data using 32-bit integer accumulation. 8-bit integer matrix multiplication requires 1024 operations and results in a full-precision product, which is then accumulated with other intermediate products of the 8x8x16 matrix multiplication using 32-bit integer addition. In one embodiment, the tensor core operates on 16-bit floating-point input data using 32-bit floating-point accumulation. 16-bit floating-point multiplication requires 64 operations, produces a full-precision product, and then accumulates with other intermediate products of the 4×4×4 matrix multiplication using 32-bit floating-point addition. In practice, tensor cores are used to perform larger two-dimensional or higher-dimensional matrix operations built from these smaller elements. APIs such as the CUDA 9 C++ API expose specialized matrix load, matrix multiply and accumulate, and matrix store operations to efficiently use tensor cores from CUDA-C++ programs. At the CUDA level, the warp-level interface assumes that a 16×16 size matrix spans all 32 threads of the warp.
[0097] Each processing unit may also include M special function units (SFUs) that perform special functions (e.g., attribute evaluation, reciprocal square root, etc.). In one embodiment, the SFU may include a tree traversal unit configured to traverse a hierarchical tree data structure. In one embodiment, the SFU may include a texture unit configured to perform texture map filtering operations. In one embodiment, the texture unit is configured to load a texture map (e.g., a 2D array of texture pixels) from memory 404 and sample the texture map to produce sampled texture values for use in a shader program executed by the processing unit. In one embodiment, the texture map is stored in a shared memory that may include or include an L1 cache. The texture unit implements texture operations, such as filtering operations using mip maps (i.e., texture maps of different levels of detail). In one embodiment, each processing unit includes two texture units.
[0098] Each processing unit also includes N load storage units (LSUs) that implement load and store operations between the shared memory and the register file. Each processing unit includes an interconnect network that connects each core to the register file and connects the LSU to the register file and the shared memory. In one embodiment, the interconnect network is a crossbar switch that can be configured to connect any core to any register in the register file and to connect the LSU to the register file and the memory location in the shared memory.
[0099] Shared memory is an on-chip memory array that allows data storage and communication between processing units and between threads within a processing unit. In one embodiment, shared memory includes 128KB of storage capacity and is in the path from each processing unit to memory partition unit 480. Shared memory can be used for cache reads and writes. One or more of shared memory, L1 cache, L2 cache, and memory 404 is a backing store.
[0100] Combining data cache and shared memory functionality into a single memory block provides the best overall performance for both types of memory accesses. This capacity can be used by programs as a cache that does not use the shared memory. For example, if the shared memory is configured to use half of the capacity, texture and load / store operations can use the remaining capacity. The integration within the shared memory enables the shared memory to function as a high-throughput pipeline for streaming data, while providing high-bandwidth and low-latency access to frequently reused data.
[0101] When configured for general parallel computing, a simpler configuration can be used compared to graphics processing. Specifically, the fixed-function graphics processing unit is bypassed, creating a simpler programming model. In the general parallel computing configuration, the work distribution unit 425 assigns and distributes thread blocks directly to the processing units within the GPC 450. The threads execute the same program, using unique thread IDs in the calculation to ensure that each thread generates a unique result, using one or more processing units to execute the program and perform the calculation, using shared memory to communicate between threads, and using LSUs to read and write global memory through shared memory and memory partition unit 480. When configured for general parallel computing, the processing unit can also write commands that the scheduler unit 420 can use to start new work on the processing unit.
[0102] The PPUs 400 may each include and / or be configured to perform the following functions, one or more processing cores and / or components thereof, such as a tensor core (TC), a tensor processing unit (TPU), a pixel vision core (PVC), a ray tracing (RT) core, a vision processing unit (VPU), a graphics processing cluster (GPC), a texture processing cluster (TPC), a streaming multiprocessor (SM), a tree traversal unit (TTU), an artificial intelligence accelerator (AIA), a deep learning accelerator (DLA), an arithmetic logic unit (ALU), an application-specific integrated circuit (ASIC), a floating point unit (FPU), an input / output (I / O) element, a peripheral component interconnect (PCI) or a peripheral component interconnect express (PCIe) element, and / or the like.
[0103] The PPU 400 may be included in a desktop computer, a laptop computer, a tablet computer, a server, a supercomputer, a smartphone (e.g., wireless, handheld device), a personal digital assistant (PDA), a digital camera, a vehicle, a head-mounted display, a handheld electronic device, etc. In one embodiment, the PPU 400 is included on a single semiconductor substrate. In another embodiment, the PPU 400 is included on a system on a chip (SoC) along with one or more other devices (such as an additional PPU 400, a memory 404, a reduced instruction set computer (RISC) CPU, a memory management unit (MMU), a digital-to-analog converter (DAC), etc.).
[0104] In one embodiment, PPU 400 may be included on a graphics card that includes one or more memory devices 404. The graphics card may be configured to interface with a PCIe slot on a motherboard of a desktop computer. In yet another embodiment, PPU 400 may be an integrated graphics processing unit (iGPU) or a parallel processor included in a chipset of the motherboard. In yet another embodiment, PPU 400 may be implemented in reconfigurable hardware. In yet another embodiment, portions of PPU 400 may be implemented in reconfigurable hardware.
[0105] Exemplary Computing System
[0106] Systems with multiple GPUs and CPUs are used in a variety of industries as developers expose and exploit more parallelism in applications such as artificial intelligence computing. High-performance GPU-accelerated systems with tens to thousands of computing nodes are deployed in data centers, research institutions, and supercomputers to solve larger problems. As the number of processing devices within high-performance systems increases, communication and data transmission mechanisms need to scale to support this increased bandwidth.
[0107] Figure 5A According to one embodiment, the use Figure 4 A conceptual diagram of a processing system 500 implemented by a PPU 400 of FIG. 5 . The exemplary system 500 may be configured to implement Figure 2E The method 250 shown in and / or Figure 3D The processing system 500 includes a CPU 530, a switch 510, and a plurality of PPUs 400 and corresponding memories 404.
[0108] NVLink 410 provides a high-speed communication link between each PPU 400. Figure 5B 402 connections, but the number of connections connected to each PPU 400 and CPU 530 may vary. Switch 510 interfaces between interconnect 402 and CPU 530. PPU 400, memory 404, and NVLink 410 may be located on a single semiconductor platform to form a parallel processing module 525. In one embodiment, switch 510 supports two or more protocols that interface between various different connections and / or links.
[0109] In another embodiment (not shown), NVLink 410 provides one or more high-speed communication links between each PPU 400 and CPU 530, and switch 510 interfaces between interconnect 402 and each PPU 400. PPU 400, memory 404, and interconnect 402 may be located on a single semiconductor platform to form a parallel processing module 525. In yet another embodiment (not shown), interconnect 402 provides one or more communication links between each PPU 400 and CPU 530, and switch 510 interfaces between each PPU 400 using NVLink 410 to provide one or more high-speed communication links between PPUs 400. In another embodiment (not shown), NVLink 410 provides one or more high-speed communication links between PPU 400 and CPU 530 through switch 510. In yet another embodiment (not shown), interconnect 402 provides one or more communication links directly between each PPU 400. One or more NVLink 410 high-speed communication links may be implemented as a physical NVLink interconnect or as an on-chip or on-die interconnect using the same protocol as NVLink 410.
[0110] In the context of this specification, a single semiconductor platform may refer to a unique single semiconductor-based integrated circuit manufactured on a bare die or chip. It should be noted that the term single semiconductor platform may also refer to a multi-chip module with increased connectivity that simulates on-chip operations and is substantially improved by utilizing conventional bus implementations. Of course, various circuits or devices may also be placed separately or in various combinations of semiconductor platforms, depending on the needs of the user. Optionally, the parallel processing module 525 may be implemented as a circuit board substrate, and each of the PPU 400 and / or memory 404 may be a packaged device. In one embodiment, the CPU 530, switch 510, and parallel processing module 525 are located on a single semiconductor platform.
[0111] In one embodiment, the signaling rate of each NVLink 410 is 20 to 25 Gbit / s, and each PPU 400 includes six NVLink 410 interfaces (e.g., Figure 5A As shown, each PPU 400 includes five NVLink 410 interfaces. Each NVLink 410 provides a data transfer rate of 25 Gbit / s in each direction, with six links providing 400 Gbit / s. When the CPU 530 also includes one or more NVLink 410 interfaces, the NVLink 410 can be used exclusively for, for example, Figure 5A PPU to PPU communication as shown, or some combination of PPU to PPU and PPU to CPU.
[0112] In one embodiment, NVLink 410 allows direct load / store / atomic access from CPU 530 to memory 404 of each PPU 400. In one embodiment, NVLink 410 supports coherency operations, allowing data read from memory 404 to be stored in the cache hierarchy of CPU 530, reducing cache access latency of CPU 530. In one embodiment, NVLink 410 includes support for address translation services (ATS), allowing PPU 400 to directly access page tables within CPU 530. One or more NVLinks 410 may also be configured to operate in a low power mode.
[0113] Figure 5B An exemplary system 565 is shown in which various architectures and / or functions of various previous embodiments may be implemented. The exemplary system 565 may be configured to implement Figure 2E The method 250 shown in and / or Figure 3D Method 330 shown in FIG.
[0114] As shown, a system 565 is provided, which includes at least one central processing unit 530 connected to a communication bus 575. The communication bus 575 can directly or indirectly couple one or more of the following devices: main memory 540, network interface 535, one or more CPUs 530, one or more display devices 545, one or more input devices 560, switch 510, and parallel processing system 525. The communication bus 575 can be implemented using any suitable protocol and can represent one or more links or buses, such as an address bus, a data bus, a control bus, or a combination thereof. The communication bus 575 may include one or more bus or link types, such as an industry standard architecture (ISA) bus, an extended industry standard architecture (EISA) bus, a video electronics standard association (VESA) bus, a peripheral component interconnect (PCI) bus, a fast peripheral component interconnect (PCIe) bus, a hypertransport, and / or another type of bus or link. In some embodiments, there is a direct connection between components. For example, the CPU 530 can be directly connected to the main memory 540. Further, the CPU 530 can be directly connected to the parallel processing system 525. In the case where there is a direct or point-to-point connection between components, the communication bus 575 may include a PCIe link for performing the connection. In these examples, the PCI bus need not be included in the system 565.
[0115] although Figure 5CThe various blocks of are shown as being connected via communication bus 575, but this is not intended to be limiting and is for clarity only. For example, in some embodiments, presentation components such as display device 545 may be considered to be I / O components such as input device 560 (e.g., if the display is a touch screen). As another example, CPU 530 and / or parallel processing system 525 may include memory (e.g., main memory 540 may represent storage devices other than parallel processing system 525, CPU 530, and / or other components). In other words, Figure 5C The computing devices described herein are illustrative only. No distinction is made between such categories as "workstations," "servers," "laptops," "desktop computers," "tablet computers," "client devices," "mobile devices," "handheld devices," "game consoles," "electronic control units (ECUs)," "virtual reality systems," and / or other device or system types, as all are considered Figure 5C within the range of computing devices.
[0116] The system 565 also includes a main memory 540. Control logic (software) and data are stored in the main memory 540, which can take the form of various computer-readable media. Computer-readable media can be any available media that can be accessed by the system 565. Computer-readable media can include volatile and non-volatile media, as well as removable and non-removable media. By way of example and not limitation, computer-readable media can include computer storage media and communication media.
[0117] Computer storage media may include both volatile and nonvolatile media and / or both removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules, and / or other data types. For example, main memory 540 may store computer readable instructions (e.g., representing programs and / or program elements, such as an operating system). Computer storage media may include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage devices or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by system 565. As used herein, computer storage media does not include the signals themselves.
[0118] Computer storage media may embody computer readable instructions, data structures, program modules, and / or other data types as a modulated data signal (such as a carrier wave or other transmission mechanism) and include any information delivery media. The term "modulated data signal" may refer to a signal that has one or more of its characteristics set or changed in a manner that encodes the information in the signal. By way of example and not limitation, computer storage media may include wired media (such as a wired network or a direct wired connection) and wireless media (such as acoustic, RF, infrared and other wireless media). Combinations of any of the above should also be included within the scope of computer readable media.
[0119] The computer program enables the system 565 to perform different functions when executed. The CPU 530 may be configured to execute at least some of the computer-readable instructions to control one or more components of the system 565 to perform one or more of the methods and / or processes described herein. The CPU 530 may each include one or more cores (e.g., one, two, four, eight, twenty-eight, seventy-two, etc.) capable of processing multiple software threads simultaneously. The CPU 530 may include any type of processor, and may include different types of processors (e.g., processors with fewer cores for mobile devices and processors with more cores for servers) depending on the type of system 565 implemented. For example, depending on the type of system 565, the processor may be an Advanced RISC Machine (ARM) processor implemented using Reduced Instruction Set Computing (RISC) or an x86 processor implemented using Complex Instruction Set Computing (CISC). In addition to one or more microprocessors or supplementary coprocessors (such as math coprocessors), the system 565 may also include one or more CPUs 530.
[0120] In addition to or in lieu of the CPU 530, the parallel processing module 525 can be configured to execute at least some of the computer-readable instructions to control one or more components of the system 565 to perform one or more of the methods and / or processes described herein. The parallel processing module 525 can be used by the system 565 to render graphics (e.g., 3D graphics) or perform general-purpose computations. For example, the parallel processing module 525 can be used for general-purpose computing on a GPU (GPGPU). In an embodiment, one or more CPUs 530 and / or parallel processing modules 525 can perform any combination of methods, processes, and / or portions thereof discretely or jointly.
[0121] System 565 also includes one or more input devices 560, parallel processing system 525, one or more display devices 545. Display device 545 may include a display (e.g., a monitor, a touch screen, a television screen, a head-up display (HUD), other display types, or a combination thereof), speakers, and / or other presentation components. Display device 545 may receive data from other components (e.g., parallel processing system 525, CPU 530, etc.) and output the data (e.g., as images, video, sound, etc.).
[0122] The network interface 535 can enable the system 565 to be logically coupled to other devices, including input devices 560, one or more display devices 545, and / or other components, some of which can be built into (e.g., integrated into) the system 565. Illustrative input devices 560 include microphones, mice, keyboards, joysticks, game pads, game controllers, satellite dishes, scanners, printers, wireless devices, etc. The input device 560 can provide a natural user interface (NUI) that processes air gestures, voice, or other physiological inputs generated by the user. In some cases, the input can be sent to an appropriate network element for further processing. The NUI can implement any combination of voice recognition, stylus recognition, facial recognition, biometric recognition, gesture recognition on and near the screen, air gestures, head and eye tracking, and touch recognition (as described in more detail below) associated with the display of the system 565. The system 565 may include a depth camera for gesture detection and recognition, such as a stereo camera system, an infrared camera system, an RGB camera system, touch screen technology, and combinations of these. Additionally, system 565 may include an accelerometer or gyroscope that enables detection of motion (e.g., as part of an inertial measurement unit (IMU)). In some examples, system 565 may use the output of the accelerometer or gyroscope to render an immersive augmented reality or virtual reality.
[0123] Further, the system 565 can be coupled to a network (e.g., a telecommunications network, a local area network (LAN), a wireless network, a wide area network (WAN) (such as the Internet), a peer-to-peer network, a cable network, etc.) for communication purposes through the network interface 535. The system 565 can be included in a distributed network and / or cloud computing environment.
[0124] The network interface 535 may include one or more receivers, transmitters, and / or transceivers that enable the system 565 to communicate with other computing devices via an electronic communications network (including wired and / or wireless communications). The network interface 535 may include components and functionality to enable communications via any of a number of different networks, such as wireless networks (e.g., Wi-Fi, Z-wave, Bluetooth, Bluetooth LE, ZigBee, etc.), wired networks (e.g., via Ethernet or Infiniband communications), low power wide area networks (e.g., LoRaWAN, SigFox, etc.), and / or the Internet.
[0125] The system 565 may also include an auxiliary storage device (not shown). The auxiliary storage device includes, for example, a hard disk drive and / or a removable storage drive, representing a floppy disk drive, a tape drive, a compact disk drive, a digital versatile disk (DVD) drive, a recording device, a universal serial bus (USB) flash memory. The removable storage drive reads from and / or writes to the removable storage unit in a known manner. The system 565 may also include a hard-wired power supply, a battery power supply, or a combination thereof (not shown). The power supply can provide power to the system 565 to enable the components of the system 565 to operate.
[0126] Each of the aforementioned modules and / or devices may even be located on a single semiconductor platform to form system 565. Alternatively, different modules may also be located individually or in different combinations of semiconductor platforms according to the needs of the user. Although various embodiments have been described above, it should be understood that these embodiments are presented only as examples and not limitations. Therefore, the breadth and scope of the preferred embodiments should not be limited by any of the above exemplary embodiments, but should only be defined in accordance with the appended claims and their equivalents.
[0127] Example network environment
[0128] A network environment suitable for implementing embodiments of the present disclosure may include one or more client devices, servers, network attached storage (NAS), other backend devices, and / or other device types. The client devices, servers, and / or other device types (e.g., each device) may be configured to communicate with the client device, server, or other device types. Figure 5A The processing system 500 and / or Figure 5B The exemplary system 565 may be implemented on one or more instances of the exemplary system 565 of the processing system 500—for example, each device may include similar components, features, and / or functionality of the exemplary system 565 and / or the processing system 500.
[0129] The components of the network environment can communicate with each other via one or more networks, which can be wired, wireless, or both. The network can include multiple networks or one of multiple networks. For example, the network can include one or more wide area networks (WANs), one or more local area networks (LANs), one or more public networks such as the Internet and / or a public switched telephone network (PSTN), and / or one or more private networks. In the case where the network includes a wireless telecommunications network, components such as base stations, communication towers, or even access points (and other components) can provide wireless connections.
[0130] Compatible network environments may include one or more peer-to-peer network environments (in which case the server may not be included in the network environment) and one or more client-server network environments (in which case one or more servers may be included in the network environment). In a peer-to-peer network environment, the functionality described herein with respect to the server may be implemented on any number of client devices.
[0131] In at least one embodiment, the network environment may include one or more cloud-based network environments, distributed computing environments, combinations thereof, and the like. A cloud-based network environment may include a framework layer, a job scheduler, a resource manager, and a distributed file system implemented on one or more servers, and the server may include one or more core network servers and / or edge servers. The framework layer may include a framework for software supporting the software layer and / or one or more applications of the application layer. The software or application may include network-based service software or application programs, respectively. In an embodiment, one or more client devices may use web-based service software or applications (e.g., by accessing the service software and / or application via one or more application programming interfaces (APIs)). The framework layer may be, but is not limited to, the type of free and open source software web application framework, such as a distributed file system that may be used for large-scale data processing (e.g., "big data").
[0132] A cloud-based network environment can provide cloud computing and / or cloud storage that performs any combination of the computing and / or data storage functions (or one or more portions thereof) described herein. Any of these different functions can be distributed across multiple locations from a central or core server (e.g., one or more data centers that can be distributed across a state, region, country, globe, etc.). If the connection to the user (e.g., client device) is relatively close to an edge server, the core server can assign at least a portion of the functionality to the edge server. A cloud-based network environment can be private (e.g., limited to a single organization), public (e.g., available to many organizations), and / or a combination thereof (e.g., a hybrid cloud environment).
[0133] Client devices may include Figure 5B The example processing system 500 and / or Figure 5C At least some of the components, features, and functions of the exemplary system 565 of the embodiment of the present invention. By way of example and not limitation, the client device may be implemented as a personal computer (PC), a laptop computer, a mobile device, a smart phone, a tablet computer, a smart watch, a wearable computer, a personal digital assistant (PDA), an MP3 player, a virtual reality headset, a global positioning system (GPS) or device, a video player, a camera, a surveillance device or system, a vehicle, a boat, a spacecraft, a virtual machine, a drone, a robot, a handheld communication device, a hospital device, a gaming device or system, an entertainment system, a vehicle computer system, an embedded system controller, a remote control, an appliance, a consumer electronic device, a workstation, an edge device, any combination of the devices depicted, or any other suitable device.
[0134] Machine Learning
[0135] Deep Neural Networks (DNNs) developed on processors such as the PPU 400 have been used in a variety of use cases: from self-driving cars to faster drug development, from automatic image captioning in online image databases to intelligent real-time language translation in video chat applications. Deep learning is a technology that models the neural learning process of the human brain, constantly learning, constantly getting smarter, and delivering more accurate results faster over time. A child is initially taught by an adult to correctly identify and classify various shapes, and eventually is able to recognize shapes without any coaching. Similarly, deep learning or neural learning systems need to be trained in object recognition and classification in order to become smarter and more efficient in recognizing basic objects, occluded objects, etc., while also assigning context to objects.
[0136] At the simplest level, neurons in the human brain look at the various inputs they receive, assign importance levels to each of these inputs, and pass outputs to other neurons for processing. An artificial neuron, or perceptron, is the most basic model of a neural network. In one example, a perceptron can receive one or more inputs that represent various features of an object that the perceptron is being trained to recognize and classify, and each of these features is given a certain weight based on the importance of that feature when defining the shape of the object.
[0137] Deep neural network (DNN) models include multiple layers of many connected nodes (e.g., perceptrons, Boltzmann machines, radial basis functions, convolutional layers, etc.), which can be trained with large amounts of input data to solve complex problems quickly and accurately. In one example, the first layer of a DNN model breaks down an input image of a car into its parts and looks for basic patterns (such as lines and angles). The second layer assembles lines to look for higher-level patterns, such as wheels, windshields, and mirrors. The next layer identifies the type of vehicle, and the last few layers generate labels for the input image, identifying the model of a specific car brand.
[0138] Once a DNN is trained, it can be deployed and used to recognize and classify objects or patterns in a process called inference. Examples of inference (the process by which a DNN extracts useful information from a given input) include recognizing handwritten numbers on check deposits in ATM machines, identifying images of friends in photos, providing movie recommendations to over 50 million users, recognizing and classifying different types of cars, pedestrians, and road hazards in self-driving cars, or translating human speech in real time.
[0139] During training, data flows through the DNN in a forward propagation phase until a prediction is produced, which indicates a label corresponding to the input. If the neural network does not correctly label an input, the error between the correct label and the predicted label is analyzed, and the weights are adjusted for each feature during a backward propagation phase until the DNN correctly labels that input and other inputs in the training data set. Training complex neural networks requires a large amount of parallel computing performance, including floating-point multiplications and additions supported by the PPU 400. Inference is less computationally intensive than training and is a latency-sensitive process in which a trained neural network is applied to new inputs it has not seen before to classify images, detect emotions, identify recommendations, recognize and translate speech, and generally reason about new information.
[0140] Neural networks rely heavily on matrix math operations, and complex multi-layer networks require a lot of floating point performance and bandwidth for efficiency and speed. With thousands of processing cores optimized for matrix math operations and delivering tens to hundreds of TFLOPS of performance, the PPU 400 is a computing platform capable of delivering the performance required for deep neural network-based artificial intelligence and machine learning applications.
[0141] In addition, images generated using one or more of the techniques disclosed herein can be used to train, test, or certify DNNs for recognizing objects and environments in the real world. Such images may include scenes of roads, factories, buildings, urban environments, rural environments, people, animals, and any other physical objects or real-world environments. Such images can be used to train, test, or certify DNNs used in machines or robots to manipulate, process, or modify physical objects in the real world. In addition, such images can be used to train, test, or certify DNNs used in autonomous vehicles to navigate and move vehicles in the real world. In addition, images generated using one or more of the techniques disclosed herein can be used to convey information to users of such machines, robots, and vehicles.
[0142] Figure 5C Components of an example system 555 that can be used to train and utilize machine learning in accordance with at least one embodiment are shown. As will be discussed, various components can be provided by various combinations of computing devices and resources, or a single computing system, which can be under the control of a single entity or multiple entities. In addition, various aspects can be triggered, initiated, or requested by different entities. In at least one embodiment, the training of the neural network can be directed by a vendor associated with the vendor environment 506, and in at least one embodiment, the training of the neural network can be requested by a customer or other user who can access the vendor environment through a client device 502 or other such resource. In at least one embodiment, the training data (or data to be analyzed by the trained neural network) can be provided by a vendor, a user, or a third-party content provider 524, etc. In at least one embodiment, the client device 502 can be a vehicle or object that can navigate on behalf of a user, for example, the user can submit requests and / or receive instructions to facilitate navigation of the device.
[0143] In at least one embodiment, the request can be submitted over at least one network 504 for receipt by the provider environment 506. In at least one embodiment, the client device can be any suitable electronic and / or computing device that enables a user to generate and send such a request, such as, but not limited to, a desktop computer, a laptop computer, a computer server, a smart phone, a tablet computer, a game console (portable or otherwise), a computer processor, computing logic, and a set-top box, etc. The one or more networks 504 may include any suitable network for sending the request or other such data, and may include, for example, the Internet, an intranet, an Ethernet network, a cellular network, a local area network (LAN), a wide area network (WAN), a personal area network (PAN), an ad hoc network with direct wireless connections between peers, and the like.
[0144] In at least one embodiment, the request may be received at the interface layer 508, which in this example may forward the data to the training and reasoning manager 532. In at least one embodiment, the training and reasoning manager 532 may be a system or service including hardware and software for managing services and requests consistent with data or content. In at least one embodiment, the training and reasoning manager 532 may receive a request to train a neural network and may provide the requested data to the training module 512. In at least one embodiment, if the request is not specified, the training module 512 may select an appropriate model or network to use and may use the relevant training data to train the model. In at least one embodiment, the training data may be a batch of data received from the client device 502 or obtained from a third-party supplier 524 and stored in the training data repository 514. In at least one embodiment, the training module 512 may be responsible for the training data. The neural network may be any appropriate network, such as a recurrent neural network (RNN) or a convolutional neural network (CNN), etc. Once the neural network is trained and successfully evaluated, the trained neural network may be stored in the model repository 516, for example, the model repository may store different models or networks for users, applications, services, etc. In at least one embodiment, there may be multiple models for a single application or entity, such as multiple models that may be utilized based on a number of different factors.
[0145] In at least one embodiment, at a later point in time, a request for content (e.g., path determination) or data determined or influenced at least in part by a trained neural network may be received from the client device 502 (or another such device). The request may include, for example, input data to be processed using the neural network to obtain one or more inferences or other output values, classifications, or predictions or for at least one embodiment, although different systems or services may also be used, the input data may be received by the interface layer 508 and directed to the inference module 518. In at least one embodiment, if not already locally stored to the inference module 518, the inference module 518 may obtain an appropriate trained network from the model repository 516, such as a trained deep neural network (DNN) described herein. The inference module 518 may provide data as input to the trained network, which may then generate one or more inferences as output. For example, this may include a classification of an instance of the input data. In at least one embodiment, the inference may then be sent to the client device 502 for display to the user or other communication with the user. In at least one embodiment, the user's contextual data may also be stored in a user contextual data repository 522, which may include data about the user, which may be useful as a network input for generating reasoning or determining data to be returned to the user after obtaining an instance. In at least one embodiment, related data that may include at least some of the input or reasoning data may also be stored in a local database 534 for processing future requests. In at least one embodiment, a user may use account information or other information to access resources or functions of a provider environment. In at least one embodiment, if allowed and available, user data may also be collected and used to further train the model to provide more accurate reasoning for future requests. In at least one embodiment, a request to execute a machine learning application 526 on a client device 502 may be received through a user interface, and the results may be displayed through the same interface. The client device may include resources such as a processor 528 and a memory 562 for generating requests and processing results or responses, and at least one data storage element 552 for storing data for the machine learning application 526.
[0146] In at least one embodiment, the processor 528 (or the processor of the training manager 512 or the reasoning module 518) will be a central processing unit (CPU). However, as described above, resources in such an environment may utilize GPUs to process data for at least some types of requests. GPUs with thousands of cores (such as PPU 300) are designed to handle massive parallel workloads and have become popular in deep learning for training neural networks and generating predictions. While using GPUs for offline construction can train larger and more complex models faster, generating predictions offline means that request-time input features cannot be used, or predictions must be generated for all feature permutations and stored in lookup tables to serve real-time requests. If the deep learning framework supports CPU mode, and the model is small and simple enough that feedforward can be performed on the CPU with reasonable latency, a service on a CPU instance can host the model. In this case, training can be performed offline on the GPU and reasoning can be performed in real time on the CPU. If the CPU approach is not feasible, the service can run on a GPU instance. However, because GPUs have different performance and cost characteristics than CPUs, running a service that offloads runtime algorithms to a GPU may require that it be designed differently from a CPU-based service.
[0147] In at least one embodiment, video data may be provided from client device 502 for enhancement in vendor environment 506. In at least one embodiment, video data may be processed for enhancement on client device 502. In at least one embodiment, video data may be streamed from third party content provider 524 and enhanced by third party content provider 524, vendor environment 506, or client device 502. In at least one embodiment, video data may be provided from client device 502 for use as training data in vendor environment 506.
[0148] In at least one embodiment, supervised and / or unsupervised training can be performed by the client device 502 and / or the vendor environment 506. In at least one embodiment, a set of training data 514 (e.g., classified or labeled data) can be provided as input for use as training data. In at least one embodiment, the training data may include instances of at least one type of object for which the neural network is trained, and information identifying the type of object. In at least one embodiment, the training data may include a set of images each including a representation of an object type, wherein each image also includes or is associated with a label, metadata, classification, or other information identifying the type of object represented in the corresponding image. Various other types of data may also be used as training data, and may include text data, audio data, video data, etc. In at least one embodiment, the training data 514 is provided to the training module 512 as training input. In at least one embodiment, the training module 512 may be a system or service including hardware and software, such as one or more computing devices that execute a training application for training a neural network (or other model or algorithm, etc.). In at least one embodiment, the training module 512 receives an instruction or request indicating the type of model to be used for training. In at least one embodiment, the model can be any appropriate statistical model, network or algorithm for such a purpose, such as artificial neural networks, deep learning algorithms, learning classifiers, Bayesian networks, etc. In at least one embodiment, the training module 512 can select an initial model or other untrained model from an appropriate repository 516 and train the model using training data 514 to generate a trained model (e.g., a trained deep neural network) that can be used to classify similar types of data, or generate other such inferences. In at least one embodiment in which training data is not used, an appropriate initial model can still be selected for each training module 512 to train the input data.
[0149] In at least one embodiment, the model can be trained in a variety of different ways, as may depend in part on the type of model selected. In at least one embodiment, a machine learning algorithm may be provided with a training data set, where the model is a model artifact created by the training process. In at least one embodiment, each instance of the training data includes a correct answer (e.g., a classification), which may be referred to as a target or target attribute. In at least one embodiment, the learning algorithm finds patterns in the training data that map input data attributes to targets, the answers to be predicted, and outputs a machine learning model that captures these patterns. In at least one embodiment, the machine learning model can then be used to obtain predictions about new data for which a target is not specified.
[0150] In at least one embodiment, the training and inference manager 532 can select from a set of machine learning models including binary classification, multi-class classification, generative, and regression models. In at least one embodiment, the type of model to be used may depend at least in part on the type of target to be predicted.
[0151] Example streaming system
[0152] The image generated by applying one or more of the technologies disclosed herein can be displayed on a monitor or other display device. In some embodiments, the display device may be directly coupled to a system or processor that generates or renders an image. In other embodiments, the display device may be indirectly coupled to the system or processor, for example, via a network. Examples of such networks include the Internet, mobile telecommunications networks, WIFI networks, and any other wired and / or wireless networking systems. When the display device is indirectly coupled, the image generated by the system or processor may be streamed to the display device via a network. Such streaming allows, for example, a video game or other application that renders an image to be executed on a server, a data center, or in a cloud-based computing environment, and the rendered image will be transmitted and displayed on one or more user devices (such as computers, video game consoles, smart phones, other mobile devices, etc.) that are physically separated from the server or data center. Therefore, the technology disclosed herein can be applied to enhanced streaming images and services that enhance streaming images, such as NVIDIA GeForce Now (GFN), Google Stadia, etc.
[0153] Figure 6 is an example system diagram of a streaming system 605 according to some embodiments of the present disclosure. In an embodiment, the streaming system 605 is a game streaming system. Figure 6 One or more servers 603 (which may include Figure 5A The example processing system 500 and / or Figure 5B ), one or more client devices 604 (which may include components, features, and / or functions similar to the exemplary system 565 of Figure 5A The example processing system 500 and / or Figure 5B ) and one or more networks 606 (which may be similar to one or more networks described herein). In some embodiments of the present disclosure, system 605 may be implemented.
[0154] In system 605, for a game session, one or more client devices 604 may receive input data only in response to input to one or more input devices, send the input data to one or more servers 603, receive encoded display data from one or more servers 603, and display the display data on display 624. In this way, more computationally intensive calculations and processing are offloaded to one or more servers 603 (e.g., rendering, specifically ray or path tracing, for one or more GPUs of one or more servers 603 to perform graphical output of the game session). In other words, the game session is streamed from server 603 to client device 604, thereby reducing the requirements of client device 604 for graphics processing and rendering.
[0155] For example, with respect to an example of a game session, the client device 604 may display a frame of the game session on the display 624 based on receiving display data from the server 603. The client device 604 may receive input from one of the one or more input devices and generate input data in response. The client device 604 may send the input data to the one or more servers 603 via the communication interface 621 and through one or more networks 606 (e.g., the Internet), and the one or more servers 603 may receive the input data via the communication interface 618. The CPU may receive the input data, process the input data, and send the data to the GPU, which causes the GPU to generate a rendering of the game session. For example, the input data may represent movement of a character of a user in a game, firing a weapon, reloading, passing a ball, turning a vehicle, etc. The rendering component 612 may render the game session (e.g., representing the result of the input data), and the rendering capture component 614 may capture the rendering of the game session as display data (e.g., capturing image data of a rendered frame of the game session). The rendering of the game session may include lighting and / or shadow effects using ray or path tracing computed using one or more parallel processing units (e.g., GPUs), which may further employ one or more dedicated hardware accelerators or processing cores to perform ray or path tracing techniques of the server 603. The encoder 616 may then encode the display data to generate encoded display data, and the encoded display data may be sent to the client device 604 via the network 606 via the communication interface 618. The client device 604 may receive the encoded display data via the communication interface 621, and the decoder 622 may decode the encoded display data to generate display data. The client device 604 may then display the display data via the display 624.
[0156] It should be noted that the techniques described herein may be embodied in executable instructions stored in a computer-readable medium for use by or in conjunction with a processor-based instruction execution machine, system, device, or apparatus. Those skilled in the art will appreciate that for some embodiments, different types of computer-readable media may be included for storing data. As used herein, "computer-readable media" includes one or more of any suitable media for storing executable instructions of a computer program, so that an instruction execution machine, system, device, or apparatus can read (or obtain) instructions from a computer-readable medium and execute instructions for implementing the described embodiments. Suitable storage formats include one or more of electronic, magnetic, optical, and electromagnetic formats. A non-exhaustive list of conventional exemplary computer-readable media includes: portable computer disks; random access memory (RAM); read-only memory (ROM); erasable programmable read-only memory (EPROM); flash memory devices; and optical storage devices, including portable compact disks (CDs), portable digital video disks (DVDs), and the like.
[0157] It should be understood that the arrangement of the components shown in the drawings is for illustrative purposes and other arrangements are possible. For example, one or more of the elements described herein may be implemented as electronic hardware components in whole or in part. Other elements may be implemented in software, hardware, or a combination of software and hardware. In addition, some or all of these other elements may be combined, some elements may be completely omitted, and additional components may be added while still implementing the functions described herein. Thus, the subject matter described herein may be embodied in many different variations, and all such variations are contemplated to be within the scope of the claims.
[0158] For ease of understanding of the subject matter described herein, many aspects are described in terms of action sequences. It will be appreciated by those skilled in the art that different actions may be performed by a dedicated circuit or circuit, by a program instruction executed by one or more processors, or by a combination of the two. The description of any action sequence herein is not intended to imply that the described particular order for executing the sequence must be followed. Unless otherwise indicated herein or context clearly contradicts, all methods described herein may be performed in any suitable order.
[0159] The use of the terms "a" and "the" and similar references in the context of describing the subject matter (particularly in the context of the following claims) should be interpreted to cover both the singular and the plural, unless otherwise specified herein or clearly contradicted by the context. The use of the term "at least one" followed by a list of one or more items (e.g., "at least one of A and B") should be interpreted to mean an item selected from the listed items (A or B) or any combination of two or more of the listed items (A and B), unless otherwise specified herein or clearly contradicted by the context. In addition, the foregoing description is for illustrative purposes only, not for limiting purposes, because the scope of protection sought is defined by the claims set forth and any equivalents thereof. The use of any and all examples or exemplary language (e.g., "such as") provided herein is intended only to better illustrate the subject matter and does not limit the scope of the subject matter, unless otherwise stated. The use of the term "based on" and other similar phrases indicating conditions that cause a result in the claims and written description is not intended to exclude any other conditions that cause the result. No language in the specification should be construed as indicating any non-claimed element as essential to the practice of the invention as claimed.
Claims
1. A computer-implemented method, include: receiving training data comprising input data and a ground truth output, wherein the input data has a first distribution; applying at least one augmentation to the input data to produce augmented input data, the augmented input data having a second distribution, wherein an augmentation operator corresponding to a transformation from the first distribution to the second distribution is reversible and specifies the at least one augmentation; Processing the enhanced input data according to the parameters by the neural network model to generate output data; as well as The parameters are adjusted to reduce differences between the output data and the ground truth output.
2. The computer-implemented method of claim 1, wherein the first distribution is the only distribution for which the enhancement operator transforms the first distribution into an enhanced distribution that matches the second distribution.
3. A computer-implemented method according to claim 1, wherein the input data includes a first subset of generated data and a second subset of real data, the output data includes a value indicating a first state or a second state, and the parameters are adjusted so that a first portion of the output data generated for the first subset more closely matches the first state, and a second portion of the output data generated for the second subset more closely matches the second state. 4 . The computer-implemented method of claim 1 , wherein the input data comprises an image and the at least one augmentation is disabled for at least one image in the training data.
5. The computer-implemented method of claim 1 , wherein the application further include: Application of the at least one enhancement to a portion of the input data is randomly disabled based on a value.
6. The computer implemented method of claim 5, dynamically adjusting the value during repeated application and processing.
7. The computer-implemented method of claim 6, wherein the value is increased or decreased based on at least a portion of the output data.
8. The computer-implemented method of claim 6, wherein at least a portion of the output data is compared to a reference to produce a result, and the value is adjusted based on the result.
9. The computer-implemented method of claim 1, wherein the at least one enhancement is differentiable.
10. The computer-implemented method of claim 1, wherein the at least one enhancement is implemented as a sequence of different enhancements.
11. The computer-implemented method of claim 1 , wherein the input data comprises a first subset of generated data and a second subset of real data, and the first subset is produced by a generator neural network model based on a second parameter.
12. The computer-implemented method of claim 11 , further comprising: include: After adjusting the parameter, the second parameter is adjusted so that the distributions of the first subset and the second subset more closely match.
13. The computer-implemented method of claim 1, wherein the steps of applying, processing, and adjusting are performed within a cloud computing environment.
14. The computer-implemented method of claim 1, wherein the steps of applying, processing, and adjusting are performed on a server or in a data center, and at least one of the output data and the parameters is streamed to a user device.
15. The computer-implemented method of claim 1, wherein the neural network model is used to train, test, or certify another neural network model employed in a machine, robot, or autonomous vehicle.
16. The computer-implemented method of claim 1, wherein the steps of applying, processing, and adjusting are performed on a virtual machine that includes a portion of a graphics processing unit.
17. A system, include: The processor is configured as: receiving training data comprising input data and a ground truth output, wherein the input data has a first distribution; applying at least one augmentation to the input data to produce augmented input data, the augmented input data having a second distribution, wherein an augmentation operator corresponding to a transformation from the first distribution to the second distribution is reversible and specifies the at least one augmentation; Processing the enhanced input data according to the parameters by the neural network model to generate output data; as well as The parameters are adjusted to reduce differences between the output data and the ground truth output.
18. The system of claim 17, wherein the first distribution is the only distribution for which applying the at least one enhancement to the first distribution results in an enhanced distribution that matches the second distribution.
19. A non-transitory computer readable medium storing computer instructions which, when executed by one or more processors, cause the one or more processors to perform the following steps: receiving training data comprising input data and a ground truth output, wherein the input data has a first distribution; applying at least one augmentation to the input data to produce augmented input data, the augmented input data having a second distribution, wherein an augmentation operator corresponding to a transformation from the first distribution to the second distribution is reversible and specifies the at least one augmentation; Processing the enhanced input data according to the parameters by the neural network model to generate output data; as well as The parameters are adjusted to reduce differences between the output data and the ground truth output.
20. A computer-implemented method, include: receiving training data comprising input data and a ground truth output, wherein the input data has a first distribution; identifying a reversible enhancement operator corresponding to a transformation from the first distribution to a second distribution; selecting at least one enhancement specified by the enhancement operator; enhancing the input data using the at least one enhancement to produce enhanced input data, the enhanced input data having a second distribution; Processing the enhanced input data according to the parameters by the neural network model to generate output data; as well as The parameters are adjusted to reduce differences between the output data and the ground truth output.
