---
title: 'CoPAD: Cooperative V2X Trajectory Prediction'
url: https://www.emergentmind.com/topics/copad
type: topic
---

# CoPAD: Cooperative V2X Trajectory Prediction

Searching arXiv for CoPAD and closely related V2X trajectory prediction papers to ground the article.
CoPAD is a cooperative trajectory prediction framework for Vehicle-to-Everything (V2X) scenarios that combines multi-source raw trajectory fusion with a graph-based spatio-temporal encoder, a mode attention mechanism, and an anchor-oriented decoder [2509.15984]. It is designed for settings in which single-vehicle perception is degraded by occlusion, long distances, or adverse weather, and addresses those limitations by performing early fusion of vehicle and road infrastructure trajectories. In the formulation reported for CoPAD, vehicle-side history and infrastructure-side history are matched with the Hungarian algorithm, fused with Kalman filtering, encoded through Past Time Attention (PTA), diversified through a mode attention module, and decoded into complete future trajectories using sparse oriented anchors [2509.15984].

## 1. Problem formulation and V2X motivation

CoPAD is situated in the trajectory prediction literature for autonomous driving, specifically in the cooperative setting where both vehicles and road-side units (RSUs) contribute observations [2509.15984]. In the single-vehicle setting, raw trajectories of surrounding agents are obtained only from the ego vehicle’s onboard sensors, including LiDAR and camera. The reported motivation is that real traffic conditions introduce missing or highly noisy trajectories through occlusions, long distances, and adverse weather, which in turn degrades prediction accuracy [2509.15984].

The framework leverages Vehicle-to-Everything communication so that infrastructure viewpoints can supplement vehicle viewpoints. The central design premise is “early fusion” of raw trajectories rather than a purely feature-level fusion strategy. In the reported interpretation, this improves trajectory completeness by filling in missing observations and reduces sparsity before downstream encoding and prediction [2509.15984]. This suggests that CoPAD treats cooperative perception not merely as an auxiliary cue, but as a direct means of repairing the input trajectory history presented to the predictor.

The model is described as lightweight and end-to-end. Its main components are explicitly enumerated as: a fusion module based on the Hungarian algorithm and Kalman filtering, a PTA encoder for spatio-temporal and map interactions, a mode attention module for multi-modal diversity, and an anchor-oriented decoder (AoD) for final trajectory generation [2509.15984].

## 2. Multi-source trajectory fusion

CoPAD defines the vehicle-side observed history as
\[
\mathcal T_V = \bigl[p^{(1)},\dots,p^{(t_h)}\bigr]\in\mathbb R^{N_t\times t_h\times C_t},
\]
and the infrastructure-side history as
\[
\mathcal T_I\in\mathbb R^{M_t\times t_h\times C_t}.
\]
The fusion is performed directly on these raw trajectories in three stages [2509.15984].

First, objects across the two sources are matched at the first and last time steps by solving a linear assignment problem with the Hungarian algorithm. Given a pairwise distance cost matrix \(C\in\mathbb R^{N_t\times M_t}\), the assignment matrix \(X\in\{0,1\}^{N_t\times M_t}\) is obtained by minimizing
\[
\min_{X}\;\sum_{i=1}^{N_t}\sum_{j=1}^{M_t} C_{ij}\,X_{ij},
\quad
X\mathbf1 = \mathbf1,\; X^T\mathbf1 \le \mathbf1\,.
\]
This step determines which vehicle-side and infrastructure-side trajectories correspond to the same physical object [2509.15984].

