Exploring the Design Space of Cognitive Engagement Techniques with AI-Generated Code for Enhanced Learning
Not on the map. Why?
Abstract (arXiv)
Novice programmers are increasingly relying on Large Language Models (LLMs) to generate code for learning programming concepts. However, this interaction can lead to superficial engagement, giving learners an illusion of learning and hindering skill development. To address this issue, we conducted a systematic design exploration to develop seven cognitive engagement techniques aimed at promoting deeper engagement with AI-generated code. In this paper, we describe our design process, the initial seven techniques and results from a between-subjects study (N=82). We then iteratively refined the top techniques and further evaluated them through a within-subjects study (N=42). We evaluate the friction each technique introduces, their effectiveness in helping learners apply concepts to isomorphic tasks without AI assistance, and their success in aligning learners' perceived and actual coding abilities. Ultimately, our results highlight the most effective technique: guiding learners through the step-by-step problem-solving process, where they engage in an interactive dialog with the AI, prompting what needs to be done at each stage before the corresponding code is revealed.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 25 of its 125 references that are in the map. First posted on arXiv 11 Oct 2024.
Builds on
25 of 125 references.
References · 25
- 2021To Trust or to Think: Cognitive Forcing Functions Can Reduce Overreliance on AI in AI-assisted Decision-makingcited by 118
- 2022Programming Is Hard -- Or at Least It Used to Be: Educational Opportunities And Challenges of AI Code Generationcited by 97
- 2023Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programmingcited by 87
- 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 85
- 2023The Metacognitive Demands and Opportunities of Generative AIcited by 85
- 2024CodeAid: Evaluating a Classroom Deployment of an LLM-based Programming Assistant that Balances Student and Educator Needscited by 81
- 2023CodeHelp: Using Large Language Models with Guardrails for Scalable Support in Programming Classescited by 71
- 2023How Novices Use LLM-Based Code Generators to Solve CS1 Coding Tasks in a Self-Paced Learning Environmentcited by 55
- 2022Do People Engage Cognitively with AI? Impact of AI Assistance on Incidental Learningcited by 53
- 2024The Widening Gap: The Benefits and Harms of Generative AI for Novice Programmerscited by 46
- 2023Thrilled by Your Progress! Large Language Models (GPT-4) No Longer Struggle to Pass Assessments in Higher Education Programming Coursescited by 38
- 2023Prompt Problems: A New Programming Exercise for the Generative AI Eracited by 31
13 more
- 2024Improving Steering and Verification in AI-Assisted Data Analysis with Interactive Task Decompositioncited by 29
- 2023How Do Analysts Understand and Verify AI-Assisted Data Analyses?cited by 25
- 2023How Do Data Analysts Respond to AI Assistance? A Wizard-of-Oz Studycited by 24
- 2024The Effects of Generative AI on Computing Students' Help-Seeking Preferencescited by 22
- 2023Generative AI in Computing Education: Perspectives of Students and Instructorscited by 17
- 2024Ivie: Lightweight Anchored Explanations of Just-Generated Codecited by 14
- 2024CodeTailor: LLM-Powered Personalized Parsons Puzzles for Engaging Support While Learning Programmingcited by 11
- 2024Explaining Code with a Purpose: An Integrated Approach for Developing Code Comprehension and Prompting Skillscited by 11
- 2024How Novice Programmers Use and Experience ChatGPT when Solving Programming Exercises in an Introductory Coursecited by 11
- 2023More Robots are Coming: Large Multimodal Models (ChatGPT) can Solve Visually Diverse Images of Parsons Problemscited by 10
- 2024Analyzing Chat Protocols of Novice Programmers Solving Introductory Programming Tasks with ChatGPTcited by 8
- 2017TraceDiff: Debugging Unexpected Code Behavior Using Trace Divergencescited by 2
- 2021Novices' Learning Barriers When Using Code Examples in Open-Ended Programmingcited by 2
Built on by
Citing papers per year: 2025: 9; 2026: 7.
16 papers.
Sort:
By area:
- 2025LLMs' Reshaping of People, Processes, Products, and Society in Software Development: A Comprehensive Exploration with Early Adopterscited by 8
- 2025Human-AI Experience in Integrated Development Environments: A Systematic Literature Reviewcited by 5
- 2025CorpusStudio: Surfacing Emergent Patterns in a Corpus of Prior Work while Writingcited by 5
- 2025From Prompts to Propositions: A Logic-Based Lens on Student-LLM Interactionscited by 4
- 2025Semantic Commit: Helping Users Update Intent Specifications for AI Memory at Scalecited by 3
- 2025StoryEnsemble: Enabling Dynamic Exploration & Iteration in the Design Process with AI and Forward-Backward Propagationcited by 2
- 2025Coding With AI: From a Reflection on Industrial Practices to Future Computer Science and Software Engineering Educationcited by 2
- 2026From Answer Givers to Design Mentors: Guiding LLMs with the Cognitive Apprenticeship Modelcited by 1
- 2025Beyond Autocomplete: Designing CopilotLens Towards Transparent and Explainable AI Coding Agentscited by 0
- 2025Single Conversation Methodology: A Human-Centered Protocol for AI-Assisted Software Developmentcited by 0
- 2026Impact of Multimodal and Conversational AI on Learning Outcomes and Experiencecited by 0
- 2026Agents That Teach: Towards Designing Incidental Learning Back into AI-Assisted Software Developmentcited by 0
4 more
- 2026From Execution to Education: A Bloom-Aligned Framework for Measuring Educational Control in LLMscited by 0
- 2026Patterns of Learner-AI Interaction and Academic Performance in an Object-Oriented Programming Coursecited by 0
- 2026AgentForge: An Immersive Role-Playing Platform for Learning Agentic Software Engineeringcited by 0
- 2026VibeJam: A User Study Platform for Web Development with Agentscited by 0
- 2026VibeJam: A User Study Platform for Web Development with Agents30 Aug 2026
- 2026AgentForge: An Immersive Role-Playing Platform for Learning Agentic Software Engineering4 Aug 2026
- 2026From Execution to Education: A Bloom-Aligned Framework for Measuring Educational Control in LLMs9 Jul 2026
- 2026Agents That Teach: Towards Designing Incidental Learning Back into AI-Assisted Software Development7 Jul 2026
- 2026Patterns of Learner-AI Interaction and Academic Performance in an Object-Oriented Programming Course26 May 2026
- 2026Impact of Multimodal and Conversational AI on Learning Outcomes and Experience2 Apr 2026
- 2026From Answer Givers to Design Mentors: Guiding LLMs with the Cognitive Apprenticeship Model27 Jan 2026
- 2025Coding With AI: From a Reflection on Industrial Practices to Future Computer Science and Software Engineering Education30 Dec 2025
- 2025StoryEnsemble: Enabling Dynamic Exploration & Iteration in the Design Process with AI and Forward-Backward Propagation5 Aug 2025
- 2025Single Conversation Methodology: A Human-Centered Protocol for AI-Assisted Software Development16 Jul 2025
- 2025Beyond Autocomplete: Designing CopilotLens Towards Transparent and Explainable AI Coding Agents24 Jun 2025
- 2025From Prompts to Propositions: A Logic-Based Lens on Student-LLM Interactions25 Apr 2025
4 more
- 2025Semantic Commit: Helping Users Update Intent Specifications for AI Memory at Scale12 Apr 2025
- 2025CorpusStudio: Surfacing Emergent Patterns in a Corpus of Prior Work while Writing16 Mar 2025
- 2025Human-AI Experience in Integrated Development Environments: A Systematic Literature Review8 Mar 2025
- 2025LLMs' Reshaping of People, Processes, Products, and Society in Software Development: A Comprehensive Exploration with Early Adopters6 Mar 2025
- 2025Coding With AI: From a Reflection on Industrial Practices to Future Computer Science and Software Engineering Educationcited by 2
- 2025Beyond Autocomplete: Designing CopilotLens Towards Transparent and Explainable AI Coding Agentscited by 0
- 2026Agents That Teach: Towards Designing Incidental Learning Back into AI-Assisted Software Developmentcited by 0
- 2026AgentForge: An Immersive Role-Playing Platform for Learning Agentic Software Engineeringcited by 0
- 2026VibeJam: A User Study Platform for Web Development with Agentscited by 0
- 2026VibeJam: A User Study Platform for Web Development with Agents30 Aug 2026
- 2026AgentForge: An Immersive Role-Playing Platform for Learning Agentic Software Engineering4 Aug 2026
- 2026Agents That Teach: Towards Designing Incidental Learning Back into AI-Assisted Software Development7 Jul 2026
- 2025Coding With AI: From a Reflection on Industrial Practices to Future Computer Science and Software Engineering Education30 Dec 2025
- 2025Beyond Autocomplete: Designing CopilotLens Towards Transparent and Explainable AI Coding Agents24 Jun 2025
- 2025LLMs' Reshaping of People, Processes, Products, and Society in Software Development: A Comprehensive Exploration with Early Adopterscited by 8
- 2025Human-AI Experience in Integrated Development Environments: A Systematic Literature Reviewcited by 5
- 2025CorpusStudio: Surfacing Emergent Patterns in a Corpus of Prior Work while Writingcited by 5
- 2025From Prompts to Propositions: A Logic-Based Lens on Student-LLM Interactionscited by 4
- 2025Semantic Commit: Helping Users Update Intent Specifications for AI Memory at Scalecited by 3
- 2025StoryEnsemble: Enabling Dynamic Exploration & Iteration in the Design Process with AI and Forward-Backward Propagationcited by 2
- 2026From Answer Givers to Design Mentors: Guiding LLMs with the Cognitive Apprenticeship Modelcited by 1
- 2025Single Conversation Methodology: A Human-Centered Protocol for AI-Assisted Software Developmentcited by 0
- 2026From Execution to Education: A Bloom-Aligned Framework for Measuring Educational Control in LLMscited by 0
- 2026Patterns of Learner-AI Interaction and Academic Performance in an Object-Oriented Programming Coursecited by 0
- 2026From Execution to Education: A Bloom-Aligned Framework for Measuring Educational Control in LLMs9 Jul 2026
- 2026Patterns of Learner-AI Interaction and Academic Performance in an Object-Oriented Programming Course26 May 2026
- 2026From Answer Givers to Design Mentors: Guiding LLMs with the Cognitive Apprenticeship Model27 Jan 2026
- 2025StoryEnsemble: Enabling Dynamic Exploration & Iteration in the Design Process with AI and Forward-Backward Propagation5 Aug 2025
- 2025Single Conversation Methodology: A Human-Centered Protocol for AI-Assisted Software Development16 Jul 2025
- 2025From Prompts to Propositions: A Logic-Based Lens on Student-LLM Interactions25 Apr 2025
- 2025Semantic Commit: Helping Users Update Intent Specifications for AI Memory at Scale12 Apr 2025
- 2025CorpusStudio: Surfacing Emergent Patterns in a Corpus of Prior Work while Writing16 Mar 2025
- 2025Human-AI Experience in Integrated Development Environments: A Systematic Literature Review8 Mar 2025
- 2025LLMs' Reshaping of People, Processes, Products, and Society in Software Development: A Comprehensive Exploration with Early Adopters6 Mar 2025