Back to Search Start Over

Show Your Work: Scratchpads for Intermediate Computation with Language Models

Authors :
Nye, Maxwell
Andreassen, Anders Johan
Gur-Ari, Guy
Michalewski, Henryk
Austin, Jacob
Bieber, David
Dohan, David
Lewkowycz, Aitor
Bosma, Maarten
Luan, David
Sutton, Charles
Odena, Augustus
Nye, Maxwell
Andreassen, Anders Johan
Gur-Ari, Guy
Michalewski, Henryk
Austin, Jacob
Bieber, David
Dohan, David
Lewkowycz, Aitor
Bosma, Maarten
Luan, David
Sutton, Charles
Odena, Augustus
Publication Year :
2021

Abstract

Large pre-trained language models perform remarkably well on tasks that can be done "in one pass", such as generating realistic text or synthesizing computer programs. However, they struggle with tasks that require unbounded multi-step computation, such as adding integers or executing programs. Surprisingly, we find that these same models are able to perform complex multi-step computations -- even in the few-shot regime -- when asked to perform the operation "step by step", showing the results of intermediate computations. In particular, we train transformers to perform multi-step computations by asking them to emit intermediate computation steps into a "scratchpad". On a series of increasingly complex tasks ranging from long addition to the execution of arbitrary programs, we show that scratchpads dramatically improve the ability of language models to perform multi-step computations.

Details

Database :
OAIster
Publication Type :
Electronic Resource
Accession number :
edsoai.on1333735508
Document Type :
Electronic Resource