CodeYoink
The Yoink Report UK Research

Warwick researchers build AI tutor that holds back coding answers

A University of Warwick team trained a small AI model to help learners fix bugs in Python by asking questions. In tests it gave away answers far less often than GPT-4o.

News of Published 1 min read

A modern building of glass and brick with a curved roof and a round brick tower on a sunny day
The Warwick Manufacturing Group building at the University of Warwick in 2011 Picture: Rwendland, CC BY-SA 4.0, Wikimedia Commons. Cropped.

University of Warwick researchers posted a paper on 10 October 2026 about an AI tutor that helps learners fix bugs without giving answers away.

The paper, by Mykhailo Kopytskyi, Jianhua Yang and Mir Seyedebrahimi, describes a tutor called SocraticRepair. A Socratic tutor asks questions that lead the learner to find the problem. The team further trained a small open model, Qwen2.5-Coder-7B-Instruct, on 1213 tutoring dialogues about Python. Other AI models wrote these dialogues from buggy student programs in four programming datasets.

The team compared it with GPT-4o, a general chatbot model, on 53 programming problems it had not seen. According to the full text, SocraticRepair gave away the answer too early in 24 of 1,276 turns (1.88%). GPT-4o did so in 59 of 794 turns (7.43%). Across whole conversations, the figures were 12.6% and 33.3%.

For learners who ask a chatbot for help with code, the paper says general models tend to reveal the solution too early. The Raspberry Pi Foundation makes a similar point in a lesson unit for ages 13 to 16, made with Google DeepMind. The foundation says AI models usually give the answer by default. Its five lessons teach pupils to write prompts that get the tool to guide or challenge them instead.

GPT-4o scored higher on technical correctness. The lesson plans SocraticRepair wrote for itself often had technical errors. The students in the tests were simulated by another AI model, which the authors say may not reflect how real learners would use the tutor. The paper does not say whether the tutor will be released.

Sources

  1. arXiv SocraticRepair: Planning-Guided Socratic Tutoring for Program Debugging and Misconception Repair
  2. arXiv SocraticRepair, full text
  3. Raspberry Pi Foundation Encouraging learners to think first, prompt second: Using large language models to learn

Read next

  1. Newcastle and Westminster to stop using Turnitin in 2027UK
  2. DfE poll finds 84% of teens back technical options such as codingUK
  3. EU Code Week 2026 opens with a debate on coding in the age of AIEurope