Multi-task learning

By combining single-task neural networks in a multi-task learning system, efficient multi-task layers and single-task layers are generated, and the CKA similarity matrix is ​​used to optimize the neural network structure, which solves the problem of high computing resources and time consumption in the existing system, and achieves More efficient multitasking in vehicle systems.

CN118734933APending Publication Date: 2024-10-01FORD GLOBAL TECH LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410327388.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-28
Filing Date
2024-03-21
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing multi-task learning systems consume large amounts of computing resources and time when processing multiple neural network tasks, making it difficult to meet the needs of vehicle systems with limited computing resources and time.

Method used

Multi-task learning (MTL) neural network is used to generate a multi-task layer and a single-task layer, and the central kernel alignment (CKA) similarity matrix is ​​used to combine the single-task neural network to generate a more efficient MTL neural network, share computing resources, and reduce Store needs and deliver results in less time.

Benefits of technology

It achieves the same output as multiple single-task neural networks, but consumes less computing resources and time, and is suitable for vehicle systems with limited computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734933A_ABST
    Figure CN118734933A_ABST
Patent Text Reader

Abstract

The present disclosure provides "multitask learning". A computer includes a processor and a memory including instructions executable by the processor to execute a multi-task learning (MTL) neural network, the MTL neural network including a multi-task layer and a single-task layer, and configured to receive an image as an input to a first layer of the multi-tasking layers and to output a respective prediction for each of a plurality of tasks from a respective layer of the single-tasking layers. An activation tensor may be output from the multi-tasking layer and may be provided as an input to the single-tasking layer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a multi-task learning system. Background Art

[0002] The computer can be used to operate a system, including a vehicle, robot, drone, and / or object tracking system. Data, including images, can be acquired by sensors and processed using a computer to determine the position of the system with respect to objects in the environment surrounding the system. The computer can use the position data to determine a trajectory for moving the system in the environment. The computer can then determine control data to transmit to system components based on the determined trajectory to control the system components to move the system. Summary of the invention

[0003] Sensing systems (including vehicles, robots, drones, etc.) can operate by acquiring sensor data about the environment surrounding the system and processing the sensor data to determine a path on which to operate the system or part of the system. The sensor data can be processed to determine data about objects in the environment. Objects can include roads, buildings, conveyors, vehicles, pedestrians, manufactured parts, etc. A neural network can be used to process the sensor data to determine data about the environment surrounding the system. Image data is a type of sensor data that can include lidar data, radar data, ultrasonic data, and infrared data. For example, image data can be acquired by a camera.

[0004] Image data can be processed by a neural network to determine various types of data about objects in the system's surroundings. Processing image data to determine attributes of data such as the type of image data is referred to herein as a task. For example, a neural network can perform a semantic segmentation task, in which an image is divided into labeled regions. Labeled regions can include object labels such as "conveyor belt" and "parts" for robotic systems, and "roads," "vehicles," and "pedestrians" for vehicle systems. A neural network can determine object depth, in which the system typically determines the distance between the camera lens and the object position in the image based on data about sensor and lens geometry and the position and orientation of the camera relative to a ground plane (such as a road). Another typical task is key point detection, in which data points included in an object are determined in a repeatable and reliable manner. Key points can include facial feature points, such as eye centers and eye corners and lip corners, etc. Other key points can include vehicle feature points, such as wheel centers, lights, corners of car windows, etc.

[0005] A system can operate using the outputs from multiple neural network tasks. For example, a computer in a robot can use a neural network to perform a semantic segmentation task to locate a part on a conveyor belt. The robot computer can then use a second neural network to perform a depth task to determine the distance from a point on the robot to the part to determine the path on which to move the robot arm to pick up the part. The robot computer can then use a third neural network to perform a keypoint detection task to detect key points on the part to indicate how the gripper on the robot arm should be oriented to securely pick up the part. The computer in a vehicle can use the same three neural network tasks to locate other vehicles on the road using a semantic segmentation task, determine the distance to other vehicles using a depth task, and locate lane markings and road edges using a keypoint detection task. Based on the outputs from these three tasks, the computer in the vehicle can determine, for example, a vehicle path for operating the vehicle on a road in the presence of other vehicles. A vehicle is used herein as a non-limiting example of an embodiment of a sensing system.

[0006] Techniques described herein can determine and optimize a multi-task learning (MTL) neural network that can perform multiple neural network tasks with a single MTL neural network. Techniques described herein can determine which tasks can be combined into a single MTL neural network, and determine which parts of the MTL neural network can be shared between tasks. The MTL neural network can be trained to achieve the same results as multiple neural networks while consuming fewer computational resources, including less memory, while providing results in less time. Consuming fewer computational resources and providing results in less time can be beneficial for systems such as vehicles where computational resources and time may be limited.

[0007] A method is disclosed, comprising: performing a multi-task learning (MTL) neural network, the MTL neural network comprising a multi-task layer and a single-task layer, and being configured to receive an image as an input of a first layer in the multi-task layer and output a corresponding prediction for each of a plurality of tasks from a corresponding layer in the single-task layer, and wherein an activation tensor output from the multi-task layer is provided as an input of the single-task layer. The MTL may include a set of multi-task layers for the plurality of tasks. The multi-task layer may include a convolutional layer. The MTL may include a single-task layer for each of the plurality of tasks. The single-task layer may include a fully connected layer. The MTL neural network may be generated by training a single-task neural network for each of the plurality of tasks based on a subset of training images. The single-task neural networks may be combined into the MTL neural network by generating activation tensors from a subset of layers of the single-task neural network based on a subset of training images, generating a centered kernel alignment (CKA) similarity matrix for pairs of activation tensors from pairs of multi-task neural networks, and configuring the MTL neural network based on a metric determined from the CKA similarity matrix.

[0008] The optimal depth of the MTL neural network can be determined by determining a centered kernel alignment (CKA) similarity matrix on a combination of layers of the MTL neural network and plotting the value of a submatrix sum S for a submatrix of the CKA similarity matrix to determine depth redundancy. A vehicle path can be determined based on a prediction output from the MTL neural network. The vehicle can be operated by controlling vehicle propulsion, vehicle steering, and vehicle brakes based on the vehicle path. The optimal depth can be determined based on determining an inflection point in the submatrix sum graph. A task similarity metric can be determined by summing and normalizing the diagonal sum of the CKA similarity matrix. The task similarity metric can be the diagonal sum divided by the product of the tensor multiplied by the absolute value of the index. The task similarity metric can be compared to an empirically determined value.

[0009] A computer-readable medium is also disclosed, the computer-readable medium storing program instructions for performing some or all of the above method steps. A computer is also disclosed, the computer being programmed to perform some or all of the above method steps, the computer comprising a computer device, which is programmed to: perform a multi-task learning (MTL) neural network, the MTL neural network comprising a multi-task layer and a single-task layer, and configured to receive an image as an input of a first layer in the multi-task layer and output a corresponding prediction for each of a plurality of tasks from a corresponding layer in the single-task layer, and wherein the activation tensor output from the multi-task layer is provided as an input to the single-task layer. The MTL may include a set of multi-task layers for the plurality of tasks. The multi-task layer may include a convolutional layer. The MTL may include a single-task layer for each of the plurality of tasks. The single-task layer may include a fully connected layer. The MTL neural network may be generated by training a single-task neural network for each of the plurality of tasks based on a subset of training images. The single-task neural networks can be combined into an MTL neural network by generating activation tensors from a subset of layers of the single-task neural network based on a subset of training images, generating a centered kernel alignment (CKA) similarity matrix for pairs of activation tensors from pairs of multi-task neural networks, and configuring the MTL neural network based on a metric determined from the CKA similarity matrix.

[0010] The instructions may include additional instructions for performing the following operations: determining an optimal depth of the MTL neural network by determining a centered kernel alignment (CKA) similarity matrix on a combination of layers of the MTL neural network and plotting values ​​of submatrix sums S for submatrices of the CKA similarity matrix to determine depth redundancy. A vehicle path may be determined based on a prediction output from the MTL neural network. The vehicle may be operated by controlling vehicle propulsion, vehicle steering, and vehicle brakes based on the vehicle path. The optimal depth may be determined based on determining an inflection point in the submatrix sum graph. A task similarity metric may be determined by summing and normalizing the diagonal sum of the CKA similarity matrix. The task similarity metric may be the diagonal sum divided by the product of the tensor multiplied by the absolute value of the index. The task similarity metric may be compared to an empirically determined value. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 is a block diagram of an exemplary vehicle sensing system.

[0012] Figure 2 is a diagram of an exemplary neural network.

[0013] Figure 3 is a diagram of several examples of neural networks.

[0014] Figure 4 is a diagram of an exemplary multi-task learning (MTL) neural network.

[0015] Figure 5 is a diagram of an exemplary center kernel alignment (CKA) matrix.

[0016] Figure 6 is a graphical representation of the CKA diagonal sum matrix.

[0017] Figure 7 is an illustration of an exemplary CKA matrix for an MTL neural network.

[0018] Figure 8 is a graphical representation of the processing of the CKA matrix.

[0019] Fig. 9 is a flow chart of an exemplary process for determining a multi-task learning neural network.

[0020] Fig.10 is a flow chart of an exemplary process for operating a vehicle based on outputs from a multi-task neural network. DETAILED DESCRIPTION

[0021] Figure 1 1 is a diagram of a sensing system 100. The sensing system 100 includes a vehicle 110. One or more computing devices 115 of the vehicle 110 may receive data about the operation of the vehicle 110 from sensors 116. The computing device 115 may also provide control inputs to one or more electronic control units (ECUs) in the vehicle 110, such as a powertrain controller 112, a brake controller 113, and / or a steering controller 114. The system 100 may also include a server computer 120 that may communicate with the vehicle 110 via a network 130.

[0022] The computing device 115 includes a processor and memory such as are known. In addition, the memory includes one or more forms of computer-readable media and stores instructions that can be executed by the processor to perform various operations including as disclosed herein. For example, the computing device 115 may include programming to operate one or more of vehicle brakes, propulsion (i.e., controlling the acceleration of the vehicle 110 by controlling one or more of an internal combustion engine, an electric motor, a hybrid engine, etc.), steering, climate control, interior lights and / or exterior lights, etc., and determine whether and when the computing device 115 (rather than a human operator) controls such operations.

[0023] The computing device 115 may include more than one computing device (i.e., controllers included in the vehicle 110 for monitoring and / or controlling various vehicle components, etc. (i.e., propulsion controller 112, brake controller 113, steering controller 114, etc.)), or be communicatively coupled to the more than one computing device via a vehicle communication bus as further described below. The computing device 115 is typically arranged for communication over a vehicle communication network (i.e., including a bus in the vehicle 110, such as a controller area network (CAN), etc.); the vehicle 110 network may additionally or alternatively include, for example, known wired or wireless communication mechanisms, such as Ethernet or other communication protocols.

