AI-Tutoring in Software Engineering Education

Eduard Frankford, Clemens Sauerwein, Patrick Bassner, Stephan Krusche, Ruth Breu

TL;DR

This paper explores the integration of a GPT-3.5-Turbo powered AI-Tutor into an Automated Programming Assessment System (APAS) called Artemis. The study reveals two distinct student interaction patterns and highlights both the potential of AI-tutors for scalable, timely feedback and challenges like generic responses and student concerns about over-reliance.

What Problem Does This Paper Address?

The rapid advancement of AI, particularly Large Language Models (LLMs), has opened new avenues for educational tools. While Intelligent Tutoring Systems (ITS) have existed for some time, their reliance on limited training data restricts their scope. LLMs, with their vast training data, offer the potential for more nuanced and context-aware feedback, bridging the gap left by traditional ITS. However, the practical application of LLMs as AI-tutors within programming assessment systems, and the resulting student experiences, remains largely unexplored. This paper aims to fill this gap by investigating how students interact with an LLM-powered AI-tutor in an APAS and analyzing their experiences.

Methods

The researchers conducted an exploratory case study using a three-stage methodological approach:

  1. Integration of the AI-Tutor within an APAS: They integrated the GPT-3.5-Turbo model into the Artemis APAS. Artemis was chosen for its open-source nature, functional scope, online editor, and large user base. The AI-Tutor was designed to provide feedback without directly revealing code solutions, using a carefully crafted prompt that included the exercise description, the student's current code, and the optimal solution.
  2. Practical application by students: Students in an "Introduction to Programming" course at the University of Innsbruck were tasked with solving a Pascal's triangle exercise using the modified Artemis platform. They could choose to use the AI-Tutor or not.
  3. Exploratory survey: A survey was administered to collect student feedback on their experiences with the AI-Tutor, drawing on the Technology Acceptance Model (TAM) to assess perceived ease of use and usefulness. Open-ended questions were also included to gather qualitative insights.

Data analysis involved temporal coding of submissions and feedback requests to identify interaction patterns, and thematic coding of survey responses to uncover common themes and develop narrative insights.

Datasets

The study did not introduce new benchmarks. The primary data sources were:

  • Artemis APAS data: This included student code submissions, AI-generated feedback, user identifiers, file names, and timestamps.
  • Qualitative survey responses: Data from students answering questions about their experiences, challenges, and suggestions for improvement.

The collected data was anonymized and made available on Figshare.

Key Insights and Ideas

  • Two distinct student personas emerged:
    • Iterative Ivy: Students who heavily relied on the AI-Tutor for guidance before submitting their initial solution, following a more linear, step-by-step approach.
  • Hybrid Harry: Students who alternated between seeking AI-Tutor feedback and submitting to the APAS throughout their coding process, exhibiting a more agile, iterative approach.
  • AI-Tutor feedback is effective, but not perfect: While the AI-Tutor was found to be effective 66.6% of the time, a significant portion of feedback was either too generic, revealed solutions, or contained "hallucinations" (incorrect or irrelevant information).
  • Student concerns about over-reliance: A notable apprehension among students was the fear that using the AI-Tutor might hinder their learning progress by promoting over-reliance and reducing their own problem-solving efforts.
  • Prompt engineering is key: The study highlights the importance of carefully crafting prompts to guide the LLM's behavior, especially in preventing it from revealing solutions and ensuring pedagogically sound feedback.
  • Scalability and timeliness are major advantages: The AI-Tutor's ability to provide instant, personalized feedback to a large number of students simultaneously is a significant benefit for large-scale educational settings.

Key Results

  • Student Interaction: Four distinct interaction patterns were observed, with 12 students showing high engagement with both Artemis and the AI-Tutor.
  • Student Experience (TAM survey):
    • "I find the AI Tutor easy to use" received a mild agreement (average sentiment 1.29).
  • Other TAM-related questions (speed, performance, productivity, ease of task, usefulness) resulted in largely neutral average sentiments, indicating mixed feelings.
  • Student Experience (Open-ended questions):
    • Desire for Specificity: Feedback was often perceived as too generic, lacking concrete pointers for improvement.
  • Request for Interactivity: Students desired more interactive capabilities, such as asking follow-up questions.
  • Demand for Examples: Concrete code examples were requested to better understand AI suggestions.
  • Apprehension about Learning Inhibition: Concerns about over-reliance and slowed learning progress were prevalent.
  • Lessons Learned: The AI-Tutor demonstrated capacity for real-time, personalized feedback, including identifying logical and semantic issues. However, challenges included generic feedback, hallucinations, and the need for more interactive features.

Limitations and Future Work

Limitations:

  • Construct Validity: Research questions were formulated using the PICOC framework and refined through expert discussions.
  • Reliability: While the methodology is reproducible, the inherent variability of LLMs means slight variations in responses might occur across different experiment replications.
  • External Validity: The study was conducted using only the Artemis APAS, though Artemis's functionalities are representative of other APASs. The use of GPT-3.5-Turbo means findings might not perfectly generalize to all LLMs, but it serves as a representative example. The small sample size (23 students) limits statistical significance, leading to a qualitative focus.
  • Internal Validity: The qualitative analysis, while rigorous, could introduce subjective bias.

Future Work:

  • Enhance Feedback Specificity: Develop methods to provide more detailed and code-specific feedback.
  • Improve Interactivity: Explore chatbot-style interactions to allow for follow-up questions.
  • Refine User Interface: Address issues like the inability to view past feedback.
  • Address Token Limits and Prompt Engineering: Investigate strategies to overcome context limitations and prevent solution revelation.
  • Explore More Powerful Models: Investigate the potential of models like GPT-4 for further improvements.
  • Integrate AI Feedback with Unit Tests: This could help students identify when their code is correct and when AI feedback might be less reliable.
  • Address Over-reliance Concerns: Develop pedagogical strategies to encourage critical thinking and prevent over-dependence on AI.

Summary updated

BibTeX
@inproceedings{frankford2024ai,
  author = {Eduard Frankford and Clemens Sauerwein and Patrick Bassner and Stephan Krusche and Ruth Breu},
  title = {{AI-Tutoring in Software Engineering Education}},
  booktitle = {Seet@icse},
  year = {2024},
}
Figure