← Latest papers
🤖 AI

Human-Aligned Procedural Level Generation Reinforcement Learning via Text-Level-Sketch Shared Representation

This paper introduces VIPCGRL, a novel deep reinforcement learning framework that enhances human-aligned procedural level generation by integrating text, level, and sketch modalities through a shared embedding space and contrastive learning to better interpret designer intent and produce controllable, human-like outputs.

Original authors: In-Chang Baek, Seoyoung Lee, Sung-Hyun Kim, Geumhwan Hwang, KyungJoong Kim

Published 2026-07-20
📖 8 min read🧠 Deep dive

Original authors: In-Chang Baek, Seoyoung Lee, Sung-Hyun Kim, Geumhwan Hwang, KyungJoong Kim

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a robot to be a game designer. You want it to build fun, playable levels, but you also want it to understand how you think. This is the world of Procedural Content Generation, where computers automatically create game worlds instead of humans drawing every single wall and monster. For a long time, these robots were like strict math students: they could follow a list of numbers (like "put 50 walls here") perfectly, but they couldn't understand a vague idea like "make it feel spooky" or "draw a path that looks like a snake." They also tended to build levels that felt cold and robotic, lacking the messy, creative flair of a human designer. The big question in this field is: How do we teach an AI not just to follow rules, but to think and create like a human partner?

This paper introduces a new system called VIPCGRL (Vision-Instruction PCGRL) that tries to solve this by giving the AI a "shared language" for different types of instructions. Think of it like teaching a robot to speak three dialects at once: Text (words), Levels (the actual game map), and Sketches (rough drawings). The researchers built a special "translator" that turns all three of these into the same secret code. This allows you to tell the AI to "make a narrow path" using words, or by drawing a quick scribble, or by showing it a finished map, and the AI understands them all as the same idea.

But the real magic isn't just understanding; it's about style. The authors noticed that even when AI follows instructions, the result often looks nothing like something a human would make. To fix this, they gave the AI a new kind of teacher's grade. Instead of just checking if the level is playable, the AI gets a bonus score if its creation looks and feels similar to levels made by real human designers. They tested this on a 2D game environment with 5,000 human-designed levels and 2,500 AI-generated ones. The results suggest that this new method makes the AI's levels much more "human-like" and easier to control with sketches or drawings, without losing the ability to follow specific rules. It's a step toward a future where you and an AI can co-create games together, with the AI understanding your rough sketches and creative vibes just as well as your typed commands.

The Problem: Robots Who Can't "Get" You

Imagine you are playing a video game, and you want to change the level. You might say, "I want a long, winding path with a few monsters hiding in the corners." A traditional game AI might hear "long path" and "monsters," but it might build a path that is technically long but feels boring and straight, or place monsters in spots that make no sense. It follows the math, but it misses the soul of the design.

Current tools for generating game levels (called PCGRL) are great at following strict numbers. If you say "make the map 16x16 tiles," they do it perfectly. But they struggle with two things:

  1. Limited Input: They usually only understand numbers or very specific text. They can't really "see" a rough drawing you made on a napkin.
  2. Robotic Style: Even when they follow the rules, the levels they build often look like they were made by a machine—too perfect, too symmetrical, or just lacking the creative "flair" of a human designer.

The researchers wanted to build an AI that acts more like a creative partner than a calculator. They wanted an AI that could take a text description, a rough sketch, or even a partial level map, and turn it into a new level that feels like it was designed by a human.

The Solution: A Universal Translator for Game Design

The team created VIPCGRL, which stands for Vision-Instruction Procedural Content Generation via Reinforcement Learning. The core idea is to teach the AI to speak three different languages at the same time: Text, Level Maps, and Sketches.

To do this, they built a "Shared Latent Space." Imagine a giant, invisible library where every idea is stored as a unique number code.

  • If you write "a narrow path," the AI turns that text into a code.
  • If you draw a narrow path on a piece of paper, the AI turns that sketch into a code.
  • If you show a map with a narrow path, the AI turns that map into a code.

The magic is that the AI is trained so that the code for "narrow path" is almost identical, no matter if it came from a word, a drawing, or a map. This is done using a technique called Quadruple Contrastive Learning. It's like a game of "find the matching pairs." The AI looks at a text instruction, a level map, a sketch, and the style of the creator (Human vs. AI). It learns to pull things that are similar closer together in its memory and push things that are different further apart.

For example, if you show the AI a text saying "narrow path" and a sketch of a narrow path, it learns that these two codes belong in the same neighborhood. But if you show it a sketch of a "wide open field," it learns that this code belongs in a completely different neighborhood. Crucially, it also learns to tell the difference between a "Human Style" code and an "AI Style" code, so it knows what to aim for.

The Secret Sauce: The "Human-Likeness" Reward

Just having a translator isn't enough; the AI still needs to know what to build. In standard training, an AI gets a reward (a point) only if it follows the rules (e.g., "did you make the path long enough?").

The researchers added a new rule: The Human-Likeness Reward.
Every time the AI builds a level, they compare it to a library of levels made by real humans. They use the shared code system to measure how "close" the AI's level is to a human's level.

  • If the AI builds a level that looks and feels like a human designed it, it gets a bonus point.
  • If it builds something that looks robotic, it gets fewer points.

This encourages the AI to not just follow the rules, but to copy the style of human designers. It's like a student who not only answers the math problem correctly but also writes the solution in the neat, creative handwriting the teacher loves.

What They Found: Better, More Human, and More Flexible

The team tested their system on a 2D game level generation task. They compared VIPCGRL to older methods that only used text or numbers.

1. It Sounds Like a Human (Human-Likeness):
When they measured how much the generated levels looked like human-made ones, VIPCGRL scored significantly higher.

  • In a test called TPKL-Div (which checks small, local patterns like how tiles are arranged), VIPCGRL was much closer to human designs than the old methods.
  • In a test called ViT-Sim (which checks the big-picture look), it also improved.
  • Most importantly, when real humans played the levels and rated them, they preferred the VIPCGRL levels. The humans rated the "Human-Likeness" of VIPCGRL at 4.25 out of 7, compared to 2.90 for the previous best method. The difference was statistically significant, meaning it wasn't just luck.

2. It Understands Sketches and Maps (Multi-Modal Control):
The AI was trained mostly on text instructions, but because of the shared language, it could also take sketches and level maps as input during the test.

  • Even though the AI had never been trained specifically on sketches, it could generate levels based on a drawing.
  • The controllability (how well it followed the instruction) was slightly lower for sketches than for text, but it was still much better than random guessing.
  • This proves that the "shared library" works: the AI can translate a drawing into the same code as a text instruction and build the right level.

3. The Trade-Off:
There was a tiny cost. As the researchers increased the "Human-Likeness" reward (making the AI try harder to look human), the AI became slightly less perfect at following the strict numerical rules (like hitting an exact number of monsters). However, the paper notes this trade-off was very small. The AI stayed very good at the task while becoming much more creative and human-like.

What This Means for the Future

The paper suggests that by teaching AI to understand multiple ways of giving instructions (text, drawings, maps) and by rewarding it for copying human style, we can create tools that are much better for game designers. Instead of just being a calculator that follows orders, the AI becomes a creative partner that understands your vibe.

The researchers admit there are limits. Their "sketches" were computer-generated from maps, not real hand-drawn scribbles from artists. They also note that the system is trained in two steps (first learning the language, then learning to build), which might make it a bit slower to adapt to new, weird situations. But the results show a clear path forward: if we want AI to help us create, we have to teach it to think and feel like a human, not just a robot.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →