A Diagrammatic Approach to Improve Computational Efficiency in Group Equivariant Neural Networks

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Pearce-Crump, Edward, Knottenbelt, William J.
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910745617235968
author Pearce-Crump, Edward
Knottenbelt, William J.
author_facet Pearce-Crump, Edward
Knottenbelt, William J.
contents Group equivariant neural networks are growing in importance owing to their ability to generalise well in applications where the data has known underlying symmetries. Recent characterisations of a class of these networks that use high-order tensor power spaces as their layers suggest that they have significant potential; however, their implementation remains challenging owing to the prohibitively expensive nature of the computations that are involved. In this work, we present a fast matrix multiplication algorithm for any equivariant weight matrix that maps between tensor power layer spaces in these networks for four groups: the symmetric, orthogonal, special orthogonal, and symplectic groups. We obtain this algorithm by developing a diagrammatic framework based on category theory that enables us to not only express each weight matrix as a linear combination of diagrams but also makes it possible for us to use these diagrams to factor the original computation into a series of steps that are optimal. We show that this algorithm improves the Big-$O$ time complexity exponentially in comparison to a naïve matrix multiplication.
format Preprint
id arxiv_https___arxiv_org_abs_2412_10837
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle A Diagrammatic Approach to Improve Computational Efficiency in Group Equivariant Neural Networks
Pearce-Crump, Edward
Knottenbelt, William J.
Machine Learning
Combinatorics
Representation Theory
Group equivariant neural networks are growing in importance owing to their ability to generalise well in applications where the data has known underlying symmetries. Recent characterisations of a class of these networks that use high-order tensor power spaces as their layers suggest that they have significant potential; however, their implementation remains challenging owing to the prohibitively expensive nature of the computations that are involved. In this work, we present a fast matrix multiplication algorithm for any equivariant weight matrix that maps between tensor power layer spaces in these networks for four groups: the symmetric, orthogonal, special orthogonal, and symplectic groups. We obtain this algorithm by developing a diagrammatic framework based on category theory that enables us to not only express each weight matrix as a linear combination of diagrams but also makes it possible for us to use these diagrams to factor the original computation into a series of steps that are optimal. We show that this algorithm improves the Big-$O$ time complexity exponentially in comparison to a naïve matrix multiplication.
title A Diagrammatic Approach to Improve Computational Efficiency in Group Equivariant Neural Networks
topic Machine Learning
Combinatorics
Representation Theory
url https://arxiv.org/abs/2412.10837