Introduction
Visual reasoning tasks—such as segmenting an object based on complex functional or temporal descriptions—require models to bridge the gap between high-level linguistic queries and low-level pixel data. Current state-of-the-art methods typically rely on discrete token-based visual encoding, which often results in significant information loss regarding spatial and temporal continuity. Furthermore, many models function as "black boxes" through Supervised Fine-Tuning (SFT), lacking transparent reasoning chains and struggling with out-of-distribution generalization.
To address these challenges, we present DT-R1, a reinforcement learning (RL) framework that empowers Large Language Models (LLMs) to act as orchestrators. Instead of directly processing raw visual tokens, the model constructs a structured "Digital Twin" (DT) of the scene and performs iterative reasoning over this high-fidelity representation.
The DT-R1 Framework
DT-R1 utilizes a structured rollout sequence that transforms a visual reasoning problem into a series of verifiable steps. The process begins with an explicit reasoning phase where the LLM analyzes the query to determine necessary information. It then generates a Directed Acyclic Graph (DAG) to plan the execution of specialized foundation models (e.g., SAM2 for segmentation, DepthAnything2 for depth estimation).
The resulting Digital Twin is represented as a structured JSON object containing metadata, depth statistics, and semantic labels. This representation preserves the geometric and temporal detail often lost in tokenization. Following DT construction, the model enters a recurrent reasoning loop, generating executable Python code to perform precise spatial-temporal calculations (e.g., measuring distances or tracking motion trajectories) before providing a final answer.
Reinforcement Learning via GRPO
A key innovation of DT-R1 is its training methodology. Rather than relying on human-annotated reasoning chains, the model is optimized using Group-Relative Policy Optimization (GRPO). The learning process is guided by a dual-component reward system:
- Format Reward: Ensures the model adheres to the structured rollout tags (e.g.,
<think>,<dt_plan>,<execute>) and produces valid, non-circular model plans. - Accuracy Reward: Evaluates the success of Python code execution, the correctness of task identification, and the final output accuracy (e.g., Intersection over Union for segmentation tasks).
This approach allows complex reasoning behaviors to emerge autonomously from the RL process, as the model learns which plans and code executions lead to the highest accuracy.
Experimental Results
DT-R1 was evaluated across a diverse suite of benchmarks, ranging from basic semantic tasks to expert-level temporal reasoning. As shown in the performance metrics below, DT-R1 consistently outperforms existing task-specific models across all levels of complexity.
Key Performance Highlights:
- Superior Generalization: In out-of-distribution testing on the LLM-Seg40K dataset, DT-R1 achieved a 15.6% improvement in gIoU over previous benchmarks, demonstrating the robustness of the Digital Twin approach compared to standard SFT.
- Video Reasoning Excellence: On the JiTBench benchmark, the model improved the region similarity ($\mathcal{J}$ score) by up to 4.5%.
- Unified Architecture: DT-R1 is the first framework to successfully unify segmentation, grounding, VQA, and summarization within a single, unmodified LLM-based system.
Conclusion and Future Work
DT-R1 demonstrates that structured representations and reinforcement learning can overcome the inherent limitations of token-based visual models. By treating the LLM as a manager of specialized tools rather than a direct pixel-processor, the framework achieves state-of-the-art performance and unprecedented transparency in visual reasoning. Future research will focus on reducing the computational overhead of running multiple foundation models and expanding the Digital Twin representation to include multi-modal data such as audio and tactile sensors.
Summary updated