Published July 16, 2020 | Version Submitted
Discussion Paper Open

Automatic transformation of irreducible representations for efficient contraction of tensors with cyclic group symmetry

Abstract

Tensor contractions are ubiquitous in computational chemistry and physics, where tensors generally represent states or operators and contractions are transformations. In this context, the states and operators often preserve physical conservation laws, which are manifested as group symmetries in the tensors. These group symmetries imply that each tensor has block sparsity and can be stored in a reduced form. For nontrivial contractions, the memory footprint and cost are lowered, respectively, by a linear and a quadratic factor in the number of symmetry sectors. State-of-the-art tensor contraction software libraries exploit this opportunity by iterating over blocks or using general block-sparse tensor representations. Both approaches entail overhead in performance and code complexity. With intuition aided by tensor diagrams, we present a technique, irreducible representation alignment, which enables efficient handling of Abelian group symmetries via only dense tensors, by using contraction-specific reduced forms. This technique yields a general algorithm for arbitrary group symmetric contractions, which we implement in Python and apply to a variety of representative contractions from quantum chemistry and tensor network methods. As a consequence of relying on only dense tensor contractions, we can easily make use of efficient batched matrix multiplication via Intel's MKL and distributed tensor contraction via the Cyclops library, achieving good efficiency and parallel scalability on up to 4096 Knights Landing cores of a supercomputer.

Additional Information

We thank Linjian Ma for providing the batched BLAS backend used in our calculations. ES was supported by the US NSF OAC SSI program, via awards No. 1931258 and No. 1931328. YG, PH, GKC were supported by the US NSF OAC SSI program, award No. 1931258. PH was also supported by a NSF Graduate Research Fellowship via grant DGE-1745301 and an ARCS Foundation Award. The work made use of the Extreme Science and Engineering Discovery Environment (XSEDE), which is supported by US National Science Foundation grant number ACI-1548562. We use XSEDE to employ Stampede2 at the Texas Advanced Computing Center (TACC) through allocation TG-CCR180006.

Attached Files

Submitted - 2007.08056.pdf

Files

2007.08056.pdf

Files (1.1 MB)

Name Size
md5:59306224da1a6f005f29919eac9d6fa9
1.1 MB Preview Download

Additional details

Identifiers

Eprint ID
104989
Resolver ID
CaltechAUTHORS:20200818-074353010

Related works

Funding

NSF
OAC-1931258
NSF
OAC-1931328
NSF Graduate Research Fellowship
DGE-1745301
ARCS Foundation
NSF
ACI-1548562
NSF
TG-CCR180006

Dates

Created
2020-08-18
Created from EPrint's datestamp field
Updated
2023-06-02
Created from EPrint's last_modified field