A multi-task machine learning model, a method for training the same and associated applications

The multi-task machine learning model with a shared network and masking modules addresses resource competition in deep multitask models by generating task-specific masked data, enhancing performance and efficiency in multitask learning, particularly in computer vision applications like autonomous driving.

WO2024184095A1PCT designated stage expired Publication Date: 2024-09-12CONTINENTAL AUTOMOTIVE TECHNOLOGIES GMBH +1

Patent Information

Application Number
PCT/EP2024/054634
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-07
Filing Date
2024-02-23
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Current deep multitask models face resource competition among multiple tasks, requiring repetitive experiments to find the best architecture and balance of shared and task-specific parameters, which is time-consuming and ineffective, especially in perception applications where shared features are not efficiently utilized.

Method used

A multi-task machine learning model with a shared network module, head network modules, and masking modules that generate task-specific masked shared output data, allowing for efficient resource management and increased representation density, reducing resource competition and enabling online adjustments of task-specific features during inference.

Benefits of technology

The solution enhances deep multitask model performance by reducing resource competition, increasing representation density, and maximizing shared data utilization, achieving significant improvements in joint task performance with minimal computational overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2024054634_12092024_PF_FP_ABST
    Figure EP2024054634_12092024_PF_FP_ABST
Patent Text Reader

Abstract

A computer-implemented multi-task machine learning model (20) that is capable of performing and training a plurality of tasks based on shared input data (24) comprises a shared network module (22) that is configured to receive and process shared input data (24) and that is configured to output shared output data (26); a plurality of head network modules (30), wherein each head network module (30) is trained for one specific task of the plurality of tasks and configured to output task-specific result data (50); and a plurality of masking modules (38). In order to improve performance of the multi-task machine learning model (20), the invention proposes that each masking module (38) is associated with at least one head network module (30) and configured for masking the shared output data (26) thereby generating task-specific masked shared output data, wherein each masking module (38) is configured to feed the masked shared output data to each associated head network module (30).
Need to check novelty before this filing date? Find Prior Art

Description

[0001] DESCRIPTION

[0002] A multi-task machine learning model, a method for training the same and associated applications

[0003] TECHNICAL FIELD

[0004] The invention relates to a multi-task machine learning model. The invention further relates to a method for training that multi-task machine learning model and applications thereof for autonomous vehicles.

[0005] BACKGROUND

[0006] US 9 928448 B1 discloses a method to use two or more classifiers to classify one input image and use different classifiers to classify objects in different semantic hierarchies.

[0007] CN 1 13 887 343 A discloses a multitask learning neural network with shared backbone and shared feature representation. Each task receives the same shared features as is common in the traditional multitask learning model architecture.

[0008] AU 2019 101 142 A4 discloses a pedestrian detection method that is part of autonomous driving algorithms. A light-weighted version of yolov3 as backbone and multiple heads for multi-task training are used.

[0009] CN 1 12 132 258 A discloses a multitask learning model construction method with adaptive feature sharing using deformable convolution. The deformable convolution extracts task-specific features from multiple layers of a shared backbone based on the complexity of the specific task.

[0010] Current deep multitask models face the issue of resource competition among multiple tasks. The current way of mitigating this phenomenon is to manually try out multiple sets of hyperparameters, especially task weights in loss functions and weights of data inputs. This is not only a significant cost of time and efforts, but can be also ineffective in exploring the hyperparameter space.

[0011] There are some challenges associated with the known approach.

[0012] Typically, the designing of a new deep multitask model requires repetitive experiments conducted by domain experts to find the best architecture and the right balance of shared and task-specific model parameters.

[0013] Specifically for perception applications, the most widely used deep multitask learning architecture, namely a shared backbone followed by task-specific heads provides the same shared features for each task.

[0014] Given a deep multitask model that is already designed, trained and possibly deployed, there is not yet an effective way to further enhance the model performance by adjusting the shared and task-specific features according to the input data.

[0015] SUMMARY OF THE INVENTION

[0016] It is the object of the invention to improve deep multitask models, preferably with respect to training, efficiency and / or enhancement.

[0017] The object is achieved by the subject-matter of the dependent claims. Preferred embodiments are subject-matter of the dependent claims.

