Instruction Tuning with LLMs for Programming Exercise Generation

Guolong Zeng, Qinchen Xue, Xuesong Lu*

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Large language models (LLMs) have been applied to help programming education on aspects such as question answering and program repair. While they make students learn more efficiently, how to use LLMs to help increase teaching efficiency is rarely explored. In this paper, we focus on harnessing LLMs to automatically generate programming exercises with the goal of alleviating teachers’ workload and enhancing teaching efficiency. We first evaluate the performance of seven open-source LLMs using prompts, and then fine-tune two winning LLMs using instructions constructed with the Evol-Instruct and the ACES algorithms, respectively. Experimental results demonstrate the improved performance on the two LLMs after the instruction tuning. Additionally, our contribution encompasses the formulation of evaluation metrics and the exploration of various prompt methods.

Original languageEnglish
Title of host publicationWeb Information Systems and Applications - 21st International Conference, WISA 2024, Proceedings
EditorsCheqing Jin, Shiyu Yang, Xuequn Shang, Haofen Wang, Yong Zhang
PublisherSpringer Science and Business Media Deutschland GmbH
Pages377-385
Number of pages9
ISBN (Print)9789819777068
DOIs
StatePublished - 2024
Event21st CCF Conference on Web Information Systems and Applications in China, WISA 2024 - Yinchuan, China
Duration: 2 Aug 20244 Aug 2024

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume14883 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference21st CCF Conference on Web Information Systems and Applications in China, WISA 2024
Country/TerritoryChina
CityYinchuan
Period2/08/244/08/24

Keywords

  • Instruction Tuning
  • Open-source LLMs
  • Programming exercise generation

Fingerprint

Dive into the research topics of 'Instruction Tuning with LLMs for Programming Exercise Generation'. Together they form a unique fingerprint.

Cite this