Reader-Planner-Writer: Can AI Agents Use Latent-Space Communication Between Large and Small Models?

    This article examines a heterogeneous agent architecture in which a 700B-class model reads and plans over long contexts while a 4B-class model writes the final answer. It compares text, structured, and latent-space bridging, analyzes IO and end-to-end latency bottlenecks, and argues that latent-space communication will be adopted selectively in closed, well-aligned systems, while open agent ecosystems will continue to rely on hybrid protocols with auditable text and structured messages.

    1. Background: Why Use a Large Model to Read and a Small Model to Answer?

    In long-context and complex reasoning scenarios, 700B-class models often have stronger knowledge capacity, instruction following, and cross-paragraph reasoning. However, their deployment cost is extremely high. At a rough estimate of 1 byte per weight, the primary matrix of a 700B-class model alone is close to 700 GB. In practice, scaling, normalization, multi-token prediction, and other auxiliary tensors must also be counted, so actual checkpoint files are often larger than the primary-matrix estimate. This means consumer GPUs can hardly host such a model independently, and inference services must rely on multiple GPUs, tiered storage, and high-bandwidth interconnects.

    At the same time, a large part of the interaction experience users perceive comes from output speed. If every question requires the超大 model to perform long-context prefill and token-by-token autoregressive generation, end-to-end latency, concurrency cost, and energy consumption will all be high. A natural architectural idea is to let the 700B-class model handle “reading the question” and planning: process a 128K-scale long context once, extract evidence, constraints, a reasoning plan, and candidate conclusions; then let a local 4B-class small model take over “writing the answer,” organizing natural language, formatting output, and responding to multi-turn follow-ups at a target throughput of 100+ tokens/s.

    This is not a simple model cascade. It is a systemic rearrangement of compute, IO, caching, and communication. The core question then arises: what exactly should be transmitted between the large model and the small model? Should it be natural-language summaries, structured plans, or latent-space representations such as hidden states and KV Cache? Will AI agents therefore move toward latent-space communication?

    2. Overall Architecture: Reader-Planner-Writer Three-Stage Design

    A practical heterogeneous agent architecture can be divided into four layers:

    1. Reader layer: 700B-class large model
      Reads 128K-scale long contexts and performs evidence retrieval, conflict resolution, constraint extraction, and reasoning planning. Its output does not have to be the final answer; it can be an “evidence table + reasoning outline + uncertainty markers.”

    2. Bridge layer: bridging and compression
      Converts the large model’s understanding into a representation the small model can consume. Options include text bridging, structured bridging, latent-space bridging, or hybrid bridging. The Bridge layer also handles length control, sensitive-information filtering, version alignment, and failure fallback.

    3. Writer layer: 4B-class small model
      Deployed locally or at the edge, responsible for high-speed generation. It receives the bridged result and the user question, then completes answer organization, style control, citation insertion, and multi-turn rewriting. The small model does not need to re-understand the entire long context; it only needs to consume the compressed task state.

    4. Scheduler and observability layer
      Handles request grading, cache hits, timeout fallback, batch scheduling, log tracing, and evaluation. Long-context prefill is suitable for asynchronous or batch processing; small-model generation is suitable for low-latency streaming output.

    The schematic flow is as follows:

    1. User question + long document
    2. |
    3. v
    4. [Reader: 700B-class model] --long-context prefill--> evidence/plan/state
    5. |
    6. v
    7. [Bridge: text | structured | latent vector | hybrid]
    8. |
    9. v
    10. [Writer: 4B-class small model] --streaming generation--> final answer
    11. |
    12. v
    13. [cache/monitoring/fallback]

    In deployment, the Reader can run on a remote multi-GPU cluster, while the Writer runs locally or on a near-edge node. Baidu AI Cloud and other general cloud platforms can provide object storage, message queues, container platforms, logging, and monitoring and alerting to support long-context caching, task queues, and observability chains. However, the key to the architecture remains: is the bridged information sufficient, is the transmission cost controllable, and can the system fall back on failure?

    3. Three Bridging Approaches: Text, Structured, and Latent Space

    1. Text bridging: most stable but lossy

    Text bridging is the most direct approach: the large model outputs summaries, reasoning outlines, evidence citations, and caveats, and the small model answers based on them. Its advantages are protocol universality, auditability, easy debugging, and cross-model compatibility. Its disadvantages are that fine-grained evidence may be lost during compression, and natural language itself is ambiguous. For legal, financial, operations, and other scenarios that require accountability, text bridging with citation offsets and confidence markers remains the first choice.

    2. Structured bridging: strong engineering cost-performance

    Structured bridging represents the “understanding result” as slots, evidence tables, plan trees, constraint lists, and candidate-answer scores. For example:

    1. {
    2. "task": "answer_with_evidence",
    3. "constraints": ["Use only the given document", "Output three key points"],
    4. "evidence": [
    5. {"span": [120, 460], "claim": "Key fact A", "confidence": 0.91},
    6. {"span": [980, 1320], "claim": "Key fact B", "confidence": 0.87}
    7. ],
    8. "plan": ["Check constraints", "Merge evidence", "Generate conclusion"],
    9. "uncertainties": ["The document contains a time conflict"]
    10. }

    After consuming the structured state, the small model has more controllable generation and can more easily perform constrained decoding, citation insertion, and failure fallback. The cost of structured bridging is the need to design a schema, validate fields, and compress evidence from multiple segments of long documents. It is more suitable for agent workflows than plain text because tool calls, state machines, and multi-turn tasks all require explicit fields.

    3. Latent-space bridging: efficient but highest barrier

    Latent-space bridging does not transmit natural language. Instead, it transmits hidden states, embeddings, KV Cache, or projected latent vectors. Theoretically, it preserves richer information, reduces the loss caused by “verbalization,” and lets the Writer condition directly on the Reader’s internal representation. For homogeneous model families or models that have undergone joint training, latent-space communication can reduce the number of bridge tokens and increase information density per unit of bandwidth.

    However, the engineering challenges are obvious:

    • Dimension and semantic alignment: The Reader and Writer may differ in hidden dimension, number of layers, positional encoding, and tokenizer, so their representations cannot be directly concatenated. Projection layers, adapters, or contrastive-learning alignment are required.
    • Bandwidth and storage: Full per-layer hidden states are enormous. At 128K tokens, hidden dimensions in the thousands, and FP16 storage, a single layer reaches the GB level; stacking multiple layers is unacceptable. KV Cache is even larger. Therefore, only a small number of summary tokens, compressed vectors, or layer samples can be transmitted.
    • Cache invalidation: Long-context KV Cache is tied to document versions and model versions. When a document is updated, the cache must be invalidated and rebuilt.
    • Interpretability and security: Latent vectors cannot be directly audited and may carry private information or adversarial perturbations. In an open agent ecosystem, the receiver can hardly determine whether a latent vector has been poisoned.
    • Training cost: For a 4B-class model to “understand” the latent space of a 700B-class model, joint training or distillation is required, and it must cover a multi-task distribution.

    Therefore, full latent-space communication is not realistic. What is more feasible is hybrid bridging: “lightweight latent vectors + structured state + text fallback.” For example, transmit only compressed summary vectors from the Reader’s last few layers, task-intent vectors, and evidence scores, and then let the small model generate the answer together with structured evidence.

    4. IO Bottlenecks and Compute Time: End-to-End Latency Breakdown

    End-to-end latency can be broken down into network transfer, Reader prefill, bridge compression, Writer first-token latency, and Writer decoding time. Long-context prefill is usually the largest component on the Reader side. Standard attention brings significant compute and memory pressure as sequence length grows, and KV Cache grows linearly with context length. Optimization directions include chunked prefill, prefix caching, paged KV, quantized cache, pruning after evidence retrieval, and making non-urgent long-document processing asynchronous.

    For bridge transmission, text and structured data are small and can easily go through message queues or object storage. Latent vectors and KV Cache are large and must be compressed, sampled, or limited to key layers. If transmission cost is higher than recomputation cost, full cache should not be transmitted. To achieve 100+ tokens/s output on the Writer side, attention must be paid to small-model quantization, batch scheduling, memory usage, and streaming decoding. In multi-user scenarios, request queuing and timeout fallback are also needed.

    A practical strategy is tiering: simple questions go directly to the small model; medium-complexity questions use “structured bridging + small model”; long-document, high-risk questions use “large model reads + evidence table + small model answers + large model spot-checks.” This controls cost while preserving the quality ceiling.

    5. Will AI Agents Move to Latent-Space Communication?

    The conclusion is: they will move partially toward latent-space communication, but it will not fully replace text and structured protocols.

    In closed systems, homogeneous model families, sufficiently joint-trained settings, and clear security boundaries, latent-space communication can reduce verbalization loss and improve inner-loop efficiency. It is suitable for high-frequency state transfer between a planner and an executor. However, in open agent ecosystems, interoperability across vendors, versions, and tasks still requires protocols that are readable, auditable, and rollback-capable. Natural language, structured messages, function calling, and evidence citations remain mainstream because they support debugging, compliance, and fault localization.

    A more realistic evolution path is hybrid communication: structured protocols for high-level tasks, text citations for key evidence, and lightweight latent vectors for high-frequency internal state. Whatever the approach, an evaluation loop must be established: answer consistency before and after bridging, evidence recall, latency distribution, cache hit rate, failure fallback rate, and security audit records. Only by quantifying “what to transmit, how much to transmit, what is lost, and what to do if something goes wrong” can latent-space communication move from experiments to engineering.