Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Artif. Intell.

Sec. Logic and Reasoning in AI

This article is part of the Research TopicCausal AI: Integrating Causality and Machine Learning for Robust Intelligent SystemsView all articles

Tracing Strategic Divergence: Archetypal and Counterfactual Analysis of StarCraft II Gameplay Trajectories

Provisionally accepted
Jie  ZhangJie ZhangWeilong  YangWeilong Yang*
  • Academy of Military Sciences, Beijing, China

The final, formatted version of the article will be published soon.

To address the challenges of data heterogeneity, strategic diversity, and process opacity in interpreting multi-agent decision-making within complex competitive environments, we have developed TRACE, an end-to-end analytical framework for StarCraft II gameplay. This framework standardizes raw replay data into aligned state trajectories, extracts "typical strategic progressions" using a Conditional Recurrent Variational Autoencoder (C-RVAE), and quantifies the deviation of individual games from these archetypes via counterfactual alignment. Its core innovation is the introduction of a dimensionless deviation metric, |Δ|, which achieves process-level interpretability. This metric reveals "which elements are important" by ranking time-averaged feature contributions across aggregated categories (Economy, Military, Technology) and shows "when deviations occur" through temporal heatmaps, forging a verifiable evidence chain. Quantitative evaluation on professional tournament datasets demonstrates the framework's robustness, revealing that strategic deviations often crystallize in the early game (averaging 8.4% of match duration) and are frequently driven by critical technology timing gaps. The counterfactual generation module effectively restores strategic alignment, achieving an average similarity improvement of over 90% by correcting identified divergences. Furthermore, expert human evaluation confirms the practical utility of the system, awarding high scores for Factual Fidelity (4.6/5.0) and Causal Coherence (4.3/5.0) to the automatically generated narratives. By providing open-access code and reproducible datasets, TRACE lowers the barrier to large-scale replay analysis, offering an operational quantitative basis for macro-strategy understanding, coaching reviews, and AI model evaluation.

Keywords: analytical framework, archetypal path analysis, counterfactualalignment, dimensionless deviation metric, process-level interpretability, StarCraft II

Received: 14 Oct 2025; Accepted: 08 Dec 2025.

Copyright: © 2025 Zhang and Yang. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Weilong Yang

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.