# XBridge : Entity-Grounded Latent Bridge for Heterogeneous LLM Communication

###### Abstract

Heterogeneous multi-agent LLM systems, where agents are powered by different model families, can outperform homogeneous configurations by reducing redundant reasoning patterns. Yet existing communication protocols either operate through text, discarding the sender’s internal representations, or require architectural homogeneity for latent-level transfer. We identify the entity grounding problem in cross-architecture communication: cross-attention bridges that transfer continuous representations across different LLM families suffer from rare-token compression collapse, where entity identity is lost in the continuous bottleneck (bridge-only F1 ∼ \sim 30%). We propose XBridge , a decode-free communication protocol that addresses this through two mechanisms. Lexical Anchor Mapping (LAM) maps the sender’s original context tokens to the receiver’s vocabulary, providing discrete entity anchors. A Latent Enrichment Bridge (LEB) lets the receiver query the sender’s hidden states for contextual enrichment. The entity anchors ground the bridge’s contextual signals to specific entities through the receiver’s own self-attention. Across three model families (Llama, Qwen, and Mistral), seven benchmarks, and both communication directions, XBridge outperforms text-based communication on all seven tasks for each model pair while achieving 11 × \times lower latency, and in a same-architecture setting it also exceeds a KV-sharing baseline on six of seven tasks. LEB requires only 264M trainable parameters (3.8% of the receiver), is trained on a small balanced sample set, and adds negligible inference overhead. Our implementation is available at https://github.com/WooseongYang/XBridge .

## 1 Introduction

Multi-agent systems (MAS) can improve the reasoning capabilities of large language models (LLMs) by distributing computation across multiple inference passes [ 1 ] .

Recent findings show that when interacting agents share identical parameters and inductive biases, their interactions may degenerate into redundant majority voting rather than surfacing complementary reasoning [ 2 , 3 ] . A natural way to mitigate this redundancy is to use heterogeneous ensembles: configurations comprising distinct model families with diverse tokenizers, training corpora, architectures, and alignment procedures. Yet this representational diversity introduces a severe communication bottleneck: agents must exchange information across structurally incompatible latent spaces.

Existing communication paradigms face an efficiency-fidelity trade-off. Text-based methods, such as natural language communication (NLComm) [ 4 ] , are architecture-agnostic but incur autoregressive decoding latency and compress the sender’s internal state into a textual summary. Latent-level methods avoid sender-side decoding, but existing approaches such as KV cache sharing [ 5 ] and hidden-state injection [ 6 ] typically assume architectural compatibility, including aligned hidden dimensions, attention layouts, positional encodings, or tokenizers. Learned continuous projections offer a possible route across model families [ 7 ] . However, we find that continuous projections alone degrade in a specific and practically important way: they can transfer contextual information without reliably preserving the entities to which that context refers.

We define this degradation as the entity grounding problem . In heterogeneous LLM communication, a continuous bridge can transfer contextual information from the sender, but it struggles to preserve the discrete entity identities, such as names, numbers, or rare tokens, to which that context refers. We use entity fidelity to refer to preserving the correct lexical identity, and entity grounding to refer to binding the sender’s contextual signal to the corresponding receiver-native lexical anchor. In bridge-only experiments, the receiver recovers aspects of the context but often loses the exact identities of the participating entities. Homogeneous communication settings are less exposed to this problem because shared tokenizers and representational spaces provide implicit entity anchors. Heterogeneous communication therefore creates a demanding setting in which continuous contextual transfer and exact discrete entity fidelity must be maintained simultaneously.

To address this bottleneck, we propose XBridge , a decode-free communication protocol that mitigates the entity grounding problem via dual channels. First, Lexical Anchor Mapping (LAM) deterministically translates the sender’s original context tokens into the receiver’s vocabulary, providing discrete entity anchors without autoregressive decoding. Second, a Latent Enrichment Bridge (LEB) uses gated cross-attention to let the receiver query the sender’s hidden states, supplying continuous contextual information that can be bound to these lexical anchors. By decoupling the preservation of discrete entity identity (the who and what ) from the transfer of continuous contextual knowledge (the how and why ), XBridge enables heterogeneous models to communicate without requiring textual decoding or direct latent-space compatibility. The bridge is lightweight, requiring only 264M trainable parameters (3.8% of the receiver), training on a small balanced sample set in under 10 minutes, and adding negligible inference overhead.

In summary, our core contributions are: • We formulate the entity grounding problem in heterogeneous LLM communication and demonstrate rare-token compression collapse, a failure mode in which continuous bridges preserve contextual signals but lose discrete entity identity.

• We propose XBridge , a decode-free dual-channel protocol that combines Lexical Anchor Mapping for receiver-native entity anchors with Latent Enrichment Bridge for sender-side contextual enrichment. To our knowledge, this is the first protocol to pair an explicit discrete-anchor channel with latent transfer for heterogeneous communication.

• We show that XBridge improves heterogeneous communication across three model families and seven benchmarks, achieving 11 × \times lower latency than text-based communication, and that in a same-architecture setting it exceeds KV-cache sharing on 6 of 7 tasks.

## 2 The Entity Grounding Problem

Heterogeneous communication requires satisfying three requirements. First, the receiver must recover receiver-native lexical identities for entities that appear in the sender context. Second, it must use contextual information encoded in the sender’s hidden states. Third, it must consume this information without treating sender activations as native receiver activations. We refer to these requirements as entity fidelity , entity grounding , and representation compatibility , respectively.

