US20210117802A1 - Training a Neural Network Using Small Training Datasets - Google Patents

Training a Neural Network Using Small Training Datasets Download PDF

Info

Publication number
US20210117802A1
US20210117802A1 US17/115,116 US202017115116A US2021117802A1 US 20210117802 A1 US20210117802 A1 US 20210117802A1 US 202017115116 A US202017115116 A US 202017115116A US 2021117802 A1 US2021117802 A1 US 2021117802A1
Authority
US
United States
Prior art keywords
training
neural network
nodes
sample
samples
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US17/115,116
Inventor
Christopher T. Nguyen
Binh Han
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Arimo LLC
Original Assignee
Arimo LLC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Arimo LLC filed Critical Arimo LLC
Priority to US17/115,116 priority Critical patent/US20210117802A1/en
Assigned to Arimo, LLC reassignment Arimo, LLC ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: Arimo, Inc.
Assigned to Arimo, Inc. reassignment Arimo, Inc. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: HAN, Binh, NGUYEN, CHRISTOPHER T.
Publication of US20210117802A1 publication Critical patent/US20210117802A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/082Learning methods modifying the architecture, e.g. adding, deleting or silencing nodes or connections
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/088Non-supervised learning, e.g. competitive learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks

Definitions

  • the disclosure relates to training of neural networks in general and more specifically to training neural networks using small training datasets.
  • Neural networks are used for performing complex tasks, for example, classification tasks in natural language processing, computer vision, speech recognition, bioinformatics, recognizing patterns in images such as skin diseases, and so on.
  • the quality of result of a neural network depends on the quality of training of the neural network.
  • Training such neural networks requires labelling of large amount of training data for identifying different classes of data, e.g. positive and negative examples.
  • training of a neural network may require millions of labelled data points. Labelling such large amount of data points can be expensive and time consuming. Labelling of training data for neural networks that perform complex tasks such as recognizing skin diseases requires input from domain experts and can be expensive. Therefore, conventional techniques for training neural networks can be prohibitively expensive.
  • Embodiments perform training of neural networks using small training datasets.
  • the neural network comprises a plurality of layers of nodes that include one or more hidden layers.
  • the neural network is trained using a first training dataset.
  • the neural network is executed to process samples from an input dataset.
  • a vector representation of each sample processed by the neural network is obtained from a particular hidden layer of nodes.
  • a subset of samples from the input dataset is obtained based on distances between vectors representing the samples.
  • the samples of the subset are provided as a second training dataset for retraining the neural network. This process may be repeated.
  • the subset of the samples is determined by performing the following steps.
  • the samples of the input dataset are clustered to generate a plurality of clusters.
  • the clustering is based on distances between samples of the input dataset determined based on vectors representing the samples.
  • Each sample is associated with a cluster.
  • a score indicative of similarity of the sample with its cluster is determined.
  • a subset of samples is determined by excluding samples having a score indicating high similarity of the samples to the cluster associated with the sample.
  • Each sample of the subset is associated with a label representing an expected result that should be output by the neural network.
  • the labelled samples are provided as training dataset for the neural network.
  • the steps of training the neural network may be repeated until an aggregate measure of difference between the results output by the neural network and expected results is below a threshold value.
  • the neural network represents a deep learning model, for example, a deep learning model for generating description of input images.
  • the particular hidden layer is the last hidden layer of the neural network that provides input to an output layer of the neural network.
  • FIG. 1 shows the overall system environment for training and executing neural networks, in accordance with an embodiment of the invention.
  • FIG. 2 shows an example neural network, in accordance with an embodiment.
  • FIG. 3 shows the system architecture of a deep learning module for training neural networks, in accordance with an embodiment.
  • FIG. 4 illustrates a process for training neural networks, according to an embodiment of the invention.
  • FIG. 5 illustrates a process of determining a set of samples for training the neural network, according to an embodiment of the invention.
  • FIG. 6 shows an example data obtained using a neural network trained using the process of FIG. 4 , according to an embodiment of the invention.
  • FIG. 7 is a high-level block diagram illustrating an example of a computer system, in accordance with an embodiment.
  • FIG. 1 shows the overall system environment for training and executing neural networks, in accordance with an embodiment of the invention.
  • the overall system environment includes one or more computer systems 150 , a network 110 and client devices 130 .
  • Other embodiments can use more or less or different systems than those illustrated in FIG. 1 .
  • Functions of various modules and systems described herein can be implemented by other modules and/or systems than those described herein.
  • FIG. 1 and the other figures use like reference numerals to identify like elements.
  • the computer system 150 a includes a deep learning module 120 that performs training of neural networks and also allows users to execute the neural network for processing data. Further details of the deep learning module 120 are illustrated in FIG. 3 .
  • the computer system 150 b includes a data store 125 that stores data processed by the deep learning module 120 .
  • the data store 125 may store images that are used for training of the neural network and also input data for processing using the neural network.
  • the client devices 130 are used by users to interact with the computer system 150 .
  • the users of the client devices 130 include experts that perform labeling of data points, system administrators that perform various administrative tasks associated with the neural networks or other software executing on computer system 150 .
  • the client device 130 executes a client application that allows users to interact with the big data analysis system 100 .
  • the client application executing on the client device 130 may be an internet browser that interacts with web servers executing on computer systems 150 .
  • a computing device can be a conventional computer system executing, for example, a MicrosoftTM WindowsTM-compatible operating system (OS), AppleTM OS X, and/or a Linux distribution.
  • a computing device can also be a client device having computer functionality, such as a personal digital assistant (PDA), mobile telephone, video game system, etc.
  • PDA personal digital assistant
  • the interactions between the client devices 130 and the big data analysis system 100 are typically performed via a network 150 , for example, via the internet.
  • the interactions between the big data analysis system 100 and the computer systems 120 of the enterprise 110 are also typically performed via a network 150 .
  • the network uses standard communications technologies and/or protocols.
  • the various entities interacting with each other, for example, the computer systems 150 and the client devices 130 may use custom and/or dedicated data communications technologies instead of, or in addition to, the ones described above.
  • the network can also include links to other networks such as the Internet.
  • FIG. 2 shows an example neural network, in accordance with an embodiment.
  • nodes are connected together to form a network.
  • the nodes may be grouped together in various hierarchy levels.
  • the nodes may represent input, intermediate, and output data.
  • a node characteristic may represent data such as a pixel and other data processed using the neural network.
  • the node characteristics values may be any values or parameters associated with a node of the neural network.
  • Each node has an input and an output.
  • Each node of the neural network is associated with a set of instructions corresponding to the computation performed by the node.
  • the set of instructions corresponding to the nodes of the neural network may be executed by one or more computer processors.
  • the neural network 200 may also be referred to as a deep neural network.
  • Each connection between the nodes may be represented by a weight (e.g., numerical parameter determined in a training/learning process).
  • the connection between two nodes is a network characteristic.
  • the weight of the connection may represent the strength of the connection.
  • a node of one level may only connect to one or more nodes in an adjacent hierarchy grouping level.
  • network characteristics include the weights of the connection between nodes of the neural network.
  • the network characteristics may be any values or parameters associated with connections of nodes of the neural network.
  • the neural network 200 comprises multiple layers including L 1 , L 2 , L 3 , L 4 , and L 5 . Although only five levels of nodes have been shown, additional or fewer levels may exist in other embodiments. Other embodiments may have more or fewer layers. Each layer has one or more nodes.
  • layer L 1 has nodes N 11 , N 12 , N 13 , N 14 , N 15 , and N 16 ;
  • layer L 2 has nodes N 21 , N 22 , N 23 , and N 24 ;
  • layer L 3 has nodes N 31 , N 32 , N 33 , and N 34 ;
  • layer L 4 has nodes N 41 , N 42 , and N 43 ;
  • layer L 5 has nodes N 51 and N 52 .
  • the first layer, shown as layer L 1 of the neural network 200 is the input layer and the last layer, shown as layer L 5 is the output layer.
  • the remaining layers are hidden layers, for example, layer L 2 , L 3 , and L 4 .
  • the nodes may be organized as input nodes, hidden nodes, and output nodes. Accordingly, nodes of the input layer are input nodes, nodes of the output layer are output nodes, and nodes of the hidden layers are hidden nodes. Nodes of a layer may provide input to another layer and may receive input from another layer. Nodes of each hidden layer are associated with two layers, a previous layer and a next layer.
  • the hidden layer receives the output of the previous layer as input and provides the output generated by the hidden layer as input to the next layer. For example, nodes of hidden layer L 3 receive input from the previous layer L 2 and provide input to the next layer L 4 .
  • the neural network 200 implements a deep learning model.
  • the neural network 200 may represent an autoencoder that is configured to receive an input and regenerate the input as the output of the neural network.
  • the neural network 200 may receive an image as input and regenerate the image as the output of the neural network.
  • the image generated as an output of the neural network may represent an approximation of the input that does not have an exact match with the input image.
  • a hidden layer of the neural network 200 generates a vector representation of the input image, also referred to as an embedding.
  • the vector representation of the image captures features of the image that allow the neural network 200 to regenerate the image.
  • FIG. 3 shows the system architecture of a deep learning module for training neural networks, in accordance with an embodiment.
  • the deep learning module 120 comprises the neural network 200 , an embedding selection module 310 , a clustering module 320 , a sample scoring module 330 , a sample selection module 340 , a labelling module 350 , a training data store 360 , and a training module 370 .
  • the deep learning module 120 may include additional or less modules than those shown in FIG. 2 .
  • specific functionality may be implemented by modules other than those described herein.
  • various components illustrated in FIG. 3 may be executed by different computer systems 150 .
  • the neural network 200 may be executed by one or more processors different from the processors that execute the clustering module 320 or the labelling module 350 .
  • the training data store 360 stores the training dataset for training the neural network 200 .
  • the training dataset comprises labelled samples of data processed by the neural network 200 .
  • the labels assigned to each sample of data represent the expected output corresponding to the sample data.
  • the training module 370 trains the neural network 200 .
  • the training module 370 trains the neural network by comparing the result of executing the neural network 200 for a sample input data with the expected label associated with the sample input data to determine a measure of error in the generated result.
  • the errors observed in the generated results of various sample input data values are fed back into the neural network 200 to adjust the various weights associated with the nodes and the connections of the neural network. This process is repeated iteratively until an aggregate metric based on the error is determined to be below certain threshold value.
  • the training module 370 repeats the process of training the neural network 200 through multiple iterations.
  • the neural network 200 During each iteration of training, the neural network 200 generates vector representation called embeddings representing the sample input data at a particular layer. An embedding is represented as a vector having one or more dimensions.
  • the embedding selection module 310 selects embeddings from a hidden layer of the neural network 200 for identifying training dataset for a next iteration of training of the neural network. In an embodiment, embedding selection module 310 selects embeddings from the last hidden layer of the neural network 200 that provides input to the output layer of the neural network 200 . The embedding selection module 310 provides the selected embeddings as input to the clustering module 320 .
  • the system receives a dataset in which most of the samples are unlabeled.
  • the neural network is trained on only the labeled samples from the original sample dataset.
  • the trained neural network runs a forward pass on the entire dataset to generate embeddings representing sample data at a particular layer.
  • the system performs clustering on these embeddings to identify which data samples are needed to be labeled. These data samples are then labeled, and are added to the labeled sample set, which is provided as input data for the next training iteration.
  • the clustering module 320 receives a set of embeddings from the embedding selection module 310 . Each embedding represents a sample that was provided as input during a particular iteration to the neural network 200 .
  • the clustering module 320 performs clustering of the received set of embeddings and generates a set of clusters, each cluster comprising one or more embeddings.
  • the clustering module 320 uses a distance metric that represents a distance between any two embeddings and identifies clusters of embeddings that represent embeddings that are close to each other according to the distance metric.
  • the clustering module 320 may use a clustering technique, for example, k-means clustering, distribution-based clustering, hierarchical clustering, and so on.
  • the sample scoring module 330 determines scores for the samples received by the embedded selection module.
  • the scores determine by the sample scoring module 330 indicate a degree of match between the sample and the cluster to which the sample is assigned. Accordingly, the score measures how similar a sample is to the cluster to which the sample is assigned compared to other clusters. For example, high score for a sample indicates that the sample is very similar to the cluster and a low score indicates that the sample is not very similar to the cluster to which the sample is assigned compared to other clusters.
  • the sample scoring module 330 determines D internal , an aggregate distance of the sample compared to other samples of the cluster to which the sample is assigned and D external , an aggregate distance between the sample and other clusters or samples assigned to other clusters.
  • the sample scoring module 330 determines the score measuring the similarity of the sample to the cluster to which the sample is assigned based on the values of D internal and D external .
  • the sample scoring module 330 determines a silhouette score for the samples.
  • the sample selection module 340 selects a subset of samples from the samples provided by the embedding selection module 310 .
  • the sample selection module 340 selects the samples based on the scores determined for the samples.
  • the sample selection module 340 selects samples that are determined to have low similarity to the clusters to which the samples are assigned. Accordingly, the sample selection module 340 excludes samples that are determined to have high similarity to the clusters to which they are assigned.
  • the sample selection module 340 ranks the samples based on their scores. If a high value of score indicates low similarity of the sample to its cluster, the sample selection module 340 selects a subset of high ranking samples. Accordingly, if a low value of the score indicates low similarity of the sample to its cluster, the sample selection module 340 selects a subset of low ranking samples.
  • the sample selection module 340 provides the selected samples to the labeling module 350 .
  • the labeling module 350 determines labels of the samples that are selected by the sample selection module 340 .
  • the labeling module 350 provides the received samples to users via a user interface.
  • the labeling module 350 receives the labels for the selected samples from the users via the user interface.
  • the task of labeling may be divided among users by providing different samples to different users for labeling. Since the process of selecting a subset of samples in accordance with the embodiments disclosed allows the neural network to be trained by significantly fewer number of samples compared to conventional techniques for training neural networks, the amount of effort required for labeling the samples is much smaller than the amount of effort required for labeling samples using conventional techniques.
  • the labeling module 350 stores the labeled set of samples in the training data store 360 .
  • the deep learning module 120 performs the training of the neural network 200 repeatedly.
  • the sample selection module selects a subset of the embeddings corresponding to the input training dataset processed by the neural network 200 .
  • the sample selection module selects more samples which need to be labeled the most.
  • the number of samples in each iteration may be increased compared to the previous iteration.
  • the size of the subset labelled is significantly less than the number of samples labelled by conventional techniques, for example, techniques that label the entire dataset.
  • FIGS. 4 and 5 The overall process for training a neural network using small training data size is illustrated using FIGS. 4 and 5 .
  • the steps illustrated in the process may be performed in an order different from that indicated in FIGS. 4 and 5 .
  • the steps may be executed by modules different from those indicated herein.
  • FIG. 4 illustrates the overall process for training neural networks, according to an embodiment of the invention.
  • the deep learning module 120 performs the following steps repeatedly.
  • the neural network is repeatedly trained using a training dataset determined for that iteration.
  • Each iteration identifies a set of samples for use as a training dataset for the next iteration.
  • the training module 370 trains 410 the neural network 200 using a training dataset retrieved from the training data store 360 .
  • the training dataset comprises samples of input data with the expected results for each sample.
  • a neural network for labelling images includes samples with labels identifying labels for the input images.
  • the deep learning module 120 determines 420 an input dataset for processing using the neural network 200 .
  • the input dataset may be the entire training dataset used for training the neural network 200 or a subset of the training dataset or may include other samples.
  • the deep learning module 120 executes 420 the neural network 200 to process samples of the input dataset.
  • the embedding selection module 310 receives 440 embeddings from a hidden layer of the neural network 200 .
  • Each embedding comprises a vector representation of an input sample processed by the neural network 200 .
  • the vector representation is generated by nodes of a particular hidden layer of nodes.
  • the embedding selection module 310 may receive 440 the embeddings from the nodes that provide the input to the output layer of the neural network 200 .
  • the embedding selection module 310 receives 440 the embeddings from the last hidden layer of the neural network 200 that provides the input to the output layer of the neural network 200 .
  • the deep learning module 120 selects a subset of samples from the input dataset.
  • the subset of samples is selected based on distances between vectors representing the samples. Further details of the process for selecting the subsets are shown in FIG. 5 and described herein.
  • the deep learning module 120 stores the subset of samples in the training data store 360 as a training dataset.
  • the deep learning module 120 provides 460 the samples of the subset as a training dataset for retraining the neural network during the next iteration of the process illustrated in FIG. 5 .
  • the deep learning module 120 repeats the above iterations until the result generated by the neural network 200 provides more than a threshold level of accuracy.
  • the deep learning module 120 determines an accuracy metric based on an aggregate measure of difference between the results output by the neural network and expected results.
  • the deep learning module 120 repeats the iterations that retrain the model until the accuracy metric reaches below a threshold value.
  • FIG. 5 illustrates a process of determining a set of samples for training the neural network, according to an embodiment of the invention.
  • the clustering module 320 performs clustering of samples of the input dataset to generate a plurality of clusters.
  • the clustering module 320 associates each sample with a cluster.
  • the clustering is performed based on distances between samples of the input dataset.
  • the clustering module 320 determines the distance based on vectors generated by nodes of the hidden layer.
  • the sample scoring module 330 determines 520 for each sample of the input dataset, a score indicative of similarity of the sample with the cluster associated with the sample.
  • the sample selection module 340 determines a subset of samples from the input dataset. In an embodiment, the sample selection module 340 determines the subset by excluding samples of the input data that have a score indicating high similarity of the sample to the cluster associated with the sample. Accordingly, the sample selection module 340 includes samples of the input data in the subset if the sample has a score indicating low similarity of the sample to the cluster associated with the sample.
  • the labelling module 350 associates each sample of the subset with a label representing an expected result that should be output by the neural network for the sample.
  • the labelling module receives the associations between samples and the labels from users via a user interface.
  • the deep learning module 120 stores the labelled samples as a training dataset in the training data store 360 for training the neural network 200 for the next iteration.
  • FIG. 6 shows an example data obtained using a neural network trained using the process of FIG. 4 , according to an embodiment of the invention.
  • the example data shown in FIG. 6 is obtained using neural network configured to generate a description of an image.
  • the neural network may be used for automatic generation of descriptions of images representing products.
  • Column 610 shows images representing inputs to a deep neural network used for generating descriptions 630 , 640 , and 650 .
  • An autoencoder neural network is used for generating embeddings representing the images shown in column 610 .
  • Column 620 shows the output of the autoencoder neural network. As shown in FIG. 6 , the images regenerated by the autoencoder may not match the corresponding input images exactly.
  • the autoencoder generates a vector representation of the images that is used to determine a sample set for training the deep neural network used for generating the description of the images.
  • the description is generated using various sample sizes, for example, using a neural network trained at different iterations on the increased label sample sizes.
  • the descriptions in column 630 are generated using 100 samples
  • the descriptions in column 640 are generated using 300 samples
  • the descriptions in column 630 are generated using 500 samples.
  • the quality of description generated improves as the sample size increases. However, even the largest sample size shown is small compared to conventional techniques that may use several thousands of samples for training the neural network models.
  • FIG. 7 is a high-level block diagram illustrating an example system, in accordance with an embodiment.
  • the computer 700 includes at least one processor 702 coupled to a chipset 704 .
  • the chipset 704 includes a memory controller hub 720 and an input/output (I/O) controller hub 722 .
  • a memory 706 and a graphics adapter 712 are coupled to the memory controller hub 720 , and a display 718 is coupled to the graphics adapter 712 .
  • a storage device 708 , keyboard 710 , pointing device 714 , and network adapter 716 are coupled to the I/O controller hub 722 .
  • Other embodiments of the computer 700 have different architectures.
  • the storage device 708 is a non-transitory computer-readable storage medium such as a hard drive, compact disk read-only memory (CD-ROM), DVD, or a solid-state memory device.
  • the memory 706 holds instructions and data used by the processor 702 .
  • the pointing device 714 is a mouse, track ball, or other type of pointing device, and is used in combination with the keyboard 710 to input data into the computer system 700 .
  • the graphics adapter 712 displays images and other information on the display 718 .
  • the network adapter 716 couples the computer system 700 to one or more computer networks.
  • the computer 700 is adapted to execute computer program modules for providing functionality described herein.
  • module refers to computer program logic used to provide the specified functionality.
  • program modules are stored on the storage device 708 , loaded into the memory 706 , and executed by the processor 702 .
  • the types of computers 700 used can vary depending upon the embodiment and requirements. For example, a computer may lack displays, keyboards, and/or other devices shown in FIG. 7 .
  • any reference to “one embodiment” or “an embodiment” means that a particular element, feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment.
  • the appearances of the phrase “in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment.
  • Coupled and “connected” along with their derivatives. It should be understood that these terms are not intended as synonyms for each other. For example, some embodiments may be described using the term “connected” to indicate that two or more elements are in direct physical or electrical contact with each other. In another example, some embodiments may be described using the term “coupled” to indicate that two or more elements are in direct physical or electrical contact. The term “coupled,” however, may also mean that two or more elements are not in direct contact with each other, but yet still co-operate or interact with each other. The embodiments are not limited in this context.
  • the terms “comprises,” “comprising,” “includes,” “including,” “has,” “having” or any other variation thereof, are intended to cover a non-exclusive inclusion.
  • a process, method, article, or apparatus that comprises a list of elements is not necessarily limited to only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
  • “or” refers to an inclusive or and not to an exclusive or. For example, a condition A or B is satisfied by any one of the following: A is true (or present) and B is false (or not present), A is false (or not present) and B is true (or present), and both A and B are true (or present).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Artificial Intelligence (AREA)
  • Mathematical Physics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Biophysics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Medical Informatics (AREA)
  • Image Analysis (AREA)

