TL;DR
The paper introduces Voxel, a fast, compiler-aware end-to-end simulation framework designed to explore the hardware-software co-design space of 3D-stacked AI chips for Large Language Model (LLM) inference. By capturing the unique distributed nature of 3D-stacked memory and compute, Voxel reveals critical bottlenecks like row-buffer conflicts and Network-on-Chip (NoC) contention, providing actionable insights to optimize future chip designs.
What Problem Does This Paper Address?
As Large Language Models (LLMs) grow, they run squarely into the "memory wall"—the computation units spend too much time waiting for data to arrive from memory. Vertically stacking DRAM banks directly on top of AI computation dies using high-density Through-Silicon Vias (TSVs) offers a massive boost in memory bandwidth.
However, evaluating the efficiency of these 3D-stacked AI chips is incredibly difficult. Unlike traditional 2.5D architectures where memory is monolithic and uniform, 3D chips distribute memory banks across the entire chip surface. This creates a highly complex, non-uniform environment where performance depends heavily on how software operators are tiled, how data is mapped to specific memory banks, and how data moves across the Network-on-Chip (NoC). Existing simulators are either tailored for conventional CPUs or assume uniform 2.5D memory, leaving a clear gap for a tool that can simulate the full hardware-software stack of 3D AI chips.
Methods
The authors developed Voxel, an event-driven simulation framework that enables hardware-software co-exploration through several novel techniques:
- Compiler-Aware Interface: Voxel provides a simple API (
compute,copy_data,sync) that allows machine learning compilers (like XLA or TVM) to define custom execution plans, which Voxel translates into an end-to-end execution graph. - Trace Coalescing for Fast Simulation: Simulating millions of memory requests explicitly is too slow. Voxel accelerates DRAM simulation by exploiting repetitive access patterns. It computes a bit-wise XOR "match key" for memory addresses; if two traces share identical match keys, they exhibit identical DRAM timing, allowing Voxel to reuse cached simulation results.
- Thermal and Power Modeling: Since stacking components intensifies heat, Voxel integrates power density tracking. If a region exceeds a safe threshold (defaulting to 0.7 $W/mm^2$ to keep temperatures below 85°C), Voxel dynamically throttles the AI core frequency to simulate realistic thermal constraints.
- Real-Silicon Validation: To ensure accuracy without a physical 3D AI chip on the market, the authors built an emulator using a real Graphcore IPU Mk2 chip, configuring 960 cores as "AI cores" and 512 cores to mimic distributed "DRAM banks."
Datasets
As a systems and architecture paper, Voxel was evaluated using workload traces from several prominent open-source models rather than training datasets:
- LLMs: Llama2-13B, Gemma2-27B, OPT-30B, and Llama3-70B (simulating both the compute-heavy prefill and memory-bound decode stages).
- Vision Transformers: DiT-XL (Diffusion Transformers).
Key Insights and Ideas
- Compute Paradigms Dictate Efficiency: The choice of parallel execution strategy can alter performance by up to 1.84×. The compute-shift paradigm (where shared tensors are circularly shifted across a ring of cores) outperforms standard SPMD and Dataflow models because it eliminates NoC overhead and maximizes the SRAM space available for data prefetching.
- The 3D Bandwidth Paradox: Simply scaling up DRAM bandwidth yields diminishing returns. Because 3D chips use dedicated TSV buses per bank rather than shared buses, row-buffer conflicts become much harder to hide.
- More Cores Can Hurt Bandwidth: Counterintuitively, adding more AI cores can degrade performance for memory-bound workloads. More cores accessing shared tensors leads to interleaved row accesses and severe row-buffer thrashing.
- The "Core Group" Fix: To solve core scalability, the authors propose grouping physically adjacent cores into "core groups" managed by a hardware request tracker. The tracker selectively stalls faster cores to synchronize DRAM requests, drastically reducing row-buffer conflicts.
Key Results
- Simulator Accuracy: Voxel's performance predictions match the real-silicon IPU emulator closely, with an error rate ranging from just 0.24% to 6.8%.
- Trace Cache Efficiency: The trace-coalescing optimization achieved a cache hit rate of 99.91%, compressing simulation times from weeks to hours.
- Mapping Optimizations: A software-aware tensor-to-bank placement strategy reduced row-buffer conflict overhead by an average of 80.68% compared to a uniform layout.
- Core Group Scalability: Implementing core groups of size 8 improved end-to-end decoding performance by up to 58% on a 1,024-core chip configuration.
Limitations and Future Work
While Voxel successfully captures fine-grained hardware-software interactions, its current thermal modeling relies on a simplified, localized power-density threshold approach to minimize simulation overhead. The authors note that temperature-induced DRAM refresh penalties can complicate performance patterns. As a next step, they plan to integrate more sophisticated, complex spatial-temporal thermal networks directly into the framework.
Summary updated