TL;DR
This paper introduces Variational Prefix Tuning (VPT), a parameter-efficient method that enhances pre-trained code models to generate diverse, accurate summaries, providing multiple options for better code understanding.
Contribution
We propose a novel VPT approach integrating CVAE into pre-trained models to produce diverse summaries without retraining, improving code summarization flexibility and effectiveness.
Findings
VPT significantly increases summary diversity and accuracy.
The method is adaptable across various pre-trained models.
Experimental results outperform existing single-output methods.
Abstract
Recent advancements in source code summarization have leveraged transformer-based pre-trained models, including Large Language Models of Code (LLMCs), to automate and improve the generation of code summaries. However, existing methods often focus on generating a single high-quality summary for a given source code, neglecting scenarios where the generated summary might be inadequate and alternative options are needed. In this paper, we introduce Variational Prefix Tuning (VPT), a novel approach that enhances pre-trained models' ability to generate diverse yet accurate sets of summaries, allowing the user to choose the most suitable one for the given source code. Our method integrates a Conditional Variational Autoencoder (CVAE) framework as a modular component into pre-trained models, enabling us to model the distribution of observed target summaries and sample continuous embeddings to…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsFocus
