Learning to Perform Complex Tasks through Compositional Fine-Tuning of Language Models

Victor S. Bursztyn, David Demeter, Doug Downey, Larry Birnbaum
10/23/2022
cs.CLcs.AIcs.LG

Official code: vbursztyn/compositional-fine-tuning (5 stars, Python, last commit 2022-10-06).

Abstract

How to usefully encode compositional task structure has long been a core challenge in AI. Recent work in chain of thought prompting has shown that for very large neural language models (LMs), explicitly demonstrating the inferential steps involved in a target task may improve performance over end-to-end learning that focuses on the target task alone.

Show full abstract

However, chain of thought prompting has significant limitations due to its dependency on huge pretrained LMs. In this work, we present compositional fine-tuning (CFT): an approach based on explicitly decomposing a target task into component tasks, and then fine-tuning smaller LMs on a curriculum of such component tasks. We apply CFT to recommendation tasks in two domains, world travel and local dining, as well as a previously studied inferential task (sports understanding). We show that CFT outperforms end-to-end learning even with equal amounts of data, and gets consistently better as more component tasks are modeled via fine-tuning. Compared with chain of thought prompting, CFT performs at least as well using LMs only 7.4% of the size, and is moreover applicable to task domains for which data are not available during pretraining.

View on arXivView PDF

Code Implementations(1)

Repository for the EMNLP paper Learning to Perform Complex Tasks through Compositional Fine-Tuning of Language Models

50PythonMay 22, 20224 years ago

Similar Papers

Cite this paper

@article{bursztyn2022learning,
  title  = {Learning to Perform Complex Tasks through Compositional Fine-Tuning of Language Models},
  author = {Victor S. Bursztyn and David Demeter and Doug Downey and Larry Birnbaum},
  year   = {2022},
  eprint = {2210.12607},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.12607}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.12607.svg)](https://codeofpaper.com/paper/2210.12607)

Discussion