[0024] The computing device 115 may transmit messages to and / or receive messages from various devices in the vehicle (i.e., controllers, actuators, sensors (including sensor 116), etc.) via the vehicle network. Alternatively or additionally, where the computing device 115 actually includes multiple devices, the vehicle communication network may be used to communicate between the devices represented as computing device 115 in this disclosure. In addition, as mentioned below, various controllers and / or sensors (such as controllers 112, 113, 114 and / or sensor 116) may provide data to the computing device 115 via the vehicle communication network.

[0025] Additionally, computing device 115 may be configured to communicate with remote server computer 120 (i.e., cloud server) via network 130 through vehicle-to-infrastructure (V2X) interface 111, as described below, which includes hardware, firmware, and software that permit computing device 115 to communicate with remote server computer 120 (i.e., cloud server) via a vehicle-to-infrastructure (V2X) interface 111, such as a wireless Internet connection. The V2X interface 111 may include a network 130 configured to communicate with the remote server computer 120 using a variety of wired and / or wireless networking technologies (i.e., cellular, The computing device 115 may be configured to communicate with other vehicles 110 through a V2X (vehicle to the outside world) interface 111 using a vehicle-to-vehicle (V2V) network formed between neighboring vehicles 110 on the basis of a mobile ad hoc network or through an infrastructure-based network (i.e., based on cellular communication (C-V2X) wireless communication cellular, dedicated short-range communication (DSRC) and / or similar communications). The computing device 115 also includes a non-volatile memory such as known. The computing device 115 can record data by storing the data in the non-volatile memory for later retrieval and transmission to the server computer 120 or the user mobile device 160 via the vehicle communication network and the vehicle to infrastructure (V2X) interface 111.

[0026] As already mentioned, programming for operating one or more vehicle 110 components (i.e., braking, steering, propulsion, etc.) is typically included in instructions stored in memory and executable by a processor of the computing device 115. Using data received in the computing device 115 (i.e., sensor data from sensors 116, server computer 120, etc.), the computing device 115 can make various determinations and / or control various vehicle 110 components and / or operations. For example, the computing device 115 may include programming to adjust vehicle 110 operating behavior (i.e., the physical manifestation of vehicle 110 operation), such as speed, acceleration, deceleration, steering, etc., as well as strategic behavior (i.e., controlling operating behavior in a manner that is generally intended to achieve efficient traversal of a route), such as the distance between vehicles and / or the amount of time between vehicles, lane changes, minimum gaps between vehicles, left turn crossing path minimums, arrival times at specific locations, and the minimum time from arrival at an intersection to crossing the intersection (without a signal light).

[0027] The term controller as used herein includes a computing device that is typically programmed to monitor and / or control a particular vehicle subsystem. Examples include a propulsion controller 112, a brake controller 113, and a steering controller 114. The controller may be, for example, a known electronic control unit (ECU), possibly including additional programming as described herein. The controller may be communicatively connected to a computing device 115 and receive instructions from the computing device to actuate a subsystem in accordance with the instructions. For example, a brake controller 113 may receive instructions from a computing device 115 to operate the brakes of the vehicle 110.

[0028] One or more controllers 112, 113, 114 for the vehicle 110 may include known electronic control units (ECUs) and the like, including, as non-limiting examples, one or more propulsion controllers 112, one or more brake controllers 113, and one or more steering controllers 114. Each of the controllers 112, 113, 114 may include a corresponding processor and memory and one or more actuators. The controllers 112, 113, 114 may be programmed and connected to a vehicle 110 communication bus, such as a controller area network (CAN) bus or a local interconnect network (LIN) bus, to receive instructions from a computing device 115 and control actuators based on the instructions.

[0029] The sensors 116 may include a variety of devices known to provide data via the vehicle communication bus. For example, a radar fixed to the front bumper (not shown) of the vehicle 110 may provide the distance from the vehicle 110 to the next vehicle in front of the vehicle 110, or a global positioning system (GPS) sensor disposed in the vehicle 110 may provide the geographic coordinates of the vehicle 110. The distance provided by the radar and / or other sensors 116 and / or the geographic coordinates provided by the GPS sensor may be used by the computing device 115 to operate the vehicle 110, for example, to provide control inputs to one or more controllers 112, 113, 114.

[0030] The vehicle 110 is typically a land-based vehicle 110 with three or more wheels, i.e., a passenger car, a light truck, etc. The vehicle 110 includes one or more sensors 116, a V2X interface 111, a computing device 115, and one or more controllers 112, 113, 114. The sensor 116 may collect data related to the vehicle 110 and the operating environment of the vehicle 110. By way of example and not limitation, the sensor 116 may include, i.e., an altimeter, a camera, a laser radar (LIDAR), a radar, an ultrasonic sensor, an infrared sensor, a pressure sensor, an accelerometer, a gyroscope, a temperature sensor, a pressure sensor, a Hall sensor, an optical sensor, a voltage sensor, a current sensor, a mechanical sensor (such as a switch), etc. The sensor 116 may be used to sense the operating environment of the vehicle 110, i.e., the sensor 116 may detect phenomena such as weather conditions (rainfall, outside temperature, etc.), road slope, road position (i.e., using road edges, lane markings, etc.), or the position of a target object (such as a neighboring vehicle 110). The sensors 116 may also be used to collect data, including dynamic vehicle 110 data related to the operation of the vehicle 110 , such as speed, yaw rate, steering angle, engine speed, brake pressure, oil pressure, power levels applied to controllers 112 , 113 , 114 in the vehicle 110 , connectivity between components, and accurate and timely performance of components of the vehicle 110 .

[0031] The server computer 120 generally has features in common with the V2X interface 111 and computing device 115 of the vehicle 110, namely, a computer processor and memory and configuration for communicating via the network 130, and therefore these features will not be described further. The server computer 120 can be used to develop and train software that can be transferred to the computing device 115 in the vehicle 110.

[0032] Figure 2 2 is a diagram of a convolutional neural network 200. The convolutional neural network 200 can input an image 202 and output a task prediction 220. The convolutional neural network 200 includes convolutional layers 204, 206, 208, 210 (collectively referred to as convolutional layers 212) and fully connected layers 214, 216 (collectively referred to as fully connected layers 218). The convolutional layer inputs image data and convolves the image data using a convolution kernel, which is usually a kXk neighborhood, where k is a small number such as 3, 5, 7, 9, etc. The operation performed by the convolution kernel is determined by the numbers (called weights) included in the kXk neighborhood. The fully connected layer 218 calculates linear or nonlinear algebraic functions based on its input. They are called fully connected because any input value can be combined with any other input value. The linear or nonlinear algebraic function determined by the fully connected layer 218 is determined by parameters also called weights.

[0033] The convolutional neural network 200 is trained by compiling a training dataset including images 202 and ground truth data indicating the correct task prediction 220 to be output from the convolutional neural network 200 in response to the input image 202. The ground truth is determined by a process separate from the neural network and may include human inspection and measurement of the image data and the scene being imaged. Training the convolutional neural network 200 may include processing each image 202 in the training dataset hundreds or thousands of times, each time comparing the output task prediction 220 to the ground truth to determine a loss function. The loss function is back-propagated from back to front through the fully connected layers 218 and the convolutional layers 212, thereby changing the weights included in the fully connected layers 218 and the convolutional layers 212 to minimize the loss function. When the loss function is sufficiently minimized, for example, when changing the weights does not make the loss function smaller, the convolutional neural network 200 may be considered trained, and the current weights are saved.

[0034] The output from each convolutional layer 212 and each fully connected layer 218 to the next layer in the convolutional neural network 200 is called a tensor. The tensor is output from the layer via an activation function that can adjust the output. For example, a ReLu activation adjusts the output to be positive. The output from the convolutional layer 212 or the fully connected layer 218 via the activation function is referred to herein as an activation tensor. The activation tensor output by the layers 212, 218 of the trained convolutional neural network in response to a particular input image 202 can be used to characterize the convolutional neural network 200, and will be used herein to determine, for example, the similarity between two or more convolutional neural networks.

[0035] Figure 3 316 . ] is an illustration of two or more single-task neural networks 304, 312. Additional single-task neural networks 304, 312 are indicated by ellipses. The single-task neural networks 304, 312 include convolutional layers 320, 322, 324, 326 and 332, 334, 336, 338 (collectively referred to as convolutional layers 306 and 314, respectively) and fully connected layers 328, 330 and 340, 342 (collectively referred to as fully connected layers 308 and 316, respectively). The single-task neural networks 304, 312 input an image 302 and output predictions 310, 318, respectively. The predictions 310, 318 are the result of processing the input image 302 by the single-task neural networks 304, 312, and may, for example, include a segmented image 302, determined distances to objects included in the image 302, and / or key points detected in the image 302. The single-task neural networks 304, 312 may be included in a computing device 115 included in the vehicle 110. The image 302 may be acquired by a camera included in the vehicle 110. The single-task neural networks 304, 312 may be executed on the computing device 115 to determine predictions 310, 318 for tasks associated with operating the vehicle 110. The single-task neural networks 304, 312 are referred to as single-task because they each determine a prediction 310, 318 associated with a single task.

