A framework for learning to transfer learning

The L2TL architecture adaptively learns weight assignments for deep learning models by combining gradient descent and reinforcement learning, addressing the limitations of traditional transfer learning methods to enhance performance on target datasets.

JP7550939B2Active Publication Date: 2024-09-13GOOGLE LLC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023139532
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-08-02
Filing Date
2023-08-30
Publication Date
2024-09-13
Estimated Expiration
2040-08-02

AI Technical Summary

Technical Problem

Traditional training approaches for deep neural networks are insufficient to achieve high performance in diverse real-world applications due to limited training datasets, necessitating the transfer of relevant information from redundant source datasets to target datasets, while existing transfer learning techniques often rely on fixed weight assignments that do not adaptively optimize for the target domain.

Method used

The implementation of a Learning to Transfer (L2TL) architecture that adaptively learns weight assignments for deep learning models by employing gradient descent-based optimization in the first stage and reinforcement learning-based policy optimization in the second stage, dynamically selecting relevant examples and maximizing evaluation metrics for the target dataset.

Benefits of technology

This approach enhances the performance of deep learning models on target datasets by optimizing weight assignments based on target evaluation metrics, improving computational efficiency and accuracy by directly targeting relevance for specific goals, surpassing the limitations of fixed weight assignments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007550939000012
    Figure 0007550939000012
  • Figure 0007550939000014
    Figure 0007550939000014
  • Figure 0007550939000015
    Figure 0007550939000015
Patent Text Reader

Abstract

To provide a method and system capable of realizing a framework for learning to transfer learn.SOLUTION: A method comprises: receiving a source dataset and a target dataset; and identifying a loss function for a deep learning model based on the source dataset and the target dataset. The loss function includes encoder weights, source classifier layer weights, target classifier layer weights, coefficients, and a policy weight. The method also comprises: applying gradient descent-based optimization during a first stage of each of multiple learning iterations for a learning to transfer learn (L2TL) architecture, to learn the encoder weights, the source classifier layer weights and the target classifier weights that minimize the loss function; sampling actions of a policy model to determine the coefficients; and determining the policy weight that maximizes an evaluation metric during a second stage of each of the multiple learning iterations.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] Technical Field The present disclosure relates to a framework for learning to transfer learning. [Background technology]

[0002] background A machine learning model receives input and generates an output, e.g., a predicted output, based on the received input. Some machine learning models are parametric models, which generate an output based on the received input and the values ​​of the parameters of the model.

[0003] Some machine learning models are deep models that employ multiple layers of models to generate an output for a received input. For example, a deep neural network is a deep machine learning model that includes an output layer and one or more hidden layers, each of which applies a nonlinear transformation to a received input to generate an output. Summary of the Invention

[0004] overview One aspect of the present disclosure provides a method for adaptively learning weight assignments for a deep learning model that is jointly optimized for a source dataset and a target dataset. The method includes receiving a source dataset and a target dataset in data processing hardware, and identifying, by the data processing hardware, a loss function for the deep learning model based on the source dataset and the target dataset. The loss function includes an encoder weight, a source classifier layer weight, a target classifier layer weight, a coefficient, and a policy weight. During a first stage of each of a plurality of learning iterations for a learning to transfer learn (L2TL) architecture configured to learn weight assignments for the deep learning model, the method also includes applying, by the data processing hardware, a gradient descent-based optimization to learn encoder weights, source classifier layer weights, and target classifier layer weights that minimize the loss function, and determining, by the data processing hardware, the coefficients by sampling actions of a policy model. During a second stage of each of a plurality of learning iterations for the L2TL architecture, the method also includes determining, by the data processing hardware, a policy weight that maximizes an evaluation metric for the loss function.

[0005] Implementations of the present disclosure may include one or more of any of the following features. In some implementations, determining policy weights that maximize an evaluation metric for the loss function includes using the encoder weights and the target classification layer weights learned during the first stage. The policy model may be fixed during the first stage of learning iterations. The policy model may include a reinforcement learning based policy model. The evaluation metric for the loss function may quantify the performance of the deep learning model on the target evaluation dataset. The target evaluation dataset includes a subset of data samples in the target dataset that were not previously seen by the deep learning model.

