Machine learning models with conditional execution of multiple processing tasks

By introducing execution instructions into the machine learning model to control the execution of specific parts of the task, it solves the problem that existing models are difficult to efficiently handle multiple tasks, and achieves optimal utilization of resources and improvement in efficiency.

CN111985637BActive Publication Date: 2024-09-06APPLE INC
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202010437644.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-05-19
Filing Date
2020-05-21
Publication Date
2024-09-06
Estimated Expiration
2040-05-21

AI Technical Summary

Technical Problem

Existing machine learning models are usually configured to perform a single task, making it difficult to efficiently handle multiple processing tasks, especially when there is overlap or redundancy between tasks, resulting in resource waste and inefficiency.

Method used

A trained machine learning model including common parts and task-specific parts is used to control which task-specific parts participate in processing by executing instructions to achieve conditional, orderly or parallel execution of tasks and reduce unnecessary computing resource usage.

Benefits of technology

Improves the efficiency of processing multiple tasks, avoids redundant calculations, and optimizes resource utilization, especially when there is overlap or redundancy between tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111985637B_ABST
    Figure CN111985637B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, which includes receiving input data at a trained machine learning model including a common part and a task-specific part, receiving an execution instruction that identifies one or more processing tasks to be performed, processing the input data using the common part of the trained machine learning model to generate intermediate data, and processing the intermediate data using one or more of the task-specific parts of the trained machine learning model based on the execution instruction to generate one or more outputs.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the benefit of U.S. Patent Application Serial No. 62 / 850,618, filed May 21, 2019, which is hereby incorporated by reference in its entirety for all purposes. Technical Field

[0003] The present disclosure relates to a machine learning model with conditional execution of multiple processing tasks. Background Art

[0004] Machine learning models such as deep neural networks are typically configured to perform a single task. For example, when three processing tasks are to be performed using a set of input data, the three tasks are typically performed by three neural networks, each processing one of the tasks. Summary of the invention

[0005] One aspect of the present disclosure is a method comprising receiving input data at a trained machine learning model including a common portion and a task-specific portion, receiving execution instructions identifying one or more processing tasks to be performed, processing the input data using the common portion of the trained machine learning model to produce intermediate data, and processing the intermediate data using one or more of the task-specific portions of the trained machine learning model based on the execution instructions to produce one or more outputs.

[0006] In some specific implementations of the method, processing intermediate data using one or more of the task-specific portions of the trained machine learning model based on execution instructions includes evaluating conditional instructions for each of the task-specific portions of the trained machine learning model to determine whether to initiate execution of each of the task-specific portions of the trained machine learning model.

[0007] In some specific implementations of the method, processing the intermediate data using one or more of the task-specific portions of the trained machine learning model based on the execution instructions includes causing the execution of one or more of the task-specific portions of the trained machine learning model based on the execution instructions.

[0008] In some specific implementations of the method, processing intermediate data using one or more of the task-specific portions of the trained machine learning model based on the execution instructions includes suppressing execution of one or more of the task-specific portions of the trained machine learning model based on the execution instructions.

[0009] In some embodiments of the method, processing the intermediate data using one or more of the task-specific portions of the trained machine learning model based on the execution instructions includes loading only one or more of the task-specific portions of the trained machine learning model identified by the execution instructions.

[0010] In some embodiments of the method, processing the intermediate data using one or more of the task-specific portions of the trained machine learning model based on the execution instructions includes offloading at least a portion of the task-specific portions of the trained machine learning model.

[0011] The method may also include defining a linear execution order based on the execution instructions including one or more of the common portion of the trained machine learning model and the task-specific portion of the trained machine learning model. In such a specific implementation, processing input data using the common portion of the trained machine learning model and processing intermediate data using one or more of the task-specific portion of the trained machine learning model are performed according to the linear execution order.

[0012] In some specific implementations of the method, one or more of the task-specific portions of the trained machine learning model include a first task-specific portion of the trained machine learning model and a second task-specific portion of the trained machine learning model, and processing intermediate data using one or more of the task-specific portions of the trained machine learning model based on execution instructions includes sequentially executing the first task-specific portion of the trained machine learning model and the second task-specific portion of the trained machine learning model.

[0013] In some specific implementations of the method, one or more of the task-specific portions of the trained machine learning model include a first task-specific portion of the trained machine learning model and a second task-specific portion of the trained machine learning model, and processing intermediate data using one or more of the task-specific portions of the trained machine learning model based on execution instructions includes executing the first task-specific portion of the trained machine learning model and the second task-specific portion of the trained machine learning model in parallel.

[0014] Another aspect of the present disclosure is a non-transitory computer-readable storage device including program instructions that can be executed by one or more processors. The program instructions, when executed, cause the one or more processors to perform operations. The operations include receiving input data at a trained machine learning model including a common portion and a task-specific portion, receiving an execution instruction that identifies one or more processing tasks to be performed, processing the input data using the common portion of the trained machine learning model to generate intermediate data, and processing the intermediate data using one or more of the task-specific portions of the trained machine learning model based on the execution instruction to generate one or more outputs.

