Skip to main content
QUICK REVIEW

[Paper Review] Ordering Chaos: Memory-Aware Scheduling of Irregularly Wired Neural Networks for Edge Devices

Byung Hoon Ahn, Jinwon Lee|arXiv (Cornell University)|Mar 4, 2020
Advanced Neural Network ApplicationsComputer Science16 citations
TL;DR

This paper proposes a memory-aware scheduling framework for irregularly wired neural networks on edge devices, using dynamic programming with graph signature-based subpath reuse and adaptive soft budgeting to minimize peak memory footprint. It achieves 1.86× lower memory usage and 1.76× reduced off-chip traffic compared to TensorFlow Lite, with under one minute of extra compilation time.

ABSTRACT

Recent advances demonstrate that irregularly wired neural networks from Neural Architecture Search (NAS) and Random Wiring can not only automate the design of deep neural networks but also emit models that outperform previous manual designs. These designs are especially effective while designing neural architectures under hard resource constraints (memory, MACs, . . . ) which highlights the importance of this class of designing neural networks. However, such a move creates complication in the previously streamlined pattern of execution. In fact one of the main challenges is that the order of such nodes in the neural network significantly effects the memory footprint of the intermediate activations. Current compilers do not schedule with regard to activation memory footprint that it significantly increases its peak compared to the optimum, rendering it not applicable for edge devices. To address this standing issue, we present a memory-aware compiler, dubbed SERENITY, that utilizes dynamic programming to find a sequence that finds a schedule with optimal memory footprint. Our solution also comprises of graph rewriting technique that allows further reduction beyond the optimum. As such, SERENITY achieves optimal peak memory, and the graph rewriting technique further improves this resulting in 1.68x improvement with dynamic programming-based scheduler and 1.86x with graph rewriting, against TensorFlow Lite with less than one minute overhead.

Motivation & Objective

  • Address the challenge of high peak memory footprint in irregularly wired neural networks deployed on memory-constrained edge devices.
  • Enable deployment of high-accuracy, NAS-generated models with non-regular connectivity on edge hardware.
  • Develop a scalable scheduling algorithm that minimizes activation memory usage during inference.
  • Overcome the intractability of the search space through dynamic programming and adaptive budgeting.
  • Introduce identity graph rewriting to further reduce memory footprint without altering model behavior.

Proposed method

  • Use graph properties to generate unique signatures for repeated subpaths in partial schedules, enabling dynamic programming-based optimization.
  • Embed running memory usage into subpath signatures to guide memory-aware scheduling decisions.
  • Implement adaptive soft budgeting—a lightweight meta-search—to find the optimal memory budget that balances solution quality and compilation time.
  • Apply dynamic programming with pruning based on the adaptive budget to reduce search space without sacrificing optimality.
  • Design an identity graph rewriting technique that restructures the computation graph to expose better scheduling opportunities while preserving mathematical equivalence.
  • Combine dynamic programming, adaptive budgeting, and graph rewriting into a unified compilation pipeline for edge deployment.

Experimental results

Research questions

  • RQ1How can dynamic programming be effectively applied to the scheduling of irregularly wired neural networks with memory constraints?
  • RQ2What techniques can make memory-aware scheduling tractable despite the exponential search space in large graphs?
  • RQ3Can adaptive soft budgeting identify an optimal memory budget that minimizes compilation time while ensuring feasible solutions?
  • RQ4To what extent can identity graph rewriting reduce peak memory footprint without altering model functionality?
  • RQ5How do the proposed techniques compare to existing frameworks like TensorFlow Lite in terms of memory efficiency and compilation overhead?

Key findings

  • The proposed framework reduces peak memory footprint by 1.86× compared to TensorFlow Lite across representative irregular networks.
  • Off-chip memory traffic is reduced by 1.76×, improving energy efficiency and bandwidth utilization.
  • Compilation time increases by less than one minute on average, making the approach practical for real-world deployment.
  • Adaptive soft budgeting successfully identifies near-optimal memory budgets, avoiding both infeasible schedules and excessively long compilation times.
  • Identity graph rewriting enables additional memory savings by restructuring the computation graph to favor lower memory usage.
  • The combination of dynamic programming with subpath signature reuse and adaptive budgeting enables scalable, near-optimal scheduling in large, irregular graphs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.