PreLat: Efficient Cross-Model-Family Communication Using Prefill States

PreLat uses sender prefill states to build latent messages for efficient cross-family model communication with 8–9× lower latency.
PreLat introduces a cross-family model communication interface that builds latent messages directly from the sender's single question-conditioned prefill output. A Perceiver-style encoder compresses prefill states into latent slots, which a receiver-specific linear reader maps into a frozen receiver's input embedding space. During training, the receiver is distilled from the sender's best text candidate; text is only for guidance and is never decoded at inference. In multi-hop QA experiments from Llama-3.2-3B to Gemma-3-4B, PreLat surpasses the text baseline, reduces median latency by 8.2–9.0×, and message content is critical to performance. The decoupled architecture enables new models to be added at O(1) cost, and nine model pairs never jointly trained still recover 0.72–0.88 of the text gain. Current evaluations are limited to multi-hop QA and small-to-medium models; generalization to larger models and diverse tasks needs further verification.
Multi-model systems typically rely on exchanging text for information, which any model can read but must decode token by token—slow and expensive. Latent channels avoid decoding, but existing cross-family designs either require training a separate adapter for each model pair, modify the receiver's internal structure, or degrade sharply when the message is swapped. PreLat proposes a cross-family interface that builds messages directly from the sender's single question-conditioned prefill output: a Perceiver-style encoder compresses the prefill states into latent slots, and a receiver-specific linear reader maps them into the input embeddings of a frozen receiver from another family. During training, the receiver is distilled from its answers under the sender's best text candidate; text is used only to guide training and is never decoded at inference.

