Abstract
Deploying deep learning models on resource-constrained edge hardware, such as Multi-Core Digital Signal Processors (DSPs) and Field-Programmable Gate Arrays (FPGAs), requires high efficiency and real-time responsiveness. Traditional optimization frameworks often focus on operator-level improvements, which can lead to significant dataflow inefficiencies and hardware underutilization. This paper introduces Xenos, a novel framework that shifts the optimization paradigm from an operator-centric to a dataflow-centric approach. By implementing vertical optimization (operator linking) and horizontal optimization (DSP-aware operator splitting), Xenos addresses data locality mismatches and memory thrashing. Experimental results demonstrate that Xenos outperforms industry-standard frameworks like TVM by up to 17.92x across various vision and sequence models.
Introduction
The proliferation of edge computing has necessitated the deployment of complex neural networks on specialized hardware. While frameworks like TVM and TASO have made strides in automating model optimization, they frequently encounter two primary bottlenecks on edge devices. First, inefficient dataflow scheduling often results in "layout mismatches," where the output format of one layer does not align with the input requirements of the next, causing excessive cache misses. Second, hardware-oblivious parallelism leads to memory thrashing, where compute units remain idle while parameters are swapped in and out of limited local memory. Xenos addresses these challenges by prioritizing the movement of data between layers and aligning computation with specific hardware memory hierarchies.
Methodology
Xenos introduces a two-pillar architecture designed to maximize throughput and minimize latency on edge devices.
Vertical Optimization: Operator Linking
Traditional frameworks treat operators as independent blocks, often resulting in fragmented memory access patterns. Xenos performs a comprehensive scan of the computation graph to identify adjacent operators that disrupt data locality. Through "Vertical Optimization," the framework restructures the inter-operator dataflow so that the producer operator writes its output in the exact sequence required by the consumer operator. This memory-level linking significantly increases cache hit rates and reduces the overhead associated with data reorganization.
Horizontal Optimization: DSP-aware Operator Split (DOS)
To address hardware-specific constraints, Xenos employs hardware-aware heuristics to partition feature maps and split operator parameters. This "Horizontal Optimization" ensures that tasks are divided into "chunks" sized specifically to fit within the private L2 memory of individual compute units (e.g., DSP cores). By ensuring that data remains local to the compute unit during execution, Xenos prevents memory thrashing and allows the hardware to operate at peak theoretical performance.
Distributed Extension: d-Xenos
For large-scale models that exceed the capacity of a single edge device, the framework includes d-Xenos. This extension utilizes a tree-based search to determine optimal partitioning schemes across multiple devices. To maintain synchronization with minimal overhead, d-Xenos implements a bandwidth-optimal ring all-reduce algorithm, facilitating efficient distributed inference.
Experimental Evaluation
Setup
The performance of Xenos was evaluated using seven industry-standard models, including MobileNet, SqueezeNet, ShuffleNet, ResNet18, CentreNet, LSTM, and a compact version of BERT (Bert-S). Testing was conducted on two distinct hardware platforms: the TMS320C6678 Multi-Core DSP and the ZCU102 FPGA.
Performance Results
Xenos demonstrated substantial performance gains over the TVM baseline. On the ZCU102 FPGA platform, speedups ranged from 3.22x to 17.92x. Ablation studies highlighted the individual contributions of the optimization pillars:
- Vertical Optimization: Reduced inference time by 21.2% to 84.9%.
- Horizontal Optimization: Reduced inference time by 17.9% to 96.2%.
Furthermore, d-Xenos showed strong scalability, achieving a speedup of 3.68x to 3.78x when utilizing four devices compared to a single-device baseline. The framework also successfully smoothed memory bursts in DDR and SRAM, ensuring stable execution within tight hardware constraints.
Discussion and Future Work
The success of Xenos underscores the importance of dataflow-centric design in edge AI. By using hardware-informed heuristics rather than exhaustive searches, Xenos can optimize complex graphs with hundreds of operators in less than a second, a significant improvement over the time-intensive search processes used by frameworks like TASO.
Despite these gains, several avenues for future research remain. Currently, Xenos is optimized for single-inference tasks; future iterations could incorporate multi-job scheduling to handle concurrent workloads. Additionally, integrating automated graph substitution rules (such as layer fusion) could further enhance performance. Finally, extending the framework to support cloud-edge collaborative inference would allow for more flexible deployment of massive models across heterogeneous environments.
Conclusion
Xenos provides a robust solution for accelerating deep learning on edge devices by focusing on the movement and locality of data. By aligning software execution with the physical realities of DSP and FPGA memory hierarchies, Xenos achieves order-of-magnitude speedups, paving the way for more responsive and efficient edge intelligence.
Summary updated