Claims

LLM-generated erroneous code aligns with authentic student errors at levels that depend on model and prompting strategy, with Claude Sonnet 4 most consistently aligned

Claim · All claims
Evidence · 1 study · causal r2 · q2
Currency · newest study 2026 · not yet checked against its sources · not reviewed by a person · recheck by 2029: tool and model accuracy changes quickly

Subclaims

Reading the evidence codes

q is the design tier, i the impact, n the sample, and the kind with its r the rigour judged within that kind: what each code means.

This claim: no standardized effect is recorded in observations/ for it yet, so no benchmark reading is possible.

q2 i? Mean nearest edit distances to human submissions show LLMs can resemble student errors (best 16.35, Claude Sonnet 4 with Self-Refine), but GPT-5 and Gemini 2.5 Pro often exceed 80. → Ali Keramati 2026

Evidence

Ali Keramati 2026

Ali Keramati, Jie Cao, Iman Mohammadi, Mark Warschauer, Yang Shi. (2026). Simulating Students' Java Programming Errors with Large Language Models. arXiv preprint. https://arxiv.org/abs/2606.14113 doi:10.48550/arxiv.2606.14113

q2 · i? · causal · r2

Two-stage structural alignment analysis comparing each LLM-generated error against 74,080 deduplicated human submissions via Jaccard retrieval and Zhang-Shasha tree edit distance. "Claude Sonnet 4 provides the most consistent alignment"; Grok Code Fast 1 achieved the absolute minimum (16.22) with Self-Refine but fluctuated above 30 under IO and CoT.

"Claude Sonnet 4 provides the most consistent alignment: across all prompting strategies, its distances remain rela- tively low, with the best case (16.35 under Self-refine) be- ing the closest match to real student code among all con- ditions."

Discussion

Page metadata
Field Value
type claim
id llm-error-alignment-depends-on-model-and-prompting-strategy
title LLM-generated erroneous code aligns with authentic student errors at levels that depend on model and prompting strategy, with Claude Sonnet 4 most consistently aligned
description LLM-generated erroneous code aligns with authentic student errors at levels that depend on model and prompting strategy, with Claude Sonnet 4 most consistently aligned
status review
evidence_strength moderate
newest_evidence 2026
recheck_by 2029
generated by process:wiki-ingest on 2026-10-11
trust unverified — no one has confirmed this page's content
sources 1 — ali-keramati-2026

Frontmatter is the page's machine-readable record — see the Schema & Guide.