Fast Bilinear Algorithms for Symmetric Tensor Contractions
Author:
Solomonik Edgar1ORCID, Demmel James2
Affiliation:
1. Department of Computer Science , University of Illinois at Urbana-Champaign , Urbana, IL , USA 2. Department of Electrical Engineering and Computer Science and Department of Mathematics , University of California, Berkeley , Berkeley, CA , USA
Abstract
Abstract
In matrix-vector multiplication, matrix symmetry does not permit a straightforward reduction in computational cost.
More generally, in contractions of symmetric tensors, the symmetries are not preserved in the usual algebraic form of contraction algorithms.
We introduce an algorithm that reduces the bilinear complexity (number of computed elementwise products) for most types of symmetric tensor contractions.
In particular, it lowers the bilinear complexity of symmetrized contractions of symmetric tensors of order
s
+
v
{s+v}
and
v
+
t
{v+t}
by a factor of
(
s
+
t
+
v
)
!
s
!
t
!
v
!
{\frac{(s+t+v)!}{s!t!v!}}
to leading order.
The algorithm computes a symmetric tensor of bilinear products, then subtracts unwanted parts of its partial sums.
Special cases of this algorithm provide improvements to the bilinear complexity of the multiplication of a symmetric matrix and a vector, the symmetrized vector outer product, and the symmetrized product of symmetric matrices.
While the algorithm requires more additions for each elementwise product, the total number of operations is in some cases less than classical algorithms, for tensors of any size.
We provide a round-off error analysis of the algorithm and demonstrate that the error is not too large in practice.
Finally, we provide an optimized implementation for one variant of the symmetry-preserving algorithm, which achieves speedups of up to 4.58
×
\times
for a particular tensor contraction, relative to a classical approach that casts the problem as a matrix-matrix multiplication.
Funder
National Science Foundation
Publisher
Walter de Gruyter GmbH
Subject
Applied Mathematics,Computational Mathematics,Numerical Analysis
Reference38 articles.
1. A. A. Albert,
On Jordan algebras of linear transformations,
Trans. Amer. Math. Soc. 59 (1946), 524–555. 2. E. Anderson, Z. Bai, C. Bischof, J. Demmel, J. Dongarra, J. D. Croz, A. Greenbaum, S. Hammarling, A. McKenney, S. Ostrouchov and D. Sorensen,
LAPACK Users’ Guide,
SIAM, Philadelphia, 1992. 3. G. Ballard, J. Demmel, O. Holtz, B. Lipshitz and O. Schwartz,
Communication-optimal parallel algorithm for Strassen’s matrix multiplication,
Proceedings of the 24th ACM Symposium on Parallelism in Algorithms and Architectures—SPAA ’12,
ACM, New York (2012), 193–204. 4. D. Coppersmith and S. Winograd,
Matrix multiplication via arithmetic progressions,
J. Symbolic Comput. 9 (1990), no. 3, 251–280. 5. E. Deumens, V. F. Lotrich, A. Perera, M. J. Ponton, B. A. Sanders and R. J. Bartlett,
Software design of ACES III with the super instruction architecture,
WIREs Comput. Molecular Sci. 1 (2011), no. 6, 895–901.
Cited by
5 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Skew-polynomial-sparse matrix multiplication;Journal of Symbolic Computation;2024-03 2. Communication Lower Bounds for Nested Bilinear Algorithms via Rank Expansion of Kronecker Products;Foundations of Computational Mathematics;2023-11-06 3. Tensor Computation;Tensor Computation for Data Analysis;2021-05-03 4. Communication Lower Bounds of Bilinear Algorithms for Symmetric Tensor Contractions;SIAM Journal on Scientific Computing;2021-01 5. AutoHOOT;Proceedings of the ACM International Conference on Parallel Architectures and Compilation Techniques;2020-09-30
|
|