[0006] In some examples, during the first stage of each of the plurality of learning iterations, the method also includes sampling, by the data processing hardware, a training batch of source data samples from a source dataset having a particular size; and generating, by the data processing hardware, the N best confidence scores for use in training the deep learning model. and selecting source data samples from the training batch of source data samples having the loss function to learn encoder weights, source classifier layer weights, and target classifier layer weights that minimize the loss function. In additional examples, during the second stage of each of the multiple learning iterations, the method also includes training, by the data processing hardware, a policy model with a policy gradient on the target evaluation dataset to calculate a reward that maximizes the evaluation metric. In these additional examples, determining policy weights that maximize the evaluation metric for the loss function is based on the calculated reward.

[0007] In some implementations, the source dataset includes a first plurality of images and the target dataset includes a second plurality of images, where the number of images in the first plurality of images of the source dataset may be greater than the number of images in the second plurality of images of the target dataset. The L2TL architecture may include an encoder network layer, a source classifier layer, and a target classifier layer.

[0008] Another aspect of the present disclosure provides a system for adaptively learning weight assignments for a deep learning model that is jointly optimized for a source dataset and a target dataset. The system includes data processing hardware and memory hardware in communication with the data processing hardware of a user device. The memory hardware stores instructions that, when executed on the data processing hardware, cause the data processing hardware to perform the following operations: receiving a source dataset and a target dataset; and identifying a loss function for the deep learning model based on the source dataset and the target dataset. The loss function includes encoder weights, source classifier layer weights, target classifier layer weights, coefficients, and policy weights. During a first stage of each of a plurality of learning iterations for a learning to transfer learning (L2TL) architecture configured to learn weight assignments for the deep learning model, the following operations also include applying a gradient descent-based optimization to learn encoder weights, source classifier layer weights, and target classifier layer weights that minimize the loss function; and determining coefficients by sampling actions of a policy model. During the second stage of each of the multiple learning iterations for the L2TL architecture, the following operations also include determining policy weights that maximize an evaluation metric for the loss function.

[0009] This aspect may include one or more of any of the following features. In some implementations, determining policy weights that maximize an evaluation metric for the loss function includes using the encoder weights and the target classification layer weights learned during the first stage. The policy model may be fixed during the first stage of learning iterations. The policy model may include a reinforcement learning based policy model. The evaluation metric for the loss function may quantify the performance of the deep learning model on the target evaluation dataset. The target evaluation dataset includes a subset of data samples in the target dataset that were not previously seen by the deep learning model.

[0010] In some examples, during a first stage of each of the multiple learning iterations, the following operations also include sampling a training batch of source data samples from a source dataset having a particular size, and selecting source data samples from the training batch of source data samples having N best confidence scores for use in training the deep learning model to learn encoder weights, source classifier layer weights, and target classifier layer weights that minimize the loss function. In an additional example, during a second stage of each of the multiple learning iterations, the following operations also include training a policy model using a policy gradient on the target evaluation dataset to calculate a reward that maximizes the evaluation metric. In these additional examples, the act of determining policy weights that maximize an evaluation metric for the loss function is based on the calculated reward.

[0011] In some implementations, the source dataset includes a first plurality of images and the target dataset includes a second plurality of images, where the number of images in the first plurality of images of the source dataset may be greater than the number of images in the second plurality of images of the target dataset. The L2TL architecture may include an encoder network layer, a source classifier layer, and a target classifier layer.

[0012] The details of one or more implementations of the disclosure are set forth in the accompanying drawings and the description below. Other aspects, features, and advantages will become apparent from the following description, the accompanying drawings, and the appended claims. [Brief description of the drawings]

[0013] [Figure 1] FIG. 1 is a schematic diagram illustrating a system including a learning to transfer learning (L2TL) architecture and a deep learning model jointly optimized for a source dataset and a training dataset. [Diagram 2]FIG. 1 is a schematic diagram illustrating an example of a learning architecture for transferring learning to improve transfer learning on a target dataset by appropriately extracting information from a source dataset. [Diagram 3] FIG. 1 is a schematic diagram illustrating an exemplary learning algorithm for transferring learning showing first and second stages of each of multiple learning iterations for updating weights of a deep learning model. [Figure 4] FIG. 1 illustrates an example configuration of operations for a method for adaptively learning weight assignments for a deep learning model that is jointly optimized for a source dataset and a target dataset. [Diagram 5] FIG. 1 is a schematic diagram illustrating an example computing device that can be used to implement the systems and methods described herein. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Like reference numbers in the various drawings indicate like elements. Detailed Description Deep neural networks excel at understanding images, text, and speech. Their performance can be significantly improved with more training data. As applications become more diverse and cover multiple use cases with a small training dataset, traditional training approaches are often insufficient to achieve high performance. It becomes very beneficial to utilize redundant source datasets and "transfer" the relevant information to the target dataset. Transfer learning usually involves taking a model that is pre-trained on a large source dataset and then further training the model on the target dataset (known as fine-tuning). Fine-tuning, a form of iterative learning, has become the standard recipe for the majority of real-world artificial intelligence applications. Compared to random initialization followed by training, fine-tuning leads to significant performance improvements and convergence acceleration as demonstrated for object recognition, semantic segmentation, language understanding, speech synthesis, audiovisual recognition, and language translation.

