Skip to main content
QUICK REVIEW

[Paper Review] On Vectorization of Deep Convolutional Neural Networks for Vision Tasks

Jimmy Ren, Xu Li|arXiv (Cornell University)|Jan 29, 2015
Advanced Neural Network ApplicationsComputer Science19 references30 citations
TL;DR

This paper proposes a systematic vectorization framework for deep convolutional neural networks (CNNs) to accelerate training and inference across vision tasks. By reformulating CNN operations as matrix and vector computations, the authors implement six vectorized variants in MATLAB, demonstrating that optimal batch size varies significantly between training and testing, and present a unified framework supporting both high-level (e.g., detection) and low-level (e.g., denoising) vision tasks with state-of-the-art speed performance.

ABSTRACT

We recently have witnessed many ground-breaking results in machine learning and computer vision, generated by using deep convolutional neural networks (CNN). While the success mainly stems from the large volume of training data and the deep network architectures, the vector processing hardware (e.g. GPU) undisputedly plays a vital role in modern CNN implementations to support massive computation. Though much attention was paid in the extent literature to understand the algorithmic side of deep CNN, little research was dedicated to the vectorization for scaling up CNNs. In this paper, we studied the vectorization process of key building blocks in deep CNNs, in order to better understand and facilitate parallel implementation. Key steps in training and testing deep CNNs are abstracted as matrix and vector operators, upon which parallelism can be easily achieved. We developed and compared six implementations with various degrees of vectorization with which we illustrated the impact of vectorization on the speed of model training and testing. Besides, a unified CNN framework for both high-level and low-level vision tasks is provided, along with a vectorized Matlab implementation with state-of-the-art speed performance.

Motivation & Objective

  • To investigate how different degrees of vectorization impact the speed of deep CNN training and inference.
  • To develop a unified computational framework that supports both high-level (e.g., classification) and low-level (e.g., denoising) vision tasks.
  • To provide a transparent, vectorized MATLAB implementation (VCNN) that enables high performance and facilitates hardware porting.
  • To identify optimal batch sizes for training versus testing, which significantly affect runtime efficiency.

Proposed method

  • Reformulate core CNN operations—convolution, pooling, ReLU, and fully connected layers—as matrix and vector operations to enable efficient parallelization.
  • Implement six variants of CNNs with increasing levels of vectorization, from basic to fully optimized, to compare performance trade-offs.
  • Use mini-batch processing to vectorize across multiple input samples, enabling efficient GPU-style parallel execution.
  • Design a single network architecture that shares weights across heterogeneous input sizes, enabling efficient multi-scale object detection without background noise.
  • Apply the vectorized framework to low-level vision tasks such as image denoising and deconvolution by removing pooling and fully connected layers.
  • Develop a novel training scheme for multi-object detection using variable-sized inputs, leveraging weight sharing across different input dimensions.

Experimental results

Research questions

  • RQ1How does varying the degree of vectorization affect the training and inference speed of deep CNNs?
  • RQ2What is the optimal batch size for training versus testing in deep CNNs, and how does it vary across network architectures?
  • RQ3Can a single vectorized CNN framework efficiently handle both high-level vision tasks (e.g., classification) and low-level vision tasks (e.g., denoising)?
  • RQ4How can heterogeneous input sizes be effectively handled in a single CNN model without introducing background noise or requiring regression-based approaches?
  • RQ5What are the performance gains of vectorized matrix operations in real-time object detection systems?

Key findings

  • The optimal batch size for training and testing differs significantly, even for the same network, and naive reuse of training batch size leads to substantial speed loss.
  • Vectorization of key CNN operations using matrix and vector primitives enables high parallelism and achieves state-of-the-art speed in MATLAB-based implementations.
  • The proposed vectorized framework successfully supports both high-level tasks (e.g., multi-object detection) and low-level tasks (e.g., image denoising and deblurring) within a single unified architecture.
  • A novel training scheme using variable-sized inputs and weight sharing across layers reduces false alarms and improves efficiency in real-time multi-scale detection.
  • The six implemented vectorization levels show measurable performance differences, confirming that vectorization strategy directly impacts runtime efficiency.
  • The vectorized MATLAB implementation (VCNN) achieves high performance and is publicly available, enabling porting to other platforms and hardware.

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.