Convolutional Layers: Deep Learning's Cache Hotspot

Convolutional layers are frequently identified as major cache miss hotspots in deep learning, particularly when data layouts like NCHW lead to inefficient memory access patterns during filter sliding operations.

The top 3

  1. Top 3 Data Types Driving Conv Cache Misses: Input feature maps are the primary cause of cache misses in convolutional layers due to their extensive reuse across overlapping receptive fields, followed by filter weights for their often large size, and then output feature maps during accumulation.
  2. Most Cache-Straining Convolutional Layer Parameters: Large kernel sizes, high input and output channel counts, and deep network architectures significantly increase the memory footprint and data access patterns, leading to greater cache pressure and misses.
  3. Direct Performance Hits from Conv Cache Bottlenecks: Cache misses in convolutional layers directly lead to increased memory latency, higher energy consumption from frequent off-chip memory access, and reduced computational throughput, significantly hindering overall deep learning performance.

Sources

Open the full topic