Shared Symbols Instead of Vectors: How Heterogeneous Language Models Can Exchange Facts
Multi-model systems often exchange information through natural language, which is interpretable but inefficient. Directly passing hidden states seems denser, but vector spaces across models are not aligned: dimensions, bases, and non-uniqueness prevent direct reuse. This article reviews two existing approaches—training mapping modules and restricting collaboration to structurally similar models—and their trade-offs. It then introduces a third approach: using shared symbols as anchors. Each model maintains a local symbol-to-representation table, and collaborators transmit only symbols; the receiver resolves them locally. The article covers the communication flow, illustrative code, engineering considerations such as symbol sets, representation extraction, ambiguity, and data boundaries, plus applicable scenarios and limitations.
1. The Starting Point: A Cross-Language Collaboration
Imagine two collaborators who have never met. One speaks only Chinese, and the other speaks only English. They need to complete a complex task together. The most direct solution is to hire a translator. But the translator must first learn the grammar and vocabulary of both languages. If a third person who speaks another language joins, the translator must learn again. This cost rises quickly as the number of participants increases.
Multi-model collaboration systems face the same kind of problem. A common approach is to combine several models and assign them subtasks such as retrieval, reasoning, and code generation. These models usually communicate through natural language: one side outputs text, and the other side reads it. This approach is reliable and interpretable, but it is not efficient. A complete reasoning process often has to be expanded into a large amount of text, and the receiver must parse it again.
This leads to a more aggressive idea: since a model already expresses its full understanding internally in vector form, why not exchange those internal states directly? These states are usually called hidden states or activations. Passing them would make the information denser and would eliminate the steps of generating and parsing text.
2. Why Direct Exchange of Internal States Does Not Work
Internal states may look like a more direct channel, but there is a fundamental obstacle: the vector spaces of different models are not aligned.
Specifically, three kinds of differences can make direct transfer fail:
- Different dimensions. Different models may have different hidden-layer widths, so their vector lengths may not match. They cannot be directly concatenated or added.
- Different bases. Even when the dimensions are the same, the coordinate axes learned by each model have different meanings. Dimension 37 in Model A might represent the brightness of a color, while in Model B it might relate to syntactic structure.
- Non-uniqueness. The same set of semantic relationships can remain valid after arbitrary rotation and scaling. Therefore, the “red” vector learned by two models may simply be different coordinate representations in their respective spaces.
The following illustrative code demonstrates the third point. After an orthogonal transformation of a vector, both the inner product and the norm remain unchanged, but the values of individual components are completely different. If the receiver does not know the transformation, it cannot recover the semantics from the numbers.
import numpy as nprng = np.random.default_rng(0)v_a = rng.normal(size=8) # Model A's representation of "red" (illustrative)# Construct a random orthogonal matrix to simulate Model B's coordinate systemq, _ = np.linalg.qr(rng.normal(size=(8, 8)))v_b = q @ v_a # The corresponding representation in Model B (illustrative)print(np.allclose(np.linalg.norm(v_a), np.linalg.norm(v_b))) # Trueprint(np.round(v_a[:3], 3))print(np.round(v_b[:3], 3)) # Values are completely different, but geometry is the same
This example shows that the problem is not that the vectors are “not good enough.” The problem is that the two models define different coordinate systems. To let a receiver understand the sender’s vector, it must first know the mapping between the two spaces.
3. Two Existing Technical Routes
Academic research currently follows two main routes to handle this problem.
Route 1: Train Mapping Modules
The first route inserts a trainable mapping module between two models and learns to convert the sender’s internal states into a form the receiver can use. The effectiveness of this type of method depends on the training quality of the mapping module. Its costs include:
- Preparing paired training data and performing alignment training between the two models;
- Usually training a new mapping relationship whenever a new model is added;
- Retraining the mapping when a model is upgraded, because the original mapping may no longer work.
Route 2: Constrain Structural Similarity
The second route requires collaborating models to be structurally close enough, for example with similar layer counts, hidden dimensions, and attention layouts, so that their internal states have some transferability. This type of method does not require an additional mapping module, but it restricts the set of collaborable models to a smaller range.
Comparison of the Two Routes
| Dimension | Train mapping modules | Constrain structural similarity |
|---|---|---|
| Additional training cost | High | Low |
| Adaptability to new models | Requires retraining | Requires checking whether structures are similar |
| Range of collaborable models | Relatively wide | Relatively narrow |
| Engineering complexity | Medium-high | Medium |
Each route has its own cost, so a natural question arises: can we avoid both training a mapper and requiring similar model structures?
4. A Third Route: Communicate with Symbols as Anchors
One direction worth attention is to abandon vector transfer and transmit symbols instead. The core idea can be summarized in one sentence: do not send vectors; send words.
This idea comes from observations of language models’ internal representations. Existing research has found that a model’s internal representation associated with a specific word is often relatively stable and can support the model in completing various reasoning tasks. In other words, the internal representation corresponding to the word “red” does not serve only one particular problem; it is a reusable semantic anchor.
Since each model can find its own internal representation for the same word, two models can maintain their own “word-to-local-vector” lookup tables around a shared vocabulary. This lookup table exists only inside each model. It does not need to be exposed externally, and the two vector spaces do not need to be the same.
Communication Flow
Suppose Model A wants to tell Model B a fact. The whole process can be divided into three steps:
- Encode symbols: A expresses the fact as several shared words, such as “red” and “apple.”
- Transmit symbols: A sends only these symbols and no internal states.
- Local lookup: After B receives the symbols, it looks up the corresponding representations in its own table and injects them into its own reasoning process.
Because each model uses its own representation to understand the same word, the two communicating parties do not need to understand each other’s coordinate systems. They only need to agree on the vocabulary itself.
The following illustrative code provides a simplified implementation of this flow. It demonstrates only the data structures and call relationships, not the interface of any specific system.
class SymbolTable:"""A model-local table mapping symbols to internal representations (illustrative)."""def __init__(self, model_name: str):self.model_name = model_nameself._table: dict[str, list[float]] = {}def register(self, symbol: str, representation: list[float]) -> None:self._table[symbol] = representationdef lookup(self, symbol: str):return self._table.get(symbol)def send_message(symbols: list[str]) -> dict:# The sender transmits only symbols, with no vectorsreturn {"symbols": symbols}def receive_message(message: dict, table: SymbolTable) -> list:injected = []for sym in message["symbols"]:rep = table.lookup(sym)if rep is None:# Unknown symbols must be handled explicitly, not silently ignoredraise KeyError(f"{table.model_name} is missing symbol: {sym}")injected.append(rep)return injected
This code reflects two key points: the message body contains only a list of symbols, and the receiver should raise an explicit error for unknown symbols rather than silently dropping them.
5. Engineering Considerations for Deployment
This idea is conceptually simple, but several details need serious attention in real deployment.
1. How to Determine the Symbol Set
Both parties must agree on the symbol set. If general vocabulary is used, tokenization differences must be handled: the same concept may be split into different subwords by different models’ tokenizers. In practice, normalization rules can be defined at the word level, such as unifying case, unifying alias mappings, and assigning a unique identifier to each symbol.
2. Where to Obtain Representations
Which layer and which position in the model the vectors in the lookup table are taken from directly affects their semantic quality. A common practice is to select a middle layer with relatively stable semantics and average or filter the representations of the same symbol across multiple contexts. This step is an empirical choice. It is advisable to validate it on your own models and data rather than directly applying default values.
3. Ambiguity and Context
The same word can have different meanings in different contexts. For example, “apple” can refer to a fruit or a company. A single symbol may not be enough to eliminate ambiguity. Feasible approaches include transmitting compound symbols with qualifiers or attaching a short category label to the message.
4. Data Boundaries and Security
Symbol communication appears to transmit only words, but symbol sequences can still leak sensitive information. For scenarios involving privacy or compliance requirements, filtering and desensitization should be performed at the symbol layer, and message logs should be recorded for auditing.
6. Applicable Scenarios and Limitations
Applicable Scenarios
- Multi-model division-of-labor systems: When retrieval models, reasoning models, and code generation models exchange key facts, symbol messages are much more compact than long passages of text.
- Knowledge-point synchronization: Multiple models need to share the same set of core concepts, such as business terms, entity names, or domain rules.
- Heterogeneous model composition: The participating models differ greatly in structure, making it difficult to train mappers or ensure structural similarity.
Limitations
- Limited expressive power: Symbols can carry only discrete concepts. They struggle to precisely convey subtle semantic differences, tone, or uncertainty.
- Vocabulary dependence: Both parties need to share a vocabulary, and the quality of symbol representations directly determines communication quality.
- Lack of end-to-end validation: This direction is still mainly at the research stage. Its stability and benefits in large-scale production environments still need to be validated by each team.
7. Conclusion
Multi-model collaboration requires an information exchange method that is both efficient and reliable. Directly passing internal vectors is difficult because coordinate systems are inconsistent, while training mappers and constraining structural similarity each bring training costs or scope limits. The symbol-as-anchor approach offers a third option: each model maintains a local table mapping symbols to representations. During collaboration, only symbols are transmitted, and the receiver restores semantics through its own lookup table.
For engineering practitioners, three things are key: define a unified symbol set, choose an appropriate representation extraction method, and address ambiguity and data boundaries honestly. Before starting, it is advisable to validate feasibility with a small symbol set, observe whether reasoning quality after local lookup meets expectations, and then decide whether to expand the scope of application.