[0015] Another aspect of the present disclosure is a system including a memory and a processor. The processor is configured to execute instructions stored in the memory. These instructions, when executed by the processor, cause the processor to receive input data at a trained machine learning model including a common portion and a task-specific portion, receive an execution instruction to identify one or more processing tasks to be performed, process the input data using the common portion of the trained machine learning model to generate intermediate data, and process the intermediate data using one or more of the task-specific portions of the trained machine learning model based on the execution instruction to generate one or more outputs. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a block diagram illustrating a processing system including a trained machine learning model.

[0017] Figure 2 is a diagram showing an example of the functional relationships and data dependencies between the various parts of a specific implementation of a trained machine learning model.

[0018] Figure 3 is a flowchart illustrating a first example of a procedure for performing a processing task.

[0019] Figure 4 is a flowchart illustrating a second example of a procedure for performing a processing task.

[0020] Figure 5 is a diagram showing an example of a hardware configuration for a computing device. DETAILED DESCRIPTION

[0021] When performing multiple processing tasks using separate neural networks (e.g., deep neural networks), each processing task has its own memory footprint and may need to be processed serially. Some processing tasks may be redundant when related tasks use a common set of input data or a set of input data that overlaps significantly. For example, each network may perform a set of similar processing operations before performing different processing operations specific to the corresponding processing task.

[0022] The systems and methods described herein relate to a neural network capable of performing two or more processing tasks using a set of input data and a common set of initial layers. An initial portion of the neural network performs processing operations common to all of the two or more processing tasks. The output of the initial portion of the input data is provided as input to two or more network portions, each of which performs fewer processing operations than required for all of the processing tasks. The network portions are conditionally executed. If one of the processing tasks does not require processing with respect to a particular set of input data, the processing task may be skipped or otherwise excluded from execution.

[0023] Figure 1 1 is a block diagram illustrating a processing system 100. The processing system 100 utilizes input data 102 to generate output 104 using a trained machine learning model 106. The operation of the trained machine learning model 106 is controlled by execution instructions 108. As will be explained herein, the execution instructions 108 control how the input data 102 is processed by a common portion 110 of the trained machine learning model 106 and a task-specific portion 112 of the trained machine learning model 106. During operation of the trained machine learning model 106, the common portion 110 of the trained machine learning model 106 and the task-specific portion 112 of the trained machine learning model 106 may generate intermediate data 114, which may be saved and loaded as needed by the trained machine learning model 106.

[0024] Input data 102 is a data item or data collection stored in a format that can be processed by trained machine learning model 106. Input data 102 can be provided directly to trained machine learning model 106, or can be subjected to one or more processing operations before being used by trained machine learning model 106. Many types of information can be used as or included in input data 102 depending on the processing task that processing system 100 is configured to perform. For example, input data 102 can be or include images in specific implementations where the processing task includes image analysis tasks such as object detection (e.g., a digital image defined by an array of pixels, each pixel having a color represented by a component value or by an index value).

[0025] The output 104 is the result obtained by the processing tasks performed by the processing system 100, and these results depend on the input data. The output 104 is information that can be understood by a human operator or a high-level processing task, and the information is intended to be utilized by other processing outside the processing system 100 or by a human operator. The output 104 can be verifiable relative to an objective standard to allow the output 104 to be evaluated for correctness. For example, in a specific implementation in which the processing system 100 is configured to detect objects in an image, the output 104 may include a label (e.g., descriptive text) identifying the type of object present in the image and the location (e.g., center point or bounding box) of the image relative to where the object is located.

[0026] The processing system 100 may be used to perform a plurality of processing tasks. During a particular instance of processing input data 102 by the processing system 100, a set of one or more processing tasks may be selected for execution using the execution instructions 108, and thus, the output 104 produced by execution of the processing system 100 depends on the particular processing tasks performed during execution of the processing system 100.

[0027] The processing system 100 uses the trained machine learning model 106 to perform a plurality of processing tasks according to the execution instructions 108. The trained machine learning model 106 includes a common portion 110 and a task-specific portion 112. The common portion 110 and the task-specific portion 112 are each a group of one or more operations that are grouped according to their relevance to the processing tasks to be performed by the processing system 100. The common portion 110 of the machine learning model 106 includes operations related to all tasks to be performed by the processing system 100. The task-specific portions 112 each include one or more operations related to a single processing task to be performed by the processing system 100 or related to two or more processing tasks to be performed by the processing system 100.

[0028] For example, the trained machine learning model 106 can be a deep neural network, where the common portion 110 of the trained machine learning model 106 has one or more layers of processing units (e.g., neurons) and the task-specific portions 112 of the trained machine learning model 106 each have one or more layers of processing units (e.g., neurons). One or more layers of the common portion 110 of the trained machine learning model 106 include an input layer configured to receive input data 102. At least a portion of the task-specific portion 112 of the trained machine learning model 106 includes an output layer configured to produce one or more outputs 104.