We formalize heterogeneous LLM communication as information transfer between models with incompatible tokenizers, vocabularies, and hidden spaces. Let M i = ( τ i , V i , E i , F i , G i ) , i ∈ { S , R } , M_{i}=(\tau_{i},V_{i},E_{i},F_{i},G_{i}),\qquad i\in\{S,R\}, (1) denote a sender M S M_{S} and receiver M R M_{R} , where τ i \tau_{i} is the tokenizer, V i V_{i} the vocabulary, E i E_{i} the embedding map, F i F_{i} the transformer, and G i G_{i} the language-model head. The models are heterogeneous when V S ≠ V R , d S ≠ d R , F S ≢ F R , V_{S}\neq V_{R},\qquad d_{S}\neq d_{R},\qquad F_{S}\not\equiv F_{R}, (2) where architectural mismatch may include differences in depth, attention layout, normalization, positional encoding, tokenizer design, or training distribution.

The sender observes a context C C , while the receiver observes a question Q Q and must generate an answer A A . The sender performs a single forward pass: c S = τ S ​ ( C ) = ( c 1 , … , c T C ) , H S = F S ​ ( E S ​ ( c S ) ) ∈ ℝ T C × d S . c_{S}=\tau_{S}(C)=(c_{1},\ldots,c_{T_{C}}),\qquad H_{S}=F_{S}(E_{S}(c_{S}))\in\mathbb{R}^{T_{C}\times d_{S}}. (3) Unless otherwise stated, H S H_{S} denotes the sender’s last-layer hidden states. A communication protocol produces a sender-side message m S = π S ​ ( c S , H S ) , m_{S}=\pi_{S}(c_{S},H_{S}), which the receiver consumes to generate p π ​ ( A ∣ C , Q ) = p R ​ ( A ∣ Q ; Γ θ ​ ( Q , m S ) ) . p_{\pi}(A\mid C,Q)=p_{R}(A\mid Q;\Gamma_{\theta}(Q,m_{S})). Here, Γ θ \Gamma_{\theta} denotes the receiver-side mechanism for consuming the message. Text protocols communicate strings or token sequences, latent protocols communicate continuous states, and hybrid protocols communicate both m S = ( m disc ​ ( C ) , m cont ​ ( C ) ) m_{S}=\bigl(m_{\mathrm{disc}}(C),m_{\mathrm{cont}}(C)\bigr) .

### 2.1 Entity Fidelity

Let ℰ ⁡ ( C ) \mathcal{E}(C) denote the set of entity mentions in C C , including names, numbers, dates, and other rare or semantically specific spans. For an entity e ∈ ℰ ⁡ ( C ) e\in\mathcal{E}(C) , define its receiver-native lexical realization as a R ​ ( e ) = τ R ​ ( e ) ∈ V R ∗ , a_{R}(e)=\tau_{R}(e)\in V_{R}^{\ast}, (4) where V R ∗ V_{R}^{\ast} is the set of finite token sequences over the receiver vocabulary. We call a R ​ ( e ) a_{R}(e) an entity anchor . Entity fidelity is the requirement that the receiver assigns high probability to the correct receiver-native anchor.

For a gold answer entity e ⋆ e^{\star} , we measure entity fidelity by the receiver-side rank rank π ​ ( e ⋆ , C , Q ) = rank v ∈ V R ​ [ ℓ R ​ ( v ∣ Q ; Γ θ ​ ( Q , m S ) ) ] v ∈ a R ​ ( e ⋆ ) , \mathrm{rank}_{\pi}(e^{\star};C,Q)=\mathrm{rank}_{v\in V_{R}}\left[\ell_{R}(v\mid Q;\Gamma_{\theta}(Q,m_{S}))\right]_{v\in a_{R}(e^{\star})}, (5) where ℓ R \ell_{R} is the receiver logit induced by G R G_{R} . For multi-token entities, we use the first answer token as a diagnostic proxy. A protocol has high entity fidelity when this rank is low.

Entity fidelity can also be characterized interventionally. Let C e → e ′ C^{e\rightarrow e^{\prime}} denote the context obtained by replacing every occurrence of e e with another entity e ′ e^{\prime} of the same semantic type. A protocol is entity-sensitive if A ^ π ​ ( C , Q ) = e ⟹ A ^ π ​ ( C e → e ′ , Q ) = e ′ . \hat{A}_{\pi}(C,Q)=e\quad\Longrightarrow\quad\hat{A}_{\pi}(C^{e\rightarrow e^{\prime}},Q)=e^{\prime}. (6) This condition separates entity identity from relational structure. If the relation is preserved but the answer does not follow the substituted entity, the protocol does not preserve entity fidelity.

### 2.2 Entity Grounding Failure

Entity fidelity concerns whether the receiver outputs the correct entity. Entity grounding concerns whether the sender’s contextual signal is bound to the correct receiver-native entity anchor. A protocol may transfer contextual information while still leaving that information ungrounded to the correct entity in V R V_{R} . A continuous bridge can be written abstractly as r θ ( ℓ ) = B θ ( ℓ ) ​ ( H S , h R ( ℓ ) ) ∈ ℝ T R × d R , r_{\theta}^{(\ell)}=B_{\theta}^{(\ell)}(H_{S},h_{R}^{(\ell)})\in\mathbb{R}^{T_{R}\times d_{R}}, where h R ( ℓ ) ∈ ℝ T R × d R h_{R}^{(\ell)}\in\mathbb{R}^{T_{R}\times d_{R}} is the receiver hidden-state sequence at layer ℓ \ell with the receiver sequence length T R T_{R} . This abstraction covers projections, adapters, hidden-state fusion, and cross-attention modules. Such a bridge may transmit contextual information encoded in H S H_{S} , but by itself it does not expose receiver-native anchors a R ​ ( e ) a_{R}(e) .

The resulting failure is an identifiability problem. Consider two contexts C e C_{e} and C e ′ C_{e^{\prime}} that differ primarily by replacing entity e e with another entity e ′ e^{\prime} while preserving the same relational structure. A continuous-only protocol is vulnerable when d ⁡ ( m cont ​ ( C e ) , m cont ​ ( C e ′ ) ) ≤ ϵ , d\bigl(m_{\mathrm{cont}}(C_{e}),m_{\mathrm{cont}}(C_{e^{\prime}})\bigr)\leq\epsilon, while the required receiver-native anchors remain distinct: a R ​ ( e ) ≠ a R ​ ( e ′ ) . a_{R}(e)\neq a_{R}(e^{\prime}). In this regime, the receiver may recover the context but struggles to determine which discrete receiver-vocabulary entity instantiates the answer. We refer to this as rare-token compression collapse : continuous representations preserve contextual semantics but lose reliable access to rare or specific lexical identities.

