[论文解读] Exploring the Benefits of Training Expert Language Models over Instruction Tuning
该论文显示,针对单一任务训练的专家语言模型在未见任务上可以超越经过指令微调的多任务语言模型,并且检索或合并任务特定专家相较于传统的 MT-LMs 提供了实际的优势。
Recently, Language Models (LMs) instruction-tuned on multiple tasks, also known as multitask-prompted fine-tuning (MT), have shown the capability to generalize to unseen tasks. Previous work has shown that scaling the number of training tasks is the key component in making stronger MT LMs. In this work, we report an unexpected finding that an expert LM fine-tuned on just a single task can outperform an MT LM trained with 300+ different tasks on 11 different unseen datasets and on 13 datasets of the BIG-bench benchmark by a mean accuracy of 3.20% and 1.29%, respectively. This finding casts doubt on the previously held belief that simply scaling the number of tasks makes stronger MT LMs. Leveraging this finding, we further show that this distributed approach of training a separate expert LM per training task instead of a single MT LM for zero-shot inference possesses many benefits including (1) avoiding negative task transfer that often occurs during instruction tuning, (2) being able to continually learn new tasks without having to re-train on previous tasks to avoid catastrophic forgetting, and (3) showing compositional capabilities when merging individual experts together. The code is available at https://github.com/joeljang/ELM.
研究动机与目标
- 评估一个在单一任务上训练的专家 LM 是否能比在多任务上训练的 MT LMs 在未见任务上有更好的泛化能力。
- 评估在推理时使用多个任务特定专家并进行检索(RoE)相较于单一 MT LM 的好处。
- 探索合并专家以创建复合能力的可行性与收益。
提出的方法
- 通过冻结基础 LM 并为每个训练任务训练适配器来得到每任务专家(Prompt Experts, PE),或对 Dataset Experts (DE) 训练整个 LM。
- 构建一个 Expert Library,使用稠密检索器(Sentence Transformer)将训练实例嵌入映射到相应的 expert ID。
- 通过在 Expert Library 上使用 MIPS(最近似/最大内积搜索)为每个未见任务检索最相关的 expert,进行零-shot 推理。
- 在 11 个未见数据集、13 个 BIG-bench 任务,以及 8 个未见生成任务上,评估有看见任务和未见任务的泛化能力。
- 探索通过将它们的微调增量(τ)以等权或学习权重进行合并来形成新的模型。
实验结果
研究问题
- RQ1单任务专家 LM 是否能够在未见任务上胜过多任务指令微调 LM?
- RQ2对每个未见任务检索最相关的 expert(RoE)在性能上是否能够达到或超过基线 MT LM 的表现?
- RQ3与单独的专家相比,任务专家合并是否带来好处或产生负迁移?
- RQ4当使用一组任务特定专家的集成时,持续学习和组合指令的实际意义是什么?
主要发现
- 在 Cosmos-qa ('no_prompt_text') 上训练的单一 Prompt Expert,在 11 个未见评估数据集中的 8 个上优于 MT LM T0-3B,平均准确率提高 +3.20%。
- RoE oracle(为每个任务选择最佳 expert)在未见任务的平均准确率上比 T0-3B 高 11.94%,在 8 个未见生成任务上高出 13.69%,使用 RoE(Orc.)。
- 对每个未见任务检索相关专家(RoE)通常在分类任务上比单个 MT LM(T0-3B)表现更好,在某些设置下平均准确率约提高 +2.05%,但并非在所有生成任务上都如此。
- 专家 LM 在添加新任务时没有遗忘(无灾难性遗忘),并且在扩展 Expert Library 的同时可以保留已见任务的性能。
- 合并 adapters(PEs)可能产生混合结果(对某些任务存在正向迁移),而合并完整微调的 LMs(DEs)可能带来更明显的改进,表明存在组合潜力但有取舍。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。