Design Motivation: The Bottleneck of Text Exchange and the Challenge of Latent Channels
Multi-model collaboration is now common—for example, using one model to retrieve or reason and another to generate the answer. The standard approach is to pass natural language text between models, which is universal and understandable by any model, but at the cost of the receiver having to decode and re-encode the text token by token, with latency growing linearly with text length. Latent channels pass vector representations directly, skipping the decoding step, but existing methods have limitations: some require training a dedicated adapter for each model pair, making scaling costly; some modify the receiver's internal structure, breaking its frozen state; and others improve performance, but the message content is not strongly tied to the specific sample—swapping in another sample's message causes little degradation, suggesting the model may exploit shallow cues such as position or format rather than genuine semantic information.
PreLat aims to construct a message that comes from the sender's deep computation, can be understood directly by models from different families, and does not require joint training.
Prefill refers to the process in which a large language model performs a single forward pass over the complete input sequence (such as the question and context) before generating the first output token. This pass produces hidden states for each input position, and these states already incorporate the model's contextual understanding of the entire input. Unlike token-by-token autoregressive decoding, prefill is a one-shot, parallel computation, so its output naturally contains rich semantic information without waiting for decoding. PreLat leverages this property by using the hidden states from the sender's single prefill as the raw material for the latent message, thereby bypassing the text-decoding bottleneck.
Perceiver-style encoder originates from the Perceiver architecture, whose core idea is to use a set of learnable latent vectors (latent slots) to perform cross-attention with the input sequence, compressing an input of arbitrary length into a fixed number of representations. This design avoids the quadratic growth of attention computation with input length and is particularly suited to variable-length sequences. In PreLat, the Perceiver encoder summarizes the sender's variable-length prefill states into a fixed number of latent slots, preserving key semantics while unifying the message format for subsequent reading by the receiver.
How PreLat Works: A Three-Component Decoupled Architecture
The core idea of PreLat is to use the sender's prefill states as the latent message. Specifically, it works in three steps:
- Sender prefill: Given a question and context, the sender model (e.g., Llama-3.2-3B) performs a single forward pass to obtain hidden states at each token position. These states contain the model's understanding of the question.
- Perceiver encoder: A lightweight Perceiver-style encoder compresses the variable-length prefill states into a fixed number of latent slots, akin to summarizing a long sequence into a set of vectors.
- Receiver linear reader: Each receiver model (e.g., Gemma-3-4B) has its own dedicated linear layer that maps the latent slots into the receiver's input embedding space. The receiver remains frozen, and only this linear layer is trained.
During training, the sender and receiver are not jointly optimized. For each training sample, the sender first generates the best text candidate (via sampling or search), and this text is then used as a teacher signal to distill the receiver's output distribution. Thus text appears only during training, and decoding is entirely skipped at inference.
This decoupling brings a key advantage: when a new model is added, the training cost is O(1)—only its own interface (sender encoder or receiver reader) needs to be trained, without retraining other models.
Distillation here refers to using the text generated by the sender as a "teacher signal" to guide the training of the receiver interface. Specifically, for each training sample, the sender first generates the best text candidate (such as an answer or reasoning chain) via sampling or search, and this text is fed into the frozen receiver to obtain its output distribution; meanwhile, the PreLat message is fed into the receiver to obtain another output distribution. The training objective is to minimize the difference between the two (e.g., KL divergence), so that the latent message can guide the receiver to produce outputs similar to those from text input. Text serves only as a supervision signal during training; at inference, no text needs to be generated or parsed, avoiding the latency overhead of text exchange.
Experimental Results: Content Dependence and Cross-Family Generalization
The paper evaluates PreLat on multi-hop question answering, with a setup in which only the sender can see the evidence documents, while the receiver only receives the message and answers the question. Llama-3.2-3B is used as the sender and Gemma-3-4B as the receiver.
Message content really matters. When the message is replaced with that of another sample, F1 drops by 35–64 points, indicating that PreLat transmits question-relevant semantic information rather than a fixed pattern.
Performance surpasses the text baseline. On the three datasets HotpotQA, MuSiQue, and 2WikiMultiHopQA, PreLat outperforms text generated directly by the sender (i.e., the sender writing the answer or evidence as text to pass to the receiver), and matches or exceeds a text sender fine-tuned on the same messages.
Latency is significantly reduced. Compared with transmitting 128 tokens of text, PreLat reduces median single-request latency by 8.2–9.0×, because the receiver does not need to decode and re-encode text.
Strong cross-family generalization. Thanks to the decoupling of the two sides, nine model pairs that were never trained together (senders include Phi, Gemma, and Falcon; receivers include Mistral, Llama, and OLMo) recover 0.72–0.88 of the text gain on held-out test sets. In addition, a new sender trained on a fixed two-model panel, under matched training steps, improves connectivity with receivers outside the panel in all four test groups.
Significance and Limitations
PreLat provides a fast, reusable way to transfer information across families. It does not require models to be homogeneous, does not modify the receiver's internals, and has low cost for adding new models. Potential applications include multi-agent systems, evidence transfer in retrieval-augmented generation, and intermediate representation exchange in model cascades.
However, current evaluations focus on multi-hop question answering, and the sender and receiver scales are relatively small (3B–4B level). The effectiveness of PreLat for larger models and more diverse tasks (such as code generation and long-document summarization) remains to be verified. In addition, although the Perceiver encoder and linear reader are lightweight, they still need to be trained for each new model family, and training relies on the sender generating high-quality text candidates as teacher signals.
Overall, PreLat demonstrates the potential of prefill states as a medium for cross-model communication, offering a new perspective for multi-model system design.
One-line Summary
PreLat uses the sender's prefill states to build latent messages, enabling efficient cross-family model communication with 8–9× lower latency.
Paragraph Summary
PreLat proposes a cross-family model communication interface that builds latent messages directly from the sender's single question-conditioned prefill output. A Perceiver-style encoder compresses the prefill states into latent slots, which a receiver-specific linear reader then maps into the input embedding space of a frozen receiver. During training, the receiver is distilled from the sender's best text candidate; text is used only for guidance and is never decoded at inference. In multi-hop QA experiments from Llama-3.2-3B to Gemma-3-4B, PreLat surpasses the text baseline, reduces median latency by 8.2–9.0×, and message content is critical to performance. The decoupled architecture enables new models to be added at O(1) cost, and nine model pairs that were never jointly trained still recover 0.72–0.88 of the text gain. Current evaluations are limited to multi-hop QA and small-to-medium-scale models; generalization to larger models and diverse tasks remains to be verified.
Related articles

RCD: Making Large Models Smaller and Stronger with Reasoning Circuit Distillation
The paper proposes Model-Intrinsic Reasoning Circuit Distillation (RCD), which uses edge attribution patching to identify key Transformer circuits and transfers reasoning ability by matching logit changes caused by circuit attenuation, outperforming existing KD methods on mathematical reasoning and code generation.

Don't Rush to Code with AI: A Practical Method for Using Doubao Work to Find Paid Projects
Vibe Coding series episode one: don't rush to code with AI. Use Doubao Work to analyze tech news and find demand, then use "free permission learning images" to hand finished products to e-commerce merchants for free, validating willingness to pay through real feedback—let customers, not AI, judge the market.

CrossDLM: Cross-Generation-Process Distillation to Inject Autoregressive Knowledge into Diffusion Language Models
The CrossDLM framework uses sequence-level scoring and bidirectional reconstruction supervision to solve the mismatch between autoregressive models and diffusion language models, outperforming causal prefix distillation in experiments.