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

面向日志级别建议的大型语言模型研究与基准测试

Studying and Benchmarking Large Language Models For Log Level Suggestion

Yi Wen Heng, Zeyang Ma, Zhenhao Li, Dong Jae Kim, Tse-Hsun, Chen

AI总结:

本文实证研究了12个开源LLMs在日志级别建议中的表现,通过Zero-shot、Few-shot和微调等策略在9个Java系统上测试,发现小模型在合适技术下有效但仍有改进空间。

摘要:

大型语言模型(LLMs)已成为各个领域的研究焦点,包括软件工程,其能力正日益得到利用。近期研究探索了将LLMs集成到软件开发工具和框架中,揭示了它们在文本和代码相关任务中提升性能的潜力。日志级别是日志记录语句的关键部分,允许软件开发者控制系统运行时记录的信息。鉴于日志消息通常混合了自然语言和类似代码的变量,LLMs的语言翻译能力可用于确定日志记录语句的合适详细级别。在本文中,我们进行了详细的实证分析,以研究特征和学习范式对12个开源LLMs在日志级别建议中性能的影响。我们选择开源模型是因为它们使我们能够利用内部代码,同时有效保护敏感信息并维护数据安全。我们考察了多种提示策略,包括Zero-shot、Few-shot和微调技术,跨越不同的LLMs,以识别用于准确日志级别建议的最有效组合。我们的研究得到了在9个大规模Java系统上进行的实验的支持。结果表明,尽管较小的LLMs在适当的指令和合适的技术下能够有效执行,但它们在建议日志级别的能力方面仍有相当大的改进潜力。

英文摘要:

Large Language Models (LLMs) have become a focal point of research across various domains, including software engineering, where their capabilities are increasingly leveraged. Recent studies have explored the integration of LLMs into software development tools and frameworks, revealing their potential to enhance performance in text and code-related tasks. Log level is a key part of a logging statement that allows software developers control the information recorded during system runtime. Given that log messages often mix natural language with code-like variables, LLMs' language translation abilities could be applied to determine the suitable verbosity level for logging statements. In this paper, we undertake a detailed empirical analysis to investigate the impact of characteristics and learning paradigms on the performance of 12 open-source LLMs in log level suggestion. We opted for open-source models because they enable us to utilize in-house code while effectively protecting sensitive information and maintaining data security. We examine several prompting strategies, including Zero-shot, Few-shot, and fine-tuning techniques, across different LLMs to identify the most effective combinations for accurate log level suggestions. Our research is supported by experiments conducted on 9 large-scale Java systems. The results indicate that although smaller LLMs can perform effectively with appropriate instruction and suitable techniques, there is still considerable potential for improvement in their ability to suggest log levels.

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

↑