arXiv(opens in a new tab)Computer ScienceFeb 2023Cited by 7 papers on PaperVantage

Manuscript Offprint

arXiv:2302.06476

Is ChatGPT a General-Purpose Natural Language Processing Task Solver?

Chengwei Qin, Aston Zhang, Zhuosheng Zhang, Jiaao Chen, Michihiro Yasunaga, Diyi Yang

Abstract

Spurred by advancements in scale, large language models (LLMs) have demonstrated the ability to perform a variety of natural language processing (NLP) tasks zero-shot---i.e., without adaptation on downstream data. Recently, the debut of ChatGPT has drawn a great deal of attention from the natural language processing (NLP) community due to the fact that it can generate high-quality responses to human input and self-correct previous mistakes based on subsequent conversations. However, it is not yet known whether ChatGPT can serve as a generalist model that can perform many NLP tasks zero-shot. In this work, we empirically analyze the zero-shot learning ability of ChatGPT by evaluating it on 20 popular NLP datasets covering 7 representative task categories. With extensive empirical studies, we demonstrate both the effectiveness and limitations of the current version of ChatGPT. We find that ChatGPT performs well on many tasks favoring reasoning capabilities (e.g., arithmetic reasoning) while it still faces challenges when solving specific tasks such as sequence tagging. We additionally provide in-depth analysis through qualitative case studies.

1 Introduction

Large language models (LLMs) have been shown to be able to solve a variety of natural language processing (NLP) tasks zero shot—i.e., without relying on any training data for a given downstream task—by conditioning the model on appropriate prompts (Brown et al., 2020; Chowdhery et al., 2022a). The ability to perform new tasks based on instructions can be seen as an important step towards artificial general intelligence (Goertzel, 2014). Despite achieving reasonable performance in some cases, current LLMs are still prone to various mistakes in zero-shot learning. In addition, the format of the prompt can have a substantial impact—for example, simply adding “Let’s think step by step” (Kojima et al., 2022) has been shown to significantly improve the performance of InstructGPT (Ouyang et al., 2022) on reasoning tasks. These limitations illustrate that current LLMs are not truly general-purpose language systems.

Recently, the ChatGPT LLM released by OpenAI has attracted a great deal of attention from the NLP community. ChatGPT was created by training a GPT-3.5 series model through reinforcement learning from human feedback (RLHF) (Christiano et al., 2017) (similarly to InstructGPT). RLHF mainly includes three steps: training a language model with supervised learning, collecting comparison data based on human preferences and training a reward model, and optimizing the language model against the reward model using reinforcement learning (Ouyang et al., 2022). Through RLHF training, ChatGPT has been observed to have impressive capabilities in various aspects, including generating high-quality responses to human input, rejecting inappropriate questions, and self-correcting previous errors based on subsequent conversations (Guo et al., 2023).

Figure 1: Performance of ChatGPT, GPT-3.5, and models fine-tuned with task-specific data for 20 different datasets. For each reasoning dataset, the better result between zero-shot and zero-shot chain-of-thought is shown. Measures of SAMsum, CoNLL03, and the rest are ROUGE-1/2/L average, F1, accuracy, respectively.

While ChatGPT shows strong dialogic capabilities, it still remains unclear to the NLP community whether ChatGPT attains better zero-shot generalization compared with existing LLMs. To fill in this research gap, we systematically study the zero-shot learning capability of ChatGPT by evaluating it on a large collection of NLP datasets covering 7 representative task categories, including reasoning, natural language inference, question answering (reading comprehension), dialogue, summarization, named entity recognition, and sentiment analysis. With extensive experiments, we aim to answer the following research questions:

  • Is ChatGPT a general-purpose NLP task solver? On what types of tasks does ChatGPT perform well?
  • If ChatGPT fell behind other models on certain tasks, why?

To answer these questions, we empirically compare the performance of ChatGPT (gpt-3.5-turbo) and the previous GPT-3.5 model (text-davinci-003). In addition, we report zero-shot, fine-tuned, or few-shot fine-tuned results from recent work such as FLAN (Wei et al., 2021), T0 (Sanh et al., 2021b), and PaLM (Chowdhery et al., 2022b).

References (35)