GenTac: Generative Modeling and Forecasting of Soccer Tactics

Jiayuan Rao, Tianlin Gui, Haoning Wu, Yanfeng Wang, Weidi XiearXiv 2026

TL;DR

GenTac is a diffusion-based generative framework that models open-play soccer tactics by simultaneously forecasting continuous multi-player trajectories and predicting discrete semantic events. By treating tactical evolution as a stochastic process rather than a deterministic path, GenTac enables realistic long-horizon simulations, style-conditioned forecasting, and controllable counterfactual analysis that generalizes across multiple team sports.

What Problem Does This Paper Address?

Modeling open-play tactics in association football (soccer) is notoriously difficult due to its highly fluid, multi-agent, and non-deterministic nature. A single off-the-ball run or unexpected pass can cause a match to branch into completely different tactical scenarios.

Existing AI approaches typically fall short in two ways: they either focus on highly structured, static set-pieces (like corner kicks) or rely on deterministic trajectory forecasting models that output a single "average" future path. These methods fundamentally fail to capture the natural variance, strategic nuances, and branching possibilities of real-world match play. GenTac addresses this gap by shifting the paradigm from deterministic prediction to probabilistic, context-conditioned simulation.

Methods

GenTac conceptualizes soccer tactics as a dual-pronged generative process combining a trajectory forecasting module ($\Phi_{\text{traj}}$) and a tactical event recognition module ($\Phi_{\text{event}}$).

                  ┌───► Trajectory Forecasting (Diffusion Denoising)
Historical Data ──┼─► Spatiotemporal Attention Backbone
                  └───► Tactical Event Recognition (Hierarchical MLP)
  1. Multi-Agent Trajectory Encoding: Continuous 2D coordinates of all 22 players and the ball are tokenized into a dense spatiotemporal representation. Crucially, the model injects three distinct learnable embeddings to preserve structural priors: temporal order, group affiliation (Team A, Team B, or ball), and individual entity identity.
  2. Spatiotemporal Attention Backbone: GenTac utilizes a factorized spatiotemporal attention architecture (adapted from TimeSformer) to capture instantaneous multi-player interactions at each timestamp, followed by the dynamic evolution of individual players over time.
  3. Autoregressive Sliding-Window Rollout: To stably generate long-horizon futures, the trajectory module uses a causal sliding window (typically $0.2\text{s}$) to iteratively denoise and sample consecutive future segments via a reverse diffusion process.
  4. Contextual Conditioning: The framework supports rich conditional inputs, allowing users to guide the generation based on opponent behavior, specific team styles (e.g., Auckland FC), league styles (e.g., Bundesliga vs. A-League), or strategic objectives (offensive vs. defensive guidance).
  5. Hierarchical Event Recognition: The semantic module uses an attention pooling mechanism to compress the spatiotemporal grid into a global feature vector. A Multi-Layer Perceptron (MLP) with parallel classification heads then predicts a hierarchical tactical event space consisting of 5 broad macro-categories and 15 nested subtypes.

Datasets

The authors introduce TacBench, a new unified benchmark for soccer tactical forecasting and analysis. It is constructed from both public tracking data and broadcast-derived data resampled to 25 frames per second (FPS):

  • TacBench-Trajectory: 2,838 15-second segments spanning diverse matches from SkillCorner (Australian A-League), Sportec DFL (German Bundesliga), and Metrica Sports.
  • TacBench-Event: 423 trajectory segments with explicit tactical annotations mapped into 15 distinct fine-grained subtypes (e.g., Ball Win, Progression, Clearance, Shot Saved).

To demonstrate cross-sport generalization, the model was also evaluated on:

  • Basketball: 66,498 6-second clips from NBA SportVU (5 FPS).
  • American Football: 19,154 clips from the NFL Big Data Bowl 2021 (10 FPS).
  • Ice Hockey: 33 match periods from the Big Data Cup 2026 (30 FPS).

