← All research

AI for Learning

This paper evaluates a 45-minute lesson designed to teach students how to effectively 'prompt' Large Language Models for programming tasks.

cs.CYBeginner-friendly

Teaching Prompt-Based Programming with LLMs: A 45-Minute Lesson with Guided Practice for End-User Programmers

Keith Tran, Samiha Marwan, Thomas Price

In plain terms

Large Language Models (LLMs) enable a new way of programming where users describe their computational goals in natural language, known as "prompt-based programming." However, users, especially those new to computer science, often struggle to write clear and specific instructions, or "prompts," for these LLMs, leading to less effective results. This study investigated whether a brief lesson could help address this issue. The researchers developed a 45-minute lesson with guided practice focused on teaching effective prompt writing for LLMs. They then conducted a randomized controlled study with 55 engineering students, comparing the effectiveness of this lesson against a standard computer science activity of the same duration. The findings showed that students who received the prompt-based programming lesson improved more in their ability to specify computational goals to LLMs and significantly increased their confidence in using prompts, compared to the control group. This suggests that even a short intervention can start to improve learners' skills in interacting with LLMs, though developing deeper proficiency might require more extensive practice.

Why it matters · This research is crucial for newcomers because it addresses the growing need to teach effective interaction with AI systems like LLMs, which is becoming a fundamental skill in many fields. It demonstrates how educational interventions can be designed to build this new 'AI literacy' and explores the impact of short, focused training.

About this work · This research falls within the rapidly expanding area of AI literacy and education, focusing on how to integrate instruction on new AI technologies, particularly Large Language Models, into existing curricula to prepare learners for future computational tasks.

Prompt engineeringAI literacyLLMs in educationComputer science educationPedagogy