[0036] As discussed above, tasks associated with operating the vehicle 110 may include outputting predictions, such as, for example, semantic segmentation, depth determination, and keypoint detection. The single-task neural networks 304, 312 may be trained to determine the predictions 310, 312 indicated by these tasks. For example, based on an input image 302, a first neural network in the single-task neural networks 304, 312 may output predictions 310, 318, including an image with labeled areas indicating vehicles, pedestrians, roads, buildings, foliage, etc. Based on the same image 302, a second neural network in the single-task neural networks 304, 312 may output predictions 310, 318, including distances from a camera to objects (e.g., vehicles and pedestrians) in the image 302. Further based on the same image 302, a third single-task neural network 304, 318 may output predictions 310, 318, including an image with keypoints indicating data points in the image, such as, for example, lane markings, road exits and entrances, and road edges.

[0037] The output predictions 310, 318 may be used by the computing device 115 to operate the vehicle 110. For example, the computing device may determine a vehicle path based on the predictions 310, 315. The vehicle path may be defined or determined according to a polynomial function that determines future vehicle states including predicted future positions of the vehicle based in part on the current position of the vehicle 110. The vehicle path indicates a series of connected current and future predicted positions that the vehicle 110 may take while maintaining upper and lower limits on lateral acceleration and longitudinal acceleration, maintaining a minimum distance that the vehicle 110 may approach objects such as other vehicles and pedestrians, and maintaining a predetermined relationship to road edges and lane markings. The computing device 115 may operate the vehicle 110 on the vehicle path by transmitting commands to the controllers 112, 113, 114 to control vehicle propulsion, steering, and brakes. If n tasks are required to operate the vehicle 110, n single-task neural networks 304, 312 may be required to execute on the computing device 115 included in the vehicle 110.

