Adaptive Intellect Unleashed: The Feasibility of Knowledge Transfer in Large Language Models

08/09/2023
by   Qing Huang, et al.
0

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.

READ FULL TEXT
research
03/11/2023

ChatGPT Prompt Patterns for Improving Code Quality, Refactoring, Requirements Elicitation, and Software Design

This paper presents prompt design techniques for software engineering, i...
research
08/22/2023

Towards an Understanding of Large Language Models in Software Engineering Tasks

Large Language Models (LLMs) have drawn widespread attention and researc...
research
07/12/2023

Exploring the Effectiveness of LLMs in Automated Logging Generation: An Empirical Study

Automated logging statement generation techniques facilitate developers ...
research
08/24/2020

Patching as Translation: the Data and the Metaphor

Machine Learning models from other fields, like Computational Linguistic...
research
06/23/2021

A Wizard of Oz Study Simulating API Usage Dialogues with a Virtual Assistant

Virtual Assistant technology is rapidly proliferating to improve product...
research
02/05/2021

Understanding Emails and Drafting Responses – An Approach Using GPT-3

Providing computer systems with the ability to understand and generate n...
research
06/05/2023

SelfEvolve: A Code Evolution Framework via Large Language Models

Large language models (LLMs) have already revolutionized code generation...

Please sign up or login with your details

Forgot password? Click here to reset