[0029] During operation of the processing system 100, the trained machine learning model 106 may generate intermediate data 114. The intermediate data 114 is output generated by a portion of the trained machine learning model 106, such as the common portion 110 or the task-specific portion 112 of the trained machine learning model 106. However, the intermediate data 114 is distinguishable from the output 104 because the information contained in the intermediate data 114 is not readily understandable by a human or a system other than the trained machine learning model 106, and does not represent results intended for any processing task. Instead, the intermediate data 114 includes values ​​generated by a portion of the trained machine learning model 106, such as the common portion 110 or one of the task-specific portions 112, and is intended to be further processed by one or more of the task-specific portions 112 of the trained machine learning model 106. For example, the intermediate data 114 may include values ​​output by a processing unit of a layer (e.g., a hidden layer) included in the common portion 110 of the trained machine learning model 106 or in a task-specific portion 112 of the trained machine learning model 106 (e.g., values ​​produced by a neuron before or after being modified by an activation function).

[0030] Conventional training techniques may be used to perform training of the trained machine learning model 106. The common portion 110 and the task-specific portion 112 may later be defined by determining the correlation boundaries between the portions of the trained machine learning model 106.

[0031] Figure 2 is a diagram showing an example of functional relationships and data dependencies between various parts of an example of a specific implementation of the trained machine learning model 106. In the illustrated example, the trained machine learning model 106 is configured to perform three different processing tasks, which are referred to herein as a first processing task, a second processing task, and a third processing task. When the trained machine learning model 106 is executed (i.e., processing of input data is initiated), some or all of these processing tasks may be selected for use, and unselected processing tasks are not executed.

[0032] In this example, the trained machine learning model 106 includes a common portion 110 and a task-specific portion 112, as described above. The task-specific portion 112 of the trained machine learning model includes a first task-specific portion 212a, a second task-specific portion 212b, a third task-specific portion 212c, and a fourth task-specific portion 212d. The intermediate data 114 includes a first intermediate data 214a and a second intermediate data 214b. The output 104 includes a first output 204a associated with a first processing task, a second output 204b associated with a second processing task, and a third output 204c associated with a third processing task.

[0033] The common part 110 receives the input data 102 as input and processes it. To process the input data 102, the common part 110 can be configured as part of a deep neural network, including multiple layers (e.g., input layer and one or more hidden layers) of processing elements (e.g., neurons). The output of the common part 110 is the first intermediate data 214a.

[0034] The first task-specific part 212a receives the first intermediate data 214a as input and processes it. To process the first intermediate data 214a, the first task-specific part 212a may be part of a deep neural network, including one or more layers (e.g., hidden layers and output layers) of processing elements (e.g., neurons). The output of the first task-specific part 212a is the first output 204a.

[0035] The second task-specific part 212b receives the first intermediate data 214a as input and processes it. To process the first intermediate data 214a, the second task-specific part 212b may be part of a deep neural network, including one or more layers (e.g., hidden layers) of processing elements (e.g., neurons). The output of the second task-specific part 212b is the second intermediate data 214b.

[0036] The third task-specific portion 212c receives the second intermediate data 214b as input and processes it. To process the second intermediate data 214b, the third task-specific portion 212c may be part of a deep neural network, including one or more layers (e.g., hidden layers and output layers) of processing elements (e.g., neurons). The output of the third task-specific portion 212c is the second output 204b.

[0037] The fourth task-specific part 212d receives the second intermediate data 214b as input and processes it. To process the second intermediate data 214b, the fourth task-specific part 212d may be part of a deep neural network, including one or more layers (e.g., hidden layers and output layers) of processing elements (e.g., neurons). The output of the fourth task-specific part 212d is the third output 204c.

[0038] As can be seen from the foregoing, the first processing task, the second processing task and the third processing task each include a set of different operations, but there is a certain overlap between them. The first processing operation requires the execution of the common part 110 and the first task specific part 212a to produce the first output 204a. The second processing operation requires the execution of the common part 110, the second task specific part 212b and the third task specific part 212c to produce the second output 204b. The third processing operation requires the execution of the common part 110, the second task specific part 212b and the fourth task specific part 212d to produce the third output 204c. Therefore, the common part 110 is executed as long as any processing task is executed, the first task specific part 212a is executed only when the first processing task is executed, the second task specific part 212b is executed when any of the second processing task or the third processing task is executed, the third task specific part 212c is executed only when the second processing task is executed, and the fourth task specific part 212d is executed only when the third processing task is executed.

[0039] The execution instructions 108 may include information indicating which processing tasks are to be performed. During operation of the trained machine learning model 106, the execution instructions 108 are used to control whether each task-specific portion 112 of the trained machine learning model 106 is executed. The execution instructions need not include a direct selection of any specific portion of the trained machine learning model 106. For example, the execution instructions 108 may describe the processing tasks to be performed based on a list of outputs of interest, and the execution of the task-specific portions of the trained machine learning model 106 may be controlled based on the execution instructions 108 to execute those task-specific portions of the trained machine learning model 106 required to produce the outputs specified by the execution instructions 108.