[0018] The invention provides a computer-implemented multi-task machine learning model that is capable of performing and training a plurality of tasks based on shared input data, the model comprising a shared network module that is configured to receive and process shared input data and that is configured to output shared output data; a plurality of head network modules, wherein each head network module is trained for one specific task of the plurality of tasks and configured to output task-specific result data; and a plurality of masking modules. The invention proposes that each masking module is associated with at least one head network module and configured for masking at least the shared output data thereby generating task-specific masked shared output data, wherein each masking module is configured to feed the masked shared output data to each associated head network module.

[0019] With this configuration the resource competition between tasks can be reduced or eliminated. Furthermore, it is possible to increase the density of the representation of the shared output data for one task while simultaneously allowing for the maximum utilization of the shared output data for all tasks. In other words, the overall computing ressources are managed much more efficiently.

[0020] Preferably, there is exactly one masking module for each head network module. With this the resource competition can be further reduced. Also this allows the minimal extension of the machine learning model thus saving computational resources.

[0021] Preferably, each masking module is configured to generate task-specific masked shared output data from the shared output data by determining masking data from the shared output data, wherein the masking data is indicative of which shared output data is blocked and which shared output data can be further processed. With this measure, the masking module can be model agnostic. In other words, the measures can be applied independently of the machine learning model to which the masking module is added.

[0022] Preferably, the shared network module comprises at least one hidden layer that outputs hidden shared output data, and each masking module is configured to generated task-specific masked hidden shared output data from the hidden shared output data of the at least one hidden layer. Preferably, the shared network module is configured to feedforward the task-specific masked hidden shared output data to another hidden layer or an output layer of the shared network module. With this approach, the masking is extended to more layers of the shared network module, which allows a still further increase in the performance.

[0023] Preferably, each masking module is configured to generate the masking data from the shared output data by feedforward of the shared output data through a multilayer perceptron and or by applying an attention mechanism to the shared output data. With this the masking module can itself learn, which features in the representation of the shared output data are important for a specific task, and which features are less important. In case of the attention mechanism the relationships between different tasks can be considered, which allows for a further increase in performance.

[0024] Preferably, the multi-task machine learning model is configured as a multi-task computer vision model that is capable of performing and training a plurality of computer vision tasks, wherein each head network module is trained for one specific computer vision task. This allows the application specific for computer vision tasks.

[0025] Preferably, each computer vision task is chosen from a task group consisting of object recognition, object identification, object detection, pose estimation, and semantic segmentation. These computer vision tasks are especially useful in autonomous driving.

[0026] The invention provides a computer-implemented method for training a multi-task machine learning model according to any of the preceding claims by feeding labeled shared training data to a shared network module and feeding the output of the shared network module to a plurality of masking modules, characterized by each masking module masking the output of the shared network module thereby generating masked shared output data, wherein the masked shared output data is further fed to a plurality of head network modules, wherein a loss is determined and reduced based on a loss function that comprises at least one task-specific loss term and a mask-specific loss term, wherein each task-specific loss term is associated with a specific task to be trained and chosen such that the task-specific loss term causes the multi-task machine learning module to learn a specific task, wherein the mask-specific loss term associated with all masking modules. The multi-task machine learning model can be trained effectively and with little to no additional computational costs compared to convention multi-task models. The loss terms allow for improvement of resource competition, density of representation and / or utilization of shared data.

[0027] Preferably, the mask-specific loss term is chosen such that during training the density of representation of each task in the shared output data or masked shared output data is increased. Preferably, the mask-specific loss term is chosen such that during training the amount of utilized shared output data is increased.

[0028] The invention provides a method for controlling an autonomous vehicle, the autonomous vehicle comprising at least one sensor for detecting input data, a preferred or a preferredly trained multi-task machine learning model, and a vehicle control unit for controlling the autonomous vehicle, wherein the input data generated by the at least one sensor is fed to the machine learning model in order to generate task-specific result data, wherein the vehicle control unit controls the vehicle according to the task-specific result data.

[0029] The invention provides an autonomous vehicle that is configured to perform a preferred control method.

[0030] The invention provides a data processing apparatus or vehicle control unit for an autonomous vehicle comprising a preferred or preferredly trained multi-task machine learning model.

[0031] With the described measures a deep multitask learning solution named Adaptive Feature Sharing for Deep Multitask Learning (AIRS) is presented. With this invention it is possible to enhance deep multitask model performance by resolving the conflicts of multiple given tasks learned simultaneously. The solution preferably includes a software module which can be added to the some of the most widely used deep multitask model architectures, namely with a shared backbone and multiple taskspecific heads. Here, task-specific feature representations can be selected to be trained and later used for inference. A regularization loss is also proposed and can be added to the main loss function to encourage diverse representations to be selected for different tasks. The disclosed solution is able learn a relative independent task-specific feature tailored to each task to avoid conflicts, and at the same time can maintain the entire model backbone to be shared to express task- shared features for a generalizable representation.

