Advancing General Multimodal Capability of Vision-language Models with Pyramid-descent Visual Position Encoding
Zhanpeng Chen, Mingxiao Li, Ziyang Chen, Nan Du, Xiaolong Li, Yuexian Zou
TL;DR
This work addresses the misalignment between visual token positions and instruction tokens in vision-language models caused by raster-scan encoding and Rotary Position Embedding (RoPE) decay. It introduces Pyramid-descent Visual Position Encoding (PyPE), which repositions visual tokens in a 2D grid from periphery to center and incrementally expands the central receptive field across layers, enabling multi-granularity perception and reducing reliance on anchor tokens. Extensive experiments across visual question answering and general multimodal benchmarks demonstrate that PyPE consistently improves perception and reasoning capabilities across model sizes, with qualitative analyses showing reduced hallucinations and more continuous attention. The approach is simple, generalizable, and has practical impact for enhancing cross-modal understanding in VLMs, with code available for replication.
Abstract
Vision-language Models (VLMs) have shown remarkable capabilities in advancing general artificial intelligence, yet the irrational encoding of visual positions persists in inhibiting the models' comprehensive perception performance across different levels of granularity. In this work, we propose Pyramid-descent Visual Position Encoding (PyPE), a novel approach designed to enhance the perception of visual tokens within VLMs. By assigning visual position indexes from the periphery to the center and expanding the central receptive field incrementally, PyPE addresses the limitations of traditional raster-scan methods and mitigates the long-term decay effects induced by Rotary Position Embedding (RoPE). Our method reduces the relative distance between interrelated visual elements and instruction tokens, promoting a more rational allocation of attention weights and allowing for a multi-granularity perception of visual elements and countering the over-reliance on anchor tokens. Extensive experimental evaluations demonstrate that PyPE consistently improves the general capabilities of VLMs across various sizes. Code is available at https://github.com/SakuraTroyChen/PyPE.
