mlsanityData to 7 Oct 2026

Teaching Autoregressive Language Models Complex Tasks By Demonstration

arXiv 2109.02102 ↗First posted 5 Sep 2021cs.CL cs.AIcited by 15

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  4. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  5. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  6. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  7. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
  8. 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 883
  9. 2018Image Transformercited by 770
  10. 2016The Mythos of Model Interpretabilitycited by 716
  11. 2021Multimodal Few-Shot Learning with Frozen Language Modelscited by 657
  12. 2020Scaling Laws for Autoregressive Generative Modelingcited by 510
26 more
  1. 2018Behavioral Cloning from Observationcited by 482
  2. 2017Snorkel: Rapid Training Data Creation with Weak Supervisioncited by 370
  3. 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
  4. 2019Deep Learning for Symbolic Mathematicscited by 266
  5. 2016Data Programming: Creating Large Training Sets, Quicklycited by 246
  6. 2016Professor Forcing: A New Algorithm for Training Recurrent Networkscited by 214
  7. 2020Rethinking Positional Encoding in Language Pre-trainingcited by 197
  8. 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
  9. 2020Injecting Numerical Reasoning Skills into Language Modelscited by 133
  10. 2019Scene Memory Transformer for Embodied Agents in Long-Horizon Taskscited by 106
  11. 2019Training Agents using Upside-Down Reinforcement Learningcited by 106
  12. 2019BERTs of a feather do not generalize together: Large variability in generalization across models with similar test set performancecited by 89
  13. 2020Logic-Guided Data Augmentation and Regularization for Consistent Question Answeringcited by 77
  14. 2020Transformers for One-Shot Visual Imitationcited by 77
  15. 2020Autoregressive Knowledge Distillation through Imitation Learningcited by 68
  16. 2019Neural Module Networks for Reasoning over Textcited by 65
  17. 2020Text Modular Networks: Learning to Decompose Tasks in the Language of Existing Modelscited by 65
  18. 2019NumNet: Machine Reading Comprehension with Numerical Reasoningcited by 59
  19. 2018Training Classifiers with Natural Language Explanationscited by 58
  20. 2020Imitating Interactive Intelligencecited by 55
  21. 2020Teaching Temporal Logics to Neural Networkscited by 51
  22. 2021Turning Tables: Generating Examples from Semi-structured Tables for Endowing Language Models with Reasoning Skillscited by 39
  23. 2020Question Directed Graph Attention Network for Numerical Reasoning over Textcited by 35
  24. 2019Diversify Your Datasets: Analyzing Generalization via Controlled Variance in Adversarial Datasetscited by 21
  25. 2019Attention Forcing for Sequence-to-sequence Model Trainingcited by 4
  26. 2021A Reinforcement Learning Environment for Mathematical Reasoning via Program Synthesiscited by 2

Built on by

Cited by year

Citing papers per year: 2022: 9; 2023: 4; 2024: 2.

15 papers.

Sort:

By area: