Revisiting Multimodal Positional Encoding in Vision–Language Models

Jie Huang, Xuejing Liu, Sibo Song, RuiBing Hou, Hong Chang, Junyang Lin, Shuai Bai

TL;DR

Researchers from the Qwen team have systematically decoded why current Vision-Language Models (VLMs) struggle with spatial and temporal reasoning, tracing the issue back to how they encode position. By introducing two "plug-and-play" variants—Multi-Head RoPE (MHRoPE) and MRoPE-Interleave (MRoPE-I)—they ensure that every spatial and temporal axis has access to the full spectrum of frequencies. This leads to significant performance gains in image understanding, video modeling, and visual grounding without changing the underlying model architecture.

What Problem Does This Paper Address?

Most modern Large Language Models (LLMs) use Rotary Positional Embedding (RoPE) to understand the order of words. However, when these models are expanded into Vision-Language Models (VLMs), they have to juggle 1D text, 2D images, and 3D video.

Current approaches to multimodal RoPE usually fall into two traps:

  1. The Flattening Trap: They treat images like a long string of text. This discards the geometric "shape" of the visual data, making it hard for the model to perform spatial reasoning (e.g., "where is the cat?").
  2. The Frequency Trap: They split the embedding's "channels" into chunks for time, height, and width. Because RoPE frequencies decay across channels, this often forces temporal information into high-frequency bands only, which cripples the model's ability to handle long-range dependencies in video.

The authors aim to create a unified, robust positional encoding strategy that works across all modalities while remaining compatible with the pre-trained knowledge of the base LLM.

Methods

The authors deconstruct multimodal RoPE into two core components: Position Design (assigning coordinates) and Frequency Allocation (how those coordinates are mapped to the embedding dimensions).

Comparison of different multimodal RoPE strategies in 3D space.

1. Position Design: The "Spatial-Reset"

The authors discovered that models have a natural "attention sink" at small position IDs (like the start of a sentence). To exploit this, they propose spatial-reset: resetting the spatial coordinates (height/width) for every new image or video frame. This aligns visual features with the LLM’s inherent bias toward small IDs, accelerating visual adaptation and preventing the model from obsessing over irrelevant areas like the top-left corner of images.

2. Frequency Allocation: MHRoPE and MRoPE-I

To solve the "Frequency Trap," they propose two methods to ensure every axis (Time, Height, Width) gets access to both high and low frequencies:

  • Multi-Head RoPE (MHRoPE): This assigns different positional axes to different attention heads. For example, Head 1 might focus on the temporal axis while Head 2 focuses on the vertical axis. Each axis gets the full range of frequencies within its assigned head.
  • MRoPE-Interleave (MRoPE-I): Instead of giving each axis a "chunk" of channels, this method interleaves them in a round-robin fashion (T, H, W, T, H, W...). This ensures a uniform frequency distribution for all dimensions.

Key Insights and Ideas

  • The Attention Sink is Real: Visualizing attention maps showed that standard MRoPE causes the model to obsess over the top-left corner of images. spatial-reset fixes this by making the "start" of every image look like a high-priority position to the LLM.
  • Frequency Matters for Video: By giving the temporal axis access to low-frequency channels (which handle long-range dependencies), the authors significantly improved long-video understanding.
  • Avoid "Diagonal Layouts": Some previous works tried to center spatial coordinates to create symmetry. The authors found this is a "critical flaw" because visual coordinates can eventually overlap with the IDs of generated text tokens, causing "modalities confusion" where the model starts repeating nonsensical text.
  • Preserve Textual Priors: Any change that modifies how the model perceives text positions (like resetting text IDs) hurts performance. The best multimodal RoPE is one that leaves the text-only RoPE logic untouched.

Key Results

The models were trained on approximately 2 million high-quality supervised fine-tuning (SFT) samples and evaluated across a massive battery of benchmarks. The proposed methods, particularly MRoPE-I, consistently outperformed existing state-of-the-art methods:

  • General Image (MMMU): MRoPE-I achieved 53.22, a +2.67% improvement over vanilla RoPE.
  • Document/OCR (ChartQA): A massive jump to 62.12 (vs. 56.84 for vanilla RoPE), showing much better spatial reasoning.
  • Visual Grounding (RefCOCO): Significant gains across the board, with MRoPE-I hitting 80.94 on the validation set.
  • Generalization: The authors proved the method works across different model scales (4B and 8B) and architectures (Qwen2.5-VL and Qwen3-VL).
  • Long Context: When combined with extrapolation techniques like YaRN, MRoPE-I showed much smoother performance gains as context windows scaled up to 256K tokens.

Limitations and Future Work

While MHRoPE is theoretically more scalable for models with many positional axes, it currently lags slightly behind MRoPE-I in performance. The authors suggest this is because head-level partitioning prevents the model from integrating different positional axes within a single head's attention calculation.

Furthermore, while "plug-and-play," these methods do require careful implementation of the interleaved or head-based logic in the attention kernels. Future directions include exploring how these positional encodings could be adapted for even more complex modalities, such as 3D point clouds or specialized medical imaging.

Summary updated

BibTeX
@inproceedings{huang2026revisiting,
  author = {Jie Huang and Xuejing Liu and Sibo Song and RuiBing Hou and Hong Chang and Junyang Lin and Shuai Bai},
  title = {{Revisiting Multimodal Positional Encoding in Vision–Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=sCCF4ygDAw},
}
Figure