[0015] Implementations herein include a learn to transfer learn (L2TL) architecture that runs on data processing hardware to enhance transfer learning on a target dataset by appropriately extracting information from a source dataset. In contrast to transfer learning techniques, which use a fixed weighting assignment function to measure the relevance between the source and target domains, the L2TL architecture The L2TL architecture can adaptively learn weight assignments for the deep learning model that are jointly optimized for the source and target datasets. As will become apparent below, learning the adaptive weights for the deep learning model can be guided by the performance of the deep learning model on the target evaluation dataset. In particular, the performance can be quantified using a target performance metric, allowing the L2TL architecture to directly target relevance with the goal of improving the target evaluation performance.

[0016] While finding and optimizing the importance weighting function, one option in choosing the scaling factors is to alternate between (1,0) and (0,1). This results in an optimized policy weight

[0017]

number

[0018] The source dataset may be trained until convergence with weights pre-trained from the source dataset, and the target dataset may be trained until convergence with weights pre-trained from the source dataset. In some implementations, the framework optimizes a single coefficient to be scale-invariant. The policy optimization step is decoupled from the gradient descent-based optimization of the trainable parameters, and signals are shared among them.

[0019] The implementation is directed to using two stages in each of a number of learning iterations for the L2TL architecture. During the first stage for each of the multiple learning iterations, the L2TL architecture applies gradient descent-based optimization to learn encoder weights, source classifier layer weights, and target classifier weights that minimize a loss function for the L2TL architecture, and determines the coefficients by sampling the actions of the policy model. During the first stage, the policy model may be fixed. In some cases, the loss may be skewed if most of the source dataset samples in a batch are irrelevant while some batches contain more relevant examples. To mitigate this problem, the L2TL architecture may sample larger batches and dynamically select the more relevant examples. For each iteration, the L2TL architecture may sample a training batch with a certain size and use a few top samples with the highest confidence scores for training. This approach may provide computational benefits because gradients will not be calculated for most source dataset samples until convergence is reached.

[0020] During the second phase for each of the multiple learning iterations, the L2TL architecture learns a policy weight that maximizes an evaluation metric on the target evaluation dataset using the encoder weights learned during the first phase.

[0021]

number

[0022] This can be treated as an RL problem, such that the policy model outputs an importance weighting function and an action for a single coefficient, aiming to optimize the reward. When training the policy model, the L2TL architecture can maximize the reward on the target dataset using batches with a specific size by using the policy gradient. The L2TL architecture uses a moving average baseline. The L2TL architecture can use reinforcement learning to compute the policy gradient. The L2TL architecture can also optimize the policy gradient using gradient-based optimization of a stochastic objective, e.g., the Adam optimizer.

[0023] Referring to FIG. 1, in some implementations, the system 100 includes a computing environment 130 including resources 132, such as data processing hardware 134 (e.g., a server or CPU) and / or remote memory hardware 136, that store instructions. The instructions, when executed on the data processing hardware 102, cause the data processing hardware 102 to perform operations. A learning to transfer learning (L2TL) architecture 200 and a deep learning model 150 may reside on the resource 132. Generally, the deep learning model 150 includes a deep learning network, i.e., a machine learning model, that includes multiple layers of models for generating outputs for received inputs. In the illustrated example, the deep learning model 150 is jointly optimized for the source dataset 104 and the target dataset 106, and the L2TL architecture 200 is configured to adaptively learn weight assignments for the deep learning model 150.