### 2.3 Representation Mismatch

Even if entity identity is preserved, sender activations cannot be directly treated as receiver activations. Let μ R ( ℓ ) \mu_{R}^{(\ell)} denote the distribution of token-level hidden states encountered by receiver layer ℓ \ell . For a projection P : ℝ d S → ℝ d R P:\mathbb{R}^{d_{S}}\rightarrow\mathbb{R}^{d_{R}} , dimension matching only ensures that P ​ H S PH_{S} lies in ℝ d R \mathbb{R}^{d_{R}} . It does not imply that projected sender states match the receiver’s native hidden-state distribution: P ​ H S ≁ μ R ( ℓ ) in general , PH_{S}\not\sim\mu_{R}^{(\ell)}\quad\text{in general}, where μ R ( ℓ ) \mu_{R}^{(\ell)} denotes the distribution of hidden states at the ℓ \ell -th layer of the receiver model. Directly injecting P ​ H S PH_{S} into the receiver residual stream or key-value cache can therefore introduce out-of-distribution activations.

A representation-compatible protocol should instead let the receiver consume sender information through its own hidden state: h R ′ ( ℓ ) = h R ( ℓ ) + g θ ( ℓ ) ​ ( h R ( ℓ ) , H S ) , h_{R}^{\prime(\ell)}=h_{R}^{(\ell)}+g_{\theta}^{(\ell)}(h_{R}^{(\ell)},H_{S}), (7) where g θ ( ℓ ) g_{\theta}^{(\ell)} is a learned receiver-conditioned retrieval operator. This formulation preserves the receiver’s native computation while allowing access to sender-side contextual information.

## 3 XBridge : Entity-Grounded Latent Communication

The analysis in Section 2 identifies two challenges for heterogeneous architecture communication: continuous bridges struggle to preserve discrete entity identity (Section 2.2 ), and sender activations lie outside the receiver’s representation space (Section 2.3 ). We therefore decompose heterogeneous communication into two complementary mechanisms: Lexical Anchor Mapping (LAM, Section 3.2 ) provides discrete entity anchors, and a Latent Enrichment Bridge (LEB, Section 3.3 ) provides contextual enrichment. Both signals are produced by a single sender forward pass with no autoregressive decoding; sender and receiver remain frozen throughout.

### 3.1 XBridge Overview

We adopt the asymmetric communication setting formalized in Section 2 , following the protocol established by Shi et al. [5] , in which the sender observes a context and the receiver observes a question: the sender M S M_{S} processes a context document C C through a single forward pass, producing last-layer hidden states H S ∈ ℝ T C × d S H_{S}\in\mathbb{R}^{T_{C}\times d_{S}} and context token sequence c S = ( c 1 , … , c T C ) c_{S}=(c_{1},\dots,c_{T_{C}}) . The receiver M R M_{R} holds only the question Q Q and must generate an answer A A from whatever signal the sender communicates. XBridge transmits both H S H_{S} and c S c_{S} : LAM (Section 3.2 ) uses c S c_{S} , and LEB (Section 3.3 ) uses H S H_{S} .

### 3.2 Lexical Anchor Mapping (LAM) for Discrete Grounding

LAM addresses the entity grounding failure (Section 2.2 ) by placing the sender’s original context tokens, including entity mentions, as receiver-native lexical inputs. These lexical anchors provide the discrete basis that LEB requires to ground its contextual enrichment to specific entities (Section 3.4 ).

#### Cross-vocabulary mapping.

Given the sender’s context tokens c S = ( c 1 , … , c T C ) c_{S}=(c_{1},\dots,c_{T_{C}}) obtained by tokenizing C C with M S M_{S} ’s tokenizer, each token c i ∈ 𝒱 S c_{i}\in\mathcal{V}_{S} is mapped to the receiver’s vocabulary 𝒱 R \mathcal{V}_{R} via a deterministic, training-free mapping function ϕ : 𝒱 S → 𝒱 R ∗ \phi:\mathcal{V}_{S}\to\mathcal{V}_{R}^{*} , precomputed offline once per sender–receiver tokenizer pair. For tokens whose surface string appears in both vocabularies, ϕ \phi performs a direct ID-to-ID lookup. For the remainder, a string fallback decodes the token to its surface string and re-tokenizes it with the receiver’s tokenizer, producing one or more receiver tokens expanded in place. The mapping is lossless and adds negligible latency ( < < 1 ms); detailed statistics and examples are in Appendix A.1 .

#### Receiver-native lexical embeddings.

The mapped token IDs are converted to receiver embeddings e ctx = ( E R ​ [ ϕ ⁡ ( c 1 ) ] , … , E R ​ [ ϕ ⁡ ( c T C ) ] ) e_{\text{ctx}}=(E_{R}[\phi(c_{1})],\dots,E_{R}[\phi(c_{T_{C}})]) via the receiver’s frozen embedding matrix E R E_{R} , omitting expansion from re-tokenization for clarity. These embeddings are prepended to the receiver’s question input, following the input prepend convention used in soft-token communication [ 8 ] : x R = [ e ctx ; E R ​ ( Q ) ] x_{R}=[e_{\text{ctx}}\;;\;E_{R}(Q)] (8) By using E R E_{R} as a lookup table rather than training a separate projection, transmitted tokens are guaranteed to lie in the same space as the receiver’s own input tokens, ensuring that pretrained self-attention patterns apply directly to the transferred context. Unlike prior methods that require the sender to autoregressively decode a summary [ 4 , 8 ] , LAM transfers the full context without decoding, eliminating both latency and information loss from fixed-length compression.

