arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.08912cs.CYcs.SE
收藏

大型语言模型能否帮助我们更好地理解和教授节能软件的开发?

Can Large-Language Models Help us Better Understand and Teach the Development of Energy-Efficient Software?

Ryan Hasler, Konstantin Läufer, George K. Thiruvathukal, Huiyun Peng, Kyle Robinson, Kirsten Davis, Yung-Hsiang Lu, James C. Davis

AI总结:

本文提出利用大型语言模型(LLMs)辅助本科节能软件工程教学,通过开发学习模块和基于LLM的元编译器工具,帮助学生将高级算法转化为硬件特定实现,并融入系统思维以提升能源优化推理能力。

摘要:

计算系统正在消耗社会能源足迹中日益增加且不可持续的一部分,尤其是在数据中心。与此同时,节能软件工程技术通常在本科课程中缺失。我们提议开发一个适用于本科软件工程课程的节能软件学习模块。此类尝试面临一个主要问题:本科课程中用于掌握与能源相关的系统编程方面的空间有限。为解决这一问题,我们提议利用大型语言模型(LLMs)提供的领域专业知识。在我们的初步研究中,我们观察到LLMs能够生成针对ARM64和AMD64架构的基本线性代数代码的节能变体,以及单元测试和能源测量工具。在适合课堂使用的简单示例上,该方法将能源支出降低了30-90%。这些初步经验催生了我们将基于LLM的元编译器作为工具的愿景,帮助学生将高级算法转化为高效的、特定于硬件的实现。作为该工具的补充,我们将把系统思维概念纳入学习模块,使学生能够在局部和全局层面推理能源优化的效果。

英文摘要:

Computing systems are consuming an increasing and unsustainable fraction of society's energy footprint, notably in data centers. Meanwhile, energy-efficient software engineering techniques are often absent from undergraduate curricula. We propose to develop a learning module for energy-efficient software, suitable for incorporation into an undergraduate software engineering class. There is one major problem with such an endeavor: undergraduate curricula have limited space for mastering energy-related systems programming aspects. To address this problem, we propose to leverage the domain expertise afforded by large language models (LLMs). In our preliminary studies, we observe that LLMs can generate energy-efficient variations of basic linear algebra codes tailored to both ARM64 and AMD64 architectures, as well as unit tests and energy measurement harnesses. On toy examples suitable for classroom use, this approach reduces energy expenditure by 30-90%. These initial experiences give rise to our vision of LLM-based meta-compilers as a tool for students to transform high-level algorithms into efficient, hardware-specific implementations. Complementing this tooling, we will incorporate systems thinking concepts into the learning module so that students can reason both locally and globally about the effects of energy optimizations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