Papers
Topics
Authors
Recent
Search
2000 character limit reached

AdaSports-Traj: Adaptive Sports Trajectory Model

Updated 27 January 2026
  • AdaSports-Traj is an adaptive multi-agent trajectory framework that addresses intra- and inter-domain discrepancies using role- and domain-aware mechanisms.
  • It integrates a CVAE backbone with a Role- and Domain-Aware Adapter and hierarchical contrastive learning to effectively model heterogeneous sports data.
  • Empirical evaluations on Basketball-U, Football-U, and Soccer-U demonstrate significant prediction improvements compared to traditional methods like UniTraj.

AdaSports-Traj is an adaptive framework for multi-agent trajectory modeling in sports, explicitly designed to address both intra-domain and inter-domain distributional discrepancies that arise from heterogeneous agent roles (such as players versus balls) and varying sports domains (e.g., basketball, football, soccer). By introducing a Role- and Domain-Aware Adapter in conjunction with a hierarchical contrastive learning paradigm, AdaSports-Traj achieves robust performance in both unified and cross-domain trajectory prediction scenarios, as demonstrated empirically on Basketball-U, Football-U, and Soccer-U datasets (Xu et al., 19 Sep 2025).

1. Model Architecture and Adapter Design

At its core, AdaSports-Traj employs a Conditional Variational Autoencoder (CVAE) backbone, following the unified trajectory modeling conventions of UniTraj (Xu & Fu ’25). The model processes masked multi-agent trajectories X∈RN×T×DX \in \mathbb{R}^{N \times T \times D} (with mask M∈{0,1}N×TM \in \{0, 1\}^{N \times T}). Its encoder qϕ(z≤T∣x≤T)q_\phi(z^{\leq T} | x^{\leq T}) and prior pθ(zt∣x<t,z<t)p_\theta(z^t | x^{<t}, z^{<t}) model the latent states as Gaussian distributions, while the decoder reconstructs both visible and missing portions of input trajectories. The training maximizes the evidence lower bound (ELBO), as formalized by:

ELBO(θ,ϕ)=Eqϕ(z∣x)[∑t=1Tlog⁡pθ(xt∣z≤t,x<t)−KL(qϕ(zt∣x≤t,z<t)∥pθ(zt∣x<t,z<t))]\mathrm{ELBO}(\theta, \phi) = \mathbb{E}_{q_\phi(z|x)} \left[ \sum_{t=1}^T \log p_\theta(x^t | z^{\leq t}, x^{<t}) - \mathrm{KL}(q_\phi(z^t | x^{\leq t}, z^{<t}) \| p_\theta(z^t | x^{<t}, z^{<t})) \right]

A key innovation is the Role- and Domain-Aware Adapter (RDA), which modulates the encoder’s latent features zz based on agent role (r∈{Player,Ball}r \in \{\text{Player}, \text{Ball}\}) and sports domain (d∈{Basketball,Football,Soccer}d \in \{\text{Basketball}, \text{Football}, \text{Soccer}\}):

  • Embeddings: erole=Embrole(r), edomain=Embdomain(d)e_\mathrm{role} = \mathrm{Emb}_\mathrm{role}(r),\ e_\mathrm{domain} = \mathrm{Emb}_\mathrm{domain}(d), both of dimension Rh\mathbb{R}^h.
  • Cross-Attention: Using M∈{0,1}N×TM \in \{0, 1\}^{N \times T}0 as query and M∈{0,1}N×TM \in \{0, 1\}^{N \times T}1 as key/value:

M∈{0,1}N×TM \in \{0, 1\}^{N \times T}2

  • Token-wise Gating: Per-token gating weight M∈{0,1}N×TM \in \{0, 1\}^{N \times T}3 determines the interpolation:

M∈{0,1}N×TM \in \{0, 1\}^{N \times T}4

This lightweight, plug-and-play adapter setup requires minimal additional computational overhead and is fully differentiable, supporting end-to-end learning through the primary modeling and contrastive losses.

2. Hierarchical Contrastive Learning

AdaSports-Traj introduces a hierarchical contrastive objective to separately supervise role-sensitive and domain-aware latent representations, thereby encouraging their disentanglement.

  • Projection Heads: Starting from M∈{0,1}N×TM \in \{0, 1\}^{N \times T}5, the model produces two L²-normalized projections:

