Shared Vocabularies Instead of Vectors: Enabling Fact Transfer Between Heterogeneous Language Models

    This article explores an alternative approach to cross-model communication in multi-LLM collaboration. Instead of exchanging raw hidden states or relying on natural language, models can exchange symbols from a shared vocabulary, with each model maintaining a local word-to-vector anchor table. The article explains why internal representations cannot be directly transferred, reviews the costs of existing solutions, walks through a four-stage workflow with example pseudocode, and offers practical engineering guidance on when this method fits and how to validate it.

    Having multiple language models collaborate on complex tasks is already common practice. One model retrieves information, another reasons over it, and a third generates code. Today, these models mostly communicate through natural language. Text is easy to interpret, but every round requires generating and parsing long passages, which is slow and prone to losing detail. This has led some researchers to propose that models exchange their internal states directly—hidden states or activations—in the hope that information can flow more directly.

    1. The Problem: Internal Representations Are Not Interoperable

    The same concept is usually represented independently inside different models. Take the concept “red” as an example: in model A’s internal space it corresponds to one set of vectors, while in model B it corresponds to a different set of values—and the two may not even share the same dimensionality. Feeding A’s vectors directly into B gives B no way to interpret those numbers. The effect is similar to playing a raw audio waveform to someone who only understands written text.

    Therefore, the first challenge in transferring internal states across models is the inconsistency of representation spaces.

    2. Two Existing Approaches and Their Costs

    The first approach is to train a mapping module. A trainable conversion component is inserted between two models to learn how to transform model A’s internal states into a form that model B can use. This works directly, but it requires paired data, a designed training objective, and separate training for every pair of models. Adding a new model means retraining the mapping, so maintenance costs grow with the number of models.

    The second approach is to constrain model architecture. Participating models are required to be similar in layer count, hidden dimensionality, or attention design, so that their internal states have a chance of aligning directly. This eliminates the need to train a conversion component, but the range of eligible models is very narrow, making it hard to include structurally diverse models.

    These two approaches pay their costs in training overhead and model selection flexibility, respectively. Is there a third path—one that requires neither a trained converter nor architectural similarity?

    3. The Core Idea: Send Words, Not Vectors

    Look at the problem from a different angle. Vectors are a model’s private representation, difficult for outsiders to interpret. Words, by contrast, are units that both humans and models understand. If the object of exchange shifts from vectors to words, the nature of the problem changes.

    This idea is inspired by a line of research findings: representations associated with specific words inside language models are relatively stable, and a single such representation can support multiple reasoning tasks rather than serving only one specific problem.

    Building on this observation, the mechanism can be designed as follows:

    1. All models work around the same shared vocabulary. Every word in the vocabulary is a common symbol.
    2. Each model locally maintains a word-to-vector lookup table that records each word’s representation in its own internal space. This table is used only locally and does not need to align with any other model’s representations.
    3. Instead of sending internal states directly, the sender determines which words are most relevant to its current internal state and sends only those word symbols.
    4. Upon receiving the symbols, the receiver looks them up in its own table, retrieves the corresponding vectors, and injects them into its context for reasoning.

    As a result, the carrier of cross-model communication becomes symbols. Each model only needs to understand its own lookup table, not the other model’s internal space.

    4. Why Words Make a Better Exchange Unit Than Vectors

    First, words carry shared semantics. A shared vocabulary provides all models with a unified reference, eliminating the need for pairwise alignment training.

    Second, vocabulary size is controllable. It can be set in advance, making both bandwidth overhead and the range of ambiguity easy to evaluate.

    Third, the transmission format is simple. A set of word symbols can be represented as integer indices, which is far more compact than high-dimensional floating-point vectors, and easier to log and audit manually.

    Fourth, errors are visible. If the receiver gets the wrong word, a human can directly see what was transmitted—far easier to debug than inspecting a string of numbers.

    The cost of these advantages is precision. Words are discrete and less expressive than continuous vectors. Vocabulary design and the extraction strategy determine whether the approach works at all, so both deserve significant investment.

    5. The Workflow Broken Down

    A complete communication cycle goes through roughly four stages.

    Stage 1: Vocabulary definition. Select words relevant to the task, covering domain concepts, entities, and relational terms. The vocabulary should carry a version number, and all participants must use the same version.

    Stage 2: Local anchor construction. Each model runs a forward pass for every word in the vocabulary, extracts that word’s internal representation at a specified layer, and stores it in its local lookup table. This establishes a local anchor for each word.

    Stage 3: Symbol extraction. The sender computes the internal state of the current context, matches it against its local table by similarity, and selects the top-scoring words.

    Stage 4: Symbol injection. The receiver looks up the word indices in its table, retrieves its local vectors, and adds them as extra information to the reasoning process.

    6. Illustrative Implementation

    The following pseudocode outlines the main steps. Function names are illustrative only and do not correspond to any specific API.

    1. # Shared vocabulary: all models use the same version
    2. SHARED_VOCAB = load_vocab(version="v1")
    3. # Stage 2: each model builds its local anchor table
    4. function build_anchor_table(model, vocab, layer):
    5. table = {}
    6. for word in vocab:
    7. state = model.forward_hidden(word, layer) # take the internal state at the specified layer
    8. table[word] = normalize(state)
    9. return table
    10. # Stage 3: sender extracts relevant words
    11. function extract_symbols(model, context, anchor_table, top_k):
    12. state = normalize(model.hidden_state(context))
    13. scores = {}
    14. for word, vec in anchor_table.items():
    15. scores[word] = dot(state, vec)
    16. return top_k_keys(scores, top_k)
    17. # Stage 4: receiver injects symbols
    18. function inject_symbols(model, symbols, anchor_table):
    19. vectors = [anchor_table[s] for s in symbols if s in anchor_table]
    20. return model.append_context_vectors(vectors)

    Points to watch during implementation:

    • Layer selection should be determined on a validation set. Representations at different layers differ significantly in meaning, so the same layer cannot be assumed to work everywhere.
    • Normalization must be consistent across all models; otherwise, similarity comparisons are meaningless.
    • Define a fallback strategy for out-of-vocabulary expressions, such as using a natural language description directly.
    • Lookup failures should be logged and surfaced to upper-layer logic to avoid silent drops.

    7. Where It Fits and Where It Doesn’t

    Suitable scenarios include:

    • Collaborative workflows that repeatedly involve large numbers of domain concepts, such as entities, values, and units.
    • Many participating models with diverse architectures, where training a mapping for every pair is impractical.
    • Systems with auditability requirements, where every communication needs to be traceable.

    Scenarios requiring caution include:

    • Tasks that depend on fine-grained semantics or long reasoning chains, where discrete words may lose critical information.
    • A poor match between the vocabulary and the task domain, causing extraction results to land mostly on irrelevant words.
    • Significant differences in how different models understand the same word, causing anchors to drift across models.

    The practical effectiveness of this approach depends on the specific task and models involved. Gains must be evaluated on your own data and cannot be judged from the principle alone.

    8. Practical Engineering Recommendations

    1. Start with a small-scale validation. Pick a two-model collaboration task and compare plain-text communication with symbol-based communication.
    2. Measure three metrics at the same time: task accuracy, data volume per communication, and end-to-end latency.
    3. Put both the vocabulary and the anchor tables under version control. After a model upgrade, the anchor table must be rebuilt and compatibility between old and new versions confirmed.
    4. Periodically sample and inspect the extracted symbols. If systematic bias appears, adjust the vocabulary or extraction thresholds promptly.

    These recommendations are platform-agnostic and can be applied directly in collaboration systems built on general-purpose infrastructure such as object storage or message queues.

    9. Summary

    Rather than having models exchange numbers that are hard to interpret, it may be better to have them exchange semantics around a common vocabulary. This approach requires neither a trained conversion component nor architectural consistency across models. The trade-off is limited expressive precision, so the vocabulary and extraction strategy must be designed carefully. For systems that need cross-model collaboration, it is a direction worth validating at low cost.