Abstract

Training datasets are determined for training neural networks. An input dataset comprising a plurality of samples is provided as training dataset to the neural network. Vector representations of samples of the input dataset are obtained from a hidden layer of the neural network. The samples are clustered using the vector representation. The samples are scored based on a metric that indicates the similarity of the sample to its cluster. A subset of samples is determined by excluding samples that have high similarity with their clusters. The subset of samples is labelled and used for training the neural network.

Description

    CROSS REFERENCE TO RELATED APPLICATIONS
  • This application is a continuation of U.S. application Ser. No. 15/685,350, filed on Aug. 24, 2017, which is incorporated herein by reference in its entirety for all purposes.
  • FIELD OF INVENTION
  • The disclosure relates to training of neural networks in general and more specifically to training neural networks using small training datasets.
  • BACKGROUND
  • Neural networks are used for performing complex tasks, for example, classification tasks in natural language processing, computer vision, speech recognition, bioinformatics, recognizing patterns in images such as skin diseases, and so on. The quality of result of a neural network depends on the quality of training of the neural network. Training such neural networks requires labelling of large amount of training data for identifying different classes of data, e.g. positive and negative examples. For example, training of a neural network may require millions of labelled data points. Labelling such large amount of data points can be expensive and time consuming. Labelling of training data for neural networks that perform complex tasks such as recognizing skin diseases requires input from domain experts and can be expensive. Therefore, conventional techniques for training neural networks can be prohibitively expensive.
  • SUMMARY
  • Embodiments perform training of neural networks using small training datasets. The neural network comprises a plurality of layers of nodes that include one or more hidden layers. The neural network is trained using a first training dataset. The neural network is executed to process samples from an input dataset. A vector representation of each sample processed by the neural network is obtained from a particular hidden layer of nodes. A subset of samples from the input dataset is obtained based on distances between vectors representing the samples. The samples of the subset are provided as a second training dataset for retraining the neural network. This process may be repeated.
  • In an embodiment, the subset of the samples is determined by performing the following steps. The samples of the input dataset are clustered to generate a plurality of clusters. The clustering is based on distances between samples of the input dataset determined based on vectors representing the samples. Each sample is associated with a cluster. For each sample, a score indicative of similarity of the sample with its cluster is determined. A subset of samples is determined by excluding samples having a score indicating high similarity of the samples to the cluster associated with the sample. Each sample of the subset is associated with a label representing an expected result that should be output by the neural network. The labelled samples are provided as training dataset for the neural network.
  • The steps of training the neural network may be repeated until an aggregate measure of difference between the results output by the neural network and expected results is below a threshold value.
  • In an embodiment, the neural network represents a deep learning model, for example, a deep learning model for generating description of input images.
  • In an embodiment, the particular hidden layer is the last hidden layer of the neural network that provides input to an output layer of the neural network.
  • BRIEF DESCRIPTION OF DRAWINGS
  • The disclosed embodiments have other advantages and features which will be more readily apparent from the detailed description, the appended claims, and the accompanying figures (or drawings). A brief introduction of the figures is below.
  • FIG. 1 shows the overall system environment for training and executing neural networks, in accordance with an embodiment of the invention.
  • FIG. 2 shows an example neural network, in accordance with an embodiment.
  • FIG. 3 shows the system architecture of a deep learning module for training neural networks, in accordance with an embodiment.
  • FIG. 4 illustrates a process for training neural networks, according to an embodiment of the invention.
  • FIG. 5 illustrates a process of determining a set of samples for training the neural network, according to an embodiment of the invention.
  • FIG. 6 shows an example data obtained using a neural network trained using the process of FIG. 4, according to an embodiment of the invention.
  • FIG. 7 is a high-level block diagram illustrating an example of a computer system, in accordance with an embodiment.
  • The features and advantages described in the specification are not all inclusive and in particular, many additional features and advantages will be apparent to one of ordinary skill in the art in view of the drawings, specification, and claims. Moreover, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the disclosed subject matter.
  • DETAILED DESCRIPTION
  • FIG. 1 shows the overall system environment for training and executing neural networks, in accordance with an embodiment of the invention. The overall system environment includes one or more computer systems 150, a network 110 and client devices 130. Other embodiments can use more or less or different systems than those illustrated in FIG. 1. Functions of various modules and systems described herein can be implemented by other modules and/or systems than those described herein.
  • FIG. 1 and the other figures use like reference numerals to identify like elements. A letter after a reference numeral, such as “150 a,” indicates that the text refers specifically to the element having that particular reference numeral. A reference numeral in the text without a following letter, such as “150,” refers to any or all of the elements in the figures bearing that reference numeral (e.g. “150” in the text refers to reference numerals “150” and/or “150” in the figures).
  • The computer system 150 a includes a deep learning module 120 that performs training of neural networks and also allows users to execute the neural network for processing data. Further details of the deep learning module 120 are illustrated in FIG. 3.
  • The computer system 150 b includes a data store 125 that stores data processed by the deep learning module 120. For example, if the neural network of the computer system 150 a performs image processing, the data store 125 may store images that are used for training of the neural network and also input data for processing using the neural network.
  • The client devices 130 are used by users to interact with the computer system 150. The users of the client devices 130 include experts that perform labeling of data points, system administrators that perform various administrative tasks associated with the neural networks or other software executing on computer system 150. In an embodiment, the client device 130 executes a client application that allows users to interact with the big data analysis system 100. For example, the client application executing on the client device 130 may be an internet browser that interacts with web servers executing on computer systems 150.
  • Systems and applications shown in FIG. 1 can be executed using computing devices. A computing device can be a conventional computer system executing, for example, a Microsoft™ Windows™-compatible operating system (OS), Apple™ OS X, and/or a Linux distribution. A computing device can also be a client device having computer functionality, such as a personal digital assistant (PDA), mobile telephone, video game system, etc.
  • The interactions between the client devices 130 and the big data analysis system 100 are typically performed via a network 150, for example, via the internet. The interactions between the big data analysis system 100 and the computer systems 120 of the enterprise 110 are also typically performed via a network 150. In one embodiment, the network uses standard communications technologies and/or protocols. In another embodiment, the various entities interacting with each other, for example, the computer systems 150 and the client devices 130 may use custom and/or dedicated data communications technologies instead of, or in addition to, the ones described above. Depending upon the embodiment, the network can also include links to other networks such as the Internet.
  • FIG. 2 shows an example neural network, in accordance with an embodiment. In the neural network 200 or any artificial neural networks, nodes are connected together to form a network. The nodes may be grouped together in various hierarchy levels. The nodes may represent input, intermediate, and output data. A node characteristic may represent data such as a pixel and other data processed using the neural network. The node characteristics values may be any values or parameters associated with a node of the neural network. Each node has an input and an output. Each node of the neural network is associated with a set of instructions corresponding to the computation performed by the node. The set of instructions corresponding to the nodes of the neural network may be executed by one or more computer processors. The neural network 200 may also be referred to as a deep neural network.
  • Each connection between the nodes (e.g., network characteristics) may be represented by a weight (e.g., numerical parameter determined in a training/learning process). In some embodiments, the connection between two nodes is a network characteristic. The weight of the connection may represent the strength of the connection. In some embodiments, a node of one level may only connect to one or more nodes in an adjacent hierarchy grouping level. In some embodiments, network characteristics include the weights of the connection between nodes of the neural network. The network characteristics may be any values or parameters associated with connections of nodes of the neural network.
  • As shown in FIG. 2, the neural network 200 comprises multiple layers including L1, L2, L3, L4, and L5. Although only five levels of nodes have been shown, additional or fewer levels may exist in other embodiments. Other embodiments may have more or fewer layers. Each layer has one or more nodes. For example, layer L1 has nodes N11, N12, N13, N14, N15, and N16; layer L2 has nodes N21, N22, N23, and N24; layer L3 has nodes N31, N32, N33, and N34; layer L4 has nodes N41, N42, and N43; and layer L5 has nodes N51 and N52.
  • The first layer, shown as layer L1 of the neural network 200 is the input layer and the last layer, shown as layer L5 is the output layer. The remaining layers are hidden layers, for example, layer L2, L3, and L4. The nodes may be organized as input nodes, hidden nodes, and output nodes. Accordingly, nodes of the input layer are input nodes, nodes of the output layer are output nodes, and nodes of the hidden layers are hidden nodes. Nodes of a layer may provide input to another layer and may receive input from another layer. Nodes of each hidden layer are associated with two layers, a previous layer and a next layer. The hidden layer receives the output of the previous layer as input and provides the output generated by the hidden layer as input to the next layer. For example, nodes of hidden layer L3 receive input from the previous layer L2 and provide input to the next layer L4.
  • In an embodiment, the neural network 200 implements a deep learning model. The neural network 200 may represent an autoencoder that is configured to receive an input and regenerate the input as the output of the neural network. For example, the neural network 200 may receive an image as input and regenerate the image as the output of the neural network. The image generated as an output of the neural network may represent an approximation of the input that does not have an exact match with the input image. A hidden layer of the neural network 200 generates a vector representation of the input image, also referred to as an embedding. The vector representation of the image captures features of the image that allow the neural network 200 to regenerate the image.
  • System Architecture
  • FIG. 3 shows the system architecture of a deep learning module for training neural networks, in accordance with an embodiment. The deep learning module 120 comprises the neural network 200, an embedding selection module 310, a clustering module 320, a sample scoring module 330, a sample selection module 340, a labelling module 350, a training data store 360, and a training module 370. In other embodiments, the deep learning module 120 may include additional or less modules than those shown in FIG. 2. Furthermore, specific functionality may be implemented by modules other than those described herein. In some embodiments, various components illustrated in FIG. 3 may be executed by different computer systems 150. For example, the neural network 200 may be executed by one or more processors different from the processors that execute the clustering module 320 or the labelling module 350.
  • The training data store 360 stores the training dataset for training the neural network 200. The training dataset comprises labelled samples of data processed by the neural network 200. The labels assigned to each sample of data represent the expected output corresponding to the sample data. The training module 370 trains the neural network 200. In an embodiment, the training module 370 trains the neural network by comparing the result of executing the neural network 200 for a sample input data with the expected label associated with the sample input data to determine a measure of error in the generated result. The errors observed in the generated results of various sample input data values are fed back into the neural network 200 to adjust the various weights associated with the nodes and the connections of the neural network. This process is repeated iteratively until an aggregate metric based on the error is determined to be below certain threshold value. The training module 370 repeats the process of training the neural network 200 through multiple iterations.
  • During each iteration of training, the neural network 200 generates vector representation called embeddings representing the sample input data at a particular layer. An embedding is represented as a vector having one or more dimensions. The embedding selection module 310 selects embeddings from a hidden layer of the neural network 200 for identifying training dataset for a next iteration of training of the neural network. In an embodiment, embedding selection module 310 selects embeddings from the last hidden layer of the neural network 200 that provides input to the output layer of the neural network 200. The embedding selection module 310 provides the selected embeddings as input to the clustering module 320.
  • In an embodiment, the system receives a dataset in which most of the samples are unlabeled. In an iteration, the neural network is trained on only the labeled samples from the original sample dataset. At the end of each iteration, the trained neural network runs a forward pass on the entire dataset to generate embeddings representing sample data at a particular layer. The system performs clustering on these embeddings to identify which data samples are needed to be labeled. These data samples are then labeled, and are added to the labeled sample set, which is provided as input data for the next training iteration.
  • The clustering module 320 receives a set of embeddings from the embedding selection module 310. Each embedding represents a sample that was provided as input during a particular iteration to the neural network 200. The clustering module 320 performs clustering of the received set of embeddings and generates a set of clusters, each cluster comprising one or more embeddings. The clustering module 320 uses a distance metric that represents a distance between any two embeddings and identifies clusters of embeddings that represent embeddings that are close to each other according to the distance metric. The clustering module 320 may use a clustering technique, for example, k-means clustering, distribution-based clustering, hierarchical clustering, and so on.
  • The sample scoring module 330 determines scores for the samples received by the embedded selection module. The scores determine by the sample scoring module 330 indicate a degree of match between the sample and the cluster to which the sample is assigned. Accordingly, the score measures how similar a sample is to the cluster to which the sample is assigned compared to other clusters. For example, high score for a sample indicates that the sample is very similar to the cluster and a low score indicates that the sample is not very similar to the cluster to which the sample is assigned compared to other clusters.
  • In an embodiment, the sample scoring module 330 determines Dinternal, an aggregate distance of the sample compared to other samples of the cluster to which the sample is assigned and Dexternal, an aggregate distance between the sample and other clusters or samples assigned to other clusters. The sample scoring module 330 determines the score measuring the similarity of the sample to the cluster to which the sample is assigned based on the values of Dinternal and Dexternal. In an embodiment, the sample scoring module 330 determines a silhouette score for the samples.
  • The sample selection module 340 selects a subset of samples from the samples provided by the embedding selection module 310. The sample selection module 340 selects the samples based on the scores determined for the samples. The sample selection module 340 selects samples that are determined to have low similarity to the clusters to which the samples are assigned. Accordingly, the sample selection module 340 excludes samples that are determined to have high similarity to the clusters to which they are assigned. In an embodiment, the sample selection module 340 ranks the samples based on their scores. If a high value of score indicates low similarity of the sample to its cluster, the sample selection module 340 selects a subset of high ranking samples. Accordingly, if a low value of the score indicates low similarity of the sample to its cluster, the sample selection module 340 selects a subset of low ranking samples. The sample selection module 340 provides the selected samples to the labeling module 350.
  • The labeling module 350 determines labels of the samples that are selected by the sample selection module 340. In an embodiment, the labeling module 350 provides the received samples to users via a user interface. The labeling module 350 receives the labels for the selected samples from the users via the user interface. In an embodiment, the task of labeling may be divided among users by providing different samples to different users for labeling. Since the process of selecting a subset of samples in accordance with the embodiments disclosed allows the neural network to be trained by significantly fewer number of samples compared to conventional techniques for training neural networks, the amount of effort required for labeling the samples is much smaller than the amount of effort required for labeling samples using conventional techniques. The labeling module 350 stores the labeled set of samples in the training data store 360.
  • The deep learning module 120 performs the training of the neural network 200 repeatedly. The sample selection module selects a subset of the embeddings corresponding to the input training dataset processed by the neural network 200. The sample selection module selects more samples which need to be labeled the most. The number of samples in each iteration may be increased compared to the previous iteration. However, the size of the subset labelled is significantly less than the number of samples labelled by conventional techniques, for example, techniques that label the entire dataset.
  • Overall Process
  • The overall process for training a neural network using small training data size is illustrated using FIGS. 4 and 5. The steps illustrated in the process may be performed in an order different from that indicated in FIGS. 4 and 5. Furthermore, the steps may be executed by modules different from those indicated herein.
  • FIG. 4 illustrates the overall process for training neural networks, according to an embodiment of the invention. The deep learning module 120 performs the following steps repeatedly. The neural network is repeatedly trained using a training dataset determined for that iteration. Each iteration identifies a set of samples for use as a training dataset for the next iteration.
  • The training module 370 trains 410 the neural network 200 using a training dataset retrieved from the training data store 360. The training dataset comprises samples of input data with the expected results for each sample. For example, a neural network for labelling images includes samples with labels identifying labels for the input images.
  • The deep learning module 120 determines 420 an input dataset for processing using the neural network 200. The input dataset may be the entire training dataset used for training the neural network 200 or a subset of the training dataset or may include other samples. The deep learning module 120 executes 420 the neural network 200 to process samples of the input dataset.
  • The embedding selection module 310 receives 440 embeddings from a hidden layer of the neural network 200. Each embedding comprises a vector representation of an input sample processed by the neural network 200. The vector representation is generated by nodes of a particular hidden layer of nodes. The embedding selection module 310 may receive 440 the embeddings from the nodes that provide the input to the output layer of the neural network 200. In an embodiment, the embedding selection module 310 receives 440 the embeddings from the last hidden layer of the neural network 200 that provides the input to the output layer of the neural network 200.
  • The deep learning module 120 selects a subset of samples from the input dataset. The subset of samples is selected based on distances between vectors representing the samples. Further details of the process for selecting the subsets are shown in FIG. 5 and described herein. The deep learning module 120 stores the subset of samples in the training data store 360 as a training dataset. The deep learning module 120 provides 460 the samples of the subset as a training dataset for retraining the neural network during the next iteration of the process illustrated in FIG. 5.
  • The deep learning module 120 repeats the above iterations until the result generated by the neural network 200 provides more than a threshold level of accuracy. In an embodiment, the deep learning module 120 determines an accuracy metric based on an aggregate measure of difference between the results output by the neural network and expected results. The deep learning module 120 repeats the iterations that retrain the model until the accuracy metric reaches below a threshold value.
  • FIG. 5 illustrates a process of determining a set of samples for training the neural network, according to an embodiment of the invention.
  • The clustering module 320 performs clustering of samples of the input dataset to generate a plurality of clusters. The clustering module 320 associates each sample with a cluster. The clustering is performed based on distances between samples of the input dataset. The clustering module 320 determines the distance based on vectors generated by nodes of the hidden layer.
  • The sample scoring module 330 determines 520 for each sample of the input dataset, a score indicative of similarity of the sample with the cluster associated with the sample. The sample selection module 340 determines a subset of samples from the input dataset. In an embodiment, the sample selection module 340 determines the subset by excluding samples of the input data that have a score indicating high similarity of the sample to the cluster associated with the sample. Accordingly, the sample selection module 340 includes samples of the input data in the subset if the sample has a score indicating low similarity of the sample to the cluster associated with the sample.
  • The labelling module 350 associates each sample of the subset with a label representing an expected result that should be output by the neural network for the sample. In an embodiment, the labelling module receives the associations between samples and the labels from users via a user interface. The deep learning module 120 stores the labelled samples as a training dataset in the training data store 360 for training the neural network 200 for the next iteration.
  • FIG. 6 shows an example data obtained using a neural network trained using the process of FIG. 4, according to an embodiment of the invention. The example data shown in FIG. 6 is obtained using neural network configured to generate a description of an image. For example, the neural network may be used for automatic generation of descriptions of images representing products. Column 610 shows images representing inputs to a deep neural network used for generating descriptions 630, 640, and 650. An autoencoder neural network is used for generating embeddings representing the images shown in column 610. Column 620 shows the output of the autoencoder neural network. As shown in FIG. 6, the images regenerated by the autoencoder may not match the corresponding input images exactly. However, the autoencoder generates a vector representation of the images that is used to determine a sample set for training the deep neural network used for generating the description of the images. The description is generated using various sample sizes, for example, using a neural network trained at different iterations on the increased label sample sizes. As shown in FIG. 6, the descriptions in column 630 are generated using 100 samples, the descriptions in column 640 are generated using 300 samples, the descriptions in column 630 are generated using 500 samples. As shown in FIG. 6, the quality of description generated improves as the sample size increases. However, even the largest sample size shown is small compared to conventional techniques that may use several thousands of samples for training the neural network models.
  • Computer Architecture
  • FIG. 7 is a high-level block diagram illustrating an example system, in accordance with an embodiment. The computer 700 includes at least one processor 702 coupled to a chipset 704. The chipset 704 includes a memory controller hub 720 and an input/output (I/O) controller hub 722. A memory 706 and a graphics adapter 712 are coupled to the memory controller hub 720, and a display 718 is coupled to the graphics adapter 712. A storage device 708, keyboard 710, pointing device 714, and network adapter 716 are coupled to the I/O controller hub 722. Other embodiments of the computer 700 have different architectures.
  • The storage device 708 is a non-transitory computer-readable storage medium such as a hard drive, compact disk read-only memory (CD-ROM), DVD, or a solid-state memory device. The memory 706 holds instructions and data used by the processor 702. The pointing device 714 is a mouse, track ball, or other type of pointing device, and is used in combination with the keyboard 710 to input data into the computer system 700. The graphics adapter 712 displays images and other information on the display 718. The network adapter 716 couples the computer system 700 to one or more computer networks.
  • The computer 700 is adapted to execute computer program modules for providing functionality described herein. As used herein, the term “module” refers to computer program logic used to provide the specified functionality. Thus, a module can be implemented in hardware, firmware, and/or software. In one embodiment, program modules are stored on the storage device 708, loaded into the memory 706, and executed by the processor 702. The types of computers 700 used can vary depending upon the embodiment and requirements. For example, a computer may lack displays, keyboards, and/or other devices shown in FIG. 7.
  • Alternative Embodiments
  • It is to be understood that the Figures and descriptions of the present invention have been simplified to illustrate elements that are relevant for a clear understanding of the present invention, while eliminating, for the purpose of clarity, many other elements found in a typical distributed system. Those of ordinary skill in the art may recognize that other elements and/or steps are desirable and/or required in implementing the embodiments. However, because such elements and steps are well known in the art, and because they do not facilitate a better understanding of the embodiments, a discussion of such elements and steps is not provided herein. The disclosure herein is directed to all such variations and modifications to such elements and methods known to those skilled in the art.
  • Some portions of above description describe the embodiments in terms of algorithms and symbolic representations of operations on information. These algorithmic descriptions and representations are commonly used by those skilled in the data processing arts to convey the substance of their work effectively to others skilled in the art. These operations, while described functionally, computationally, or logically, are understood to be implemented by computer programs or equivalent electrical circuits, microcode, or the like. Furthermore, it has also proven convenient at times, to refer to these arrangements of operations as modules, without loss of generality. The described operations and their associated modules may be embodied in software, firmware, hardware, or any combinations thereof.
  • As used herein any reference to “one embodiment” or “an embodiment” means that a particular element, feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. The appearances of the phrase “in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment.
  • Some embodiments may be described using the expression “coupled” and “connected” along with their derivatives. It should be understood that these terms are not intended as synonyms for each other. For example, some embodiments may be described using the term “connected” to indicate that two or more elements are in direct physical or electrical contact with each other. In another example, some embodiments may be described using the term “coupled” to indicate that two or more elements are in direct physical or electrical contact. The term “coupled,” however, may also mean that two or more elements are not in direct contact with each other, but yet still co-operate or interact with each other. The embodiments are not limited in this context.
  • As used herein, the terms “comprises,” “comprising,” “includes,” “including,” “has,” “having” or any other variation thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, article, or apparatus that comprises a list of elements is not necessarily limited to only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Further, unless expressly stated to the contrary, “or” refers to an inclusive or and not to an exclusive or. For example, a condition A or B is satisfied by any one of the following: A is true (or present) and B is false (or not present), A is false (or not present) and B is true (or present), and both A and B are true (or present).
  • In addition, use of the “a” or “an” are employed to describe elements and components of the embodiments herein. This is done merely for convenience and to give a general sense of the invention. This description should be read to include one or at least one and the singular also includes the plural unless it is obvious that it is meant otherwise.
  • Upon reading this disclosure, those of skill in the art will appreciate still additional alternative structural and functional designs for a system and a process for displaying charts using a distortion region through the disclosed principles herein. Thus, while particular embodiments and applications have been illustrated and described, it is to be understood that the disclosed embodiments are not limited to the precise construction and components disclosed herein. Various modifications, changes and variations, which will be apparent to those skilled in the art, may be made in the arrangement, operation and details of the method and apparatus disclosed herein without departing from the spirit and scope defined in the appended claims.