[0038] Figure 44 is a diagram of a multi-task learning (MTL) neural network 400. The MTL neural network 400 includes a set of shared / trunk layers 414, 416, 418, 420 (collectively referred to as shared / trunk layers 404), which process data for more than one task and more than one set of single-task layers (respectively) 422, 424 and 426, 428 (respectively collectively referred to as single-task layers 406 and 410), each of which processes data for a single task. The MTL neural network 400 inputs an image 402 and outputs predictions 408, 412. MTL includes a shared / trunk layer 404 and two or more single-task layers 406, 410. Additional single-task layers are indicated by ellipsis. Each single-task layer 406, 410 outputs predictions 408, 412, respectively. The shared / trunk layer 404 typically includes a convolutional layer. The single-task layers 406, 410 typically include both a convolutional layer and a fully connected layer. The MTL neural network 400 can be based on the following Figure 5 The single-task neural networks 304, 312 are configured based on the metrics determined by the central kernel alignment (CKA) similarity matrices 502, 504, 506 as described.

[0039] The MTL neural network 400 with n single-task layers 406, 410 can output the same predictions 408, 412 as n single-task neural networks 304, 312 in less time using fewer computational resources and less memory. The MTL neural network 400 is generated by determining which computations are shared between the single-task neural networks 304, 312 and combining them into a shared / backbone layer 404. Instead of repeating the shared / backbone computation n times for each single-task neural network, the MTL neural network 400 performs the shared / backbone computation once and distributes the activated tensors determined by the shared / backbone layer 404 to each of the single-task layers 406, 410. Figure 5 Techniques for determining an MTL neural network 400 based on n single-task neural networks 304, 312 and a subset of training images are described.

[0040] Figure 5is an illustration of three center kernel alignment (CKA) similarity matrices 502, 504, 506. CKA can be used to determine the similarity between trained neural networks 304, 312. The CKA similarity matrices 502, 504, 506 can be determined based on a subset of training images 302 from a training data set used to train a single-task neural network 304, 312. The training data set is typically divided into training data, validation data, and test data. The training data is used to determine the weights and biases of the neural network, for example, to determine the parameters that control the operation of the neural network. Each image in the training portion of the training data set can be processed by the neural network hundreds or thousands of times to determine the weights and biases. The validation data is used to provide an unbiased assessment of the fit of the neural network on the training data set while fine-tuning the neural network hyperparameters. An example of a hyperparameter is an activation parameter that controls the regulation of the latent variable as it is passed from one layer of the neural network to the next layer. For example, the test data is used to evaluate the performance of the neural network to compare the trained neural network with a previous or competing model. The CKA similarity matrix is ​​determined based on the validation subset of the training data set.

[0041] CKA is applied to a tensor of activations output by two layers from each of the two single-task neural networks 304, 312, respectively, and determines a value between 0 and 1 indicating the similarity between the two layers. Similarity is a measure of the normalized difference between the outputs from two layers in response to the same input (e.g., the same input image 302). The derivation and calculation of CKA is described in Simon Kornblith, Mohammad Norouzi, Honglak Lee, and Geoffrey Hinton, "Similarity of Neural Network Representations Revisited" (Proceedings of the 36th International Conference on Machine Learning, Long Beach, California, PMLR 97, 2019). th International Conference on Machine Learning, Long Beach, CA, PMLR 97, 2019)).

[0042] CKA can be applied to the layers of a pair of trained single-task neural networks 304, 312 by inputting the same image 302 into each of the trained single-task neural networks 304, 312 and recording the tensor of activations output by each layer. In this example, the first 14 layers of each single-task neural network 304, 312 are compared. CKA is calculated for each layer of the pair of trained single-task neural networks 304, 312 and is shown in FIG. Figure 5318 for depth determination. The CKA similarity graph 502 determines a matrix including CKA similarity scores (y-axis) for 14 layers of the trained single-task neural network 304, 312 for determining predictions 310, 318 for semantic segmentation and CKA similarity scores (x-axis) for 14 layers of the trained single-task neural network 304, 312 for determining predictions 310, 318 for depth determination. The CKA similarity matrix 504 includes CKA similarity scores for the trained neural network 304, 312 for determining semantic segmentation and CKA similarity scores for the trained neural network 304, 312 for determining key points. The CKA similarity matrix 504 includes CKA similarity scores for the trained neural network 304, 312 for determining semantic segmentation and CKA similarity scores for the trained neural network 304, 312 for detecting key points.

[0043] Figure 6 is an illustration of a diagonal sum matrix 600 that may be formed for each of the CKA similarity matrices 502, 504, 506. The cross-hatching of the diagonal sum matrix 600 entries indicates that the diagonal sum S i The diagonal sum S can be determined by first summing along the diagonal of each CKA similarity matrix 502, 504, 506 from right to left. i To determine the task similarity measure M for each task pair. For an NxN matrix, this will include and S -N+1 ,…,S -1 , S0, S1, …, S N The diagonal sum matrix 600 shows the diagonal sum of, for example, a 5x5 CKA similarity matrix. The task similarity measure M for a task pair of trained neural networks 304, 312 can be calculated based on the diagonal sum S by the following equation: i To determine:

[0044]

[0045] The diagonal sum S of the CKA similarity matrices 502, 504, and 506 is i Sum and normalize.

[0046] A task similarity M may be determined for each of the CKA similarity matrices 502, 504, 506 to determine the similarity between the layers of the single-task neural networks 304, 312 for each pair of tasks. The task similarity M may be compared to a user-determined threshold to determine whether to combine the layers of the trained neural networks 304, 312 into the MTL neural network 400. The threshold may be determined empirically for a given subject domain (such as vehicle guidance) by combining the trained neural networks 304, 312 using a given threshold and testing the resulting MTL neural network 400 while operating the vehicle using a training data set and determining whether the output predictions 408, 412 match the ground truth with an acceptable degree of accuracy (e.g., 99% accuracy). The similarity metric M may be used to determine which layers from which single-task neural networks 304, 312 are combined to form the MTL neural network 400. Not all single-task neural networks 304, 312 for tasks related to the overall task (such as vehicle guidance) are guaranteed to be combined into the MTL neural network 400. In some examples, more than one MTL neural network 400 may be determined for a set of single-task neural networks 304, 312. In some examples, it may be determined that one or more single-task neural networks 304, 312 cannot be combined with other single-task neural networks 304, 312.

