Fully tensorial approach to hypercomplex neural networks
Agnieszka Niemczynowicz, Radosław Antoni Kycia
TL;DR
The paper addresses incorporating hypercomplex algebras into neural networks by representing algebra multiplication as a rank-3 tensor $A_{ij}^{k}$ and integrating this tensor into dense and convolutional layers. It develops general architectures for hypercomplex dense and $k$-D convolutional layers that operate on arbitrary algebra dimensions, and proves a tensor-based universal approximation theorem for hypercomplex perceptrons in non-degenerate algebras. The approach extends prior 4D implementations (e.g., Marcos1, QuaternionicNN2), is compatible with modern tensor frameworks, and is implemented in Hypercomplex Keras, enabling efficient, scalable, and flexible algebraic neural computations. This tensor-centric formulation broadens the applicability of hypercomplex neural networks to data naturally encoded in high-dimensional algebraic elements and offers a practical path to leveraging tensor libraries for advanced algebraic neural models.
Abstract
Fully tensorial theory of hypercomplex neural networks is given. It allows neural networks to use arithmetic based on arbitrary algebras. The key point is to observe that algebra multiplication can be represented as a rank three tensor and use this tensor in every algebraic operation. This approach is attractive for neural network libraries that support effective tensorial operations. It agrees with previous implementations for four-dimensional algebras. The proof of Universal Approximation Theorem for tensor formalism was given.
