%A Stow,Edward
%A Kelly,Paul H. J.
%D 2022
%J Frontiers in Computer Science
%C
%F
%G English
%K Convolution,Stencil,compiler,Focal-plane sensor-processor,algebra,optimisation
%Q
%R 10.3389/fcomp.2022.921454
%W
%L
%M
%P
%7
%8 2022-August-22
%9 Original Research
%#
%! Convolutional Kernel Function Algebra
%*
%<
%T Convolutional kernel function algebra
%U https://www.frontiersin.org/articles/10.3389/fcomp.2022.921454
%V 4
%0 JOURNAL ARTICLE
%@ 2624-9898
%X Many systems for image manipulation, signal analysis, machine learning, and scientific computing make use of discrete convolutional filters that are known before computation begins. These contexts benefit from common sub-expression elimination to reduce the number of calculations required, both multiplications and additions. We present an algebra for describing convolutional kernels and filters at a sufficient level of abstraction to enable intuitive common sub-expression based optimizations through decomposing filters into smaller, repeated, kernels. This enables the creation of an enormous search space of potential implementations of filters via algebraic manipulation. We demonstrate how integral image and sliding window optimizations can be expressed in the context of common sub-expression elimination as well as show the direct use case for this algebra in massively SIMD multiply-free contexts such as in cellular processor arrays. We then show that this algebra is general enough to express and optimize kernels that use non-standard semi-rings to enable shortest path algorithms.