JOURNAL ARTICLE

Prompt Learning Based Parameter-efficient Code Generation

XU Yiran, ZHOU Yu

Year: 2024 Journal:   DOAJ (DOAJ: Directory of Open Access Journals)

Abstract

Automatic code generation is one of the effective ways to improve the efficiency of software development.Existing research often regards code generation as a sequence-to-sequence task,and the process of fine-tuning of large-scale pre-trained language models is often accompanied by high computing cost.In this paper,a method of prompt learning based parameter-efficient code generation is proposed.This method guides the pre-trained language model to generate code by querying the result which is most similar to the current intent in the code corpus,and most of the parameters of the model are fixed in the process to achieve the effect of reducing computing cost.In order to verify the effectiveness of PPECG,two datasets for code generation are selected in this paper,namely CONCODE and Solidity4CG.The effectiveness of PPECG is verified by calculating the BLEU,CodeBLEU and Exact Match values of the generated results.Experimental results show that PPECG effectively reduces the graphic memory cost during fine-tuning,and is basically close to or even better than the current SOTA method on the above benchmarks,which is capable of completing code generation tasks well.

Keywords:
Code generation Code (set theory) Process (computing) Redundant code Software Unreachable code Source code Dead code

Metrics

0
Cited By
0.00
FWCI (Field Weighted Citation Impact)
0
Refs
0.64
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Global Health and Surgery
Health Sciences →  Medicine →  Public Health, Environmental and Occupational Health
Malaria Research and Control
Health Sciences →  Medicine →  Public Health, Environmental and Occupational Health
Viral Infections and Outbreaks Research
Health Sciences →  Medicine →  Infectious Diseases
© 2026 ScienceGate Book Chapters — All rights reserved.