Groups Shape Futures, Futures Define Groups: Hypothesis-Conditioned Hypergraph Flow Matching for Collective Motion Forecasting

Rui Gan, Jiaxi Liu, Zheng Li, Sixu Li, Zihao Li, Keshu Wu, Yang Zhou, Xiaopeng LiarXiv 2026

TL;DR

Predicting how a crowd or a sports team will move isn't just about guessing where individuals will go—it's about guessing who will move together. While previous AI forecasters lock in social groups based purely on past movements, H$^2$Flow lets every predicted future dynamically form and update its own distinct groups as trajectories unfold. This two-way feedback loop yields more accurate and physically coherent collective predictions across complex team sports.

What Problem Does This Paper Address?

Imagine a point guard driving toward the basket. In one plausible future, they pass to the corner, pulling defenders outward; in another, they drive to the rim, collapsing the defense inward. Because the future is uncertain, generative trajectory forecasters output $K$ different "hypotheses" (plausible futures) for the scene.

To model how multiple agents coordinate, researchers often use hypergraphs—generalized graphs where a single "hyperedge" can connect a group of any size (say, three defenders and a ball handler) rather than just pairs. However, existing group-aware models infer these hypergraphs once from past observations before generating futures. That forces every simulated future to share the exact same interaction groups, even when different futures bring completely different players together!

Comparison of per-agent, static group-aware, and H2Flow's hypothesis-conditioned groups.

Furthermore, models are usually trained with a "winner-take-all" loss: out of $K$ guesses, only the closest one is penalized. Doing this per agent lets the ball handler pick Hypothesis 1 while the defender picks Hypothesis 7, resulting in low individual error but an incoherent joint play. Doing it per scene forces all 22 soccer players to agree on one guess, which is way too rigid when players on the far side of the pitch are acting independently.

Methods

The authors build H$^2$Flow on top of multi-hypothesis flow matching—a cousin of diffusion models that smoothly transforms random noise into clean trajectories over time $t \in [0, 1]$ using an ordinary differential equation solver.

While a standard scene hypergraph encoder processes the observed past once, the magic happens inside the Hypothesis-Conditioned Decoder at every step of the flow:

  • Futures Define Groups: At each solver step, H$^2$Flow peeks at its previous clean estimate of the future (via self-conditioning, requiring zero extra network evaluations). Each hypothesis $k$ builds its own multi-scale hypergraphs (groups of size 2, 3, and 5) by combining feature similarity with how physically close agents are in that specific hypothesis's estimated future. As $t \to 1$, physical proximity in the emerging future weighs more heavily.
  • Groups Shape Futures: Each newly formed group is pooled into a "group token" that agents attend to. At the final layer, a group-factorized prediction head adds a shared trajectory correction to all members of a group, physically coupling their motion.
  • Hyperedge-Level Winner-Take-All ($\mathcal{L}_{\text{grp}}$): Instead of picking one winning hypothesis per agent or per whole scene during training, H$^2$Flow picks a winner per hyperedge. A hypothesis only wins a group if it predicts all members of that group accurately together—without needing human-annotated group labels.
Figure 2. Overview of H2Flow. The encoder runs once per scene; in every decoder block, each hypothesis forms the groups of its estimated future, and these groups shape its prediction.

Datasets

No new datasets were introduced; the authors evaluate on five established motion benchmarks:

  • Team Sports (2.0s past $\to$ 4.0s future): NBA SportVU (10 players + ball), NFL (22 players + ball), and SoccerTrack (22 players + ball).
  • Pedestrians (3.2s past $\to$ 4.8s future): ETH-UCY and Stanford Drone Dataset (SDD).

Key Insights and Ideas

  • Cross-team grouping emerges naturally: Without any labels telling the model what a "play" is, 77% of the learned hyperedges in NBA games end up connecting players from both teams—capturing matchups like screens and closeouts.
  • Each hypothesis genuinely builds its own world: A hypothesis's learned groups overlap significantly more with the spatial groups of its own predicted future (2.6$\times$ chance) than with another hypothesis's future.
Figure 4. Hypotheses of H2Flow on one NBA play with their score rank and the most-supported group of each size (top), and their four best-supported hyperedges per size over 2.0–4.0s (bottom).
  • The subtle truth about where accuracy comes from: In a candid analysis on NBA data, the authors found that training a model with one shared grouping per play—as long as it is built from the evolving future estimates and scored with $\mathcal{L}_{\text{grp}}$—is nearly as accurate (within ~0.1 cm) as having 20 separate groupings! The accuracy boost primarily comes from conditioning groups on predicted future motion and scoring groups jointly; per-hypothesis groups add structural alignment between each rollout and its own interactions at no extra compute cost.
  • Pedestrian benchmarks barely test group reasoning: On ETH, Univ, Zara2, and SDD, H$^2$Flow actually performed best when configured to forecast each pedestrian alone, suggesting standard crowd datasets test individual pathing far more than tight collective coordination.

Key Results

Using $K=20$ hypotheses, H$^2$Flow achieves state-of-the-art accuracy across team sports from single agents up to full scenes:

  • NBA: Reduces per-agent error (min20ADE) by 3.7% (0.673m vs. 0.699m) and whole-scene joint error (Scene-min20ADE) by 6.2% (1.372m vs. 1.463m) compared to the flow-matching baseline MoFlow.
  • NFL & Soccer: Lowers Scene-min20ADE by 3.8% on NFL and 11.3% on Soccer relative to MoFlow.
  • Pedestrians: Achieves the lowest min20ADE on Zara1 (0.16m) and SDD (7.44 pixels), though it trails older methods on ETH.

Limitations and Future Work

H$^2$Flow requires pre-defining fixed group sizes (e.g., $\{2, 3, 5\}$) and assumes a constant set of fully observed agents—leaving dynamic group sizes, occluded sensors, and players entering or exiting the scene for future work. Additionally, because groups are inferred purely from trajectories and spatial proximity, the model can miss latent, long-range interactions—like a quarterback and a wide receiver coordinating from across the field via a shared playbook.

Summary updated

BibTeX
@misc{gan2026groups,
  author = {Rui Gan and Jiaxi Liu and Zheng Li and Sixu Li and Zihao Li and Keshu Wu and Yang Zhou and Xiaopeng Li},
  title = {{Groups Shape Futures, Futures Define Groups: Hypothesis-Conditioned Hypergraph Flow Matching for Collective Motion Forecasting}},
  year = {2026},
  eprint = {2611.36455},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36455},
}
Figure