Skip to main content
QUICK REVIEW

[Paper Review] Sketch2Feedback: Grammar-in-the-Loop Framework for Rubric-Aligned Feedback on Student STEM Diagrams

Aayam Bansal|arXiv (Cornell University)|Feb 19, 2026
Multimodal Machine Learning ApplicationsComputer Science0 citations
TL;DR

Sketch2Feedback proposes a four-stage grammar-in-the-loop pipeline that combines hybrid perception, symbolic graph reasoning, constraint checking, and constrained VLM feedback to provide rubric-aligned feedback on student diagrams, with mixed results across FBD and circuit datasets.

ABSTRACT

Providing timely, rubric-aligned feedback on student-drawn diagrams is a persistent challenge in STEM education. While large multimodal models (LMMs) can jointly parse images and generate explanations, their tendency to hallucinate undermines trust in classroom deployments. We present Sketch2Feedback, a grammar-in-the-loop framework that decomposes the problem into four stages -- hybrid perception, symbolic graph construction, constraint checking, and constrained VLM feedback -- so that the language model verbalizes only violations verified by an upstream rule engine. We evaluate on two synthetic micro-benchmarks, FBD-10 (free-body diagrams) and Circuit-10 (circuit schematics), each with 500 images spanning standard and hard noise augmentation tiers, comparing our pipeline against end-to-end LMMs (LLaVA-1.5-7B, Qwen2-VL-7B), a vision-only detector, a YOLOv8-nano learned detector, and an ensemble oracle. On n=100 test samples per benchmark with 95% bootstrap CIs, results are mixed and instructive: Qwen2-VL-7B achieves the highest micro-F1 on both FBDs (0.570) and circuits (0.528), but with extreme hallucination rates (0.78, 0.98). An ensemble oracle that selects the best prediction per sample reaches F1=0.556 with hallucination 0.320 on FBDs, demonstrating exploitable complementarity between grammar and end-to-end approaches. Confidence thresholding at tau=0.7 reduces circuit hallucination from 0.970 to 0.880 with no F1 loss. Hard noise augmentation reveals domain-dependent robustness: FBD detection is resilient while circuit detection degrades sharply. An LLM-as-judge evaluation confirms that the grammar pipeline produces more actionable circuit feedback (4.85/5) than the end-to-end LMM (3.11/5). We release all code, datasets, and evaluation scripts.

Motivation & Objective

  • Motivate timely rubric-aligned feedback for student-drawn STEM diagrams where end-to-end LMMs hallucinate.
  • Isolate perception and reasoning to improve trust and actionability of feedback.
  • Evaluate a four-stage pipeline on FBD-10 and Circuit-10 benchmarks with ground-truth errors.
  • Analyze where perception, reasoning, and generation succeed or fail and attribute errors transparently.

Proposed method

  • Stage 1 uses hybrid CV detection (CLAHE, adaptive thresholding, contours, HoughLinesP) to detect primitives.
  • Stage 2 builds a typed symbolic graph G=(V,E) from detected primitives.
  • Stage 3 runs domain-specific local and non-local constraint checks against the scenario key.
  • Stage 4 feeds only verified violations to a constrained VLM (Qwen2-VL-2B) to generate rubric-aligned feedback, with fallbacks to templates if needed.
Figure 1 : Sketch2Feedback pipeline overview. Stage 1 : Hybrid CV perception detects primitives (arrows, wires, components, junctions) via CLAHE preprocessing, adaptive thresholding, contour analysis, and HoughLinesP. Stage 2 : Detected primitives form a typed symbolic graph $G=(V,E)$ with spatial p
Figure 1 : Sketch2Feedback pipeline overview. Stage 1 : Hybrid CV perception detects primitives (arrows, wires, components, junctions) via CLAHE preprocessing, adaptive thresholding, contour analysis, and HoughLinesP. Stage 2 : Detected primitives form a typed symbolic graph $G=(V,E)$ with spatial p

Experimental results

Research questions

  • RQ1Can a grammar-in-the-loop pipeline provide rubric-aligned feedback with grounded, verifiable observations on student diagrams?
  • RQ2How does modular perception+reasoning compare to end-to-end LMMs in detecting diagram errors and producing actionable feedback?
  • RQ3Where do perception or reasoning stages fail, and can error attribution inform future improvements?
  • RQ4How do the proposed methods perform across free-body diagrams and circuit schematics?
  • RQ5What are the trade-offs in detection accuracy, feedback quality, hallucination, calibration, and latency?

Key findings

  • End-to-end LMMs outperform the grammar pipeline on FBD error detection (micro-F1 0.471 vs 0.263) and provide stronger feedback in FBD contexts.
  • The grammar pipeline outperforms the end-to-end model on circuit diagrams (micro-F1 0.329 vs 0.038) and achieves perfect actionability (5.0/5).
  • Circuit hallucination in the grammar pipeline is high (0.925) due to perception false positives, not LLM fabrication, enabling precise failure attribution to Stage 1.
  • The grammar pipeline delivers perfect circuit feedback actionability (5.0/5) via template-based generation when violations are detected.
  • Vision-only baselines show very low hallucinations but poor detection, highlighting the need for structured reasoning for actionable feedback.
  • Per-type analysis reveals complementary strengths: grammar excels at structural constraint violations in FBD and missing-ground in circuits, while end-to-end detects omission-type errors (e.g., missing force).
Figure 2 : Model complementarity across error types. The grammar pipeline excels at structural constraint violations (wrong direction, missing ground), while the E2E-LMM detects omission-type errors (missing force). Neither model detects missing components or wrong polarity, indicating a shared perc
Figure 2 : Model complementarity across error types. The grammar pipeline excels at structural constraint violations (wrong direction, missing ground), while the E2E-LMM detects omission-type errors (missing force). Neither model detects missing components or wrong polarity, indicating a shared perc

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.