Training neural networks using transfer learning
Abstract
Methods, systems, and apparatus, including computer programs encoded on computer storage media, for training neural networks using transfer learning. One of the methods includes training a neural network to perform a first prediction task, including: obtaining trained model parameters for each of a plurality of candidate neural networks, wherein each candidate neural network has been pre-trained to perform a respective second prediction task that is different from the first prediction task; obtaining a plurality of training examples corresponding to the first prediction task; selecting a proper subset of the plurality of candidate neural networks using the plurality of training examples; generating, for each candidate neural network, one or more fine-tuned neural networks, wherein each fine-tuned neural network is generated by updating the model parameters of the candidate neural network using the plurality of training examples; and determining model parameters for the neural network using the respective fine-tuned neural networks.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method for training a neural network to perform a first prediction task, the method comprising: obtaining trained model parameters for each of a plurality of candidate neural networks, wherein each candidate neural network has been pre-trained to perform a respective second prediction task that is different from the first prediction task; obtaining a plurality of training examples corresponding to the first prediction task; prior to fine-tuning any of the plurality of candidate neural networks for the first prediction task: predicting, for each plurality of candidate neural networks and using the plurality of training examples, a respective performance of the candidate neural network on the first prediction task, and selecting a proper subset of the plurality of candidate neural networks using the respective predicted performance on the first prediction task for each of the candidate neural networks; after selecting the proper subset, fine-tuning only the candidate neural networks in
- Claim 2Depends on #1
The method of claim 1, wherein the neural network is an ensemble neural network comprising each fine-tuned neural network.
- Claim 3Depends on #1
The method of claim 1, wherein: the neural network is an ensemble neural network comprising a plurality of member neural networks; and determining model parameters for the neural network comprises: selecting, from the fine-tuned neural networks, the plurality of member neural networks of the ensemble neural network according to a performance of the fine-tuned neural networks on the first prediction task.
- Claim 4Depends on #3
The method of claim 3, wherein selecting, from the fine-tuned neural networks, the plurality of member neural networks of the ensemble neural network according to a performance of the fine-tuned neural networks on the first prediction task comprises: at a first time step, selecting the fine-tuned neural network that has a highest performance on the first prediction task; and at each of one or more subsequence time steps, determining, from the remaining fine-tuned neural networks, a particular fine-tuned neural network that, when added to the ensemble neural network, causes a highest increase in the performance of the ensemble neural network on the first prediction task.
- Claim 5Depends on #1
The method of claim 1, wherein the plurality of training examples comprises a plurality of training inputs and corresponding ground-truth outputs, and wherein selecting the proper subset of the plurality of candidate neural networks using the respective predicted performance on the first prediction task for each of the candidate neural networks comprises: for each of the plurality of candidate neural networks: processing at least some of the plurality of training inputs using the candidate neural network to generate a respective representation of the training input; configuring a machine learning model to process representations of training inputs generated by the candidate neural network and to generate predictions of the corresponding ground-truth outputs; and determining a measure of performance of the machine learning model, wherein the measure of performance is used to determine a predicted performance of the candidate neural network on the first prediction task; and selecting the
- Claim 6Depends on #5
The method of claim 5, wherein determining the measure of performance for a candidate neural network comprises determining the measure of performance using leave-one-out cross validation.
- Claim 7Depends on #5
The method of claim 5, wherein the machine learning model is a nearest-neighbor classifier.
- Claim 8Depends on #1
The method of claim 1, wherein: each of the plurality of candidate neural networks was trained using a respective plurality of second training examples, wherein at least some of the respective pluralities of second training examples are different; and selecting the proper subset of the plurality of candidate neural networks using the respective predicted performance on the first prediction task for each of the candidate neural networks comprises, for each of the plurality of candidate neural networks, determining a predicted similarity between i) the plurality of training examples and ii) the plurality of second training examples that was used to train the candidate neural network, wherein the predicted similarity is used to determine a predicted performance of the candidate neural network on the first prediction task.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATION This application claims priority to U.S. Provisional Application No. 63/087,104, filed on Oct. 2, 2020. The disclosure of the prior application is considered part of and is incorporated by reference in the disclosure of this application. BACKGROUND This specification relates to training neural networks. Neural networks are machine learning models that employ one or more layers of nonlinear units to predict an output for a received input. Some neural networks include one or more hidden layers in addition to an output layer. The output of each hidden layer is used as input to the next layer in the network, i.e., the next hidden layer or the output layer. Each layer of the network generates an output from a received input in accordance with current values of a respective set of parameters. SUMMARY This specification describes a system implemented as computer programs on one or more computers in one or more locations that is configured to train a neural network to perform a first machine learning task using a set of candidate neural networks that have been pre-trained to perform respective second machine learning tasks. The system can obtain a set of training examples corresponding to the first machine learning task and process the training examples to select one or more of the candidate neural networks. In particular, the system can use the training examples to predict, for each candidate neural network, a performance of the candidate neural network on the first machine learning task if the candidate neural network were fine-tuned for the first machine learning task using the training examples. After selecting the one or more candidate neural networks, the system can fine-tune the selected candidate using the set of training examples. In this specification, a system “ fine-tunes ” a neural network when the system updates the parameters of the neural network after the neural network has already been trained. In some implementations
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (8)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Xia et al. (
- “
- Transferring Ensemble Representations Using Deep Convolutional Neural Networks for Small-Scale Image Classification
- ”
- , vol. 7, 2019 pp. 168175-168186) (Year: 2019).
- Macko et al. (
- “
- Improving Neural Architecture Search Image Classifiers via Ensemble Learning
- ”
- , Nov. 20, 2019 ) (Year: 2019).