Show Your Work: Scratchpads for Intermediate Computation with Language Models. Nye, M., Andreassen, A. J., Gur-Ari, G., Michalewski, H., Austin, J., Bieber, D., Dohan, D., Lewkowycz, A., Bosma, M., Luan, D., Sutton, C., & Odena, A. November, 2021. arXiv:2112.00114
Paper doi abstract bibtex 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.
@misc{nye_show_2021,
title = {Show {Your} {Work}: {Scratchpads} for {Intermediate} {Computation} with {Language} {Models}},
shorttitle = {Show {Your} {Work}},
url = {http://arxiv.org/abs/2112.00114},
doi = {10.48550/arXiv.2112.00114},
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.},
urldate = {2024-11-19},
publisher = {arXiv},
author = {Nye, Maxwell and Andreassen, Anders Johan and Gur-Ari, Guy and Michalewski, Henryk and Austin, Jacob and Bieber, David and Dohan, David and Lewkowycz, Aitor and Bosma, Maarten and Luan, David and Sutton, Charles and Odena, Augustus},
month = nov,
year = {2021},
note = {arXiv:2112.00114},
keywords = {Computer Science - Machine Learning, Computer Science - Neural and Evolutionary Computing},
}
Downloads: 0
{"_id":"ku98hxa2aWYaqzF3F","bibbaseid":"nye-andreassen-gurari-michalewski-austin-bieber-dohan-lewkowycz-etal-showyourworkscratchpadsforintermediatecomputationwithlanguagemodels-2021","author_short":["Nye, M.","Andreassen, A. J.","Gur-Ari, G.","Michalewski, H.","Austin, J.","Bieber, D.","Dohan, D.","Lewkowycz, A.","Bosma, M.","Luan, D.","Sutton, C.","Odena, A."],"bibdata":{"bibtype":"misc","type":"misc","title":"Show Your Work: Scratchpads for Intermediate Computation with Language Models","shorttitle":"Show Your Work","url":"http://arxiv.org/abs/2112.00114","doi":"10.48550/arXiv.2112.00114","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.","urldate":"2024-11-19","publisher":"arXiv","author":[{"propositions":[],"lastnames":["Nye"],"firstnames":["Maxwell"],"suffixes":[]},{"propositions":[],"lastnames":["Andreassen"],"firstnames":["Anders","Johan"],"suffixes":[]},{"propositions":[],"lastnames":["Gur-Ari"],"firstnames":["Guy"],"suffixes":[]},{"propositions":[],"lastnames":["Michalewski"],"firstnames":["Henryk"],"suffixes":[]},{"propositions":[],"lastnames":["Austin"],"firstnames":["Jacob"],"suffixes":[]},{"propositions":[],"lastnames":["Bieber"],"firstnames":["David"],"suffixes":[]},{"propositions":[],"lastnames":["Dohan"],"firstnames":["David"],"suffixes":[]},{"propositions":[],"lastnames":["Lewkowycz"],"firstnames":["Aitor"],"suffixes":[]},{"propositions":[],"lastnames":["Bosma"],"firstnames":["Maarten"],"suffixes":[]},{"propositions":[],"lastnames":["Luan"],"firstnames":["David"],"suffixes":[]},{"propositions":[],"lastnames":["Sutton"],"firstnames":["Charles"],"suffixes":[]},{"propositions":[],"lastnames":["Odena"],"firstnames":["Augustus"],"suffixes":[]}],"month":"November","year":"2021","note":"arXiv:2112.00114","keywords":"Computer Science - Machine Learning, Computer Science - Neural and Evolutionary Computing","bibtex":"@misc{nye_show_2021,\n\ttitle = {Show {Your} {Work}: {Scratchpads} for {Intermediate} {Computation} with {Language} {Models}},\n\tshorttitle = {Show {Your} {Work}},\n\turl = {http://arxiv.org/abs/2112.00114},\n\tdoi = {10.48550/arXiv.2112.00114},\n\tabstract = {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.},\n\turldate = {2024-11-19},\n\tpublisher = {arXiv},\n\tauthor = {Nye, Maxwell and Andreassen, Anders Johan and Gur-Ari, Guy and Michalewski, Henryk and Austin, Jacob and Bieber, David and Dohan, David and Lewkowycz, Aitor and Bosma, Maarten and Luan, David and Sutton, Charles and Odena, Augustus},\n\tmonth = nov,\n\tyear = {2021},\n\tnote = {arXiv:2112.00114},\n\tkeywords = {Computer Science - Machine Learning, Computer Science - Neural and Evolutionary Computing},\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","author_short":["Nye, M.","Andreassen, A. J.","Gur-Ari, G.","Michalewski, H.","Austin, J.","Bieber, D.","Dohan, D.","Lewkowycz, A.","Bosma, M.","Luan, D.","Sutton, C.","Odena, A."],"key":"nye_show_2021","id":"nye_show_2021","bibbaseid":"nye-andreassen-gurari-michalewski-austin-bieber-dohan-lewkowycz-etal-showyourworkscratchpadsforintermediatecomputationwithlanguagemodels-2021","role":"author","urls":{"Paper":"http://arxiv.org/abs/2112.00114"},"keyword":["Computer Science - Machine Learning","Computer Science - Neural and Evolutionary Computing"],"metadata":{"authorlinks":{}},"html":""},"bibtype":"misc","biburl":"https://bibbase.org/zotero/pa511","dataSources":["MpmemwLeQzDcKDq6x"],"keywords":["computer science - machine learning","computer science - neural and evolutionary computing"],"search_terms":["show","work","scratchpads","intermediate","computation","language","models","nye","andreassen","gur-ari","michalewski","austin","bieber","dohan","lewkowycz","bosma","luan","sutton","odena"],"title":"Show Your Work: Scratchpads for Intermediate Computation with Language Models","year":2021}