Second, the matched and unmatched sets are separated as
\[
\mathcal T_{\rm matched} \;=\;\mathcal H(\mathcal T_V,\mathcal T_I),
\quad
\mathcal T_{\rm unmatched}
\;=\;\bigl(\mathcal T_V\cup\mathcal T_I\bigr)\setminus\mathcal T_{\rm matched}.
\]
Third, each matched pair is fused through a Kalman filtering operator \(\mathcal K\), and the unmatched trajectories are concatenated:
\[
\mathcal T_{\rm fusion}
\;=\;
\mathcal K\bigl(\mathcal T_{\rm matched}\bigr)\;\cup\;\mathcal T_{\rm unmatched}\,.
\]
Although CoPAD treats \(\mathcal K\) as a black-box fusion operator, the standard Kalman filter update equations are given:
\[
\hat x_{t|t-1} = A\,\hat x_{t-1|t-1},\quad
S_t = H\,P_{t|t-1}H^\top + R,\quad
K_t = P_{t|t-1}H^\top S_t^{-1},\quad
\hat x_{t|t} = \hat x_{t|t-1} + K_t\bigl(z_t - H\,\hat x_{t|t-1}\bigr).
\]
Within the reported system design, the purpose of this module is to construct trajectories with higher completeness and accuracy prior to graph encoding [2509.15984].

Ablation results attribute a clear advantage to this raw-data fusion strategy over feature-level alternatives. In the reported comparison, early fusion with Kalman filter outperforms intermediate fusion by addition (“IA”) and intermediate fusion by concatenation (“IC”) [2509.15984]. This supports the specific architectural decision to repair and merge observation sequences before feature extraction rather than after.

## 3. PTA encoder and heterogeneous graph construction

After fusion, CoPAD builds a heterogeneous spatio-temporal graph at each time step \(t\), with nodes for observed agents and lane segments from the vectorized HD map [2509.15984]. A graph attention network (GAT) is first applied to extract per-node features
\[
d_t\in\mathbb R^{N_t\times d}.
\]
This graph stage incorporates both agent interactions and map context.

To model interactions across historical frames, CoPAD introduces Past Time Attention (PTA). Given a look-back window \(k_p\), for each \(t\ge k_p\) the historical context is formed as
\[
C(d_t,k_p) \;=\;
\bigl[d_{t-k_p};\,d_{t-k_p+1};\,\dots;\,d_{t-1}\bigr]
\quad\in\mathbb R^{k_pN_t\times d},
\]
and the current features are repeated as
\[
\mathcal R(d_t)\in\mathbb R^{k_pN_t\times d}.
\]
The encoder output is then defined by
\[
E_t =
\begin{cases}
\mathrm{MHCA}\bigl(C(d_t,k_p),\,\mathcal R(d_t)\bigr), & t\ge k_p,\\
\mathrm{MLP}(d_t), & t<k_p.
\end{cases}
\]
Here, MHCA denotes multi-head cross-attention [2509.15984].

The paper specifies the standard attention projections
\[
Q=W_Q\,\mathcal R(d_t),\quad K=W_K\,C(d_t,k_p),\quad V=W_V\,C(d_t,k_p),
\]
and for each attention head,
\[
\mathrm{head}_i =
\mathrm{softmax}\!\Bigl(\tfrac{Q_i K_i^\top}{\sqrt{d_h}}\Bigr)\,V_i,\quad
\mathrm{MHCA}(Q,K,V)=\bigl[\mathrm{head}_1;\dots;\mathrm{head}_H\bigr]W_O.
\]
The stated function of PTA is to capture global interactions across past frames, complementing the per-frame GAT representation [2509.15984].

The ablation study identifies PTA as the most consequential individual module. Under Kalman-filter fusion with mode attention and two anchors, removing PTA changes the reported metrics from minADE \(1.24\), minFDE \(2.00\), MR \(0.29\) to minADE \(1.73\), minFDE \(3.25\), MR \(0.48\) [2509.15984]. The paper summarizes this as the largest single improvement, with minADE reduced from \(1.73\) to \(1.27\) when PTA is introduced in the corresponding comparison. This suggests that explicit temporal cross-frame interaction modeling is central to CoPAD’s reported performance profile.

## 4. Mode attention and multi-modal prediction

CoPAD models future uncertainty through \(F\) prediction modes. To enrich diversity, the framework expands the encoded feature \(E_t\) into \(F\) branches and applies a graph-based mode attention module [2509.15984]. For each mode \(m=1,\dots,F\), a small graph is built whose nodes are the \(t_f\)-step futures hypothesized for that mode. After flattening this graph, a standard multi-head GAT is applied:
\[
E_m' \;=\;\mathrm{GAT}\bigl(E_t^{(m)},\,A_{\rm mode},\,D_{\rm mode}\bigr).
\]

