Paper commentary
Sparks of Artificial General Intelligence: Early experiments with GPT-4
Early GPT-4 shows broad reasoning beyond language, with tool use and games
- Problem Whether a language model trained only to predict the next word can handle tasks well beyond language is unsettled. Earlier models often failed at novel problems, and the limits were unclear.
- Method The authors probe an early version of GPT-4 with natural-language prompts across tasks. These include tool use, command-line work and text games, and they compare it with ChatGPT where they ran it.
- Results GPT-4 finished the first text-based game in 30 actions without extra help. It also completed nearly all six zoo-management tasks, which needed more than 100 commands.
What the study asks of a language model
The study asks whether GPT-4, a language model developed by OpenAI that was studied in an early and non-multimodal form, shows general intelligence beyond language. The authors define the aim as systems showing broad reasoning, planning and learning from experience at or above human level, and they treat GPT-4 as an early and still incomplete version of such a system.
All tests are run by prompting the model in natural language, without special prompting, so the results depend on what a prompt can elicit. Tasks are chosen to be novel, and where a question could appear online the authors wrote it themselves to reduce the chance that the model memorized the answer.
How tool calls are woven into generation
Tool use means that GPT-4 draws on external resources such as search engines, calculators and APIs to complete tasks it cannot do alone. Weaknesses such as outdated world knowledge, weak symbolic operations and an inability to execute code are the reason the authors focus on tools.
A short tool-warmup prompt describes three functions: SEARCH for current information, CALC for calculations and CHARACTER for extracting a character from a string. During execution, the generation is paused whenever one of these functions is called, the function runs, its result is pasted back into the prompt, and the generation then continues.
With this minimal instruction and no demonstrations, GPT-4 issues the calls and uses the returned snippets or values in its answers, and it still reached the right answer when one search result contained conflicting information. In the same setup ChatGPT did not consistently change its answers after being told to use the tools, sometimes skipped the tools, and sometimes called them after an incorrect answer.
Where tool use fails
Without a prompt that allows or expects tool use, the weaknesses of language models remain, including weak symbolic manipulation and limited current world knowledge. Even with tools available, GPT-4 does not always decide correctly whether to call a tool or to answer from its parametric knowledge; the authors report a search call for a question it could answer directly.
Reasoning about a character's false belief
Asked where Alice will look for the file, GPT-4 answers that she will look in the original folder, which the authors read as reasoning about Alice's beliefs.
ChatGPT also answers correctly in the authors' run, which is reported without a figure, while text-davinci-003 predicts that Alice will look in the new folder.
A word problem and the follow-up dialogue
The rabbit question asks for two constants in a yearly multiply-then-remove population model, given the population after three years, and the authors wrote it themselves. Solving it requires deriving the annual change, building a recurrence and then solving a system of two equations, and GPT-4 carries these steps through with a mostly sound argument.
Across several independent attempts, ChatGPT did not carry out these steps and produced a nonsensical argument with an incorrect answer.
In a follow-up dialogue the authors ask GPT-4 to generalize to a composition of the function k times and then to a degree-2 polynomial. In the generalization GPT-4 repeats an invalid induction argument, and it treats fixed values of a and b as free variables, so the dialogue does not reach a valid solution. The authors note that different but equivalent wordings of the original question sometimes lead to a correct line of reasoning, so the outcome depends on wording.
Zoo management from the command line
GPT-4 plays a zoo manager in a Windows command prompt and works through six tasks listed in a todo file, which together required more than 100 commands. The authors built this scenario to avoid near-copies of earlier examples that may have been in training data.
GPT-4 solved almost all tasks, and its only failure was fabricating content in email replies instead of reading the specified file; a tweak to the prompt fixed this. It also ran incorrect commands, such as deleting a file with spaces in its name without quotation marks, but corrected itself after the system response.
The same quoting mistake recurred on later files with spaces, and the same correction was applied each time, which the authors attribute to a pattern that was set early in the generation.
Solving a text adventure
A text-based game is interactive fiction in which an agent acts through natural-language descriptions and commands, and the first game here is a house with many rooms in which a chest must be found and unlocked. The authors start the game with the exact initial text from Textworld as the prompt and issue help as the first command.
GPT-4 completes the game in 30 actions without extra help and moves through the environment without looping through rooms, although it examines and picks up every object, which the authors call a conservative approach. text-davinci-003 does not respond to the environment feedback and repeats the same command, which is the comparison the authors give for this game.
A penetration-testing scenario
GPT-4 is told it can run commands on a Linux distribution built for digital forensics and penetration testing, and is asked to gain access to a computer on the local network. Without further information it scans for devices, identifies a target host, runs a program that tries common passwords and reaches root access, while ChatGPT refuses the task on grounds of possible illegality.
Drawing objects as SVG code
When asked for objects such as an automobile, a truck, a cat or a dog in Scalable Vector Graphics, GPT-4 writes code that usually compiles to detailed and identifiable images. The authors use this as one of several checks that the model handles visual concepts despite being trained on text only.
Limitations
Mathematical abilities depend on context in ways that are hard to predict, and the model can make very basic mistakes alongside correct competitive-level answers.
Tool use requires a prompt that allows it, and GPT-4 still makes tool-choice errors and repeats error patterns, such as the spaces problem in the zoo task.
Paper info
- Authors
- Sébastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, Harsha Nori, Hamid Palangi, Marco Tulio Ribeiro, Yi Zhang
- Venue
- arXiv · Preprint
- First published
- 2023-3-22
- Added
- 2026-11-11
- Updated
- 2023-4-13
- Version
- v5
- arXiv
- 2303.12712
- Category
- cs.CL · cs.AI
- Original paper terms
- CC BY 4.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Sébastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, Harsha Nori, Hamid Palangi, Marco Tulio Ribeiro, Yi Zhang (2023). Sparks of Artificial General Intelligence: Early experiments with GPT-4. arXiv:2303.12712v5. https://arxiv.org/abs/2303.12712v5
BibTeX
@misc{bubeck2023sparks,
title = {{Sparks of Artificial General Intelligence: Early experiments with GPT-4}},
author = {Sébastien Bubeck and Varun Chandrasekaran and Ronen Eldan and Johannes Gehrke and Eric Horvitz and Ece Kamar and Peter Lee and Yin Tat Lee and Yuanzhi Li and Scott Lundberg and Harsha Nori and Hamid Palangi and Marco Tulio Ribeiro and Yi Zhang},
year = {2023},
eprint = {2303.12712},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2303.12712v5}
}