Symbol-Level Communication for Heterogeneous LLMs: Passing Facts Instead of Vectors
This article explores a symbol-indexed communication approach for coordinating heterogeneous large language models (LLMs). Instead of aligning vector spaces or training pair-wise translators, it proposes passing structured fact packets composed of base vocabulary symbols. The article details the workflow, implementation sketches, boundary conditions, costs, and evaluation methods, offering a practical reference for multi-model collaboration in production environments.
Why Multi-Model Collaboration Requires Fact Passing
In applications such as intelligent customer service, a common architecture uses a lightweight model for intent recognition and then passes extracted facts to a larger model for complex reasoning. Because different models have different internal representations, “passing facts to another model” is not a trivial copy operation.
Cost Comparison of Two Common Approaches
Cache-based mapping trains a translation module that maps model A’s hidden states into model B’s representation space. This approach requires pair-wise training. If N models need to interoperate, N*(N-1) translators must be trained. Moreover, the mapping process can lose information and may overfit on specific tasks.
Latent space alignment requires models to have similar architectures, or uses fine-tuning to make hidden distributions converge. This precondition is difficult to meet for enterprises that mix self-developed open-source models with commercial closed-source APIs.
The table below summarizes key differences among three approaches:
| Approach | Training Cost | Architecture Requirements | Interpretability | Main Risks |
|---|---|---|---|---|
| Cache-based mapping | One translator per model pair | Low | Low | Information loss, overfitting |
| Latent space alignment | Requires fine-tuning or structural constraints | High | Low | Limited model compatibility |
| Symbol-based indexing | Build vocabulary mapping with light calibration | Medium, depends on injection method | High | Vocabulary coverage, word sense disambiguation |
The Basic Idea of Symbol-Based Indexing
The core idea can be summarized as: pass words, not vectors. This is inspired by research on word spaces: concrete terms like “red” tend to correspond to relatively stable representations within a model, and those representations can support answering a variety of questions. Therefore, the same base vocabulary may have usable internal representations across different models.
Note: The original material does not provide a verifiable source for this research. It is treated here as an engineering idea, not as validated conclusion.
Each participating model maintains its own private “word-to-vector” lookup table. The sender does not need to understand the receiver’s internal structure—it only sends the words corresponding to the facts. The receiver looks up those words in its own table and injects the resulting vectors into its reasoning context.
Workflow and Boundaries
Step 1: Build a Private Mapping Table
At initialization, the model extracts internal states for a shared base vocabulary (colors, entity names, action verbs, etc.) and stores them in a hash table. The table is model-private and never shared externally. The vocabulary is tied to a specific model version; rebuilding is required after model upgrades.
Step 2: Sender Packs Facts into a Packet
A fact is rarely expressed by a single word. For example, “User B canceled order A on Wednesday” involves an entity, an action, a time, a role, and an ordering. The sender should therefore send a structured fact packet:
from dataclasses import dataclass, field@dataclassclass FactPacket:symbols: list[str] # Word-level symbols, e.g., ["order", "cancel", "Wednesday"]roles: dict[str, str] # Symbol-to-role mapping, e.g., {"cancel": "action"}order: list[int] # Position of each symbol in the factconfidence: float # Decoding confidence, range 0 to 1text_hints: list[str] = field(default_factory=list) # Text fragments that cannot be mapped to vocabulary
The following is illustrative code. Interfaces such as get_state, nearest_symbol, tag_role, and inject are assumed APIs; actual implementation depends on the specific inference framework.
class SymbolSender:def __init__(self, model, base_vocab, threshold=0.6):self.model = modelself.table = {w: model.get_state(w) for w in base_vocab}self.threshold = thresholddef send(self, fact_states):packet = FactPacket(symbols=[], roles={}, order=[], confidence=1.0)for i, state in enumerate(fact_states):word, score = self.model.nearest_symbol(state, self.table)if score < self.threshold:packet.text_hints.append(self.model.describe(state))continuepacket.symbols.append(word)packet.roles[word] = self.model.tag_role(state)packet.order.append(i)packet.confidence = min(packet.confidence, score)return packet
Step 3: Receiver Reconstructs and Injects
The receiver restores the order according to order and looks up each symbol in its own table. Out-of-vocabulary content falls back to text hints without guessing.
class SymbolReceiver:def __init__(self, model, base_vocab):self.model = modelself.table = {w: model.get_state(w) for w in base_vocab}def receive(self, packet):states = []for _, word in sorted(zip(packet.order, packet.symbols)):if word in self.table:states.append(self.table[word])hints = packet.text_hints.copy()return self.model.inject(states, text_hints=hints)
A key point: the injected vectors come from the receiver’s own table, so they already reside in the receiver’s representation space. The cross-model alignment problem is circumvented. The risk shifts to two other areas: (1) whether the injected context produces coherent responses, and (2) word sense disambiguation.
Three Main Boundary Conditions
First, vocabulary coverage. Concepts outside the vocabulary can only be passed as text, which has lower precision than vectors.
Second, polysemy. The word “apple” maps to different vectors in different contexts, but the table stores a generic vector. Role labels or phrases can help disambiguate, e.g., “Apple (the company).”
Third, decoding errors. The sender may make mistakes when mapping hidden states back to the nearest word. When confidence falls below the threshold, fallback to text passing is safer than sending a potentially wrong word.
Applicability and Cost
The advantages of this approach: no pair-wise translator training is needed, existing model representation capabilities are reused, and the transmitted data is readable words and structures, which facilitates logging and debugging.
The costs need to be accounted for as well:
- Each model must build and maintain its own mapping table.
- The decoding threshold requires calibration.
- Fact fidelity requires dedicated evaluation.
- The mapping table must be rebuilt whenever the vocabulary or model version changes.
Three conditions must hold for this approach to be viable:
- The vocabulary must cover the target business domain.
- The sender’s decoding must be sufficiently reliable.
- The receiver must allow access to internal states—i.e., open-source or self-hosted models.
What About Closed-Source APIs?
Closed-source APIs do not allow reading or injecting hidden states, so the vector injection approach described above cannot be applied directly. The alternative is to serialize the structured fact packet into text and place it in the prompt. This sacrifices vector-level precision but retains interpretability and does not require similar model architectures.
How to Evaluate Fact Fidelity
Build a benchmark of fact samples with ground-truth answers, pass each sample through the send-reconstruct pipeline, and compare the output against the original facts. Key metrics include:
- Exact match rate of structured fields
- End-to-end accuracy on downstream tasks
- Number of API calls and latency
The baseline should be passing the original text directly in the prompt. Without a baseline, it is impossible to determine whether symbol-based indexing actually provides measurable benefits.
Common Pitfalls
- Passing a single word as if it were the complete fact.
- Ignoring vocabulary versioning—after a model upgrade, the mapping table becomes stale without immediate detection.
- Using a fixed confidence threshold without calibration.
- Assuming closed-source APIs support internal state injection.
- Claiming improvements without first establishing a baseline.
Applications in Cloud-Native Scenarios
On a general-purpose LLM platform, symbol-based indexing can be implemented as an intermediary service. The routing layer receives fact packets from lightweight models, validates their format and confidence, and forwards them to larger models.
Taking code generation as an example: a lightweight model can first extract algorithm keywords and step sequences, then pass them to a model specialized in long-form text generation for expansion. Whether this reduces latency and resource overhead must be verified by comparing against a text-passthrough baseline on the same task. Without measured data, it can only be said that this approach may reduce middleware complexity.
Conclusion
Symbol-based indexing reframes the problem from “aligning two vector spaces” to “maintaining a vocabulary table and designing fact packets.” It trades engineering effort for reduced dependence on pair-wise training. In environments with mixed model compositions and vocabulary that covers the business domain, it is worth trying. Before deployment, fidelity should first be measured on benchmark samples with ground-truth answers to decide whether broader adoption is justified.
