Single-Core Superscalar Optimization of Clifford Neural Layers

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Huang, X. Angelo, Ciranni, Ruben, Spadaccini, Giovanni, Zurita, Carla J. López
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866908574942232576
author Huang, X. Angelo
Ciranni, Ruben
Spadaccini, Giovanni
Zurita, Carla J. López
author_facet Huang, X. Angelo
Ciranni, Ruben
Spadaccini, Giovanni
Zurita, Carla J. López
contents Within the growing interest in the physical sciences in developing networks with equivariance properties, Clifford neural layers shine as one approach that delivers $E(n)$ and $O(n)$ equivariances given specific group actions. In this paper, we analyze the inner structure of the computation within Clifford convolutional layers and propose and implement several optimizations to speed up the inference process while maintaining correctness. In particular, we begin by analyzing the theoretical foundations of Clifford algebras to eliminate redundant matrix allocations and computations, then systematically apply established optimization techniques to enhance performance further. We report a final average speedup of 21.35x over the baseline implementation of eleven functions and runtimes comparable to and faster than the original PyTorch implementation in six cases. In the remaining cases, we achieve performance in the same order of magnitude as the original library.
format Preprint
id arxiv_https___arxiv_org_abs_2510_03290
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Single-Core Superscalar Optimization of Clifford Neural Layers
Huang, X. Angelo
Ciranni, Ruben
Spadaccini, Giovanni
Zurita, Carla J. López
Machine Learning
Within the growing interest in the physical sciences in developing networks with equivariance properties, Clifford neural layers shine as one approach that delivers $E(n)$ and $O(n)$ equivariances given specific group actions. In this paper, we analyze the inner structure of the computation within Clifford convolutional layers and propose and implement several optimizations to speed up the inference process while maintaining correctness. In particular, we begin by analyzing the theoretical foundations of Clifford algebras to eliminate redundant matrix allocations and computations, then systematically apply established optimization techniques to enhance performance further. We report a final average speedup of 21.35x over the baseline implementation of eleven functions and runtimes comparable to and faster than the original PyTorch implementation in six cases. In the remaining cases, we achieve performance in the same order of magnitude as the original library.
title Single-Core Superscalar Optimization of Clifford Neural Layers
topic Machine Learning
url https://arxiv.org/abs/2510.03290