Lune

AAAI2026Top-tier venue

Can Humans Teach Machines to Code?

Céline Hocquette, Johannes Langer, Andrew Cropper, Ute Schmid

Abstract

The goal of inductive program synthesis is for a machine to automatically generate a program from usersupplied examples. A key underlying assumption is that humans can provide sufficient examples to teach a concept to a machine. To evaluate the validity of this assumption, we conduct a study where human participants provide examples for six programming concepts, such as finding the maximum element of a list. We evaluate the generalisation performance of five program synthesis systems trained on inputoutput examples (i) from non-expert humans, (ii) from a human expert, and (iii) randomly sampled. Our results suggest that non-experts typically do not provide sufficient examples for a program synthesis system to learn an accurate program.

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.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Is Programming by Example Solved by LLMs? cites CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on2

  1. CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement LearningHung Le, Yue Wang, Akhilesh Deepak Gotmare, Silvio Savarese et al.NeurIPS 2022 · 571 citations
  2. Is Programming by Example Solved by LLMs?Wen-Ding Li, Kevin EllisNeurIPS 2024 · 45 citations

Related papers

  1. Combining Induction and Transduction for Abstract ReasoningWen-Ding Li, Keya Hu, Carter Larsen, Yuqing Wu et al.ICLR 2025
  2. Guiding Program Synthesis by Learning to Generate ExamplesLarissa Laich, Pavol Bielik, Martin T. VechevICLR 2020 · 17 citations
  3. Program Synthesis with Pragmatic CommunicationYewen Pu, Kevin Ellis, Marta Kryven, Josh Tenenbaum et al.NeurIPS 2020 · 26 citations
  4. Generating Pragmatic Examples to Train Neural Program SynthesizersSaujas Vaduguru, Daniel Fried, Yewen PuICLR 2024 · 7 citations
  5. Fast and Reliable Program Synthesis via User InteractionYanju Chen, Chenglong Wang, Xinyu Wang, Osbert Bastani et al.ASE 2023 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines