自适应智能释放:大型语言模型中知识迁移的可行性
Adaptive Intellect Unleashed: The Feasibility of Knowledge Transfer in Large Language Models
AI总结:
通过知识迁移提升大型语言模型在软件工程任务中的泛化能力,实验发现迁移跨度、策略和架构是关键因素,层次策略优于直接迁移,AI-Chain优于CoT。
摘要:
我们首次实证研究了使用知识迁移来提高大型语言模型(LLMs)在软件工程任务中的泛化能力,这些任务通常要求LLMs超越其训练数据进行泛化。我们提出的通用知识迁移方法引导LLM转向其之前遇到过的相似且熟悉的API或代码片段,从而提升模型对未见知识的泛化能力。我们将该方法应用于三个软件工程任务:API推断、代码示例生成和FQN推断,并发现迁移跨度、迁移策略和迁移架构是影响该方法的关键因素。我们的研究结果证明了知识迁移的可行性及其在增强LLMs在各种软件工程任务中性能的潜力。知识迁移的有效性取决于目标领域和任务,其中层次策略比直接迁移更有效,而AI-Chain在提示设计上优于CoT。这些发现的意义不仅限于软件工程任务,还表明知识迁移可以增强LLMs在任何自然语言任务中处理未知情况的能力。
英文摘要:
We conduct the first empirical study on using knowledge transfer to improve the generalization ability of large language models (LLMs) in software engineering tasks, which often require LLMs to generalize beyond their training data. Our proposed general knowledge transfer approach guides the LLM towards a similar and familiar API or code snippet it has encountered before, improving the model's generalization ability for unseen knowledge. We apply this approach to three software engineering tasks: API inference, code example generation, and FQN inference, and find transfer span, transfer strategy, and transfer architecture as key factors affecting the method. Our findings demonstrate the feasibility of knowledge transfer and its potential to enhance LLMs' performance in various software engineering tasks. The effectiveness of knowledge transfer varies depending on the target domain and task, with the hierarchical strategy being more effective than direct transfer, and AI-Chain outperforming CoT in prompt design. The implications of these findings extend beyond software engineering tasks and suggest that knowledge transfer can enhance LLMs' ability to handle unknowns in any natural language task.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。