M∈{0,1}N×TM \in \{0, 1\}^{N \times T}6

  • InfoNCE Contrastive Losses: For a given batch, role-positive pairs share the same agent type, domain-positive pairs share the same sport, and all other batch members serve as negatives:

M∈{0,1}N×TM \in \{0, 1\}^{N \times T}7

  • Combined Hierarchical Loss:

M∈{0,1}N×TM \in \{0, 1\}^{N \times T}8

Projecting into orthogonal subspaces eliminates optimization conflict between agent role and domain supervision. Empirical ablations confirm that variants lacking this separation (e.g., shared-feature projection) yield significantly inferior results.

3. Training Objectives and Implementation

The complete loss function of AdaSports-Traj augments the CVAE objectives with the hierarchical contrastive term and a Winner-Take-All (WTA) sampling loss to promote diversity:

  • Reconstruction and Regularization:

M∈{0,1}N×TM \in \{0, 1\}^{N \times T}9

qϕ(z≤T∣x≤T)q_\phi(z^{\leq T} | x^{\leq T})0

qϕ(z≤T∣x≤T)q_\phi(z^{\leq T} | x^{\leq T})1

  • Final Training Loss:

qϕ(z≤T∣x≤T)q_\phi(z^{\leq T} | x^{\leq T})2

Training employs Adam (β₁=0.9, β₂=0.999), an initial learning rate of 0.001 decayed by 0.9 every 20 epochs, and batch size 128. Mixed-domain batches in unified-to-single (U2S) settings permit simultaneous domain and role contrastive supervision, while single-to-single (S2S) batches enable only role-based losses. The hardware consists of an NVIDIA A6000 GPU and PyTorch implementation.

4. Experimental Evaluation

Datasets

Experiments use three unified multi-agent trajectory datasets:

Dataset Agents (N) Train/Test Size
Basketball-U 11 (5+5+1) 93,490 / 11,543
Football-U 23 (22+1) 10,762 / 2,624
Soccer-U 23 (22+1) 9,882 / 2,448

Metrics

  • minADE₍₂₀₎: Minimum Averaged Displacement Error over 20 samples (lower is better)
  • OOB: Fraction of predicted points outside field boundaries
  • Step: Mean stepwise trajectory displacement (closeness to ground truth)
  • Path-L: Total agent path length
  • Path-D: Net start-to-end agent displacement

Results

AdaSports-Traj consistently outperforms UniTraj across all settings. Example: In S2S, Basketball-U minADE₍₂₀₎ drops from 4.77 (UniTraj) to 4.21; similarly, unified-to-single (U2S) settings show clear improvement (Basketball-U minADE₍₂₀₎: 11.12 → 8.74). Detailed ablations reveal:

  • Combining RDA and HC yields the best outcome (S2S: 4.21/3.04/91.52 versus RDA or HC alone).
  • Token-wise gating in the adapter surpasses feature-wise or no gating configurations.
  • Role-only and domain-only contrastive variants underperform relative to hierarchical contrastive learning.

5. Analysis, Visualization, and Limitations

t-SNE analysis of learned projections shows distinct clustering for the three sports domains in qϕ(z≤T∣x≤T)q_\phi(z^{\leq T} | x^{\leq T})3 and clear separation between Ball and Player roles in qϕ(z≤T∣x≤T)q_\phi(z^{\leq T} | x^{\leq T})4. Qualitative rollout visualizations indicate improved plausible completion and forecast trajectories, especially under heavy observation masking, with fewer out-of-bounds outputs compared to UniTraj.

A principal limitation is that AdaSports-Traj relies on pre-defined role and domain annotations during training, which precludes unsupervised deployment across novel agent types or sports. Future research directions include unsupervised or weakly-supervised discovery of role/domain labels and extending the adapter mechanism to generative backbones beyond CVAEs, such as diffusion models, and to real-time online adaptation contexts.

6. Context and Significance

AdaSports-Traj directly addresses the structured heterogeneity and distributional shift challenges characteristic of multi-agent sports trajectory prediction. By introducing a modular and lightweight plug-in for latent space adaptation and validating the necessity of disentangled, orthogonal subspace supervision, it establishes a new methodological baseline for cross-domain, multirole trajectory forecasting. Empirical results on Basketball-U, Football-U, and Soccer-U demonstrate domain-agnostic improvements. This framework represents a substantial step toward unified, adaptable models for structured multi-agent systems in sports and potentially other domains requiring explicit role and context awareness (Xu et al., 19 Sep 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to AdaSports-Traj.