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



predicting the future trajectory positions, we employ an n-                   previous updated agent features, as well as the location

th order Bézier curve to represent continuous trajectories.                  embeddings obtained by encoding the complete trajectory

Herein, we adopt a GRU decoder with the soft attention                        locations through an MLP block. The fused features are fur-

mechanism (Bahdanau et al., 2015) to recurrently generate                     ther fed into MLP blocks with residual connections, which

n + 1 control points:                                                         comprises a regression head for producing the predicted

                                                                              trajectory offsets, denoted ∆Ŷ i , and a classification head

                           pi = φ(hi+1 ),                          (6)        followed by a softmax function for generating the probabili-

                                                                              ties, denoted Pcls .

                 hi+1 = G(Att(E(τ ), hi ), hi ),                   (7)

                                                                              Eventually, the i-th predicted trajectory Ŷ i can be derived

where pi , i = 0, . . . , n, is the control point for the Bézier             by summing the trajectory proposal and offset:

curve, hi is the hidden state of the GRU, and the initial one

h0 is the updated target agent feature obtained by aggregat-                                         Ŷ i = Ȳˆ i + ∆Ŷ i .                (10)

ing fused context features and interactions among agents

through the agent fusion module. φ denotes an MLP with a                      Its corresponding fusion probability takes a hybrid form:

single hidden layer, G represents the GRU cell, and Att(·)

denotes the soft attention module. Once the control points                                            Pcls (Ŷ i )Pmcmc (Ŷ i )

                                                                                          P(Ŷ i ) = K                            .        (11)

are generated, the continuous trajectory, denoted B(t), can                                          P            i

                                                                                                       Pcls (Ŷ )Pmcmc (Ŷ )    i

be obtained using the following expression:

                                                                                                      i=1

                          n

                          X

               B(t) =           bi,n (t)pi , 0 ≤ t ≤ 1,            (8)        3.6. Learning

                          i=0

                                                                              Given that our proposed framework consists of two stages,

where bi,n (t) = ni ti (1 − t)n−i , i = 0, . . . , n, is the n-

                      

                                                                              the training process necessitates a decomposition into two

degree Bernstein basis polynomial, and ni = i!(n−i)!     n!                   phases. In the initial MaxEnt IRL stage, our objective is to

                                                 

                                                              de-

notes the binomial coefficient. In practice, for a given times-               maximize the log-likelihood LD through stochastic gradient

tamp ts , ts ∈ {1, 2, . . . , tf }, the position of the predicted             descent to derive the reward model and optimal policy, as

trajectory proposal ȳˆts can be determined by substituting t                 explained in Section 3.4. In the second trajectory gener-

with ttfs :                                                                   ation stage, the overall learning objective is composed of

                                                                              both regression loss and classification loss. Specifically,

                                    n

                                      X                                     for regression, we apply the Huber loss to the predicted

                           ts                      ts

              ȳˆts = B    tf     =         bi,n   tf    pi .      (9)        trajectory proposal LPreg , the refined trajectory LTreg , and its

                                      i=0                                     corresponding goal point LG   reg . The winner-takes-all (WTA)

                                                                              training strategy is employed to mitigate the modality col-

Considering that sampling only K plans is often inefficient

                                                                              lapse issue, which only considers the best candidate with the

and redundant, as a small number of samples tend to produce

                                                                              minimum displacement error in comparison to the ground

similar outputs, we oversample L (L ≫ K) plans in parallel,

                                                                              truth. As for classification, we adopt the Hinge loss Lcls to

thereby inducing L continuous valued trajectories to better

                                                                              distinguish the positive modality from the others, following

capture the trajectory distribution. Subsequently, we apply

                                                                              the approach outlined in (Liang et al., 2020). The total loss

the K-means clustering method to derive K possible future

                                                                              L in the second training stage can be expressed as follows:

trajectories from the set of L candidates. Moreover, we

determine the probabilities by calculating the proportion of                             L = LPreg + αLTreg + βLG

                                                                                                                reg + γLcls ,              (12)

trajectories associated with each clustered modality, denoted

Pmcmc , which can reflect the statistical property of MCMC                    where α, β, and γ are hyperparameters for balancing each

sampling from the MaxEnt policy.                                              loss component. In practice, we set α = β = 1 and γ = 3.

On the second fine scale, we generate trajectory offsets to                   More details can be found in Appendix A.2.

refine the K initial trajectory proposals in conjunction with

fine-grained local context features Cf ine . Concretely, we                   4. Experiments and Results

first combine past observations and predicated proposals

together to form the complete trajectory for the target agent,                4.1. Experiment Setup

i.e., [X , Ȳˆ i ], i = 1, . . . , K, where Ȳˆ i denotes the i-th pre-       Real-World Datasets. We train and evaluate the pro-

dicted trajectory proposal. For each complete trajectory,                     posed approach on two large-scale public motion forecast-

we gather its nearby fine-grained context features. These                     ing datasets: Argoverse (Chang et al., 2019) and nuScenes

embeddings are then aggregated along the entire trajectory                    (Caesar et al., 2020). Both datasets provide trajectory se-

using global average pooling and concatenated with the                        quences collected from real-world urban driving scenarios,



                                                                          6