[0047] Figure 7 is an illustration of three CKA similarity matrices 702, 704, 706 used to determine the optimal depth (e.g., optimal number of layers) of the MTL neural network 400. The CKA similarity matrices 702, 704, 706 plot the CKA similarity values ​​of the 14 layers of the MTL neural network relative to themselves to allow for determination of when activation tensors output from a layer become redundant and can be eliminated without reducing accuracy. The CKA similarity matrices 702, 704, 706 plot the CKA similarity values ​​of the MTL neural network 400 including semantic segmentation only (CKA similarity matrix 702), semantic segmentation and depth determination (CKA similarity matrix 704), and semantic segmentation, depth determination, and keypoint detection (CKA similarity matrix 706).

[0048] The CKA similarity matrices 702, 704, 706 illustrate the relationship between the number of combined tasks and the depth of the MTL neural network 400. The required depth is the number of layers required to determine the results in the shared / trunk layer 404 of the MTL neural network 400. The contribution of a given layer to the overall results from the shared / trunk layer 404 can be determined by measuring the CKA similarity value of the given layer relative to the other layers in the shared / trunk layer 404. This can be illustrated by summing the values ​​included in the sub-matrices of the CKA similarity matrices 702, 704, 706, which are formed by comparing the activation tensors output by the layers of the MTL neural network 400 in the columns of the sub-matrices with the same activation tensors in the rows of the sub-matrices. Figure 8 A numerical technique for determining the optimal depth of an MTL neural network based on analyzing sub-matrices of the CKA similarity matrix 702, 704, 706 is shown.

[0049] Figure 8 is a diagram including a CKA similarity matrix 802 and a graph 810, which illustrates a technique for determining the optimal depth of the MTL neural network 400 based on depth redundancy. Figure 5 The described technique determines a CKA similarity matrix 802 based on a layer of an exemplary MTL neural network 400. The CKA similarity matrix 802 may be determined by comparing activation tensors output by a layer of the MTL neural network 400 with activation tensors output by other layers of the same MTL neural network 400. The CKA values ​​on the main diagonal of the CKA similarity matrix 802 indicate that the activation tensor is compared to itself and by definition will have a value of 1.0.

[0050] The optimal depth of the MTL neural network 400 may be determined by summing the CKA similarity matrix 802 and the sub-matrices 804, 806, 808. The ellipsis in the CKA similarity matrix 802 indicates that multiple sub-matrices may be determined between the sub-matrix 806 and the sub-matrix 808. The sub-matrices 804, 806, 808 indicate CKA similarity values ​​for smaller and smaller subsets of the layers of the MTL neural network 400. The values ​​of the sub-matrix sum S812 of the sub-matrices 804, 806, 808 indicate additional data about the tasks computed by smaller and smaller subsets of the layers closer to the shared / backbone layer 404 to the output of the single-task layers 406, 410 of the MTL neural network 400.

[0051] Graph 810 plots the value of the submatrix sum S812 on the y-axis versus the number of the starting layer for determining the submatrix 804, 806, 808 on the x-axis. Graph 810 is examined to determine the "inflection point" in the submatrix sum S812 line. The "inflection point" in the submatrix sum S812 line is the point indicated by line N in graph 810 where the change in the value of the submatrix sum S812 begins to level off. For example, the point indicated by line N can be numerically indicated by calculating the derivative of the submatrix sum S812 at each number of layers and comparing it to a threshold. The point indicated by line N indicates the number of layers to be included in the shared / trunk layer 404 of the MTL neural network 400. Layers above the value N can be eliminated without reducing the accuracy of the MTL neural network 400.

[0052] Fig. 9 is a flow chart of a process 900 for determining an MTL neural network 400 based on a task-specific neural network 304, 312. The process 900 may be implemented in a server computer 120. The process 900 includes a number of blocks that may be performed in the order shown. Alternatively or in addition, the process 900 may include fewer blocks, or may include blocks that are performed in a different order.

[0053] The process 900 begins at block 902, where a training dataset of images 302 and ground truth for each image 302 in the training dataset are collected. For example, the training dataset of images 302 may be determined by acquiring the images 302 from a sensor included in the vehicle 110. Camera images 302 are used herein as non-limiting examples, however, lidar images, radar images, and ultrasound images, among others, may be used to train task-specific neural networks 304, 312.

[0054] At block 904, a task is selected from the determined task list for use in training one of the task-specific neural networks 304, 312. Non-limiting examples of tasks for training a task-specific neural network 304, 312 for vehicle guidance include the tasks described above with respect to Figure 3 The semantic segmentation, depth determination and key point detection described.

[0055] At block 906, as described above with respect to Figure 3 As described, the task-specific neural network 304, 312 is trained on the server computer 120. After training, a subset of images 302 from the training dataset is selected, and activation tensors output from the layers of the task-specific neural network 304, 312 are compiled and the activation tensors are collected for the layers of the trained task-specific neural network 304, 312.

