3DDRAM and LPDDR Hybrid Memory Architecture for Training Chips

    This article explains how to design a hybrid memory architecture that combines 3DDRAM and LPDDR for large-scale MoE training. It covers why bandwidth and capacity requirements conflict, the core design principles of decoupling and predictable migration, the physical division of labor between 3DDRAM and LPDDR, quantitative methods for bandwidth and capacity budgeting, routing-aware data placement, compiler and runtime coordination, cluster-side data and checkpoint supply, and common pitfalls with a validation path.

    1. The Core Problem: Why High Bandwidth and Large Capacity Are Forced Together

    In MoE (Mixture of Experts) training at the scale of tens of thousands of accelerators, the per-device memory subsystem must serve two conflicting demands at once. First, the compute cores access parameters, activations, and reduction buffers at high frequency, which requires extremely high bandwidth and very low access jitter. Second, the total volume of expert parameters grows linearly with the number of experts, which requires very large capacity to hold resident weights and optimizer states. Traditional designs use a single high-bandwidth memory to cover both needs, so capacity and bandwidth are priced at the same rate, and the cost curve is driven up directly by capacity demand.

    The picture becomes clearer when the demands are separated. Dense computation in attention and feed-forward layers is bandwidth-sensitive: it has high arithmetic intensity and good access locality. Sparse access after expert routing is capacity- and randomness-sensitive: each hit moves a limited number of bytes, but the candidate set is enormous. Putting both on the same medium means using the most expensive resource to hold the least sensitive data.

    2. Design Principles: Decoupling Bandwidth from Capacity

    The first principle of a hybrid memory architecture is layered decoupling: a small amount of memory close to the compute cores holds bandwidth-sensitive data, while large-capacity memory farther from the cores holds capacity-sensitive data, with configurable channels and buffers in between. The second principle is layered visibility: the software stack must know the bandwidth, capacity, and migration cost of each layer, rather than disguising lower-level memory as transparent “more VRAM.” The third principle is predictable cost: any automatic migration must provide an upper bound so that training step latency does not develop a long tail.

    3. Physical Layer: The Division of Labor Between 3DDRAM and LPDDR

    3DDRAM shortens interconnect distance through vertical stacking and hybrid bonding, delivering significantly higher bandwidth per unit area under the same power budget. It is suited to serving compute cores with deep queues and wide interfaces, and handles weight shards, reduction buffers, and high-frequency activations. Its costs are high cost per unit capacity and high thermal density, so capacity should be sized to be “just enough.”

    LPDDR offers much lower cost per unit capacity and a mature capacity scaling path, making it suitable for the expert pool, optimizer states, and checkpoint staging. Its bandwidth is limited and it introduces jitter from refresh and bank conflicts, so it should not carry high-frequency accesses on the critical path.

    1. Compute cores
    2. ↑ wide interface / deep queues / low jitter
    3. 3DDRAM layer (bandwidth layer, controlled capacity)
    4. ↑ configurable channels + prefetch buffers
    5. LPDDR layer (capacity layer, expert pool and optimizer states)
    6. ↑ high-bandwidth links
    7. Cluster-side parallel file system / object storage (checkpoints and datasets)

    4. Quantitative Methods for Bandwidth and Capacity Budgets

    The recommended design flow is to build the budget first and select components second. The bandwidth budget starts from per-device peak compute, divides by the target arithmetic intensity to get the minimum byte rate needed to sustain that compute, adds the extra traffic from reduction and routing, and finally divides by the target utilization to get the required bandwidth. The capacity budget is determined by dense parameters, the expert scale carried per device, the optimizer state multiplier, and peak activations.

    1. def budget(peak_flops, intensity, extra_ratio, util,
    2. dense_params, experts_per_rank, opt_mult, act_bytes):
    3. need_bw = peak_flops / intensity * (1 + extra_ratio) / util
    4. cap = dense_params + experts_per_rank * opt_mult + act_bytes
    5. return {"bytes_per_s": need_bw, "bytes": cap}

    In practice, the bandwidth layer only needs to cover the largest share of the required bandwidth, with the rest handled by the capacity layer and prefetching. The capacity layer is sized to the upper bound of the expert pool, leaving roughly 10–20% headroom for fragmentation and temporary buffers.

    5. Data Placement and Routing-Aware Scheduling

    The core of the placement strategy is “hot on top, cold on the bottom, predictable migration.” Dense weights and the experts active in the current step stay resident in the bandwidth layer. Experts that miss are loaded on demand from the capacity layer, using batched prefetching rather than per-access transfers to amortize channel overhead. Routing results have locality within a batch, so a small software cache can record the recently hit set and turn random access into near-sequential access.

    1. for step in training_step:
    2. hit = router_cache.probe(moe_routing(step))
    3. prefetch = capacity_layer.batch_load(miss_set(hit), depth=K)
    4. compute_on(high_bw_layer, hit, prefetch)
    5. router_cache.update(hit)

    Migration must use thresholds and hysteresis to avoid experts bouncing back and forth between the two layers. A fixed time slice for transfers should also be reserved per step to keep the latency upper bound controllable.

    6. Software Stack and Compile-Time Coordination

    Without compile-time support, the benefits of hardware layering are consumed by implicit copies. The compiler layer should handle operator partitioning and the mapping of tensor parallelism and expert parallelism, and emit an explicit placement description: which tensors go to the bandwidth layer, which go to the capacity layer, and the prefetch depth and buffer size per step. The runtime only executes the description and monitors it, without making implicit decisions.

    1. placement = {
    2. "high_bw": ["attn_weights", "reduce_buffers", "hot_experts"],
    3. "capacity": ["expert_pool", "optimizer_states"],
    4. "prefetch_depth": 2,
    5. "staging_bytes": 1 << 26
    6. }

    For debugging, instrument transferred bytes, hit-set size, channel occupancy, and step latency percentiles to form a regression-testable performance baseline.

    7. Cluster Side: Data and Checkpoint Supply at Ten-Thousand-Scale

    A per-device architecture must be evaluated in the context of the cluster. On the storage side, a parallel file system is recommended for datasets and checkpoints, object storage for long-term archival, a message queue for task and metadata distribution, a container platform for image and dependency consistency, and logging plus monitoring and alerting for long-tail diagnosis. Checkpoints use sharded asynchronous writes to move the bandwidth peak out of the training step. If cloud resources are used, they can be combined along the general categories above, avoiding contention for bandwidth with the training critical path.

    8. Common Pitfalls and a Validation Path

    Common pitfalls include: treating the capacity layer as transparent large VRAM, which pollutes the critical path with random access; selecting components by peak bandwidth alone while ignoring utilization and jitter; migration strategies without hysteresis that cause bouncing; and overlooking the actual thermal and power constraints on the bandwidth layer. The recommended validation path starts with single-layer modeling, gradually adds channel models and routing statistics, runs small-scale equivalence validation first, and then scales up to cluster scale to compare latency percentiles and cost, letting data rather than intuition decide the layer ratio.