Teaching Autoregressive Language Models Complex Tasks By Demonstration
Not on the map. Why?
Abstract (arXiv)
This paper demonstrates that by fine-tuning an autoregressive language model (GPT-Neo) on appropriately structured step-by-step demonstrations, it is possible to teach it to execute a mathematical task that has previously proved difficult for Transformers - longhand modulo operations - with a relatively small number of examples. Specifically, we fine-tune GPT-Neo to solve the numbers__div_remainder task from the DeepMind Mathematics Dataset; Saxton et al. (arXiv:1904.01557) reported below 40% accuracy on this task with 2 million training examples. We show that after fine-tuning on 200 appropriately structured demonstrations of solving long division problems and reporting the remainders, the smallest available GPT-Neo model achieves over 80% accuracy. This is achieved by constructing an appropriate dataset for fine-tuning, with no changes to the learning algorithm. These results suggest that fine-tuning autoregressive language models on small sets of well-crafted demonstrations may be a useful paradigm for enabling individuals without training in machine learning to coax such models to perform some kinds of complex multi-step tasks.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 38 of its 47 references that are in the map. First posted on arXiv 5 Sep 2021.
Builds on
38 of 47 references.
References · 38
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 883
- 2018Image Transformercited by 770
- 2016The Mythos of Model Interpretabilitycited by 716
- 2021Multimodal Few-Shot Learning with Frozen Language Modelscited by 657
- 2020Scaling Laws for Autoregressive Generative Modelingcited by 510
26 more
- 2018Behavioral Cloning from Observationcited by 482
- 2017Snorkel: Rapid Training Data Creation with Weak Supervisioncited by 370
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
- 2019Deep Learning for Symbolic Mathematicscited by 266
- 2016Data Programming: Creating Large Training Sets, Quicklycited by 246
- 2016Professor Forcing: A New Algorithm for Training Recurrent Networkscited by 214
- 2020Rethinking Positional Encoding in Language Pre-trainingcited by 197
- 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
- 2020Injecting Numerical Reasoning Skills into Language Modelscited by 133
- 2019Scene Memory Transformer for Embodied Agents in Long-Horizon Taskscited by 106
- 2019Training Agents using Upside-Down Reinforcement Learningcited by 106
- 2019BERTs of a feather do not generalize together: Large variability in generalization across models with similar test set performancecited by 89
- 2020Logic-Guided Data Augmentation and Regularization for Consistent Question Answeringcited by 77
- 2020Transformers for One-Shot Visual Imitationcited by 77
- 2020Autoregressive Knowledge Distillation through Imitation Learningcited by 68
- 2019Neural Module Networks for Reasoning over Textcited by 65
- 2020Text Modular Networks: Learning to Decompose Tasks in the Language of Existing Modelscited by 65
- 2019NumNet: Machine Reading Comprehension with Numerical Reasoningcited by 59
- 2018Training Classifiers with Natural Language Explanationscited by 58
- 2020Imitating Interactive Intelligencecited by 55
- 2020Teaching Temporal Logics to Neural Networkscited by 51
- 2021Turning Tables: Generating Examples from Semi-structured Tables for Endowing Language Models with Reasoning Skillscited by 39
- 2020Question Directed Graph Attention Network for Numerical Reasoning over Textcited by 35
- 2019Diversify Your Datasets: Analyzing Generalization via Controlled Variance in Adversarial Datasetscited by 21
- 2019Attention Forcing for Sequence-to-sequence Model Trainingcited by 4
- 2021A Reinforcement Learning Environment for Mathematical Reasoning via Program Synthesiscited by 2
Built on by
Citing papers per year: 2022: 9; 2023: 4; 2024: 2.
15 papers.
Sort:
By area:
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022Can language models learn from explanations in context?cited by 248
- 2024The pitfalls of next-token predictioncited by 156
- 2022Limitations of Language Models in Arithmetic and Symbolic Inductioncited by 71
- 2022Sub-Task Decomposition Enables Learning in Sequence to Sequence Taskscited by 41
- 2023Dissociating language and thought in large language modelscited by 27
- 2022UniMASK: Unified Inference in Sequential Decision Problemscited by 23
- 2024Your Context Is Not an Array: Unveiling Random Access Limitations in Transformerscited by 11
- 2022Induced Natural Language Rationales and Interleaved Markup Tokens Enable Extrapolation in Large Language Modelscited by 10
- 2022Towards Flexible Inference in Sequential Decision Problems via Bidirectional Transformerscited by 6
- 2022Learning to Reason With Relational Abstractionscited by 5
- 2023ExaRanker: Explanation-Augmented Neural Rankercited by 2
3 more
- 2024Your Context Is Not an Array: Unveiling Random Access Limitations in Transformers10 Aug 2024
- 2024The pitfalls of next-token prediction11 Mar 2024
- 2023Automated Repair of Declarative Software Specifications in the Era of Large Language Models19 Oct 2023
- 2023Empirical Investigation of Neural Symbolic Reasoning Strategies16 Feb 2023
- 2023ExaRanker: Explanation-Augmented Neural Ranker25 Jan 2023
- 2023Dissociating language and thought in large language models16 Jan 2023
- 2022UniMASK: Unified Inference in Sequential Decision Problems20 Nov 2022
- 2022Metaphors We Learn By11 Nov 2022
- 2022Learning to Reason With Relational Abstractions6 Oct 2022
- 2022Induced Natural Language Rationales and Interleaved Markup Tokens Enable Extrapolation in Large Language Models24 Aug 2022
- 2022Limitations of Language Models in Arithmetic and Symbolic Induction9 Aug 2022
- 2022Towards Flexible Inference in Sequential Decision Problems via Bidirectional Transformers28 Apr 2022
3 more
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022Limitations of Language Models in Arithmetic and Symbolic Inductioncited by 71
- 2023Dissociating language and thought in large language modelscited by 27
- 2022Learning to Reason With Relational Abstractionscited by 5
- 2023Empirical Investigation of Neural Symbolic Reasoning Strategiescited by 1
- 2023Empirical Investigation of Neural Symbolic Reasoning Strategies16 Feb 2023
- 2023Dissociating language and thought in large language models16 Jan 2023
- 2022Learning to Reason With Relational Abstractions6 Oct 2022
- 2022Limitations of Language Models in Arithmetic and Symbolic Induction9 Aug 2022
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Models28 Jan 2022
- 2022Can language models learn from explanations in context?cited by 248
- 2024The pitfalls of next-token predictioncited by 156
- 2022Sub-Task Decomposition Enables Learning in Sequence to Sequence Taskscited by 41
- 2022UniMASK: Unified Inference in Sequential Decision Problemscited by 23
- 2024Your Context Is Not an Array: Unveiling Random Access Limitations in Transformerscited by 11
- 2022Induced Natural Language Rationales and Interleaved Markup Tokens Enable Extrapolation in Large Language Modelscited by 10
- 2022Towards Flexible Inference in Sequential Decision Problems via Bidirectional Transformerscited by 6
- 2023ExaRanker: Explanation-Augmented Neural Rankercited by 2
- 2023Automated Repair of Declarative Software Specifications in the Era of Large Language Modelscited by 1
- 2022Metaphors We Learn Bycited by 0
- 2024Your Context Is Not an Array: Unveiling Random Access Limitations in Transformers10 Aug 2024
- 2024The pitfalls of next-token prediction11 Mar 2024
- 2023Automated Repair of Declarative Software Specifications in the Era of Large Language Models19 Oct 2023
- 2023ExaRanker: Explanation-Augmented Neural Ranker25 Jan 2023
- 2022UniMASK: Unified Inference in Sequential Decision Problems20 Nov 2022
- 2022Metaphors We Learn By11 Nov 2022
- 2022Induced Natural Language Rationales and Interleaved Markup Tokens Enable Extrapolation in Large Language Models24 Aug 2022
- 2022Towards Flexible Inference in Sequential Decision Problems via Bidirectional Transformers28 Apr 2022
- 2022Sub-Task Decomposition Enables Learning in Sequence to Sequence Tasks6 Apr 2022
- 2022Can language models learn from explanations in context?5 Apr 2022