### 3.3 Latent Enrichment Bridge (LEB) for Context Adaptation

LAM preserves entity identity but transmits only the sender’s raw tokens, not the sender’s contextual understanding of those tokens. The sender’s last-layer hidden states H S H_{S} encode information integrated across all context positions through the sender’s full transformer stack, information that raw token embeddings cannot convey. We use the last layer because it produces the most globally-integrated representations, as confirmed by a layer sweep in Appendix B.1 . However, H S H_{S} lies in the sender’s representation space, which the receiver has never encountered during training (Section 2.3 ). Directly injecting these representations, whether by prepending hidden states or replacing KV caches, places out-of-distribution vectors into the receiver’s processing pipeline and degrades performance. Cross-attention provides a natural solution: rather than injecting sender representations into the receiver, the receiver queries the sender in its own native space. This receiver-driven mechanism has three stages, illustrated in the bridge panel of Figure 3 .

#### Projections.

We insert M = 4 M{=}4 gated cross-attention modules into the receiver, one at each of layers ℓ ∈ { 6 , 13 , 20 , 27 } \ell\in\{6,13,20,27\} out of 28, following the insertion density of Flamingo [ 9 ] . We find four modules optimal; fewer provide insufficient capacity while more overfit with limited training data (Appendix B.1 ). Each module has its own learnable parameters ( ∼ {\sim} 66M each, ∼ {\sim} 264M total, 3.8% of the receiver). Both models remain frozen; only the bridge modules are trained. At each insertion layer ℓ \ell , the receiver’s hidden state h R ( ℓ ) ∈ ℝ d R h_{R}^{(\ell)}\in\mathbb{R}^{d_{R}} is projected into a query, while the sender’s hidden states H S H_{S} are projected into keys and values: Q ( ℓ ) \displaystyle Q^{(\ell)} = W Q ( ℓ ) ⋅ LN R ( ℓ ) ​ ( h R ( ℓ ) ) , K ( ℓ ) = W K ( ℓ ) ⋅ LN S ( ℓ ) ​ ( H S ) , V ( ℓ ) = W V ( ℓ ) ⋅ LN S ( ℓ ) ​ ( H S ) \displaystyle=W_{Q}^{(\ell)}\cdot\mathrm{LN}_{R}^{(\ell)}(h_{R}^{(\ell)}),\quad K^{(\ell)}=W_{K}^{(\ell)}\cdot\mathrm{LN}_{S}^{(\ell)}(H_{S}),\quad V^{(\ell)}=W_{V}^{(\ell)}\cdot\mathrm{LN}_{S}^{(\ell)}(H_{S}) (9) where W Q ( ℓ ) ∈ ℝ d R × d R W_{Q}^{(\ell)}\in\mathbb{R}^{d_{R}\times d_{R}} , W K ( ℓ ) , W V ( ℓ ) ∈ ℝ d R × d S W_{K}^{(\ell)},W_{V}^{(\ell)}\in\mathbb{R}^{d_{R}\times d_{S}} , and LN R ( ℓ ) \mathrm{LN}_{R}^{(\ell)} , LN S ( ℓ ) \mathrm{LN}_{S}^{(\ell)} are separate layer normalizations for the receiver and sender. The projection matrices simultaneously handle the dimensional mismatch ( d S → d R d_{S}\to d_{R} ), serving as the learned translation between representation spaces. All four modules query the same H S H_{S} , but each has its own parameters, enabling different layers to extract different aspects of the sender’s representation.

#### Cross-attention.

The receiver’s query selects relevant sender positions through scaled dot-product attention: A ( ℓ ) = softmax ⁡ ( Q ( ℓ ) ​ K ( ℓ ) ⊤ / d k ) ⋅ V ( ℓ ) A^{(\ell)}=\mathrm{softmax}\!\left(Q^{(\ell)}K^{(\ell)\top}/\sqrt{d_{k}}\right)\cdot V^{(\ell)} (10) This is the key advantage over injection-based alternatives: the receiver decides what information to retrieve based on its current processing state at layer ℓ \ell , rather than receiving a fixed representation regardless of what it needs.

#### Gated residual.

The cross-attention output is added to the receiver’s hidden state via a gated residual connection, preserving the receiver’s pretrained representations while incorporating bridge information: h R ′ ( ℓ ) = h R ( ℓ ) + tanh ⁡ ( α ( ℓ ) ) ⋅ A ( ℓ ) h_{R}^{\prime(\ell)}=h_{R}^{(\ell)}+\tanh(\alpha^{(\ell)})\cdot A^{(\ell)} (11) where h R ′ ( ℓ ) h_{R}^{\prime(\ell)} is the updated hidden state that continues through the receiver’s subsequent layers. We initialize α ( ℓ ) = 1.0 \alpha^{(\ell)}=1.0 ( tanh ⁡ ( 1.0 ) ≈ 0.76 \tanh(1.0)\approx 0.76 ) so that the bridge contributes immediately, unlike Flamingo’s zero initialization which requires the model to discover the bridge signal during training. With our limited training budget, warm initialization converges faster (Appendix B.1 ).

The bridge is trained with standard next-token prediction loss on the answer tokens: ℒ ( θ ) = − ∑ t = 1 | A | log P R ( a t ∣ a < t , e ctx , Q ; θ bridge ) \mathcal{L}(\theta)=-\sum_{t=1}^{|A|}\log P_{R}(a_{t}\mid a_{<t},e_{\text{ctx}},Q;\theta_{\text{bridge}}) (12) where e ctx e_{\text{ctx}} is computed via LAM (Section 3.2 ). Since the sender is frozen, its outputs ( H S H_{S} and context token IDs) are precomputed and cached, reducing training to under 10 minutes on a single GPU on a balanced set of 587 samples drawn across the seven task domains. Once trained, the bridge is fixed and applied to all tasks at inference time without further adaptation (Section 4 ). Training data composition is analyzed in Appendix B.2 . The bridge adapts to different model pairs by adjusting only the projection dimensions; we train separate instances for each pair using the same protocol.