[0056] At block 908, the server computer 120 determines whether the task-specific neural network 304, 312 has been trained for each of the tasks. If not, the process 900 returns to block 904 to select the next task and train the task-specific neural network 304, 312 to perform the task. If the task is complete, the process 900 moves to block 910.

[0057] At block 910, the server computer 120 calculates CKA similarity values ​​based on the collected activation tensors of the layers of the trained task-specific neural networks 304, 312, and generates CKA similarity matrices 502, 504, 506 for pairs of trained task-specific neural networks 304, 312, as described above with respect to Figure 5 described.

[0058] At block 912, the computing device 120 determines a task similarity measure M for the diagonal of each of the CKA similarity matrices 502, 504, 506, as described above with respect to Figure 6 described.

[0059] At block 914, an MTL neural network 400 is determined based on the task-specific neural networks 304, 312 by combining the layers of the task-specific neural networks 304, 312 based on the task similarity metric M812, as described above with respect to Figures 4 to 6 After block 914, process 900 ends.

[0060] Fig.10 1 is a flow chart of a process 1000 for operating a vehicle 110 based on a prediction output from an MTL neural network 400. The process 1000 may be implemented on a computing device 115 included in the vehicle 110. The process 1000 includes a plurality of blocks that may be executed in the order shown. Alternatively or additionally, the process 1000 may include fewer blocks, or may include blocks that are executed in a different order.

[0061] Process 1000 begins at block 1002, where a computing device 115 included in a vehicle 110 acquires image 402 data from a sensor included in the vehicle 110. For example, the image 402 data may be an image 402 acquired by a camera.

[0062] At block 1004, computing device 115 inputs image 402 to trained MTL neural network 400. MTL neural network 400 has been described above with respect to Figures 2 to 10 The MTL neural network 400 is configured, trained, and optimized as described, and transmitted from the server computer 120 to the computing device 115. The MTL neural network 400 outputs one or more predictions 408, 412 about the input image 402.

[0063] At box 1006, the computing device 115 uses the predictions 408, 412 output by the MTL neural network 400 to determine a vehicle path for the vehicle 110, as described above with respect to Figure 4 The vehicle 110 may be operated on a road based on the path by determining commands to direct the vehicle's powertrain, braking components, and steering components to operate the vehicle so as to travel along the path. The vehicle path may be used to guide the vehicle 110 from a current location to another location in the vehicle's surroundings based on the predictions 408, 412 output by the MTL neural network 400. The vehicle 110 may be operated along the vehicle path by transmitting commands to the controllers 112, 113, 114 to control vehicle propulsion, steering, and brakes. After box 1006, the process 1000 ends.

[0064] Computing devices such as those described herein typically each include commands that can be executed by one or more computing devices such as those identified above and used to implement the blocks or steps of the processes described above. For example, the process blocks described above may be embodied as computer executable commands.

[0065] The computer executable instructions may be compiled or interpreted by a computer program created using a variety of programming languages ​​and / or techniques, including but not limited to the following in single or combined form: Java TM , C, C++, Python, Julia, SCALA, Visual Basic, Java Script, Perl, HTML, etc. Typically, a processor (i.e., a microprocessor) receives commands from a memory, a computer-readable medium, etc., and executes these commands to perform one or more processes including one or more of the processes described herein. Such commands and other data may be stored in files and transmitted using a variety of computer-readable media. Files in a computing device are typically collections of data stored on a computer-readable medium such as a storage medium, a random access memory, etc.

[0066] Computer-readable media (also referred to as processor-readable media) include any non-transitory (i.e., tangible) media that participate in providing data (i.e., instructions) that can be read by a computer (i.e., by a processor of a computer). Such media may take many forms, including, but not limited to, non-volatile media and volatile media. Instructions may be transmitted via one or more transmission media, including optical fibers, wires, wireless communications, including internals that make up a system bus coupled to a processor of a computer. Common forms of computer-readable media include, for example, RAM, PROM, EPROM, FLASH-EEPROM, any other memory chip or cassette, or any other medium from which a computer can read.

[0067] Unless otherwise expressly indicated herein, all terms used in the claims are intended to be given their ordinary and customary meanings as understood by those skilled in the art. Specifically, unless a claim recites an express limitation to the contrary, the use of singular articles such as "a," "an," "the," and "said" should be interpreted as reciting one or more of the indicated elements.

[0068] The term "exemplary" is used herein in the sense of referring to an example, ie, reference to "exemplary widget" should be interpreted as referring merely to an example of a widget.

[0069] The adverb “approximately” modifying a value or result means that the shape, structure, measurement, value, determination, calculation, etc. may vary from the exactly described geometry, distance, measurement, value, determination, calculation, etc. due to imperfections in materials, machining, manufacturing, sensor measurement, calculation, processing time, communication time, etc.

[0070] In the accompanying drawings, the same candidate marks indicate the same elements. In addition, some or all of these elements may be changed. With respect to the media, processes, systems, methods, etc. described herein, it should be understood that although the steps or frames of such processes, etc. have been described as occurring in a sequence in a particular order, such processes may be practiced by the described steps performed in an order other than the order described herein. It should also be understood that certain steps may be performed simultaneously, other steps may be added, or certain steps described herein may be omitted. In other words, the description of the process herein is provided for the purpose of illustrating certain embodiments and should never be interpreted as limiting the claimed invention.

[0071] According to the present invention, a system is provided, comprising: a computer, the computer comprising a processor and a memory, the memory comprising instructions, the instructions executable by the processor to: execute a multi-task learning (MTL) neural network, the MTL neural network comprising a multi-task layer and a single-task layer, and configured to receive an image as an input of a first layer in the multi-task layer and output a corresponding prediction for each of a plurality of tasks from a corresponding layer in the single-task layer; and wherein an activation tensor output from the multi-task layer is provided as an input to the single-task layer.

