TL;DR
Training game-playing AI agents using imitation learning often fails when the agents encounter unseen environments or level modifications. This paper demonstrates that applying feature-based data augmentation to human demonstrations significantly improves an agent's ability to generalize to new game layouts, achieving up to a 1.6x performance increase over non-augmented baselines without requiring additional human data.
What Problem Does This Paper Address?
Automated playtesting is becoming vital for modern video game production due to the massive scale and complexity of modern games. While Reinforcement Learning (RL) and Imitation Learning (IL) can train agents to play games and find bugs, they suffer from a severe efficiency-generalization trade-off.
IL agents learn quickly from human demonstrations but easily overfit to the exact training environment. When game developers modify a level—shifting the distribution of states and obstacles—the agent experiences a "distributional shift" and fails. Gathering massive human datasets to cover every variation is too costly, and alternatives like domain randomization require access to procedural environment code that isn't always available. The authors address a critical question: How can we make imitation learning agents robust to environment changes using data augmentation on feature-based state spaces?
Methods
The authors use Behavioral Cloning (BC), a standard IL method, as their base algorithm. Instead of augmenting images (which is common in computer vision), they apply augmentations directly to a feature-based state space, which contains both continuous values (like coordinates and cooldowns) and categorical values (like a 3D semantic occupancy map of the surrounding space).
They evaluate 6 distinct feature-based augmentation techniques:
- Gaussian Noise: Adds random noise to continuous features.
- Uniform Noise: Adds uniform random noise within a small range.
- Scaling: Multiplies continuous features by a random scaling factor.
- State-mixup: Creates linear combinations of consecutive states.
- Continuous Dropout: Randomly zeroes out a subset of continuous features.
- Semantic Dropout: Randomly zeroes out categorical values in the local perception map.
Crucially, instead of testing these in isolation, the authors chain up to three augmentations sequentially to find the best combinations. The original dataset is cloned and augmented three times, resulting in a final dataset four times larger than the original.
Datasets
The study utilizes an open-world 3D city simulation environment:
- Training Environment: The agent must navigate a path, press a button to open a building's door, and enter before a timer expires. The training dataset consists of 78 human demonstration episodes (15,380 samples).
- Test Environments: To evaluate generalization, the authors created 4 distinct test environments by modifying the original layout (moving/rotating the goal building, adding up to 17 obstacles, and blocking direct paths), ranging from "easy" to "hard" subjective difficulty.
Key Insights and Ideas
- Chaining is Key: Combining multiple different augmentations sequentially (e.g., Gaussian noise + scaling + state-mixup) yields significantly better generalization than applying any single augmentation type alone.
- Scaling is the MVP: Among individual techniques, scaling continuous features emerged as the most effective single augmentation for boosting performance across different environments.
- Not All Dropouts are Equal: While continuous dropout helped, semantic dropout (zeroing out parts of the agent's local 3D spatial map) severely harmed generalization. Destroying structural categorical data confuses the agent rather than making it robust.
- The Consistency Trade-off: The models that achieved the absolute highest peak performance in specific environments were not the same as the models that consistently beat the baseline across all environments.
Key Results
- Augmented models successfully outperformed the non-augmented baseline across all four unseen test environments.
- The top-performing augmentation combination achieved a mean success rate 1.6 times higher than the baseline.
- On average, mean relative success rates improved by 20% to 80% depending on the test environment's difficulty.
- Six specific multi-augmentation combinations consistently beat the baseline in 4 out of the 5 tested environments.
Limitations and Future Work
- Hyperparameter Sensitivity: The models exhibited high variance (large standard deviations) during training, indicating that performance is highly sensitive to noise levels and dataset sizes.
- Scope of Tasks: The approach was only validated on navigation and simple interaction tasks within a single internal game engine.
- Future Directions: The authors suggest testing these feature-based augmentations across a wider variety of game genres, more complex task types (like combat or inventory management), and alternative observation spaces to build a more universal framework for game AI playtesting.
Summary updated