Direct Semantic Communication Between Large Language Models via Vector Translation

Fu-Chun Yang, Jason EshraghianarXiv 2025 · DOI

Introduction

Large Language Models (LLMs) typically collaborate through discrete text tokens, a process that is both computationally expensive and inherently lossy. When a source model converts its high-dimensional internal state into text, it flattens nuanced semantic structures. The receiving model must then reconstruct meaning from these tokens. This "token bottleneck" limits the efficiency of multi-agent systems.

To address this, researchers have developed a "latent bridge" that enables direct communication between LLMs via their internal vector representations. By translating vectors between disparate models like Llama-2 and Mistral, this framework allows for the sharing of rich semantic information without the need for text-based dialogue.

Methodology: The Dual-Encoder Translator

The core of this approach is a dual-encoder translator designed to bridge the unique internal "languages" (vector spaces) of different LLMs.

Figure 1: The dual-encoder translator framework bridging Llama-2 and Mistral-7B.

The architecture consists of three primary components:

  1. Semantic Feature Extractor: Compresses 4096D source vectors into a 512D bottleneck to isolate core semantic features.
  2. Cross-Domain Alignment Module: Utilizes multi-head attention to align features between the source and target spaces.
  3. Target Space Generator: Expands the aligned features back to the target model's 4096D dimensionality.

The translator is trained using a composite loss function that incorporates Mean Squared Error (MSE) for accuracy, cycle consistency to ensure reversible translation, and InfoNCE contrastive loss to distinguish between semantic concepts. To integrate these translated vectors into the target model, a "30% blending" technique is used, where the translated vector is mixed into the target model’s final three layers at a strength of $\alpha=0.3$. This allows the injected "thought" to steer the model's output without disrupting linguistic coherence.

Experimental Setup

The study evaluated semantic transfer across five diverse domains: Machine Learning, Quantum Computing, Photosynthesis, Blockchain, and Renewable Energy. The researchers extracted vectors from Llama-2-7B (Source) using "Full Prompts" and injected the translated results into Mistral-7B-Instruct (Target) while it processed only "Part Prompts." The goal was to see if the injected vector could "steer" the target model to produce the more detailed output intended by the source's full prompt.

Key Insights and Results

Performance Asymmetry

A significant finding of the study is the 2.01:1 performance asymmetry observed between model directions. It is notably easier to translate representations from a general-purpose base model (Llama-2) to an instruction-tuned model (Mistral) than the reverse.

Figure 3: Performance metrics showing the 2.01:1 asymmetry ratio between Llama → Mistral and Mistral → Llama translation.

This suggests that base models maintain more "universal" semantic structures, whereas instruction tuning specializes the vector space in a way that makes its internal representations harder to export to other architectures.

Semantic Steering and Stability

The translator achieved an average cosine similarity of 0.538 between translated and actual target vectors, representing a semantic transfer effect 5.38x more effective than random injection. Qualitative analysis showed that injecting a "Full Prompt" vector successfully shifted Mistral's output from generic definitions to specific, application-oriented discussions aligned with the source's intent. Crucially, this steering did not degrade performance on precision-critical tasks like mathematical formula generation, indicating that semantic communication can coexist with computational reliability.

Limitations and Future Directions

While promising, several challenges remain:

  • Dimensionality: The current work focuses on models with identical hidden dimensions (4096D). Scaling this to models of different sizes (e.g., 7B to 70B) is a key next step.
  • Evaluation Metrics: The authors note that manual semantic analysis can be subjective and call for more automated, robust metrics for "semantic transfer quality."
  • Optimization: The 30% blending ratio, while effective, may not be optimal for all tasks or model pairs, suggesting a need for more granular tuning of injection parameters.

This research marks a significant step toward more efficient, high-bandwidth collaboration between artificial intelligences by bypassing the limitations of human-readable text.

Summary updated

BibTeX
@misc{yang2025direct,
  author = {Fu-Chun Yang and Jason Eshraghian},
  title = {{Direct Semantic Communication Between Large Language Models via Vector Translation}},
  year = {2025},
  eprint = {2511.03945},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.03945},
}
Figure