Abstract
Procedural Content Generation via Reinforcement Learning (PCGRL) is a powerful tool for game design, yet it often fails to capture the aesthetic nuance and spatial intent of human designers. We present VIPCGRL (Vision-Instruction PCGRL), a framework that aligns text instructions, level layouts, and hand-drawn sketches into a shared latent space. By training a reinforcement learning agent with a human-similarity reward, the system achieves a better balance between functional control and stylistic alignment. Experimental results and user studies demonstrate that VIPCGRL produces levels that more closely match human design patterns compared to existing baselines.
Introduction
Current PCGRL systems suffer from two primary limitations: restricted control modalities and a stylistic mismatch between AI and human designers. Most systems rely on abstract text prompts or numerical values, which fail to convey specific "spatial intent"—the precise arrangement of paths or rooms. Furthermore, RL agents optimized solely for functional tasks often produce "optimal" but unnatural-looking levels. VIPCGRL addresses these gaps by allowing designers to use sketches alongside text and by explicitly rewarding the AI for mimicking human design styles.
Methodology
The VIPCGRL framework operates in a two-stage process: learning a shared representation and subsequent human-aligned policy training.
Shared Latent Space Learning
The system utilizes Quadruple Contrastive Learning to project three modalities—Text, Levels (grid-based), and Sketches (visual abstractions)—into a 64-dimensional embedding space. A fourth dimension, Style, is added to distinguish between human-designed and AI-generated content. The model uses a Multi-positive InfoNCE loss function to pull representations with the same design goal and style closer together while pushing different styles apart.
Human-Aligned Reinforcement Learning
Following the training of the encoders, a Proximal Policy Optimization (PPO) agent is trained. The agent's reward function is a combination of a standard control reward ($r^{ctrl}$), which ensures functional objectives are met, and a Human-Similarity Reward ($r^{sim}$). This similarity reward is calculated as the cosine similarity between the agent's current level and a sampled human-designed level within the shared latent space, encouraging the adoption of human-like local patterns.
Experimental Results
The framework was evaluated using the PCGRL-Jax environment on 2D grid-based tasks. The training data included $D_{human}$ (5,000 human samples) and $D_{AI}$ (2,500 baseline AI samples).
Quantitative and Qualitative Performance
VIPCGRL outperformed baselines (CPCGRL and IPCGRL) in human-likeness metrics, specifically achieving a lower Tile Pattern KL-Divergence (TPKL-Div). This indicates that the local tile distributions in VIPCGRL-generated levels are statistically more similar to human designs.
User Study Validation
A study involving 26 participants confirmed these findings. VIPCGRL was rated significantly higher for "Human-likeness" (3.41) compared to the nearest baseline (2.90) and showed superior alignment with provided instructions.
Discussion and Limitations
A key insight from the research is the trade-off between functional progress and stylistic alignment. As the reward for "human-likeness" increases, the agent's efficiency in hitting exact numerical targets slightly decreases, suggesting that human design is often mathematically "suboptimal" but aesthetically superior.
However, the current implementation uses frozen encoders during the RL phase, which may limit the model's ability to generalize to entirely new or intermediate level states. Future work could explore end-to-end fine-tuning of the encoders alongside the RL policy to improve robustness.
Conclusion
VIPCGRL successfully bridges the gap between functional procedural generation and human aesthetic intent. By leveraging a multi-modal shared latent space and a similarity-based reward system, the framework provides designers with more intuitive control and produces content that feels more authentic to players.
Summary updated