LLM-based pseudocode compiler silently fixed a student's bug, prompting a faithfulness test
A developer building Pseudo.NET, a compiler for free-form pseudocode that uses a local language model, found the model repaired a deliberately wrong program when its comment stated the intended result. In a running-total test, the model added a reset that the student never wrote, so the program printed the correct values instead of the buggy ones. The developer wrote six faulty programs and ran them through the compiler, and the model kept the mistake in five of six cases. A separate case, a function missing a return, showed the compiler itself had silently defaulted to zero, which the developer has since changed to an explicit error. The results come from single runs on one model family, so the developer notes they are preliminary. Teachers are now advised to avoid stating expected results in comments and to inspect the generated code when output surprises them.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in