Claims (20)

What is claimed is:
1. A computer-implemented method comprising:
receiving a target sample containing one or more features; and
inputting the target sample to a neural network to determine at least one of the features, the neural network trained by a training process, the neural network comprising a plurality of layers of nodes, the plurality of layers of nodes including a hidden layer of nodes, the training process comprising:
receiving a first training dataset comprising a plurality of training samples;
executing the neural network to process the training samples;
for each training sample, receiving a vector representing the training sample, the vector generated by nodes of the hidden layer of nodes;
selecting a subset of training samples based on distances between vectors representing the training samples;
for each selected training sample, associating the selected training sample with a label representing an expected result that should be output by the neural network for the selected training sample; and
providing the selected training samples of the subset as a second training dataset for retraining the neural network.
2. The method of claim 1, wherein selecting the subset of training samples comprises:
clustering the training samples to generate a plurality of clusters, the clustering associating each training sample with a cluster, the clustering based on distances between the vectors representing the training samples;
for each training sample, determining a score indicative of similarity of the training sample with the cluster associated with the training sample; and
excluding one or more training samples based on the scores to determine the subset of training samples.
3. The method of claim 2, wherein the one or more training samples are excluded responsive to each of the one or more training samples having a score indicating high similarity of the training sample to the cluster associated with the training sample.
4. The method of claim 1, wherein the plurality of layers of nodes represents a sequence of layers of nodes comprising a plurality of hidden layers, wherein the hidden layer of claim 1 is the last hidden layer from the plurality of hidden layers.
5. The method of claim 1, wherein the neural network further comprises an output layer of nodes for outputting a result of executing the neural network, wherein the hidden layer represents nodes that provide inputs to the output layer of nodes.
6. The method of claim 1, wherein the training process further comprises:
receiving a second plurality of training samples;
executing the neural network to process the second plurality of training samples;
for each of the training sample in the second plurality of training samples, receiving a second vector representing the training sample, the second vector generated by the nodes of the hidden layer of nodes;
selecting a second subset of training samples from the second plurality of training samples based on distances between the vectors representing the training samples in the second plurality of training samples; and
providing the second subset as a third training dataset for retraining the neural network.
7. The method of claim 6, wherein the training process is repeatedly performed until an aggregate measure of difference between a result outputted by the neural network and the expected result is below a threshold value.
8. The method of claim 1, wherein the neural network represents a deep learning model.
9. The method of claim 1, wherein the target sample is a natural language description of an input image.
10. The method of claim 1, wherein the neural network is an autoencoder configured to receive an input and regenerate the input as output of the neural network.
11. A non-transitory computer readable medium configured to store computer code comprising instructions, the instructions, when executed by one or more processors, cause the one or more processors to perform steps comprising:
receiving a target sample containing one or more features; and
inputting the target sample to a neural network to determine at least one of the features, the neural network trained by a training process, the neural network comprising a plurality of layers of nodes, the plurality of layers of nodes including a hidden layer of nodes, the training process comprising:
receiving a first training dataset comprising a plurality of training samples;
executing the neural network to process the training samples;
for each training sample, receiving a vector representing the training sample, the vector generated by nodes of the hidden layer of nodes;
selecting a subset of training samples based on distances between vectors representing the training samples;
for each selected training sample, associating the selected training sample with a label representing an expected result that should be output by the neural network for the selected training sample; and
providing the selected training samples of the subset as a second training dataset for retraining the neural network.
12. The non-transitory computer readable medium of claim 1, wherein selecting the subset of training samples comprises:
clustering the training samples to generate a plurality of clusters, the clustering associating each training sample with a cluster, the clustering based on distances between the vectors representing the training samples;
for each training sample, determining a score indicative of similarity of the training sample with the cluster associated with the training sample; and
excluding one or more training samples based on the scores to determine the subset of training samples.
13. The non-transitory computer readable medium of claim 12, wherein the one or more training samples are excluded responsive to each of the one or more training samples having a score indicating high similarity of the training sample to the cluster associated with the training sample.
14. The non-transitory computer readable medium of claim 1, wherein the plurality of layers of nodes represents a sequence of layers of nodes comprising a plurality of hidden layers, wherein the hidden layer of claim 1 is the last hidden layer from the plurality of hidden layers.
15. The non-transitory computer readable medium of claim 1, wherein the neural network further comprises an output layer of nodes for outputting a result of executing the neural network, wherein the hidden layer represents nodes that provide inputs to the output layer of nodes.
16. The non-transitory computer readable medium of claim 1, wherein the training process further comprises:
receiving a second plurality of training samples;
executing the neural network to process the second plurality of training samples;
for each of the training sample in the second plurality of training samples, receiving a second vector representing the training sample, the second vector generated by the nodes of the hidden layer of nodes;
selecting a second subset of training samples from the second plurality of training samples based on distances between the vectors representing the training samples in the second plurality of training samples; and
providing the second subset as a third training dataset for retraining the neural network.
17. The non-transitory computer readable medium of claim 16, wherein the training process is repeatedly performed until an aggregate measure of difference between a result outputted by the neural network and the expected result is below a threshold value.
18. The non-transitory computer readable medium of claim 1, wherein the neural network represents a deep learning model.
19. The non-transitory computer readable medium of claim 1, wherein the target sample is a natural language description of an input image.
20. The non-transitory computer readable medium of claim 1, wherein the neural network is an autoencoder configured to receive an input and regenerate the input as output of the neural network.
US17/115,116 2017-08-24 2020-12-08 Training a Neural Network Using Small Training Datasets Abandoned US20210117802A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/115,116 US20210117802A1 (en) 2017-08-24 2020-12-08 Training a Neural Network Using Small Training Datasets

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US15/685,350 US10867246B1 (en) 2017-08-24 2017-08-24 Training a neural network using small training datasets
US17/115,116 US20210117802A1 (en) 2017-08-24 2020-12-08 Training a Neural Network Using Small Training Datasets

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US15/685,350 Continuation US10867246B1 (en) 2017-08-24 2017-08-24 Training a neural network using small training datasets

