ProtoTransformer: A Meta-Learning Approach to Providing Student Feedback
Not on the map. Why?
Abstract (arXiv)
High-quality computer science education is limited by the difficulty of providing instructor feedback to students at scale. While this feedback could in principle be automated, supervised approaches to predicting the correct feedback are bottlenecked by the intractability of annotating large quantities of student code. In this paper, we instead frame the problem of providing feedback as few-shot classification, where a meta-learner adapts to give feedback to student code on a new programming question from just a few examples annotated by instructors. Because data for meta-training is limited, we propose a number of amendments to the typical few-shot learning framework, including task augmentation to create synthetic tasks, and additional side information to build stronger priors about each task. These additions are combined with a transformer architecture to embed discrete sequences (e.g. code) to a prototypical representation of a feedback class label. On a suite of few-shot natural language processing tasks, we match or outperform state-of-the-art performance. Then, on a collection of student solutions to exam questions from an introductory university course, we show that our approach reaches an average precision of 88% on unseen questions, surpassing the 82% precision of teaching assistants. Our approach was successfully deployed to deliver feedback to 16,000 student exam-solutions in a programming course offered by a tier 1 university. This is, to the best of our knowledge, the first successful deployment of a machine learning based feedback to open-ended student code.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 49 of its 80 references that are in the map. First posted on arXiv 23 Jul 2021.
Builds on
49 of 80 references.
References · 49
- 2017Attention Is All You Needcited by 59,932
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2017Prototypical Networks for Few-shot Learningcited by 3,001
- 2017FiLM: Visual Reasoning with a General Conditioning Layercited by 2,286
- 2016Matching Networks for One Shot Learningcited by 2,246
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2017Learning to Compare: Relation Network for Few-Shot Learningcited by 1,139
- 2020Meta-Learning in Neural Networks: A Surveycited by 944
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
37 more
- 2018Meta-Learning for Semi-Supervised Few-Shot Classificationcited by 456
- 2018TADAM: Task dependent adaptive metric for improved few-shot learningcited by 408
- 2018Meta-learning with differentiable closed-form solverscited by 395
- 2015Deep Knowledge Tracingcited by 328
- 2017Few-Shot Learning with Graph Neural Networkscited by 324
- 2018Meta-Learning: A Surveycited by 254
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
- 2018Learning to Propagate Labels: Transductive Propagation Network for Few-shot Learningcited by 208
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
- 2018One-Shot Imitation from Observing Humans via Domain-Adaptive Meta-Learningcited by 146
- 2016A Convolutional Attention Network for Extreme Summarization of Source Codecited by 90
- 2018Unsupervised Learning via Meta-Learningcited by 81
- 2020Contrastive Code Representation Learningcited by 76
- 2018Unsupervised Meta-Learning For Few-Shot Image Classificationcited by 74
- 2019Induction Networks for Few-Shot Text Classificationcited by 64
- 2018Diverse Few-Shot Text Classification with Multiple Metricscited by 61
- 2019Few-shot Text Classification with Distributional Signaturescited by 58
- 2020SAINT+: Integrating Temporal Features for EdNet Correctness Predictioncited by 57
- 2020Self-Supervised Meta-Learning for Few-Shot Natural Language Classification Taskscited by 51
- 2020Self-supervised Knowledge Distillation for Few-shot Learningcited by 41
- 2020The Advantage of Conditional Meta-Learning for Biased Regularization and Fine-Tuningcited by 40
- 2019Learning to Learn and Predict: A Meta-Learning Approach for Multi-Label Classificationcited by 35
- 2018Natural Language to Structured Query Generation via Meta-Learningcited by 33
- 2019Learning and Evaluating Contextual Embedding of Source Codecited by 33
- 2020Unsupervised Meta-Learning through Latent-Space Interpolation in Generative Modelscited by 26
- 2020Self-Supervised Prototypical Transfer Learning for Few-Shot Classificationcited by 26
- 2019Assume, Augment and Learn: Unsupervised Few-Shot Meta-Learning via Random Labels and Data Augmentationcited by 24
- 2017Neural Program Meta-Inductioncited by 23
- 2020Task Augmentation by Rotating for Meta-Learningcited by 18
- 2018Zero Shot Learning for Code Education: Rubric Sampling with Deep Learning Inferencecited by 16
- 2019Prototype Propagation Networks (PPN) for Weakly-supervised Few-shot Learning on Category Graphcited by 15
- 2020OptTyper: Probabilistic Type Inference by Optimising Logical and Natural Constraintscited by 14
- 2019Automated Essay Scoring based on Two-Stage Learningcited by 12
- 2020Few-shot Sequence Learning with Transformerscited by 7
- 2018Recent Advances in Neural Program Synthesiscited by 5
- 2019Reliable Deep Grade Prediction with Uncertainty Estimationcited by 3
- 2019Generative Grading: Near Human-level Accuracy for Automated Feedback on Richly Structured Problemscited by 2
Built on by
Citing papers per year: 2022: 2; 2023: 3; 2024: 1; 2025: 0; 2026: 2.
8 papers.
- 2023Advances and Challenges in Meta-Learning: A Technical Reviewcited by 65
- 2023Refactoring Programs Using Large Language Models with Few-Shot Examplescited by 27
- 2022Distributionally Adaptive Meta Reinforcement Learningcited by 11
- 2023Train Hard, Fight Easy: Robust Meta Reinforcement Learningcited by 11
- 2022Giving Feedback on Interactive Student Programs with Meta-Explorationcited by 6
- 2024Benchmarking Educational Program Repaircited by 2
- 2026Meta-learning to Address Data Shift in Time Series Classificationcited by 0
- 2026MAPLE: A Meta-learning Framework for Cross-Prompt Essay Scoringcited by 0
- 2026MAPLE: A Meta-learning Framework for Cross-Prompt Essay Scoring19 Apr 2026
- 2026Meta-learning to Address Data Shift in Time Series Classification13 Jan 2026
- 2024Benchmarking Educational Program Repair8 May 2024
- 2023Refactoring Programs Using Large Language Models with Few-Shot Examples20 Nov 2023
- 2023Advances and Challenges in Meta-Learning: A Technical Review10 Jul 2023
- 2023Train Hard, Fight Easy: Robust Meta Reinforcement Learning26 Jan 2023
- 2022Giving Feedback on Interactive Student Programs with Meta-Exploration16 Nov 2022
- 2022Distributionally Adaptive Meta Reinforcement Learning6 Oct 2022