{
  "File Number": "106",
  "Title": "Exploring Social Posterior Collapse in Variational Autoencoder for Interaction Modeling",
  "Limitation": "Limitations. As the first study on social posterior collapse, we cannot explore every aspect of this subject. Many possible factors could contribute to this phenomenon. Our experimental results can only speak for the particular model we develop and the tasks we study. The occurrence of social posterior collapse and its effect on the overall performance may vary across different problems and different model architectures. For instance, our finding from the pedestrian trajectory prediction task is pretty different from its vehicle counterpart. The format of the graph representation, especially how the environmental information is incorporated, also matters. Also, the diagnosis based on the AR value could be inconclusive under different graph representations. In Appx. E.2, we show that the AR values of the three models become similar after removing the lanelet nodes for the highway merging subset of the INTERACTION dataset. However, it does not mean that social posterior collapse does not occur. Our social-CVAE model can maintain consistent prediction accuracy without map information, while the baseline VAE model has a significant drop in performance. It implies that the baseline VAE model does not properly utilize historical social context, but we cannot assert that social posterior collapse occurs due to the lack of direct evidence. Nevertheless, we do demonstrate that social posterior collapse is not unique to our sparse-GAMP module (Appx. E.1). Even if we switch to other aggregation functions, we can still find evidence suggesting its occurrence. Our sparse graph attention function, G-entmax, is a convenient and flexible toolkit that allows us to monitor and analyze social posterior collapse without compromising performance. In the future, we will work along this direction to explore alternative diagnosis toolkits that can be applied to detect social posterior collapse for a broader range of models. Connections to Related Works. We want to wrap up our discussion with a glance at those prior works on VAE-based multi-agent behavior modeling. We are curious about if any elements in their models have implicitly tackled this issue. However, we would like to emphasize that it is still necessary to explicitly study social posterior collapse under their settings in the future, which could provide helpful guidance to avoid social posterior collapse in model design. Due to the space limit, we only discuss works using techniques potentially related to social posterior collapse, especially those provided evidence that interacting behaviors were appropriately modeled (e.g., attention maps or visualized prediction results in interactive scenarios). Trajectron [6] and Trajectron++ [4] which are formulated as CVAEs establish the previous state-ofthe-art results on ETH/UCY. Different from ours, they adopted a discrete latent space to account for the multi-modality in human behavior. They did not examine how their models utilize social context. However, we think that a discrete latent space could potentially alleviate the social posterior collapse issue. Compared to a continuous random variable, a discrete one can only encode a limited amount of information. It prevents the model from bypassing social context since a discrete latent variable is not sufficient to encode all the information of a long trajectory. For the same reason, NRI [29], which adopted a discrete latent space for interacting system modeling, is also potentially relevant. PECNet [7] is another CVAE-based trajectory prediction model. Instead of conditioning on the entire future trajectory, they proposed the Endpoint VAE where the posterior latent variables only condition on the endpoints. It could also be a potential solution as it limits the amount of information the latent space can encode from the future trajectory. In [1], Suo et al. proposed a multi-agent behavior model for traffic simulation under the CVAE framework. They demonstrated that their method was able to simulate complex and realistic interactive behaviors. In particular, they augmented ELBO with a commonsense objective that regularizes the model from synthesizing undesired interactions (e.g., collisions). We think it plays a similar role as our auxiliary prediction task. The last work we would like to discuss is the AgentFormer model [9] mentioned in Sec. 5.2. Their results suggest that incorporating an autoregressive decoder and a future social context encoder could be more effective in interaction modeling, especially for systems without long-term dependency (e.g., pedestrians). However, as we have mentioned before, the autoregressive decoder introduces another issue if it is overly powerful.",
  "Reviewer Comment": "Reviewer_1: The problem discussed in this paper is very interesting and the authors well justified this critical issue with VAEs theoretically. My main concern is that the experiments and evaluations are not sufficient to validate the problem and efficacy of the solution. I suggest that the paper should include one experiment without any joint (social) interaction (encoding and decoding for each agent independently) and proves that the results using VAE in social setting is the same (or even worse) than this baseline. Also to show the efficacy of the solution, the authors could try their solution in many frameworks using VAE (trajectron, trajectron++ etc) and show that their sparse-GAMP layer can improve the performance of the state-of-the-art methods for this problem. Without these experiments, it is hard to support the acceptance of the paper with the theoretical arguments and a weak experimental validation only.\nLimitations And Societal Impact:\nNo, they haven't.\nEthical Concerns:\nN/A\nNeeds Ethics Review: No\nTime Spent Reviewing: 2\n\nReviewer_2: originality: good quality: need to improve clarity: some designs are not easy to understand significance: just ok\nLimitations And Societal Impact:\n1 What's the meaning of Position 2 in the sparse graph attention message-passing towards social posterior collapse detection?\n2 The inferred sparse attention is only used in e2v process. The v2e process still causes large storage and complexity.\n3 What is the effects of the sparse graph attention message-passing, compared to the ordinary neural-message-passing without sparse attention? From the aspects of error and efficiency?\n4 Many excellent previous works are not introduced for performance comparison, some of which are based on CVAE or neural-message-passing, including:\n[1] Social lstm: Human trajectory prediction in crowded spaces\n[2] Social attention: Modeling attention in human crowds\n[3] Social gan: Socially acceptable trajectories with generative adversarial networks.\n[4] Stgat: Modeling spatial-temporal interactions for human trajectory prediction\n[5] Sophie: An attentive gan for predicting paths compliant to social and physical constraints\n[6] Multi-agent tensor fusion for contextual trajectory prediction\n[7] Encoding crowd interaction with deep neural network for pedestrian trajectory prediction\n[8] Collaborative motion prediction via neural motion message passing\n[9] Trajectron++: Multi-agent generative trajectory forecasting with heterogeneous data for control\n[10] Conditional flow variational autoencoders for structured sequence prediction.\n[11] Neural relational inference for interacting systems.\n[12] Social-stgcnn: A social414spatio-temporal graph convolutional neural network for human trajectory prediction.\nThe results in this paper still need to be improved\nNeeds Ethics Review: No\nTime Spent Reviewing: 1 day\n\nReviewer_3: I really like the new perspective taken by the authors in investigating existing difficulties of training VAEs in the specific context of trajectory prediction in interactive environments. The authors provide valuable insight with respect to the connections between general machine learning findings and trajectory prediction. The authors do an excellent job in contextualizing the work in terms of existing literature. I would recommend two additional papers in the space of sparse distributions and VAEs from NeurIPS last year to include in the literature review.\n[1] Correia, Gonçalo, et al. \"Efficient Marginalization of Discrete and Structured Latent Variables via Sparsity.\" Advances in Neural Information Processing Systems (2020).\n[2] Itkina, Masha, et al. \"Evidential Sparsification of Multimodal Latent Spaces in Conditional Variational Autoencoders.\" Advances in Neural Information Processing Systems (2020).\nEmploying sparse attention to quantify the extent of the social context used by the VAE to predict future trajectories is a good idea. The claim of quantifying the social context used to make predictions by the CVAE is well supported by the INTERACTION/Argoverse experiments. The authors also provide extensive experimental analysis in the supplementary material.\nI appreciated the transparency and the insightful discussion dedicated to the limitations of the proposed method. Although portraying negative results is valuable, and a rare practice in machine learning papers, I am concerned that the pedestrian experiments actually detract from and confuse the message of the paper in the current framing. On page 2 of the paper, the authors frame the task of interest as predicting multiple trajectories simultaneously (lines 40-41). The problem with current trajectory prediction models is defined as their tendency to ignore interactions over the predicted horizon (lines 72-75). However, the successful experiments focus on a single vehicle trajectory prediction task, demonstrating that the interaction history is important for the prediction. The unsuccessful pedestrian dataset experiments, despite providing significant insight into both the dataset and the problem, do not validate the original hypothesis of the paper. I would reframe the beginning of the paper to focus on ensuring that the \\textit{historical social context}, rather than future interaction, is accounted for in the models for predicting single trajectories at a time. That way the successful experiments validate this idea. The pedestrian experiments can be kept as a case study extension in the main paper. Alternatively, successful experiments demonstrating the simultaneous prediction of all trajectories in the scene should be included in the paper, and the pedestrian experiments moved to supplementary.\nI have some concerns with respect to the clarity of some of the presented material. Could you clarify the connection between the agent nodes and the\nT\ni\ncontext encodings? Since\nT\ni\nincorporates information from all of the observed agents by agent\ni\n, while sparse attention determines which agent connections are being used by the model, I would like to better understand the relationship between the two concepts.\nSeveral variables were not defined (e.g.,\ns\non line 158,\nI\non line 110). It is great to see that the authors did their due diligence by running the experiments on multiple random seems. However, I have some questions regarding the standard deviation reported in Tables 1-3, but particularly Table 1. First, are these standard deviations or standard error? The latter is usually reported as a metric of result significance. Second, if these are standard errors, they are rather large, potentially demonstrating the results to not be significant? Third, why are there standard errors reported for only one of the columns in Table 1? Also in Table 1, could you clarify what the difference was between the models 'Ours' and 'Ours*'? I am not sure what the significance of the discussion of the latter model is in lines 261-265?\nThe presentation of the paper needs improvement in that it is riddled with typos and grammatical errors. Some examples are as follows, but these are far from exhaustive:\n'the model is prone to ignore social context' (should be 'prone to ignoring').\n'a model that models each agent's behavior separately without social context. which might suffer from over-estimated variance and large prediction error.' (punctuation/half-sentence typo).\n'to interfere the decoding procedure' (missing 'with').\nThe references should also be proofread for consistency in conference naming, capitalization (e.g., 'gan' -> 'GAN', 'bayes' -> 'Bayes'), etc.\nOverall, the authors present an interesting approach to evaluating social posterior collapse in VAE models for trajectory prediction. I really liked the idea and the in-depth discussion provided in the paper. With improvements to the presentation of the paper and the framing of the experiments with respect to the problem statement, this work will be a good contribution!\nLimitations And Societal Impact:\nThe authors did not indicate any negative societal impact to their work, but did contextualize the limitations of the work in great detail. I would encourage the authors to think about potential inadvertent consequences such as the amplification of implicit bias in the data in the process of sparsification or concerns regarding deployment of neural network architectures in safety critical systems.\nNeeds Ethics Review: No\nTime Spent Reviewing: 8\n\nReviewer_4: Originality:\nthe study undertaken in the paper is the first to my knowledge which attempts to explore the ability of VAE models for multiagent trajectory prediction tasks to properly model interactions between agents. The VAE framework that forms its basis is commonly used in prior work and appropriate for this study (and proper citations are made throughout).\nQuality:\nMuch care has been taken to develop the social-CVAE framework, from motivation through derivation. Additionally, the development of the AR metric to evaluate the ability of a model to model interactions between agents is useful for understanding the social posterior collapse issue. The experimentation is thorough, with multiple trials for every setting being run and important ablations being included in the appendix. Overall, the presented results are trustworthy, and the presented social-CVAE approach seems to mitigate social posterior collapse in situations where it appears in other approaches.\nThat being said, there is one set of experimental results presented in the supplementary material that ought to be mentioned in the main paper, as they alter the conclusions one should draw from this work. Specifically, the results presented in Table 6 indicate that the representation of context used by the model significantly impacts whether social posterior collapse occurs or not. When a lane graph-based representation is not included, no models suffer from social posterior collapse; furthermore, in this situation, the AR metric does not seem to correlate with the distance-based error metrics. These conclusions are additionally supported by the pedestrian dataset results presented in Table 3, where no map context is used. This dependence of social posterior collapse on context representation is important, but as far as I could tell was not mentioned in the main paper anywhere.\nClarity:\nThe paper is written clearly, and is organized well. It is clear which components are drawn from prior work and which are novel developments. Sufficient detail is presented for reproducibility. As mentioned in the previous section, though, I think the results from Table 6 should be alluded to in the main paper.\nSignificance:\nAs this paper cites, there are a number of papers which use VAE frameworks for multi-agent trajectory prediction. Hence, understanding the properties of these models, including how they model interactions between agents, is very important for the development of improved models. This paper takes a first step in this direction; though the results are not state-of-the-art, the analysis of social posterior collapse is interesting and may be useful for designing future models.\nOverall:\nThis work is a promising first step in understanding how to ensure interactions are encoded properly when using VAE-based multi agent trajectory prediction approaches. I do think that the lack of discussion regarding the impact of the context encoding representation hurts this paper somewhat, as it is possible to draw some incorrect conclusions without it.\n#POST-REBUTTAL UPDATE Thanks for your comments. Based on your responses, I am keeping my recommendation the same - I think this paper should be accepted. Please add the extra clarifications you mentioned in your response, as they will benefit the text.\nLimitations And Societal Impact:\nThe authors fully acknowledge that their results are not state-of-the-art, and they acknowledge that this is a limited study whose results might not apply to all models or domains - the results are not over-sold. There is no mention of potential negative societal impacts in this work.\nNeeds Ethics Review: No\nTime Spent Reviewing: 2 hours",
  "Limitations_refined": "Limitations. As the first study on social posterior collapse, we cannot explore every aspect of this subject. Many possible factors could contribute to this phenomenon. Our experimental results can only speak for the particular model we develop and the tasks we study. The occurrence of social posterior collapse and its effect on the overall performance may vary across different problems and different model architectures. For instance, our finding from the pedestrian trajectory prediction task is pretty different from its vehicle counterpart. The format of the graph representation, especially how the environmental information is incorporated, also matters. Also, the diagnosis based on the AR value could be inconclusive under different graph representations. In Appx. E.2, we show that the AR values of the three models become similar after removing the lanelet nodes for the highway merging subset of the INTERACTION dataset. However, it does not mean that social posterior collapse does not occur. Our social-CVAE model can maintain consistent prediction accuracy without map information, while the baseline VAE model has a significant drop in performance. It implies that the baseline VAE model does not properly utilize historical social context, but we cannot assert that social posterior collapse occurs due to the lack of direct evidence. Nevertheless, we do demonstrate that social posterior collapse is not unique to our sparse-GAMP module (Appx. E.1). Even if we switch to other aggregation functions, we can still find evidence suggesting its occurrence. Our sparse graph attention function, G-entmax, is a convenient and flexible toolkit that allows us to monitor and analyze social posterior collapse without compromising performance. In the future, we will work along this direction to explore alternative diagnosis toolkits that can be applied to detect social posterior collapse for a broader range of models. Connections to Related Works.",
  "abstractText": "Multi-agent behavior modeling and trajectory forecasting are crucial for the safe navigation of autonomous agents in interactive scenarios. Variational Autoencoder (VAE) has been widely applied in multi-agent interaction modeling to generate diverse behavior and learn a low-dimensional representation for interacting systems. However, existing literature did not formally discuss if a VAE-based model can properly encode interaction into its latent space. In this work, we argue that one of the typical formulations of VAEs in multi-agent modeling suffers from an issue we refer to as social posterior collapse, i.e., the model is prone to ignoring historical social context when predicting the future trajectory of an agent. It could cause significant prediction errors and poor generalization performance. We analyze the reason behind this under-explored phenomenon and propose several measures to tackle it. Afterward, we implement the proposed framework and experiment on real-world datasets for multi-agent trajectory prediction. In particular, we propose a novel sparse graph attention message-passing (sparse-GAMP) layer, which helps us detect social posterior collapse in our experiments. In the experiments, we verify that social posterior collapse indeed occurs. Also, the proposed measures are effective in alleviating the issue. As a result, the model attains better generalization performance when historical social context is informative for prediction.",
  "1 Introduction": "Modeling the behavior of intelligent agents is an essential subject for autonomous systems. Safe operations of autonomous agents require accurate prediction of other agents’ future motions. In particular, social interaction among agents should be modeled, so that downstream planning and decision-making modules can safely navigate the robots through interactive scenarios. Generative latent variable models are popular modeling options for their ability to generate diverse and naturalistic behavior [1, 2, 3, 4]. In this work, we focus on one category of generative models, Variational Autoencoder (VAE) [5], which has been widely used in multi-agent behavior modeling and trajectory prediction [1, 4, 6, 7, 8, 9]. It is desirable as it learns a low-dimensional representation of the original high-dimensional data.\n35th Conference on Neural Information Processing Systems (NeurIPS 2021)\nHowever, VAEs do not necessarily learn a good representation of the data [10]. For instance, prior works in sequence modeling have found out that the model tends to ignore the latent variables if the decoder is overly powerful [11, 12, 13] (e.g., an autoregressive decoder). It leads us to wonder whether a VAE-based model can always learn a good representation for a multi-agent interacting system. It is a rather general question as researchers may look for different properties of the latent space, for instance, interpretability [14, 15] and multi-modality [4, 6]. In this work, we focus on a fundamental aspect of this general question: Does the latent space always properly model interaction? Formally, given a latent variable model of an interacting system, where a latent variable governs each agent’s behavior, we wonder if the VAE learns to encode social context into the latent variables.\nIt raises such concern since VAE handles two distinct tasks in training and testing. At the training stage, it learns to reconstruct a datum instead of generating one. For multi-agent interaction modeling, the sample for reconstruction is a set of trajectories of all the agents. Ideally, the model should learn to model the interaction among agents and jointly reconstruct the trajectories. However, there is no mechanism to prevent the model from separately reconstructing the trajectories. In fact, it could even be more efficient at the early stage of training when the model has not learned an informative embedding of social context. We then end up with a model that models each agent’s behavior separately without social context, which might suffer from over-estimated variance and large prediction error. More importantly, since the joint behavior of the agents is a consequence of their interactions, ignoring the causes may lead to poor generalization ability [15, 16]. We find that a typical formulation of VAE for multi-agent interaction is indeed prone to ignoring historical social context (i.e., interactions over the observed time horizon). We refer to this phenomenon as social posterior collapse. The issue has never been discussed in the literature. Considering those potential defects, we think it is necessary to study such a crucial and fundamental issue.\nIn this work, we first abstract the VAE formulation from a wide range of existing literature [1, 4, 6, 8]. Then we analyze social posterior collapse under this formulation and propose several measures to alleviate the issue. Afterward, we study the issue under real-world settings with a realization of the abstract formulation we design. In particular, we propose a novel sparse graph attention message-passing (sparse-GAMP) layer and incorporate it into the model, which helps us detect and analyze social posterior collapse. Our experiments show that social posterior collapse occurs in real-world prediction tasks and that the proposed measures can effectively alleviate the issue. We also evaluate how social posterior collapse affects the model performance on these tasks. The results suggest that the model without social posterior collapse can attain better generalization performance if historical social context is informative for prediction.",
  "2.1 A Latent Variable Model for Interaction Modeling": "Given an interacting system with n agents, an interaction-aware trajectory prediction model takes all the agents’ observed historical trajectories, denoted by {xi}ni=1, as input and predicts the future trajectories of all the agents or a subset of enquired agents. We denote the collection of future trajectories by {yi}ni=1. In this work, we focus on the latent variable model illustrated in Fig. 1, which is abstracted from existing literature on VAEs for multi-agent behavior modeling [1, 4, 6, 8]. We model interaction by introducing a set of variables {Ti}ni=1, which aggregates each agent’s state and its observation of other agents. Formally, each Ti is modeled as a deterministic function of {xi}ni=1, i.e., Ti = fi ({xi}ni=1). Afterward, the agents make decisions based on the aggregated information over the predicted horizon. Latent variables {zi}ni=1 are introduced to model the inherent uncertainty in each agent’s behavior. It should be noticed that interaction over the predicted horizon is not modeled explicitly in this formulation. Although it can be achieved by exchanging information between agents recurrently (e.g., social pooling in [17]), it is a common practice to avoid explicit modeling of future interaction in consideration of computational cost and memory [3, 8, 18].\nIn this work, we train the model as a VAE, where an encoder q (z|x,y) is introduced to approximate the posterior distribution p (z|x,y) for efficient sampling at the training stage1. The performance of variational inference is optimized if the KL-divergence between the posteriors, i.e. DKL [q (z|x,y) ‖p (z|x,y)], is small [10]. To derive a better approximation, we can incorporate\n1The vectors x,y and z collect the corresponding variables for all n agents.\ninductive bias based on the characteristics of the true posterior into the encoder function. We introduce the following simple proposition that guides our model design. Its proof can be found in Appx. A. Proposition 1. For any i = 1, 2, ..., n and j = 1, 2, ..., n, 1) If j 6= i, zi and yj are conditionally independent given x and yi; 2) If j 6= i, zi and zj are conditionally independent given x; 3) zi and xj are conditionally independent given Ti.\nFollowing the proposition, we decompose the posterior distribution as ∏n i=1 p(zi|Ti,yi). The decomposition suggests two insights. First, the encoder does not need to aggregate future context information when inferring the posterior distribution of zi for each agent. Second, the historical context variable Ti is all we need for the historical information of the agent i. The encoder and decoder can share the same function to encode historical information.",
  "2.2 Social Posterior Collapse": "We then design a VAE model reflecting the characteristics of the true posterior discovered in Sec. 2.1. To simplify the problem, we further make the assumption of homogeneous agents. The model has three basic building blocks: 1) A function modeling the historical context, i.e., Ti = fθ (xi,x); 2) A function decoding the distribution of the future trajectory yi given Ti and zi, i.e., pφ (yi|Ti, zi); 3) A function approximating the posterior of zi conditioned on Ti and yi, i.e., qψ (zi|Ti,yi). They build up the encoder and decoder of the VAE model as follows:\nqθ,ψ (z|x,y) = n∏ i=1 qψ (zi|fθ(xi,x),yi) , pθ,φ (y|x, z) = n∏ i=1 pφ (yi|fθ(xi,x), zi) . (1)\nWe consider a continuous latent space and model qψ and pφ as diagonal Gaussian distributions. The model is trained by maximizing the evidence lower bound (ELBO):\nmax θ,ψ,φ\nEx,y∼D [ Ez∼qθ,ψ(z|x,y) [log pθ,φ (y|x, z)]− βDKL [qθ,ψ (z|x,y) ‖p(z)] ] . (2)\nHowever, we find a critical issue of this naive formulation during experiments, which is the social posterior collapse phenomenon mentioned before. With the help of the sparse graph attention mechanism introduced in Sec. 3, we find that the model is prone to ignoring historical social context when reconstructing the future trajectory of one agent. Equivalently, the generative model collapses to the one with all the variables of other agents marginalized out.\nWe think the reason behind it is similar to, but different from, the well-known phenomenon in VAE training—posterior collapse [10]. Due to the KL regularization term in ELBO, the variational posterior distribution is likely to collapse towards the prior. It is particularly likely to occur at the early stage of training when the latent space is still uninformative [19]. In our case, the posterior of zi collapses into qθ,ψ(zi|xi,yi). It does minimize the KL-divergence: if both qθ,ψ (zi|xi,yi) and qθ,ψ(zi|x,yi) exactly approximate the true posteriors, then conditioning on more context information increases the expected value of KL regularization:\nED [DKL [p (zi|x,yi) ‖p(zi)]] = I(zi;x,yi) > I(zi;xi,yi) = ED [DKL [p (zi|xi,yi) ‖p(zi)]] .\nHowever, we argue that an additional factor contributes to the social posterior collapse problem, which makes it a unique phenomenon for interaction modeling. At the training stage, the goal is to reconstruct the future trajectories y. The trajectory itself contains all the information needed for reconstruction. The history of the agent i provides complementary information such as the current state and static environmental information. There is no explicit regulation in the current framework to prevent the model from extracting information solely from xi and yi. In fact, it is a more efficient coding scheme when the model has not learned an informative representation of interaction. Techniques such as KL annealing [13, 19] rely on various scheduling schemes of β to prevent KL vanishing, which has been shown effective in mitigating the posterior collapse problem. However, reducing β could merely privilege the model to gather more information from yi, which is consistent with the reconstruction objective. Therefore, we need to explore alternative solutions to tackle the social posterior collapse problem deliberately.\nWe start with changing the model into a conditional generative one [20, 21]. Additional edges {Ti → zi}ni=1 are added into the original graph, which are annotated with dash lines in Fig. 1. We follow the practice in [20] and formulate the model as a Conditional Variational Autoencoder (CVAE). It is straightforward to verify that the conclusion of Proposition 2.1 still applies. We still model the encoder and decoder as in Eqn. (1). The CVAE framework introduces an additional module —a function approximating the conditional prior pη (zi|Ti), which becomes pθ,η (zi|x) after incorporating fθ(x). The objective then becomes:\nL(θ, ψ, φ, η) = Ex,y∼D [ Ez∼qθ,ψ(z|x,y) [log pθ,φ (y|x, z)]− βDKL [qθ,ψ (z|x,y) ‖pθ,η(z|x)] ] .\nCompared to Eqn. (2), we no longer penalize the encoder for aggregating context information but only restrict the information encoded from future trajectories. Therefore, the encoder does not need to ignore context information to fulfill the information bottleneck. However, the model still lacks a mechanism to encourage context information encoding deliberately. To achieve the goal, we propose to incorporate an auxiliary prediction task into the training scheme. Concretely, we introduce another module yi = gζ (Ti, zi). Composing gζ with fθ gives us another decoder y = hθ,ζ(x, z). The difference is that the latent variables are always sampled from pη (zi|Ti). The auxiliary task is training this trajectory decoder which shares the same context encoder and conditional prior with the CVAE. Because the auxiliary model does not have access to the ground-truth future trajectory, it needs to utilize context information for accurate prediction. Consequently, it encourages the model to encode context information into T and z. We use mean squared error (MSE) loss as the objective function. The overall objective minimizes a weighted sum of the two objective functions.\nThe training scheme looks similar to the one in [20], where they trained a Gaussian stochastic neural network (GSNN) together with the CVAE model. However, ours is different from theirs in some major aspects. The GSNN model shares the same decoder with the CVAE model. The primary motivation of incorporating another learning task is to optimize the generation procedure during training directly. In contrast, our auxiliary prediction model has a separate trajectory decoder. It is because we do not want the auxiliary task to interfere with the decoding procedure of the CVAE model. We find that sharing the decoder leads to less diversity in trajectory generation, which is not desirable.",
  "3 Sparse Graph Attention Message-Passing Layer": "Before jumping to introducing the specific model we develop for real-world prediction tasks, we would like to present a novel sparse graph attention message-passing (sparse-GAMP) layer, which helps us detect and analyze the social posterior collapse phenomenon.",
  "3.1 Sparse Graph Attention Mechanism": "Our sparse-GAMP layer incorporates α-entmax [22] as the graph attention mechanism. α-entmax is a sparse transformation that unifies softmax and sparsemax [23]. Sparse activation functions have drawn growing attention recently because they can induce sparse and interpretable outputs. In the context of VAEs, they have been used to sparsify discrete latent space for efficient marginalization [24] and tractable multimodal sampling [25]. In our case, we mainly use α-entmax to induce a sparse and interpretable attention map within the encoder for diagnosing social posterior collapse.\nWe are particularly interested in the 1.5-entmax variant, which is smooth and can be exactly computed. It is also easy to implement on GPUs using existing libraries (e.g., PyTorch [26]). Concretely, the 1.5-entmax function maps a d-dimensional input s ∈ Rd into p ∈ ∆d = { Rd : p > 0, ‖p‖1 = 1 } as p = [s/2− τ1]2+, where τ is a unique threshold value computed using s. Upon the theoretical results in [22], we derive an insightful proposition which makes 1.5-entmax a merited option in our framework. The proof of the proposition can be found in Appx. B. Proposition 2. Let s[d] 6 · · · 6 s[1] denote the sorted coordinates of s. Define the top-ρ mean, unnormalized variance, and induced threshold for ρ ∈ {1, ..., d} as\nMs(ρ) = 1\nρ ρ∑ j=1 s[j], Ss(ρ) = ρ∑ j=1 ( s[j] −Ms(ρ) )2 , τs(ρ) =\n{ Ms(ρ)− √ 1−Ss(ρ)\nρ , Ss(ρ) 6 1,\n+∞, otherwise.\nLet s′ ∈ Rd+1 satisfy s′i = si for i 6 d, and define p = 1.5-entmax(s) and p′ = 1.5-entmax(s′).\nThen we have: 1) If s ′ d+1\n2 6 s[d] 2 − 1, then p ′ i = pi for i = 1, ..., d and p ′ d+1 = 0; 2) If pi > 0 for\ni = 1, .., d, then p′i = pi for i = 1, 2, ..., d and p ′ d+1 = 0 iff s ′ d+1 6 2τs/2(d).\nThe first statement of the proposition provides a sufficient condition for augmenting an input vector without affecting its original attention values. It is useful when applying 1.5-entmax to graph attention. Unlike typical neural network models, graph neural networks (GNN) operate on graphs whose sizes vary over different samples. Meanwhile, nodes within the same graph may have different numbers of incoming edges. Therefore, the 1.5-entmax function has inputs of varying dimensions even within the same batch of training samples, making it inefficient to compute using available primitives. The proposition suggests a simple solution to this problem. Given {sj}mj=1 with sj ∈ Rdj , we can compute a dummy value as minj∈{1,...,m},i∈{1,...,dj} sj,i− 2. We can augment the input vectors with this dummy value to transform them into a matrix in Rm×d∗ , where d∗ is the largest value of dj . The dummy elements will not affect the attention computation, and existing primitives based on matrix computation can be directly used.\nThe second statement implies that the activated coordinates determine a unique threshold value for augmented coordinates. This property is beneficial when modeling interactions with a large number of agents (e.g., dense traffic scenes). It ensures that the effects of interacting agents will not be diluted by the irrelevant agents, which could potentially improve the robustness of the model [27]. In this work, we mainly utilize the interpretability of the sparse graph attention, but we will investigate its application in generalization in future work.",
  "3.2 Sparse-GAMP": "To obtain the sparse-GAMP layer, we combine the sparse graph attention with a message-passing GNN [28, 29]. Given a directed graph G = (V, E) with vertices v ∈ V and edges e = (v, v′) ∈ E . we define the sparse-GAMP layer as a composition of a node-to-edge message-passing step v → e and an edge-to-node message-passing step e→ v:\nv → e : h(i,j) = fe ([ hi,hj ,u(i,j) ]) , (3)\ne→ v : ĥj = ∑ i∈Nj w(i,j)h(i,j), where wj = G-entmax ({ h(i,j) } i∈Nj ) ,\nIn our prediction model, we will use this sparse-GAMP layer to model the function for historical social context encoding, i.e., Ti = fθ (xi,x).",
  "4 Social-CVAE": "In this section, we design a realization of the abstract framework studied in Sec. 2 for real-world trajectory prediction tasks. We choose to design the model with GNNs, which enable a flexible graph representation of data. Several GNN-based approaches achieved the state-of-the-art performance on trajectory prediction task [30, 31, 32]. The resulting model is depicted in Fig. 2, which we refer to as social-CVAE. During training, we first encode the historical and future trajectories of all the agents using a Gated Recurrent Unit (GRU) [33] network. For vehicle trajectory prediction tasks,\nwe incorporate the map information in a manner similar to [34]. Different from [34] where road boundaries are modeled as nodes in the scene graph, we adopt the representation in [35] where the map is denoted as a graph consisting of lanelet nodes, i.e., drivable road segments. For each lanelet, it is represented by its left and right boundaries composed by two sequences of points. We use another GRU network to encode them. Although not utilized in this work, the lanelet representation allows us to combine routing information in a natural manner as in [32]. We will investigate it in future work.\nTo encode the historical context information, we construct a graph using the embeddings of historical trajectories and lanelets if available. Each pair of agent nodes has a bidirectional edge connecting each other. For each lanelet node, we add edges connecting it to all the agent nodes. If the map information is not available, we add self-edges for all the agents to enable direct self-encoding channels. One sparse-GAMP layer is applied to encode historical context for all the agents. If social posterior collapse occurs, the agent-to-agent edges, except for self-edges, are more likely to receive zero attention weights thanks to the sparse attention. Therefore, we can use the percentage of unattended agent-to-agent edges as a metric to detect social posterior collapse. It is a more objective metric than looking into the quantitative magnitude of attention weights. We can assert that an agent node does not contribute to the output if its attention is strictly zero. However, we need to be more careful when comparing the importance of two agents based on non-zero attention weights [36, 37]. For the same reason, we do not consider techniques such as multiple message-passing layers [34, 31, 32] or separating self-edges from aggregation [8]. Even though they can potentially boost the performance, it might become inconclusive to analyze the model based on the attention map. After computing the historical context, we use a MLP to model the conditional Gaussian prior pη (zi|Ti). To model the variational posterior, we concatenate the future trajectory embedding with each agent’s historical context and use another MLP to output the posterior mean and variance. For the decoder, we use another GRU to decode the future trajectory for each agent separately. The auxiliary decoder shares the same structure but always samples the latent variables from the conditional prior regardless of training or testing.",
  "5 Experiments": "In this section, we report the experimental results on two trajectory prediction tasks. The main purpose is not achieving state-of-the-art performance but to study the social posterior collapse problem. We compare social-CVAE with two variants: 1) A model without the auxiliary task; 2) A model without the auxiliary task or the conditional prior. They correspond to the vanilla CVAE and VAE formulations discussed in Sec.2. We are curious about whether the proposed measures can alleviate social posterior collapse. We will briefly introduce the experiment settings and present the main results. Please refer to Appx. C-F for more details, visualization, and additional experiments.",
  "5.1 Vehicle Trajectory Prediction": "The first task is the vehicle trajectory prediction problem, where we are asked to predict the future trajectory of one target vehicle given the historical trajectories of itself and other surrounding vehicles. We train the models on two datasets, INTERACTION Dataset [38] and Argoverse Motion Forecasting dataset [39]. To evaluate the prediction performance, we use the standard minimum Average Displacement Error (minADE) and minimum Final Displacement Error (minFDE) over K sampled trajectories as metrics. And we follow [39] to define minADE as ADE of the trajectory with minimum FDE. Additionally, we define a unique metric, Agent Ratio (AR), to study social posterior collapse:\nAR =\n∑n i=1,i6=j 1(ω(i,j) 6= 0)\nn− 1 ,\nwhere the agent j refers to the predicted target vehicle and w(i,j) is the attention weight assigned to the edge from the agent i to the target vehicle. It equals to the percentage of surrounding vehicles which receive non-zero attention. A value close to zero implies that the model ignores the majority of the surrounding vehicles, which is a sign of social posterior collapse.\nINTERACTION Dataset. The INTERACTION dataset provides three categories of driving scenarios: intersection (IS), roundabout (RA), and highway merging (HM). For each experiment, we ran five trials to account for the randomness in initialization. We then evaluated them on the validation sets and computed the mean and standard deviation of the evaluated metrics over all the trials. The best models were selected for testing on the regular (R) and generalization (G) tracks of the INTERPRET Challenge 2. The results are summarized in Table 1. The CVAE variants have AR values similar to the VAE variants on IS and HM. It is consistent with our argument that merely changing the model to a conditional one is insufficient.\nIn contrast, our social-CVAE model consistently attains high AR values. However, the CVAE variant achieves similar prediction performance as ours on the validation sets of IS and RA, even if the CVAE variant suffers from the social posterior collapse problem. It is because the driving behavior within intersections and roundabouts depends highly on locations. When the map is less informative (e.g., validation set in HM) or a novel scenario is encountered (e.g., generalization track), our social-CVAE model, which does not have social posterior collapse outperforms the other variants. Notably, we compare it with another instance that attains a AR value close to zero even with the auxiliary task. Their test performances, especially on the generalization track, are pretty different. It shows that it is mainly the historical social context that improves the prediction performance. Even if the auxiliary task also contributes, the improvement is not significant, especially in novel scenes, unless it prevents social posterior collapse.\nArgoverse Dataset. Similar to the INTERACTION dataset, we trained five models with random initialization for each case and evaluated them on the validation sets. The best social-CVAE instance was selected for submission to the Argoverse Motion Forecasting Challenge. Although achieving state-of-the-art performance is not our objective, we still report the testing result in Appx. F and compare it with the other models on the leaderboard in order to provide the audience a complete picture of the model. Here, we mainly focus on the validation results in Table 2. The conclusion is consistent. The difference is that the social-CVAE model outperforms the others even on the validation set. It is because the validation set of the Argoverse dataset is collected in different areas of the cities, which is more analogous to the generalization track of the INTERPRET Challenge.",
  "5.2 Pedestrian Trajectory Prediction": "The second task is the pedestrian trajectory prediction problem, where we are asked to forecast the future trajectories of all the pedestrians in each scenario. We trained the models on the wellestablished ETH/UCY dataset, which combines two datasets, ETH [40] and UCY [41]. Following prior works [2, 42, 4, 7, 9], we adopt the leave-one-out evaluation protocol and do not use any environmental information. All the prediction metrics are computed with K = 20 samples. Similar to the vehicle case, we ran five trials for each experiment. The results are summarized in Table 3, where we report the testing results for each group and their average over all the groups. The\n2The challenge adopts a different group of evaluation metrics, please check their website for the formal definitions: http://challenge.interaction-dataset.com/prediction-challenge/intro\ncomparison between our model and other methods can be found in Appx. F. In Table 3, we see that changing to CVAE formulation leads to a significant boost in terms of AR, implying that the model gives more attention to surrounding agents. However, neither changing to CVAE nor the auxiliary task improves prediction performance. It is because historical social context is less informative for pedestrian trajectory prediction. The ETH/UCY dataset is collected in unconstrained environments with few objects. Also, compared to vehicles, pedestrians have fewer physical constraints in 2D motion, resulting in shorter temporal dependency in their movement. It is consistent with the results in [9], where the authors proposed a transformer-based model that achieves the current state-of-the-art performance on ETH/UCY. The visualized attention maps in [9] show that social context in nearby timesteps is more important to their prediction model. In contrast, the historical trajectories of other agents always receive low attention weights. Therefore, even if the auxiliary prediction task encourages our model to encode historical social context, it does not lead to either a larger AR value or better prediction performance. It suggests that the simplified latent variable model studied in this work might not be sufficient to model pedestrian motion. Explicit future interaction should be considered, and an autoregressive decoder as the one in [9] should be used to account for it.",
  "6 Discussion": "Limitations. As the first study on social posterior collapse, we cannot explore every aspect of this subject. Many possible factors could contribute to this phenomenon. Our experimental results can only speak for the particular model we develop and the tasks we study. The occurrence of social posterior collapse and its effect on the overall performance may vary across different problems and different model architectures. For instance, our finding from the pedestrian trajectory prediction task is pretty different from its vehicle counterpart. The format of the graph representation, especially how the environmental information is incorporated, also matters. Also, the diagnosis based on the AR value could be inconclusive under different graph representations. In Appx. E.2, we show that the AR values of the three models become similar after removing the lanelet nodes for the highway merging subset of the INTERACTION dataset. However, it does not mean that social posterior collapse does not occur. Our social-CVAE model can maintain consistent prediction accuracy without map information, while the baseline VAE model has a significant drop in performance. It implies that the baseline VAE model does not properly utilize historical social context, but we cannot assert that social posterior collapse occurs due to the lack of direct evidence.\nNevertheless, we do demonstrate that social posterior collapse is not unique to our sparse-GAMP module (Appx. E.1). Even if we switch to other aggregation functions, we can still find evidence suggesting its occurrence. Our sparse graph attention function, G-entmax, is a convenient and flexible toolkit that allows us to monitor and analyze social posterior collapse without compromising performance. In the future, we will work along this direction to explore alternative diagnosis toolkits that can be applied to detect social posterior collapse for a broader range of models.\nConnections to Related Works. We want to wrap up our discussion with a glance at those prior works on VAE-based multi-agent behavior modeling. We are curious about if any elements in their models have implicitly tackled this issue. However, we would like to emphasize that it is still necessary to explicitly study social posterior collapse under their settings in the future, which could provide helpful guidance to avoid social posterior collapse in model design. Due to the space limit, we only discuss works using techniques potentially related to social posterior collapse, especially those provided evidence that interacting behaviors were appropriately modeled (e.g., attention maps or visualized prediction results in interactive scenarios).\nTrajectron [6] and Trajectron++ [4] which are formulated as CVAEs establish the previous state-ofthe-art results on ETH/UCY. Different from ours, they adopted a discrete latent space to account for the multi-modality in human behavior. They did not examine how their models utilize social context. However, we think that a discrete latent space could potentially alleviate the social posterior collapse issue. Compared to a continuous random variable, a discrete one can only encode a limited amount of information. It prevents the model from bypassing social context since a discrete latent variable is not sufficient to encode all the information of a long trajectory. For the same reason, NRI [29], which adopted a discrete latent space for interacting system modeling, is also potentially relevant. PECNet [7] is another CVAE-based trajectory prediction model. Instead of conditioning on the entire future trajectory, they proposed the Endpoint VAE where the posterior latent variables only condition on the endpoints. It could also be a potential solution as it limits the amount of information the latent space can encode from the future trajectory.\nIn [1], Suo et al. proposed a multi-agent behavior model for traffic simulation under the CVAE framework. They demonstrated that their method was able to simulate complex and realistic interactive behaviors. In particular, they augmented ELBO with a commonsense objective that regularizes the model from synthesizing undesired interactions (e.g., collisions). We think it plays a similar role as our auxiliary prediction task. The last work we would like to discuss is the AgentFormer model [9] mentioned in Sec. 5.2. Their results suggest that incorporating an autoregressive decoder and a future social context encoder could be more effective in interaction modeling, especially for systems without long-term dependency (e.g., pedestrians). However, as we have mentioned before, the autoregressive decoder introduces another issue if it is overly powerful.",
  "7 Conclusion": "In this work, we point out an under-explored issue, which we refer to as social posterior collapse, in the context of VAEs in multi-agent modeling. We argue that one of the commonly adopted formulations\nof VAEs in multi-agent modeling is prone to ignoring historical social context when predicting the future trajectory of an agent. We analyze the reason behind and propose several measures to alleviate social posterior collapse. Afterward, we design a GNN-based realization of the general framework incorporating the proposed measures, which we refer to as social-CVAE. In particular, social-CVAE incorporates a novel sparse-GAMP layer which helps us detect and analyze social posterior collapse. In our experiments, we show that social posterior collapse occurs in real-world trajectory prediction problems and that the proposed measures effectively alleviate the issue. Also, the experimental results imply that social posterior collapse could cause poor generalization performance in novel scenarios if the future movement of the agents indeed depends on their historical social context. In the future, we will utilize the toolkit developed in this work to explore social posterior collapse in a broader range of model architectures and interacting systems.",
  "Acknowledgements": "We would like to thank Liting Sun, Xiaosong Jia, and Jiachen Li for insightful discussion. We thank Vade Shah for helping us with the experiments. We thank Chenfeng Xu and Hengbo Ma for their valuable feedback. We would also like to thank the anonymous reviewers for their helpful review comments. This work is supported by Denso International America, Inc.",
  "Reviewer Summary": "Reviewer_1: This work discuss the problem of posterior collapse in VAE/CVAE problems and extend this when it is used in the concept of multi-agent interaction modelling and trajectory prediction problem. They argues that the model designed naively based on VAE for this task is prone to ignore agent interaction when predicting the future trajectory of an agent. The framework proposes a novel sparse graph attention message-passing (sparse-GAMP) layer to address this problem.\n\nReviewer_2: This paper analyzes the reason behind the social posterior collapse caused in typical VAEs for multi-agent modeling and proposes improvement schemes. The paper test the proposed model on real-world multi-agent trajectory prediction datasets. This paper also proposes a novel sparse graph attention message-passing.\n\nReviewer_3: The proposed paper introduces the concept of social posterior collapse in variational autoencoder (VAE) architectures trained for trajectory prediction in interactive environments. Social posterior collapse refers to the VAE ignoring interaction information during training, thus making trajectory predictions solely from the predicted agent's history and map information. The authors present a means to quantify the extent of social posterior collapse through a sparse attention mechanism and propose architectural changes to alleviate the issue.\n\nReviewer_4: This paper focuses on analyzing VAE-based frameworks for multi-agent trajectory forecasting from a relationship-modeling perspective. Specifically, it argues that standard VAE frameworks can potentially lead to a situation where the interactions between entities are ignored when predicting future trajectories, which they call “social posterior collapse.” To address this, they augment this framework in two ways: first, they convert the model to a conditional VAE (CVAE) where the prior on latent variables is conditioned on input trajectories; second, they add an auxiliary training task wherein samples from the prior are used to train a second trajectory decoder. To analyze the “social posterior collapse” issue, a graph attention layer that uses sparse attention is developed (titled “Sparse-GAMP”), and a metric called Agent Ratio (AR) is defined which consists of the proportion of surrounding agents to which the target agent is attending. Experiments are run on traffic and pedestrian trajectory prediction datasets, where it is shown that, in situations where social posterior collapse is shown to be present, their model is able to alleviate this issue. Furthermore, the auxiliary prediction task can lead to better model performance."
}