### 3.4 Entity-Grounded Bridge Integration

The two mechanisms are integrated through the receiver’s own processing, without any explicit fusion layer. LAM places entity mentions (e.g., “Christopher Nolan”) in the receiver’s input as discrete embeddings. As these propagate through the receiver’s layers via self-attention, they shape the receiver’s hidden states h R ( ℓ ) h_{R}^{(\ell)} at every depth, embedding entity information into the representations that LEB modules use as queries. This is the grounding mechanism: when LEB at layer ℓ \ell computes Q ( ℓ ) = W Q ( ℓ ) ⋅ LN R ( ℓ ) ​ ( h R ( ℓ ) ) Q^{(\ell)}=W_{Q}^{(\ell)}\cdot\mathrm{LN}_{R}^{(\ell)}(h_{R}^{(\ell)}) , the query already encodes which entities are present and where they appear, enabling the cross-attention to focus on the sender positions that carry relevant contextual information about those entities. Without LAM, h R ( ℓ ) h_{R}^{(\ell)} reflects only the question, producing queries too vague to extract entity-specific signals from the sender, so the LEB conveys contextual signals while entity identity is lost in the continuous bottleneck, which is why LEB-only performance drops to ∼ \sim 30% F1 (Section 4.3 ). Without LEB, the receiver has the sender’s context tokens but lacks the sender’s contextual understanding of their relationships. Together, LEB’s contextual enrichment is anchored to specific entities rather than floating in continuous space. We verify this complementarity quantitatively in Section 4.3 .

## 4 Experiments

### 4.1 Experimental Setup

#### Models.

We evaluate communication across three model families to test cross-architecture generality: Llama-3.1-8B-Instruct [ 10 ] (Llama), Qwen2.5-7B-Instruct [ 11 ] (Qwen), and Mistral-7B-Instruct-v0.3 (Mistral). These families differ in architecture (hidden dimension, layer count, attention structure), tokenizer design, and training data, ensuring that improvements are not an artifact of a single architecture pairing. We evaluate three heterogeneous pairs: Llama → \to Qwen, Qwen → \to Llama, and Mistral → \to Qwen. We also verify that the framework generalizes to same-architecture settings (Appendix C.1 ). To test whether larger senders produce richer representations for LEB, we additionally evaluate sender size scaling with Qwen2.5-{1.5B, 7B, 14B}-Instruct → \to Llama.

#### Tasks and protocol.

We evaluate on seven benchmarks: HotpotQA [ 12 ] , MuSiQue [ 13 ] , QASPER [ 14 ] , 2WikiMultihopQA (2Wiki) and MultiFieldQA-en (MFldQA) from LongBench [ 15 ] , Countries and Tipsheets [ 5 ] . The sender receives the context document only and the receiver receives the question only, the asymmetric protocol established by Shi et al. [5] , which we apply identically to every method compared here. For NLComm baselines, the sender generates a 128-token summary via greedy decoding. We report F1 score. Task details are in Appendix E .

#### Compared methods.

We compare against natural language communication (NLComm) [ 4 ] , where the sender generates a text summary and relays it to the receiver. We distinguish NLComm hetero (cross-family) and NLComm homo (same family). We also report two single-model reference points measured with the receiver alone. NoComm, where the receiver sees only the question, is a lower reference indicating what the receiver achieves without communication. FullComm, where the receiver reads the full context directly, removes the communication problem rather than solving it, and serves as an upper reference in the sense of the Skyline used by Shi et al. [5] . Neither is a competing communication method, and both are excluded from the best-per-task comparison. Same-architecture methods, including NLComm homo and KVComm [ 5 ] which shares KV caches between models of the same family, are compared in Appendix C.1 .

### 4.2 Main Results

Table 1 presents heterogeneous communication results across all three model pairs and seven benchmarks. XBridge outperforms NLComm hetero on all 7 tasks across all three model pairs, with average gains of +21.4 pp (Llama → \to Qwen), +14.3 pp (Qwen → \to Llama), and +20.9 pp (Mistral → \to Qwen). The improvements are largest on tasks requiring multi-hop reasoning or world knowledge (Countries, 2WikiMQA, MuSiQue), where LEB provides contextual enrichment that text summaries cannot convey. On average, XBridge surpasses even FullComm across all three model pairs (63.2 vs. 55.2 for Llama → \rightarrow Qwen, 61.9 vs. 61.2 for Qwen → \rightarrow Llama, 65.0 vs. 55.2 for Mistral → \rightarrow Qwen). Since LAM places the full mapped context in the receiver’s input, XBridge sees what FullComm sees and adds the sender’s hidden states through LEB, so the comparison is not one of indirect against direct access. The same-architecture setting isolates this: with Qwen2.5-7B sending to itself, LAM reduces to an identity mapping, so the receiver’s input matches FullComm’s and only LEB differs, and XBridge homo {}_{\text{homo}} still leads by 7.9 pp on average (Appendix C.1 ). With identical models and identical input, the gain comes from LEB carrying the sender’s integrated representation that the receiver would otherwise recompute. The optimal sender varies by task: Mistral → \to Qwen achieves the highest scores on HotpotQA, QASPER, and MuSiQue, while Llama → \to Qwen leads on MFldQA and 2WikiMQA. This complementarity suggests that selecting the sender based on task characteristics can further improve performance. In the same-architecture setting, XBridge also exceeds KVComm [ 5 ] on 6 of 7 tasks (Appendix C.1 ).

### 4.3 Ablation: Both Anchors and Enrichment Are Necessary

