EduBot - Can LLMs Solve Personalized Learning and Programming Assignments?

Yibin Wang, Jiaxi Xie, Lakshminarayanan SubramanianarXiv 2025 · DOI

Introduction

While Large Language Models (LLMs) have demonstrated remarkable proficiency in "one-shot" code generation, they frequently struggle with the complexities of multi-step, comprehensive programming assignments. Real-world educational scenarios require more than just syntactic correctness; they demand conceptual understanding, iterative feature integration, and robust debugging. Current zero-shot approaches often fail to capture the recursive nature of human learning, where a student might need a theoretical explanation before proceeding to implementation. EduBot addresses this gap by simulating a tutor-student interaction through recursive prompting and automated environment feedback.

System Architecture and Methodology

The EduBot framework is designed to mimic the pedagogical flow of a human tutor. The system architecture consists of several integrated components that manage the transition from conceptual inquiry to functional code.

The EduBot system architecture, illustrating the separation between frontend interaction and backend processing workflows.

At the core of the backend is a PyTorch-based LSTM Question Classifier. This model categorizes user input into either "conceptual" or "coding-related" queries. This classification determines the subsequent workflow:

  • Conceptual Workflow: Focuses on providing definitions, extracting key technical terms for deeper exploration, and suggesting related practice questions to solidify theoretical foundations.
  • Coding Workflow: Generates Python code which is immediately validated via a Local Environment Linter. If syntax errors are detected, the system enters an automated debugging loop, generating "buildup prompts" to rectify issues without requiring user intervention.

The system further utilizes Role Prompting (positioning the LLM as a computer science expert) and Zero-Shot Chain of Thought reasoning to ensure structured and high-quality pedagogical outputs.

Experimental Evaluation

To evaluate EduBot's effectiveness, the authors developed a comprehensive benchmark suite consisting of 20 distinct programming scenarios. These scenarios are categorized into three domains:

  1. Algorithms: Including sorting, binary search trees, and dynamic programming.
  2. Machine Learning: Covering regression, unsupervised learning, and neural network implementations (e.g., LSTMs).
  3. Real-World Problems: Such as web scraping and Sudoku solvers.

Across these scenarios, the benchmark includes a total of 79 sub-tasks of incremental difficulty, designed to test the limits of the underlying LLM backbones.

Results and Performance Analysis

The study compared the performance of three primary LLM backbones: GPT-3.5-Turbo, GPT-4, and the reasoning-optimized GPT-4o1.

Comparative task completion rates across GPT-3.5, GPT-4, and GPT-4o1 backbones, highlighting the 100% success rate of the o1 model.

The most significant finding was that GPT-4o1 achieved a 100% completion rate, successfully solving all 79 sub-tasks. In contrast, GPT-4 (76/79) performed slightly worse than GPT-3.5 (77/79) in terms of raw completion, particularly struggling with complex implementations like building an LSTM from scratch. This suggests that the "o1" class of models, with their enhanced internal reasoning capabilities, are uniquely suited for the recursive chains required by EduBot.

In terms of efficiency, GPT-4o1 was the fastest model across the board, averaging 83.4 seconds per sub-goal for real-world problems. Most full scenarios were completed in under 20 minutes, demonstrating the system's viability for near-real-time educational assistance.

Discussion and Future Work

EduBot demonstrates that the architecture of interaction—specifically the use of recursive loops and automated feedback—is as critical as the model's raw parameters. By enforcing a logical sequence (Introduction -> Goal Definition -> Implementation -> Evaluation), the system mitigates common "hallucination traps" that occur when asking for a complex system in a single prompt.

However, limitations remain. The system currently relies on user triggers for certain "buildup" requests, and the recursive nature of the prompts increases API latency and cost. Future research will focus on scaling EduBot to handle multi-file repository-level development and integrating the tool into actual classroom settings to observe long-term student-tutor dynamics.

Summary updated

BibTeX
@misc{wang2025edubot,
  author = {Yibin Wang and Jiaxi Xie and Lakshminarayanan Subramanian},
  title = {{EduBot - Can LLMs Solve Personalized Learning and Programming Assignments?}},
  year = {2025},
  eprint = {2504.17824},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.17824},
}
Figure