Abstract
Computation in several real-world applications such as probabilistic machine learning, sparse linear algebra, and robotic navigation can be modeled as irregular directed acyclic graphs (DAGs). The irregular data dependencies in DAGs pose challenges to parallel execution on general-purpose CPUs and GPUs, resulting in severe under-utilization of the hardware. This article proposes the DAG Processing Unit (DPU), a specialized 28-nm processor designed for the efficient execution of irregular DAGs. The DPU achieves a speedup of 5.1× and 20.6× over state-of-the-art CPU and GPU implementations while operating at a power budget of 0.23 W, resulting in a peak efficiency of 538 GOPS/W.
Introduction: The "Irregularity Tax"
Many emerging applications—from robotic navigation to sparse neural networks—are modeled as Directed Acyclic Graphs (DAGs). In these graphs, nodes represent operations and edges represent data dependencies. While CPUs and GPUs excel at processing "regular" graphs (like standard dense neural networks), many real-world problems produce highly irregular DAGs where sparsity exceeds 99%.
On standard hardware, this irregularity imposes an "irregularity tax" due to three major factors:
- SIMD Under-utilization: Irregular dependencies prevent the use of vector instructions, leaving the majority of a GPU's compute power idle.
- Memory Bottlenecks: Random memory access patterns lead to frequent cache misses and prevent memory coalescing.
- Synchronization Overhead: Parallelizing these graphs requires frequent barriers. On a CPU or GPU, these barriers can take thousands of cycles.
The DPU Architecture
To address these challenges, the DPU was designed from the ground up with a specialized architecture:
- Asynchronous Compute Units (CUs): The DPU features 64 CUs that execute independent instruction streams, avoiding the lockstep limitations of SIMD.
- Decoupled Instruction Streams: Each CU splits tasks into parallel streams for loading, processing, and storing. This allows the hardware to prefetch data into local scratchpads, effectively hiding memory latency.
- Hardware-Supported Synchronization: A dedicated Global Sync Unit enables all 64 CUs to synchronize in a single clock cycle using a hardware tree, a massive improvement over software-based barriers.
- Asymmetric Interconnect: By recognizing that data "fan-out" (one output to many inputs) is more common than "fan-in," the designers implemented an asymmetric crossbar. This reduced interconnect area and energy by 45% without sacrificing performance.
- Precision-Scalable Posit Arithmetic: The DPU utilizes Posit arithmetic instead of standard floating-point. Posits offer superior dynamic range and accuracy for small values. Crucially, the arithmetic units are scalable, capable of performing one 32-bit, two 16-bit, or four 8-bit operations per cycle.
Experimental Results
The DPU was evaluated using Probabilistic Circuits (PC) from the UCI machine learning repository and Sparse Matrix Triangular Solves (SpTRSV) from the SuiteSparse benchmark suite.
The 28-nm silicon chip demonstrated transformative efficiency compared to an Intel Xeon Gold CPU and an NVIDIA RTX 2080Ti GPU:
- Performance: The DPU achieved a 5.1× speedup over the CPU and 20.6× over the GPU on average.
- Power and Efficiency: The DPU operates at just 0.23W. Its peak efficiency of 538 GOPS/W is 1,350× better than the CPU and 9,000× better than the GPU.
- Utilization: The architecture is not limited to irregular tasks; it achieved 97.5% utilization on dense matrix multiplication.
Conclusion and Future Work
The DPU demonstrates that specialized hardware can virtually eliminate the overhead associated with irregular computational graphs. While current limitations include a requirement for static graph structures and on-chip memory constraints (256KB scratchpad), the DPU sets a new benchmark for energy-efficient processing in probabilistic ML and sparse linear algebra. Future work will focus on scaling the architecture and addressing off-chip memory latency.
Summary updated