On the Matrix Form of the Quaternion Fourier Transform and Quaternion Convolution

Giorgos Sfikas, George Retsinas · DOI

Abstract

Quaternions provide a robust mathematical framework for processing multi-channel signals, such as color images, by treating them as holistic entities rather than independent channels. However, the non-commutative nature of quaternion multiplication has historically complicated the application of standard signal processing tools like the Fourier Transform. This paper introduces a rigorous matrix-based framework for the Quaternionic Fourier Transform (QFT) and quaternionic convolutions. By deriving the eigenstructure of quaternionic circulant matrices, the authors present a method to compute spectral norms orders of magnitude faster than existing techniques. This efficiency enables the practical application of Lipschitz bounding in Quaternionic Neural Networks (QNNs), leading to significant improvements in model generalization and accuracy.

Introduction

In traditional digital signal processing, color images are typically decomposed into three independent monochrome channels (Red, Green, and Blue). This approach often fails to capture the "cross-channel dynamics"—the inherent correlations between color components. Quaternions, which are four-dimensional hypercomplex numbers, offer a natural representation for such data, where each pixel is treated as a single quaternionic unit.

Despite their potential, quaternions are mathematically "stubborn." Because quaternion multiplication is non-commutative ($ab \neq ba$), defining fundamental operations like the Discrete Fourier Transform (DFT), determinants, and eigenvalues is significantly more complex than in the real or complex domains. Specifically, computing the spectral norm (the largest singular value) of a quaternionic convolution layer—a prerequisite for stabilizing and regularizing deep learning models—has been computationally prohibitive. This research bridges the gap between quaternionic theory and practical, efficient deep learning.

Methodology

The Matrix Quaternionic Fourier Transform

The authors define a class of Quaternionic Fourier matrices ($Q_N^\mu$) and prove that these matrices are unitary and symmetric. This formulation generalizes the standard complex DFT to the quaternionic domain. A key theoretical contribution is the proof that the columns of the QFT matrix serve as left eigenvectors of quaternionic circulant matrices, which are the matrix representations of quaternionic convolutions.

Simplex and Perplex Decomposition

To overcome the computational hurdles of 4D math, the authors utilize a "simplex" and "perplex" decomposition. By splitting quaternions into components that commute with the QFT axis (simplex) and those that conjugate-commute (perplex), they reduce complex quaternionic operations into manageable $1 \times 1$ or $2 \times 2$ Hermitian matrix blocks. This decomposition is the engine behind the paper's speed gains, allowing for the analysis of massive convolution matrices through small, localized computations.

Lipschitz Bounding in QCNNs

The ability to efficiently compute singular values allows the authors to implement Lipschitz regularization. By "clipping" the spectral norms of weights in a Quaternionic Convolutional Neural Network (QCNN), the network is forced to remain Lipschitz-continuous. This property is known to improve model robustness and prevent the exploding gradient problem, ultimately leading to better generalization on unseen data.

Experimental Results

Computational Speedup

The proposed matrix-based method was benchmarked against the standard Quaternionic Singular Value Decomposition (QSVD) using synthetic random filters. For a $128 \times 128$ convolution, the proposed method computed singular values in approximately 1.8 seconds. In contrast, the brute-force QSVD method was found to be practically impossible for such dimensions, requiring hours of computation and excessive memory overhead.

Performance on CIFAR-10

The authors evaluated their approach using a Quaternionic ResNet32 (QResNet32) on the CIFAR-10 dataset. Applying Lipschitz clipping consistently improved classification accuracy across different model sizes:

  • QResNet32-small: Accuracy increased from 82.77% to 84.16%.
  • QResNet32-large: Accuracy increased from 80.73% to 85.29%.

Furthermore, the choice of the quaternionic axis $\mu$ for the QFT was found to have minimal impact on the final performance, suggesting that the method is robust to initialization parameters.

Discussion and Future Work

While this framework provides a breakthrough for circulant and doubly-block circulant matrices (standard convolutions), extending this efficiency to general, non-circulant quaternionic matrices remains an open challenge. The authors suggest that the matrix forms derived here could be applied to other classical inverse problems, such as quaternionic image deblurring and restoration, which have previously been limited by computational complexity. Future research will also explore the application of these techniques to more diverse architectures, including Quaternionic Transformers.

Summary updated

BibTeX
@misc{sfikas2023matrix,
  author = {Giorgos Sfikas and George Retsinas},
  title = {{On the Matrix Form of the Quaternion Fourier Transform and Quaternion Convolution}},
  year = {2023},
  eprint = {2307.01836},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.01836},
}
Figure