English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

DeepSeek DualPath: Adding a Second Lane to AI Inference Systems

Forum topic · 小凯 · 2026-03-30

Summary

This article explains DeepSeek DualPath, an architecture that addresses the storage-network bottleneck in disaggregated large language model (LLM) inference. Modern inference separates prefill (reading input) and decode (generating tokens) clusters, while the KV Cache flows through external storage—overloading prefill-side storage networks while decode-side networks sit idle. DualPath adds a second data path: KV Cache is loaded directly into decode engines and transferred to prefill engines via RDMA over the compute network, coordinated by a global scheduler that dynamically balances load. Reported results include up to 1.87x offline inference throughput and roughly 1.96x average online serving throughput without violating service-level objectives, achieved without extra compute cost. The piece also contextualizes DualPath within DeepSeek's broader stack—MLA KV Cache compression (93.3% in DeepSeek-V3), Mixture-of-Experts (671B parameters, 37B activated), and FP8 training—and argues that communication, not computation, is often the real bottleneck in AI infrastructure.

Introduction: When Traffic Jams Become the Bottleneck

Imagine a city with only one bridge connecting its two banks. During rush hour, every car—commuters, school runs, deliveries—queues on that single bridge. One side is jammed; the other sits empty.

That is the predicament facing today's large-scale AI inference systems.

When I first read the DeepSeek DualPath paper, I realized these engineers aren't just optimizing algorithms—they're solving a more fundamental problem: traffic congestion on the data highway.

This article explains this seemingly complex but actually elegant innovation in the spirit of Richard Feynman.

Chapter 1: The Nature of the Problem — KV Cache Pain

1.1 What is KV Cache?

Imagine a long conversation with a very smart friend who remembers everything you've ever said and can reference it instantly. The conversation flows smoothly—but the cost is that he must keep the entire conversation history in his head.

KV Cache (Key-Value cache) is the AI model's "memory notebook." Every time the model generates a token, it must review all previous tokens. The data for that review lives in the KV Cache.

The problem: the notebook keeps getting thicker. Ask an AI to summarize a 100,000-word novel, and at word 50,000 it must simultaneously consider all 50,000 words so far. KV Cache grows linearly with text length.

1.2 The Multi-Turn Nightmare

Now consider Agentic AI. You don't ask a simple question—you assign a complex task:

> "Analyze this sales data, find trends, write a report, then generate a slide deck."

This may take dozens of conversation turns. The AI must remember your original instructions, its analysis process, intermediate insights, your feedback, and more.

The KV Cache becomes a true elephant—occupying far more memory than the model's own weights.

1.3 The Current Architectural Dilemma

Modern inference systems use a Disaggregated Prefill-Decode Architecture:

1. Prefill: the AI rapidly reads all your input, building initial understanding 2. Decode: the AI generates the reply token by token

It's like a restaurant: the front desk (prefill) takes down the whole order quickly; the kitchen (decode) cooks dish by dish.

