Memory Safe Computations with XLA Compiler

被引:0
|
作者
Artemev, Artem [1 ,2 ]
An, Yuze [1 ]
Roeder, Tilman [1 ]
van der Wilk, Mark [1 ]
机构
[1] Imperial Coll London, London, England
[2] Secondmind, Cambridge, England
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Software packages like TensorFlow and PyTorch are designed to support linear algebra operations, and their speed and usability determine their success. However, by prioritising speed, they often neglect memory requirements. As a consequence, the implementations of memory-intensive algorithms that are convenient in terms of software design can often not be run for large problems due to memory overflows. Memory-efficient solutions require complex programming approaches with significant logic outside the computational framework. This impairs the adoption and use of such algorithms. To address this, we developed an XLA compiler extension(1) that adjusts the computational data-flow representation of an algorithm according to a user-specified memory limit. We show that k-nearest neighbour, sparse Gaussian process regression methods and Transformers can be run on a single device at a much larger scale, where standard implementations would have failed. Our approach leads to better use of hardware resources. We believe that further focus on removing memory constraints at a compiler level will widen the range of machine learning methods that can be developed in the future.
引用
收藏
页数:13
相关论文
共 50 条
  • [1] Implementation of the memory-safe full ANSI-C compiler
    Research Center for Information Security , National Institute of Advanced Industrial Science and Technology , Japan
    Proc ACM SIGPLAN Conf Program Lang Des Implementation PLDI, (259-269): : 259 - 269
  • [2] Implementation of the Memory-safe Full ANSI-C Compiler
    Oiwa, Yutaka
    ACM SIGPLAN NOTICES, 2009, 44 (06) : 259 - 269
  • [3] Implementation of the Memory-safe Full ANSI-C Compiler
    Oiwa, Yutaka
    PLDI'09 PROCEEDINGS OF THE 2009 ACM SIGPLAN CONFERENCE ON PROGRAMMING LANGUAGE DESIGN AND IMPLEMENTATION, 2009, : 259 - 269
  • [4] Error Detection and Correction Codes for Safe In-Memory Computations
    Parrini, Luca
    Soliman, Taha
    Hettwer, Benjamin
    Borrmann, Jan Micha
    Singh, Simranjeet
    Bende, Ankit
    Rana, Vikas
    Merchant, Farhad
    Wehn, Norbert
    IEEE EUROPEAN TEST SYMPOSIUM, ETS 2024, 2024,
  • [5] ADVANCED COMPILER OPTIMIZATIONS FOR SPARSE COMPUTATIONS
    BIK, AJC
    WIJSHOFF, HAG
    JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 1995, 31 (01) : 14 - 24
  • [6] Advanced Compiler Optimizations for Sparse Computations
    J Parallel Distrib Comput, (14):
  • [7] Compiler Transformation to Generate Hybrid Sparse Computations
    Zhang, Huihui
    Venkat, Anand
    Hall, Mary
    PROCEEDINGS OF 2016 6TH WORKSHOP ON IRREGULAR APPLICATIONS: ARCHITECTURE AND ALGORITHMS (IA3), 2016, : 34 - 41
  • [8] Vedolizumab treatment in patient with XLA, is it safe and efficient?
    Cekic, S.
    Ozgur, T.
    Karali, Y.
    Ozkan, T.
    Kilic, S. S.
    ALLERGY, 2018, 73 : 768 - 769
  • [9] Compiler Support for Sparse Tensor Computations in MLIR
    Bik, Aart
    Koanantakool, Penporn
    Shpeisman, Tatiana
    Vasilache, Nicolas
    Zheng, Bixia
    Kjolstad, Fredrik
    ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2022, 19 (04)
  • [10] Formally Proving a Compiler Transformation Safe
    Breitner, Joachim
    ACM SIGPLAN NOTICES, 2015, 50 (12) : 35 - 46