[Paper Review] STARDATA: A StarCraft AI Research Dataset
STARDATA is a large-scale, high-fidelity dataset of 65,646 StarCraft II replays with full game state recorded every 3 frames, enabling advanced AI research in strategy learning, imitation learning, and partial observability. Built using TorchCraft for cross-platform compatibility and validated via automated heuristics, it is 10x larger than prior datasets and supports diverse tasks from micro-management to macro-economics.
We release a dataset of 65646 StarCraft replays that contains 1535 million frames and 496 million player actions. We provide full game state data along with the original replays that can be viewed in StarCraft. The game state data was recorded every 3 frames which ensures suitability for a wide variety of machine learning tasks such as strategy classification, inverse reinforcement learning, imitation learning, forward modeling, partial information extraction, and others. We use TorchCraft to extract and store the data, which standardizes the data format for both reading from replays and reading directly from the game. Furthermore, the data can be used on different operating systems and platforms. The dataset contains valid, non-corrupted replays only and its quality and diversity was ensured by a number of heuristics. We illustrate the diversity of the data with various statistics and provide examples of tasks that benefit from the dataset. We make the dataset available at https://github.com/TorchCraft/StarData . En Taro Adun!
Motivation & Objective
- To address the lack of large-scale, high-fidelity, and standardized StarCraft AI datasets suitable for diverse machine learning tasks.
- To overcome limitations of raw replays, such as slow reconstruction, OS dependency, and version incompatibility.
- To enable efficient and portable access to full game state data for training and benchmarking AI agents.
- To support a wide range of AI research tasks, including inverse reinforcement learning, forward modeling, and strategy classification.
- To provide metadata for key gameplay events like battles and openings to accelerate task-specific research.
Proposed method
- Extracted full game state data from 65,646 human replays using TorchCraft, which standardizes access across platforms and languages (C++, Lua, Python).
- Recorded game state every 3 frames (~8 FPS), ensuring high temporal resolution suitable for micro-management and macro-strategy learning.
- Applied automated validation heuristics to filter out corrupted or non-playable replays, ensuring data validity and representativeness.
- Used Mean-Shift clustering with spatial-temporal normalization to detect battle regions from unit death events, followed by Jaccard-based merging and filtering.
- Performed K-means clustering on normalized unit counts (every 20s for first 8 minutes) to identify canonical opening strategies, using silhouette coefficient for cluster validation.
- Provided structured metadata: battle bounding boxes, durations, and unit type counts per battle, enabling targeted training and evaluation.
Experimental results
Research questions
- RQ1Can a large-scale, high-resolution replay dataset improve performance in deep reinforcement learning and imitation learning for StarCraft?
- RQ2How can battle regions be automatically detected in replays using unit death events and spatial-temporal clustering?
- RQ3What canonical opening strategies can be discovered through unsupervised clustering of early-game unit production patterns?
- RQ4To what extent does dataset diversity and quality impact the generalization of AI agents in StarCraft?
- RQ5Can standardized, cross-platform data access via TorchCraft significantly improve reproducibility and usability in StarCraft AI research?
Key findings
- STARDATA contains 65,646 high-quality, non-corrupted replays, totaling 153.5 billion frames and 496 million player actions, making it 10x larger than the next largest comparable dataset.
- The dataset records full game state every 3 frames, enabling fine-grained analysis of both micro and macro strategies, with consistent temporal resolution across all games.
- Battle detection via Mean-Shift clustering successfully identified 200+ distinct battle regions with high spatial and temporal coherence, validated by heuristic filtering and Jaccard similarity.
- K-means clustering of early-game unit production revealed distinct, interpretable Protoss opening strategies, including Dragoon-heavy, Zealot-heavy, and Dark Templar rush patterns.
- The use of TorchCraft ensured consistent, platform-agnostic data access, enabling identical code for real-time gameplay and dataset-based training.
- The dataset’s diversity is demonstrated by coverage across 100+ maps, 100+ matchups, and a broad range of player strategies, as confirmed by statistical analysis of game metadata.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.