[0032] One idea is to tackle a deep multitask learning model design for computer vision and perception applications of related but distinctive tasks. The designed method and training process can be plugged in basically all existing deep multitask model architectures that include a shared backbone with minimum interruptions.

[0033] Furthermore, tailored task-specific features can be provided for each task during both during training as well as testing. The preferred regularization loss allows a representation of independent features for different tasks, while decreasing or minimizing the resource competition during training. As a result, a significant increase int the performance of the individual tasks is possible.

[0034] The method utilizes the input data such that online adjustments of task-specific features during inference time can be done. The ideas described herein can be applied to a wide range of deep learning applications, preferably in the computer vision domain, where multiple related tasks usually need to be learned and inferred at the same time.

[0035] With this approach it is possible to mitigate data sparsity issues, to enhance joint task performance, to reduce inference time and / or to reduce training time. The disclosure is particularly useful in applications of automated / autonomous driving perception, where (training) data is “never enough” (in other words, edge cases are always expected). Further usefulness is envisaged regarding inference time, which should be close to or ideally in real-time. Also joint task performance should be improved as much as possible for safety-critical scenarios. Moreover, training costs are typically non-negligible since the amount required training data is huge in these applications, such that a small improvement in training time or the amount of data needed for the same progress may have significant effects.

[0036] One implementation can be a computer program or software module that is preferably trained with camera captured photos / images to perform multiple perception tasks at the same time, such as object detection, semantic segmentation, lane detection, drivable area detection, depth estimation and / or surface normal estimation. The software module can also be incorporated into a standard deep multitask learning model under a standard training process, preferably, however, with a revised loss function. The software has a higher potential to achieve better joint task performance in terms of detection and estimation accuracy compared to conventional approaches.

[0037] The presented solution allows to reduce or prevent that during training, the easier tasks learn faster than the harder ones, with the undesired result of occupying most of the capacity of the shared network. Consequently an undesired competition for resources between the different tasks is avoided. In other words it is possible to reduce or prevent that a simple task grabs most of the available shared resources thereby likely depriving more complex tasks of resources they need for a more accurate or faster result.

[0038] In some embodiments, the deep multitask neural network model design and learning procedure is applied to real world systems or autonomous agents where the maneuver of the agents requires understandings of the surroundings in a highly efficient and effective manner.

[0039] In some embodiments, the solution provides tailored task-specific features for each task, in order to mitigate resource competition.

[0040] In some embodiments, the deep multitask learning model design and training method allows mitigation of resource conflicts and / or improvement of model performance for all tasks.

[0041] In some embodiments, a multi-layer perceptron (MLP) and multi-head self-attention modules is used.

[0042] In some embodiments features are extracted from the final representation determined by the shared backbone, which allows reducing or minimizing the number of additionally introduced parameters and computations in both training and prediction. In some embodiments a more organic regularization loss is used to ensure the relative independence of the task-specific features for each task and adjust it adaptively. In this way, the shared backbone can learn a relatively similar amount of independent features for each task to avoid resource conflicts. Also, the training process can be much simpler compared to conventional methods.

[0043] An advantage is that the ideas presented herein are model-agnostic. Specifically, there are no requirements for significant modification of the original network structures.

[0044] Furthermore, it is possible to have a low computation requirement, since the method presented herein typically introduces few additional parameters and no extra training steps are needed.

[0045] Moreover, the presented method itself is scalable with the amount of tasks. AIRS can be extended to more tasks without changing the basic algorithm. In a preferred embodiment, an extra penalty loss is used.

[0046] In some embodiments, multi-task learning is done as multi-objective learning, where all tasks share unique input data. More formally, for typical multi-objective learning with hard parameter sharing, there are m tasks with their own evaluation function (also called loss function) Lm. Each data point in the data set is represented by an m + 1 tuple of vectors, images or other data structures as {x, yi, y2, ..., ym}, where x represents the input data and yi, y2, ..., ymrepresent the output data for each specific task 1 , 2, ..., m.

[0047] The shared network processes the input data x and maps them to a dense representation as a z-dimension vector Z e Rz. This shared representation is then processed by AIRS and used to generate soft mask vectors Mi e [0, 1]zaccording to Z for each task i and performs element-product to obtain the final representation Z‘, = Z O mi.

[0048] In other words, the method may generate the task-specific soft mask vector Mi, or task-specific soft mask Mi for short, for each task i from the shared representation of all tasks. The collection of all task-specific soft masks Mi may be called a soft mask M. The task-specific masked representation Z‘, for one specific task i may be obtained from the shared representation Z for all tasks by element-wise multiplication with the corresponding task-specific soft mask Mi. The collection of all task-specific masked representations Z’j may be referred to as masked shared representation Z‘.

[0049] The soft mask M preferably acts as a soft gating mechanism such that a representation of the k-th dimension is called a selected channel, if the k-th component of the task-specific soft mask Mi is higher than a predetermined threshold, e.g. 0.5, otherwise, that is called a blocked channel.

[0050] Because tasks may have different training schedules and the information needed for different samples of the same task may not be the same, the module is preferably aware of training-process and inputs.

[0051] In an embodiment, the soft mask M is determined by an MLP module. In another embodiment, the soft mask is determined using a self-attention module. The selfattention module typically has a stronger relationship modeling ability.

[0052] The MLP module preferably comprises a plurality of linear layers, each with parameter matrix W and bias vector b. The output y of the linear layer is determined by y = Wx + b. The layers are preferably connected with a non-linear activation function, such as rectified linear units (ReLU). The final linear layer preferably connects to a soft gating mechanism, that can be implemented using a sigmoid function.

[0053] Multi-head Self-Attention is an approach to computing relationships between inputs. The multi-head self-attention module may initially divide inputs into several parts, and determine three different projections by Qi = Xi WQ, K = Xi WK, Vi = Wv, which are commonly referred to as Query, Key and Value respectively. The self-attention head generates outputs where “concat” designates a concatenation function, “softmax” designates the softmax function and d is the dimensionality of the key. The softmax function is defined in the typical manner: softmax transformer-like encoder module may be used without positional embedding. The positional embedding is not that important since the idea is to have no ordering relationship between the tasks.

[0054] Both designs have a few extra parameters compared with the original neural network but allow for significantly improved results compared to the hard parameter-sharing architecture.

[0055] It should be noted that the terms “hard” and “soft”, e.g. soft mask vs. hard mask, are understood in the usual manner, where the term “hard” indicates that the respective value(s) is changed by training and only by training, whereas the term “soft” indicates that the respective value depends on the input at runtime and is not changed or changeable during training.

[0056] In order to avoid task competition, the generated masks can automatically adjust overlapping and independent channels between different tasks. For each task i, the representation that the corresponding head network i needs as input should be as dense as possible. This allows for more unused channels for other tasks. Ideally, all channels are fully utilized for all tasks in total. In other words, each channel is preferably used by at least one task.

[0057] A general approach for the penalty loss involves the use of Kullback-Leibler divergence. At first a sub-problem is considered, that is, how to optimize the multitask learning objective via the parameters of the neural network and the parameters of the subnetwork distribution to achieve the given target. A soft and unconstrained version of the optimization goal comprising two terms can be formulated, where the first term is the expectation of the original loss function on the subnetwork distribution, and the second term is penalty term which measures the distance between the exclusive capacity of subnetwork distribution and the target exclusive capacity. Here we select this penalty term as a Kullback-Leibler (KL) divergence to a prior distribution with target exclusive capacity, and the loss can be represented as are the input data and labels respectively, t designates the tasks, IE designates the expectation value of the task-specific loss Lt, and KL designates the Kullback-Leibler divergence, f and g designated the neural network and subnetwork, respectively, and 0 the respective parameters.

[0058] A more specific idea to achieve this is to use a penalty loss ofL~ ~ maxMj where the max is element-level max. The first term allows the decrease of the number of selected channels for denser representation. The second term encourages all tasks to use as many channels as possible. And the partial sharing between tasks is balanced by automatically optimizing both auxiliary loss and task losses.

[0059] Multitasking can be generally divided into two categories. The first category is a multi-objective learning setting where all tasks share common inputs. For the second category, an extra constraint is introduced, namely that the samples of each batch are from a uniform sampling for all tasks. This allows the constraint loss to have the same meaning as in the first case.

[0060] It should be noted that while the invention is described with respect to computer vision tasks on autonomous vehicles, the ideas presented herein are also applicable to multi-task machine learning models for other (related) tasks in general.