[0024] FIG. 2 illustrates an example of an L2TL architecture 200 running on data processing hardware 134 and receiving a source dataset 104 and a target dataset 106. The source dataset 104 includes a first plurality of images, and the target dataset 106 includes a second plurality of images. The first plurality of images of the source dataset 104 includes a larger number of images than the second plurality of images of the target dataset 106. In other implementations, the source dataset 104 and the target dataset 106 include data samples other than images, such as, but not limited to, audio samples or text samples. The target dataset 106 includes a specialized set of training samples (e.g., images including dogs) for training the deep learning model 150 to perform a specialized target task, such as, for example, to recognize images including dogs. However, the source dataset 104 may include a very large public dataset for images across a variety of classes that may or may not include dogs. In particular, the source dataset 104 and the target dataset 106 may each be labeled. Although source samples in the source dataset 104 may have features that are implicitly related to target samples in the target dataset 106 and may benefit the learning process, they may each belong to a different class. For example, consider an example of training a deep learning model 150 to perform classification of bird images. The source dataset 104 may not contain bird images, but may have airplane images with similar visual patterns. These similar visual patterns will aid in training a bird classifier since they share similar visual patterns to learn useful representations of the raw data. The L2TL architecture 200 is designed to automatically handle such cases with its policy learning, further driving performance in ways that manual source dataset selection or fixed domain similarity methods cannot.The L2TL architecture 200 allows for collaborative optimization of deep learning models 150 for source and target tasks while using adaptive weights 202, 204, 208, 210 for scaling component loss terms. The dashed boxes in the L2TL architecture 200 of FIG. 2 correspond to trainable functions.

[0025] The L2TL architecture 200 is configured to improve transfer learning to a target dataset 106 by appropriately extracting information from a source dataset 104. The L2TL architecture 200 calculates a loss function 2 for a deep learning network 150 based on the source dataset 104 and the target dataset 106. 01. The loss function 201 may include encoder weights 210 associated with the encoder neural network 152 of the deep learning model 150, source classifier layer weights 202 associated with the source classifier layer 154 of the deep learning model 150, target classifier layer weights 204 associated with the target classifier layer 156 of the deep learning model 150, coefficients 206 for the source dataset 104 and the target dataset 106, and policy weights 208 associated with the policy model 209 of the deep learning model 150. The loss function 201 may be expressed as follows:

[0026]

number

[0027] where (x,y) is an input-output pair, and B S and B. T are the source and target batch sizes, and α s [i] and α t [i] is the scaling factor 206 at the i-th iteration, λ is the importance weighting function 212,

[0028]

number

[0029] are the trainable parameters Ω (coding weights 210), and ζ S (source classifier layer weights 202), and ζ T is the encoding function for the source dataset 104 and the target dataset 106 with (target classifier layer weights 204). As will become apparent below, the learning objective of the loss function 201 expressed by equation (1) is generalized to the unrecognized target evaluation dataset 106′ by maximizing the performance metric R, 220.

[0030] During a first phase of each of multiple training iterations for the L2TL architecture 200, the L2TL architecture 200 applies gradient descent-based optimization to optimize the encoder weights Ω 210, the source classifier layer weights ζ, and the S 202, and the target classifier layer weights ζ T 204 and determine the coefficients 206 by sampling the actions of the policy model 209. For example, a gradient descent based optimization is applied to determine adaptive weights Ω 210, ζ that minimize the loss function 201. S 202, and ζ T Learning may be expressed as follows:

[0031]

number

[0032] During the first stage, the policy model 209 remains fixed. Although most batches are likely to contain relevant samples from the source dataset 104, the loss function 201 may be skewed if most of the source dataset samples in a batch are not relevant (ideally, they may get lower weights). To mitigate this issue, the first stage may use a larger batch size at each iteration from which the most relevant examples are dynamically selected. At each iteration, the L2TL architecture uses a larger batch size. M S ·B S , and select the top B , which has the highest weights for training update during that iteration. S This approach also provides computational benefits since gradients will not be computed for most source dataset samples until convergence is reached.

[0033] 2 illustrates an L2TL architecture 200 with a training objective during a first stage of learning iterations for each of the source dataset 104 and the target dataset 106, which involves minimizing the gradient between the inputs x of the source dataset 104 and the target dataset 106, respectively, and their corresponding labels / outputs y. Here, the encoding network 152 encodes input features (e.g., images) from the source dataset 104, and the source classifier layer 154 (also referred to as the “source decision layer”) uses the encoded input features to output confidence scores, such that the training objective is to minimize the gradient between the confidence scores for the input features and the corresponding labels / outputs y (the first term in equation (1) of the loss function 201,

[0034]

number

[0035] The source dataset classification loss is determined based on the loss function 201 in equation (1).

[0036]

number

[0037] Then, an additive function 203 multiplies the source dataset classification loss by the importance weight 212 (the second term in Eq. 1 of the loss function 201

[0038]

number

[0039] , ... S 202, and the target classifier layer weights ζ T 204.

[0040] The encoding network 152 also encodes input features (e.g., images) from the target dataset 106, and the target classifier layer 156 (also referred to as the "source decision layer") uses the encoded features to output confidence scores, such that the training goal is to find the target dataset classification loss between the confidence scores for the input features and the corresponding label / output y for the target dataset.

[0041]

number

[0042] As mentioned above, the summation function 203 determines the source dataset classification loss and the importance weights. The target dataset classification losses are aggregated along with the product with the loss function 208 to determine the aggregate gradient for the loss function 201.

[0043] During a second stage for each of multiple learning iterations for the L2TL architecture 200, the L2TL architecture 200 determines policy weights Φ 208 that maximize an evaluation metric R, 220 for the loss function 201. Here, the L2TL architecture 200 uses the encoder weights Ω 210 and the target classifier layer weights ζ 220 learned during the first stage. T 204 to determine policy weights Φ 208 that maximize the evaluation metric R 220. As used herein, the evaluation metric (also referred to as the “evaluation metric”) 220 for a loss function is determined by the target evaluation dataset 106. The policy weights Φ 208 quantify the performance of the deep learning model 150 (i.e., the encoder network 152 and the target classification layer 154) on the target evaluation dataset 106′. In some examples, the target evaluation dataset 106′ includes a subset of data samples (e.g., images) in the target dataset 106 that were not previously seen by the deep learning model 150 during the first stage of training. Thus, determining the policy weights Φ 208 quantifies the performance of the evaluation metric R D′T 220. This may be expressed as:

[0044]

number

[0045] Here, D′ Tis an unseen target evaluation dataset 106′, which may include a subset of data samples (input features x, output labels y) in the target dataset 106 that were not previously seen by the deep learning model 150 during the first stage. While the policy model 209 is fixed during the first stage, during the second stage, the L2TL architecture 200 trains the policy model 209 using a policy gradient on the target evaluation dataset 106′ to calculate a reward that maximizes the evaluation metric R, 220 using Equation 3. Thus, the L2TL architecture 200 determines / updates policy weights Φ 208 that maximize the evaluation metric R, 220 based on the calculated reward. Based on the updated policy weights Φ 208, the importance weights 212 that are applied as multipliers to the source dataset classification loss to be determined during the first stage of the subsequent learning iteration are updated by sampling the actions of the policy model 209. Thus, the L2TL architecture 200 employs the policy model 209 to determine the encoder weights Ω 210, the source classifier layer weights ζ S 202, and the target classifier layer weights ζ T 204 and determines / updates policy weights Φ 208 that maximize the evaluation metric R, 220 on the target evaluation dataset 106′. As a result, the L2TL architecture 200 goes beyond targeting global relevance by directly targeting relevance with respect to the specific goal of improving performance on the target evaluation dataset 106′. FIG. 3 shows the weights Ω 210, ζ S 202, ζ T 204 and Φ 208.

[0046] In effect, the policy model 209 adaptively outputs importance weights 212 for each of the multiple classes of the source dataset 104, thereby enabling the L2TL architecture 200 to learn the source dataset class weights to directly optimize performance on the target dataset 106. With the importance weights 212 adaptively assigned, the L2TL architecture 200 can more easily optimize the source dataset 104 so that relevant information can be extracted from the source dataset 104 for training the deep learning model 150 to learn the target objective. The L2TL architecture 200 assigns smaller weights to more relevant data samples in the source dataset 104. The policy model 209 may include a reinforcement learning based policy model. Additionally, in some examples, the L2TL architecture 200 provides a ranking of samples of the source dataset 104 based on their contribution to the target task.

[0047] FIG. 4 illustrates a flowchart of an example configuration of operations for a method 400 of adaptively learning weight assignments for a deep learning model 150 jointly optimized for a source dataset 104 and a target dataset 106. The data processing hardware 134 (FIG. 1) may perform operations for the method 400 by executing instructions stored in the memory hardware 136 (FIG. 1). At operation 402, the method 400 includes receiving the source dataset 104 and the target dataset 106. At operation 404, the method 400 includes identifying a loss function 201 for the deep learning model 150 based on the source dataset 104 and the target dataset 106. The loss function 201 includes the encoder weights 210, the source classifier layer weights 202, the target classifier layer weights 204, the coefficients 206, and the policy weights 208.

[0048] During a first stage of each of a plurality of learning iterations for a learning to transfer learning (L2TL) architecture 200 configured to learn weight assignments for a deep learning model 150, the method 400 also includes, at operation 406, applying a gradient descent-based optimization to learn encoder weights, source classifier layer weights, and target classifier weights that minimize a loss function, and, at operation 408, determining coefficients 206 by sampling actions of a policy model 209. During a second stage of each of a plurality of learning iterations for the L2TL architecture 200, the method 400 also includes, at operation 410, determining policy weights 208 that maximize an evaluation metric 220 for the loss function 201.

[0049] A software application (i.e., a software resource) may refer to computer software that causes a computing device to perform tasks. In some examples, a software application may also be referred to as an "application," an "app," or a "program." Exemplary applications include, but are not limited to, system diagnostic applications, system management applications, system maintenance applications, word processing applications, spreadsheet applications, messaging applications, media streaming applications, social networking applications, and gaming applications.

[0050] Non-transient memory may be a physical device used to temporarily or permanently store programs (e.g., sequences of instructions) or data (e.g., program state information) for use by a computing device. Non-transient memory may be volatile and / or non-volatile addressable semiconductor memory. Examples of non-volatile memory include, but are not limited to, flash memory and read-only memory (ROM) / programmable read-only memory (PROM) / erasable programmable read-only memory (EPROM) / electronically erasable programmable read-only memory (EEPROM) (e.g., typically used for firmware such as boot programs). Examples of volatile memory include, but are not limited to, random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), phase change memory (PCM), and disk or tape.

[0051] 5 is a schematic diagram of an example computing device 500 that may be used to implement the systems and methods described herein. The computing device 500 may be a laptop, desktop, workstation, personal digital assistant, server, blade, or other device. The components shown herein, their connections and relationships, and their functions, are intended to be exemplary only and are not intended to limit the implementation of the invention described and / or claimed in this document.

[0052] The computing device 500 includes a processor 510 (e.g., data processing hardware), a memory 520 (e.g., memory hardware), a storage device (e.g., memory hardware) 530, a high-speed interface / controller 540 connecting to the memory 520 and a high-speed expansion port 550, and a low-speed interface / controller 560 connecting to a low-speed bus 570 and the storage device 530. Each of the components 510, 520, 530, 540, 550, and 560 are interconnected using various buses and may be mounted on a common motherboard or otherwise as appropriate. The processor 510 is capable of processing instructions that are executed within the computing device 500, including instructions stored in the memory 520 or on the storage device 530 to display graphic information for a graphical user interface (GUI) on an external input / output device, such as a display 580 coupled to the high-speed interface 540. In other implementations, multiple processors and / or multiple buses may be used, along with multiple memories and multiple types of memories, as appropriate. Also, multiple computing devices 500 may be connected, with each device providing a portion of the required operations (e.g., as a server bank, a group of blade servers, or a multiprocessor system). The processor 510 may correspond to the data processing hardware 134 of FIG. 1 and may execute the L2TL architecture 200 and the deep learning model 150.

[0053] The memory 520 stores information non-transiently within the computing device 500. The memory 520 may be a computer-readable medium, a volatile memory unit, or a non-volatile memory unit. The non-transient memory 520 may be a physical device used to temporarily or permanently store programs (e.g., sequences of instructions) or data (e.g., program state information) for use by the computing device 500. Examples of non-volatile memory include, but are not limited to, flash memory and read-only memory (ROM) / programmable read-only memory (PROM) / erasable programmable read-only memory (EPROM) / electronically erasable programmable read-only memory (EEPROM) (e.g., typically used for firmware such as boot programs). Examples of volatile memory include, but are not limited to, random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), phase change memory (PCM), and disk or tape.