Publications (1)

Publication Number Publication Date
US20210117802A1 true US20210117802A1 (en) 2021-04-22

Family

ID=73747006

Family Applications (2)

Application Number Title Priority Date Filing Date
US15/685,350 Active 2039-09-07 US10867246B1 (en) 2017-08-24 2017-08-24 Training a neural network using small training datasets
US17/115,116 Abandoned US20210117802A1 (en) 2017-08-24 2020-12-08 Training a Neural Network Using Small Training Datasets

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US15/685,350 Active 2039-09-07 US10867246B1 (en) 2017-08-24 2017-08-24 Training a neural network using small training datasets

Country Status (1)

Country Link
US (2) US10867246B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220044033A1 (en) * 2020-08-05 2022-02-10 Dalong Li Multiple resolution deep neural networks for vehicle autonomous driving systems
US11500910B2 (en) * 2018-03-21 2022-11-15 International Business Machines Corporation Similarity based negative sampling analysis
US20230153380A1 (en) * 2021-11-16 2023-05-18 Huawei Technologies Co., Ltd. Meta few-shot class incremental learning

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019071370A1 (en) * 2017-10-09 2019-04-18 Intel Corporation Feature fusion for multi-modal machine learning analysis
CN117597697A (en) * 2021-07-07 2024-02-23 三菱电机株式会社 Data processing apparatus and data processing method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170032246A1 (en) * 2015-07-31 2017-02-02 Canon Kabushiki Kaisha Method for training an artificial neural network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9043326B2 (en) * 2011-01-28 2015-05-26 The Curators Of The University Of Missouri Methods and systems for biclustering algorithm
US11836746B2 (en) * 2014-12-02 2023-12-05 Fair Isaac Corporation Auto-encoder enhanced self-diagnostic components for model monitoring
US10474950B2 (en) * 2015-06-29 2019-11-12 Microsoft Technology Licensing, Llc Training and operation of computational models

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170032246A1 (en) * 2015-07-31 2017-02-02 Canon Kabushiki Kaisha Method for training an artificial neural network

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11500910B2 (en) * 2018-03-21 2022-11-15 International Business Machines Corporation Similarity based negative sampling analysis
US20220044033A1 (en) * 2020-08-05 2022-02-10 Dalong Li Multiple resolution deep neural networks for vehicle autonomous driving systems
US11594040B2 (en) * 2020-08-05 2023-02-28 Fca Us Llc Multiple resolution deep neural networks for vehicle autonomous driving systems
US20230153380A1 (en) * 2021-11-16 2023-05-18 Huawei Technologies Co., Ltd. Meta few-shot class incremental learning
US11983240B2 (en) * 2021-11-16 2024-05-14 Huawei Technologies Co., Ltd. Meta few-shot class incremental learning