[0061] BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Embodiments of the invention are described in more detail with reference to the accompanying schematic drawings.

[0063] Fig. 1 depicts an embodiment of an autonomous vehicle;

[0064] Fig. 2 depicts an embodiment of a multi-task machine learning model; and Fig. 3 to Fig. 9 depict tables of experimental results.

[0065] DETAILED DESCRIPTION OF EMBODIMENT Referring to Fig. 1 , an autonomous vehicle 10 is depicted. The autonomous vehicle 10 comprises a vehicle control unit 12.

[0066] The vehicle control unit 12 is configured to control functions of the autonomous vehicle 10, such as displays, acoustic signals, steering, acceleration / deceleration, or the like.

[0067] The autonomous vehicle 10 comprises a sensor system 14. The sensor system 14 has a plurality of sensors 16. As an example, the sensors 16 may be imaging sensors, e.g., cameras, or non-imaging sensors, e.g., ultrasonic sensors, lidar sensors, etc. The sensors system 14 is operatively coupled to the vehicle control unit 12, in order to process sensor data generated by each sensor 16.

[0068] Each sensor 16 may have a sensing area 18 (here only one sensing area 18 is shown for sake of clarity). The sensing area 18 is a portion of the environment around the autonomous vehicle 10, in which the sensor 16 is able to detect sensor data of reasonable quality, i.e. , in a manner that allows processing by a machine learning model. The sensing areas 18 of two or more sensors 16 may overlap or even be identical. The shape and size of the sensing area 18 may depend on the type of sensor 16.

[0069] The vehicle control unit 12 comprises a multi-task machine learning model 20 that is configured for performing multiple tasks. In this embodiment, the multi-task machine learning model 20 is configured as a multi-task computer vision model that is capable of performing a plurality of computer vision tasks.

[0070] Referring to Fig. 2, the multi-task machine learning model 20 comprises a shared network module 22. The shared network module 22 receives the sensor data as shared input data 24. The shared network module 22 generates shared output data 26 that are an embedding of the shared input data 24. Furthermore, the shared network module 22 generates hidden shared output data in each layer of the shared network module 22. The shared output data 26 form a shared representation of the shared input data 24. The shared network module 22 may be configured as an encoder or autoencoder. In the case of computer vision tasks, the shared network module 22 preferably includes a plurality of convolutional layers.

[0071] The multi-task machine learning model 20 comprises a plurality of head network modules 30. Each head network module 30 is trained to perform a specific task. Here, each head network module 30 is trained to perform a specific computer vision task. A first head network module 32 can be trained to perform an object detection task, a second head network module 34 may be trained to perform a semantic segmentation task, and a third head network module 36 may be trained to perform pose estimation.

[0072] Preferred configurations of the head network modules 30 for specific computer vision tasks are known per-se and hence not described in more detail. In general, each of the first to third head network modules 32, 34, 36 may comprise convolutional layers and / or a multilayer perceptron.

[0073] The multi-task machine learning model 20 comprises a plurality of masking modules 38. Each masking module 38 is associated with one of the first to third head network modules 32, 34, 36. Each masking module 38 generates task-specific masking data 40 that are used to mask the shared output data 26 thereby generating masked shared output data 42. The task-specific masking data 40 are task-specific. In other words, the task-specific masking data 40 are configured such that representations that are included in the shared output data 26 that are less relevant or irrelevant to the specific task, i.e. the respective head network module 30, are prevented from being processed by that head network module 30.

[0074] In a variant, each masking module 38 may also process the hidden shared output data of each layer of the shared network module 22 in order to generate masking data 40. Preferably, the masking data 40 are then applied in a layerwise manner to the hidden shared output data of the shared network module 22.

[0075] Specifically, a first masking module 44 that is associated with the first head network module 32 generates the task-specific masking data 40 such that representations in the shared output data 42 that are less relevant to the specific task of object detection are blocked from being processed by the first head network module 32. The same is done for a second and third masking module 46, 48 respectively.

[0076] Each of the masking modules 38 can be chosen to comprise a multilayer perceptron or a multi-head self-attention module with which the task-specific masking data 40 is generated from the shared output data 26. The task-specific masking data 40 is preferably organized as a collection of one soft mask vector having a dimension corresponding to the representation of the shared output data 26 for each task. In other words, the task-specific masking data 40 comprise one soft mask vector of dimension Z for each task. The task-specific masking data 40 preferably has entries from 0 to 1 . In a preferred embodiment, if a specific entry of the soft mask vector as determined by the masking module 38 does not exceed a predetermined threshold, e.g., 0.5, then that entry is set to 0.

[0077] In case the masking module 38 is configured as a multilayer perceptron to generate the task-specific masking data 40, the multilayer perceptron preferably includes two to five linear layers in total. The linear layers are preferably connected via a rectified linear unit. The last layer preferable uses a sigmoid non-linearity in order to allow a soft-gated mechanism, i.e., the sigmoid ensures values between 0 and 1.

[0078] In case the masking module 38 is configured as a multi-head self-attention module, the respective inputs divided into the three known projections that are typically designated as query, key and value. The task-specific masking data 40 is generated as a concatenation of the softmax-function applied to the dot product between query and key divided by the square root of the dimensionality and that result multiplied by the value as written in the following formula

[0079] The masking module 38 may be described as transformer-like due to the application of the attention mechanism. However, it should be noted that in contrast to the transformer model not positional embedding is used here, as it is assumed that there is no ordering relationship between different tasks.

[0080] The autonomous vehicle 10 can be controlled by gathering sensor data as shared input data 24 that are fed to the shared network module 22. The shared network module 22 generates shared output data 26 that include a representation of the shared input data 24 that is useful for each computer vision task. Each masking module 38 generates task-specific masking data 40 based on the same shared output data 26 and applies the task-specific masking data 40 in order to generate task-specific masked shared output data. The task-specific masked shared output data are fed to the respective head network module 30 that is trained for that specific task. The respective head network module 30 processes the task-specific masked shared output data and generates respective task-specific result data 50.

[0081] The task-specific result data 50 as generated by the multi-task computer vision model comprise object detection data, semantic segmentation data and pose estimation data.

[0082] The task-specific result data 50 are then further processed by the vehicle control unit 12 in order to generate a control signal, according to which the autonomous vehicle 10 is controlled.

[0083] In the following, an embodiment of training of the multi-task machine learning model 20 is described in more detail. In this embodiment all tasks share common inputs as is typical for computer vision, for example, where the tasks are trained with images.

[0084] The parameters of the multi-task machine learning model 20 are randomly initialized. The parameters include those of the shared network module 22, the head network modules 30 and the masking modules 38.

[0085] The labelled training data is divided in to batches. Each batch includes the input data and a label for each task. The training data are fed as shared input data 24 to the shared network module 22 in order to obtain the shared output data 26. The shared output data 26 is a Z-dimensional representation. The shared output data 26 is fed to each masking module 38 which determines the task-specific masking data 40. The masking module 38 includes a multilayer perceptron or a multi-head attention module as described before. The task-specific masking data 40 is applied to the shared output data 26 in order to obtain the task-specific masked shared output data. For each task, the task-specific masked shared output data is fed to the head network module 30 that is associated with the task to be learned. In a usual manner a taskspecific loss value is determined. The task-specific loss may be chosen as a meansquare loss or a cross-entropy loss, for example. After determining the task-specific losses, a mask-specific loss is determined and added to the sum of the task-specific losses.

[0086] The mask-specific loss is chosen such that a dense representation with a simultaneous utilization of the entire output vector dimension is favored. In other words, the mask-specific loss is chosen such that a specific task uses as few entries of the output vector as possible, while all tasks combined should utilize (nearly) all entries. An example for such a mask-specific loss is of - maxMf where the max is element-level max. The first term allows the decrease of the number of selected channels for denser representation. The second term encourages all tasks to use as many channels as possible.

[0087] The optimization of the sum of the task-specific losses and the mask-specific loss causes the multi-task machine learning model 20 to learn the tasks simultaneously and allows a dense representation with maximum utilization of the shared representation.

[0088] In the following, another embodiment of training of the multi-task machine learning model 20 is described in more detail insofar it differs from the previously described embodiment. In this embodiment the batches of training data are generated differently. In contrast to the previous embodiment, the samples of each batch are chosen such that they are a uniform sampling for all tasks.

[0089] In the following a unified metric is used to measure the performance of the various disclosed embodiments. The measure is the overall relative multi-task performance AMTL of a model m averaged with respect to each single-task baseline b reported in other papers in this field. The formula definition of AMTL is Following Jiaqi Ma, et al. Modeling task relationships in multi-task learning with multigate mixture-of-experts. In Proceedings of the 24th ACM SIGKDD international conference on knowledge discovery & data mining, pages 1930-1939, 2018., regression tasks are generated and differs the same mechanism to test the quantitative indicator of task relationships is used. More detailed, synthetic data is generated as follows:

