Fast Higher-Order Functions for Tensor Calculus with Tensors and Subtensors

被引:7
|
作者
Bassoy, Cem [1 ]
Schatz, Volker [1 ]
机构
[1] Fraunhofer IOSB, D-76275 Ettlingen, Germany
来源
关键词
RECURSION;
D O I
10.1007/978-3-319-93698-7_49
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Tensors analysis has become a popular tool for solving problems in computational neuroscience, pattern recognition and signal processing. Similar to the two-dimensional case, algorithms for multidimensional data consist of basic operations accessing only a subset of tensor data. With multiple offsets and step sizes, basic operations for subtensors require sophisticated implementations even for entrywise operations. In this work, we discuss the design and implementation of optimized higher-order functions that operate entrywise on tensors and subtensors with any non-hierarchical storage format and arbitrary number of dimensions. We propose recursive multi-index algorithms with reduced index computations and additional optimization techniques such as function inlining with partial template specialization. We show that single-index implementations of higher-order functions with subtensors introduce a runtime penalty of an order of magnitude than the recursive and iterative multi-index versions. Including data- and thread-level parallelization, our optimized implementations reach 68% of the maximum throughput of an Intel Core i9-7900X. In comparison with other libraries, the average speedup of our optimized implementations is up to 5x for map-like and more than 9x for reduce-like operations. For symmetric tensors we measured an average speedup of up to 4x.
引用
收藏
页码:639 / 652
页数:14
相关论文
共 50 条
  • [1] Fast higher-order derivative tensors with Rapsodia
    Charpentier, I.
    Utke, J.
    OPTIMIZATION METHODS & SOFTWARE, 2009, 24 (01): : 1 - 14
  • [2] HIGHER-ORDER TENSORS
    MORGAN, AJA
    SIAM JOURNAL ON APPLIED MATHEMATICS, 1976, 30 (02) : 355 - 379
  • [3] HIGHER-ORDER TENSORS, STRINGS AND NEW TENSORS
    CAREY, AL
    MURRAY, MK
    PROCEEDINGS OF THE ROYAL SOCIETY OF LONDON SERIES A-MATHEMATICAL PHYSICAL AND ENGINEERING SCIENCES, 1990, 430 (1879): : 423 - 432
  • [4] Fast multilinear Singular Value Decomposition for higher-order Hankel tensors
    Boizard, Maxime
    Boyer, Remy
    Favier, Gerard
    Larzabal, Pascal
    2014 IEEE 8TH SENSOR ARRAY AND MULTICHANNEL SIGNAL PROCESSING WORKSHOP (SAM), 2014, : 437 - 440
  • [5] Reversibility in the higher-order π-calculus
    Lanese, Ivan
    Mezzina, Claudio Antares
    Stefani, Jean-Bernard
    THEORETICAL COMPUTER SCIENCE, 2016, 625 : 25 - 84
  • [6] A Reflective Higher-order Calculus
    Meredith, L. G.
    Radestock, Matthias
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2005, 141 (05) : 49 - 67
  • [7] Multiscale Analysis for Higher-order Tensors
    Ozdemir, Alp
    Zare, Ali
    Iwen, Mark A.
    Aviyente, Selin
    WAVELETS AND SPARSITY XVIII, 2019, 11138
  • [8] Higher-order tensor methods for minimizing difference of convex functions
    Automatic Control and Systems Engineering Department, National University of Science and Technology Politehnica Bucharest, Spl. Independentei 313, Bucharest
    060042, Romania
    不详
    050711, Romania
    arXiv,
  • [9] REPRESENTATION OF HIGHER-ORDER TENSOR-VALUED ISOTROPIC FUNCTIONS
    SILBER, G
    ZEITSCHRIFT FUR ANGEWANDTE MATHEMATIK UND MECHANIK, 1990, 70 (09): : 381 - 393
  • [10] NUCLEAR NORM OF HIGHER-ORDER TENSORS
    Friedland, Shmuel
    Lim, Lek-Heng
    MATHEMATICS OF COMPUTATION, 2018, 87 (311) : 1255 - 1281