TL;DR
This paper introduces a curriculum-guided reinforcement learning (RL) framework to fix the "spatial illiteracy" of text-to-image models. By combining SpatialCritic—an agentic reward model that uses specialized vision tools to verify spatial relationships—with a Compositional Capability Graph for progressive learning, the authors significantly improve a model's ability to follow complex spatial prompts without suffering from the common pitfall of "generalization collapse."
What Problem Does This Paper Address?
Current text-to-image (T2I) models frequently struggle with spatial reasoning, often failing to place objects correctly (e.g., "left of," "behind," or "occluded by"). While researchers have tried using RL to align these models, they face two major hurdles:
- Unreliable Rewards: Existing reward models are either "black boxes" (regression-based) that lack geometric understanding or generative VLMs that hallucinate and struggle with fine-grained details like depth and occlusion. This leads to generalization collapse, where a model improves on specific training benchmarks but performs worse on real-world, out-of-domain (OOD) prompts (see Figure 1).
- Lack of Progression: Most training setups throw complex, multi-constraint prompts at the model immediately, rather than teaching it foundational skills (like counting or depth perception) first.
Methods
The authors propose a two-pronged solution:
1. SpatialCritic: The Agentic Reward Model
Instead of a single neural network guessing a score, SpatialCritic acts as an agent. It decomposes a prompt into atomic spatial claims and uses a "spatial perception harness"—a toolbox of specialized vision models (detectors, segmentors, depth estimators)—to verify them.
- Agent–Harness Alignment: The agent is trained via Reinforcement Learning with Verifiable Rewards (RLVR) to select the most efficient tools and integrate their evidence accurately, penalizing excessive token use to keep the reasoning concise.
- Verification Modes: It uses "Skills" (fixed tool routines) for common relations and "Agent-planned" tool use for novel, complex compositions (see Figure 3).
2. Curriculum Learning via CCG
The authors organize spatial tasks into a Compositional Capability Graph (CCG). This graph maps out how complex skills (like "Layout") depend on foundational ones (like "Counting" and "Position"). The training process follows a "Mastery-guided" progression: the model only moves to complex tasks once it masters the basics, with periodic reviews to ensure it hasn't forgotten earlier skills.
Datasets
- SpaRW-Eval: A new, large-scale spatial preference dataset (5,572 pairs) used to evaluate reward model accuracy.
- Spatial Preference Dataset: A training set constructed using "counterfactual perturbations"—taking a prompt and slightly changing a spatial relation to create a clear positive/negative pair for the agent to learn from (see Figure 4).
- Evaluation Benchmarks: The T2I models were tested on GenEval, TIIF-Bench, UniGenBench++, and SpatialGenEval.
Key Insights and Ideas
- Tools Beat Intuition: Pure VLMs often "hallucinate" spatial success. By forcing the reward model to use grounded tools (like a depth map), the feedback becomes objective and verifiable.
- Efficiency Matters: By incorporating a token-budget penalty in the agent's RL training, the authors created a reward model that is not just accurate, but also faster and more focused, avoiding irrelevant tool calls.
- Compositional Learning: The "aha moment" here is treating spatial reasoning as a hierarchy. You can't expect a model to get a complex "occluded layout" right if it hasn't mastered simple "depth" and "topology" independently.
Key Results
- Superior Accuracy: The 8B-parameter SpatialCritic achieved 95.1% verification accuracy on SpaRW-Eval. Remarkably, it outperformed the 320B-parameter GLM-5.3-Flash, despite being 40x smaller.
- T2I Alignment: Using this framework to fine-tune Stable Diffusion 3.5-Medium raised its average score from 78.4 to 83.9. On the BAGEL model, scores improved from 83.2 to 86.5.
- Robustness: The agentic approach significantly reduced hallucinations in the reward process, leading to more reliable preference judgments compared to standard VLM judges (see Figure 6).
Limitations and Future Work
The authors note a few areas for improvement:
- Fixed Tooling: The current system relies on a fixed set of vision tools. Future work could explore how the agent adapts to new or updated tools.
- Tool Failure: The model's robustness to temporary tool failures or noisy outputs from the vision toolbox remains an open question.
- Cross-Tool Transfer: Investigating how an agent trained on one set of tools might generalize to a different "harness" is a promising research direction.
Summary updated