Optimizing Vision-Language Consistency via Cross-Layer Regional Attention Alignment

Yifan Wang, Hongfeng Ai, Quangao Liu, Maowei Jiang, Ruiyuan Kang, Ruiqi Li, Jiahua Dong, Mengting Xiao, Cheng Jiang, Chenzhong LiarXiv 2025 · DOI

Abstract

Vision-Language Models (VLMs) often suffer from "attention drift," where spatial region selection and semantic layer abstraction are poorly coordinated. We present the Consistent Cross-layer Regional Alignment (CCRA) framework, a lightweight (3.55M parameters) approach that synchronizes these dimensions. By employing a three-stage progressive integration strategy—Joint, Semantic, and Regional—CCRA achieves state-of-the-art performance across ten major benchmarks, demonstrating significant improvements in tasks requiring precise regional-semantic alignment like TextVQA and MM-Vet.

Introduction

A fundamental challenge in VLMs is ensuring that the model looks at the correct spatial regions (patches) while simultaneously utilizing the appropriate level of semantic abstraction (layers). Traditional methods often treat Patch-Wise Cross Attention (PWCA) and Layer-Wise Cross Attention (LWCA) as independent processes. This decoupling leads to attention drift: a model might identify the correct object but fail to extract the relevant features because it is querying the wrong layer of the vision encoder. CCRA addresses this by treating layers and patches as a unified sequence for joint optimization.

Methodology

The CCRA framework introduces a novel attention mechanism and a progressive integration pipeline to harmonize visual features with text queries.

Layer-Patch-wise Cross Attention (LPWCA)

LPWCA treats the entire stack of layers and patches as a single unified sequence. This allows the model to directly learn correlations between specific patches at specific depths, answering the query: "Which patch in which layer is most relevant?"

Progressive Attention Integration (PAI)

The features are refined through a three-stage process:

  1. Stage 1 (Joint): Global optimization via LPWCA.
  2. Stage 2 (Semantic): Refined LWCA focusing on semantic depth. A Gaussian smoothing kernel is applied to layer weights to maintain semantic continuity and prevent erratic jumping between distant layers.
  3. Stage 3 (Regional): Final PWCA to lock in spatial consistency.
Overview of the CCRA architecture (a) and the detailed design of the three cross-attention modules (b).

Experimental Setup

CCRA was integrated into the LLaVA-v1.5-7B architecture. Training followed the standard two-stage pipeline: pre-training on LLaVA-LCS-558K and instruction tuning on LLaVA-Instruct-665K. Evaluation spanned ten benchmarks, including GQA, ScienceQA, TextVQA, and MMMU, to assess reasoning, perception, OCR, and robustness.

Results and Discussion

CCRA-enhanced models consistently outperformed baselines. Notably, the model achieved a +4.3 point gain on TextVQA and a +4.9 point gain on MM-Vet compared to MMFuser.

Layer-wise Attention Analysis

Analysis of the attention scores reveals that different types of questions naturally gravitate toward different layers of the CLIP visual encoder. For instance, perceptual questions about color might peak at mid-layers, while complex action-based questions require deeper semantic layers. The Gaussian smoothing in CCRA ensures these transitions are stable.

Layer-wise attention scores for different question types, illustrating how the model adapts its semantic depth based on the query.

Interpretability and Robustness

Qualitative results show that CCRA produces sharper, more focused attention maps. By aligning "where" and "what," the model avoids the noisy, spread-out attention patterns seen in baseline models. This precision translates to higher robustness; the model scored 88.9 on the POPE benchmark, indicating a significant reduction in object hallucination.

Conclusion

The CCRA framework demonstrates that optimizing the coordination between spatial and semantic attention is more effective than simply increasing model scale. With a minimal parameter overhead, CCRA provides a robust, interpretable, and high-performance solution for cross-modal alignment in VLMs. Future work will explore adaptive smoothing mechanisms and scaling to larger foundation models.

Summary updated

BibTeX
@misc{wang2025optimizing,
  author = {Yifan Wang and Hongfeng Ai and Quangao Liu and Maowei Jiang and Ruiyuan Kang and Ruiqi Li and Jiahua Dong and Mengting Xiao and Cheng Jiang and Chenzhong Li},
  title = {{Optimizing Vision-Language Consistency via Cross-Layer Regional Attention Alignment}},
  year = {2025},
  eprint = {2508.00945},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.00945},
}
Figure