Figure 1
Motivation for TRACE in video-based spatial reasoning. (a) An egocentric video paired with a query that requires holistic spatial reasoning. (b) A textual description that vividly captures the room layout needed to solve the question. (c) TRACE encodes meta-context, camera trajectory, and entities, serving as an intermediate reasoning trace for spatial QA with MLLMs.
01Abstract
Abstract
TL;DR
TRACE has a multimodal LLM write down a structured, text-based map of the scene — meta context, camera trajectory and an entity registry — and then answer spatial questions by reasoning over it.
Existing Multimodal Large Language Models (MLLMs) struggle with 3D spatial reasoning, as they fail to construct structured abstractions of the 3D environment depicted in video inputs. To bridge this gap, drawing inspiration from cognitive theories of allocentric spatial reasoning, we investigate how to enable MLLMs to model and reason over text-based spatial representations of video. Specifically, we introduce Textual Representation of Allocentric Context from Egocentric Video (TRACE), a prompting method that induces MLLMs to generate text-based representations of 3D environments as intermediate reasoning traces for more accurate spatial question answering. TRACE encodes meta-context, camera trajectories, and detailed object entities to support structured spatial reasoning over egocentric videos. Extensive experiments on VSI-Bench and OST-Bench demonstrate that TRACE yields notable and consistent improvements over prior prompting strategies across a diverse range of MLLM backbones, spanning different parameter scales and training schemas. We further present ablation studies to validate our design choices, along with detailed analyses that probe the bottlenecks of 3D spatial reasoning in MLLMs.
+7.54VSI-Bench average over Direct prompting with Gemini 3 Pro (52.61 → 60.15)
5/5MLLM backbones on which TRACE has the best VSI-Bench average of all prompting methods
+2.39OST-Bench average over Direct prompting with MiMo-VL-7B (62.65 → 65.04)
1 passMap and answer come from a single generation — no fine-tuning, no extra 3D inputs
02Method
Write the map first, then reason over it
People do not answer spatial questions by scanning individual frames: we build an allocentric representation of the scene and reason about its layout — and such a representation can be described in text alone. TRACE asks the MLLM to make it explicit before answering.
InputEgocentric video V and question Q
Spatial DescriptorP(๐ข | V, Q)
TRACE๐ข = ⟨โณ, ๐ฏ, โฐ⟩
Reasoning ParserP(A | ๐ข, V, Q)
OutputAnswer A
Both factors are produced in one generation pass, like a structured chain of thought. Writing ๐ข loads the context with a “spatial cache” of the environment, which the model then queries — computing Euclidean distances between entity coordinates or traversing trajectory nodes — to ground its answer.
Interactive
Anatomy of a TRACE
Reference example adapted from Appendix A of the paper (approximate meters). Meta_Context values are filled in for illustration.
A TRACE is one YAML document with three sections. Pick a component above, or hover an entry to see where it lives on the map.
Meta Context fixes a room-aligned frame: the origin [0, 0] is the observer's starting position and +Y follows the most salient straight structure of the room rather than the camera's initial heading, so the model does not lose track of its own coordinate system.
Trajectory reconstructs the observer's path as timestamped steps, each with an estimated position [x, y], one of eight cardinal headings and an action note — so route and order questions can be answered by traversing the map instead of relying on transient visual memory.
Entity Registry lists every object individually (chair_01, chair_02, …) with a first-seen time, a visual signature, metric [x, y] estimates and relations to nearby entities — much finer than the 10 × 10 grid of a cognitive map.
Meta_Context:room_topology:"rectangular bedroom"grid_alignment:"+Y along the left wall, toward the far wall"initial_camera_heading:"NW (-X,+Y)"Trajectory:# Track movement relative to the ROOM GRID, not just camera view.-step:0time:"0s"pos:[0.0,0.0]facing:"NW (-X,+Y)"action:"Standing near entrance, panning across the room"-step:1time:"4s"pos:[0.0,1.8]facing:"North (+Y)"action:"Moves forward along the main room axis"-step:2time:"8s"pos:[0.2,3.5]facing:"East (+X)"action:"Turning right to inspect bedside area"Entity_Registry:# The Map. Coordinates are strictly [x, y] in meters.-id:"door_01"category:"door"first_seen_at:"0s"state:"open"estimated_pos:[0.8,0.0]approx_size:[0.9,2.1,0.1]visual_signature:"White hinged door with silver handle"spatial_relation:"At the entrance boundary of the bedroom"-id:"bed_01"category:"bed"first_seen_at:"5s"estimated_pos:[1.8,2.8]approx_size:[1.6,2.0,0.6]orientation:"Headboard against +X wall"visual_signature:"Double bed with white sheets and dark frame"spatial_relation:"Against the right wall, beside nightstand_01"-id:"nightstand_01"category:"nightstand"first_seen_at:"7s"estimated_pos:[1.9,2.0]approx_size:[0.5,0.6,0.4]visual_signature:"Small wooden bedside table"spatial_relation:"In front of bed_01 near the headboard"-id:"trash_bin_01"category:"trash_bin"first_seen_at:"10s"estimated_pos:[-1.3,2.4]approx_size:[0.3,0.4,0.3]visual_signature:"Black cylindrical trash bin"spatial_relation:"Near the left wall below desk_01"
Figure 2
Illustration of TRACE. We construct TRACE by aligning a global coordinate system with the room layout and geometry, logging the camera trajectory across temporal steps, and registering visible objects with key attributes, estimated positions, and spatial relations. The key prompts used to guide MLLMs to generate this intermediate reasoning trace are also shown.
03Results
Consistent gains across backbones and benchmarks
We compare TRACE with Direct answering and four prompting strategies — Chain-of-Thought (CoT), Tree-of-Thought (ToT), Least-to-Most (LtM) and Cognitive Map (CM) — keeping the prompting scaffold identical and varying only the method-specific instructions.
TRACE vs. Direct prompting
DirectTRACEAverage accuracy
VSI-Bench
Gemini 3 Pro proprietary52.61 → 60.15+7.54
o3 proprietary51.15 → 54.08+2.93
GLM-4.5V open weights37.33 → 45.01+7.68
Qwen2.5-VL-72B open weights36.28 → 39.38+3.10
MiMo-VL-7B open weights39.79 → 41.42+1.63
OST-Bench
Gemini 3 Pro proprietary59.22 → 60.42+1.20
MiMo-VL-7B open weights62.65 → 65.04+2.39
3040506070
Full results
Per-task scores for every prompting method. Pick a benchmark and a base model.
Figure 3
Performance gains over Direct prompting on VSI-Bench across model architectures and parameter scales.
Reading the results
Generic prompting can backfire. CoT lowers Qwen2.5-VL-72B from 36.28 to 29.78 on VSI-Bench, whereas TRACE raises it to 39.38.
Ahead even when everything helps. Gemini 3 Pro benefits from every structured strategy, and TRACE still leads with 60.15 against 59.72 for the runner-up, Cognitive Map.
Multi-turn settings. On OST-Bench, existing prompting strategies give only marginal gains, while TRACE adds +1.20 on Gemini 3 Pro and +2.39 on MiMo-VL-7B, where spatial prompts (CM, TRACE) beat linguistic ones (CoT, ToT, LtM).
Known limitation. As a static global map, TRACE can hurt some agent-state predictions: position judgement on Gemini 3 Pro drops from 71.43 to 54.29.
04Analysis
What makes TRACE work — and where MLLMs still struggle
Prediction settings · Table 3
Building the map is part of the reasoning
The same MLLM writes TRACE, which is then used in one pass (one-stage), fed back with the video as extra context (two-stage), or given to an LLM on its own (text-only).
Gemini 3 Pro
Video direct52.61
One-stage60.15
Two-stage58.52
Text-only52.27
Qwen2.5-VL-72B
Video direct37.58
One-stage38.92
Two-stage32.85
Text-only31.11
One-stage beats two-stage on both models: constructing TRACE helps, not just the finished text. With Gemini 3 Pro, text-only TRACE (52.27) is on par with answering from the video itself (52.61).
Representations & ablations · Table 4
A richer text representation of space
Text-only inference with Qwen2.5-VL-72B isolates the representation itself and the contribution of each TRACE component.
Text representation
Cognitive Map21.41
Spatial Caption27.58
TRACE31.11
Ablation
w/o Trajectory29.19
w/o Entity Registry25.87
TRACE beats the Cognitive Map by 9.70 points and spatial captions by 3.53. Dropping the entity registry costs 5.24 points, mostly on object tasks; dropping the trajectory costs 1.92, mostly on distance and order.
Qualitative · Figure 4
Finer-grained than a cognitive map
Asked which object is closest to the dishwasher, a model reasoning over a coarse cognitive map picks the table. TRACE's entity registry records a dining chair tucked under the table on the side facing the dishwasher, which yields the correct answer.
“The CM lacks the 3D granularity required for many spatial reasoning tasks.”
Decomposition · Figure 5
Separating perception from reasoning
In the text-only setting, one MLLM writes TRACE (Spatial Descriptor) and another answers from it (Reasoning Parser).
Against Gemini 3 Pro on both sides (52.27), swapping in Qwen2.5-VL-72B as the descriptor costs more (36.11) than swapping the parser (40.86). Within Qwen, shrinking the descriptor from 72B to 7B barely matters (31.11 → 29.08), while shrinking the parser does (31.11 → 24.06).
Token efficiency · Table 10
What the map costs
Writing TRACE adds output tokens, and how many depends on the backbone. On MiMo-VL-7B and GLM-4.5V it is cheaper than ToT and LtM while scoring higher; on Gemini 3 Pro, o3 and Qwen2.5-VL-72B it is the most token-intensive method.
Average output tokens
Method
GLM-4.5V
MiMo-VL-7B
Qwen2.5-VL-72B
o3
Gemini 3 Pro
Direct
405
337
3
4
334
CoT
568
579
130
76
480
ToT
1,080
1,133
309
352
451
LtM
990
1,097
230
220
572
CM
722
724
225
81
403
TRACE
968
738
756
435
844
Explicitly writing a structured map loads the context with a spatial cache; making these traces more compact is left to future work.
Cross-environment · Figure 6
Robust across scene sources
Stratifying VSI-Bench by its underlying datasets — ARKitScenes, ScanNet and ScanNetPP — TRACE beats Direct prompting in 14 of 15 backbone × source combinations, so its gains are not tied to one type of environment.
Limitations
TRACE is a static allocentric representation, which can decouple it from the fast egocentric updates needed for precise agent-state tracking in multi-turn settings.
For a fair comparison the representation is generated by the MLLM itself; specialized visual expert models could make the scene structure more accurate.
Looking ahead
A streaming TRACE that incrementally updates the trajectory and entity registry as new observations arrive.
Internalizing TRACE-style reasoning through training, using TRACE to build supervision for fine-tuning and reinforcement learning.
Compact traces for low-latency embodied agents, and tasks beyond QA such as navigation, planning and manipulation.
05Use TRACE
Run TRACE on your own MLLM
TRACE is training-free: a system prompt that defines the room-aligned frame and the YAML schema, plus a short user prompt. This is the prompt listed in Appendix A of the paper.
Set the system promptFill {POST_PROMPT} with the numerical-answer or multiple-choice instruction.
Send the video and the questionAppend the question, plus the options for multiple-choice questions, to the user prompt.
Parse the last lineThe model writes its TRACE first and ends with Answer: `X`.
You are an expert specialized in solving spatial understanding questions using text descriptions of egocentric video sequences.
You are given:
- an egocentric video of an indoor environment,
- a question about that video.
You need to firstly generate a structured "Textual Representation of Allocentric Context" derived from the egocentric video, and then answer the question as accurately as possible.
HOW TO GENERATE THE TEXTUAL REPRESENTATION OF ALLOCENTRIC CONTEXT:
1. Coordinate System Rules (Room-Aligned Allocentric Frame)
- Origin: the camera starting position is exactly [0.0, 0.0] on the floor plane.
- Major Axes (+Y / +X): Align the coordinate system with the dominant walls or floor grid of the room rather than the camera's initial viewing direction:
- define '+Y' along that dominant structural direction;
- define '+X' as the perpendicular rightward direction in the floor plane.
- Units are approximate meters.
- Maintain one globally consistent coordinate frame throughout the video. If the camera moves into another room, preserve the same global frame rather than resetting coordinates.
2. Meta-Context Rules
You must infer and report:
- room_topology: the overall spatial structure of the observed environment, such as 'rectangular bedroom', 'L-shaped office', or 'narrow hallway connected to kitchen'
- grid_alignment: the structural cue used to define the allocentric axes
- initial_camera_heading: the camera's initial facing direction relative to the room-aligned grid
3. Trajectory Rules
You must log the camera path continuously. Output a trajectory step for every significant camera movement.
- step: Sequential ID.
- time: Timestamp of the step (e.g., "2s")
- pos: Estimated [x, y] of the camera.
- facing: Cardinal direction and axis (e.g., "North (+Y)").
- action: Short description of the camera motion or viewpoint change
4. Entity Registry Rules
You must register every visible entity individually. Never group objects. For each entity, include:
- id: unique identifier such as chair_01, door_01
- category
- first_seen_at
- estimated_pos: [x, y]
- approx_size: [width, height, depth]
- visual_signature: short appearance-based description for disambiguation
- spatial_relation: at least one relation to a nearby anchor or structure
- optional state when applicable (e.g., door open/closed, drawer open/closed)
- optional orientation when meaningful (e.g., bed headboard against east wall)
Output Format (Strict YAML)
The textual representation must be a single YAML document with three top-level sections: Meta_Context, Trajectory, and Entity_Registry.
Meta_Context:
room_topology: "<room shape/type>"
grid_alignment: "<what +Y/+X is aligned with>"
initial_camera_heading: "<heading relative to room grid>"
Trajectory:
# Track movement relative to the ROOM GRID, not just camera view.
- step: 0
time: "0s"
pos: [0.0, 0.0]
facing: "NW (-X,+Y)"
action: "Standing near entrance, panning across the room"
- step: 1
time: "4s"
pos: [0.0, 1.8]
facing: "North (+Y)"
action: "Moves forward along the main room axis"
- step: 2
time: "8s"
pos: [0.2, 3.5]
facing: "East (+X)"
action: "Turning right to inspect bedside area"
Entity_Registry:
# The Map. Coordinates are strictly [x, y] in meters.
- id: "door_01"
category: "door"
first_seen_at: "0s"
state: "open"
estimated_pos: [0.8, 0.0]
approx_size: [0.9, 2.1, 0.1]
visual_signature: "White hinged door with silver handle"
spatial_relation: "At the entrance boundary of the bedroom"
- id: "bed_01"
category: "bed"
first_seen_at: "5s"
estimated_pos: [1.8, 2.8]
approx_size: [1.6, 2.0, 0.6]
orientation: "Headboard against +X wall"
visual_signature: "Double bed with white sheets and dark frame"
spatial_relation: "Against the right wall, beside nightstand_01"
- id: "nightstand_01"
category: "nightstand"
first_seen_at: "7s"
estimated_pos: [1.9, 2.0]
approx_size: [0.5, 0.6, 0.4]
visual_signature: "Small wooden bedside table"
spatial_relation: "In front of bed_01 near the headboard"
- id: "trash_bin_01"
category: "trash_bin"
first_seen_at: "10s"
estimated_pos: [-1.3, 2.4]
approx_size: [0.3, 0.4, 0.3]
visual_signature: "Black cylindrical trash bin"
spatial_relation: "Near the left wall below desk_01"
Hard Rules
- No omissions: if an object occupies more than 1% of pixels, it must be listed (including partial window/door edges).
- Force coordinates: you must estimate [x,y] for every listed item.
- Exhaustive count: never group items; if there are 6 chairs, I expect 6 entries in the registry.
- Global consistency: trajectory and entity coordinates must agree with one another.
Answer format:
- {POST_PROMPT}
- Do NOT add extra text on the final answer line (no units, no explanations).
Reasoning protocol:
- Read the question and analyze the visual content carefully.
- Generate the textual representation of allocentric context as required to determine spatial relations and approximate distances.
- You may think through the problem internally, but do not show your reasoning.
- Directly provide the final answer in the required format.
Output format:
Structured Textual Allocentric Representation:
Answer: `X`
Now follow this protocol to answer the question below.
# {POST_PROMPT} in the system prompt depends on the question type
POST_PROMPT_NA = "Please answer the question using a single word or phrase enclosed in backticks."
POST_PROMPT_MCA = "Answer with the option's letter from the given choices only, enclosed in backticks."
# Numerical-answer question
prompt = USER_PROMPT + "\n\nQuestion:\n" + question + "\n"
# Multiple-choice question
prompt = (USER_PROMPT + "\n\nQuestion:\n" + question
+ "\n\nOptions:\n" + options_str + "\n")
# The final answer must appear on the last line: Answer: `X`
06Citation
Cite TRACE
Jiacheng Hua, Yishu Yin, Yuhang Wu, Tai Wang, Yifei Huang, and Miao Liu. 2026. Unleashing Spatial Reasoning in Multimodal Large Language Models via Textual Representation Guided Reasoning. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 13616–13637, San Diego, California, United States. Association for Computational Linguistics.
Venue
ACL 2026 Main Conference, Oral · San Diego, July 2–7, 2026
@inproceedings{hua-etal-2026-unleashing,
title = {Unleashing Spatial Reasoning in Multimodal Large Language Models via Textual Representation Guided Reasoning},
author = {Hua, Jiacheng and Yin, Yishu and Wu, Yuhang and Wang, Tai and Huang, Yifei and Liu, Miao},
editor = {Liakata, Maria and Moreira, Viviane P. and Zhang, Jiajun and Jurgens, David},
booktitle = {Proceedings of the 64th Annual Meeting of the {A}ssociation for {C}omputational {L}inguistics (Volume 1: Long Papers)},
month = jul,
year = {2026},
address = {San Diego, California, United States},
publisher = {Association for Computational Linguistics},
url = {https://aclanthology.org/2026.acl-long.620/},
doi = {10.18653/v1/2026.acl-long.620},
pages = {13616--13637},
ISBN = {979-8-89176-390-6}
}
@misc{hua2026unleashingspatialreasoningmultimodal,
title = {Unleashing Spatial Reasoning in Multimodal Large Language Models via Textual Representation Guided Reasoning},
author = {Hua, Jiacheng and Yin, Yishu and Wu, Yuhang and Wang, Tai and Huang, Yifei and Liu, Miao},
year = {2026},
eprint = {2603.23404},
archivePrefix = {arXiv},
primaryClass = {cs.CV},
url = {https://arxiv.org/abs/2603.23404}
}