CodeTree: A System for Learnersourcing Subgoal Hierarchies in Code Examples
Hyoungwook Jin, Juho Kim
Abstract
Subgoal-labeled code examples help learners understand code patterns and apply them to different problem contexts. Subgoal labels are multi-level in nature and based on goal structures that define the hierarchical functional units in code. Data-driven methods and experts can supply the goal structures, but they do not work in environments with scarce data and limited availability of experts. Previous research has shown that learnersourcing is effective for sourcing high-quality subgoal labels of given goal structures. We extend this research by learnersourcing goal structures themselves, thereby making the generation of subgoal-labeled materials fully learner-driven. We introduce CodeTree, a system that generates multi-level goal structures by aggregating learner-generated subgoals from two subgoal learning activities---Generation and Selection. In a between-subjects study, 45 novices studied three code examples with either CodeTree or code explanations alone. The results showed that CodeTree could learnersource high-quality goal structures and subgoal labels for all three examples with just five learners. Learners reported a significantly higher learning gain and satisfaction compared to the baseline.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers2
- LitLinker: Supporting the Ideation of Interdisciplinary Contexts with Large Language Models for Teaching Literature in Elementary SchoolsHaoxiang Fan, Changshuang Zhou, Hao Yu, Xueyang Wu et al.CHI 2025 · 8 citations
- eXplainMR: Generating Real-time Textual and Visual eXplanations to Facilitate UltraSonography Learning in MRJingying Wang, Jingjing Zhang, Juana Nicoll Capizzano, Matthew Sigakis et al.CHI 2025 · 4 citations
Builds on3
- Automatic Generation of Two-Level Hierarchical Tutorials from Instructional Makeup VideosAnh Truong, Peggy Chi, David Salesin, Irfan Essa et al.CHI 2021 · 57 citations
- QMaps: Engaging Students in Voluntary Question Generation and LinkingIman YeckehZaare, Tirdad Barghi, Paul ResnickCHI 2020 · 19 citations
- AlgoSolve: Supporting Subgoal Learning in Algorithmic Problem-Solving with Learnersourced MicrotasksKabdo Choi, Hyungyu Shin, Meng Xia, Juho KimCHI 2022 · 9 citations
Related papers
- CodeTaste: Can LLMs Generate Human-Level Code Refactorings?Alex Thillen, Niels Mündler, Veselin Raychev, Martin VechevICML 2026 · 2 citations
- Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving TransformationsNghi D. Q. Bui, Yijun Yu, Lingxiao JiangSIGIR 2021 · 98 citations
- Exploring Dynamic Selection of Branch Expansion Orders for Code GenerationHui Jiang, Chulun Zhou, Fandong Meng, Biao Zhang et al.ACL 2021
- Avoiding the Turing Tarpit: Learning Conversational Programming by Starting from Code's PurposeKathryn I. Cunningham, Barbara J. Ericson, Rahul Agrawal Bejarano, Mark GuzdialCHI 2021 · 48 citations
- Reinforcement Learning and Data-Generation for Syntax-Guided SynthesisJulian Parsert, Elizabeth PolgreenAAAI 2024 · 7 citations