The gains reported above rely on both LAM and LEB working together. To understand how much each contributes, we remove them individually on HotpotQA (Table 5 ). XBridge without LAM ( XBridge -LAM {}_{\text{-LAM}} ) drops to 30.3% F1, close to NoComm: LEB receives continuous signals but without entity anchors these signals are not bound to specific entities, confirming the entity grounding failure identified in Section 2.2 . XBridge without LEB ( XBridge -LEB {}_{\text{-LEB}} ) reaches 56.5%, providing entity grounding but no contextual enrichment beyond what the tokens themselves contain. The full XBridge achieves 78.8%, exceeding the FullComm. The +22.3 pp gain from adding LEB to LAM contrasts with the modest +5.7 pp from LEB-only over NoComm, demonstrating that grounding is the enabling condition for LEB effectiveness. LEB contribution scales with task reasoning complexity: from +35.8 pp on factual inference requiring world knowledge (Countries) to +2.0 pp on structured extraction (Tipsheets), with per-task breakdown in Appendix C.2 .

### 4.4 Bridge Mechanism and Role Separation

The ablation confirms that both mechanisms are necessary. A deeper question follows: does each carry a distinct type of information, or do they redundantly encode the same signal? To test this, we run an entity perturbation experiment on 100 HotpotQA samples, replacing every occurrence of the answer entity in the context with an unrelated entity of the same type (e.g., “Christopher Nolan” → \to “Bong Joon Ho”), then independently control which version each mechanism receives (Table 2 ).

Swapping LEB alone does not change the output entity: conditions A and D produce identical outputs (45 original, 0 swapped, 55 neither). The “neither” category contains outputs that mention neither the original nor the substituted entity, such as a date, another entity, or an unrelated span; we therefore interpret the experiment by comparing the original-versus-swapped direction among target-entity outputs. Under this interpretation, swapping LAM shifts the output toward the substituted entity regardless of which LEB version is used; conditions B and C produce nearly identical counts (37 swapped, 4–5 original, 58–59 neither). These results indicate a clear role separation: LAM supplies which entities appear in the output, while LEB supplies how the receiver reasons about them.

Figure 4 examines LEB’s effect on the receiver’s internal state across five communication conditions on 196 HotpotQA samples. NLComm methods attend most heavily to answer positions (2.0–2.7 × \times above average) yet achieve the worst token rank because paraphrased text replaces exact entity mentions. XBridge is the only method that produces positive cosine alignment between generation and answer entity representations, translating to correct-token probability of 0.752 vs. 0.635–0.662 for all other conditions (94% of individual samples, Appendix D.1 ).

### 4.5 Beyond Accuracy: Latency, Composability, and Sender Scaling

XBridge achieves 11 × \times lower latency than NLComm (0.15 s vs. 1.70 s per sample on HotpotQA) by eliminating autoregressive decoding: the sender performs a single forward pass ( ∼ {\sim} 0.05 s) with negligible bridge overhead ( < < 0.01 s), as reported in Table 5 . The modular bridge design also enables zero-shot composability: two independently trained bridges (Llama and Mistral as senders) combine at inference without retraining, achieving 70.4% F1 on HotpotQA compared to 67.0% for single-sender full context and 56.8% for dual NLComm (Appendix C.3 ). Finally, LAM is sender-size invariant since it depends only on the vocabulary mapping, not the sender’s capacity: even a 1.5B sender achieves 59.5%, approaching FullComm, while the 7B and 14B senders surpass it (Table 5 ).

## 5 Conclusion

In this work, we identified the entity grounding problem in heterogeneous LLM communication, where continuous bridges lose entity identity in the latent bottleneck. We proposed XBridge , a decode-free protocol that addresses this by combining LAM with LEB, decomposing communication into discrete entity anchors and continuous contextual enrichment. Extensive experiments across three model families, seven benchmarks, and both communication directions demonstrated that XBridge outperforms NLComm on every task with 11 × \times lower latency. We highlight the complementarity of the two mechanisms: LAM determines which entities appear in the output, while LEB determines how the receiver reasons about them, as confirmed by the entity perturbation experiment. Our work shows that heterogeneous LLMs can communicate at the latent level while preserving entity fidelity, and we see this as an early step toward cross-architecture multi-agent collaboration.

## Limitations

XBridge is trained for a single sender to receiver direction, so one bridge carries information one way over one exchange. A two-way setup would add a second bridge for the reverse direction, and since each bridge is lightweight and decode-free, the cost per exchange would stay low, but multi-turn latent dialogue, where the two models alternate and each turn conditions on what the other sent, is beyond what we evaluate here. The same holds for the number of agents: we have tested composition of two independently trained bridges, leaving open how bridge signals interact when more agents participate. Extending the protocol along both directions, bidirectional exchange and many-agent composition, is what we see as the path toward a cross-architecture communication protocol suited to full multi-agent systems.

## Appendix A LAM Details

### A.1 Cross-Vocabulary Mapping

Table 6 summarizes the vocabulary overlap and token transfer statistics for the two sender–receiver pairs used in our experiments.

Table 7 shows representative examples of tokenization mismatches and how the string-based fallback resolves them.

The mismatch patterns reflect fundamental differences in tokenizer design. Llama-3.1 uses a 128K BPE vocabulary that overlaps substantially with Qwen2.5’s 152K vocabulary, resulting in mismatches confined almost entirely to multi-digit numbers. Mistral-7B uses a smaller 32K SentencePiece vocabulary, causing common English words and proper nouns to fall back to string-based re-tokenization. In both cases, the fallback is lossless: the surface string content is fully preserved, with only positional expansion as a side effect.

### A.2 Grounding Format Independence

A critical question is whether LEB’s effectiveness depends on the specific grounding format (embedding prepend vs. text prompt) or merely on the presence of entity anchors.

LEB consistently improves all grounding formats ( + 12.5 +12.5 to + 22.3 +22.3 pp), demonstrating that entity presence, not format, is what enables LEB. Whether entity anchors arrive as prepended embeddings, as text within a chat template, or as argmax-decoded tokens, LEB extracts contextual enrichment from the sender’s H S H_{S} via cross-attention regardless of how those anchors enter the receiver.

