ASPEN: Breaking Operator Barriers for Efficient Parallelization of Deep Neural Networks

Jongseok Park, Kyungmin Bin, Gibum Park, Sangtae Ha, Kyunghan Lee

TL;DR

ASPEN is a novel execution engine that breaks the "synchronization barriers" inherent in modern deep learning frameworks. By decomposing neural networks into fine-grained, tile-based dataflow graphs, it allows CPU cores to execute computations asynchronously and "opportunistically," resulting in inference speedups of up to 4.3x over state-of-the-art systems like TVM.

The Problem: Operator Synchronization Barriers

Most modern Deep Neural Network (DNN) frameworks (like PyTorch or TensorFlow) treat networks as a sequence of tensor operators (e.g., a Convolution layer followed by a ReLU). While this makes networks easy to build, it creates a massive bottleneck in parallel execution: synchronization barriers.

Comparison of operator-based and tile-based execution with and without barriers

In a standard setup, every parallel worker (like a CPU core) must finish its portion of "Operator A" before any worker is allowed to start "Operator B." This "lock-step" execution leads to two major inefficiencies:

  1. Underutilization: If one core finishes its task early, it sits idle waiting for the slowest core to catch up.
  2. Poor Data Locality: Because the entire output of one operator must be completed and often written to main memory before the next begins, the CPU loses the chance to reuse data sitting in its fast local cache.

Methods: Shifting to Tile-Based Dynamic Execution

The authors introduce ASPEN, which shifts the paradigm from operator-based execution to tile-based dynamic execution.

ASPEN system architecture overview

1. Automated Parallelism Unit (APU)

Instead of viewing a layer as one giant operation, the APU breaks it down into "tiles"—tiny, fixed-shape units of computation (e.g., an 8x8 matrix multiplication) that fit perfectly into a CPU’s SIMD registers. It then maps the exact dependencies between these tiles across the entire network. This transforms the DNN into a massive, fine-grained dataflow graph.

2. Distributed Scheduling Engine (DSE)

ASPEN does away with a central coordinator. Instead, every CPU core runs its own DSE. Each DSE independently traverses the tile graph. If a tile’s dependencies are met, the DSE executes it immediately. This allows a single core to "race ahead" through multiple layers of the network if the data is ready, a concept the authors call opportunistic parallelism.

3. The Ready Pool

To manage this without cores stepping on each other's toes, ASPEN uses a highly concurrent "Ready Pool." When a core finishes a tile, it checks if any child tiles are now ready. If so, it might keep one to work on (maximizing cache reuse) and push the others into the pool for other cores to grab.

Datasets and Hardware

The researchers evaluated ASPEN using a variety of industry-standard models to ensure the approach generalizes across different architectures:

  • Computer Vision: VGG-16, ResNet-50, and YOLO-v3.
  • Natural Language Processing: BERT-base, BERT-large, and GPT-2 (124M).
  • Hardware: Testing was performed on high-end consumer and workstation hardware, specifically the AMD Threadripper 3990X (64 cores) and the Intel i9-12900K (which features a mix of Performance and Efficiency cores).

Key Insights

  • Breaking the "Black Box": By treating the internal computations of an operator as visible nodes in a graph, ASPEN uncovers parallel paths that were previously hidden by the framework's abstraction layers.
  • Depth-First over Breadth-First: Standard frameworks execute "breadth-first" (finish the whole layer, then move on). ASPEN leans "depth-first," allowing data to stay in the L1/L2 cache as it moves through successive layers on a single core.
  • Natural Load Balancing: Because cores pull work from a shared pool whenever they are free, ASPEN is inherently great at handling heterogeneous hardware. In their tests on Intel’s hybrid architecture, the fast "P-cores" simply processed more tiles than the "E-cores," without any complex manual tuning.

Key Results

ASPEN demonstrates significant performance leaps over existing state-of-the-art (SOTA) inference engines:

  • Speedup: Compared to TensorFlow, ASPEN is up to 6.2x faster. Compared to highly optimized inference engines like TorchScript and TVM, it achieves speedups of up to 3.2x and 4.3x, respectively.
  • Scaling: On a 64-core machine, ASPEN maintained an experimental parallel fraction of 0.97 to 0.99, meaning it scales almost perfectly with additional hardware—a feat rarely seen in traditional DNN executors.
  • Efficiency: The system significantly outperforms others on NLP models (like GPT-2) where complex dependencies often cause traditional schedulers to stumble.

Limitations and Future Work

While the results are impressive, the authors note a few areas for growth:

  • GPU Implementation: The current proof-of-concept is CPU-only. While the authors argue the logic applies to GPUs (using CUDA Streams), the high overhead of GPU scheduling might require further optimization.
  • Training vs. Inference: ASPEN is currently optimized for inference. Applying this to training is harder because training requires keeping many intermediate "activations" in memory for the backward pass, which could conflict with ASPEN’s aggressive asynchronous execution.
  • Scheduling Overhead: If tiles are made too small, the time spent managing the "Ready Pool" could outweigh the computation time. Finding the "Goldilocks" tile size for every hardware architecture remains a challenge.

Summary updated

BibTeX
@inproceedings{park2023aspen,
  author = {Jongseok Park and Kyungmin Bin and Gibum Park and Sangtae Ha and Kyunghan Lee},
  title = {{ASPEN: Breaking Operator Barriers for Efficient Parallelization of Deep Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=eTp4RetK74},
}
Figure