[0040] For example, the execution instructions 108 may indicate which processing tasks are to be executed, and conditional instructions (e.g., if statements or other conditional operations) may be evaluated to determine whether to execute each task-specific portion in a serial operation in which portions of the machine learning model 106 are executed one at a time in an order determined by data dependencies. Thus, in the current example, the common portion 110 is executed, the first conditional instruction causes execution of the first task-specific portion 212a if the first processing task is active, the second conditional instruction causes execution of the second task-specific portion 212b if either the second processing task or the third processing task is active, the third conditional instruction causes execution of the third task-specific portion 212c if the second processing task is active, and the fourth conditional instruction causes execution of the fourth task-specific portion 212d if the third processing task is active.

[0041] As another example, the execution instructions 108 may indicate which processing tasks are to be performed, and the execution instructions 108 are used to configure the trained machine learning model 106 before execution by loading and / or unloading portions of the trained machine learning model 106 based on the execution instructions 108. This results in a linear program for every possible combination of processing tasks, and the execution instructions 108 only need to be evaluated once before the trained machine learning model 106 is executed.

[0042] Therefore, in the current example, if only the first processing task is to be performed, the common part 110 and the first task-specific part 212a are loaded, all other parts are unloaded, and then the trained machine learning model is executed to process the input data 102 and produce the first output 204a. If only the second processing task is to be performed, the common part 110, the second task-specific part 212b, and the third task-specific part 212c are loaded, all other parts are unloaded, and then the trained machine learning model is executed to process the input data 102 and produce the second output 204b. If only the third processing task is to be performed, the common part 110, the second task-specific part 212b, and the fourth task-specific part 212d are loaded, all other parts are unloaded, and then the trained machine learning model is executed to process the input data 102 and produce the third output 204c. If the first processing task and the second processing task are to be performed, the common part 110, the first task-specific part 212a, the second task-specific part 212b, and the third task-specific part 212c are loaded, all other parts are unloaded, and then the trained machine learning model is executed to process the input data 102 and generate the first output 204a and the second output 204b. If the first processing task and the third processing task are to be performed, the common part 110, the first task-specific part 212a, the second task-specific part 212b, and the fourth task-specific part 212d are loaded, all other parts are unloaded, and then the trained machine learning model is executed to process the input data 102 and generate the first output 204a and the third output 204c. If the second processing task and the third processing task are to be performed, the common part 110, the second task-specific part 212b, the third task-specific part 212c, and the fourth task-specific part 212d are loaded, all other parts are unloaded, and then the trained machine learning model is executed to process the input data 102 and generate the second output 204b and the third output 204c. If the first processing task, the second processing task and the third processing task are to be performed, the common part 110, the first task specific part 212a, the second task specific part 212b, the third task specific part 212c and the fourth task specific part 212d are loaded, and then the trained machine learning model is executed to process the input data 102 and generate a first output 204a, a second output 204b and a third output 204c.

[0043] In some implementations, the various parts of the machine learning model 106 are all executed sequentially. In other implementations, the various parts of the machine learning model 106 may be executed in parallel. Parallel execution may be performed using a single processor or multiple processors, and / or using a single computing device or multiple computing devices. In the current example, if the first processing task and the second processing task are active, the common portion 110 is executed and the first intermediate data 214a is generated and stored. As computing resources become available, the tasks associated with each of the first processing task and the second processing task can be executed in parallel. Specifically, when the first processing resource (e.g., one or more processors or processing cores) becomes available, the first processing task can be continued by starting the execution of the first task-specific portion 212a using the first intermediate data 214a. When the second processing resource becomes available, the second processing task can be continued by executing the second task-specific portion 212b and the third task-specific portion 212c in parallel with the execution of the first task-specific portion 212a.

[0044] Figure 3 320 for performing a processing task. The process 320 may be implemented using a computing device. For example, the computing device may include a processor, a memory, and computer-interpretable instructions stored in the memory and accessible by the processor, where the instructions, when executed by the processor, cause the processor to perform the operations of the process 320. In some implementations, the process 320 is implemented in the form of a computer-readable storage device that includes computer-interpretable program instructions that, when executed, cause the operations of the process 320.

[0045] Operation 321 includes receiving input data 102 at a trained machine learning model 106, the trained machine learning model including a common portion 110 and a task-specific portion 112. As previously described, many different types of data may be or be included in the input data 102. For example, the input data 102 may be received by passing in a function call, by accessing from a storage device, or received in transit.

[0046] Operation 322 includes receiving execution instructions 108. Execution instructions 108 identify one or more processing tasks to be performed by the trained machine learning model, as described above. Execution instructions 108 can be data in any form. For example, input data 102 can be received by passing in a function call, by accessing from a storage device, or received in transit.

[0047] Operation 323 includes processing the input data to generate intermediate data using the common portion 110 of the trained machine learning model 106. The operation of the common portion 110 is as previously described.

[0048] Operation 324 includes evaluating one of the task-specific portions 112 of the trained machine learning model 106 to determine whether it is to be executed. Operation 324 is performed using the execution instructions 108. If the determination indicates that the evaluated task-specific portion 112 should be executed, the process proceeds to operation 325. Otherwise, the process proceeds to operation 326.

