Iris: An AI-Driven Virtual Tutor For Computer Science Education

Patrick Bassner, Eduard Frankford, Stephan Krusche

TL;DR

This paper introduces Iris, an AI-driven virtual tutor integrated into a learning platform to provide personalized, context-aware assistance for computer science students. Iris aims to foster independent problem-solving by offering subtle hints and counter-questions instead of direct solutions, and early evaluations show students find it effective and comfortable to use.

What Problem Does This Paper Address?

Large computer science courses often struggle with low student-to-tutor ratios, making personalized support a rarity. While AI chatbots can offer scalable assistance, traditional ones often provide scripted responses or, worse, complete solutions that hinder learning. Existing AI tools also require students to manually provide context (code, problem statements), which is cumbersome. This paper addresses the need for an AI tutor that seamlessly integrates with learning platforms, understands student context, and provides calibrated, non-solution-revealing guidance to promote genuine learning.

Methods

Iris is built upon the GPT-3.5-Turbo language model and utilizes Microsoft's Guidance Library for a multi-step "Chain-of-Thought" prompting strategy. Key aspects of its approach include:

  • Calibrated Assistance: Iris is programmed to avoid providing direct code solutions, instead offering hints or counter-questions to encourage students to think through problems themselves.
  • Context-Awareness: Unlike general-purpose chatbots, Iris integrates with the Artemis learning platform to access the student's current code, the problem statement, and automated feedback. This allows for highly relevant and tailored advice.
  • Initial System Prompting: A detailed "excellent tutor" role is defined for the LLM, outlining its behaviors and limitations.
  • Few-Shot Learning: The prompt includes examples of student questions and desired tutor responses to guide the LLM's behavior.
  • Chain-of-Thought Processing: This involves:
  • Relevance Assessment: Iris filters out off-topic questions.
  • File Selection: The LLM identifies relevant code files from the student's repository.
  • Response Generation: The LLM crafts a response based on the context.
  • Post-Generation Self-Check: A mechanism ensures Iris adheres to its "excellent tutor" guidelines and doesn't reveal solutions.

Datasets

Not discussed in the paper. The evaluation was based on a survey of students using Iris in their courses.

Key Insights and Ideas

  • The Power of Context: Integrating Iris directly into the learning platform and giving it access to student code and problem statements is crucial for providing truly helpful and tailored assistance, a significant improvement over generic chatbots.
  • Calibrated Guidance is Key: The deliberate design to avoid giving direct solutions and instead offer hints or questions is vital for fostering independent learning and preventing students from simply copying answers.
  • Comfort and Safety in AI: Students feel significantly more comfortable asking Iris questions, even potentially "silly" ones, without fear of judgment compared to asking human instructors. This opens up a valuable space for learning.
  • Complement, Not Replacement: While Iris is perceived as effective and engaging, students generally see it as a valuable complement to human tutors, rather than a complete substitute.
  • Exam Confidence Remains: Students feel confident tackling exams without Iris, suggesting that while it's a great tool for practice and homework, it doesn't diminish their ability to perform independently under pressure.

Key Results

  • Perceived Effectiveness (RQ1):
    • 46% of students felt Iris understood their queries well.
  • 44% found Iris provided directly helpful assistance.
  • 50% agreed Iris improved their understanding of programming concepts.
  • 60% found interactions engaging, though motivation impact was more mixed.
  • Preference over Human Assistance (RQ2):
    • A striking 92% felt comfortable asking Iris questions without judgment.
  • 62% felt safe asking sensitive questions.
  • Preference for Iris over human tutors was balanced (35% preferred Iris, 48% disagreed).
  • Students were more open to using Iris for lecture content questions than asking professors directly.
  • Reliance (RQ3):
    • 43% found programming exercises more challenging without Iris.
  • However, only 27% felt computer-based exams would be difficult without Iris.

Limitations and Future Work

  • Limitations:
    • Internal Validity: Survey data relies on self-reporting, which can be biased. The analysis focused on students with at least ten interactions, potentially overlooking less engaged users.
  • External Validity: Findings are from a specific educational setting and may not generalize perfectly.
  • Construct Validity: Survey questions might not fully capture all nuances of perceived effectiveness or comfort.
  • Future Work:
    • Controlled Experiments: Compare Iris against general AI tools (like ChatGPT) and a control group to objectively measure learning outcomes.
  • LLM Optimization: Explore more advanced LLMs (e.g., GPT-4) and fine-tuning for better performance, while balancing cost.
  • Enhanced Contextualization: Move beyond file names to use embedding indexes for more precise code and problem statement analysis.
  • Investigate Non-Users: Understand why some students don't use Iris and how it could still provide value.
  • Ethical Considerations: Continue to ensure data privacy and equitable access.
  • Communicate AI Usage: Clearly inform students about the intended use and limitations of AI tools, especially regarding exams.

Summary updated

BibTeX
@inproceedings{bassner2024iris,
  author = {Patrick Bassner and Eduard Frankford and Stephan Krusche},
  title = {{Iris: An AI-Driven Virtual Tutor For Computer Science Education}},
  booktitle = {Iticse},
  year = {2024},
}
Figure