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

探究大语言模型超参数调优与提示工程在支持领域建模中的作用

Investigating the Role of LLMs Hyperparameter Tuning and Prompt Engineering to Support Domain Modeling

Vladyslav Bulhakov, Giordano d'Aloisio, Claudio Di Sipio, Antinisca Di Marco, Davide Di Ruscio

AI总结:

本文研究通过超参数调优与提示工程提升 Llama 3.1 从文本生成领域模型的准确性,在医疗数据模型上取得显著质量提升,并在十个应用领域中验证了该方法对多数领域模型的有效性。

摘要:

大语言模型(LLMs)的引入增强了软件工程任务的自动化程度,包括模型驱动工程(MDE)中的任务。然而,使用通用大语言模型进行领域建模存在局限性。一种方法是采用微调模型,但这需要大量计算资源,并可能导致灾难性遗忘等问题。本文探讨了超参数调优和提示工程如何提高 Llama 3.1 模型从文本描述生成领域模型的准确性。我们使用基于搜索的方法针对一个特定的医疗数据模型调优超参数,结果相比基线大语言模型取得了显著的质量提升。随后,我们在十个不同的应用领域中测试了优化后的超参数。虽然这些解决方案并非普遍适用,但我们证明,将超参数调优与提示工程相结合,可以在几乎所有被考察的领域模型上提升结果。

英文摘要:

The introduction of large language models (LLMs) has enhanced automation in software engineering tasks, including in Model Driven Engineering (MDE). However, using general-purpose LLMs for domain modeling has its limitations. One approach is to adopt fine-tuned models, but this requires significant computational resources and can lead to issues like catastrophic forgetting. This paper explores how hyperparameter tuning and prompt engineering can improve the accuracy of the Llama 3.1 model for generating domain models from textual descriptions. We use search-based methods to tune hyperparameters for a specific medical data model, resulting in a notable quality improvement over the baseline LLM. We then test the optimized hyperparameters across ten diverse application domains. While the solutions were not universally applicable, we demonstrate that combining hyperparameter tuning with prompt engineering can enhance results across nearly all examined domain models.

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

↑