[0049] By advancing the process to operation 325, the evaluation made in operation 324 causes one or more of the task-specific portions 112 of the trained machine learning model 106 to execute based on the execution instructions 108. By skipping operation 325 and advancing the process to operation 326, the evaluation made in operation 324 inhibits one or more of the task-specific portions 112 of the trained machine learning model 106 from executing based on the execution instructions 108.

[0050] Operation 324 may include evaluating the conditional instructions for each of the task-specific portions 112 of the trained machine learning model 106 to determine whether to initiate execution of each of the task-specific portions 112 of the trained machine learning model 106. The evaluation may be performed using information contained in the execution instructions 108. For example, the execution instructions 108 may indicate that a first processing operation is active, and the conditional instructions may state that if the first processing operation is active, then the task-specific portion 112 currently being evaluated should be executed.

[0051] Operation 325 includes processing the intermediate data using the task-specific portion 112 of the trained machine learning model 106 according to the determination made in operation 324 based on the execution instructions 108. The task-specific portion 112 is processed to generate another instance of the intermediate data 114 or to generate one of the outputs 104 according to the operations included in the task-specific portion 112 currently being evaluated and based on the overall configuration of the trained machine learning model 106. The operation of the task-specific portion 112 is as previously described.

[0052] Operations 324 and 325 together cause the trained machine learning model 106 to process the intermediate data 114 based on the execution instructions 108 using one or more of the task-specific portions 112 of the trained machine learning model 106 to produce one or more of the outputs 104 through a single iteration or multiple iterations.

[0053] By advancing the process to operation 325, the evaluation made in operation 324 causes one or more of the task-specific portions 112 of the trained machine learning model 106 to execute based on the execution instructions 108. By skipping operation 325 and advancing the process to operation 326, the evaluation made in operation 324 inhibits one or more of the task-specific portions 112 of the trained machine learning model 106 from executing based on the execution instructions 108.

[0054] Operation 324 may include evaluating the conditional instructions for each of the task-specific portions 112 of the trained machine learning model 106 to determine whether to initiate execution of each of the task-specific portions 112 of the trained machine learning model 106. The evaluation may be performed using information contained in the execution instructions 108. For example, the execution instructions 108 may indicate that a first processing operation is active, and the conditional instructions may state that if the first processing operation is active, then the task-specific portion 112 currently being evaluated should be executed.

[0055] In some implementations of operations 324 and 325, processing the intermediate data 114 using one or more of the task-specific portions 112 of the trained machine learning model 106 based on the execution instructions 108 includes loading only one or more of the task-specific portions 112 of the trained machine learning model 106 that are identified by the execution instructions 108. The identification may explicitly identify the portion of the model (e.g., by an identification code) or may implicitly identify the portion of the model (such as by identifying a processing task that requires execution of the portion of the model).

[0056] In some implementations of operations 324 and 325 , processing the intermediate data 114 using one or more of the task-specific portions 112 of the trained machine learning model 106 based on the execution instruction 108 includes unloading at least a portion of the task-specific portions 112 of the trained machine learning model 106 .

[0057] In operation 326, it is determined whether there are more task-specific portions 112 to be processed. If there are more task-specific portions 112 to be processed, then in operation 327 the next task-specific portion is selected and the process returns to operation 324. If there are no more task-specific portions to be processed, then the process proceeds to operation 328, where the output 104 is returned to the process that initiates execution of the trained machine learning model 106. Returning the output 104 may include, for example, storing, displaying, transmitting, or further processing the output 104.

[0058] In some specific implementations of process 320, one or more of the task-specific portions 112 of the trained machine learning model 106 include a first task-specific portion of the trained machine learning model 106 and a second task-specific portion of the trained machine learning model 106, and processing intermediate data 114 using one or more of the task-specific portions of the trained machine learning model 106 based on execution instructions 108 includes sequentially executing the first task-specific portion of the trained machine learning model 106 and the second task-specific portion of the trained machine learning model 106.

[0059] In some specific implementations of process 320, one or more of the task-specific portions 112 of the trained machine learning model 106 include a first task-specific portion of the trained machine learning model 106 and a second task-specific portion of the trained machine learning model 106, and processing intermediate data 114 using one or more of the task-specific portions 112 of the trained machine learning model 106 based on the execution instruction 108 includes executing the first task-specific portion of the trained machine learning model 106 and the second task-specific portion of the trained machine learning model 106 in parallel.

[0060] Figure 4 430 for performing a processing task. The process 430 may be implemented using a computing device. For example, the computing device may include a processor, a memory, and computer-interpretable instructions stored in the memory and accessible by the processor, where the instructions, when executed by the processor, cause the processor to perform the operations of the process 430. In some implementations, the process 430 is implemented in the form of a computer-readable storage device that includes computer-interpretable program instructions that, when executed, cause the operations of the process 430.

[0061] Operation 431 includes receiving input data 102 at a trained machine learning model 106, the trained machine learning model including a common portion 110 and a task-specific portion 112. As previously described, many different types of data may be or be included in the input data 102. For example, the input data 102 may be received by passing in a function call, by accessing from a storage device, or received in transit.

