Students learning algorithms most want the feedback "here's how to solve it." But the best feedback is: "Where are you stuck? Walk through it yourself first... what's the value of this variable on the third loop iteration?"—not giving answers, but guiding the thought process.
The KITE System
KITE, developed by Jain, Bhatt, Pitts, Pandya, Brusilovsky, Norouzi, Hellas, Leinonen, and Akram (the same group behind the AI courseware work, joined by ITS veteran Peter Brusilovsky), is a RAG-based tutoring agent for algorithms. Its core design decision: do not give students direct answers; instead, respond with Socratic, targeted hints.
The system first infers student intent:
- Conceptual question — e.g., "What's the difference between DFS and BFS?"
- Algorithm tracing — e.g., "What should the visited array look like here?"
- Debugging a logic error — e.g., "My code's output is wrong"
- The gap between simulated and real students may be large—does a weak model's error-correction pattern actually reflect real student learning behavior?
- The system's intent-classification accuracy is not quantitatively disclosed. If a student's intent is ambiguous, does the system fall back to generic hints, or does it fail?
Each intent category is matched to a different response strategy.
RAG Pipeline
The underlying pipeline retrieves relevant content chunks from course materials to keep responses consistent with course content. Retrieved content is not limited to text—it also includes example code, pseudocode, and algorithm visualization descriptions, fed to the generator in a multimodal fashion.
Evaluation
The evaluation has a novel component. Beyond standard expert scoring and RAGAs metrics, the authors built a "simulated student" pipeline: a weaker language model (playing the simulated student) interacts with KITE over two turns, and the system observes whether it can revise its answer after receiving KITE's feedback.
Result: on algorithm-tracing questions, the simulated student's answer accuracy improved significantly after receiving KITE's guiding feedback.
Open Questions
References
1. Jain, M., Bhatt, T., Pitts, G., et al. (2026). *Retrieval-Augmented Tutoring for Algorithm Tracing and Problem-Solving in AI Education*. arXiv:2605.12988 [cs.AI]. 2. Brusilovsky, P., & Millán, E. (2007). *User Models for Adaptive Hypermedia and Adaptive Educational Systems*. The Adaptive Web. 3. Lewis, P., et al. (2020). *Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks*. NeurIPS.