The node update and attention coefficients are given as
\[
h_i'
= \sigma\!\Bigl(\sum_{j\in\mathcal N(i)}\alpha_{ij}\,W\,h_j\Bigr),
\]
with
\[
\alpha_{ij}
=
\frac{\exp\bigl(\mathrm{LeakyReLU}(a^\top[W h_i\Vert W h_j])\bigr)}
{\sum_{k\in\mathcal N(i)}
\exp\bigl(\mathrm{LeakyReLU}(a^\top[W h_i\Vert W h_k])\bigr)}.
\]
In the stated interpretation, this module learns to up-weight the most plausible modes [2509.15984].

The framework uses \(F=6\) modes in the reported experiments [2509.15984]. Evaluation metrics are explicitly defined with six modes: minADE is the minimum average \(\ell_2\) error over the best mode, minFDE is the minimum final-step \(\ell_2\) error, and MR is the miss rate under best-mode endpoint error \(>2\) m [2509.15984]. These definitions place CoPAD within the standard best-of-\(K\) multi-modal trajectory prediction paradigm.

Ablation results show that mode attention contributes an additional reduction in error beyond the PTA-equipped model. With Kalman-filter fusion, PTA, and two anchors, removing mode attention changes the reported metrics from minADE \(1.24\), minFDE \(2.00\), MR \(0.29\) to minADE \(1.27\), minFDE \(2.11\), MR \(0.32\) [2509.15984]. The paper summarizes this as a reduction from \(1.27\) to \(1.24\) in minADE. While smaller than the PTA effect, it indicates that structured competition or reweighting among future modes remains beneficial.

## 5. Anchor-oriented decoder

The decoder in CoPAD is anchor-oriented and sparse. For each mode \(m\), the model defines two oriented anchors,
\[
\{a_{m,1},a_{m,2}\}\subset\mathbb R^2,
\]
with one anchor placed roughly near the midpoint and the other near the endpoint of a future trajectory [2509.15984]. Let \(z_i\in\mathbb R^d\) denote the final embedding for agent \(i\). The decoder head for each mode is a small MLP, or alternatively an MLP-Mixer, that takes the concatenated input
\[
[\,z_i;\,a_{m,1};\,a_{m,2}\,]
\]
and outputs the full future trajectory
\[
\hat Y_{i,m}
=\,f_{\rm MLP}\bigl(\,[\,z_i\,\Vert\,a_{m,1}\,\Vert\,a_{m,2}\,]\bigr)
\;\in\;\mathbb R^{t_f\times2}.
\]
Varying \(m\) generates \(F\) distinct trajectory hypotheses [2509.15984].

The paper characterizes the decoder as based on sparse anchors. In contrast to dense anchor parameterizations, the design uses only two anchors per mode. The reported ablation study compares different numbers of anchors per mode under Kalman-filter fusion, PTA, and mode attention. The results are:

| Anchors per mode | minADE | minFDE | MR |
|---|---:|---:|---:|
| 0 | 1.27 | 2.08 | 0.32 |
| 1 | 1.26 | 2.06 | 0.32 |
| 2 | 1.24 | 2.00 | 0.29 |
| 3 | 1.25 | 2.03 | 0.31 |

The stated conclusion is that two anchors per mode is optimal and that more anchors do not help [2509.15984]. This suggests that the decoder’s effectiveness depends less on anchor count than on a sparse geometric scaffold aligned with salient future positions.

## 6. Implementation profile and empirical results

The reported experimental setting uses a historical horizon \(t_h=5\) s and a future horizon \(t_f=5\) s, both sampled at \(10\) Hz, corresponding to \(50\) steps each [2509.15984]. The PTA window is \(k_p\approx 3\), which is described as \(0.3\) s back; the number of cross-attention heads is \(H=4\), and the feature dimension is \(d=128\) [2509.15984]. The graph radius for agent–agent edges is approximately \(30\) m. Optimization uses AdamW with initial learning rate \(3\times10^{-4}\), weight decay \(10^{-4}\), cosine annealing, and dropout \(0.1\). Training is reported for \(64\) epochs on DAIR-V2X-Seq [2509.15984].

