Idea · Aug 13, 2026

Structure-Mapping Auditing for LLM-Generated Programming Analogies: Toward Misconception-Safe Automated Explanation in CS1

LLM-generated analogies for CS1 concepts are increasingly used in instruction, but no framework verifies that their source-to-target mappings are structurally sound. This research builds and validates a Structure-Mapping Theory-grounded auditor that flags and repairs analogy-induced misconceptions before classroom deployment.

What it would do

The ITiCSE 2025 paper 'Multimodal Analogy Generation in Programming Education' demonstrates that LLMs can produce analogy-based explanations and animations for CS1 topics, but its prototype contains no verification that generated analogies preserve structural fidelity: correct mapping of relations (not just surface attributes) between source and target domains. Poorly mapped analogies are a documented source of new misconceptions, particularly for novice programmers learning recursion, pointers, and concurrency. Drawing on Gentner's Structure-Mapping Theory (the theoretical foundation for Pisan's own 1998-2000 analogy-based requirements elaboration work at ICSE 2000), this project would design an automatic auditing pipeline: an LLM-based tool that decomposes each generated analogy into relational tuples, checks source-target structural consistency, and either flags mismatches for instructor review or triggers an LLM repair loop. Phase 1 is entirely computational (no IRB): generate large analogy batches for 10 CS1 topics, audit them, measure false-positive/negative rates against expert-rater ground truth. Phase 2 integrates the auditor into the ANVIL pipeline (the 2026 extension of the ITiCSE prototype) as a reusable safeguard. The research operationalizes a 30-year-old theoretical framework with modern LLMs, and its deliverable is directly applicable to any LLM analogy-generation system in CS education.

More in AI Literacy & Ethics

Mapping UTA Practice to LLM Office Hours: A Benchmark for Human-Aligned CS Tutoring

Ciego et al. (SIGCSE TS 2026) empirically identified six pedagogical moves that effective UTAs use during CS office hours; this research uses those six moves as a design specification and evaluation rubric to determine how faithfully LLM-powered CS tutoring systems can replicate human UTA behavior.

AI Literacy & EthicsResearch directionResearchAug 16, 2026

All 110 ideas in AI Literacy & Ethics →