Skip to main content
QUICK REVIEW

[论文解读] Platypus: Quick, Cheap, and Powerful Refinement of LLMs

Ariel N. Lee, C. Hunter|arXiv (Cornell University)|Aug 14, 2023
Topic ModelingComputer Science被引用 16
一句话总结

Platypus 基于 PEFT 的微调与合并方法,使用 LoRA 对经过筛选的 Open-Platypus 数据集,在 Open LLM Leaderboard 上以较低的数据与计算实现顶级性能。

ABSTRACT

We present $ extbf{Platypus}$, a family of fine-tuned and merged Large Language Models (LLMs) that achieves the strongest performance and currently stands at first place in HuggingFace's Open LLM Leaderboard as of the release date of this work. In this work we describe (1) our curated dataset $ extbf{Open-Platypus}$, that is a subset of other open datasets and which $ extit{we release to the public}$ (2) our process of fine-tuning and merging LoRA modules in order to conserve the strong prior of pretrained LLMs, while bringing specific domain knowledge to the surface (3) our efforts in checking for test data leaks and contamination in the training data, which can inform future research. Specifically, the Platypus family achieves strong performance in quantitative LLM metrics across model sizes, topping the global Open LLM leaderboard while using just a fraction of the fine-tuning data and overall compute that are required for other state-of-the-art fine-tuned LLMs. In particular, a 13B Platypus model can be trained on $ extit{a single}$ A100 GPU using 25k questions in 5 hours. This is a testament of the quality of our Open-Platypus dataset, and opens opportunities for more improvements in the field. Project page: https://platypus-llm.github.io

研究动机与目标

  • 在使用参数高效微调(LoRA)下,利用极少的微调数据和计算提升 LLM 性能。
  • 创建一个经过筛选、聚焦 STEM 的数据集(Open-Platypus),在提升领域知识的同时保留基础模型能力。
  • 研究数据污染和测试集泄漏,以确保基准测试的鲁棒性。
  • 探索将多个微调适配器合并,以提升跨任务与领域的表现。

提出的方法

  • Curate Open-Platypus,这是一个以 STEM 与逻辑为焦点、需要约 25k 道题的开放数据集子集。
  • 对 LLaMa-2 的变体(13B 与 70B)应用基于 LoRA 的微调,并针对性使用模块(gate_proj、down_proj、up_proj)。
  • 将 Platypus 适配器与基础模型以及其他微调变体进行合并,以评估协同增益。
  • 进行污染检查以移除重复项和测试集泄漏,包括灰色区域和相似但不同的类别。
  • 使用 Hugging Face Open LLM Leaderboard 基准测试(ARC、HellaSwag、MMLU、TruthfulQA)进行评估,并与封闭/开放模型进行比较。
  • 超参数包括 LoRA rank=16、lora alpha=16、dropout=0.05、学习率 4e-4/3e-4、1 个 epoch、批量大小 16。

实验结果

研究问题

  • RQ1以小型、经过筛选的数据集进行参数高效微调,到底能将开源 LLM 推向多大程度的最新性能?
  • RQ2将多个微调适配器(Platypus + 其他模型)合并是否在各种基准上带来可测量的增益?
  • RQ3污染筛查和去重对报告的基准性能有何影响?
  • RQ4哪些模型合并组合在知识密集任务(如 TruthfulQA)和领域特定任务(如 MMLU 的领域)上最能提升表现?

主要发现

  • Platypus2-70B-instruct 在 HuggingFace Open LLM Leaderboard 上以平均分 73.13 位居榜首。
  • Stable-Platypus2-13B 是榜单上的顶级 13B 模型,平均分 63.96。
  • 与 Stable Beluga 和 Camel 变体的合并在基准测试中取得显著提升,例如在某些合并中 TruthfulQA 提升高达 +5.87%。
  • Camel-Platypus2-70B 在合并时显示出最大的 ARC-Challenge 提升,+4.12%。
  • Platypus 适配器在仅 0.27%(13B)和 0.2%(70B)的可训练参数下也能取得强劲结果。

阅读本论文

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

在 Nubint 中阅读本论文

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