Skip to main content
QUICK REVIEW

[Paper Review] Deep Tensor Convolution on Multicores

David Budden, Alexander Matveev|arXiv (Cornell University)|Nov 20, 2016
Tensor decomposition and applicationsMathematics32 references7 citations
TL;DR

This paper proposes a highly optimized, multithreaded CPU implementation of N-dimensional Winograd-based convolution for deep learning workloads, leveraging CPU-specific memory access patterns and vectorization to achieve 5–25× higher throughput than state-of-the-art CPU frameworks. The method enables large-scale 3D ConvNets on single-node systems by overcoming GPU memory limitations.

ABSTRACT

Deep convolutional neural networks (ConvNets) of 3-dimensional kernels allow joint modeling of spatiotemporal features. These networks have improved performance of video and volumetric image analysis, but have been limited in size due to the low memory ceiling of GPU hardware. Existing CPU implementations overcome this constraint but are impractically slow. Here we extend and optimize the faster Winograd-class of convolutional algorithms to the $N$-dimensional case and specifically for CPU hardware. First, we remove the need to manually hand-craft algorithms by exploiting the relaxed constraints and cheap sparse access of CPU memory. Second, we maximize CPU utilization and multicore scalability by transforming data matrices to be cache-aware, integer multiples of AVX vector widths. Treating 2-dimensional ConvNets as a special (and the least beneficial) case of our approach, we demonstrate a 5 to 25-fold improvement in throughput compared to previous state-of-the-art.

Motivation & Objective

  • Address the memory ceiling of GPUs that limits the size and expressivity of 3D ConvNets in video and volumetric image analysis.
  • Overcome the impractically slow performance of existing CPU-based ConvNet implementations.
  • Enable large-scale, single-node execution of 3D and higher-order ConvNets by leveraging multicore CPU architectures.
  • Develop a generalization of fast convolution algorithms (Winograd-style) to N-dimensional kernels for CPU-optimized performance.

Proposed method

  • Extend the Winograd fast convolution framework to N-dimensional kernels, enabling efficient computation of 3D and higher-order convolutions.
  • Eliminate the need for manual algorithm hand-crafting by exploiting CPU memory’s relaxed constraints and efficient sparse access patterns.
  • Transform input and kernel data into cache-friendly, AVX-aligned matrix formats to maximize vectorization and CPU utilization.
  • Use matrix decomposition via the Chinese Remainder Theorem to convert sliding window convolutions into sparse, element-wise products.
  • Apply kernel and data transforms (C, B) and inverse transform (A) to reduce convolution to matrix-vector operations, minimizing redundant computation.
  • Optimize data layout and memory access patterns to improve data locality and reduce latency in multicore environments.

Experimental results

Research questions

  • RQ1Can N-dimensional Winograd-style convolution be efficiently and automatically generated for CPU architectures without manual optimization?
  • RQ2To what extent can CPU memory characteristics and vectorization capabilities be exploited to outperform GPU-optimized but memory-constrained implementations?
  • RQ3How does the proposed method scale across multicore systems compared to existing deep learning frameworks on CPU?
  • RQ4Can the performance gap between CPU and GPU implementations for 3D ConvNets be significantly reduced to enable practical large-scale inference?

Key findings

  • The proposed method achieves 0.89 MVox/s throughput on a single CPU core, a 4.9× improvement over TensorFlow (0.18 MVox/s) and Caffe (0.19 MVox/s).
  • With 18 cores, throughput reaches 10.9 MVox/s, representing a 5.8× improvement over TensorFlow (1.77 MVox/s) and a 26.6× improvement over Caffe (0.41 MVox/s).
  • The implementation demonstrates 68% multicore scalability, significantly outperforming TensorFlow (55%) and Caffe (12%).
  • The method enables practical deployment of large 3D ConvNets on single-node systems by overcoming GPU memory limitations.
  • The approach generalizes to 2D ConvNets as a special case, maintaining high performance across different network types.
  • The performance gain is attributed to efficient memory access, AVX vectorization, and reduced reliance on hand-optimized kernels.

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.