{"title":"使用 Parquet 数据集格式和混合精度训练回归算法,改善机器学习的碳足迹","authors":"Andrew Antonopoulos","doi":"arxiv-2409.11071","DOIUrl":null,"url":null,"abstract":"This study was the 2nd part of my dissertation for my master degree and\ncompared the power consumption using the Comma-Separated-Values (CSV) and\nparquet dataset format with the default floating point (32bit) and Nvidia mixed\nprecision (16bit and 32bit) while training a regression ML model. The same\ncustom PC as per the 1st part, which was dedicated to the classification\ntesting and analysis, was built to perform the experiments, and different ML\nhyper-parameters, such as batch size, neurons, and epochs, were chosen to build\nDeep Neural Networks (DNN). A benchmarking test with default hyper-parameter\nvalues for the DNN was used as a reference, while the experiments used a\ncombination of different settings. The results were recorded in Excel, and\ndescriptive statistics were chosen to calculate the mean between the groups and\ncompare them using graphs and tables. The outcome was positive when using mixed\nprecision combined with specific hyper-parameters. Compared to the\nbenchmarking, optimising the regression models reduced the power consumption\nbetween 7 and 11 Watts. The regression results show that while mixed precision\ncan help improve power consumption, we must carefully consider the\nhyper-parameters. A high number of batch sizes and neurons will negatively\naffect power consumption. However, this research required inferential\nstatistics, specifically ANOVA and T-test, to compare the relationship between\nthe means. The results reported no statistical significance between the means\nin the regression tests and accepted H0. Therefore, choosing different ML\ntechniques and the Parquet dataset format will not improve the computational\npower consumption and the overall ML carbon footprint. However, a more\nextensive implementation with a cluster of GPUs can increase the sample size\nsignificantly, as it is an essential factor and can change the outcome of the\nstatistical analysis.","PeriodicalId":501301,"journal":{"name":"arXiv - CS - Machine Learning","volume":"30 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Improve Machine Learning carbon footprint using Parquet dataset format and Mixed Precision training for regression algorithms\",\"authors\":\"Andrew Antonopoulos\",\"doi\":\"arxiv-2409.11071\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"This study was the 2nd part of my dissertation for my master degree and\\ncompared the power consumption using the Comma-Separated-Values (CSV) and\\nparquet dataset format with the default floating point (32bit) and Nvidia mixed\\nprecision (16bit and 32bit) while training a regression ML model. The same\\ncustom PC as per the 1st part, which was dedicated to the classification\\ntesting and analysis, was built to perform the experiments, and different ML\\nhyper-parameters, such as batch size, neurons, and epochs, were chosen to build\\nDeep Neural Networks (DNN). A benchmarking test with default hyper-parameter\\nvalues for the DNN was used as a reference, while the experiments used a\\ncombination of different settings. The results were recorded in Excel, and\\ndescriptive statistics were chosen to calculate the mean between the groups and\\ncompare them using graphs and tables. The outcome was positive when using mixed\\nprecision combined with specific hyper-parameters. Compared to the\\nbenchmarking, optimising the regression models reduced the power consumption\\nbetween 7 and 11 Watts. The regression results show that while mixed precision\\ncan help improve power consumption, we must carefully consider the\\nhyper-parameters. A high number of batch sizes and neurons will negatively\\naffect power consumption. However, this research required inferential\\nstatistics, specifically ANOVA and T-test, to compare the relationship between\\nthe means. The results reported no statistical significance between the means\\nin the regression tests and accepted H0. Therefore, choosing different ML\\ntechniques and the Parquet dataset format will not improve the computational\\npower consumption and the overall ML carbon footprint. However, a more\\nextensive implementation with a cluster of GPUs can increase the sample size\\nsignificantly, as it is an essential factor and can change the outcome of the\\nstatistical analysis.\",\"PeriodicalId\":501301,\"journal\":{\"name\":\"arXiv - CS - Machine Learning\",\"volume\":\"30 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-09-17\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Machine Learning\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2409.11071\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Machine Learning","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.11071","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
摘要
本研究是我硕士论文的第二部分,比较了使用逗号分隔值(CSV)和parquet数据集格式、默认浮点(32位)和Nvidia混合精度(16位和32位)训练回归ML模型时的功耗。为了进行实验,我们构建了与第一部分相同的定制 PC,专门用于分类测试和分析,并选择了不同的 ML 超参数(如批量大小、神经元和历时)来构建深度神经网络(DNN)。使用 DNN 的默认超参数值进行基准测试作为参考,而实验则使用不同设置的组合。实验结果记录在 Excel 中,并选择描述性统计来计算各组之间的平均值,并使用图形和表格对它们进行比较。在使用混合精度和特定超参数时,结果是积极的。与基准测试相比,优化回归模型降低了 7 到 11 瓦的功耗。回归结果表明,虽然混合精度有助于改善功耗,但我们必须仔细考虑超参数。批量大小和神经元数量过多会对功耗产生负面影响。不过,这项研究需要使用推断统计学,特别是方差分析和 T 检验,来比较平均值之间的关系。结果表明,回归测试中各均值之间没有统计学意义,接受 H0。因此,选择不同的 ML 技术和 Parquet 数据集格式不会改善计算能力消耗和整体 ML 碳足迹。然而,使用 GPU 集群进行更广泛的实施可以显著增加样本量,因为样本量是一个重要因素,可以改变统计分析的结果。
Improve Machine Learning carbon footprint using Parquet dataset format and Mixed Precision training for regression algorithms
This study was the 2nd part of my dissertation for my master degree and
compared the power consumption using the Comma-Separated-Values (CSV) and
parquet dataset format with the default floating point (32bit) and Nvidia mixed
precision (16bit and 32bit) while training a regression ML model. The same
custom PC as per the 1st part, which was dedicated to the classification
testing and analysis, was built to perform the experiments, and different ML
hyper-parameters, such as batch size, neurons, and epochs, were chosen to build
Deep Neural Networks (DNN). A benchmarking test with default hyper-parameter
values for the DNN was used as a reference, while the experiments used a
combination of different settings. The results were recorded in Excel, and
descriptive statistics were chosen to calculate the mean between the groups and
compare them using graphs and tables. The outcome was positive when using mixed
precision combined with specific hyper-parameters. Compared to the
benchmarking, optimising the regression models reduced the power consumption
between 7 and 11 Watts. The regression results show that while mixed precision
can help improve power consumption, we must carefully consider the
hyper-parameters. A high number of batch sizes and neurons will negatively
affect power consumption. However, this research required inferential
statistics, specifically ANOVA and T-test, to compare the relationship between
the means. The results reported no statistical significance between the means
in the regression tests and accepted H0. Therefore, choosing different ML
techniques and the Parquet dataset format will not improve the computational
power consumption and the overall ML carbon footprint. However, a more
extensive implementation with a cluster of GPUs can increase the sample size
significantly, as it is an essential factor and can change the outcome of the
statistical analysis.