Lune

CSCW2024Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • eXplainMR: Generating Real-time Textual and Visual eXplanations to Facilitate UltraSonography Learning in MR cites AlgoSolve: Supporting Subgoal Learning in Algorithmic Problem-Solving with Learnersourced Microtasks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. 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
  2. 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

  1. Automatic Generation of Two-Level Hierarchical Tutorials from Instructional Makeup VideosAnh Truong, Peggy Chi, David Salesin, Irfan Essa et al.CHI 2021 · 57 citations
  2. QMaps: Engaging Students in Voluntary Question Generation and LinkingIman YeckehZaare, Tirdad Barghi, Paul ResnickCHI 2020 · 19 citations
  3. AlgoSolve: Supporting Subgoal Learning in Algorithmic Problem-Solving with Learnersourced MicrotasksKabdo Choi, Hyungyu Shin, Meng Xia, Juho KimCHI 2022 · 9 citations

Related papers

  1. Take a Break in the Middle: Investigating Subgoals towards Hierarchical Script GenerationXinze Li, Yixin Cao, Muhao Chen, Aixin SunACL Findings 2023 · 1 citation
  2. CodeRM-NT: Reward Model for Code RL without Unit TestsXiao Xia, Dan Zhang, Tianrui SunACL Findings 2026
  3. CodeTaste: Can LLMs Generate Human-Level Code Refactorings?Alex Thillen, Niels Mündler, Veselin Raychev, Martin VechevICML 2026 · 2 citations
  4. Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving TransformationsNghi D. Q. Bui, Yijun Yu, Lingxiao JiangSIGIR 2021 · 98 citations
  5. Exploring Dynamic Selection of Branch Expansion Orders for Code GenerationHui Jiang, Chulun Zhou, Fandong Meng, Biao Zhang et al.ACL 2021
Dusk over the sea between two cliffs drawn in fine vertical lines