Hardware-Aware Static Optimization of Hyperdimensional Computations

被引:0
|
作者
Yi, Pu [1 ]
Achour, Sara [1 ,2 ]
机构
[1] Stanford Univ, Dept Comp Sci, 450 Jane Stanford Way, Stanford, CA 94305 USA
[2] Stanford Univ, Dept Elect Engn, 450 Jane Stanford Way, Stanford, CA 94305 USA
来源
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL | 2023年 / 7卷 / OOPSLA期
关键词
unconventional computing; emerging hardware technologies; program optimization; RETRIEVAL;
D O I
10.1145/3622797
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Binary spatter code (BSC)-based hyperdimensional computing (HDC) is a highly error-resilient approximate computational paradigm suited for error-prone, emerging hardware platforms. In BSC HDC, the basic datatype is a hypervector, a typically large binary vector, where the size of the hypervector has a significant impact on the fidelity and resource usage of the computation. Typically, the hypervector size is dynamically tuned to deliver the desired accuracy; this process is time-consuming and often produces hypervector sizes that lack accuracy guarantees and produce poor results when reused for very similar workloads. We present Heim, a hardware-aware static analysis and optimization framework for BSC HD computations. Heim analytically derives the minimum hypervector size that minimizes resource usage and meets the target accuracy requirement. Heim guarantees the optimized computation converges to the user-provided accuracy target on expectation, even in the presence of hardware error. Heim deploys a novel static analysis procedure that unifies theoretical results from the neuroscience community to systematically optimize HD computations. We evaluate Heim against dynamic tuning-based optimization on 25 benchmark data structures. Given a 99% accuracy requirement, Heim-optimized computations achieve a 99.2%-100.0% median accuracy, up to 49.5% higher than dynamic tuning-based optimization, while achieving 1.15x-7.14x reductions in hypervector size compared to HD computations that achieve comparable query accuracy and finding parametrizations 30.0x-100167.4x faster than dynamic tuning-based approaches. We also use Heim to systematically evaluate the performance benefits of using analog CAMs and multiple-bit-per-cell ReRAM over conventional hardware, while maintaining iso-accuracy - for both emerging technologies, we find usages where the emerging hardware imparts significant benefits.
引用
收藏
页数:30
相关论文
共 50 条
  • [1] Hardware-aware Automated Architecture Search for Brain-inspired Hyperdimensional Computing
    Yang, Junhuan
    Yasa, Venkat Kalyan Reddy
    Sheng, Yi
    Reis, Dayane
    Jiao, Xun
    Jiang, Weiwen
    Yang, Lei
    2022 IEEE COMPUTER SOCIETY ANNUAL SYMPOSIUM ON VLSI (ISVLSI 2022), 2022, : 352 - 357
  • [2] On Hardware-Aware Design and Optimization of Edge Intelligence
    Huai, Shuo
    Kong, Hao
    Luo, Xiangzhong
    Liu, Di
    Subramaniam, Ravi
    Makaya, Christian
    Lin, Qian
    Liu, Weichen
    IEEE DESIGN & TEST, 2023, 40 (06) : 149 - 162
  • [3] Hardware-Aware Analysis and Optimization of Stable Fluids
    Kim, Theodore
    I3D 2008: SYMPOSIUM ON INTERACTIVE 3D GRAPHICS AND GAMES, PROCEEDINGS, 2008, : 99 - 106
  • [4] Hardware-Aware Machine Learning: Modeling and Optimization
    Marculescu, Diana
    Stamoulis, Dimitrios
    Cai, Ermao
    2018 IEEE/ACM INTERNATIONAL CONFERENCE ON COMPUTER-AIDED DESIGN (ICCAD) DIGEST OF TECHNICAL PAPERS, 2018,
  • [5] Hardware-aware approach to deep neural network optimization
    Li, Hengyi
    Meng, Lin
    NEUROCOMPUTING, 2023, 559
  • [6] HARDWARE-AWARE MODEL OPTIMIZATION TOOL FOR EMBEDDED DEVICES
    Ozcinar, Cagri
    Kim, Dongsung
    Duckworth, Benjamin Rufus
    Joya, Shayan
    Di Perto, Nicolas Scotto
    Dusnoki, Attila
    Fabo, Marko
    Vince, Daniel
    Loki, Gabor
    Kiss, Akos
    Alder, Christopher
    2021 IEEE INTERNATIONAL CONFERENCE ON MULTIMEDIA & EXPO WORKSHOPS (ICMEW), 2021,
  • [7] HAO: Hardware-aware Neural Architecture Optimization for Efficient Inference
    Dong, Zhen
    Gao, Yizhao
    Huang, Qijing
    Wawrzynek, John
    So, Hayden K. H.
    Keutzer, Kurt
    2021 IEEE 29TH ANNUAL INTERNATIONAL SYMPOSIUM ON FIELD-PROGRAMMABLE CUSTOM COMPUTING MACHINES (FCCM 2021), 2021, : 50 - 59
  • [8] SHADHO: Massively Scalable Hardware-Aware Distributed Hyperparameter Optimization
    Kinnison, Jeffery
    Kremer-Herman, Nathaniel
    Thain, Douglas
    Scheirer, Walter
    2018 IEEE WINTER CONFERENCE ON APPLICATIONS OF COMPUTER VISION (WACV 2018), 2018, : 738 - 747
  • [9] HAPI: Hardware-Aware Progressive Inference
    Laskaridis, Stefanos
    Venieris, Stylianos, I
    Kim, Hyeji
    Lane, Nicholas D.
    2020 IEEE/ACM INTERNATIONAL CONFERENCE ON COMPUTER AIDED-DESIGN (ICCAD), 2020,
  • [10] Hardware-Aware Evolutionary Filter Pruning
    Heidorn, Christian
    Meyerhoefer, Nicolai
    Schinabeck, Christian
    Hannig, Frank
    Teich, Juergen
    EMBEDDED COMPUTER SYSTEMS: ARCHITECTURES, MODELING, AND SIMULATION, SAMOS 2022, 2022, 13511 : 283 - 299