Beyond Sequential Distance: Inter-Modal Distance Invariant Position Encoding

Lin Chen, Bolin Ni, Qi Yang, Zili Wang, Kun Ding +3 more
3/11/2026
cs.CV

Official code: lchen1019/DIPE (13 stars, MIT, last commit 2026-03-12).

Abstract

Despite the remarkable capabilities of Multimodal Large Language Models (MLLMs), they still suffer from visual fading in long-context scenarios. Specifically, the attention to visual tokens diminishes as the text sequence lengthens, leading to text generation detached from visual constraints. We attribute this degradation to the inherent inductive bias of Multimodal RoPE, which penalizes inter-modal attention as the distance between visual and text tokens increases. To address this, we propose inter-modal Distance Invariant Position Encoding (DIPE), a simple but effective mechanism that disentangles position encoding based on modality interactions. DIPE retains the natural relative positioning for intra-modal interactions to preserve local structure, while enforcing an anchored perceptual proximity for inter-modal interactions. This strategy effectively mitigates the inter-modal distance-based penalty, ensuring that visual signals remain perceptually consistent regardless of the context length. Experimental results demonstrate that by integrating DIPE with Multimodal RoPE, the model maintains stable visual grounding in long-context scenarios, significantly alleviating visual fading while preserving performance on standard short-context benchmarks. Code is available at https://github.com/lchen1019/DIPE.

View on arXivView PDF

Code Implementations(1)

lchen1019/DIPEOfficial100%
MIT

This repository is the official implementation for our paper "Beyond Sequential Distance: Inter-Modal Distance Invariant Position Encoding."

130Shell, PythonMar 10, 20267 months agoMIT

Similar Papers

Cite this paper

@article{chen2026beyond,
  title  = {Beyond Sequential Distance: Inter-Modal Distance Invariant Position Encoding},
  author = {Lin Chen and Bolin Ni and Qi Yang and Zili Wang and Kun Ding and Ying Wang and Houwen Peng and Shiming Xiang},
  year   = {2026},
  eprint = {2603.10863},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.10863v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.10863.svg)](https://codeofpaper.com/paper/2603.10863)

Discussion