DAIR-V2X-Seq is described as a real-world V2X cooperative dataset with approximately \(60{,}000\) ten-second sequences, each consisting of \(5\) s history and \(5\) s future, and covering vehicles, pedestrians, and detailed HD maps [2509.15984]. This dataset serves as the benchmark for the reported cooperative trajectory prediction experiments.

The paper reports that CoPAD has approximately \(3.2\) million trainable parameters, which is about \(64\%\) of the \(5.0\) million parameters in the previous V2X-Graph model [2509.15984]. The quantitative comparison on DAIR-V2X-Seq with cooperative fusion on all models is:

| Method | Params | minADE / minFDE / MR |
|---|---:|---:|
| TNT (coop) | 0.5 M | 7.38 / 15.27 / 0.72 |
| laneGCN (coop) | 1.0 M | 1.45 / 2.96 / 0.41 |
| DenseTNT (coop) | 3.7 M | 1.79 / 2.88 / 0.37 |
| HiVT (coop) | 2.6 M | 1.29 / 2.43 / 0.35 |
| V2X-Graph (coop) | 5.0 M | 1.17 / 2.03 / 0.29 |
| CoPAD (coop) | 3.2 M | 1.24 / 2.00 / 0.29 |

The reported interpretation is that CoPAD achieves the state-of-the-art minFDE of \(2.00\) m and ties the best MR of \(0.29\), while using only \(64\%\) of the parameters of V2X-Graph [2509.15984]. The minADE is not the best in the table, since V2X-Graph reports \(1.17\) versus CoPAD’s \(1.24\). Accordingly, the contribution is not a uniform dominance across all metrics, but a specific trade-off combining strong final displacement accuracy, tied miss rate, and lower parameter count.

The paper also states that all models benefit substantially from cooperative fusion. For CoPAD specifically, minADE, minFDE, and MR improve by \(12.7\%\), \(13.0\%\), and \(12.1\%\), respectively, relative to single-vehicle data [2509.15984]. This supports the central V2X claim that cooperative sensing materially changes prediction quality rather than merely adding redundancy.

## 7. Interpretation, scope, and related design choices

CoPAD’s ablation structure emphasizes four coupled design choices: early raw-data fusion, a global temporal attention encoder, mode diversity attention, and a sparse anchor decoder [2509.15984]. The paper’s summary attributes the reported state-of-the-art cooperative trajectory prediction result on DAIR-V2X-Seq to this combination. Within the evidence presented, PTA yields the largest gain, mode attention produces an additional but smaller gain, and two sparse anchors per mode outperform both fewer and more anchors [2509.15984].

A possible misconception is that cooperative trajectory prediction in V2X is primarily a matter of adding infrastructure features late in the pipeline. The reported ablation contradicts that interpretation: intermediate feature fusion by addition or concatenation performs worse than early fusion with Kalman filtering [2509.15984]. Another possible misconception is that higher anchor count necessarily improves trajectory reconstruction. The reported decoder ablation does not support that; three anchors per mode is slightly worse than two [2509.15984].

The model is described as lightweight relative to V2X-Graph, but the available evidence should be interpreted narrowly. It supports a lower parameter count and better minFDE with tied MR on DAIR-V2X-Seq, not a universal superiority across all trajectory prediction metrics or datasets [2509.15984]. Likewise, the framework’s design is tailored to V2X scenarios with access to vehicle and infrastructure trajectories. This suggests that its benefits are most directly relevant where cooperative sensing and communication are already present.

In the reported form, CoPAD represents a cooperative prediction architecture in which sensing incompleteness is addressed before sequence modeling, temporal interaction is handled through cross-frame attention, multi-modality is structured with a graph-based mode mechanism, and full trajectories are generated from sparse oriented anchors [2509.15984]. Its empirical significance lies in showing that this particular combination can reach top-tier endpoint accuracy and miss rate on DAIR-V2X-Seq while remaining compact in parameter count.

Source: https://www.emergentmind.com/topics/copad