PRISM: A Benchmark for Programmatic Spatial-Temporal Reasoning
This paper introduces PRISM, a large-scale, multilingual benchmark and a comprehensive evaluation framework designed to rigorously assess the spatial-temporal reasoning capabilities of language models in programmatic video generation, revealing a significant gap between code executability and visual spatial coherence.
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 hiring a robot architect to build a moving, animated movie about math or history. You give the robot a script (the prompt), and it writes the code to build the scene.
For a long time, we've been asking: "Did the robot finish building the house?" If the code runs without crashing, we said, "Great job!"
But the paper PRISM argues that's not enough. Just because the house is built doesn't mean the rooms are in the right place, the furniture isn't floating in mid-air, or the walls aren't collapsing on the actors.
Here is the paper explained in simple terms:
1. The Problem: "Running" vs. "Looking Right"
Think of Pixel-level AI (like standard video generators) as a painter who tries to paint a movie frame by frame. They are great at making things look realistic, but they often mess up the logic. A character might walk through a wall, or text might appear upside down.
Programmatic AI (what this paper studies) is different. It's like a robot that writes a precise set of instructions (code) to build the movie. It's supposed to be perfect because it follows rules.
- The Old Test: Did the robot finish writing the instructions? (Yes/No)
- The New Problem: The robot might finish the instructions perfectly, but the instructions might tell the robot to put a giant tree inside a tiny house. The code runs, but the movie looks broken.
2. The Solution: PRISM (The "Stress Test")
The authors created a massive new test called PRISM.
- The Scale: They gathered over 10,000 examples (20 times bigger than any previous test). These cover 437 different topics, from "How to solve an algebra problem" to "The history of lychees."
- The Bilingual Twist: They tested this in both English and Chinese.
- The Human Touch: They didn't just let computers grade the work. Humans checked the "blueprints" to make sure the code actually made sense for the story being told.
3. The New Grading System: The "Funnel"
Instead of just giving a pass/fail grade, PRISM uses a funnel with four layers to catch different types of mistakes:
- The Gatekeeper (Code Reliability): Does the code even run? If it crashes, it's out.
- The Architect (Spatial Reasoning): This is the big one. Does the layout make sense?
- Overlap: Did two objects smash into each other?
- Out-of-Bounds: Did an object float off the screen?
- Leakage: Did a word spill out of its box?
- The Director (Dynamic Complexity): Is the video too boring (like a static slideshow) or too chaotic (too much spinning and jumping)? The test checks if the movement matches the story.
- The Editor (Temporal Density): Is the video moving at a good pace, or is it flashing too fast?
4. The Shocking Discovery: The "Execution-Spatial Gap"
The authors tested 7 of the smartest AI models available (including big names like GPT, Gemini, and Claude).
The Result:
- The Good News: The AIs are getting very good at writing code that runs. Most of the time, the code doesn't crash.
- The Bad News: There is a massive gap between "running" and "looking right."
- On average, 41% of the videos that ran successfully were spatially broken.
- Imagine a robot that can build a car engine perfectly, but then puts the wheels on the roof. The engine runs, but the car doesn't drive.
Key Findings:
- Thinking Longer Doesn't Help: The authors tried letting the AI "think" longer before answering (a feature called "Thinking Mode"). It didn't fix the spatial problems. The AI just got more confident in its wrong answers.
- Too Much Action is Bad: When the AI tried to make the video too exciting with lots of movement, the layout fell apart.
- Language Matters: The AI struggled differently with English vs. Chinese, often making more layout errors with Chinese text.
5. The Bottom Line
The paper concludes that we can no longer just ask, "Does the code run?" We have to ask, "Does the code create a logical, organized world?"
Currently, even the smartest AIs are like talented but clumsy stagehands. They can follow the script to turn the lights on and move the props, but they often forget to check if the props are blocking the actors' faces or if the scenery is falling over. PRISM is the new rulebook to force them to learn how to be better stage managers.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.