[0054] The storage device 530 can provide mass storage for the computing device 500. In some implementations, the storage device 530 is a computer-readable medium. In various different implementations, the storage device 530 can be a floppy disk device, a hard disk device, an optical disk device, or an array of devices including a tape device, a flash memory or other similar solid-state memory device, or a device in a storage area network or other configuration. In additional implementations, a computer program product can be tangibly embodied in an information carrier. The computer program product includes instructions that, when executed, perform one or more methods as described above. The information carrier is a computer-readable medium or a machine-readable medium, such as the memory 520, the storage device 530, or a memory on the processor 510.

[0055] The high-speed controller 540 manages bandwidth-intensive operations for the computing device 500, while the low-speed controller 560 manages less bandwidth-intensive operations. Such an allocation of service functions is merely exemplary. In some implementations, the high-speed controller 540 is coupled to the memory 520, the display 580 (e.g., via a graphics processor or accelerator), and to a high-speed expansion port 550 that may accept various expansion cards (not shown). In some implementations, the low-speed controller 560 is coupled to the storage device 530 and to a low-speed expansion port 590. The low-speed expansion port 590, which may include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet), may be coupled to one or more input / output devices, such as a keyboard, pointing device, scanner, or to a networking device, such as a switch or router, for example, via a network adapter.

