Skip to main content
QUICK REVIEW

[Paper Review] QuadraLib: A Performant Quadratic Neural Network Library for Architecture Optimization and Design Exploration

Zirui Xu, Fuxun Yu|arXiv (Cornell University)|Apr 1, 2022
Machine Learning and ELMComputer Science14 citations
TL;DR

This paper introduces QuadraLib, a high-performance PyTorch-based library for Quadratic Deep Neural Networks (QDNNs), proposing a novel quadratic neuron architecture that enhances non-linearity and model efficiency. The method achieves up to 31.25% GPU memory reduction and superior accuracy in image classification, object detection, and image generation tasks compared to first-order DNNs, demonstrating QDNNs' potential in object-centric learning.

ABSTRACT

The significant success of Deep Neural Networks (DNNs) is highly promoted by the multiple sophisticated DNN libraries. On the contrary, although some work have proved that Quadratic Deep Neuron Networks (QDNNs) show better non-linearity and learning capability than the first-order DNNs, their neuron design suffers certain drawbacks from theoretical performance to practical deployment. In this paper, we first proposed a new QDNN neuron architecture design, and further developed QuadraLib, a QDNN library to provide architecture optimization and design exploration for QDNNs. Extensive experiments show that our design has good performance regarding prediction accuracy and computation consumption on multiple learning tasks.

Motivation & Objective

  • Address the limited research and deployment of Quadratic Deep Neural Networks (QDNNs) despite their theoretical advantages in non-linearity and model efficiency.
  • Identify and analyze the drawbacks of existing QDNN neuron architectures across four design types to guide improved design.
  • Propose a new quadratic neuron architecture with theoretical and empirical advantages in approximation capability and computational efficiency.
  • Develop QuadraLib, a PyTorch-based library supporting flexible QDNN model construction and optimized training with reduced memory overhead.
  • Demonstrate the superiority of the proposed QDNN across diverse learning tasks, including image classification, object detection, and image generation.

Proposed method

  • Categorize existing QDNNs into four neuron architecture types and analyze their limitations in expressivity, parameter efficiency, and computational cost.
  • Propose a novel quadratic neuron design that models second-order polynomial interactions between inputs and weights, enhancing feature extraction and approximation power.
  • Implement QuadraLib as a PyTorch extension with optimized memory management and computation graphs to reduce training memory usage.
  • Integrate a visualization tool for activation attention to analyze and compare feature extraction patterns between first-order and quadratic layers.
  • Support model conversion from first-order DNNs (e.g., MobileNet-V1, SSD) to QDNNs using the new quadratic layer while preserving performance.
  • Apply the library to benchmark tasks using standard metrics (accuracy, FID, IS, mAP) and compare against first-order DNNs and prior QDNNs.

Experimental results

Research questions

  • RQ1How do different QDNN neuron architectures compare in terms of expressivity, parameter efficiency, and computational cost?
  • RQ2Can a new quadratic neuron design achieve better approximation capability and training efficiency than existing QDNNs?
  • RQ3To what extent can QDNNs improve performance in object detection and image generation tasks compared to first-order DNNs?
  • RQ4How does the feature extraction behavior of quadratic layers differ from that of standard convolutional layers, particularly in object-centric tasks?
  • RQ5Can QuadraLib enable efficient architecture exploration and training optimization for QDNNs in practice?

Key findings

  • The proposed QDNN model achieves 31.25% GPU memory reduction on MobileNet-V1 while maintaining comparable accuracy, with 4×, 3×, and 2× reductions in parameter size, training time, and memory occupancy compared to a baseline QDNN.
  • In object detection on VOC2007, the QDNN without pre-training achieves ~50% performance improvement over first-order DNNs and matches the performance of pre-trained first-order models.
  • With pre-training, the QDNN shows a 0.02 mAP improvement over the first-order DNN, indicating strong generalization and training efficiency.
  • Visualization results show that quadratic layers focus on entire objects (e.g., white circle regions), while first-order layers emphasize edges and background, supporting their advantage in object-centric tasks.
  • In image generation on CIFAR-10, the QDNN achieves a higher Inception Score (IS) and lower Frechet Inception Distance (FID) than SNGAN and other first-order baselines, with better performance than PolyNet.
  • The QDNN model maintains superior performance trade-offs even with increased image size, demonstrating scalability and robustness in efficiency-accuracy trade-offs.

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.