3D DRAM and LPDDR Hybrid Memory Architecture for Large-Scale MoE Training Chips

    This article examines a hybrid memory architecture for training chips that separates bandwidth from capacity. It proposes a small, high-bandwidth 3D DRAM hot tier for activations, gradients, active expert weights, low-precision compute copies, and communication buffers, paired with large-capacity LPDDR as a cold tier for master weights, optimizer states, checkpoints, and inactive expert weights. It covers working-set-based 3D DRAM capacity estimation, effective bandwidth analysis, LPDDR prefetching and priority scheduling, intra- and inter-node communication constraints, compute-to-memory balance, compiler and runtime support, and reliability engineering. The goal is to align high-bandwidth resources with the training hot path and convert cold-data access into predictable, hideable, batched background traffic for scalable MoE training.

    I. Problem Background: High Bandwidth and Large Capacity Should Not Be Tightly Coupled

    When training large-scale Mixture-of-Experts (MoE) models on clusters with 10,000 or even 100,000 accelerators, the memory system often faces three simultaneous tensions: compute units require extremely high data throughput; optimizer states require capacity far larger than the working set; and die and package costs must remain within a range that can be deployed at scale.

    Traditional high-bandwidth memory typically obtains bandwidth by adding stack layers, widening interfaces, and deploying more memory stacks. It offers low access latency and simple control, but bandwidth and capacity often grow together. For MoE models, the data on the high-frequency access path does not necessarily include all model states:

    • Current micro-batch activations and gradients require high bandwidth.
    • Expert weights participating in the current computation need fast reads.
    • First- and second-order optimizer states are accessed less frequently but are large.
    • Full-precision master weights need stable storage but do not have to reside permanently in the highest-bandwidth memory.

    Placing all data in large-capacity, high-bandwidth memory leads to idle capacity and cost waste. A more reasonable approach is to separate bandwidth and capacity: use small-capacity, extremely high-bandwidth 3D DRAM for hot data, and large-capacity LPDDR for cold data and persistent state.

    II. Overall Architecture: Hot, Warm, and Cold Tier Division of Labor

    The proposed per-accelerator memory system consists of a compute logic die, near-logic 3D DRAM, large-capacity LPDDR, and off-chip interconnect controllers.

    1. 3D DRAM Hot Tier

    3D DRAM is stacked near the compute logic through vertical interconnects. It mainly serves the following data:

    1. Current micro-batch activations;
    2. Gradients produced by backpropagation;
    3. Expert weights within the current scheduling window;
    4. Low-precision compute copies;
    5. Temporary buffers for communication fusion, reordering, and reduction.

    The core goal of this tier is not maximum capacity, but using a smaller capacity to obtain high bandwidth and lower access latency. For MoE training, expert activation has clear sparsity and phase behavior, making windowed caching suitable: retain only the current layers, the current experts, and data being communicated.

    2. LPDDR Cold Tier

    LPDDR handles capacity-first storage and can be configured as hundreds of GB of local memory. It mainly holds:

    • FP32 or BF16 master weights;
    • First- and second-order states for AdamW and similar optimizers;
    • High-precision temporary data for parameter updates;
    • Checkpoint data;
    • Expert weights not yet in the current compute window;
    • Redundant copies for training recovery and fault tolerance.

    LPDDR is not required to provide peak bandwidth for all compute paths. Instead, prefetching, bulk transfers, quantization compression, and asynchronous pipelining continuously supply data that will soon be used to 3D DRAM.

    3. On-Chip Buffers and Data Movement Engine

    An independent data movement engine between the two memory tiers should support:

    • Hierarchical DMA;
    • Tensor slicing;
    • Online quantization and dequantization;
    • Multi-path prefetching;
    • Transfer compression;
    • Gradient merging;
    • Double- or multi-buffered pipelines;
    • Access priority and bandwidth quota control.

    If only compute cores initiate ordinary reads and writes, control overhead can offset the benefits of memory tiering. The movement engine should understand tensor layout, expert ID, layer ID, and micro-batch boundaries, and replace many fine-grained requests with large contiguous accesses where possible.

    III. Capacity Estimation: Calculate the Working Set First, Then Size 3D DRAM

    3D DRAM capacity should not be configured directly from the total model parameter count. It should be estimated around the concurrent working set. The following approximate model can be used:

    [
    C{3D} \ge C{act}+C{grad}+C{expert}+C{buf}+C{margin}
    ]

    Where:

    • (C_{act}): activation capacity for the current pipeline stage;
    • (C_{grad}): backpropagation gradient capacity;
    • (C_{expert}): active expert weight capacity within the scheduling window;
    • (C_{buf}): communication, reordering, quantization, and reduction buffers;
    • (C_{margin}): safety margin for hiding access jitter.

    With double buffering, activation- and gradient-related capacity usually needs to be counted as two or more copies. If expert weights use low-precision copies, then:

    [
    C{expert}=N{active}\times S{expert}\times r{quant}
    ]

    Where (N{active}) is the number of experts actually needed within the same time window, (S{expert}) is the high-precision storage size of a single expert, and (r_{quant}) is the byte ratio after quantization.

    This shows that 3D DRAM capacity is mainly determined by three factors: micro-batch size, pipeline parallel depth, and expert prefetch window, rather than by full model parameter count alone. As the full model grows, more pressure shifts to LPDDR and node-level storage. When active experts are more concentrated, 3D DRAM capacity demand may instead decrease.

    IV. Bandwidth Estimation: Focus on Effective Bandwidth, Not Interface Peak

    The most easily misjudged metric in training systems is peak memory bandwidth. Theoretical peak does not equal usable training bandwidth. What matters is effective bandwidth:

    [
    B{eff}=B{peak}\times \eta{layout}\times \eta{schedule}\times \eta_{reuse}
    ]

    Where:

    • (\eta_{layout}) represents the utilization of contiguous and parallel access by tensor layout;
    • (\eta_{schedule}) represents the degree of overlap between prefetching and computation;
    • (\eta_{reuse}) represents the reuse effect of data in 3D DRAM.

    For each training stage, bandwidth constraints can be established separately:

    [
    B{req}=B{weight}+B{activation}+B{gradient}+B_{communication}
    ]

    If weights are reused across multiple micro-batches, (B{weight}) decreases significantly. If activation checkpointing and recomputation strategies are used appropriately, (B{activation}) can also decrease. Conversely, imbalanced expert routing, frequent communication reordering, and non-contiguous tensor layouts all increase actual bandwidth demand.

    Therefore, the design goal should not simply be to pursue a peak of several TB/s. Instead, it should verify whether, under representative workloads, 3D DRAM can hide weight movement, activation access, and gradient writeback within the compute pipeline. Only when memory access cannot be covered by computation does adding bandwidth provide direct benefit.

    V. How the LPDDR Cold Tier Avoids Becoming a System Bottleneck

    LPDDR has lower bandwidth than 3D DRAM, but it can handle high-capacity data through tiered scheduling. The core methods include the following.

    1. Early Prefetching

    The compiler or runtime predicts, based on expert routing results, the expert set that the next layer will access, and performs asynchronous movement during the current compute stage. The prefetch window should not be too large, or it will occupy too much 3D DRAM space; it should not be too small, or it cannot cover LPDDR access latency.

    2. Low-Precision Weight Residency

    LPDDR can store high-precision master weights while 3D DRAM retains low-precision compute copies. After computation, only necessary gradients or update results are written back to the cold tier. This reduces high-bandwidth memory capacity requirements and lowers the number of transferred bytes.

    3. Blocked Optimizer State Updates

    Optimizer states do not need to be moved entirely after every compute operation. They can be partitioned by layer, expert, or parameter block, with gradients accumulated and then updated in batches. A larger update window improves LPDDR bandwidth utilization but requires more cache and more complex consistency management.

    4. Access Priority Isolation

    Master weight prefetching, optimizer writeback, and checkpoint writes must not contend for all bandwidth. Hardware should provide priority queues and bandwidth quotas to ensure that forward and backward compute paths have priority, while background state writeback uses residual bandwidth.

    VI. Intra- and Inter-Node Communication Constraints

    The bottleneck in 100,000-accelerator training is not only memory but also communication. Assuming high-bandwidth intra-node interconnect and per-accelerator unidirectional inter-node network bandwidth on the order of about 100 GB/s, training efficiency is jointly limited by the following factors:

    [
    T{step}=\max(T{compute},T{memory},T{intra},T_{inter})
    ]

    Where:

    • (T_{compute}): matrix compute and expert compute time;
    • (T_{memory}): data movement time between 3D DRAM and LPDDR;
    • (T_{intra}): intra-node expert exchange and gradient reduction time;
    • (T_{inter}): inter-node communication time.

    MoE models usually require token routing, expert exchange, and result return. If expert distribution is uneven, communication volume can burst, causing network link and receive buffer congestion. The system therefore needs to optimize both routing balance and communication scheduling, for example by limiting per-expert capacity, bucketing tokens, coalescing small messages, using hierarchical reduction, and overlapping communication with matrix computation as much as possible.

    At the 100,000-accelerator scale, average communication bandwidth alone is not enough. Tail latency, congestion spread, and fault retries also matter. A small number of slow nodes can slow global synchronization, so the runtime needs to support faulty accelerator isolation, local retry, and checkpoint recovery.

    VII. Compute Configuration: Avoid Mismatch Between Compute Cores and the Memory System

    If compute peak is too high while 3D DRAM bandwidth is insufficient, compute units will wait for data for long periods. If compute peak is too low, expensive high-bandwidth memory cannot be fully utilized. The compute-to-memory ratio can be used for an initial assessment:

    [
    I=\frac{FLOPs}{Bytes}
    ]

    When the arithmetic intensity of the actual workload is lower than the hardware compute-to-memory ratio, the system is bandwidth-bound. Only when arithmetic intensity is higher can the system potentially become compute-bound.

    Therefore, the scale of TensorCore-like compute units should be determined through simulator sweeps rather than by directly pursuing the highest peak. At a minimum, the following variables should be swept:

    • Low-precision matrix compute peak;
    • 3D DRAM bandwidth;
    • LPDDR bandwidth;
    • 3D DRAM capacity;
    • Prefetch window;
    • Micro-batch size;
    • Expert parallelism;
    • Intra- and inter-node communication bandwidth.

    The final choice should keep the idle ratios of compute, memory, and communication low under the target training configuration while retaining margin for process and workload variation. For highly sparse MoE, blindly increasing compute peak is usually less effective than improving expert load balance and data reuse.

    VIII. Software Stack Design: Hardware Tiering Must Be Understood by the Compiler

    Whether a hybrid memory architecture can be deployed depends heavily on the software stack. The compiler and runtime should provide at least the following capabilities:

    1. Automatically identify the storage tier for parameters, activations, gradients, and optimizer states;
    2. Generate prefetch and writeback plans from the compute graph;
    3. Perform lifetime analysis for expert weights;
    4. Merge small memory access requests;
    5. Dynamically adjust caching based on routing results;
    6. Insert verifiable synchronization points between communication and computation;
    7. Fall back to recomputation or shrink the prefetch window automatically when capacity is insufficient.

    An offline simulation and online monitoring closed loop is recommended. In the offline stage, use real model structure, routing statistics, and tensor sizes to simulate different capacity, bandwidth, and parallelism strategies. In the online stage, collect cache hit rate, LPDDR queue depth, 3D DRAM utilization, communication wait time, and expert skew to correct the scheduling model.

    IX. Reliability and Engineering Implementation Considerations

    3D stacked structures require particular attention to thermal management, yield, signal integrity, and serviceability. High bandwidth means higher power density, and thermal coupling between the logic layer and memory layers can affect long-term stability. Chip design should therefore include:

    • Per-partition temperature monitoring;
    • Dynamic bandwidth throttling;
    • Memory error correction and bad block management;
    • Link health detection;
    • Periodic checkpoints of training state;
    • Single-accelerator or single-node fault recovery;
    • Consistency checks for parameters and optimizer states.

    In addition, all high-precision state should not be stored only in the LPDDR of a single accelerator. For long-running training jobs, node-level or cluster-level persistent storage should be combined into a hierarchical checkpointing mechanism to avoid large-scale rollback caused by local failures.

    X. Conclusion: Replace Capacity Stacking with Working-Set Design

    The core value of a 3D DRAM + LPDDR hybrid memory architecture is not simply adding another memory medium, but redefining the data flow of a training chip. 3D DRAM handles data that must be accessed quickly right now; LPDDR handles large-capacity data with non-contiguous access; off-chip storage handles persistence and recovery data.

    For 10,000- and 100,000-accelerator MoE training, the design process should follow these principles:

    1. First calculate the hot working set based on micro-batch size, expert activity, and pipeline depth.
    2. Then determine 3D DRAM size based on effective bandwidth rather than peak bandwidth.
    3. Store master weights and optimizer states in tiers to avoid wasting high-bandwidth memory capacity.
    4. Hide LPDDR latency with prefetching, double buffering, and communication-compute overlap.
    5. Use a simulator to jointly sweep capacity, bandwidth, compute, and communication parameters.
    6. Use per-step training time, energy efficiency, cost, and fault recovery capability as comprehensive metrics.

    Under this architecture, the system does not need to build all memory as the highest-bandwidth memory, nor does it need to simply pursue extremely large-capacity, high-bandwidth stacks. A truly reasonable solution is to let high-bandwidth resources precisely cover the training hot path and use software scheduling to turn cold-data access into predictable, hideable, batch-processable background traffic. This can simultaneously achieve higher memory utilization, lower per-accelerator cost, and more stable training efficiency in large-scale clusters.