← Latest papers
🤖 machine learning

Text-to-Stage: Spatial Layouts from Long-form Narratives

This paper introduces "Text-to-Stage," a method that leverages a combination of rejection SFT with Best-of-N sampling and GRPO-based reinforcement learning to enable language models to infer complex spatial stage layouts from unstructured long-form narratives, demonstrating significant improvements in spatial reasoning and alignment with human preferences over baseline models.

Original authors: Jefferson Hernandez, Swarnadeep Saha, Chenxi Whitehouse, Sanjeel Parekh, Calvin Murdock, Yuliang Li, W. Owen Brimijoin, Vamsi Krishna Ithapu, Ishwarya Ananthabhotla

Published 2026-03-19
📖 5 min read🧠 Deep dive

Original authors: Jefferson Hernandez, Swarnadeep Saha, Chenxi Whitehouse, Sanjeel Parekh, Calvin Murdock, Yuliang Li, W. Owen Brimijoin, Vamsi Krishna Ithapu, Ishwarya Ananthabhotla

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 reading a classic novel like Alice in Wonderland or Oliver Twist. As you read, your brain does something magical: it automatically builds a mental movie. You know who is talking, where they are standing in the room, if they are walking closer to the other person, or if they just entered through the back door. You do this without the author ever saying, "Alice stood on the left."

Now, imagine asking a computer to do the same thing. That is the challenge this paper tackles.

The Problem: The Computer is Blind to the Stage

Large Language Models (LLMs) are great at understanding words, but they are often terrible at understanding space. If you ask a standard AI to turn a book chapter into a script, it might tell you who said what, but it will likely get the where and how completely wrong. It might have two characters standing in the same spot, or have a character teleport across the room for no reason.

The authors call this task "Text-to-Stage." They want to turn a wall of text into a structured "stage play" layout, complete with:

  • Scenes: When does the location change?
  • Positions: Who is standing Front-Left, Back-Center, etc.?
  • Movements: Who walks where and why?

The Solution: A "Dramaturgy" Coach

To teach the AI to be a good stage director, the researchers didn't just feed it more books. They gave it a rulebook based on real theater principles.

Think of it like teaching a child to play chess. You don't just say "move the pieces." You teach them the rules: "Knights move in an L-shape," "Don't leave your King exposed."

The researchers created a Deterministic Evaluator (a strict rule-checker) based on "Dramaturgy" (the art of playwriting and directing). This rulebook checks for things like:

  • Proxemics (Personal Space): Important characters should be closer to the "audience" (the front of the stage).
  • Balance: Don't put all the characters on the left side; the stage should look balanced.
  • Economy of Movement: Characters shouldn't run back and forth for no reason. If they move, it must be for a story reason.
  • Continuity: If a character is in the room in Scene 1, they shouldn't vanish in Scene 2 unless they left.

The Training Process: The "Try, Fail, and Learn" Loop

The researchers used a clever two-step training method to teach their model, which they named the Spatializer:

  1. The "Best-of-N" Filter (Rejection SFT):
    Imagine asking a student to write a stage direction. Instead of just accepting the first answer, the AI generates 64 different versions of the scene. The "Dramaturgy Coach" (the rule-checker) grades all 64. It throws away the bad ones (where characters are in the wrong spots) and keeps the best one. The AI then learns by studying that single best example. This is like a teacher showing a student only the "A+" essays, not the "F" ones.

  2. The "Reinforcement Learning" Boost (GRPO):
    Once the AI knows the basics, they let it play a game. The AI tries to generate a layout, gets a score from the Coach, and tries again. It learns to maximize its score by understanding the nuance of the rules. It learns that "moving left is better than moving front-to-back" because that gets a higher score. This is like a video game where the AI levels up by getting more points for following the rules perfectly.

The Results: From Clunky to Cinematic

The team tested their new AI on classic English literature.

  • Before: Standard AI models were like a clumsy stagehand. They would put characters in weird spots, forget who was speaking, or make characters teleport.
  • After: The trained Spatializer acted like a seasoned director. It placed characters in logical spots, kept the stage balanced, and moved them smoothly.

They even tested this with human listeners. They turned the AI's layouts into 3D audio (binaural sound). When people listened to the clips, they consistently preferred the ones made by the Spatializer. They could hear the difference; the story felt more natural and easier to follow.

Why This Matters

This isn't just about making better audiobooks. This technology is a bridge between words and worlds.

  • Video Games: Imagine a game that can take a novel and automatically generate the 3D world and character positions for a cutscene.
  • Virtual Reality: It could help build immersive environments from simple text descriptions.
  • Accessibility: It could help visually impaired people "see" the spatial relationships in a story through sound.

The Bottom Line

The authors built a system that teaches AI to "see" the invisible stage directions in a book. By combining a strict set of theater rules with smart learning techniques, they turned a text-processing robot into a virtual stage director that understands not just what is happening, but where it is happening.

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 →