[0062] Operation 432 includes receiving execution instructions 108. Execution instructions 108 identify one or more processing tasks to be performed by the trained machine learning model, as described above. Execution instructions 108 can be data in any form. For example, input data 102 can be received by passing in a function call, by accessing from a storage device, or received in transit.

[0063] Operation 433 includes configuring the machine learning model 106 using the execution instructions 108. The machine learning model 106 may be configured so that it includes only the portions required to perform the processing task to be performed by the trained machine learning model 106, as represented by the execution instructions 108. Configuring the machine learning model 106 in operation 433 may include conditionally loading or unloading the required portions of the trained machine learning model. Configuring the machine learning model 106 in operation 433 may include defining a version of the trained machine learning model 106 that requires the required portions as described by the execution instructions. The configuration of the machine learning model 106 is performed according to operation 433 before the time when the input data 102 is processed using the common portion 110 and the task-specific portion 112 begins. Therefore, during the processing of the input data 102 using the common portion 110 and the task-specific portion 112, there is no need to evaluate the conditional operator to determine which portions should be executed.

[0064] Operation 434 includes processing the input data to generate intermediate data using the common portion 110 of the trained machine learning model 106. The operation of the common portion 110 is as previously described.

[0065] Operation 435 includes processing the intermediate data using the task-specific portion 112 of the trained machine learning model 106 according to the determination made in operation 434 based on the execution instructions 108. The task-specific portion 112 is processed to generate another instance of the intermediate data 114 or to generate one of the outputs 104 according to the operations included in the task-specific portion 112 currently being evaluated and based on the overall configuration of the trained machine learning model 106. The operation of the task-specific portion 112 is as previously described.

[0066] Operations 433 and 435 together cause the trained machine learning model 106 to process the intermediate data 114 based on the execution instructions 108 using one or more of the task-specific portions 112 of the trained machine learning model 106 to produce one or more of the outputs 104 through a single iteration or multiple iterations.

[0067] In some implementations of operations 433 and 435, processing the intermediate data 114 using one or more of the task-specific portions 112 of the trained machine learning model 106 based on the execution instructions 108 includes loading only one or more of the task-specific portions 112 of the trained machine learning model 106 that are identified by the execution instructions 108. In operation 433, the loading is performed during configuration of the trained machine learning model 106. The identification may explicitly identify the portion of the model (e.g., by an identification code) or may implicitly identify the portion of the model (such as by identifying a processing task that requires execution of the portion of the model).

[0068] In some implementations of operations 433 and 435, processing the intermediate data 114 using one or more of the task-specific portions 112 of the trained machine learning model 106 based on the execution instructions 108 includes unloading at least a portion of the task-specific portions 112 of the trained machine learning model 106. In operation 433, the unloading is performed during configuration of the trained machine learning model 106.

[0069] In some implementations, configuring the trained machine learning model 106 in operation 433 may also include defining, based on the execution instructions, a linear execution order including one or more of the common portion 110 of the trained machine learning model 106 and the task-specific portion 112 of the trained machine learning model 106. In such implementations, processing the input data 102 using the common portion of the trained machine learning model and processing the intermediate data 114 using one or more of the task-specific portion 112 of the trained machine learning model 106 in operation 434 are performed according to the linear execution order.

[0070] In operation 436, it is determined whether there are more task-specific portions 112 to be processed. If there are more task-specific portions 112 to be processed, then in operation 437 the next task-specific portion is selected and the process returns to operation 435. If there are no more task-specific portions to be processed, then the process proceeds to operation 438, where the output 104 is returned to the process that initiates execution of the trained machine learning model 106. Returning the output 104 may include, for example, storing, displaying, transmitting, or further processing the output 104.

[0071] In some specific implementations of process 430, one or more of the task-specific portions 112 of the trained machine learning model 106 include a first task-specific portion of the trained machine learning model 106 and a second task-specific portion of the trained machine learning model 106, and processing the intermediate data 114 using one or more of the task-specific portions 112 of the trained machine learning model 106 based on the execution instruction 108 includes sequentially executing the first task-specific portion of the trained machine learning model 106 and the second task-specific portion of the trained machine learning model 106.

[0072] In some specific implementations of process 430, one or more of the task-specific portions 112 of the trained machine learning model 106 include a first task-specific portion of the trained machine learning model 106 and a second task-specific portion of the trained machine learning model 106, and processing the intermediate data 114 using one or more of the task-specific portions 112 of the trained machine learning model 106 based on the execution instruction 108 includes executing the first task-specific portion of the trained machine learning model 106 and the second task-specific portion of the trained machine learning model 106 in parallel.

[0073] Figure 5 540 may include a processor 541, a memory 542, a storage device 543, one or more input devices 544, and one or more output devices 545. The computing device 540 may include a bus 546 or similar device to interconnect components for communication. The processor 541 is operable to execute computer program instructions and perform operations described by the computer program instructions. For example, the processor 541 may be a conventional device such as a central processing unit. The memory 542 may be a volatile, high-speed, short-term information storage device such as a random access memory module. The storage device 543 may be a non-volatile information storage device such as a hard disk or a solid-state drive. The input device 544 may include any type of human-computer interface, such as a button, a switch, a keyboard, a mouse, a touch screen input device, a gesture input device, or an audio input device. The output device 545 may include any type of device operable to provide an indication of an operating state to a user, such as a display screen or an audio output.