The smaller Δ \Delta for NLComm ( + 12.5 +12.5 pp) reflects its higher base: NLComm text already contains sender reasoning, leaving less room for LEB improvement. Notably, NLComm with LEB (81.0%) surpasses LAM with LEB (78.8%), because the sender’s autoregressive decoding performs reasoning compression that benefits the receiver. However, LAM remains the preferred grounding format because it eliminates decoding latency entirely ( 14 × 14\times faster than NLComm) while achieving comparable performance with LEB.

## Appendix B LEB Design

### B.1 Bridge Architecture Ablations

We ablate bridge design decisions on HotpotQA (Llama → \to Qwen). All variants use balanced training (587 samples).

#### Number of bridge modules.

We vary the number of cross-attention modules inserted into the receiver (Qwen2.5-7B, 28 layers). 4 modules (264M parameters) is optimal. 7 modules (462M) overfits due to the higher parameter-to-data ratio with balanced training. 2 modules (132M) provides insufficient capacity for cross-architecture translation. This follows Flamingo’s [ 9 ] finding that sparser insertion is preferred for larger models.

#### Sender layer selection.

Bridge performance increases monotonically from early to final sender layers, with layers before the midpoint falling below the no-bridge baseline. The last layer is optimal because it integrates information across all context positions through the sender’s full attention stack, producing the most globally-aware representations.

#### Gate initialization.

We initialize the tanh \tanh gate at α = 1.0 \alpha=1.0 ( tanh ⁡ ( 1.0 ) ≈ 0.76 \tanh(1.0)\approx 0.76 ), differing from Flamingo’s zero initialization. With α = 0 \alpha=0 , the bridge is initially invisible to the receiver, requiring training to “discover” the bridge signal. With α = 1.0 \alpha=1.0 , the bridge immediately contributes cross-architecture context. In our setting with limited training data (587 samples), warm initialization converges faster and achieves higher final performance.

#### Auxiliary losses.

Adding a contrastive loss (encouraging the bridge to distinguish correct sender context from random contexts) does not improve performance beyond NTP loss alone. The NTP objective already implicitly requires the bridge to extract useful information from the sender’s hidden states.

### B.2 Bridge Training Data Composition

The composition of bridge training data significantly affects per-task performance.

HotpotQA-only bridge (20K samples) is inferior even on its own training domain (76.1% vs. 78.8% for the balanced bridge), and catastrophically degrades on unseen task types: Countries drops to 27.7% and QASPER to 36.2%. Overfitting to a single task’s context-length distribution and reasoning pattern prevents the bridge from generalizing.

Unbalanced universal bridge (42K samples, 94% HotpotQA+MuSiQue) improves over the single-task bridge across all tasks but remains below the balanced bridge on average (59.3% vs. 63.2%). The heavy skew toward multi-hop QA patterns limits generalization to dissimilar tasks such as Countries and QASPER.

Balanced universal bridge (587 samples, ∼ \sim 100 per task) achieves the best performance on every metric despite using 30 × 30\times less training data than the unbalanced variant. The balanced bridge learns task-appropriate gating: it remains near-closed for near-saturated factual tasks (Tipsheets 99.8%) while actively contributing on complex reasoning tasks (HotpotQA 78.8%, Countries 72.5%). The average across all 7 tasks (63.2%) is the highest among all bridge variants.

#### Implication for sender size scaling.

The balanced training set (587 samples) is sufficient for 7B senders but becomes a bottleneck for larger models. The 14B sender (hidden dim 5120) produces richer representations that require more training data to learn effective projections. Within this data budget, the 14B bridge plateaus at 62.1%, matching the 7B sender (61.9%) despite its larger capacity. We expect that scaling the balanced training set would unlock the 14B sender’s advantage, but leave this to future work.

## Appendix C Additional Results

### C.1 Homogeneous Comparison

To verify that XBridge generalizes beyond heterogeneous settings, we train a same-architecture bridge using Qwen2.5-7B as both sender and receiver. LAM reduces to an identity mapping in this setting, so the comparison isolates LEB’s contribution on top of full context reading.

Table 11 compares XBridge homo {}_{\text{homo}} against NLComm homo and KVComm [ 5 ] . XBridge homo {}_{\text{homo}} outperforms NLComm homo on all 7 tasks and KVComm on 6 of 7 tasks, with an average improvement of +12.0 pp over the stronger baseline. Notably, XBridge homo {}_{\text{homo}} surpasses even FullComm on 6 of 7 tasks (+7.9 pp on average), demonstrating that LEB adds value beyond what the receiver extracts from reading the context alone. The sole exception is MultiFieldQA, consistent with the pattern observed in heterogeneous settings (Section 4.3 ).

### C.2 Bridge Contribution per Task

Table 12 breaks down LEB’s contribution across all seven tasks for the Llama → \to Qwen pair. LEB contribution scales with the reasoning complexity of the task.

On Countries, the context states a person’s location at a landmark (e.g., “Eve is at the Uppland Runic Inscription 896”) and the question asks which country the person is in, but the answer (“Sweden”) appears nowhere in the context. Only LEB can transmit the sender’s implicit landmark-to-country inference, yielding the largest contribution (+35.8 pp). On multi-hop tasks (HotpotQA, 2WikiMQA, MuSiQue), LEB transmits reasoning chains integrated across documents (+19 to +22 pp).

On MultiFieldQA, the question asks for a specific fact (e.g., “What is the advantage of decorrelating the data before running the PLS algorithm?”) and the answer is a single extractable sentence located deep within a ∼ {\sim} 7K-token document. No cross-entity reasoning is needed, and LEB adds only +7.0 pp. This is also the sole task where KVComm [ 5 ] outperforms XBridge (48.3 vs. 44.2): same-architecture KV sharing preserves position-level attention patterns that directly encode answer location, an advantage specific to retrieval tasks that disappears when reasoning is required (e.g., HotpotQA +13.5 pp, MuSiQue +15.1 pp over KVComm).

