mlsanityData to 7 Oct 2026

GPT is becoming a Turing machine: Here are some ways to program it

arXiv 2303.14310 ↗First posted 25 Mar 2023cs.CLcited by 16

Not on the map. Why?

Abstract (arXiv)

We demonstrate that, through appropriate prompting, GPT-3 family of models can be triggered to perform iterative behaviours necessary to execute (rather than just write or recall) programs that involve loops, including several popular algorithms found in computer science curricula or software developer interviews. We trigger execution and description of Iterations by Regimenting Self-Attention (IRSA) in one (or a combination) of three ways: 1) Using strong repetitive structure in an example of an execution path of a target program for one particular input, 2) Prompting with fragments of execution paths, and 3) Explicitly forbidding (skipping) self-attention to parts of the generated text. On a dynamic program execution, IRSA leads to larger accuracy gains than replacing the model with the much more powerful GPT-4. IRSA has promising applications in education, as the prompts and responses resemble student assignments in data structures and algorithms classes. Our findings hold implications for evaluating LLMs, which typically target the in-context learning: We show that prompts that may not even cover one full task example can trigger algorithmic behaviour, allowing solving problems previously thought of as hard for LLMs, such as logical puzzles. Consequently, prompt design plays an even more critical role in LLM performance than previously recognized.

Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 38 of its 51 references that are in the map. First posted on arXiv 25 Mar 2023.

Builds on

38 of 51 references.

References · 38

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  6. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  7. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  8. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  9. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  10. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  11. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
  12. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
26 more
  1. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  2. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
  3. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  4. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,199
  5. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  6. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  7. 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
  8. 2022STaR: Bootstrapping Reasoning With Reasoningcited by 895
  9. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
  10. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
  11. 2022PAL: Program-aided Language Modelscited by 635
  12. 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 554
  13. 2023Augmented Language Models: a Surveycited by 398
  14. 2022Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoningcited by 331
  15. 2023The Impact of AI on Developer Productivity: Evidence from GitHub Copilotcited by 264
  16. 2022TALM: Tool Augmented Language Modelscited by 197
  17. 2023ART: Automatic multi-step reasoning and tool-use for large language modelscited by 193
  18. 2020Unsupervised Commonsense Question Answering with Self-Talkcited by 161
  19. 2019On the Turing Completeness of Modern Neural Network Architecturescited by 129
  20. 2022Rationale-Augmented Ensembles in Language Modelscited by 111
  21. 2017The Consciousness Priorcited by 105
  22. 2023Memory Augmented Large Language Models are Computationally Universalcited by 45
  23. 2021Coherence boosting: When your pretrained language model is not paying enough attentioncited by 38
  24. 2020Learning to Execute Programs with Instruction Pointer Attention Graph Neural Networkscited by 35
  25. 2022ThinkSum: Probabilistic reasoning over sets using large language modelscited by 23
  26. 2022Multi-Stage Prompting for Knowledgeable Dialogue Generationcited by 22

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 6; 2024: 8; 2025: 1; 2026: 1.

16 papers.

Sort:

By area: