Mage: Multi-Axis Evaluation of LLM-Generated Executable Game Scenes Beyond Compile-Pass Rate
The paper introduces "Mage," a multi-axis evaluation protocol that reveals compile-pass rates are misleading for LLM-generated game scenes, demonstrating that while direct natural language-to-code generation yields higher runtime success, structurally conditioning the input on intermediate representations is essential for producing functionally faithful and domain-compliant executable artifacts.
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 asking a very talented but slightly literal-minded robot chef to cook a complex dish based on a description you give it.
The Problem: The "Passing Grade" Trap
In the world of AI coding, the standard way to check if a robot did a good job is to see if the code "compiles." Think of compilation like checking if the ingredients are all in the pantry and the recipe book is open. If the robot can open the book and find the words, it gets a "Pass."
The paper argues that for making video game scenes, this "Pass" is a lie. A robot can write code that compiles perfectly (the ingredients are there) but results in an empty, boring room with no game logic (the dish is just a pile of raw flour). The paper calls this the "Compile-Correctness Divergence." Just because the code runs without crashing doesn't mean it actually does what you asked for.
The Experiment: The "Mage" Test
To fix this, the researchers built a new test called Mage (Multi-Axis Evaluation). Instead of just checking if the code runs, they check four things:
- Compile Success: Does the code open without errors?
- Runtime Success: Does the game actually start and run?
- Structural Fidelity: Did the robot build the right things? (e.g., Did it put a player character and a door in the room?)
- Mechanism Adherence: Does the game actually work? (e.g., If the player touches the door, do they win?)
They tested this on 26 different mini-game concepts (like "collect all the coins" or "escape the maze") using four different AI models. They tried two ways of giving instructions:
- Method A (Natural Language): Just telling the AI, "Make a game where you collect coins."
- Method B (Structured IR): Giving the AI a detailed, technical blueprint (an "Intermediate Representation") of exactly what the game needs, down to the specific code blocks and physics settings.
The Surprising Results
- The "Blind" Approach (Method A): When the AI just got a simple description, it was great at making code that ran. About 43% of the time, the game would start up. However, the games were empty shells. They had no coins, no doors, and no winning conditions. The "Mechanism Adherence" score was near zero. It was like a chef who successfully turned on the stove but served you an empty plate.
- The "Blueprint" Approach (Method B): When the AI got the detailed blueprint, the success rate of the game starting dropped significantly (to about 14-21%). The AI got confused by the complex instructions and made more mistakes. BUT, when the game did start, it was perfect. It had the right characters, the right items, and the right rules. The "Mechanism Adherence" score jumped to nearly 100%.
The "Granularity" Surprise
The researchers also wondered if they needed to give the AI the entire blueprint (including invisible things like camera angles and lighting) or just the "behavior" part (the logic of how the game plays).
They found that it didn't matter. Whether they gave the AI the full blueprint or just the behavior part, the results were statistically identical. The AI hit a "saturation point" where giving it more details didn't help it understand the game any better.
The Three Reasons Why It Fails
The paper breaks down why the AI struggles with these blueprints into three simple factors:
- Domain Completeness: Does the AI have enough info? (The blueprint helps here).
- API-Mapping Adequacy: Can the AI translate the blueprint's technical terms into the game engine's language? (The AI often gets this wrong, mixing up "public" and "private" settings).
- LLM Execution Fidelity: Does the AI actually follow the instructions correctly? (This depends heavily on how smart the specific AI model is; the bigger models did much better than the smaller ones).
The Takeaway
The paper concludes that if you only look at whether code compiles, you are being fooled. You might think the AI is doing a great job because the code runs, but it might be building nothing. To truly evaluate AI in complex fields like game development, you need a multi-axis test that checks if the final product actually works and looks like what you asked for, not just if the code is error-free.
They have released their "kitchen" (the benchmark, the blueprints, and the test logs) so other researchers can verify these results and build better AI chefs.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.