[0074] As described above, one aspect of the present technology is the collection and use of data that can be obtained from various sources for processing by a neural network at training time and at runtime. The present disclosure contemplates that, in some instances, such collected data may include personal information data that uniquely identifies or can be used to contact or locate a specific person. Such personal information data may include demographic data, location-based data, phone numbers, email addresses, twitter IDs, home addresses, data or records related to a user's health or fitness level (e.g., vital sign measurements, medication information, exercise information), date of birth, or any other identifying information or personal information.

[0075] The present disclosure recognizes that the use of such personal information data in the present technology can be used to benefit the user. For example, the personal information data can be used to train a neural network to perform multiple processing tasks. In addition, the present disclosure also anticipates other uses of personal information data that benefit the user. For example, health and fitness data can be used to provide insights into the user's overall health, or can be used as positive feedback to individuals using technology to pursue health goals.

[0076] This disclosure envisions that entities responsible for collecting, analyzing, disclosing, transmitting, storing or otherwise using such personal information data will comply with established privacy policies and / or privacy practices. Specifically, such entities should implement and adhere to privacy policies and practices that are recognized as meeting or exceeding industry or government requirements for maintaining the privacy and security of personal information data. Such policies should be easily accessible to users and should be updated as the collection and / or use of data changes. Personal information from users should be collected for legitimate and reasonable purposes of the entity and not shared or sold outside of these legitimate uses. In addition, such collection / sharing should be performed after receiving informed consent from the user. In addition, such entities should consider taking any necessary steps to defend and secure access to such personal information data and ensure that others who have access to personal information data comply with their privacy policies and processes. In addition, such entities may subject themselves to third-party assessments to demonstrate their compliance with widely accepted privacy policies and practices. In addition, policies and practices should be adjusted to specific types of personal information data collected and / or accessed, and to applicable laws and standards including specific considerations of jurisdiction. For example, in the United States, the collection or access of certain health data may be governed by federal and / or state laws, such as the Health Insurance Portability and Accountability Act (HIPAA), while health data in other countries may be subject to other regulations and policies and should be handled accordingly. Therefore, different privacy practices should be maintained in each country for different types of personal data.

[0077] Regardless of the foregoing, the present disclosure also contemplates implementation schemes in which users selectively block the use or access of personal information data. That is, the present disclosure contemplates that hardware elements and / or software elements may be provided to prevent or block access to such personal information data. For example, a system using the present technology may be configured to allow a user to choose to "opt in" or "opt out" at any time during or after registration for a service to participate in the collection of personal information data. As another example, a user may choose not to provide personal information to a service using the present technology. As another example, a user may choose to limit the length of time that personal information is maintained by a service using the present technology, or a user may completely prohibit personal information from being used by a system using the present technology. In addition to providing "opt-in" and "opt-out" options, the present disclosure contemplates providing notifications related to access or use of personal information. For example, a user may be notified that their personal information data will be accessed when downloading an application, and then the user may be reminded again just before the personal information data is accessed by the application.

[0078] In addition, it is an object of the present disclosure that personal information data should be managed and processed to minimize the risk of unintentional or unauthorized access or use. Risks can be minimized by limiting data collection and deleting data once it is no longer needed. In addition, and when applicable, including in certain health-related applications, data de-identification can be used to protect the privacy of users. De-identification can be facilitated by removing specific identifiers (e.g., date of birth, etc.), controlling the amount or specificity of stored data (e.g., collecting location data at the city level rather than at the address level), controlling how data is stored (e.g., aggregating data between users), and / or other methods when appropriate.

[0079] Thus, while the present disclosure broadly covers the use of personal information data to implement one or more of the various disclosed embodiments, the present disclosure also contemplates that various embodiments may also be implemented without access to such personal information data. That is, various embodiments of the present technology will not fail to function properly due to the lack of all or a portion of such personal information data. For example, neural networks may be trained and used based on non-personal information data or an absolute minimum of personal information (e.g., content requested by a device associated with a user, other non-personal information available to a service using the present technology, or publicly available information).

Claims

1. A method for performing a processing task, comprising: receiving input data at a trained machine learning model comprising a common portion and a task-specific portion, wherein the input data comprises image data; receiving, at the trained machine learning model, execution instructions identifying one or more processing tasks to be performed; processing the input data using the common portion of the trained machine learning model to generate intermediate data; as well as Process the intermediate data using one or more of the task-specific portions of the trained machine learning model corresponding to the one or more processing tasks to be performed identified by the execution instructions to produce one or more outputs, wherein processing the intermediate data using the one or more of the task-specific portions of the trained machine learning model based on the execution instructions includes loading only the one or more of the task-specific portions of the trained machine learning model identified by the execution instructions.

2. A method according to claim 1, wherein processing the intermediate data using one or more of the task-specific parts of the trained machine learning model based on the execution instruction includes evaluating conditional instructions for each of the task-specific parts of the trained machine learning model to determine whether to initiate execution of each of the task-specific parts of the trained machine learning model.

