Robosourcing Educational Resources -- Leveraging Large Language Models for Learnersourcing

Paul Denny, Sami Sarsa, Arto Hellas, Juho LeinonenarXiv 2022

This paper introduces Robosourcing, a hybrid workflow that combines the generative power of Large Language Models (LLMs) with human-in-the-loop evaluation to create high-quality educational content at scale. By shifting the student's role from content creator to content curator, the authors demonstrate that LLMs like OpenAI Codex can produce novel, sensible programming exercises that significantly reduce human effort while maintaining pedagogical value.

TL;DR

Robosourcing leverages LLMs to automate the heavy lifting of educational content creation, leaving humans to act as high-level evaluators and editors. A pilot study using OpenAI Codex to generate programming exercises found that over 75% of the output was sensible and novel, suggesting a scalable solution to the motivation and quality issues that plague traditional student-generated content.

What Problem Does This Paper Address?

The authors tackle the challenges of learnersourcing—a pedagogy where students create learning resources (like practice questions) for their peers. While learnersourcing is theoretically beneficial for both the creator (who learns by teaching) and the consumer (who gets more resources), it often fails in practice due to two main hurdles:

  1. Low Motivation: Students find creating content from scratch difficult and time-consuming, often preferring to simply consume existing materials.
  2. Low Quality: Novice students frequently produce resources with errors, confusing descriptions, or poor coverage of core concepts.

Robosourcing aims to lower the "barrier to entry" for students by providing them with AI-generated drafts that they can then evaluate, tweak, and approve.

Methods

The authors propose a multi-stage robosourcing model (illustrated in Figure 1) and evaluate it specifically for introductory programming exercises.

Figure 1: Overview of the robosourcing model. A user (e.g. a learner) provides a starting point for creating exercises, which the system then uses to create an exercise pool. The exercise pool is filtered initially by the system based on options given by the user, after which the user can also filter out exercises. The exercises that are not filtered out are added to an exercise database.
  • Priming: A human provides a "priming exercise" (a few-shot prompt) containing a problem statement, a sample solution, and specific keywords for themes (e.g., "hiking") and programming concepts (e.g., "lists").
  • Generation: The system uses OpenAI Codex (code-davinci-001) to generate a pool of new exercises based on the priming input.
  • Filtering: The system performs an initial automated filter (checking if the code runs and passes generated tests).
  • Human-in-the-loop: A human (the learner) performs a final qualitative review, editing the exercises as needed before adding them to a shared database.

Datasets

The authors did not use a standard external benchmark. Instead, they created a custom evaluation corpus:

  • Evaluation Set: 240 programming exercises generated by Codex.
  • Input Variables: They manipulated 9 contextual themes and 2 sets of programming concepts (see Table 1 below) across two different priming examples (a speeding fine calculator and a currency converter).
  • Temperature: They tested two LLM temperature settings (0 and 0.75) to vary the creativity of the output.
Table 1 Keywords used for priming exercise generation.

Key Insights and Ideas

  • Shifting the Cognitive Load: The core "aha" moment is the shift from creation to evaluation. In professional software engineering, code review is a vital skill; robosourcing brings this professional practice into the classroom by making students "reviewers" of AI-generated code.
  • Novelty is High: One might fear LLMs would just regurgitate existing textbook problems. However, 81.8% of the generated exercises were novel (not found via Google search), proving the model's ability to synthesize new contexts.
  • The "Print vs. Return" Trap: A significant portion of quantitative failures occurred because the LLM-generated solution printed a value while the automated tests expected it to return a value. This is a classic novice error, suggesting that LLMs effectively mirror common student misconceptions, which can itself be a teaching moment during the evaluation phase.

Key Results

The qualitative evaluation of 120 randomly sampled exercises showed high feasibility (summarized in Table 2).

Table 2 Summary of the manually evaluated programming exercises.
  • Sensibleness: 75% of exercises were deemed sensible and practical for students.
  • Topicality: ~79% successfully incorporated the requested themes, and ~77% included the requested programming concepts.
  • Quantitative Performance: Out of 240 exercises, 84.6% included a sample solution, and 89.7% of those solutions were runnable. While only 30.9% passed all automated tests, the authors noted that most failures required only "minor tweaks" to fix.

Limitations and Future Work

  • Bias: The authors noted that generated problem descriptions more commonly involved men, highlighting the risk of LLMs perpetuating societal biases.
  • Plagiarism: There is a concern that teaching students to use LLMs for content creation might inadvertently encourage them to use LLMs to solve their own homework (plagiarism).
  • Model Optimization: The study used an early version of Codex without fine-tuning. Future work should explore newer models (like GPT-4) and fine-tuning specifically on high-quality pedagogical datasets.
  • Student Perception: The current study was conducted by researchers; the next step is to deploy this in a real classroom to see if students actually feel more motivated by the "evaluator" role.

Summary updated

BibTeX
@misc{denny2022robosourcing,
  author = {Paul Denny and Sami Sarsa and Arto Hellas and Juho Leinonen},
  title = {{Robosourcing Educational Resources -- Leveraging Large Language Models for Learnersourcing}},
  year = {2022},
  eprint = {2211.04715},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.04715},
}
Figure