Cross-Model Communication: Shared Symbols Instead of Shared Hidden Vectors

    This article explains why hidden vectors cannot simply be moved between large language models, compares the two common workarounds (training translation modules and requiring similar architectures) and their costs, and introduces shared-symbol communication: passing agreed-upon symbols from a controlled vocabulary instead of private internal states. It covers how to define the symbol protocol, normalize tokenizer differences, build receiver-side mappings, choose injection layers, and resolve injection conflicts, along with conceptual pseudocode, a JSON protocol example, the metrics you should track (fact consistency, task improvement, injection success rate, conflict rate, latency, fallback rate, and traceability), frequently asked questions, and a step-by-step path to a pilot.

    1. The New Bottleneck in Multi-Model Collaboration

    Over the past couple of years, more and more applications have adopted multi-model collaboration: one model retrieves information, another handles logical reasoning, another is strong at code generation, and yet another takes care of summarization or safety review. Each model does what it is best at, and together they form a system that is far more flexible than a single model.

    But as soon as models need to collaborate, one question becomes unavoidable: how do they exchange information?

    There are two common approaches today.

    The first is natural language communication. One model outputs text, another model reads the text and keeps processing. This approach is universal, human-readable, and easy for people to understand and audit. However, it has clear limitations when facts must be transferred at high frequency and fine granularity: higher latency, redundant context, and information loss as facts are generated and re-encoded.

    The second is exchanging hidden vectors directly. Hidden vectors, also called activations or internal states, are the internal representations a model produces during inference. Compared with natural language, they look more “efficient” because a fact no longer has to be turned back into a sentence. The problem is that the internal representation spaces of different models are not naturally aligned.

    2. Why You Cannot Just Pass Hidden Vectors Around

    The internal representation of a large model is shaped by its training data, network architecture, parameter count, optimization objective, fine-tuning method, and other factors. The same concept may be expressed completely differently inside different models.

    For example, “red” might be a group of high-dimensional floating-point vectors in model A, while in model B it is a different set of vectors with a different dimensionality and distribution. If you copy A’s vector straight into B, B will not necessarily understand it, because B does not share the same “coordinate system” as A.

    So a hidden vector should not be treated as a fact card that can be handed across models. A more reliable way to think about it: a hidden vector is a temporary computational state inside a model, and it only carries a relatively stable meaning within that model’s own semantic space.

    If you want to use hidden vectors directly, you generally need to satisfy some prerequisites:

    • The two models come from the same or highly similar architectures.
    • They already share an aligned representation space.
    • There is a translation module that has been trained and validated.
    • Or there is an external verifier that can prove the task result does not degrade after injection.

    Otherwise, moving hidden vectors across models tends to produce unpredictable results.

    3. The Cost of the Two Existing Routes

    Two main classes of solutions address the representation misalignment problem.

    Route 1: Train a Translation Module

    This approach inserts a mapping module between the source model and the target model, and trains it to convert the source model’s internal state into a form the target model can accept.

    Its advantage is a clear theoretical direction. Its drawback is equally obvious: it requires additional training. Each model pair may need its own translation module. As the number of models grows, the number of translation-module combinations rises quickly, and both training and operating costs increase accordingly. In addition, translation modules usually depend on the model pairs seen during training, so their generalization to new models can be limited.

    Route 2: Require Similar Model Architectures

    Another approach is to constrain how much the collaborating models differ, so that the models taking part in communication have similar structures and their internal representations align more easily.

    This is relatively simple to implement, but it limits the range of models you can use. In real deployments, models often come from different vendors, versions, and parameter sizes, and may even be trained differently. Insisting on architectural similarity excludes many model combinations that would otherwise be perfectly usable.

    Here is a quick comparison of the common approaches:

    Approach When it fits Main cost Main risk
    Natural language communication Human-readable output needed, strong cross-model compatibility Low Latency, redundancy, semantic loss
    Direct hidden-vector transfer Isomorphic models or an already-aligned space Low to medium Misaligned representations, unstable results
    Trained translation module Fixed model pairs, high-frequency communication Higher Training and maintenance cost, limited generalization
    Similar architectures Same-origin or near-origin models Medium Restricted model selection
    Shared-symbol communication Facts that can be abstracted into controlled symbols Medium Protocol maintenance, symbol granularity, injection failure

    4. The Basic Idea Behind Shared-Symbol Communication

    The core of shared-symbol communication is not to transmit one model’s hidden vector, but to transmit symbols that both sides have agreed on in advance.

    Here, a “symbol” can be a word, a phrase, an entity, a predicate, a proposition, a state label, or a structured fact ID. For example:

    • “red”
    • “area > 100”
    • “user authenticated”
    • “order status = paid”
    • “region = eu_west”

    The basic flow looks like this:

    1. The sender decides which fact to convey and picks the corresponding shared symbol.
    2. The sender does not send its private hidden vector, only the symbol and any required metadata.
    3. The receiver looks up the internal representation associated with the symbol locally.
    4. The receiver injects the local representation into its own state, for example the prompt context, the KV cache, or an adapter layer.
    5. The system uses evaluation to determine whether the injection actually improved task performance.

    One point deserves emphasis: this approach does not guarantee that “the fact lands in the receiver’s head.” A more accurate statement is that the corresponding representation has been written into the receiver’s internal state, but whether that representation actually improves task performance still has to be verified through follow-up evaluation.

    5. Key Implementation Conditions

    For shared-symbol communication to be practical, at least the following conditions need to be nailed down.

    5.1 How shared symbols are defined

    Shared symbols cannot be arbitrary strings; they should be part of a controlled vocabulary. It is advisable to give every symbol a unique ID, a name, aliases, a namespace, a semantic description, and a version number.

    5.2 Normalizing vocabulary and tokenizer differences

    Different models may use different tokenizers, and the same word can be split into different tokens. That is why you cannot transmit only the raw string: you also need a mapping from “symbol to local token span.”

    For example, the symbol color:red may correspond to different token spans in different models. The system has to encapsulate these differences so that the receiver does not misparse them.

    5.3 How the receiver-side mapping is built

    The receiver needs the ability to turn a shared symbol into a local representation. That mapping can come from:

    • A local knowledge base.
    • A retrieval system.
    • A rule engine.
    • Annotated data.
    • A word-embedding model.
    • An adapter obtained through fine-tuning.

    When building it, watch out for version consistency and avoid situations where a symbol version upgrade breaks the local mapping.

    5.4 Which layers to inject into

    The injection point depends on the model interface. Common locations include:

    • The input prompt layer.
    • The hidden-state layer.
    • The KV cache layer.
    • The adapter layer.
    • A control-variable or system-state region.

    Different injection layers affect the strength of the fact and the probability of context conflicts. It is best to start testing from low-risk, observable positions.

    5.5 How to handle injection conflicts

    When a new symbol conflicts with context the receiver already holds, you need an explicit strategy: overwrite, merge, keep the old value, mark it as uncertain, or trigger a clarification. Without one, the answers can contradict themselves.

    6. Conceptual Pseudocode and Example

    The code below is meant to illustrate the idea only. It is conceptual pseudocode and is not guaranteed to run as-is.

    1. # Conceptual pseudocode: shared symbols travel along the link, not hidden vectors
    2. class UnsupportedSymbolError(Exception):
    3. pass
    4. class InjectionError(Exception):
    5. pass
    6. def send_fact(sender, receiver, shared_symbols):
    7. """
    8. sender: model or agent that supports consume_symbols
    9. receiver: model or agent that supports symbol_to_repr and inject_repr
    10. shared_symbols: list of symbols
    11. """
    12. # Example input:
    13. # [
    14. # {
    15. # "id": "color:red",
    16. # "label": "red",
    17. # "aliases": ["red", "crimson"]
    18. # },
    19. # {
    20. # "id": "area:gt_100",
    21. # "label": "area > 100",
    22. # "aliases": ["size > 100"]
    23. # }
    24. # ]
    25. # 1. The sender consumes the symbols locally
    26. sender.consume_symbols(shared_symbols)
    27. # 2. The receiver checks whether it supports these symbols
    28. if not receiver.supports_symbols(shared_symbols):
    29. raise UnsupportedSymbolError("receiver cannot resolve shared symbols")
    30. # 3. The receiver converts the symbols into a local representation
    31. # Example return value:
    32. # {
    33. # "repr_type": "prompt_vector",
    34. # "token_span": [101, 102],
    35. # "symbol": "color:red"
    36. # }
    37. local_repr = receiver.symbol_to_repr(shared_symbols)
    38. # 4. Inject the local representation into the receiver's internal state
    39. # Example return value:
    40. # {"success": True, "conflicts": []}
    41. injection = receiver.inject_repr(
    42. local_repr,
    43. strategy="replace_conflicting"
    44. )
    45. if not injection["success"]:
    46. raise InjectionError(injection.get("error", "injection failed"))
    47. return {
    48. "injected": True,
    49. "fallback_needed": len(injection.get("conflicts", [])) > 0
    50. }

    The key point of this pseudocode is that what flows through the function parameters is shared_symbols, not the hidden_state of either side. Error handling matters just as much, because unsupported symbols, missing mappings, and injection conflicts can all cause communication to fail.

    7. A Shared-Symbol Protocol Example

    A shared-symbol protocol can be described with a simple JSON structure.

    1. {
    2. "schema_version": "1.0",
    3. "namespace": "domain.order",
    4. "symbols": [
    5. {
    6. "id": "user.verified",
    7. "aliases": ["verified", "identity confirmed"],
    8. "semantics": "the user behind the current request has passed identity verification"
    9. },
    10. {
    11. "id": "order.status.paid",
    12. "aliases": ["paid", "payment completed"],
    13. "semantics": "the current order has been paid"
    14. }
    15. ]
    16. }

    Both sender and receiver should validate the following before use:

    • Whether schema_version is compatible.
    • Whether the namespace belongs to the same business domain.
    • Whether the symbol IDs are unique.
    • Whether the aliases could cause ambiguity.
    • Whether the receiver can resolve the symbol.
    • Whether context conflicts appear after injection.

    If a critical symbol cannot be resolved, the system should fall back to natural language rather than forcing the injection.

    8. Evaluation Metrics

    Shared-symbol communication should not be judged only on “can we transmit less.” It also has to be verified that “we transmit correctly.” At a minimum, I recommend tracking the following metrics:

    • Fact consistency: whether the receiver’s answers agree with the facts expressed by the shared symbols.
    • Task improvement rate: whether accuracy, pass rate, or completion rate goes up after symbol injection.
    • Injection success rate: the proportion of cases where symbol_to_repr and inject_repr return successfully.
    • Conflict rate: the proportion of cases where injection causes contradictory context or unstable answers.
    • Latency: total time for symbol resolution, mapping, injection, and inference.
    • Bandwidth: number of symbols, token length, and network transfer size.
    • Fallback trigger rate: the proportion of cases that fall back to natural language because symbols cannot express the fact.
    • Traceability: whether each symbol can be traced back to its source, version, and processing logs.

    These metrics help a team decide whether the approach fits a given business, instead of relying on subjective impressions.

    9. Frequently Asked Questions

    Why can’t I just pass hidden vectors directly?

    Because the internal representation spaces of different models are not naturally aligned. Passing hidden vectors directly may leave the receiver unable to interpret them, unless the models are isomorphic, already share an aligned space, or have a validated translation module.

    How do I do shared-symbol communication?

    First define a controlled symbol protocol, then build a local mapping for each receiver, and finally validate on a small set of tasks whether symbol injection improves fact consistency, while keeping natural language as a fallback.

    What are the common mistakes?

    Treating symbols as absolute semantics, ignoring vocabulary differences, not handling injection conflicts, having no version management, equating successful injection with task success, and having no evaluation or fallback mechanism.

    What should I watch out for when using it?

    Watch symbol granularity, semantic ambiguity, permission boundaries, privacy and compliance requirements, model interface capabilities, and observability. Complex facts are not always suitable for compression into a single symbol.

    10. Practical Recommendations

    If you want to try this style of communication in your own system, you can proceed along these steps:

    1. Start with a small number of fact types, such as entities, states, numeric values, and constraints.
    2. Define the shared-symbol protocol, specifying IDs, aliases, semantics, and versions.
    3. Build local symbol mappings for different models and handle tokenizer differences.
    4. Pick a low-risk injection layer and validate on small-scale tasks first.
    5. Set up a natural-language fallback so that facts that cannot be symbolized do not break the pipeline.
    6. Build an evaluation set and compare fact consistency, latency, and task success rate before and after injection.
    7. Deploy the model services on container platforms and model-serving platforms, and rely on service orchestration, logging, monitoring, and alerting to keep things stable.
    8. Expand the symbol set gradually, but treat every expansion with version management and regression testing.

    11. Closing Thoughts

    The key to multi-model collaboration is not just giving models more capabilities, but giving them a communication protocol that can be verified and maintained. Moving hidden vectors around looks efficient, but it is easily limited by misaligned internal representations. Shared symbols offer a more controllable middle ground, turning private internal state into a public entry point for facts that both sides have agreed on.

    In practice, do not aim for full symbol coverage from day one. Validate first, on a small set of tasks, whether symbol injection improves fact consistency. Only once the symbol protocol, vocabulary mappings, injection strategy, and evaluation system have gradually stabilized can a multi-model system achieve lower coupling, more flexible composition, and more sustainable scaling.