Using Ensemble Learning to Improve Automatic Vectorization of Tensor Contraction Program

被引:3
|
作者
Liu, Hui [1 ,2 ]
Zhao, Rongcai [1 ]
Nie, Kai [1 ,3 ]
机构
[1] PLA Informat Engn Univ, State Key Lab Math Engn & Adv Comp, Zhengzhou 450001, Henan, Peoples R China
[2] Henan Normal Univ, Coll Comp & Informat Engn, Xinxiang 453007, Peoples R China
[3] Zhengzhou Univ, Sch Informat Engn, Zhengzhou 450001, Henan, Peoples R China
来源
IEEE ACCESS | 2018年 / 6卷
关键词
Automatic vectorization; compiler optimization; ensemble learning; program features; COMPILER HEURISTICS; MACHINE; OPTIMIZATION;
D O I
10.1109/ACCESS.2018.2867151
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Automatic vectorization is crucial for improving the performance of computationally intensive programs. Existing compilers use conservative optimization strategies for automatic vectorization, which, in many cases, lead to the loss of vectorization opportunity. Studies have shown that the use of machine learning algorithms to build a performance prediction model is beneficial to improve the program performance. The model input is program features, and the output is the predicted optimization strategies or the program performance related to the optimization. In this paper, we focus on a computational intensive loop structure-tensor contraction, which is common in quantum chemical simulations. Most existing machine learning methods rely on control and data flow graphs as features to represent programs, but different tensor contraction kernels have the same control and data flow graphs. In addition, the existing methods often use the same kind of learning algorithm to construct a learning model, which is prone to overfitting and low-precision problems. In this paper, we propose an automatic vectorization performance enhancement method based on ensemble learning. We construct an ensemble learning model to predict the performance of tensor contraction kernels with different vectorization strategies and select the best vectorization strategy for the kernels. According to the storage access patterns of the tensor contraction kernels, we propose a static method for features representation. Based on the multi-algorithm ensemble learning strategy, we obtain better learning results than the single learning algorithm. The experimental results show that the prediction model achieves 88% and 87% prediction efficiency on two different platforms with different instruction sets, data types, and compilers. Compared with the existing methods, the prediction efficiency is greatly improved. In addition, the average peak performance is 2.96x of Intel ICC 12.0 and 2.98x of GCC 4.6 compiler, respectively.
引用
收藏
页码:47112 / 47124
页数:13
相关论文
共 50 条
  • [31] Glaucoma detection using entropy sampling and ensemble learning for automatic optic cup and disc segmentation
    Zilly, Julian
    Buhmann, Joachim M.
    Mahapatra, Dwarikanath
    COMPUTERIZED MEDICAL IMAGING AND GRAPHICS, 2017, 55 : 28 - 41
  • [32] An automatic identification method of common species based on ensemble learning
    Li, Hao-Xuan
    Zhang, Mei
    Meng, De-Yao
    Geng, Bo
    Li, Zu-Kui
    Huang, Chuan-Feng
    Li, Wen-Kang
    Jiang, Han-Lin
    Wu, Rong-Hai
    Li, Xiao-Wei
    Chen, Ben-Hui
    Yang, Deng-Qi
    Ren, Guo-Peng
    ECOLOGICAL INFORMATICS, 2025, 86
  • [33] A scalable multimodal ensemble learning framework for automatic modulation recognition
    Shi J.
    Yue G.
    Ma S.
    Peng T.
    Ma B.
    International Journal of Wireless and Mobile Computing, 2024, 26 (02) : 182 - 197
  • [34] Automatic Pancreas Segmentation via Coarse Location and Ensemble Learning
    Liu, Shangqing
    Yuan, Xinrui
    Hu, Runyue
    Liang, Shujun
    Feng, Shaohua
    Ai, Yuhua
    Zhang, Yu
    IEEE ACCESS, 2020, 8 : 2906 - 2914
  • [35] Utilizing Ensemble Learning to Improve the Distance Information for UWB Positioning
    Chang, Che-Cheng
    Ooi, Yee-Ming
    Tsui, Shih-Tung
    Chiang, Ting-Hui
    Tsai, Ming-Han
    APPLIED SCIENCES-BASEL, 2022, 12 (19):
  • [36] Application of Biologically Inspired Methods to Improve Adaptive Ensemble Learning
    Grmanova, Gabriela
    Rozinajova, Viera
    Ezzedine, Anna Bou
    Lucka, Maria
    Lacko, Peter
    Loderer, Marek
    Vrablecova, Petra
    Laurinec, Peter
    ADVANCES IN NATURE AND BIOLOGICALLY INSPIRED COMPUTING, 2016, 419 : 235 - 246
  • [37] Exploiting ensemble learning to improve prediction of phospholipidosis inducing potential
    Nath, Abhigyan
    Sahu, Gopal Krishna
    JOURNAL OF THEORETICAL BIOLOGY, 2019, 479 : 37 - 47
  • [38] An ensemble deep learning for automatic prediction of papillary thyroid carcinoma using fine needle aspiration cytology
    Nguyen Thanh Duc
    Lee, Yong-Moon
    Park, Jae Hyun
    Lee, Boreom
    EXPERT SYSTEMS WITH APPLICATIONS, 2022, 188
  • [39] Automatic Sleep-Arousal Detection with Single-Lead EEG Using Stacking Ensemble Learning
    Chien, Ying-Ren
    Wu, Cheng-Hsuan
    Tsao, Hen-Wai
    SENSORS, 2021, 21 (18)
  • [40] A Corpus-Based Approach for Automatic Thai Unknown Word Recognition using Ensemble Learning Techniques
    TeCho, Jakkrit
    Nattee, Cholwich
    Theeramunkong, Thanaruk
    ADVANCES IN KNOWLEDGE DISCOVERY AND DATA MINING, PROCEEDINGS, 2009, 5476 : 533 - 540