Also Published As

Publication number Publication date
US10867246B1 (en) 2020-12-15

Similar Documents

Publication Publication Date Title
US20210117802A1 (en) Training a Neural Network Using Small Training Datasets
US20230351192A1 (en) Robust training in the presence of label noise
US11210470B2 (en) Automatic text segmentation based on relevant context
US11379659B2 (en) Text categorization using natural language processing
US20230325676A1 (en) Active learning via a sample consistency assessment
US10664719B2 (en) Accurate tag relevance prediction for image search
CN108733778B (en) Industry type identification method and device of object
US20180068221A1 (en) System and Method of Advising Human Verification of Machine-Annotated Ground Truth - High Entropy Focus
US20190236135A1 (en) Cross-lingual text classification
CN107644051B (en) System and method for homogeneous entity grouping
CN111582185A (en) Method and apparatus for recognizing image
KR20220029384A (en) Entity linking method and device, electronic equipment and storage medium
JP2020060970A (en) Context information generation method, context information generation device and context information generation program
CN112395487A (en) Information recommendation method and device, computer-readable storage medium and electronic equipment
CN112100377A (en) Text classification method and device, computer equipment and storage medium
CN107111607A (en) The system and method detected for language
CN111738009B (en) Entity word label generation method, entity word label generation device, computer equipment and readable storage medium
CN111708864A (en) User comment text emotion analysis method and device
US11829442B2 (en) Methods and systems for efficient batch active learning of a deep neural network
CN111709475B (en) N-gram-based multi-label classification method and device
US12014276B2 (en) Deterministic training of machine learning models
JP4054046B2 (en) Opinion determination database creation method and apparatus and program, opinion determination method and apparatus and program, and computer-readable recording medium
US20170228438A1 (en) Custom Taxonomy
US11693925B2 (en) Anomaly detection by ranking from algorithm
US10546247B2 (en) Switching leader-endorser for classifier decision combination

Legal Events

Date Code Title Description
AS Assignment

Owner name: ARIMO, LLC, CALIFORNIA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:ARIMO, INC.;REEL/FRAME:054710/0588

Effective date: 20171030

Owner name: ARIMO, INC., CALIFORNIA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:NGUYEN, CHRISTOPHER T.;HAN, BINH;SIGNING DATES FROM 20170825 TO 20170826;REEL/FRAME:054710/0553

STPP Information on status: patent application and granting procedure in general

Free format text: APPLICATION DISPATCHED FROM PREEXAM, NOT YET DOCKETED

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION