TY - GEN
T1 - Computing Generalized Convolutions Faster Than Brute Force
AU - Esmer, Barış Can
AU - Kulik, Ariel
AU - Marx, Dániel
AU - Schepper, Philipp
AU - Węgrzycki, Karol
N1 - Publisher Copyright:
© Barış Can Esmer, Ariel Kulik, Dániel Marx, Philipp Schepper, and Karol Węgrzycki.
PY - 2022/12/1
Y1 - 2022/12/1
N2 - In this paper, we consider a general notion of convolution. Let D be a finite domain and let Dn be the set of n-length vectors (tuples) of D. Let f : D × D → D be a function and let ⊕f be a coordinate-wise application of f. The f-Convolution of two functions g, h: Dn → {-M, . . ., M} is (Equation Presented) for every v ∈ Dn. This problem generalizes many fundamental convolutions such as Subset Convolution, XOR Product, Covering Product or Packing Product, etc. For arbitrary function f and domain D we can compute f-Convolution via brute-force enumeration in Oe(|D|2n · polylog(M)) time. Our main result is an improvement over this naive algorithm. We show that f-Convolution can be computed exactly in Oe((c · |D|2)n · polylog(M)) for constant c := 5/6 when D has even cardinality. Our main observation is that a cyclic partition of a function f : D × D → D can be used to speed up the computation of f-Convolution, and we show that an appropriate cyclic partition exists for every f. Furthermore, we demonstrate that a single entry of the f-Convolution can be computed more efficiently. In this variant, we are given two functions g, h: Dn → {-M, . . ., M} alongside with a vector v ∈ Dn and the task of the f-Query problem is to compute integer (g⊛f h)(v). This is a generalization of the well-known Orthogonal Vectors problem. We show that f-Query can be computed in Oe(|D|ω2 n · polylog(M)) time, where ω ∈ [2, 2.373) is the exponent of currently fastest matrix multiplication algorithm.
AB - In this paper, we consider a general notion of convolution. Let D be a finite domain and let Dn be the set of n-length vectors (tuples) of D. Let f : D × D → D be a function and let ⊕f be a coordinate-wise application of f. The f-Convolution of two functions g, h: Dn → {-M, . . ., M} is (Equation Presented) for every v ∈ Dn. This problem generalizes many fundamental convolutions such as Subset Convolution, XOR Product, Covering Product or Packing Product, etc. For arbitrary function f and domain D we can compute f-Convolution via brute-force enumeration in Oe(|D|2n · polylog(M)) time. Our main result is an improvement over this naive algorithm. We show that f-Convolution can be computed exactly in Oe((c · |D|2)n · polylog(M)) for constant c := 5/6 when D has even cardinality. Our main observation is that a cyclic partition of a function f : D × D → D can be used to speed up the computation of f-Convolution, and we show that an appropriate cyclic partition exists for every f. Furthermore, we demonstrate that a single entry of the f-Convolution can be computed more efficiently. In this variant, we are given two functions g, h: Dn → {-M, . . ., M} alongside with a vector v ∈ Dn and the task of the f-Query problem is to compute integer (g⊛f h)(v). This is a generalization of the well-known Orthogonal Vectors problem. We show that f-Query can be computed in Oe(|D|ω2 n · polylog(M)) time, where ω ∈ [2, 2.373) is the exponent of currently fastest matrix multiplication algorithm.
KW - Fast Fourier Transform
KW - Fast Subset Convolution
KW - Generalized Convolution
UR - http://www.scopus.com/inward/record.url?scp=85144194701&partnerID=8YFLogxK
U2 - 10.4230/LIPIcs.IPEC.2022.12
DO - 10.4230/LIPIcs.IPEC.2022.12
M3 - Conference contribution
AN - SCOPUS:85144194701
T3 - Leibniz International Proceedings in Informatics, LIPIcs
BT - 17th International Symposium on Parameterized and Exact Computation, IPEC 2022
A2 - Dell, Holger
A2 - Nederlof, Jesper
PB - Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
T2 - 17th International Symposium on Parameterized and Exact Computation, IPEC 2022
Y2 - 7 September 2022 through 9 September 2022
ER -