[0090] 1 . Given the input feature dimension d, we generate two orthogonal unit vectors ui , U2 e Rd.

[0091] 2. Given a scale constant c and a correlation score -1 < q < 1 , generate two weight vectors wi,W2 such that

[0092] 3. Randomly sample an input data point x e Rdwith each of its elements from a normal distribution with mean zero and standard deviation one.

[0093] 4. Generate two labels yi, y2 for two regression tasks as follows where ai, Pi, i = 1 , 2, ..., m are given parameters that control the shape of the sinusoidal functions andei’e2 are randomly chosen with a normal distribution of mean 0 and standard deviation 0.01 .

[0094] 5. Repeat steps 3. and 4. until enough data are generated.

[0095] A key point in multi-task learning is whether the method can automatically take advantage of the similarity between tasks and avoid conflicts between different tasks. As shown in Fig. 3, the disclosed method named AIRS has a greater performance on datasets with different Pearson correlations. The constraining mechanism, i.e., the mask-specific loss, on the regression dataset is studied. Results are shown in Fig. 4. A penalty factor r that is too small approximates that removing the restriction mechanism will significantly degrade the performance. The penalty factor r is multiplied with the mask-specific loss during determination of the total loss.

[0096] The Multi-cifarl 00 dataset by Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images; 2009 is available at https: / / www.cs.toronto.edu / ~kriz / cifar.html. This dataset is a very common 100-class classification dataset that uses images as input and is often used to test different CNN-based neural network architectures. Multi-cifarl 00 divides the original cifar O dataset into 20 sub-dataset by grouping their labels by categories, which is a typical multi-input scenario defined above. This dataset is used to test the disclosed methods generalization ability on different neural network backbones, Resnet (disclosed in Kaiming He, et al. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016) and VGG (disclosed in Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv: 1409.1556, 2014), and performance with multi-inputs. The disclosed method shows better performance on VGG backbone and lower performance on Resnet backbone as depicted in Fig. 5.

[0097] The NYUv2 dataset by Nathan Silberman, et al; Indoor segmentation and support inference from rgbd images; In European conference on computer vision, pages 746-760; Springer 2012; is available at https: / / cs.nyu.edu / ~silberman / datasets / nyu_depth_v2.html.

[0098] The dataset is comprised of video sequences from a variety of indoor scenes as recorded by both the RGB and Depth cameras. We selected three tasks depth estimation, surface normals estimation, and semantic segmentation, and compared the disclosed method (AIRS) with the baseline method in two situations where the backbone architecture, Resnet50 in our setting, with and without pre-training on other large image datasets. As above, performance with different penalty coefficients is shown in Fig. 6 and Fig. 7. The Cityscapes dataset by Marius Cordts, et al.; The cityscapes dataset for semantic urban scene understanding; In Proc, of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016 is available at https: / / www.cityscapes- dataset.com / .

[0099] This dataset is a large-scale multi-task dataset for dense prediction tasks. We also select three tasks 19-class semantic segmentation, disparity (inverse depth) estimation and 10-class part segmentation, and other settings are as same as NYUv2. As above, we show performance with different penalty coefficients in Fig. 8 and Fig. 9.

[0100] As can be seen from Fig. 3 to Fig. 9, the invention AIRS shows significant improvement over the baselines. As can also be seen, a change in the penalty factor r results in a change of influence of the mask-specific loss during training. This causes a significant change in performance of the disclosed multi-task machine learning model 20 relative to the baseline.

[0101] REFERENCE SIGNS

[0102] 10 autonomous vehicle

[0103] 12 vehicle control unit

[0104] 14 sensor system

[0105] 16 sensor

[0106] 18 sensing area

[0107] 20 multi-task machine learning model

[0108] 22 shared network module

[0109] 24 shared input data

[0110] 26 shared output data

[0111] 30 head network module

[0112] 32 first head network module

[0113] 34 second head network module

[0114] 36 third head network module

[0115] 38 masking module

[0116] 40 masking data

[0117] 42 masked shared output data

[0118] 44 first masking module

[0119] 46 second masking module

[0120] 48 third masking module

[0121] 50 task-specific result data

Claims

CLAIMS1. A computer-implemented multi-task machine learning model (20) that is capable of performing and training a plurality of tasks based on shared input data (24), the model comprising a shared network module (22) that is configured to receive and process shared input data (24) and that is configured to output shared output data (26); a plurality of head network modules (30), wherein each head network module (30) is trained for one specific task of the plurality of tasks and configured to output task-specific result data (50); and a plurality of masking modules (38), ch a racte rized i n t h at each masking module (38) is associated with at least one head network module (30) and configured for masking at least the shared output data (26) thereby generating task-specific masked shared output data, wherein each masking module (38) is configured to feed the masked shared output data to each associated head network module (30).

2. The model according to claim 1 , wherein there is exactly one masking module (38) for each head network module (30).

3. The model according to any of the preceding claims, wherein each masking module (38) is configured to generate task-specific masked shared output data from the shared output data (24) by determining masking data (40) from the shared output data (26), wherein the masking data (40) is indicative of which shared output data (26) is blocked and which shared output data (26) can be further processed.

4. The model according to claim 3, wherein each masking module (38) is configured to generate the masking data (40) from the shared output data (26) by feedforward of the shared output data (26) through a multilayer perceptron and or by applying an attention mechanism to the shared output data (26).

5. The model according to any of the preceding claims, wherein the shared network module (22) comprises at least one hidden layer that outputs hidden shared output data, and each masking module (38) is configured to generate task-specific masked hidden shared output data from the hidden shared output data of the at least one hidden layer.

6. The model according to any of the preceding claims, wherein the shared network module (22) is configured to feedforward the task-specific masked hidden shared output data to another hidden layer or an output layer of the shared network module (22).

7. The model according to any of the preceding claims, wherein the multi-task machine learning model (20) is configured as a multi-task computer vision model that is capable of performing and training a plurality of computer vision tasks, wherein each head network module (30) is trained for one specific computer vision task.

8. The model according to claim 7, wherein each computer vision task is chosen from a task group consisting of object recognition, object identification, object detection, pose estimation, and semantic segmentation.

9. A computer-implemented method for training a multi-task machine learning model (20) according to any of the preceding claims by feeding labeled shared training data to a shared network module (22) and feeding the output of the shared network module (22) to a plurality of masking modules (38), ch a racte rized by each masking module (38) masking the output of the shared network module (22) thereby generating masked shared output data, wherein the masked shared output data is further fed to a plurality of head network modules (30), wherein a loss is determined and reduced based on a loss function that comprises at least one task-specific loss term and a mask-specific loss term, wherein each task-specific loss term is associated with a specific task to be trained and chosen such that the task-specific loss term causes the multi-task machine learning module to learn a specific task, wherein the mask-specific loss term associated with all masking modules (38).

10. The method according to claim 9, wherein the mask-specific loss term is chosen such that during training the density of representation of each task in the shared output data (26) or masked shared output data is increased.11 . The method according to claim 9 or 10, wherein the mask-specific loss term is chosen such that during training the amount of utilized shared output data (26) is increased.

12. A method for controlling an autonomous vehicle (10), the autonomous vehicle (10) comprising at least one sensor (16) for detecting input data, a multi-task machine learning model (20) according to any of the claims 1 to 8 or trained according to any of the claims 9 to 11 , and a vehicle control unit (12) for controlling the autonomous vehicle (10), wherein the input data generated by the at least one sensor (16) is fed to the machine learning model (20) in order to generate taskspecific result data (50), wherein the vehicle control unit (12) controls the vehicle (10) according to the task-specific result data (50).

13. An autonomous vehicle (10) that is configured to perform a method according to claim 12.

14. A data processing apparatus or vehicle control unit (12) for an autonomous vehicle (12) comprising a multi-task machine learning model (20) according to any of the claims 1 to 8 or trained according to any of the claims 9 to 10.

Citation Information

Patent Citations

  • Multi-task learning model construction and optimization method based on deformable convolution

    CN112132258A

  • Method for detecting behavior of rider without wearing helmet based on multi-task deep learning

    CN113887343A

  • Image classification utilizing semantic relationships in a classification hierarchy

    US9928448B1

  • AU2019101142A4

Cited By

  • Face recognition system based on face mask detection model

    CN120853235A

  • Multi-task processing model training method and device, storage medium and electronic equipment

    CN121145951A

  • Methane point source remote sensing detection inversion method based on physically guided deep learning

    CN122156837A