LeRF: Learning Reference Coordinate Frames for Perspective Taking Reasoning

Bang Xiao, Wenqi Jia, Ozgur Kara, Tiancheng Shen, Yibo Yang, Bolin Lai, Junho Kim, James Matthew RehgarXiv 2026

TL;DR

LeRF (Learning Reference Coordinate Frames) is a novel framework that teaches Vision-Language Models (VLMs) to perform "perspective taking"—reasoning about spatial relations from viewpoints other than the camera's. By learning to self-generate and reason over explicit 2D projected coordinate frames (a "visual scaffold"), LeRF significantly outperforms standard VLMs and rivals specialized 3D perception pipelines on complex spatial reasoning tasks.

What Problem Does This Paper Address?

Most current VLMs suffer from a strong "camera-centric bias." If you ask a model, "Is the cup to the left of the person?" it usually answers based on the cup's position in the image pixels (egocentric), even if the question implies the person's own perspective (allocentric).

Perspective taking is a hallmark of spatial intelligence, essential for robotics and embodied AI. While some researchers try to solve this with full 3D scene reconstruction, these methods are often computationally heavy and prone to "cascading errors"—if the 3D model is slightly off, the reasoning fails entirely. LeRF asks a simpler, more elegant question: Can a VLM learn to draw its own reference frame directly onto a 2D image and use that visual cue to "see" from another perspective?

Figure 1: Motivation of LeRF. Perspective taking requires reasoning with respect to the viewpoint specified by a spatial query. An explicit entity-centered reference frame makes this viewpoint visu- ally accessible, helping VLMs resolve viewpoint-dependent spatial relations and motivating LeRF to learn and reason with self-grounded reference frames.

Methods

LeRF introduces a two-stage inference pipeline that treats perspective-taking as a tool-use problem:

  1. Perspective Requirement & Frame Prediction: Given a query, the VLM first decides if a perspective shift is necessary. If so, it identifies the reference entity (e.g., "the person in the red shirt") and predicts a 2D projected coordinate frame consisting of an origin and three endpoints representing the Front, Left, and Up axes.
  2. Rendering & Reasoning: A lightweight, deterministic renderer overlays these axes onto the image. The VLM then "re-reads" this annotated image to produce a final answer, grounding its spatial reasoning in the visible axes rather than abstract mental rotation.

Training Strategy: * Stage I: Supervised Fine-Tuning (SFT): The model is trained on object and human pose datasets to learn how to ground entities and predict accurate 2D frames. It also learns a "No-Tool-Call" behavior for simple egocentric questions. * Stage II: Reinforcement Learning (RL): Using Group Relative Policy Optimization (GRPO), the model is fine-tuned on spatial VQA datasets. The reward is based solely on the correctness of the final answer, encouraging the model to actually use the frames it draws to improve its reasoning.

Figure 2: Overview of LeRF. The VLM selectively constructs and renders a reference frame for perspective-taking reasoning, or directly reasons from the original image when no frame is needed. LeRF is trained with SFT for frame prediction and RL for reasoning with self-predicted frames.

Datasets

  • Frame Prediction Training: ImageNet3D, Omni6DPose-SOPE, and BEDLAM (human pose).
  • Reasoning Training (RL): MultihopSpatial and SpatialReasoner-RL.
  • Evaluation Benchmarks: OmniSpatial-PT (testing ego, allo, and hypo viewpoints), 3DSRBench (object orientation), and ViewSpatial-Bench (person-perspective tasks).
  • Frame Accuracy Evaluation: EMDB (human views) and OmniNOCS-Objectron (object views).

Key Insights and Ideas

  • 2D is Sufficient: The authors demonstrate that you don't need a full 3D mesh to reason about "left" or "behind." A 2D projection of 3D axes provides enough directional context for most VQA tasks while avoiding the complexity of metric 3D reconstruction.
  • Visual Scaffolding: By externalizing the perspective shift into a rendered graphic, the model transforms a difficult internal "mental rotation" task into a simpler "visual grounding" task.
  • Selective Tool Use: The model successfully learns when to draw a frame. It invokes the tool for ~97% of allocentric/hypothetical queries but only ~3% of egocentric ones, showing it understands the necessity of perspective transformation.
  • Causal Evidence: In a clever ablation, the researchers rotated the predicted frames by 90° during testing. This caused a significant drop in accuracy, proving that the model isn't just ignoring the frames—it is actively relying on those visual cues to reach its conclusions.

Key Results

LeRF-9B (based on Qwen3.5-9B) achieved state-of-the-art results among open-source models:

  • OmniSpatial-PT: Improved accuracy by 6.91 percentage points (pp) on allocentric tasks and 11.08 pp on hypothetical viewpoints compared to its backbone.
  • ViewSpatial-Bench: Surpassed all evaluated proprietary models (like GPT-5.6-Terra) on the P-Obj task.
  • Efficiency: Despite the two-stage process, LeRF-9B is significantly faster and produces shorter reasoning chains than "thinking-heavy" baselines like APC-Qwen3.5-9B, reducing latency by roughly two-thirds.
Tool invocation rates and the effect of frame perturbation on accuracy.

Limitations and Future Work

The authors acknowledge several areas for improvement:

  • Occlusion & Ambiguity: If the reference entity is heavily occluded or lacks a clear intrinsic "front" (like a symmetrical ball), frame prediction becomes unreliable.
  • Static Scenes: The current framework is designed for static images. Extending this to video would require tracking reference frames across time as entities move.
  • Metric Depth: While 2D frames handle directions well, tasks requiring precise 3D distance estimation might still require richer spatial representations.

Future work could involve extending LeRF to dynamic environments and exploring how these self-generated scaffolds could assist in complex robotic manipulation tasks.

Summary updated

BibTeX
@misc{xiao2026lerf,
  author = {Bang Xiao and Wenqi Jia and Ozgur Kara and Tiancheng Shen and Yibo Yang and Bolin Lai and Junho Kim and James Matthew Rehg},
  title = {{LeRF: Learning Reference Coordinate Frames for Perspective Taking Reasoning}},
  year = {2026},
  eprint = {2609.36219},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.36219},
}
Figure