Skip to main content
QUICK REVIEW

[Paper Review] HarDNet: A Low Memory Traffic Network

Ping Chao, Chao-Yang Kao|arXiv (Cornell University)|Sep 3, 2019
Advanced Neural Network ApplicationsComputer Science35 references6 citations
TL;DR

HarDNet proposes a novel neural network architecture that minimizes DRAM traffic for intermediate feature maps, a key bottleneck in real-time edge inference. By introducing a harmonic connection pattern and channel balancing to increase computational density (MACs over CIO), HarDNet reduces inference latency by 30–45% compared to ResNet, DenseNet, and SSD-VGG, while maintaining high accuracy.

ABSTRACT

State-of-the-art neural network architectures such as ResNet, MobileNet, and DenseNet have achieved outstanding accuracy over low MACs and small model size counterparts. However, these metrics might not be accurate for predicting the inference time. We suggest that memory traffic for accessing intermediate feature maps can be a factor dominating the inference latency, especially in such tasks as real-time object detection and semantic segmentation of high-resolution video. We propose a Harmonic Densely Connected Network to achieve high efficiency in terms of both low MACs and memory traffic. The new network achieves 35%, 36%, 30%, 32%, and 45% inference time reduction compared with FC-DenseNet-103, DenseNet-264, ResNet-50, ResNet-152, and SSD-VGG, respectively. We use tools including Nvidia profiler and ARM Scale-Sim to measure the memory traffic and verify that the inference latency is indeed proportional to the memory traffic consumption and the proposed network consumes low memory traffic. We conclude that one should take memory traffic into consideration when designing neural network architectures for high-resolution applications at the edge.

Motivation & Objective

  • Address the gap in existing models that prioritize MACs and model size but overlook DRAM traffic for feature maps in real-time applications.
  • Identify memory traffic as a dominant factor in inference latency, especially for high-resolution tasks like semantic segmentation and object detection.
  • Design a neural network architecture that minimizes feature map memory traffic without sacrificing accuracy or computational efficiency.
  • Demonstrate that computational density (MACs over CIO) is a critical metric for predicting inference latency on edge devices.

Proposed method

  • Propose Convolutional Input/Output (CIO) as a platform-independent proxy metric for DRAM traffic, defined as the sum of input and output tensor sizes across all convolutional layers.
  • Apply a soft constraint on the MACs-over-CIO (MoC) ratio to avoid layers with extremely low computational density, such as 1x1 convolutions with high channel ratios.
  • Design a harmonic connection pattern inspired by DenseNet but with reduced concatenation cost by pruning redundant connections.
  • Balance channel widths across layers based on their connectivity to maintain high computational density and reduce memory traffic.
  • Use Nvidia Profiler and ARM Scale-Sim to measure actual memory traffic and validate CIO as a reliable proxy for inference latency.
  • Train and evaluate HarDNet variants (e.g., HarDNet-68, HarDNet-138s) on COCO and VOC datasets for object detection and semantic segmentation.

Experimental results

Research questions

  • RQ1To what extent does memory traffic for feature maps dominate inference latency in high-resolution vision tasks on edge devices?
  • RQ2Can a network architecture be designed to minimize feature map memory traffic without increasing MACs or degrading accuracy?
  • RQ3Is the CIO metric a reliable predictor of actual inference latency across different hardware platforms?
  • RQ4How does computational density (MACs over CIO) influence the latency trade-off between memory traffic and computation?
  • RQ5Can a harmonic connection pattern in a densely connected network reduce memory traffic while preserving or improving accuracy?

Key findings

  • HarDNet reduces inference time by 35% compared to FC-DenseNet-103, 36% compared to DenseNet-264, and 32% compared to ResNet-152 on GPU.
  • HarDNet-68 achieves 30% faster inference than ResNet-50 while improving mAP on COCO and VOC datasets compared to SSD-VGG.
  • The proposed CIO metric correlates strongly with actual DRAM traffic measured via Nvidia Profiler and ARM Scale-Sim, validating its use as a proxy.
  • HarDNet-68 achieves higher mAP (31.7) on COCO and 81.5% on VOC 2007 than SSD-ResNet101, despite having lower ImageNet accuracy.
  • The model achieves a 40% reduction in DRAM traffic for feature maps compared to FC-DenseNet, demonstrating the effectiveness of the harmonic connection and channel balancing strategy.
  • The study shows that memory traffic can dominate inference latency when computational density (MoC) is low, making it a critical design factor for edge AI.

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.