PipeOrgan: Efficient Inter-operation Pipelining with Flexible Spatial Organization and Interconnects
Abstract
Modern Deep Neural Networks (DNNs) are increasingly constrained by memory bandwidth rather than raw computational throughput. This is particularly evident in specialized domains like AR/VR, where models exhibit diverse layer shapes and complex skip connections. PipeOrgan is a framework designed to optimize inter-operator pipelining—the process of passing data directly between neural network layers on-chip. By dynamically adjusting pipeline depth and spatial processing element (PE) organization, and leveraging a novel Augmented Mesh (AMP) interconnect, PipeOrgan achieves a 1.95x performance speedup and a 31% reduction in DRAM accesses across demanding workloads.
1. Introduction
The standard "layer-by-layer" execution model for DNNs involves writing intermediate activations to main memory and reading them back for subsequent layers. This process consumes significant energy and bandwidth. Inter-operator pipelining (or layer fusion) mitigates this by keeping data on-chip, forwarding outputs directly to the next layer's processing elements. However, effective pipelining is challenging due to varying activation-to-weight (A/W) ratios, complex skip connections, and potential Network-on-Chip (NoC) congestion.
2. The PipeOrgan Optimization Framework
PipeOrgan addresses these challenges through a two-stage optimization flow that balances memory footprint, compute utilization, and communication overhead.
2.1 Stage 1: Pipelining Optimization
The first stage determines the optimal pipeline depth (number of fused layers) and granularity. The framework uses the Activation-to-Weight (A/W) ratio as a primary heuristic.
- Activation-heavy layers (high A/W) benefit from deep pipelines to maximize data reuse and minimize DRAM traffic.
- Weight-heavy layers (low A/W) favor shallower pipelines to prevent weight-loading from starving the PEs of memory.
As shown in Figure 3, increasing pipeline depth significantly reduces the memory footprint for activation-heavy models like RITNet, whereas weight-heavy models like HandGraphCNN require careful depth management to avoid increasing the footprint.
2.2 Stage 2: Spatial Mapping and NoC Optimization
The second stage maps the logical pipeline to the physical PE array. PipeOrgan explores various spatial organizations beyond traditional rigid blocks. By interleaving "producer" and "consumer" PEs (e.g., in "fine-striped" or "checkerboard" patterns), the framework minimizes the physical distance data must travel.
Figure 1 illustrates how different spatial organizations affect system properties. For instance, "fine-striped" and "fine-grained 2D" organizations offer low hop counts and minimal congestion compared to traditional "blocked" approaches, which often suffer from high path overlaps and traffic jams on the NoC.
3. Hardware Support: Augmented Mesh (AMP)
To support the flexible traffic patterns generated by PipeOrgan, the researchers introduced the Augmented Mesh for Pipelining (AMP). Standard mesh interconnects often struggle with the long-distance jumps required by fused layers with skip connections. AMP enhances the mesh with bypass wires of optimized lengths, reducing hop counts and latency without the complexity of high-radix topologies like Butterfly networks.
4. Evaluation and Results
PipeOrgan was evaluated using XR-bench, a suite of AR/VR workloads including eye segmentation (RITNet), gaze estimation (FBNet), and hand tracking (HandGraphCNN). These models are characterized by diverse A/W ratios and dense skip connections.
Key results include:
- Performance: A geomean speedup of 1.95x compared to state-of-the-art pipelined dataflows like TANGRAM.
- Efficiency: A 31% average reduction in DRAM accesses, critical for battery-powered devices.
- Congestion Management: The combination of PipeOrgan's spatial mapping and the AMP topology significantly reduced worst-case channel loads, enabling efficient handling of complex skip-connection traffic.
5. Conclusion
PipeOrgan demonstrates that efficient inter-operator pipelining requires a holistic approach combining software heuristics for pipeline depth with flexible spatial mapping and specialized hardware interconnects. By tailoring the dataflow to the specific characteristics of each layer, PipeOrgan effectively breaks the memory bottleneck in modern DNN accelerators.
Summary updated