3. A method according to claim 1, wherein processing the intermediate data using one or more of the task-specific parts of the trained machine learning model based on the execution instruction includes causing the execution of one or more of the task-specific parts of the trained machine learning model based on the execution instruction.

4. A method according to claim 1, wherein processing the intermediate data using one or more of the task-specific parts of the trained machine learning model based on the execution instruction includes suppressing the execution of one or more of the task-specific parts of the trained machine learning model based on the execution instruction.

5. A method according to claim 1, wherein processing the intermediate data using one or more of the task-specific portions of the trained machine learning model based on the execution instruction includes unloading at least a portion of the task-specific portions of the trained machine learning model.

6. The method according to claim 1, further comprising: A linear execution order of the common parts of the trained machine learning models and the one or more of the task-specific parts of the trained machine learning models is defined based on the execution instructions, wherein processing the input data using the common parts of the trained machine learning models and processing the intermediate data using the one or more of the task-specific parts of the trained machine learning models are performed according to the linear execution order.

7. A method according to claim 1, wherein the one or more of the task-specific parts of the trained machine learning model include a first task-specific part of the trained machine learning model and a second task-specific part of the trained machine learning model, and processing the intermediate data using the one or more of the task-specific parts of the trained machine learning model based on the execution instruction includes sequentially executing the first task-specific part of the trained machine learning model and the second task-specific part of the trained machine learning model.

8. A method according to claim 1, wherein the one or more of the task-specific parts of the trained machine learning model include a first task-specific part of the trained machine learning model and a second task-specific part of the trained machine learning model, and processing the intermediate data using the one or more of the task-specific parts of the trained machine learning model based on the execution instruction includes executing the first task-specific part of the trained machine learning model and the second task-specific part of the trained machine learning model in parallel.

9. A system for performing a processing task, comprising: Memory; as well as a processor configured to execute instructions stored in the memory, wherein the instructions, when executed by the processor, cause the processor to: receiving input data at a trained machine learning model comprising a common portion and a task-specific portion, wherein the input data comprises image data; receiving, at the trained machine learning model, execution instructions identifying one or more processing tasks to be performed; processing the input data using the common portion of the trained machine learning model to generate intermediate data; as well as Process the intermediate data using one or more of the task-specific portions of the trained machine learning model corresponding to the one or more processing tasks to be performed identified by the execution instructions to produce one or more outputs, wherein processing the intermediate data using the one or more of the task-specific portions of the trained machine learning model based on the execution instructions includes loading only the one or more of the task-specific portions of the trained machine learning model identified by the execution instructions.

10. A system according to claim 9, wherein processing the intermediate data using the one or more of the task-specific parts of the trained machine learning model based on the execution instruction includes evaluating conditional instructions for each of the task-specific parts of the trained machine learning model to determine whether to initiate execution of each of the task-specific parts of the trained machine learning model.

11. A system according to claim 9, wherein processing the intermediate data using the one or more of the task-specific parts of the trained machine learning model based on the execution instruction includes causing execution of one or more of the task-specific parts of the trained machine learning model based on the execution instruction.

12. A system according to claim 9, wherein processing the intermediate data using one or more of the task-specific parts of the trained machine learning model based on the execution instruction includes suppressing the execution of one or more of the task-specific parts of the trained machine learning model based on the execution instruction.

13. A system according to claim 9, wherein processing the intermediate data using one or more of the task-specific portions of the trained machine learning model based on the execution instruction includes unloading at least a portion of the task-specific portions of the trained machine learning model.

14. The system of claim 9, further comprising: A linear execution order of the common parts of the trained machine learning models and the one or more of the task-specific parts of the trained machine learning models is defined based on the execution instructions, wherein processing the input data using the common parts of the trained machine learning models and processing the intermediate data using the one or more of the task-specific parts of the trained machine learning models are performed according to the linear execution order.

15. A system according to claim 9, wherein the one or more of the task-specific parts of the trained machine learning model include a first task-specific part of the trained machine learning model and a second task-specific part of the trained machine learning model, and processing the intermediate data using the one or more of the task-specific parts of the trained machine learning model based on the execution instruction includes sequentially executing the first task-specific part of the trained machine learning model and the second task-specific part of the trained machine learning model.

16. A system according to claim 9, wherein the one or more of the task-specific parts of the trained machine learning model include a first task-specific part of the trained machine learning model and a second task-specific part of the trained machine learning model, and processing the intermediate data using the one or more of the task-specific parts of the trained machine learning model based on the execution instruction includes executing the first task-specific part of the trained machine learning model and the second task-specific part of the trained machine learning model in parallel.

Citation Information

Patent Citations

  • Adaptive and recursive filtering for sample submission

    CN105493095A

  • Method and system for executing machine learning prediction based on service level

    CN107273979A

  • Machine Learning Based Search Improvement

    CN107660284A

  • Training machine learning models on multiple machine learning tasks

    CN109690576A

  • Machine Learning Method to Identify Independent Tasks for Parallel Layout in Web Browsers

    US20120239598A1