                 GoIRL: Graph-Oriented Inverse Reinforcement Learning for Multimodal Trajectory Prediction



A. Additional Implementation Details                                          CD

In this section, we provide a more detailed description of                                                              L2D         D2D



the context encoder, feature fusion, and adaptation, along

                                                                                                   D2L

with the specific formulations of the various training losses.                CL

                                                                                                               L2L

A.1. Graph-Oriented Context Encoder

                                                                                                   A2L

Our graph-oriented context encoder follows a structure simi-                  CA

lar to the one used in DSP (Zhang et al., 2022), which adopts                                                           L2A         A2A

an agent-centric, double-layered, graph-based representa-

tion. This encoder consists of three components: an agent

feature encoder, a lane segment encoder, and a drivable area                       Figure 6. Information flow of agent-map feature fusion.

encoder.

Agent Feature Encoder. Given the observed past times-

tamps tp , we define the agent trackings as A ∈ RNa ×tp ×Fa ,

                                                              ′             pling drivable nodes centered around the target agent within

where Na is the number of agents in the scene, and Fa′                      a 100-meter range and a resolution of 1 meter. These nodes

encompasses kinematic attributes such as positions, veloc-                  are denoted Vd ∈ RNd ×2 , where Nd is the number of driv-

ities, time intervals, and binary masks. To be specific, the                able nodes. We use eight-neighbor dilated connections to

agents include the target agent X and surrounding agents                    model relationships between the drivable nodes. The fea-

O. Next, We utilize a 1-D CNN with a feature pyramid                        tures are encoded using a PointNet-like architecture, termed

network (FPN), as implemented in (Liang et al., 2020), to                   PointDA. Specifically, we map surrounding node features

capture multi-scale features. This results in the agent feature             to the target node using an MLP block, followed by max-

CA ∈ RNa ×Fa , where Fa = 128 is the number of feature                      pooling to extract global features. These global features are

channels.                                                                   then concatenated with the target node feature and passed

                                                                            through another MLP block to fuse the features. The final

Lane Segment Encoder. Given the map information M,                          drivable area features are denoted as CD ∈ RNd ×Fd , with

we define the lane node matrix Vl ∈ RNl ×2 , where Nl                       Fd = 32 being the number of feature channels.

is the number of lane segments, and each entry represents

the midpoint between two neighboring nodes along the lane                   Feature Fusion. To capture agent-map interactions, we

centerline. The connections between these nodes include the                 perform feature fusion on the agent features CA , lane seg-

predecessor, successor, left, and right neighbors, which are                ment features CL , and drivable area features CD , following

captured by four adjacency matrices {Υi }i∈{pre, suc, left, right} ,        the approach in (Liang et al., 2020; Zhang et al., 2022).

where each Υi ∈ RNl ×Nl . For each lane node vi ∈ Vl , we                   We employ graph attention layers (Vaswani et al., 2017;

define its node feature ui ∈ U as:                                          Liang et al., 2020) to fuse features across different node

                                                                            types: agent-to-lane (A2L), lane-to-agent (L2A), drivable-

                   ui = ψ1 (∆vi ) + ψ2 (vi ),                  (13)         to-lane (D2L), lane-to-drivable (L2D), and agent-to-agent

                                                                            (A2A). Additionally, we use the LaneConv operator for

where ψ1 and ψ2 are MLP blocks, and ∆vi denotes the                         lane-to-lane (L2L), and PointDA for drivable-to-drivable

displacement of neighboring lane nodes. The resulting node                  (D2D). All attention layers are set to 128 feature channels.

feature matrix is U ∈ RNl ×Fl , where Fl = 128 is the                       The information flow for all fusion processes is shown in

number of lane feature channels. We then apply the multi-                   Figure 6.

scale dilated LaneConv operator, as proposed in (Liang

et al., 2020), to aggregate the topology features across a                  Feature Adaptor. To integrate the MaxEnt IRL framework

larger lane graph:                                                          with vectorized features, we design a feature adaptor that

             X                                                              transforms the lane-graph features into grid space. We con-

                  Υσpre UΘσpre + Υσsuc UΘσsuc

                                              

      CL =                                                                  struct a HG × WG grid map centered around the target

              σ                                        (14)                 agent within a 50-meter range, uniformly sampling grid

          + Υleft UΘleft + Υright UΘright + UΘ0 ,                           nodes at a resolution of 1.0 meter, which aligns with the

                                                                            drivable area graph. Thus, we have HG = WG = 50. For

where σ = {1, 2, 4, 8, 16, 32} represents the dilation sizes,

                                                                            each grid node with physical coordinates (xi , yi ), we assign

and Θi are the weight matrices associated with the i-th

                                                                            the corresponding nearest drivable area features CD (xi , yi )

connection type. The resulting lane features are represented

                                                                            as its fused feature. For grid nodes whose distance to the

as CL ∈ RNl ×Fl .

                                                                            nearest drivable node exceeds 1.0 meter, indicating they are

Drivable Area Encoder. We construct the drivable area                       undrivable, we pad their features with zeros. In this way, we

(DA) graph, as in (Zhang et al., 2022), by uniformly sam-                   complete the adaptation of the vectorized context features



                                                                       12

