Benchmarking GPT-4 on Algorithmic Problems: A Systematic Evaluation of Prompting Strategies
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have revolutionized the field of Natural Language Processing thanks to their ability to reuse knowledge acquired on massive text corpora on a wide variety of downstream tasks, with minimal (if any) tuning steps. At the same time, it has been repeatedly shown that LLMs lack systematic generalization, which allows to extrapolate the learned statistical regularities outside the training distribution. In this work, we offer a systematic benchmarking of GPT-4, one of the most advanced LLMs available, on three algorithmic tasks characterized by the possibility to control the problem difficulty with two parameters. We compare the performance of GPT-4 with that of its predecessor (GPT-3.5) and with a variant of the Transformer-Encoder architecture recently introduced to solve similar tasks, the Neural Data Router. We find that the deployment of advanced prompting techniques allows GPT-4 to reach superior accuracy on all tasks, demonstrating that state-of-the-art LLMs constitute a very strong baseline also in challenging tasks that require systematic generalization.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 20 of its 27 references that are in the map. First posted on arXiv 27 Feb 2024.
Builds on
20 of 27 references.
References · 20
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2019Compositionality decomposed: how do neural networks generalise?cited by 264
- 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
- 2023Better Zero-Shot Reasoning with Role-Play Promptingcited by 220
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
- 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
8 more
- 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 114
- 2021Making Transformers Solve Compositional Taskscited by 72
- 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
- 2018Memorize or generalize? Searching for a compositional RNN in a haystackcited by 41
- 2023Learning to Reason and Memorize with Self-Notescited by 30
- 2022Revisiting the Compositional Generalization Abilities of Neural Sequence Modelscited by 20
- 2022Systematic Generalization and Emergent Structures in Transformers Trained on Structured Taskscited by 19
- 2022CTL++: Evaluating Generalization on Never-Seen Compositional Patterns of Known Functions, and Compatibility of Neural Representationscited by 12
Built on by
Citing papers per year: 2024: 3; 2025: 6.
9 papers.
- 2024Chain of Thoughtlessness? An Analysis of CoT in Planningcited by 100
- 2024Interleaving Text and Number Embeddings to Solve Mathemathics Problemscited by 5
- 2025Trust Modeling in Counseling Conversations: A Benchmark Studycited by 5
- 2024Assessing the Emergent Symbolic Reasoning Abilities of Llama Large Language Modelscited by 3
- 2025Sequential Enumeration in Large Language Modelscited by 2
- 2025Small Models, Smarter Learning: The Power of Joint Task Trainingcited by 1
- 2025Assess and Prompt: A Generative RL Framework for Improving Engagement in Online Mental Health Communitiescited by 1
- 2025Improving Aviation Safety Analysis: Automated HFACS Classification Using Reinforcement Learning with Group Relative Policy Optimizationcited by 1
- 2025Learning neuro-symbolic convergent term rewriting systemscited by 0
- 2025Sequential Enumeration in Large Language Models4 Dec 2025
- 2025Improving Aviation Safety Analysis: Automated HFACS Classification Using Reinforcement Learning with Group Relative Policy Optimization28 Aug 2025
- 2025Assess and Prompt: A Generative RL Framework for Improving Engagement in Online Mental Health Communities22 Aug 2025
- 2025Learning neuro-symbolic convergent term rewriting systems25 Jul 2025
- 2025Small Models, Smarter Learning: The Power of Joint Task Training23 May 2025
- 2025Trust Modeling in Counseling Conversations: A Benchmark Study6 Jan 2025
- 2024Interleaving Text and Number Embeddings to Solve Mathemathics Problems25 Oct 2024
- 2024Assessing the Emergent Symbolic Reasoning Abilities of Llama Large Language Models5 Jun 2024
- 2024Chain of Thoughtlessness? An Analysis of CoT in Planning8 May 2024