Programming Puzzles
Not on the map. Why?
Abstract (arXiv)
We introduce a new type of programming challenge called programming puzzles, as an objective and comprehensive evaluation of program synthesis, and release an open-source dataset of Python Programming Puzzles (P3). Each puzzle is defined by a short Python program f, and the goal is to find an input which makes f return True. The puzzles are objective in that each one is specified entirely by the source code of its verifier f, so evaluating f is all that is needed to test a candidate solution. They do not require an answer key or input/output examples, nor do they depend on natural language understanding. The dataset is comprehensive in that it spans problems of a range of difficulties and domains, ranging from trivial string manipulation problems, to classic programming puzzles (e.g., Tower of Hanoi), to interview/competitive-programming problems (e.g., dynamic programming), to longstanding open problems in algorithms and mathematics (e.g., factoring). We develop baseline enumerative program synthesis, GPT-3 and Codex solvers that are capable of solving puzzles -- even without access to any reference solutions -- by learning from their own past solutions. Codex performs best, solving up to 18% of 397 test problems with a single try and 80% of the problems with 1,000 tries per problem. In a small user study, we find a positive correlation between puzzle-solving performance and coding experience, and between the puzzle difficulty for humans and AI solvers. Therefore, further improvements on P3 could have a significant impact on many program synthesis areas.
Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Builds on 29 of its 85 references that are in the map. First posted on arXiv 10 Jun 2021.
Builds on
29 of 85 references.
References · 29
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,793
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
17 more
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2018From Recognition to Cognition: Visual Commonsense Reasoningcited by 553
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2021Dynabench: Rethinking Benchmarking in NLPcited by 447
- 2020Generative Language Modeling for Automated Theorem Provingcited by 379
- 2018SWAG: A Large-Scale Adversarial Dataset for Grounded Commonsense Inferencecited by 333
- 2020IntelliCode Compose: Code Generation Using Transformercited by 225
- 2021Get Your Vitamin C! Robust Fact Verification with Contrastive Evidencecited by 222
- 2019SPoC: Search-based Pseudocode to Codecited by 176
- 2016DeepCoder: Learning to Write Programscited by 145
- 2020Task-Oriented Dialogue as Dataflow Synthesiscited by 122
- 2020You Autocomplete Me: Poisoning Vulnerabilities in Neural Code Completioncited by 112
- 2021UNICORN on RAINBOW: A Universal Commonsense Reasoning Model on a New Multitask Benchmarkcited by 98
- 2018NAPS: Natural Program Synthesis Datasetcited by 14
- 2017Glass-Box Program Synthesis: A Machine Learning Approachcited by 1
Built on by
Citing papers per year: 2021: 1; 2022: 9; 2023: 3; 2024: 6; 2025: 5; 2026: 1.
25 papers.
Sort:
By area:
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2022Confident Adaptive Language Modelingcited by 297
- 2022UL2: Unifying Language Learning Paradigmscited by 292
- 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speakingcited by 292
- 2022Transformers Learn Shortcuts to Automatacited by 260
- 2022A Survey of Deep Learning for Mathematical Reasoningcited by 124
- 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffoldingcited by 115
- 2024Buffer of Thoughts: Thought-Augmented Reasoning with Large Language Modelscited by 91
- 2022Language Models Can Teach Themselves to Program Bettercited by 75
- 2022When Language Model Meets Private Librarycited by 54
- 2024Attribute First, then Generate: Locally-attributable Grounded Text Generationcited by 54
- 2022Learning Math Reasoning from Self-Sampled Correct and Partially-Correct Solutionscited by 38
13 more
- 2022Fault-Aware Neural Code Rankerscited by 33
- 2023Measuring The Impact Of Programming Language Distributioncited by 32
- 2025Division-of-Thoughts: Harnessing Hybrid Language Model Synergy for Efficient On-Device Agentscited by 24
- 2024Step-by-Step Reasoning to Solve Grid Puzzles: Where do LLMs Falter?cited by 18
- 2025Route-and-Reason: Scaling Large Language Model Reasoning with Reinforced Model Routercited by 13
- 2025VisualSphinx: Large-Scale Synthetic Vision Logic Puzzles for RLcited by 11
- 2024Reversal of Thought: Enhancing Large Language Models with Preference-Guided Reverse Reasoning Warm-upcited by 10
- 2023ACES: Generating Diverse Programming Puzzles with with Autotelic Generative Modelscited by 6
- 2025PuzzlePlex: Benchmarking Foundation Models on Reasoning and Planning with Puzzlescited by 5
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspectivecited by 3
- 2023Synthesizing a Progression of Subtasks for Block-Based Visual Programming Taskscited by 1
- 2025Dr. Boot: Bootstrapping Program Synthesis Language Models to Perform Repairingcited by 0
- 2026The Token Games: Evaluating Language Model Reasoning with Puzzle Duelscited by 0
- 2026The Token Games: Evaluating Language Model Reasoning with Puzzle Duels19 Feb 2026
- 2025PuzzlePlex: Benchmarking Foundation Models on Reasoning and Planning with Puzzles7 Oct 2025
- 2025Dr. Boot: Bootstrapping Program Synthesis Language Models to Perform Repairing20 Jul 2025
- 2025Route-and-Reason: Scaling Large Language Model Reasoning with Reinforced Model Router6 Jun 2025
- 2025VisualSphinx: Large-Scale Synthetic Vision Logic Puzzles for RL29 May 2025
- 2025Division-of-Thoughts: Harnessing Hybrid Language Model Synergy for Efficient On-Device Agents6 Feb 2025
- 2024Reversal of Thought: Enhancing Large Language Models with Preference-Guided Reverse Reasoning Warm-up16 Oct 2024
- 2024Step-by-Step Reasoning to Solve Grid Puzzles: Where do LLMs Falter?20 Jul 2024
- 2024Buffer of Thoughts: Thought-Augmented Reasoning with Large Language Models6 Jun 2024
- 2024Attribute First, then Generate: Locally-attributable Grounded Text Generation25 Mar 2024
- 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speaking14 Mar 2024
- 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffolding23 Jan 2024
13 more
- 2023ACES: Generating Diverse Programming Puzzles with with Autotelic Generative Models15 Oct 2023
- 2023Synthesizing a Progression of Subtasks for Block-Based Visual Programming Tasks27 May 2023
- 2023Measuring The Impact Of Programming Language Distribution3 Feb 2023
- 2022A Survey of Deep Learning for Mathematical Reasoning20 Dec 2022
- 2022When Language Model Meets Private Library31 Oct 2022
- 2022Transformers Learn Shortcuts to Automata19 Oct 2022
- 2022Language Models Can Teach Themselves to Program Better29 Jul 2022
- 2022Confident Adaptive Language Modeling14 Jul 2022
- 2022Fault-Aware Neural Code Rankers4 Jun 2022
- 2022Learning Math Reasoning from Self-Sampled Correct and Partially-Correct Solutions28 May 2022
- 2022UL2: Unifying Language Learning Paradigms10 May 2022
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspective10 Feb 2022
- 2021Program Synthesis with Large Language Models16 Aug 2021
- 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speakingcited by 292
- 2022A Survey of Deep Learning for Mathematical Reasoningcited by 124
- 2024Buffer of Thoughts: Thought-Augmented Reasoning with Large Language Modelscited by 91
- 2022Learning Math Reasoning from Self-Sampled Correct and Partially-Correct Solutionscited by 38
- 2025Division-of-Thoughts: Harnessing Hybrid Language Model Synergy for Efficient On-Device Agentscited by 24
- 2024Step-by-Step Reasoning to Solve Grid Puzzles: Where do LLMs Falter?cited by 18
- 2025Route-and-Reason: Scaling Large Language Model Reasoning with Reinforced Model Routercited by 13
- 2025VisualSphinx: Large-Scale Synthetic Vision Logic Puzzles for RLcited by 11
- 2024Reversal of Thought: Enhancing Large Language Models with Preference-Guided Reverse Reasoning Warm-upcited by 10
- 2026The Token Games: Evaluating Language Model Reasoning with Puzzle Duelscited by 0
- 2026The Token Games: Evaluating Language Model Reasoning with Puzzle Duels19 Feb 2026
- 2025Route-and-Reason: Scaling Large Language Model Reasoning with Reinforced Model Router6 Jun 2025
- 2025VisualSphinx: Large-Scale Synthetic Vision Logic Puzzles for RL29 May 2025
- 2025Division-of-Thoughts: Harnessing Hybrid Language Model Synergy for Efficient On-Device Agents6 Feb 2025
- 2024Reversal of Thought: Enhancing Large Language Models with Preference-Guided Reverse Reasoning Warm-up16 Oct 2024
- 2024Step-by-Step Reasoning to Solve Grid Puzzles: Where do LLMs Falter?20 Jul 2024
- 2024Buffer of Thoughts: Thought-Augmented Reasoning with Large Language Models6 Jun 2024
- 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speaking14 Mar 2024
- 2022A Survey of Deep Learning for Mathematical Reasoning20 Dec 2022
- 2022Learning Math Reasoning from Self-Sampled Correct and Partially-Correct Solutions28 May 2022
- 2022Confident Adaptive Language Modelingcited by 297
- 2022Confident Adaptive Language Modeling14 Jul 2022
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2022UL2: Unifying Language Learning Paradigmscited by 292
- 2022Transformers Learn Shortcuts to Automatacited by 260
- 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffoldingcited by 115
- 2022Language Models Can Teach Themselves to Program Bettercited by 75
- 2022When Language Model Meets Private Librarycited by 54
- 2024Attribute First, then Generate: Locally-attributable Grounded Text Generationcited by 54
- 2022Fault-Aware Neural Code Rankerscited by 33
- 2023Measuring The Impact Of Programming Language Distributioncited by 32
- 2023ACES: Generating Diverse Programming Puzzles with with Autotelic Generative Modelscited by 6
- 2025PuzzlePlex: Benchmarking Foundation Models on Reasoning and Planning with Puzzlescited by 5
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspectivecited by 3
12 most cited of 13 All 13 (JSON)
- 2025PuzzlePlex: Benchmarking Foundation Models on Reasoning and Planning with Puzzles7 Oct 2025
- 2024Attribute First, then Generate: Locally-attributable Grounded Text Generation25 Mar 2024
- 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffolding23 Jan 2024
- 2023ACES: Generating Diverse Programming Puzzles with with Autotelic Generative Models15 Oct 2023
- 2023Synthesizing a Progression of Subtasks for Block-Based Visual Programming Tasks27 May 2023
- 2023Measuring The Impact Of Programming Language Distribution3 Feb 2023
- 2022When Language Model Meets Private Library31 Oct 2022
- 2022Transformers Learn Shortcuts to Automata19 Oct 2022
- 2022Language Models Can Teach Themselves to Program Better29 Jul 2022
- 2022Fault-Aware Neural Code Rankers4 Jun 2022
- 2022UL2: Unifying Language Learning Paradigms10 May 2022
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspective10 Feb 2022
12 newest of 13 All 13 (JSON)