Skip to main content
QUICK REVIEW

[论文解读] An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuning

Luo Yun, Zhen Yang|arXiv (Cornell University)|Aug 17, 2023
Topic ModelingComputer Science被引用 56
一句话总结

本文在持续指令调优过程中对大型语言模型的灾难性遗忘(CF)进行了实证分析,发现CF存在于领域知识、推理和阅读理解等方面,并且受到模型结构和通用指令调优在一定程度上的缓解。

ABSTRACT

Catastrophic forgetting (CF) is a phenomenon that occurs in machine learning when a model forgets previously learned information while acquiring new knowledge for achieving a satisfactory performance in downstream tasks. As large language models (LLMs) have demonstrated remarkable performance, it is intriguing to investigate whether CF exists during the continual instruction tuning of LLMs. This study empirically evaluates the forgetting phenomenon in LLMs' knowledge during continual instruction tuning from the perspectives of domain knowledge, reasoning, and reading comprehension. The experiments reveal that catastrophic forgetting is generally observed in LLMs ranging from 1b to 7b parameters. Surprisingly, as the model scale increases, the severity of forgetting intensifies in such a model sale range which may result from the much significant initial performance in the larger LLM. Comparing the decoder-only model BLOOMZ with the encoder-decoder model mT0, BLOOMZ exhibits less forgetting and retains more knowledge. Interestingly, we also observe that LLMs can mitigate language biases, such as gender bias, during continual fine-tuning. Furthermore, our findings indicate that general instruction tuning can help alleviate the forgetting phenomenon in LLMs during subsequent fine-tuning.

研究动机与目标

  • 研究在持续指令调优过程中,LLMs 存储的一般知识是否会被遗忘。
  • 确定哪些知识类型(领域知识、推理、阅读理解)遗忘程度更高或更低。
  • 考察模型规模和架构如何影响遗忘。
  • 评估通用指令调优是否能缓解遗忘。
  • 评估持续微调过程中的偏见,以观察是否得到缓解或扩大。

提出的方法

  • 定义一系列生成任务(Simp、Emdg、InqQG、Exp、HGen)以模拟持续指令调优。
  • 在多项知识任务上使用 FLOSS 评估:领域知识(MMLU)、推理(BoolQ、PIQA、Hellaswag 等)、阅读理解(RACE)和偏见(CrowSPairs)。
  • 用 FG = 对评估集的平均值(R_o - R_m)/ R_o 来衡量遗忘,其中 R_o 是初始表现,R_m 是执行 m 个任务后的表现。
  • 比较解码器仅 BLOOMZ 与编码器-解码器 mT0,以评估架构对遗忘的影响。
  • 纳入 LLAMA 和 ALPACA,以研究通用指令调优对遗忘的影响。
  • 在尺度为 1.1B、1.7B、3B、7.1B 的 BLOOMZ 变体上进行训练,并与 mT0-1.2B/3.7B 以及 LLAMA-7B/ALPACA-7B 进行比较。
Figure 1: The evaluation of detailed performance in BLOOMZ-7.1b during continual instruction tuning. (a) refers to domain knowledge, (b) reasoning capacity, and (c) reading comprehension capacity.
Figure 1: The evaluation of detailed performance in BLOOMZ-7.1b during continual instruction tuning. (a) refers to domain knowledge, (b) reasoning capacity, and (c) reading comprehension capacity.

实验结果

研究问题

  • RQ1在持续指令调优过程中,生成型大语言模型是否发生灾难性遗忘?
  • RQ2一般知识的哪些类型(领域知识、推理、阅读理解)最容易遗忘?
  • RQ3模型规模如何影响遗忘的严重程度?
  • RQ4模型架构(仅解码器 vs 编码器-解码器)如何影响遗忘?
  • RQ5通用指令调优是否能在进一步微调过程中缓解遗忘?
  • RQ6持续微调过程中偏见如何变化?

主要发现

  • 在持续指令调优期间,已在测试的模型和任务中存在CF。
  • 遗忘通常随模型规模增加而增加,尤其在领域知识和阅读理解方面。
  • 同规模下,解码器仅 BLOOMZ 的遗忘倾向少于编码器-解码器的 mT0。
  • 通用指令调优(ALPACA、LLAMA+ALPACA)可以在后续微调中缓解遗忘,取决于初始表现。
  • 偏见测量表明在持续调优过程中对某些偏见的缓解,表明存在偏见降低效应。
  • 在评估的领域中,阅读理解表现出最强烈的遗忘(例如,在较大尺度下出现较大的 FG 值)。
Figure 2: FG values of domain knowledge, reasoning, and reading comprehension in BLOOMZ with respect to different scales.
Figure 2: FG values of domain knowledge, reasoning, and reading comprehension in BLOOMZ with respect to different scales.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。