English

Three-dimensional attention Transformer for state evaluation in real-time strategy games

Machine Learning 2025-01-08 v1 Artificial Intelligence

Abstract

Situation assessment in Real-Time Strategy (RTS) games is crucial for understanding decision-making in complex adversarial environments. However, existing methods remain limited in processing multi-dimensional feature information and temporal dependencies. Here we propose a tri-dimensional Space-Time-Feature Transformer (TSTF Transformer) architecture, which efficiently models battlefield situations through three independent but cascaded modules: spatial attention, temporal attention, and feature attention. On a dataset comprising 3,150 adversarial experiments, the 8-layer TSTF Transformer demonstrates superior performance: achieving 58.7% accuracy in the early game (~4% progress), significantly outperforming the conventional Timesformer's 41.8%; reaching 97.6% accuracy in the mid-game (~40% progress) while maintaining low performance variation (standard deviation 0.114). Meanwhile, this architecture requires fewer parameters (4.75M) compared to the baseline model (5.54M). Our study not only provides new insights into situation assessment in RTS games but also presents an innovative paradigm for Transformer-based multi-dimensional temporal modeling.

Keywords

Cite

@article{arxiv.2501.03832,
  title  = {Three-dimensional attention Transformer for state evaluation in real-time strategy games},
  author = {Yanqing Ye and Weilong Yang and Kai Qiu and Jie Zhang},
  journal= {arXiv preprint arXiv:2501.03832},
  year   = {2025}
}

Comments

9 pages, 5 figures

R2 v1 2026-06-28T20:58:48.989Z