On Tipsheets, the answer is directly extractable from structured text, leaving minimal room for LEB improvement (+2.0 pp).

### C.3 Multi-Agent Communication

We test composability on HotpotQA, where each question requires reasoning over two supporting documents. We assign each document to a separate sender, Llama for the first and Mistral for the second, and let the receiver (Qwen) integrate both via their respective bridges. Each bridge was trained independently for its own model pair; no joint training or adaptation is performed.

Dual XBridge achieves 70.4% F1 (Table 13 ), outperforming both the single-sender full-context baseline (67.0%, +3.4 pp) and dual NLComm (56.8%, +13.6 pp). The single-sender baseline gives one Llama sender both documents, so the dual setup’s improvement demonstrates that distributing documents across specialized senders is more effective than compressing everything through a single sender. This zero-shot composability, combining independently trained bridges without additional training, suggests that the framework scales naturally to multi-party agent settings.

## Appendix D Additional Analysis

### D.1 Per-Sample Consistency

The bridge mechanism analysis in Section 4.4 reports aggregate metrics across 196 HotpotQA samples (Llama → \to Qwen). Here we verify that these improvements are consistent at the individual sample level rather than driven by a few outliers.

Figure 4 (c) plots the mean-centered cosine similarity between the generation representation and the answer entity representation for each sample, comparing NoComm and XBridge . Points above the y = x y=x line indicate samples where LEB improves alignment. Of 196 samples, 184 (94%) fall above y = x y=x ( p ≈ 0 p\approx 0 , paired t t -test). The population mean shifts from μ = − 0.053 \mu=-0.053 (NoComm) to μ = + 0.091 \mu=+0.091 ( XBridge ), a sign change indicating that without LEB the receiver’s generation state moves away from the answer entity, while with LEB it moves toward it.

The 12 samples (6%) where LEB does not improve alignment tend to involve short, unambiguous contexts where LAM alone already provides sufficient grounding. Even in these cases, LEB does not substantially degrade performance, indicating that the gating mechanism (Equation 11 ) successfully attenuates the bridge signal when it is not needed.

### D.2 Entity Perturbation Examples

Table 14 shows representative examples from the entity perturbation experiment (Section 4.4 ). In each case, swapping LEB input alone does not change the output entity, while swapping LAM changes it entirely.

In all three examples, conditions A and D produce identical outputs, confirming that LEB does not influence entity selection. Condition C shifts the output to the swapped entity every time. LEB adapts its contextual enrichment accordingly: contextual signals such as “port city 25 km north of the museum” or “studied under in the Peripatetic school” bind to whichever entity LAM provides.

## Appendix E Task Details

Table 15 summarizes the seven benchmarks used in our evaluation. Training and evaluation splits are strictly separated with zero overlap.

∗ MuSiQue statistics shown are for supporting paragraphs only; full context with distractors is approximately 4–5 × \times longer. All evaluations use the full context.

## Appendix F Related Work

#### Text-based multi-agent communication.

LLMs are increasingly deployed in multi-agent systems where agents collaborate to solve tasks beyond individual capability [ 16 , 17 ] . Multi-agent debate improves factuality by having models critique each other’s reasoning [ 4 , 18 ] , while frameworks such as CAMEL [ 19 ] , AutoGen [ 20 ] , and ChatDev [ 21 ] coordinate agents through structured natural language exchanges. Natural language communication (NLComm) [ 4 ] generalizes this pattern: one model generates a text summary and relays it to another. These text-based protocols are architecture-agnostic but require autoregressive decoding at every communication step, incurring high latency. They also discard the sender’s internal representations, compressing context into a short summary that loses both the sender’s contextual understanding and relational structure among entities.

#### Latent multi-agent communication.

To avoid the cost and information loss of text-based communication, recent work transmits internal model representations directly. CIPHER [ 8 ] communicates via soft tokens across models but requires a shared tokenizer. AC [ 6 ] shows that activation-space interventions transfer between LLMs of the same family. C2C [ 7 ] projects and fuses KV caches across model families through learned linear projections, achieving cross-architecture transfer but operating entirely in continuous space. KVComm [ 5 ] shares selectively chosen KV cache layers, achieving near-FullComm performance with reduced communication cost, but assumes matching hidden dimensions, attention heads, and positional encodings. These methods differ not only in what they transmit but in what they assume the two models share. C2C fuses caches position-wise and therefore has the sharer and receiver process the same context, and LatentMAS [ 1 ] concatenates layer-wise KV caches across agents under a common architecture. Both are symmetric in the sense that the receiver already holds the context. XBridge operates in the asymmetric setting of KVComm, where the sender observes a context the receiver does not, and it is this asymmetry that gives rise to the entity grounding problem: once the receiver can no longer see the entities directly, a discrete channel aligned to its own vocabulary becomes necessary rather than supplementary. Existing latent protocols therefore either assume architectural homogeneity, require a shared tokenizer, or place the two models on the same context, and none preserves discrete entity identity across different vocabularies. XBridge addresses this gap by enabling latent communication across different LLM architectures while preserving entity fidelity.

## Instructions for reporting errors

We are continuing to improve HTML versions of papers, and your feedback helps enhance accessibility and mobile support. To report errors in the HTML that will help us improve conversion and rendering, choose any of the methods listed below:

Click the "Report Issue" ( ) button, located in the page header.

Tip: You can select the relevant text first, to include it in your report.

Our team has already identified the following issues . We appreciate your time reviewing and reporting rendering errors we may not have found yet. Your efforts will help us improve the HTML versions for all readers, because disability should not be a barrier to accessing research. Thank you for your continued support in championing open access for all.

Have a free development cycle? Help support accessibility at arXiv! Our collaborators at LaTeXML maintain a list of packages that need conversion , and welcome developer contributions .
