Mitigating Coordinate Prediction Bias from Positional Encoding Failures

Xingjian Tao, Yiwei Wang, Yujun Cai, Yihong Luo, Jing Tang · OpenReview

Introduction

Multimodal Large Language Models (MLLMs) have demonstrated remarkable capabilities in vision-language tasks. However, as these models are applied to high-resolution inputs—essential for tasks like GUI automation and document parsing—they encounter a significant hurdle: precise coordinate prediction. When predicting spatial anchors (e.g., [x, y] coordinates for a button), models often exhibit "coordinate drift," where outputs systematically deviate from the ground truth.

The Problem: Positional Encoding Fragility

The root of this drift lies in the fragility of Visual Positional Encodings (VPEs). At high resolutions, the resulting long sequences of image tokens weaken the VPEs' ability to anchor tokens to specific geometric locations. When these spatial anchors fail, the model does not produce random errors. Instead, it defaults to internal "spurious correlations"—pre-learned numeric tendencies or hallucinated patterns from its training data. For instance, a model might consistently predict coordinates near "1024" regardless of the image content.

Methodology: Vision-PE Shuffle Guidance (VPSG)

To address this, we introduce Vision-PE Shuffle Guidance (VPSG), a training-free, test-time inference strategy. VPSG identifies and suppresses internal biases by contrasting standard model runs with "blinded" runs.

Causal Intervention

VPSG is grounded in a causal framework that decomposes coordinate prediction into two components: a position-conditioned signal (derived from actual image data) and a position-unconditioned signal (representing the model's inherent bias).

Causal diagrams showing the relationship between positional encodings (P), spurious correlations (S), input information (X), and coordinate prediction (Y).

The VPSG Pipeline

The core of VPSG involves a "shuffle" trick. During inference, the model is run normally and then multiple times with the visual positional encodings shuffled. Shuffling destroys spatial context; any coordinate the model predicts in this state represents its inherent, non-image-based bias.

Overview of the VPSG method, showing how shuffled position embeddings are used to identify and mitigate coordinate prediction bias.

VPSG treats these shuffled outputs as "negative evidence." During digit decoding, it subtracts the log-probabilities of the shuffled runs from the normal run, allowing the true, image-supported coordinates to emerge. The process is refined using:

  • Seeds Aggregation: Averaging multiple shuffled runs for a stable bias estimate.
  • Coefficient Decay: Applying stronger guidance to significant digits while tapering off for fine-grained details.
  • Finite-State Machine (FSM): Ensuring the guidance only affects digits to preserve output formatting.

Experimental Evaluation

The method was evaluated on ScreenSpot-Pro, a challenging benchmark for GUI grounding featuring 1,581 high-resolution desktop screenshots. The target UI elements in this dataset are extremely small, occupying an average of only 0.07% of the screen area, making them a rigorous test for spatial precision.

Key Results and Insights

Testing on the Qwen2.5-VL family yielded consistent improvements:

  • Accuracy Gains: On Qwen2.5-VL-3B, VPSG increased overall accuracy from 11.6% to 13.3%.
  • Domain Specificity: Significant gains were observed in text-heavy environments, such as the "Development" category, where accuracy rose from 18.8% to 24.7%.
  • Non-Random Errors: The study confirms that when VPEs are perturbed, MLLMs collapse to a small set of preferred coordinates, proving the existence of systematic directional bias.

Conclusion

VPSG offers a robust, model-agnostic solution for mitigating coordinate drift in high-resolution MLLMs. By leveraging internal biases as negative evidence, it enhances spatial reasoning without the need for costly retraining. Future work will focus on reducing the computational overhead of auxiliary decoding and extending the method to broader spatial reasoning tasks.

Summary updated

BibTeX
@misc{tao2025mitigating,
  author = {Xingjian Tao and Yiwei Wang and Yujun Cai and Yihong Luo and Jing Tang},
  title = {{Mitigating Coordinate Prediction Bias from Positional Encoding Failures}},
  year = {2025},
  eprint = {2510.22102},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.22102},
}
Figure