A Novel Non-iterative Training Method for CNN Classifiers Using Gram-Schmidt Process

Basim Azam, Deepthi Praveenlal Kuttichira, Pubudu Sanjeewani, Brijesh K. Verma, Ashfaqur Rahman, Lipo Wang

Abstract

Traditional training of Convolutional Neural Networks (CNNs) relies heavily on iterative backpropagation, which is computationally intensive and sensitive to hyperparameter tuning. This paper introduces CNN-GS, a hybrid approach that replaces the iterative training of classifier layers with a direct, non-iterative mathematical solution. By applying the Gram–Schmidt process to orthogonalize extracted features, the method calculates optimal weights in a single pass. Experimental results on benchmarks like CIFAR-10 and MNIST show that CNN-GS not only achieves competitive or superior accuracy but also avoids common pitfalls like local minima and learning rate sensitivity.

Introduction

Standard CNNs are almost universally trained using backpropagation. While effective, this iterative process is computationally expensive, slow to converge, and highly sensitive to hyperparameters like learning rate. Furthermore, it often gets stuck in local minima or suffers from overfitting in high-dimensional feature spaces.

Comparison between traditional CNN architecture and the proposed CNN-Gram Schmidt method.

The authors identify a specific bottleneck in the Fully Connected (FC) layers used for classification. While convolutional layers excel at feature extraction, training the classifier on top of those features via iterative gradient descent is often inefficient. CNN-GS proposes a deterministic, one-pass method to determine these weights.

Methodology

The CNN-Gram Schmidt (CNN-GS) method bifurcates the training pipeline into two distinct phases: feature extraction and non-iterative classification.

Detailed overview of the CNN-GS training and test pipelines.

1. Feature Extraction

The model utilizes standard convolutional and pooling layers to extract features from raw image data. This can be a custom architecture or a pre-trained backbone such as ResNet or VGG.

2. Non-iterative Classification

Instead of feeding features into a standard FC layer trained via backpropagation, the features are aggregated into a matrix $Z$. The Gram–Schmidt process is then applied to decompose this matrix into an orthogonal matrix $Q$ and an upper triangular matrix $R$.

3. Direct Weight Derivation

Because $Q$ represents an orthonormal basis of the feature space, the optimal weights $W$ can be calculated directly using a least-squares fit: $$W = (Q^T Q)^{-1} Q^T Y$$ If $Q$ is perfectly orthonormal, this simplifies to $W = Q^T Y$. This approach "decorrelates" features, ensuring linear independence before weight assignment, which simplifies the mapping from features to outputs.

Experimental Results

The authors validated CNN-GS across diverse benchmarks, including MNIST, CIFAR-10, and specialized datasets like the Swedish Leaf and Chest X-ray datasets.

  • CIFAR-10: CNN-GS achieved 90.11% test accuracy, outperforming standard CNNs (89.40%) and specialized models like ResNet34 with embedded layers (85.07%).
  • MNIST: The method reached 99.34% accuracy, remaining competitive with state-of-the-art iterative models.
  • Pre-trained Integration: When used as a plug-in for DenseNet121 on MNIST, accuracy improved from 99.36% to 99.56%.

Key Insights

  • Feature Decorrelation: Using Gram–Schmidt to ensure orthogonal feature vectors reduces redundancy and clarifies class boundaries.
  • Deterministic Stability: Unlike Extreme Learning Machines (ELMs) which rely on random initialization, CNN-GS is deterministic, providing stable weight determination.
  • Efficiency: The model demonstrates high accuracy after just a single training iteration, showcasing potential for rapid deployment.

Conclusion and Future Work

The primary limitation of CNN-GS is computational complexity, as the Gram–Schmidt process scales significantly with feature dimensionality. Future work will focus on developing scalable adaptations or approximate orthogonalization techniques to handle larger datasets and exploring applications in Natural Language Processing (NLP).

Summary updated

BibTeX
@article{azam2025novel,
  author = {Basim Azam and Deepthi Praveenlal Kuttichira and Pubudu Sanjeewani and Brijesh K. Verma and Ashfaqur Rahman and Lipo Wang},
  title = {{A Novel Non-iterative Training Method for CNN Classifiers Using Gram-Schmidt Process}},
  journal = {Neural Process. Lett},
  year = {2025},
  doi = {10.1007/s11063-025-11741-1},
}
Figure