[0072] According to an embodiment, the MTL comprises a set of shared / backbone layers for the multiple tasks.

[0073] According to an embodiment, the shared / backbone layer comprises a convolutional layer.

[0074] According to an embodiment, the MTL comprises a single task layer for each task of the plurality of tasks.

[0075] According to an embodiment, the single-task layer comprises a fully connected layer.

[0076] According to an embodiment, the MTL neural network is generated by training a single-task neural network for each of the plurality of tasks based on a subset of training images.

[0077] According to an embodiment, a single-task neural network is combined into an MTL neural network by: generating activation tensors from a subset of layers of the single-task neural network based on a subset of training images; generating a centered kernel alignment (CKA) similarity matrix for pairs of activation tensors from a multi-task neural network; and configuring the MTL neural network based on a metric determined from the CKA similarity matrix.

[0078] According to an embodiment, the optimal depth of the MTL neural network is determined by determining a centered kernel alignment (CKA) similarity matrix over a combination of layers of the MTL neural network and plotting the value of a sub-matrix sum S of sub-matrices of the CKA similarity matrix to determine depth redundancy.

[0079] According to an embodiment, the instructions include further instructions for determining a vehicle path based on the prediction output from the MTL neural network.

[0080] According to an embodiment, the instructions include further instructions for operating the vehicle by controlling vehicle propulsion, vehicle steering, and vehicle brakes based on the vehicle path.

[0081] According to the present invention, a method includes: executing a multi-task learning (MTL) neural network, the MTL neural network including a multi-task layer and a single-task layer, and configured to receive an image as an input of a first layer in the multi-task layer and output a corresponding prediction for each of a plurality of tasks from a corresponding layer in the single-task layer; and wherein an activation tensor output from the multi-task layer is provided as an input to the single-task layer.

[0082] In one aspect of the invention, the MTL comprises a set of multi-task layers for the plurality of tasks.

[0083] In one aspect of the invention, the multi-task layer comprises a convolutional layer.

[0084] In one aspect of the invention, the MTL comprises a single task layer for each of the plurality of tasks.

[0085] In one aspect of the invention, the single-task layer comprises a fully connected layer.

[0086] In one aspect of the invention, the MTL neural network is generated by training a single-task neural network for each of the plurality of tasks based on a subset of training images.

[0087] In one aspect of the invention, single-task neural networks are combined into an MTL neural network by: generating activation tensors from a subset of layers of the single-task neural network based on a subset of training images; generating a centered kernel alignment (CKA) similarity matrix for pairs of activation tensors from pairs of multi-task neural networks; and configuring the MTL neural network based on a metric determined from the CKA similarity matrix.

[0088] In one aspect of the invention, the optimal depth of the MTL neural network is determined by determining a centered kernel alignment (CKA) similarity matrix over a combination of layers of the MTL neural network and plotting the value of a sub-matrix sum S of sub-matrices of the CKA similarity matrix to determine depth redundancy.

[0089] In one aspect of the invention, the method includes determining a vehicle path based on the predictions output from the MTL neural network.

[0090] In one aspect of the invention, the method includes operating a vehicle by controlling vehicle propulsion, vehicle steering, and vehicle brakes based on a vehicle path.

Claims

1. A method wherein include: executing a multi-task learning (MTL) neural network comprising a multi-task layer and a single-task layer and configured to receive an image as an input of a first layer in the multi-task layer and output a respective prediction for each of a plurality of tasks from a respective layer in the single-task layer; and Wherein the activation tensor output from the multi-task layer is provided as the input of the single-task layer. 2 . The method of claim 1 , wherein the MTL comprises a set of multi-task layers for the plurality of tasks.

3. The method of claim 2, wherein the multi-task layer comprises a convolutional layer. The method of claim 1 , wherein the MTL comprises a single-task layer for each of the plurality of tasks.

5. The method of claim 4, wherein the single-task layer comprises a fully connected layer.

6. The method of claim 1, wherein the MTL neural network is generated by training a single-task neural network for each of the plurality of tasks based on a subset of training images.

7. The method of claim 6, wherein the single-task neural network is combined into the MTL neural network by the following operations: generating activation tensors from a subset of layers of the single-task neural network based on the subset of training images; Generate a centered kernel alignment (CKA) similarity matrix for pairs of activation tensors from pairs of multi-task neural networks; as well as The MTL neural network is configured based on a metric determined from the CKA similarity matrix.

8. The method of claim 1, wherein the optimal depth of the MTL neural network is determined by determining a centered kernel alignment (CKA) similarity matrix over a combination of layers of the MTL neural network and plotting values ​​of a sub-matrix sum S of sub-matrices of the CKA similarity matrix to determine depth redundancy.

9. The method of claim 1 further comprising determining a vehicle path based on the prediction output from the MTL neural network.

10. The method of claim 9, further comprising operating the vehicle by controlling vehicle propulsion, vehicle steering, and vehicle brakes based on the vehicle path.

11. The method of claim 8, wherein the optimal depth is determined based on determining an inflection point in the submatrix sum graph.

12. The method of claim 1, wherein the task similarity measure is determined by summing and normalizing the diagonal sum of the CKA similarity matrix.

13. The method of claim 12, wherein the task similarity metric divides the diagonal sum by the product of the tensor multiplied by the absolute value of the index. The method of claim 13 , wherein the task similarity measure is compared to an empirically determined value.

15. A system comprising a computer programmed to perform the method of any one of claims 1-14.