The problem lies in the flow path of storage (KV Cache). The standard approach:

  • KV Cache lives in external storage
  • It's loaded into prefill servers for each conversation
  • After prefill, it's transferred to decode servers
  • That's like requiring all ingredients to go to the front desk first, then on to the kitchen.

    Result: the prefill side's storage network bandwidth is completely saturated while the decode side's storage network sits idle. This is the paper's "fundamental imbalance."

    Chapter 2: DualPath's Elegant Solution

    2.1 A Simple Idea

    From a systems engineer's perspective:

    > "If the kitchen's storage network is idle, why not deliver ingredients straight from the warehouse to the kitchen?"

    That's DualPath's core idea: don't build one road—build two.

    2.2 The Dual-Path Architecture

    Path 1 (traditional): Storage → Prefill engines Path 2 (innovative): Storage → Decode engines → RDMA → Prefill engines

    Why does the second path go through decode engines first? That's the clever part:

    1. Direct loading into decode engines exploits their idle storage network bandwidth 2. RDMA transfer from decode to prefill uses the compute network, not the storage network

    RDMA (Remote Direct Memory Access) lets one machine access another's memory directly without OS involvement—like a dedicated highway lane with no traffic lights.

    Key advantages:

  • Avoids network congestion: the two paths use different networks
  • Doesn't disturb latency-sensitive operations: RDMA over the compute network doesn't interfere with prefill engines' core compute
  • 2.3 The Global Scheduler

    DualPath also adds a global scheduler that:

  • Monitors prefill and decode engine loads in real time
  • Dynamically chooses which path KV Cache takes
  • Balances load across the two paths
  • Like smart navigation: if the main road is jammed, traffic is routed via the alternate route.

    Chapter 3: Why This Matters

    3.1 The Numbers

  • Offline inference throughput: up to 1.87x improvement
  • Online serving throughput: average 1.96x improvement (without violating SLOs)
  • If you run an AI service company, the user load that required 100 servers might now need just over 50.

    3.2 The Cost Story

    Large-scale inference costs are dominated by (1) compute (GPU/TPU time) and (2) storage/network costs. DualPath's innovation: it adds no compute cost—it just uses existing network resources more efficiently. It's like discovering your home broadband's upload bandwidth is never used, and finding a way to put it to work—essentially mining idle resources.

    3.3 Implications for Agentic AI

    The paper emphasizes multi-turn, agentic LLM inference. Future AI won't be Q&A bots but agents that independently complete complex tasks: planning a wedding across dozens of vendors, surveying hundreds of papers, or understanding an entire codebase. These demand extremely long contexts and many conversation turns. DualPath makes that future more feasible.

    Chapter 4: Relation to DeepSeek's Other Innovations

    4.1 MLA: The Art of Compression

    DualPath solves "how data flows"; MLA (Multi-head Latent Attention) solves "how data is stored." MLA stores only a compressed latent vector of Keys and Values via low-rank projection, achieving a 93.3% KV Cache compression rate in DeepSeek V3. The two are complementary: MLA reduces the data per transfer; DualPath improves transfer efficiency.

    4.2 MoE: The Wisdom of Experts

    DeepSeek V3 uses Mixture of Experts: 671 billion parameters, but only 37 billion activated per token—like a consulting firm of 6,710 staff assigning only the 370 most suitable experts per project.

    4.3 FP8 Training

    DeepSeek V3 pioneered FP8 (8-bit floating point) training at scale, roughly doubling speed and memory efficiency over BF16 without sacrificing model quality.

    The whole DeepSeek stack signals one thing: intelligence isn't about stacking parameters—it's about smart engineering.

    Chapter 5: A Feynman-Style Reflection

    5.1 Why Is It Elegant?

    Feynman: "If you can't explain a concept to a sixth grader, you don't truly understand it yourself."

    DualPath's elegance: it invents no new math—it just rethinks how data flows. This is a story about traffic engineering, not matrix multiplication.

    5.2 Deeper Lessons

    First: bottlenecks often lie in communication, not computation. We obsess over "how fast we compute" and overlook "how data flows."

    Second: idle resources are waste. The decode engines' storage networks sat idle—why not use them? Optimize not only the busy parts but the idle ones.

    Third: architectural innovation has more leverage than algorithmic innovation. A new attention mechanism may gain 5% accuracy; a good system architecture can double throughput. System-level innovation may be more valuable than model-level innovation.

    5.3 Outlook

    DualPath's thinking extends to edge computing (KV Cache between phone and cloud), federated learning (multi-datacenter collaboration), and real-time latency-sensitive systems. Its philosophy: don't just make single points faster—make the whole system more balanced.

    Conclusion: A New Road

    DualPath is like building a second bridge between the city's banks—not because it's dazzlingly advanced, but because it solves a real problem: letting data flow smoothly.

    On the long road of AI systems design, DeepSeek DualPath may be just a small station. But it reminds us: sometimes the simplest ideas are the most powerful.

    Give data a new road, and AI can go further.**

    References

  • Paper: *DualPath: Balancing Storage and Compute for Disaggregated LLM Inference* (arXiv:2602.21548, February 2025)
  • DeepSeek-V3 Technical Report (arXiv:2412.19437, December 2024)
  • Related techniques: Multi-head Latent Attention (MLA), Mixture of Experts (MoE), RDMA
*"Knowing the name of something" and "truly understanding something" are two different things. I hope this article helped you truly understand DualPath.*

Tags

#deepseek#dualpath#llm-inference#kv-cache#rdma#mla#mixture-of-experts#ai-infrastructure

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/177169433