Parallax: Runtime Parallelization for Operator Fallbacks in Heterogeneous Edge Systems

Chong Tang, Hao Dai, Jagmohan Chauhan

TL;DR

Parallax is a novel runtime framework designed to accelerate deep learning inference on mobile edge devices when complex or dynamic operators force a fallback to the CPU. By automatically partitioning computation graphs to expose branch-level parallelism and isolating memory into dedicated arenas, Parallax slashes inference latency by up to 46% and cuts energy consumption by up to 30% without requiring any model modifications or custom kernels.

What Problem Does This Paper Address?

Edge devices increasingly rely on specialized hardware accelerators (like mobile GPUs and NPUs) to run deep neural networks (DNNs) in real time. However, modern DNNs frequently incorporate dynamic control flow (such as conditional branches or loops) and cutting-edge operators that these hardware backends do not support. When this happens, standard mobile frameworks resort to "CPU fallbacks," offloading the unsupported operations back to the host processor.

Existing frameworks handle these fallbacks poorly. They execute fallback operations sequentially, leaving powerful multi-core CPUs largely idle and introducing massive synchronization stalls. Furthermore, their aggressive memory-saving strategies create artificial data dependencies that completely block parallel execution. As shown in the authors' comparison table, prior solutions fail to simultaneously handle dynamic ops, avoid tedious model refactoring, and accelerate parallel CPU fallback execution.

Table 1: Parallax uniquely handles dynamic operators, avoids model/kernel modifications, supports heterogeneous inference and accelerates parallel CPU fallback execution.

Methods

Parallax introduces a compiler-level framework that optimizes and parallelizes fallback execution at runtime through several coordinated stages:

  • Graph Analysis and Partitioning: Parallax non-invasively traverses the model's Directed Acyclic Graph (DAG). It uses an analytical cost model based on mobile SoC parameters to prune "inefficient" accelerator candidates—trimming away small or low-compute subgraphs where the overhead of kernel launch and data transfer would outweigh any acceleration gains.
  • Branch-Layer Extraction: The framework decomposes the remaining graph into a "Branch-Layer" structure, identifying independent execution paths (branches) that can run concurrently on the CPU.
  • Branch-Aware Memory Management: To enable safe parallel execution without data corruption or memory contention, Parallax discards the traditional global heap. Instead, it assigns a dedicated memory arena to each branch. It uses an intelligent bump-pointer allocator for intra-branch buffer reuse and allows cross-arena buffer sharing for non-concurrent layers. Crucially, any dynamic tensor resizing is confined to its originating branch arena.
  • Device-Adaptive Scheduling: A greedy runtime scheduler monitors available system RAM and enforces an adaptive memory budget (with a 30-50% safety margin). If parallel branches fit within the budget, they run concurrently; otherwise, they are executed sequentially to prevent Out-Of-Memory (OOM) crashes.
Figure 1: Parallax overview. (a) Delegation graph optimization trims small delegated segments to reduce synchronization overhead. (b) Branch-layer structure identification classifies nodes to expose parallel execution paths. (c) Branch-aware memory management isolates branch arenas to avoid contention and safely reuse arenas, enabling efficient parallel execution under dynamic tensor shapes.

Datasets

The authors evaluated Parallax using five representative, full-scale DNN models spanning various vision and language tasks:

  • YOLOv8n: Object detection using images from the COCO validation set.
  • Whisper-Tiny: Speech recognition using audio samples from the LibriSpeech test-clean dataset.
  • SwinV2-Tiny: Image classification using images from the ImageNet validation set.
  • CLIP Text Encoder: Text embedding using sentences from the SST-2 dataset.
  • DistilBERT: Sentiment classification evaluated using the SST-2 dataset.
Table 2: Summary of DNN models. Symbolic input dimensions represent variable input size.

Key Insights and Ideas

  • The Memory-Parallelism Trade-off: Standard frameworks minimize memory footprint by aggressively reusing buffers globally. Parallax reveals that this creates artificial data dependencies. Trading a small, controlled amount of memory overhead for isolated branch arenas completely unlocks CPU multi-core parallelization.
  • Less Offloading Can Mean More Speed: Naively pushing every supported operator to an NPU or GPU often degrades performance due to context-switching and data-transfer bottlenecks. Intentionally keeping small segments on the CPU ("trimming") yields faster end-to-end inference.
  • Thread Scaling Diminishing Returns: More threads aren't always better. The authors found that latency improvements peak around 4 parallel threads on mobile CPUs; beyond that, thread management overhead and scheduling contention can fluctuate or degrade performance, especially for smaller models.
Figure 3: Maximum parallel threads vs. latency for Parallax (Pixel 6 CPU-only inference).

Key Results

Parallax was benchmarked against ONNXRuntime (ORT), ExecuTorch, and TensorFlow Lite (TFLite) across three mobile platforms: Google Pixel 6, Huawei P30 Pro, and Redmi K50.

  • Latency Reductions: Parallax achieved a 9% to 46% latency reduction in heterogeneous execution modes compared to ORT, and a 20% to 45% reduction over TFLite. Gains were most notable on complex, fragmented models like Whisper-Tiny and SwinV2-Tiny.
  • Energy Efficiency: By significantly shortening the active inference window, Parallax delivered up to 30% energy savings on workloads like the CLIP Text Encoder.
  • Controlled Memory Overhead: Despite running multiple branches in parallel, Parallax kept memory overhead tightly bounded, averaging a modest 26.5% increase in peak runtime memory across all test cases.
Table 3: End-to-end inference latency (ms) on three devices. Each entry reports the minimum / maximum latency. "Het" denotes heterogeneous inference. "-" indicates not supported due to operator-set mismatch, lack of backend support or inability to handle dynamic input tensors without manual shape fixing (in Parallax). The best results are in bold.

Limitations and Future Work

While Parallax marks a significant step forward, the authors note three primary limitations:

  1. Partial Dynamic-Flow Support: Parallax currently handles fine-grained subgraph delegation for dynamic tensors but still leaves unsupported operators stranded on the CPU. True, full accelerator support for arbitrary dynamic shapes remains an open challenge.
  2. Energy Optimization: The framework is heavily optimized for latency and memory, meaning some parallel scheduling choices can cause temporary power spikes. Future iterations will integrate energy-aware scheduling.
  3. Model Conversion & Compatibility: Real-world deployment often hits snags with precision mismatches and backend-specific quirks, which the current framework does not automatically resolve.

Summary updated

BibTeX
@article{tang2026parallax,
  author = {Chong Tang and Hao Dai and Jagmohan Chauhan},
  title = {{Parallax: Runtime Parallelization for Operator Fallbacks in Heterogeneous Edge Systems}},
  journal = {IEEE Internet of Things Journal},
  year = {2026},
  doi = {10.1109/jiot.2026.3695399},
}
Figure