TL;DR
Imagine booting up a sprawling strategy game like Civilization V with no tutorial, no manual, and no idea what any of the icons mean—just raw pixels on a screen. Researchers have built the Evolving Pixel-Based Game Agent (EPGA), an AI framework that learns to play complex, open-ended games entirely from scratch by poking around, discovering interactive objects, and writing its own playbook in real time. Remarkably, this "zero-prior" agent beats state-of-the-art AI baselines even when those rivals are given human-annotated cheat sheets.
What Problem Does This Paper Address?
Teaching AI to master dynamic, long-horizon environments is a stepping stone toward general-purpose autonomous agents. Today, we mostly rely on two paradigms, both of which struggle when the rules or interfaces change:
- Reinforcement Learning (RL): Requires engineers to painstakingly define state spaces, action spaces, and reward functions. If a game updates its UI or introduces a new unit type, the rigid policy breaks, forcing costly retraining.
- LLM/VLM Workflow Agents: Rely on human-crafted prompts, static APIs, or pre-annotated UI libraries. In complex strategy games—where new cards, tech trees, and menus appear procedurally—encountering an unfamiliar button often triggers a cascading failure or causes the agent to "stall" in repetitive loops.
The authors ask: Can an agent start with raw RGB pixels and an empty memory, autonomously discover how the world works, and build long-term strategies without any human hand-holding?
Methods
Instead of using a Vision-Language Model (VLM, specifically GPT-4o) merely to look at a frame and guess the next click, EPGA places the VLM at the center of a closed-loop system alongside a CLIP visual encoder and four synergistic modules:
- Object Discovery Module: Uses template matching to spot known UI elements and prompts the VLM to hypothesize new interactive coordinates. The agent "probes" candidates by clicking them; if the screen changes meaningfully and passes a Structural Similarity (SSIM) novelty check, the cropped visual patch is saved. It even chains known objects with new ones to unlock "conditional" interactions (like playing a card before targeting a monster).
- Structured Memory: Acts as the system's experience backbone, maintaining four SQLite repositories: verified Objects, executable Actions (with fitness scores), CLIP-indexed Action Clusters (grouping similar game states), and Monte Carlo Tree Search (MCTS) Trees for multi-step planning.
- Action Update Module: Balances exploitation and exploration using a modified Upper Confidence Bound for Trees (UCT) formula. What's novel here is a feasibility-aware penalty—it penalizes actions whose required objects aren't currently visible on screen, suppressing invalid clicks. Successful exploratory sequences are named by the VLM and merged into memory, while high-trial, low-success actions are pruned.
- Game Process Tracking: A global observer that detects major phase shifts (e.g., "Defeated the monster and obtained cards"). Actions that trigger phase transitions get boosted fitness scores. Furthermore, the system dynamically throttles object discovery vs. action learning—keeping a tight ratio of 5–6 candidate actions per object—to prevent combinatorial explosion.
Datasets
Rather than static datasets, EPGA is evaluated live in two structurally distinct, commercial strategy games via raw 1280×720 pixel streams with zero internal API access:
- Slay the Spire: A roguelike deck-builder featuring procedural encounters and combinatorial card synergies (Ironclad character, Ascension 0).
- Civilization V: A classic 4X strategy game characterized by dense UI panels, partial observability, and multi-hour planning horizons (Russia, Standard Earth map, Prince difficulty).
Key Insights and Ideas
- Handcrafted priors can actually bottleneck an agent: You would expect an agent given a curated list of 46–59 annotated UI elements and descriptions to win easily. Instead, prior-assisted baselines hit a ceiling because procedurally generated games inevitably introduce uncatalogued states, causing static libraries to stall. Continuous discovery beats static knowledge.
- Clicking valid buttons $\neq$ having a strategy: Baseline UI agents like UI-TARS-1.5 achieved a 92% valid click rate in Civilization V (when given priors), yet survived only 11 turns. Without long-term memory and phase tracking, high mechanical executability just means clicking menus aimlessly.
- Unsupervised tactics emerge naturally: Without being told what "offense" or "research" is, EPGA’s action clustering organically formed recognizable strategic routines—like chaining Bash and Strike combos in Slay the Spire, or consulting the in-game Civilopedia and tech trees in Civilization V.
Key Results
Evaluated across 5 independent runs per game, EPGA ("Zero Priors") outperformed six competitive baselines (including GPT-4o, Claude 3.7, CRADLE, Bottom-Up Agent, and SAG-Agent), even when those baselines were given human-curated object libraries:
- Slay the Spire: EPGA cleared 16.00 floors with an in-game score of 109.00 and a 98.73% Execution-Responsive Rate (ERR, the percentage of actions causing meaningful state changes). The strongest prior-assisted baseline (SAG-Agent*) plateaued at 15.67 floors and a score of 104.00.
- Civilization V: EPGA survived 113.33 turns and unlocked 15.33 technologies (94.31% ERR), beating SAG-Agent* (107.33 turns, 13.33 techs). Without priors, baseline models collapsed almost completely (e.g., Claude 3.7 and UI-TARS-1.5 scored 0 turns and 0 technologies).
- Cost: EPGA consumed an average of $2.93 (Slay the Spire) and $3.81 (Civ V) in LLM API tokens per 100 steps—comparable to top agentic baselines.
Limitations and Future Work
- Growing interaction overhead: Despite pruning and action-object throttling, exploration efficiency is still constrained as the interaction space balloons over very long horizons.
- No "what-if" thinking: EPGA learns reactively from visual feedback and lacks explicit retrospective or counterfactual reasoning (e.g., realizing a lost battle was caused by a bad deck-building choice three floors ago).
- Future directions: The authors plan to integrate counterfactual reasoning and adaptive exploration scheduling so agents can reorganize their own knowledge bases more efficiently in unseen environments.
Summary updated