mlsanityData to 7 Oct 2026

Benchmarking GPT-4 on Algorithmic Problems: A Systematic Evaluation of Prompting Strategies

arXiv 2402.17396 ↗First posted 27 Feb 2024cs.CL cs.AI cs.NEcited by 9

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  4. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  5. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
  6. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
  7. 2019Compositionality decomposed: how do neural networks generalise?cited by 264
  8. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
  9. 2023Better Zero-Shot Reasoning with Role-Play Promptingcited by 220
  10. 2022Exploring Length Generalization in Large Language Modelscited by 204
  11. 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
  12. 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
8 more
  1. 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 114
  2. 2021Making Transformers Solve Compositional Taskscited by 72
  3. 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
  4. 2018Memorize or generalize? Searching for a compositional RNN in a haystackcited by 41
  5. 2023Learning to Reason and Memorize with Self-Notescited by 30
  6. 2022Revisiting the Compositional Generalization Abilities of Neural Sequence Modelscited by 20
  7. 2022Systematic Generalization and Emergent Structures in Transformers Trained on Structured Taskscited by 19
  8. 2022CTL++: Evaluating Generalization on Never-Seen Compositional Patterns of Known Functions, and Compatibility of Neural Representationscited by 12

Built on by

Cited by year

Citing papers per year: 2024: 3; 2025: 6.

9 papers.