Skip to main content
QUICK REVIEW

[Paper Review] Optimally Scheduling CNN Convolutions for Efficient Memory Access

Arthur Stoutchinin, Francesco Conti|arXiv (Cornell University)|Feb 4, 2019
Advanced Neural Network ApplicationsComputer Science32 references21 citations
TL;DR

This paper proposes an analytical memory bandwidth model for optimizing CNN convolution loop-nest scheduling in accelerators with application-managed buffers, enabling up to 14× reduction in off-chip memory traffic. By accurately modeling data reuse and buffer constraints, the method identifies non-trivial dataflow schedules that minimize bandwidth while remaining implementable in practice, validated via a real HWC accelerator prototype with 0.5% prediction error.

ABSTRACT

Embedded inference engines for convolutional networks must be parsimonious in memory bandwidth and buffer sizing to meet power and cost constraints. We present an analytical memory bandwidth model for loop-nest optimization targeting architectures with application managed buffers. We applied this model to optimize the CNN convolution loop-nest. We show that our model is more accurate than previously published models. Using this model we can identify non-trivial dataflow schedules that result in lowest communication bandwidth given tight local buffering constraints. We show that optimal dataflow schedules are implementable in practice and that our model is accurate with respect to a real implementation; moreover, we introduce an accelerator architecture, named Hardware Convolution Block (HWC), which implements the optimal schedules, and we show it achieves up to 14x memory bandwidth reduction compared to a previously published accelerator with a similar memory interface, but implementing a non-optimal schedule.

Motivation & Objective

  • To address the critical bottleneck of memory bandwidth in embedded CNN accelerators under tight buffer size constraints.
  • To develop a more accurate memory performance model tailored for application-managed buffers, as opposed to cache-based models.
  • To identify optimal dataflow schedules that minimize external memory traffic while respecting limited on-chip storage.
  • To validate the model through a real hardware implementation of a CNN accelerator (HWC) with measurable bandwidth reduction.
  • To enable automatic generation of efficient dataflow schedules from standard CNN frameworks like Caffe or TensorFlow.

Proposed method

  • Develops an analytical memory bandwidth model that computes exact off-chip memory traffic and local buffer requirements for tiled CNN convolution loop-nests.
  • Applies the model to explore tiling parameters (iss, jss) across input, output, and filter dimensions to minimize data movement.
  • Uses the model to guide architectural exploration of a shared memory cluster with a Hardware Convolution Block (HWC) for optimal dataflow scheduling.
  • Employs high-level synthesis to implement the HWC using only 1KB of internal storage and 3×32-bit memory ports.
  • Validates model accuracy by comparing predicted memory traffic with actual measurements from the HWC prototype, showing ≤0.5% deviation.
  • Compares the HWC’s dataflow schedule against a state-of-the-art accelerator (HWCE) under identical memory interface constraints.

Experimental results

Research questions

  • RQ1How can memory bandwidth be minimized in CNN accelerators with limited on-chip buffer space?
  • RQ2To what extent do existing cache-based memory models overestimate buffer requirements in application-managed memory systems?
  • RQ3What non-trivial dataflow schedules achieve optimal memory traffic reduction under tight buffer constraints?
  • RQ4Can an analytical model accurately predict real-world memory access patterns in CNN accelerators?
  • RQ5How does the proposed dataflow schedule compare in performance and efficiency to existing accelerators with similar memory interfaces?

Key findings

  • The proposed memory model reduces memory traffic by 5–15% compared to state-of-the-art models across multiple CNN topologies.
  • The HWC accelerator, based on the optimal schedule, achieves up to 14× reduction in memory bandwidth compared to the HWCE accelerator with identical memory interface.
  • The model’s predictions deviate by at most 0.5% from actual measured memory traffic in real hardware, confirming high accuracy.
  • The HWC achieves a peak throughput of 16 MAC operations per cycle using only 1KB of internal storage and 3×32-bit memory ports.
  • The HWC’s dataflow schedule avoids redundant storage of partial accumulation sums, reducing memory traffic compared to HWCE’s linear buffering approach.
  • The HWC’s reduced memory access frequency leads to lower energy consumption and reduced contention in shared memory clusters.

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.