[0056] The computing device 500 may be implemented in many different forms as shown in the figure: for example, it may be implemented as a standard server 500a or multiple times in a group of such servers 500a, as a laptop computer 500b, or as part of a rack server system 500c.

[0057] Various implementations of the systems and techniques described herein may be implemented using digital electronic and / or optical circuits, integrated circuits, specially designed application specific integrated circuits (ASICs), computer hardware, firmware, software, These various implementations may include implementations in one or more computer programs executable and / or interpretable on a programmable system including at least one programmable processor, which may be special purpose or general purpose, coupled to transmit and receive data and instructions to and from the storage system, at least one input device, and at least one output device.

[0058] These computer programs (also known as programs, software, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high level procedural and / or object-oriented programming language, and / or in assembly / machine code. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, non-transitory computer-readable medium, apparatus and / or device (e.g., magnetic disks, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and / or data to a programmable processor, and a machine that receives the machine instructions as machine-readable signals. Machine-readable media includes The term "machine-readable signal" refers to any signal used to provide machine instructions and / or data to a programmable processor.

[0059] The processes and logic flows described herein may be performed by one or more programmable processors, also referred to as data processing hardware, executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows may also be performed by, for example, field programmable gate arrays (FPGAs) or The program may be implemented by special purpose logic circuitry, such as an ASIC (application specific integrated circuit). Processors suitable for the execution of a computer program include, by way of example, both general and special purpose microprocessors, and any one or more processors of any kind of digital computer. Generally, a processor will store instructions and data in a read-only memory or a random access memory. The essential elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include one or more mass storage devices for storing data, such as, for example, magnetic, magneto-optical, or optical disks, or will be operatively coupled to receive data from or transfer data to the mass storage devices. However, a computer need not have such devices. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, by way of example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; and CD ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.

[0060] To provide for user interaction, one or more aspects of this disclosure may be implemented on a computer having a display device, such as a CRT (cathode ray tube), LCD (liquid crystal display) monitor, or touch screen, for displaying information to the user, and optionally a keyboard and pointing device, such as a mouse or trackball, for enabling the user to provide input to the computer. Other types of devices may be used to provide for user interaction as well. For example, feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback. Also, input from the user may be received in any form, including acoustic, speech, or tactile input. In addition, the computer may interact with the user by sending documents to and receiving documents from a device used by the user, for example, by sending a web page to a web browser on the user's client device in response to a request received from the web browser.

[0061] Although several implementations have been described, it will be understood that various modifications may be made without departing from the spirit and scope of the disclosure. Accordingly, other implementations are within the scope of the following claims.

Claims

1. A computer-implemented method that, when executed by data processing hardware, causes the data processing hardware to perform the following operations: The method includes an operation of obtaining a source data set, the source data set comprising: a first class of source images; a target dataset including a second class of target images, the second class being different from the first class, and the following operations further include: and an operation of identifying a loss function for a deep learning model based on the source dataset and the target dataset, the loss function being configured to train the deep learning model on the target dataset using transfer learning, the loss function comprising: Layer weights of the deep learning model; A source scaling factor, A target scaling factor; and a policy weight, and the following operations further include: In each learning iteration of a plurality of learning iterations for a learning to transfer learn (L2TL) architecture, sampling a training batch of source images from the source dataset; selecting the source images from the training batch having the N best confidence scores for use in training the deep learning model; Based on the selected source images from the training batch, determining the source scaling coefficients and the target scaling coefficients for each learning iteration by sampling actions of a policy model associated with the policy weights; applying a gradient descent based optimization to learn the layer weights that minimize the loss function; updating the policy weights associated with the policy model to maximize an evaluation metric for the loss function.

2. The layer weights of the deep learning model are Encoder weights, the source classifier layer weights, or 4. The computer-implemented method of claim 1 , further comprising at least one of: a.

3. A computer-implemented method as described in claim 1 or 2, wherein the policy model includes a reinforcement learning-based policy model.

4. A computer-implemented method according to any one of claims 1 to 3, wherein the L2TL architecture comprises an encoder network layer, a source classifier layer, and a target classifier layer.

5. A computer-implemented method according to any one of claims 1 to 4, wherein the L2TL architecture and the deep learning model reside in a remote computing environment.

6. A computer-implemented method according to claim 1, wherein the source scaling coefficients include iteration-dependent source scaling coefficients.

7. A computer-implemented method according to claim 1, wherein the target scaling coefficients include iteration-dependent target scaling coefficients.

8. A computer-implemented method according to claim 1, wherein the policy model is fixed during a first stage of the multiple learning iterations.

9. A computer-implemented method as described in any one of claims 1 to 8, wherein the following operations further include an operation of training the policy model using a policy gradient on a target evaluation dataset during a second stage of each of the multiple learning iterations to calculate a reward that maximizes the evaluation metric for the loss function.

10. The computer-implemented method of claim 9, wherein the evaluation metric quantifies the performance of the deep learning model on the target evaluation dataset.

11. A system comprising: Data processing hardware; and memory hardware in communication with the data processing hardware and storing instructions that, when executed on the data processing hardware, cause the data processing hardware to perform the following operations: The method includes an operation of obtaining a source data set, the source data set comprising: a first class of source images; a target dataset including a second class of target images, the second class being different from the first class, and the following operations further include: and an operation of identifying a loss function for a deep learning model based on the source dataset and the target dataset, the loss function being configured to train the deep learning model on the target dataset using transfer learning, the loss function comprising: Layer weights of the deep learning model; A source scaling factor, A target scaling factor; and a policy weight, and the following operations further include: In each learning iteration of a plurality of learning iterations for a learning to transfer learn (L2TL) architecture, sampling a training batch of source images from the source dataset; selecting the source images from the training batch having the N best confidence scores for use in training the deep learning model; Based on the selected source images from the training batch, determining the source scaling coefficients and the target scaling coefficients for each learning iteration by sampling actions of a policy model associated with the policy weights; applying a gradient descent based optimization to learn the layer weights that minimize the loss function; updating the policy weights associated with the policy model to maximize an evaluation metric for the loss function.

12. The layer weights of the deep learning model are Encoder weights, the source classifier layer weights, or A target classifier layer weight.

13. The system described in claim 11 or 12, wherein the policy model includes a reinforcement learning based policy model.

14. The system described in any one of claims 11 to 13, wherein the L2TL architecture comprises an encoder network layer, a source classifier layer, and a target classifier layer.

15. A system described in any one of claims 11 to 14, wherein the L2TL architecture and the deep learning model reside in a remote computing environment.

16. The system of claim 11, wherein the source scaling coefficients include iteration-dependent source scaling coefficients.

17. A system described in any one of claims 11 to 16, wherein the target scaling coefficients include iteration-dependent target scaling coefficients.

18. A system as described in any one of claims 11 to 17, wherein the policy model is fixed during execution of a first stage of the multiple learning iterations.

19. The system described in any one of claims 11 to 18, wherein the following operations further include an operation of training the policy model using a policy gradient on a target evaluation dataset during a second stage of each of the multiple learning iterations to calculate a reward that maximizes the evaluation metric for the loss function.

20. The system of claim 19, wherein the evaluation metric quantifies the performance of the deep learning model on the target evaluation dataset.

21. A program for causing data processing hardware to carry out the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Clustering device and machine learning device

    WO2016158768A1