Skip to main content
QUICK REVIEW

[Paper Review] Towards a General Purpose CNN for Long Range Dependencies in $N$D

David W. Romero, David M. Knigge|arXiv (Cornell University)|Jun 7, 2022
Advanced Neural Network ApplicationsComputer Science9 citations
TL;DR

This paper introduces the Continuous Convolutional Neural Network (CCNN), a general-purpose CNN architecture that uses continuous convolutional kernels parameterized by a small neural network to model long-range dependencies across arbitrary data lengths, resolutions, and dimensionalities (1D, 2D, 3D+) without architectural changes. The CCNN achieves state-of-the-art or competitive performance across diverse tasks in speech, image, and sequential data, outperforming prior methods on benchmarks like Long Range Arena and Pathfinder with up to 10 percentage points improvement.

ABSTRACT

The use of Convolutional Neural Networks (CNNs) is widespread in Deep Learning due to a range of desirable model properties which result in an efficient and effective machine learning framework. However, performant CNN architectures must be tailored to specific tasks in order to incorporate considerations such as the input length, resolution, and dimentionality. In this work, we overcome the need for problem-specific CNN architectures with our Continuous Convolutional Neural Network (CCNN): a single CNN architecture equipped with continuous convolutional kernels that can be used for tasks on data of arbitrary resolution, dimensionality and length without structural changes. Continuous convolutional kernels model long range dependencies at every layer, and remove the need for downsampling layers and task-dependent depths needed in current CNN architectures. We show the generality of our approach by applying the same CCNN to a wide set of tasks on sequential (1$\mathrm{D}$) and visual data (2$\mathrm{D}$). Our CCNN performs competitively and often outperforms the current state-of-the-art across all tasks considered.

Motivation & Objective

  • To address the limitation of standard CNNs requiring task-specific architectures for different data lengths, resolutions, and dimensionalities.
  • To overcome the inability of discrete convolutional kernels to model long-range dependencies efficiently and to be resolution-agnostic.
  • To develop a single, unified CNN architecture that operates effectively across sequential, visual, and high-dimensional data without structural modifications.
  • To enable parameter-efficient modeling of global context using continuous kernel parameterization that decouples kernel size from parameter count.

Proposed method

  • Replace discrete convolutional kernels with continuous kernels parameterized by a small neural network that maps input coordinates to kernel values.
  • Use coordinate-based input to the kernel generator network, enabling resolution-agnostic operation across different input scales.
  • Construct the same kernel generator network for 1D, 2D, and higher-dimensional data by varying the dimensionality of the coordinate input.
  • Eliminate the need for downsampling, pooling, and task-specific depth by enabling long-range modeling through continuous kernel parameterization.
  • Train a single CCNN architecture on multiple tasks across different data modalities and resolutions without architectural changes.
  • Leverage continuous kernels to model long-range dependencies efficiently, avoiding the parameter explosion of large discrete kernels.

Experimental results

Research questions

  • RQ1Can a single CNN architecture effectively model long-range dependencies across data of arbitrary length, resolution, and dimensionality?
  • RQ2How does continuous kernel parameterization improve performance on long-range sequence and image tasks compared to discrete kernels?
  • RQ3To what extent can a unified CCNN architecture outperform task-specific CNNs on diverse benchmarks including speech, image, and sequential data?
  • RQ4Does the continuous kernel formulation enable better generalization and faster convergence across different data modalities?
  • RQ5Can the same kernel generator network be used for 1D, 2D, and 3D+ data without architectural changes?

Key findings

  • The CCNN with 2 million parameters achieved 96.00% accuracy on the Pathfinder 2D image classification benchmark, outperforming the previous SOTA by nearly 10 percentage points.
  • On the Long Range Arena benchmark, the CCNN achieved an average score of 77.02 across six tasks, surpassing the previous SOTA method (S4) by 16.54 points.
  • In 2D image classification, the CCNN with 2 million parameters reached 95.20% accuracy on CIFAR-100, significantly outperforming ResNet-18 and other prior models.
  • The CCNN achieved 98.44% accuracy on raw speech classification (MFCC 0.5x), outperforming S4 and other SOTA methods on this challenging setting.
  • Models trained on 2D data (e.g., images) converged faster than their 1D flattened counterparts, demonstrating the benefit of preserving spatial structure.
  • The CCNN achieved 99.72% accuracy on sMNIST and 98.84% on pMNIST, matching or exceeding the performance of specialized architectures like S4 and LSSL.

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.