COLA-Gen: Active Learning Techniques for Automatic Code Generation of Benchmarks

M. Berezov, Corinne Ancourt, Justyna Zawalska, Maryna Savchenko
{"title":"COLA-Gen: Active Learning Techniques for Automatic Code Generation of Benchmarks","authors":"M. Berezov, Corinne Ancourt, Justyna Zawalska, Maryna Savchenko","doi":"10.4230/OASIcs.PARMA-DITAM.2022.3","DOIUrl":null,"url":null,"abstract":"Benchmarking is crucial in code optimization. It is required to have a set of programs that we consider representative to validate optimization techniques or evaluate predictive performance models. However, there is a shortage of available benchmarks for code optimization, more pronounced when using machine learning techniques. The problem lies in the number of programs for testing because these techniques are sensitive to the quality and quantity of data used for training. Our work aims to address these limitations. We present a methodology to efficiently generate benchmarks for the code optimization domain. It includes an automatic code generator, an associated DSL handling, the high-level specification of the desired code, and a smart strategy for extending the benchmark as needed. The strategy is based on Active Learning techniques and helps to generate the most representative data for our benchmark. We observed that Machine Learning models trained on our benchmark produce better quality predictions and converge faster. The optimization based on the Active Learning method achieved up to 15% more speed-up than the passive learning method using the same amount of data. The experiments were run on Intel® Core™ i7-8650U 4C/4T @1.90GHz with capacity caches of L1: 32KB, L2: 256KB, L3: 8192KB and 32GB DDR4 DIMM RAM, Phys. cores: 4, Compiler: GCC 5.4.0, Number of Threads: 4, Opt. level: -O3","PeriodicalId":436349,"journal":{"name":"PARMA-DITAM@HiPEAC","volume":"11 suppl_1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"PARMA-DITAM@HiPEAC","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4230/OASIcs.PARMA-DITAM.2022.3","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Benchmarking is crucial in code optimization. It is required to have a set of programs that we consider representative to validate optimization techniques or evaluate predictive performance models. However, there is a shortage of available benchmarks for code optimization, more pronounced when using machine learning techniques. The problem lies in the number of programs for testing because these techniques are sensitive to the quality and quantity of data used for training. Our work aims to address these limitations. We present a methodology to efficiently generate benchmarks for the code optimization domain. It includes an automatic code generator, an associated DSL handling, the high-level specification of the desired code, and a smart strategy for extending the benchmark as needed. The strategy is based on Active Learning techniques and helps to generate the most representative data for our benchmark. We observed that Machine Learning models trained on our benchmark produce better quality predictions and converge faster. The optimization based on the Active Learning method achieved up to 15% more speed-up than the passive learning method using the same amount of data. The experiments were run on Intel® Core™ i7-8650U 4C/4T @1.90GHz with capacity caches of L1: 32KB, L2: 256KB, L3: 8192KB and 32GB DDR4 DIMM RAM, Phys. cores: 4, Compiler: GCC 5.4.0, Number of Threads: 4, Opt. level: -O3
COLA-Gen:自动生成基准代码的主动学习技术
基准测试在代码优化中是至关重要的。需要有一组我们认为具有代表性的程序来验证优化技术或评估预测性能模型。然而,缺乏可用的代码优化基准,在使用机器学习技术时更为明显。问题在于测试程序的数量,因为这些技术对用于训练的数据的质量和数量很敏感。我们的工作旨在解决这些限制。我们提出了一种有效地为代码优化领域生成基准的方法。它包括一个自动代码生成器、一个相关的DSL处理、所需代码的高级规范,以及一个根据需要扩展基准的智能策略。该策略基于主动学习技术,有助于为我们的基准生成最具代表性的数据。我们观察到,在我们的基准上训练的机器学习模型产生了更好的预测质量,并且收敛得更快。在相同的数据量下,基于主动学习方法的优化比被动学习方法的速度提高了15%。实验在Intel®Core™i7-8650U 4C/4T @1.90GHz上运行,L1: 32KB, L2: 256KB, L3: 8192KB和32GB DDR4 DIMM RAM。内核:4,编译器:GCC 5.4.0,线程数:4,选择级别:- 3
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信