Manuscript Offprint

arXiv:2611.06844

Where to Connect? Boosting MLLMs via Dynamic Gated Pathways across ALL ViT and LLM Layers

Yingying Yan, Jiaqi Tang, Wei Wei, Qianzhou Wang, Lei Zhang, Jianmin Chen, Yuyang Xia, Botong Geng, Jinjian Wu, Qifeng Chen

Abstract

A central yet under-explored question in Multimodal Large Language Models (MLLMs) is where to connect—how visual information from a hierarchical vision encoder should be wired into the layer-wise semantics of a large language model. Mainstream MLLMs inject a fixed single-layer visual representation into the LLM and treat all LLM layers as a single consumer, ignoring that different layers demand different visual granularities. Recent multi-layer fusion methods either compress hierarchical features on the encoder side or rely on predefined sparse or hierarchical layer-to-layer connections, and therefore stop short of modeling adaptive cross-layer interactions between the ViT and LLM hierarchies. We address this gap with DGP (Dynamic Gated Pathways), a routing mechanism that establishes all-to-all connections between every ViT layer and every LLM layer, with each LLM layer dynamically gating its preference over visual layers conditioned on its own semantic state. Built on top of LLaVA-1.5-7B and 13B, DGP delivers consistent gains over the LLaVA-1.5-7B baseline (e.g., +4.2 on SQAI^{I}, +3.3 on MM-Vet, +3.1 on VizWiz and LLaVAW^{W}) and surpasses prior multi-layer visual fusion methods on most benchmarks. Layer-wise routing analyses further show that different LLM layers do select different visual granularities on demand, supporting both the effectiveness and interpretability of the proposed dynamic gated pathways. The code is available: https://github.com/YingyingYan1/DGP.

1 Introduction

Multimodal Large Language Models (MLLMs) [3, 16, 19, 21] encode an image with a pretrained vision backbone [31, 32, 42], project the resulting features through an adapter, and inject the visual tokens into a language model. In this paradigm, the effectiveness of visual information depends not only on the representational power of the encoder [7, 34, 38], but—more critically—on where to connect: how the visual tokens are wired into the internal layers of the LLM.

As illustrated in Figure 1, attention patterns across ViT layers differ markedly: shallow layers attend to edges, textures, and local details, whereas deeper layers progressively concentrate on a small number of semantic anchors. Yet, most MLLMs [2, 10, 26] simply forward the output of one fixed ViT layer (typically the last or penultimate layer) to the LLM, as illustrated in Figure 2(A), effectively

∗^{*}Equal Contribution.

†^{\dagger}Corresponding author: Wei Wei.

Figure

Figure 1: Attention distributions across ViT layers. Shallow layers show dispersed attention over edges and textures; deeper layers progressively concentrate on a few semantic anchors.

(A) Single-layer Connection (B) Encoder-side Fusion (C) Sparse-Hierarchical Connections (D) Dynamic Gated Pathway

Figure

Figure 2: Strategies for visual token insertion. (A) Fixed single-layer connection. (B) Encoder-side fusion of multiple ViT layers into one representation. (C) Predefined sparse or hierarchical connections between ViT and LLM layers. (D) DGP (Ours): dynamic gated pathways between all ViT and all LLM layers. wmw_m denotes the routing weights that LLM layer mm assigns across all ViT layers.

collapsing the image into a single-granularity semantic representation. Connecting the LLM only to the terminal deep layer therefore discards shallow- and mid-level cues and prevents the LLM's layer-wise semantics from interacting with the full visual hierarchy.

Two lines of work have started to expose multi-layer visual features to the LLM, but each falls short on the where to connect question. Encoder-side fusion [4, 20, 23, 36, 39] merges multi-layer features into one representation before the LLM (Figure 2(B)); any dynamism is consumed inside the encoder and cannot adapt to the differentiated demands of individual LLM layers. Predefined sparse or hierarchical connections [8, 30, 37, 43] wire selected ViT layers to specific LLM layers (Figure 2(C)), typically using hand-crafted connection patterns or fixed hierarchical mappings. CLI [5] introduces adaptive gating conditioned on the current LLM state, but operates over sampled ViT layers and designated LLM injection points. Neither category explicitly models the adaptive, dynamic cross-layer interactions between all ViT layers and all LLM layers that the question of where to connect demands.

Predictive coding in visual neuroscience suggests that perception is not a unidirectional feed-forward process but a hierarchical feedback loop that continuously modulates activations across layers [33]. We take this as inspiration to revisit visual token injection: visual evidence should not be delivered in one shot through a fixed pathway, but should keep participating in the LLM's representation updates through dynamic cross-layer pathways. Building on this view, we introduce DGP (Dynamic Gated Pathways), which connects all ViT layers to all LLM layers via learned, dynamically gated routes (Figure 2(D)).

Concretely, the outputs of different ViT layers act as candidate representations at varying granularities. At every LLM layer, DGP produces a routing distribution over all ViT layers from the current hidden state, aggregates the candidates via gated weighted fusion, and injects the result back into the layer's visual hidden states through a residual connection. The hierarchical visual evidence keeps supplying cues for language reasoning, while the LLM's layer-wise semantic state drives the preference over visual hierarchies, yielding a cross-layer, progressively evolving vision-language interaction that integrates low-level details and high-level semantics on demand at different decoding depths.

We instantiate DGP on top of LLaVA-1.5 [26] and further validate it on Qwen3-VL-2B [3] and LLaVA-NeXT [27]. Across a wide range of multimodal benchmarks, DGP yields consistent improvements over baselines and outperforms prior multi-layer visual feature utilization methods. The learned routing patterns confirm that different LLM layers indeed prefer different visual granularities, alleviating the information bottleneck of fixed single-layer fusion. Our contributions are:

  • We reframe visual information injection in MLLMs around the question of where to connect, and show that fixed single-layer inputs and predefined sparse or hierarchical connections cannot match the differentiated demands of hierarchical ViT representations and layer-wise LLM semantics.
  • We propose DGP (Dynamic Gated Pathways), an all-to-all cross-layer connection mechanism in which every LLM layer dynamically gates its preference over every ViT layer conditioned on its current semantic state.
  • We demonstrate the effectiveness and interpretability of DGP on multiple multimodal benchmarks, where layer-wise routing analyses reveal the adaptive, layer-dependent selection behavior of the proposed dynamic gated pathways.

References (42)