A method for training a graph neural network to predict vehicle trajectories.
By training a graph neural network to understand multiple traffic participants and their interactions, the method enhances prediction accuracy and generalization, addressing the limitations of existing approaches.
Patent Information
- Application Number
- JP2026081958
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-15
- Filing Date
- 2026-05-14
- Publication Date
- 2026-11-27
AI Technical Summary
Existing methods for training graph neural networks for vehicle trajectory prediction, such as those described in Reference [1], suffer from limited generalization, leading to reduced prediction accuracy in rare situations and ineffective inference.
Training a graph neural network to predict vehicle trajectories by incorporating scene understanding of multiple traffic participants and their interactions, using a large language model to determine node and edge losses through contrastive learning, thereby enhancing the network's ability to generalize and improve prediction accuracy.
The method improves trajectory prediction accuracy by enabling the graph neural network to understand broader scenarios, reducing computational costs, and enhancing inference capabilities.
Smart Images

Figure 2026185889000001_ABST
Abstract
Description
[Technical Field]
[0001] To control a vehicle in the context of at least partially automated (e.g., autonomous) driving, it may be necessary to understand the scene in which the vehicle is located. To this end, the vehicle may include a sensor for acquiring sensor data representing the surroundings of the vehicle. For example, there are vision-only approaches that use only images of the surroundings (and do not use LIDAR and / or radar point clouds). The article "VLP: Vision Language Planning for Autonomous Driving" by C. Pan, arXiv:2401.05577, 2024 (hereinafter referred to as Reference [1]) describes an approach that uses an LLM during the training of a vision model to enhance the capabilities of an autonomous driving system. [Prior Art Literature] [Non-Patent Literature]
[0002] [Non-Patent Literature 1] C. Pan, "VLP: Vision Language Planning for Autonomous Driving", arXiv:2401.05577, 2024 [Summary of the Invention] [Problem to be Solved by the Invention]
[0003] Disclosure of the Invention However, it has been found that the approach of Reference [1] is limited in terms of generalization, leading to reduced prediction accuracy when dealing with rare situations and preventing effective inference. [Means for Solving the Problem]
[0004] This disclosure relates to a method for training a graph neural network to predict vehicle trajectories. Graph neural networks trained according to this method have improved accuracy in trajectory prediction (due to improved inference) as a result of improved scene understanding. This improvement in accuracy is achieved by training the graph neural network for scene understanding of (e.g., multiple) traffic participants other than the vehicle (represented by at least one node in the graph) and for (e.g., multiple) relationships (e.g., interactions) between them (represented by one or more edges in the graph), in contrast to the model in reference [1] which is trained for scene understanding of only the vehicle itself. This includes scene understanding of other traffic participants not on the road, such as bicycles and pedestrians. Accordingly, the graph neural network is trained so that the graph embeddings represent a more generalized scene understanding, i.e., a broader context of the scene. This significantly improves the vehicle's trajectory prediction in scenarios where the vehicle itself was not trained.
[0005] Various embodiments relate to computer-implemented methods for training a graph neural network to predict vehicle trajectories, the method comprising: receiving sensor data representing multiple traffic participants in a scene, wherein the multiple traffic participants include vehicles; generating a graph comprising multiple nodes and multiple edges, wherein each traffic participant is represented by each node of the multiple nodes, and each edge of the multiple edges is an edge between two nodes and represents a relationship between the traffic participants represented by the two nodes (e.g., relative speed, distance); and inputting the graph into a graph neural network, the graph neural network being configured to generate graph embeddings in response to the graph input and to use the graph embeddings to predict vehicle trajectories, wherein the graph embeddings comprise each node embedding for each node of the multiple nodes and each edge embedding for each edge of the multiple edges; and selecting one or more nodes from the multiple nodes and one or more edges from the multiple edges. The node loss is determined by determining the respective node loss for each node of the one or more nodes, wherein each node loss for each node of the one or more nodes is determined by generating a node text embedding by inputting a node text description describing each node into a large language model, and determining the respective node loss using the difference between the (generated) node text embedding and the respective node embedding of each node (e.g., the difference is represented by similarity), and the edge loss is determined by determining the respective edge loss for each edge of one or more edges, wherein each edge loss for each edge of one or more edges is determined by generating an edge text embedding by inputting an edge text description describing each edge into a large language model, and determining the difference between the (generated) edge text embedding and the respective edge embedding of each edge (e.g.,This includes determining the edge loss for each node (where the difference is represented by similarity), determining the trajectory loss between the predicted trajectory and the ground truth trajectory (e.g., ADE loss), determining the overall loss using the node loss, edge loss, and trajectory loss, and tuning (e.g., training) the graph neural network to reduce the overall loss.
[0006] To illustrate, the common knowledge and reasoning capabilities of a Large-Scale Language Model (LLM) are transferred to a graph neural network for action planning. When determining the loss for each node using the difference between the node text embedding and the respective node embedding of each node, the node text embedding and the respective node embedding may be mapped to a shared feature space, and the loss may then be the difference in this shared feature space. The shared feature space may be the feature space of the text embedding, or one of the feature spaces of the nodes or node embeddings, or it may be a feature space different from the feature space of the text embedding and the node. The same applies to edge loss, where, when determining the loss for each edge using the difference between the edge text embedding and the respective edge embedding of each edge, the edge text embedding and the respective edge embedding may be mapped to a shared feature space, and the loss may then be the difference in this shared feature space.
[0007] Various examples are described below.
[0008] Example 1 is a method for training a graph neural network to predict the trajectory of a vehicle, as described above.
[0009] In Example 2, the subject matter of Example 1 may optionally include: determining the node loss using the difference between the node text embedding and the respective node embedding of each node; generating negative node text embeddings by inputting negative text descriptions that do not describe each node into a large-scale language model; and determining the node loss as a contrastive loss in which the difference between the node text embedding and the respective node embedding of each node is reduced (for example, by increasing their similarity), and the difference between the negative node text embedding and the respective node embedding of each node is increased (for example, by increasing their dissimilarity).
[0010] In Example 3, the subject matter of Example 1 or Example 2 may optionally include: determining each edge loss using the difference between the edge text embedding and each edge embedding of each edge; generating negative edge text embeddings by inputting negative (edge) text descriptions that do not describe each edge into a large language model; and determining each edge loss as a contrastive loss in which the difference between the edge text embedding and each edge embedding of each edge is reduced (for example, by increasing their similarity), and the difference between the negative edge text embedding and each edge embedding of each edge is increased (for example, by increasing their dissimilarity).
[0011] By using contrastive losses as shown in Examples 2 and 3, it becomes possible to significantly improve the accuracy of trajectory predictions by training on aspects that are particularly important for driving scenarios. For example, from an LLM perspective, the words "left" and "right" may be quite similar because both are directions. However, in a driving scenario, "left" and "right" should be significantly different from each other. To illustrate, node text embeddings and each node embedding within each node can form a positive pair of contrastive losses whose similarity should be increased, while negative node text embeddings and each node embedding within each node can form a negative pair of contrastive losses whose similarity should be decreased (i.e., their dissimilarity should be increased). The same applies to edges accordingly.
[0012] In Example 4, the subject matter described in any one of Examples 1 to 3 may optionally include the condition that the number of nodes in one or more nodes is less than the number of nodes in multiple nodes, and / or, the number of edges in one or more edges is less than the number of edges in multiple edges.
[0013] This makes it possible to reduce the computational cost during training. For example, as a result, the computational cost can be made virtually independent of the graph size.
[0014] In Example 5, the subject matter described in any one of Examples 1 to 4 may optionally include selecting one or more nodes from a group of nodes, which includes randomly selecting one or more nodes from a group of nodes, and / or selecting one or more edges from a group of edges, which includes randomly selecting one or more edges from a group of edges.
[0015] In Example 6, the subject matter of Example 5 may optionally include the following: randomly selecting one or more nodes from a group of nodes includes weighted random selection of one or more nodes from a group of nodes, where the weight of each node from the group of nodes depends on the respective node embeddings of that node and / or the node itself; and / or randomly selecting one or more edges from a group of edges includes weighted random selection of one or more edges from a group of edges, where the weight of each edge from the group of edges depends on the respective edge embeddings of that edge and / or the edge itself. For example, nodes may be weighted more highly the greater the difference between their respective node embeddings and the average node embedding, where the average node embedding is the average across the respective node embeddings of all nodes in the group of nodes. Accordingly, edges may be weighted more highly the greater the difference between their respective edge embeddings and the average edge embedding, where the average edge embedding is the average across the respective edge embeddings of all edges in the group of edges.
[0016] This weighted random selection allows graph neural networks to be trained on a wider range of features of traffic participants in a scenario, thereby improving the accuracy of trajectory predictions across diverse scenarios. For example, two vehicles traveling at 60 km / h and 100 km / h are considered more relevant to scene understanding than two vehicles traveling at 60 km / h and 65 km / h respectively.
[0017] Example 7 is a data processing device configured to perform the method described in any one of Examples 1 through 6.
[0018] Example 8 is a vehicle controller configured to control a vehicle using trajectories predicted by a graph neural network trained according to the method of any one of Examples 1 to 6.
[0019] Example 9 is a computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of Examples 1 to 6.
[0020] Example 10 is a computer-readable medium comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of Examples 1 to 6.
[0021] In the drawings, like reference numerals generally refer to like parts throughout the different views. The drawings are not necessarily to scale, emphasis instead generally being placed upon illustrating the principles of the invention. In the following description, various aspects are described with reference to the following drawings. [Brief Description of the Drawings]
[0022] [Figure 1] A diagram illustrating an at least partially automated vehicle according to various aspects. [Figure 2] A flowchart illustrating a computer-implemented method for training a graph neural network to predict vehicle trajectories according to various aspects. [Figure 3] A diagram illustrating a flowchart representing various aspects of the present method. [Detailed Description]
[0023] The following detailed description will be illustrated by the accompanying drawings illustrating specific details and embodiments of the present disclosure in which the present invention may be carried out. Other embodiments may be utilized, and structural, logical, and electrical modifications may be made without departing from the scope of the present invention. The various embodiments of the present disclosure are not necessarily mutually exclusive, and so some embodiments of the present disclosure may be combined with one or more other embodiments of the present disclosure to form new embodiments.
[0024] The following sections will provide more detailed explanations of various examples.
[0025] Figure 1 shows a vehicle 100 that is at least partially automated in various forms. The vehicle 100 shown in Figure 1 and described hereafter as an example is an exemplary computer-controlled device that serves to illustrate. Thus, various forms of the computer-implemented method will be described in detail with reference to this vehicle 100, but it will be understood that this vehicle serves to illustrate and that any other computer-controlled device using trajectory prediction can employ the computer-implemented method detailed herein. Other computer-controlled devices using trajectory prediction may be, for example, industrial robots (e.g., robots in the form of robotic arms for moving, assembling or processing workpieces or for bin picking, etc.), manufacturing robots, maintenance robots, household robots, medical robots, production machines, and any other type of computer-controlled device based on trajectory prediction.
[0026] For the control of the vehicle 100, the vehicle 100 may include a (vehicle) controller 102 configured to implement interactions with the environment of the vehicle 100 according to a control program. The term “controller” may be understood as any type of logic implementation entity, which may include, for example, a circuit and / or processor capable of implementing software, firmware, or a combination thereof stored in a storage medium, and which in this example can, for example, issue commands to actuators. The controller may be configured, for example, by program code (e.g., software) to control the operation of the system (in this example, the vehicle).
[0027] In this example, the controller 102 may include one or more processors 104 and a memory 106 that stores the underlying code and data that the processors 104 use to control the vehicle 100. According to various embodiments, the controller 102 controls the vehicle 100 based on a machine learning model 108 stored in the memory 106.
[0028] To enable control of the driving tasks of vehicle 100, controller 102 can use sensor data representing the surroundings of vehicle 100 (e.g., the environment). For this purpose, vehicle 100 may include one or more sensors 109,110, each providing sensor data representing at least a portion of the surroundings of vehicle 100. The sensors of one or more sensors 109,110 may be imaging sensors and / or proximity sensors, such as cameras (e.g., standard cameras, digital cameras, infrared cameras, stereo cameras, etc.), radar sensors, LiDAR sensors, ultrasonic sensors, etc. One of the one or more sensors 109,110 may be configured to acquire an image showing at least a portion of the surroundings of vehicle 100. The image may be an RGB image, an RGB-D image, or a depth image (also referred to as a D image). The depth image described herein may be any type of image containing (three-dimensional) depth information. For example, the depth image may have information about one or more objects in the surroundings of vehicle 100. For example, the depth image described herein may include a point cloud provided by a LiDAR sensor and / or a radar sensor. For example, the depth image may be an image with depth information provided by a LiDAR sensor. In various embodiments, the vehicle 100 may include one or more LiDAR sensors 109 and / or one or more camera sensors 110. The vehicle 100 may further include other sensors such as a Global Positioning Satellite System (GNSS, e.g., a Global Positioning System (GPS)), a speedometer, an altimeter, a gyroscope, an accelerometer, and so on, and it will be understood that the controller 102 may also employ sensor data provided by these other sensors for the control of the vehicle 100. The controller 102 may be configured to control the vehicle 100 based on the output of a machine learning model 108 in response to the input of sensor data to the machine learning model 108.
[0029] The vehicle 100 may include a drive device 112 for driving the vehicle 100. The controller 102 may be configured to determine control parameters for controlling the vehicle 100 using the output of a machine learning model 108. The controller 102 may be configured to control the operation of the vehicle 100 according to the control parameters (for example, by controlling the drive device 112 via a control signal).
[0030] A vehicle 100 that is at least partially automated may be an automated vehicle or an autonomous vehicle. The level of autonomy of the vehicle may be described or determined by the Society of Automotive Engineers (SAE) level of the vehicle (as defined, for example, in SAE J3016). For example, a vehicle 100 that is at least partially automated may be a partially automated vehicle (according to SAE Level 2), a highly automated vehicle (according to SAE Level 3), a fully automated vehicle (according to SAE Level 4), or an autonomous vehicle (according to SAE Level 5).
[0031] Vehicles that are at least partially automated can generally take on driving tasks autonomously. For this purpose, a machine learning model 108 can predict the trajectory of vehicle 100, which is then used for planning the vehicle's movements. For a system that autonomously performs driving tasks, it must be highly safety-critical to ensure the safety of occupants and other road users (e.g., cyclists, pedestrians, etc.). Therefore, the predicted trajectory should be as accurate as possible.
[0032] In various embodiments, the machine learning model 108 may include a graph neural network trained to predict trajectories with improved accuracy. This is achieved by improving the graph neural network's scene understanding, specifically by having a graph embedding that represents a more generalized scene understanding.
[0033] The graph neural network may be generated (e.g., learned or trained) while the vehicle 100 is not in operation. The generated graph neural network may be used while the vehicle 100 is in operation for trajectory prediction, and then they may be used for planning the driving tasks to be performed by the vehicle 100. Optionally, the generated graph neural network may be additionally trained while the vehicle 100 is in operation.
[0034] Figure 2 shows flowcharts of 200 (computer implementation) methods for training a graph neural network to predict vehicle trajectories in various configurations.
[0035] Method 200 may include (in step 202) receiving sensor data representing multiple traffic participants in the scene. Multiple traffic participants may include vehicles.
[0036] Method 200 may include generating a graph containing multiple nodes and multiple edges (in step 204). Each of the multiple traffic participants may be represented by each node of the multiple nodes. Each of the multiple edges may be an edge between two nodes and can represent a relationship between traffic participants represented by two nodes.
[0037] Method 200 may include (in step 206) inputting a graph into a graph neural network, which is configured to generate graph embeddings in response to the graph input and to use these graph embeddings to predict the vehicle's trajectory. The graph embeddings may include node embeddings for each node of a plurality of nodes and edge embeddings for each edge of a plurality of edges.
[0038] Method 200 may include (in step 208) selecting one or more nodes from a plurality of nodes and one or more edges from a plurality of edges. The one or more nodes may include at least one node that does not represent a vehicle. Therefore, at least one node may be different from a node that represents a vehicle. In various embodiments, two or more nodes may be selected. In some embodiments, the one or more edges may include at least one edge that does not represent a relationship with a vehicle. Therefore, at least one edge may be an edge between two nodes, neither of which represents a vehicle.
[0039] Method 200 may include determining the node loss by determining the respective node loss for each node of one or more nodes (in step 210). The respective node loss for each node of one or more nodes is determined by generating node text embeddings by inputting node text descriptions describing each node into a large language model, and determining the respective node loss using the difference between the (generated) node text embeddings and the respective node embeddings for each node.
[0040] Method 200 may include determining the edge loss by determining the respective edge loss for each edge of one or more edges (in step 212). The respective edge loss for each edge of one or more edges is determined by generating an edge text embedding by inputting an edge text description describing each edge into a large language model, and then determining the respective edge loss using the difference between the (generated) edge text embedding and the respective edge embedding for each edge.
[0041] Method 200 may include (in step 214) determining the trajectory loss (e.g., ADE) between the predicted trajectory and the ground truth trajectory.
[0042] Method 200 may include determining the total loss using node loss, edge loss and trajectory loss (in step 216).
[0043] Method 200 may include (in step 218) tuning (e.g., training) the graph neural network to reduce the overall loss (e.g., using backpropagation).
[0044] In the following sections, various embodiments of the method 200 will be described in more detail with reference to Figure 3.
[0045] Training may be performed iteratively on a dataset 302 (n=1 to N) containing sensor data 302(n) for each corresponding scene, where N is any integer greater than or equal to 1. The sensor data may include any kind of raw or pre-processed sensor data representing the corresponding scene. In one example, the sensor data may include a bird's-eye view image, as illustrated in Figure 3. In some embodiments, a multi-view image of the scene may be received, and the bird's-eye view image may be generated therefrom. In other examples, the sensor data may include a dataset (e.g., numerical) representing the scene. Thus, the sensor data 302(n) may be any kind of data representing multiple traffic participants in the scene and their interactions. Generally, the sensor data 302(n) may be any kind of data from which a graph 308(n) can be generated, which includes multiple nodes 310 (each with a node for each traffic participant) and multiple edges 312 (each with an edge between each pair of nodes).
[0046] Next, in step 206, the graph 308(n) may be input to the graph neural network 314 to generate graph embeddings and use these graph embeddings to predict the vehicle's trajectory 338. These graph embeddings may include a plurality of node embeddings 316, each with its own node embedding for a plurality of nodes 310, and a plurality of edge embeddings 318, each with its own edge embedding for a plurality of edges 312. The plurality of node embeddings 316 are generated by the convolutional layers of the graph neural network.
[0047] In various embodiments, one or more nodes 319 (m=1 to M) from among the multiple nodes 310, and therefore one or more node embeddings 320 (m=1 to M) from among the multiple node embeddings 316, may be selected (in step 208). M may be any integer greater than or equal to 1. In various embodiments, M may be less than the total number of nodes in the multiple nodes 310 (this reduces the computational cost during training). One or more nodes 319 (m=1 to M) may be at least one node 319 (m) that is different from the node representing the vehicle. * ) may include. Therefore, at least one node 319(m * ) can represent traffic participants other than vehicles. One or more nodes 319 (m=1 to M) from among the multiple nodes 310 may be selected randomly. The weight of each node among the multiple nodes 310 may depend on the node embedding of each node and / or the node itself. According to various embodiments, one or more nodes 319 (m=1 to M) from among the multiple nodes 310 may be weighted and selected randomly, where the node 319(m) is weighted more highly the larger the difference between their respective node embeddings 320(m) and the average node embedding across the multiple node embeddings 316. Consequently, nodes with more diverse features are more likely to be included in the training process, thereby improving the accuracy of trajectory prediction in a variety of scenarios.
[0048] For each node 319(m) of one or more nodes 319(m=1 to M), a node text description 322(m) may be provided or generated. Each node text description 322(m) can describe the corresponding node 319(m). Optionally, a text template may be used to generate each node text description 322(m), which is then filled with information about the corresponding node 319(m). An example of each node text description 322(m) is as follows: "This car is traveling at 100 km / h in the left lane of a three-lane highway, and is moving at 2 m / s 2 It can be assumed that it has the acceleration of "
[0049] Next, each node text description 322(m) can be input to LLM324 to generate each node text embedding 326(m). Then, the difference between each node text embedding 326(m) and each node embedding 320(m) of each node 319(m) may be used to determine each node loss 328(m). As detailed herein, each node text embedding 326(m) and each node embedding 320(m) may first be mapped to a shared feature space, and then the difference between each node text embedding 326(m) and each node embedding 320(m) of each node 319(m) may be the difference in this shared feature space. For the determination of the difference in this shared feature space, see reference [1].
[0050] In various embodiments, each node loss 328(m) may be determined using contrastive loss. In this example, each node text description 322(m) may include the above text description describing the corresponding node 319(m) as a positive node text description, and may also include a negative node text description that does not describe the corresponding node 319(m) (for example, one that contradicts the corresponding node 319(m)). An example of a negative node text description associated with the above example of a positive text description is as follows: "This car is traveling at 10 km / h in the right lane of a three-lane highway, and 5 m / s 2 It may be assumed that it has an acceleration of . A positive node text description can consequently produce a (positive) node text embedding, and a negative node text description may be input to LLM324 to generate a negative node text embedding. Thus, each node text embedding 326(m) may contain both a positive node text embedding and a negative node text embedding. The contrastive loss may then be determined using the similarity between the positive node text embedding and each node embedding 320(m) of each node 319(m), and the dissimilarity between the negative node text embedding and each node embedding 320(m) of each node 319(m). The accuracy of trajectory prediction is further improved by using the contrastive loss because it is possible to learn the differences in features relevant to the driving scenario. For example, from an LLM perspective, the words "left" and "right" may be quite similar since both are directions, but in a driving scenario, "left" and "right" are opposites and should be clearly distinguished.
[0051] Accordingly, one or more node losses 328 (m=1 to M) are determined. In accordance with this, one or more edge losses 336 (k=1 to K) may be determined.
[0052] For this purpose, one or more edges 329 (k=1 to K) from the multiple edges 312, and therefore one or more edge embeddings 330 (k=1 to K) from the multiple edge embeddings 318, may be selected (in step 208). K may be any integer greater than or equal to 1. In some embodiments, K may be equivalent to M (i.e., K=M), and in other embodiments, K may be different from M (i.e., K≠M). According to various embodiments, K may be less than the total number of edges in the multiple edges 312 (this reduces the computational cost during training). One or more edges 329 (k=1 to K) from the multiple edges 312 may be selected randomly. The weight of each edge in the multiple edges 312 may depend on the respective edge embedding and / or the edge itself. In various embodiments, one or more edges 329 (k=1 to K) among the multiple edges 312 may be weighted and randomly selected, where the edges 329(k) are weighted more highly the larger the difference between their respective edge embeddings 330(k) and the average edge embedding across the multiple edge embeddings 318. Consequently, edges with more diverse features are more likely to be included in the training process, thereby improving the accuracy of trajectory prediction in a variety of scenarios.
[0053] For each edge 329(k) of one or more edges 329(k=1 to K), an edge text description 332(k) may be provided or generated. Each edge text description 332(k) can describe the corresponding edge 329(k). Optionally, a text template may be used to generate each edge text description 332(k), which is then populated with information about the corresponding edge 329(k). An example of each edge text description 332(k) may be: "The other vehicle is a truck. It is traveling 20 km / h faster. It is following behind this vehicle."
[0054] Next, each edge text description 332(k) can be input to the LLM324 to generate each edge text embedding 334(k). Then, the difference between each edge text embedding 334(k) and each edge embedding 330(k) of each edge 329(k) may be used to determine each edge loss 336(k). As detailed herein, each edge text embedding 334(k) and each edge embedding 332(k) may first be mapped to a shared feature space, and then the difference between each edge text embedding 334(k) and each edge embedding 330(k) of each edge 329(k) may be the difference in this shared feature space. For the determination of this difference in this shared feature space, see reference [1].
[0055] In various embodiments, each edge loss 336(k) of one or more edge losses 336(k=1 to K) may be determined using contrastive loss. In this example, each edge text description 332(k) may include the above-mentioned text description describing the corresponding edge 329(k) as a positive edge text description, and may also include a negative edge text description that does not describe the corresponding edge 329(k) (for example, one that contradicts the corresponding edge 329(k)). An example of a negative edge text description associated with the above-mentioned example of a positive edge text description may be: "The other vehicle is a motorcycle. It is traveling 60 km / h faster. It is traveling to the left of this vehicle." A positive edge text description may consequently produce a (positive) edge text embedding, and a negative edge text description may be input to LLM324 to generate a negative edge text embedding. Thus, each edge text embedding 334(k) may include a positive edge text embedding and a negative edge text embedding. Next, the contrast loss may be determined using the similarity between the positive edge text embedding and each edge embedding 330(k) of each edge 329(k), and the dissimilarity between the negative edge text embedding and each edge embedding 330(k) of each edge 329(k).
[0056] Each sensor data 302(n) in the dataset 302(n=1 to N) may be associated with a corresponding ground truth orbit 306 (indicated by the arrow in the bird's-eye view image of Figure 3). In various embodiments, the orbital loss 339 may be determined between the predicted orbit 338 and the corresponding ground truth orbit 306 (in step 214). As an example, the orbital loss 339 may be the advection-dispersion equation (ADE) loss. However, it should be understood that this is merely an example, and the orbital loss 339 may be any kind of loss between the two orbits.
[0057] In step 216, the total loss 340 may be determined using one or more node losses 328 (m=1 to M), one or more edge losses 336 (k=1 to K), and trajectory losses 339. This total loss 340 may be the (e.g., weighted) sum of one or more node losses 328 (m=1 to M), one or more edge losses 336 (k=1 to K), and trajectory losses 339. For example, the average (e.g., arithmetic mean) node loss of one or more node losses 328 (m=1 to M) and the average (e.g., arithmetic mean) edge loss of one or more edge losses 336 (k=1 to K) may be determined. The total loss 340 may be the (e.g., weighted) sum of the average node loss, average edge loss, and trajectory loss 339.
[0058] Next, in step 218, the graph neural network 314 may be adjusted to reduce the total loss 340. By using the loss resulting from the text embeddings described herein, the inference capabilities of the LLM 324 are transferred to the graph neural network 314, and by using multiple node embeddings 320 (m=1 to M) and multiple edge embeddings 330 (k=1 to K) in each iteration, the graph neural network 314 can be trained to learn a more general scene understanding, thereby improving the accuracy of trajectory prediction in a variety of scenarios (e.g., scenarios not observed during training).
[0059] To illustrate, according to various embodiments, a language-conditioned graph neural network 314 is provided that exhibits a more generalized scene understanding.
[0060] A method for controlling a robot (e.g., a vehicle 100 or other robotic device) may include acquiring sensor data representing the robot's surroundings (e.g., images showing one or more other traffic participants in the vicinity of the robot, taken using one or more sensors as described herein). A method for controlling a robot may include generating a graph from the sensor data, feeding the graph to a graph neural network 314 trained according to this method 200 to predict a trajectory 338, and controlling the robot (e.g., vehicle 100) based on the predicted trajectory 338.
[0061] In the above embodiment, the approach shown in Figure 2 is applied to control the vehicle 100, but this approach may also be applied to compute control signals for controlling any technical system in a scenario in which trajectory prediction plays a role.
Claims
1. A computer-implemented method (200) for training a graph neural network (314) to predict the trajectory (338) of a vehicle, The above method (200) is, Receiving sensor data (302) representing multiple traffic participants (304) in the scene, wherein the multiple traffic participants (304) include the vehicle (202), (204) generating a graph (308) including a plurality of nodes (310) and a plurality of edges (312), wherein each of the plurality of traffic participants (304) is represented by each of the plurality of nodes (310), and each of the plurality of edges (312) is an edge between two nodes and represents the relationship between the traffic participants represented by the two nodes (204), Inputting the graph (308) into the graph neural network (314) (206), wherein the graph neural network (314) is configured to generate graph embeddings in response to the input of the graph (308) and to use the graph embeddings to predict the vehicle's trajectory (338), wherein the graph embeddings include node embeddings (316) for each of the plurality of nodes (310) and edge embeddings (318) for each of the plurality of edges (312) (206), Selecting one or more nodes (319) from the plurality of nodes (310) and selecting one or more edges (329) from the plurality of edges (312) (208), wherein the one or more nodes (319) include at least one node that does not represent the vehicle (208), The node loss (328) is determined by determining the node loss for each of the one or more nodes (319), wherein the node loss for each of the one or more nodes (319) is By inputting the node text descriptions (322) describing each of the aforementioned nodes into a large-scale language model (324), node text embeddings (326) are generated. The node loss is determined by using the difference between the node text embedding (326) and the respective node embedding (320) of each node, and (210) The edge loss (336) is determined by determining the respective edge loss for each of the one or more edges (329) (212), wherein the respective edge loss for each of the one or more edges (329) is By inputting the edge text descriptions (332) describing each of the aforementioned edges into the large-scale language model (324), edge text embeddings (334) are generated. The edge loss is determined by using the difference between the edge text embedding (334) and the respective edge embedding (330) of each edge, and (212) Determining the orbital loss (339) between the predicted orbit (338) and the ground truth orbit (306) (214), Using the node loss (328), the edge loss (336), and the trajectory loss (339), the total loss (340) is determined (216), Training the graph neural network (314) to reduce the overall loss (340) (218), Method (200), including.
2. Determining the respective node loss using the difference between the node text embedding (326) and the respective node embedding (320) of each node is: By inputting negative text descriptions that do not describe each of the aforementioned nodes into the large-scale language model (324), negative node text embeddings (326) are generated. The node loss is determined as a contrastive loss that reduces the difference between the node text embedding (326) and the respective node embedding of each node, and increases the difference between the negative node text embedding (326) and the respective node embedding of each node. The method according to claim 1 (200), including the method according to claim 1.
3. Determining the respective edge loss using the difference between the edge text embedding (334) and the respective edge embedding (330) of each edge is: By inputting negative text descriptions that do not describe each of the aforementioned edges into the large-scale language model (324), negative edge text embeddings (334) are generated. The edge loss is determined as a contrastive loss that reduces the difference between the edge text embedding (334) and the respective edge embedding of each edge, and increases the difference between the negative edge text embedding (334) and the respective edge embedding of each edge. The method according to claim 1 or 2 (200), including the method according to claim 1 or 2.
4. The number of nodes in the one or more nodes (319) is less than the number of nodes in the plurality of nodes (310), and / or, The method according to any one of claims 1 to 3 (200), wherein the number of edges of the one or more edges (329) is less than the number of edges of the plurality of edges (312).
5. Selecting one or more nodes (319) from the plurality of nodes (310) includes randomly selecting one or more nodes (319) from the plurality of nodes (310), and / or, The method (200) according to any one of claims 1 to 4, wherein selecting one or more edges (329) from the plurality of edges (312) includes randomly selecting one or more edges (329) from the plurality of edges (312).
6. Randomly selecting one or more nodes (319) from the plurality of nodes (310) includes weighting and randomly selecting one or more nodes (319) from the plurality of nodes (310), wherein the weight of each node from the plurality of nodes (310) depends on the node embedding of that node and / or the node itself. and / or, The method (200) of claim 5, wherein randomly selecting one or more edges (329) from the plurality of edges (312) includes weighting and randomly selecting one or more edges (329) from the plurality of edges (312), the weight of each edge from the plurality of edges (312) depends on the respective edge embedding and / or the edge itself.
7. A data processing device configured to carry out the method (200) according to any one of claims 1 to 6.
8. A vehicle controller (102) configured to control a vehicle (100) using a trajectory (338) predicted by a graph neural network (314) trained according to the method (200) of any one of claims 1 to 6.
9. A computer program that, when executed by a computer, includes instructions to cause the computer to carry out the method (200) described in any one of claims 1 to 6.
10. A computer-readable medium comprising, when executed by a computer, instructions for causing the computer to carry out the method (200) according to any one of claims 1 to 6.