Key Insights and Ideas

  • Grounding Semantics in Physics: Unlike prior works that extrapolate tactical event labels directly from historical event sequences, GenTac first simulates the physical multi-player trajectories and then infers the semantic event outcome from the generated future. This ensures that event forecasting is fundamentally trajectory-grounded.
  • Embracing Unpredictability: By generating $K=20$ diverse rollouts from the same historical context, the model naturally induces a probability distribution over possible future events, mimicking the inherent uncertainty of sports.
  • Controllable Counterfactuals: The objective-conditioned configuration allows coaches or analysts to run "what-if" simulations. For instance, forcing the model to simulate a "defensive guidance" scenario structurally alters the generated player trajectories to maximize spatial control and suppress expected threat metrics.

Key Results

  • Geometric Precision: Incorporating future opponent trajectories (opponent-conditioned forecasting) drastically reduces errors. At a 5-second prediction horizon, the minimum Average Displacement Error (ADE) and Final Displacement Error (FDE) decreased by over 70% compared to unconditioned joint forecasting, bringing the minimum ADE down to $1.30\text{m}$.
  • Structural Consistency: GenTac successfully preserves collective team structures (e.g., team length, width, surface area, and centroid displacement) during long-horizon rollouts. Enforcing team-specific conditioning (e.g., Auckland FC) significantly reduced structural metric deviations over a 5-second horizon.
  • Event Accuracy: For tactical event grounding, GenTac achieved a top-1 accuracy of 71.2% and a top-3 accuracy of 97.4% across the 5 macro-categories. At the 15-subtype level, top-1 accuracy reached 53.7%.
  • Cross-Sport Generalization: Without structural changes to the core architecture, GenTac successfully adapted to other sports. At a 5-second horizon under opponent conditioning, it achieved a minimum ADE of $0.32\text{m}$ in basketball, $1.06\text{m}$ in American football, and $1.04\text{m}$ in ice hockey.

Limitations and Future Work

While GenTac represents a major leap forward, the authors note several limitations:

  • Latent Cognitive Factors: The model operates purely on observable tracking data. It cannot account for unobserved variables like coaching intent, real-time player communication, psychological pressure, or physical fatigue.
  • Data Dependency: The framework relies heavily on high-fidelity, structured tracking coordinates.

As a next step, the authors suggest extending the framework to ingest richer, more accessible multimodal sources, such as extracting trajectories and pose estimations directly from raw broadcast video streams.

Summary updated

Abstract

Modeling open-play soccer tactics is a formidable challenge due to the stochastic, multi-agent nature of the game. Existing computational approaches typically produce single, deterministic trajectory forecasts or focus on highly structured set-pieces, fundamentally failing to capture the inherent variance and branching possibilities of real-world match evolution. Here, we introduce GenTac, a diffusion-based generative framework that conceptualizes soccer tactics as a stochastic process over continuous multi-player trajectories and discrete semantic events. By learning the underlying distribution of player movements from historical tracking data, GenTac samples diverse, plausible, long-horizon future trajectories. The framework supports rich contextual conditioning, including opponent behavior, specific team or league playing styles, and strategic objectives, while grounding continuous spatial dynamics into a 15-class tactical event space. Extensive evaluations on our proposed benchmark, TacBench, demonstrate four key capabilities: (1) GenTac achieves high geometric accuracy while strictly preserving the collective structural consistency of the team; (2) it accurately simulates stylistic nuances, distinguishing between specific teams (e.g., Auckland FC) and leagues (e.g., A-League versus German leagues); (3) it enables controllable counterfactual simulations, demonstrably altering spatial control and expected threat metrics based on offensive or defensive guidance; and (4) it reliably anticipates future tactical outcomes directly from generated rollouts. Finally, we demonstrate that GenTac can be successfully trained to generalize to other dynamic team sports, including basketball, American football, and ice hockey.
BibTeX
@misc{rao2026gentac,
  author = {Jiayuan Rao and Tianlin Gui and Haoning Wu and Yanfeng Wang and Weidi Xie},
  title = {{GenTac: Generative Modeling and Forecasting of Soccer Tactics}},
  year = {2026},
  eprint = {2604.11786},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.11786},
}

Loading related content...

Figure