arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.13586cs.LGcs.AIcs.CL
收藏

指令微调:提示词损失重要吗?

Instruction Fine-Tuning: Does Prompt Loss Matter?

University of Oregon(俄勒冈大学);EQ4ALL

Mathew Huerta-Enochian, Seung Yong Ko

AI总结:

本研究分析了监督指令微调中提示词损失 token 权重(PLW)的影响,发现模型性能与 PLW 呈负二次关系:小 PLW 值利于短生成任务,大 PLW 值利于长生成任务,建议 API 保留该参数。

摘要:

我们提出了一项新颖的研究,分析了监督指令微调(SIFT)中各种提示词损失 token 权重(PLW)的影响。虽然提示词掩码(PLW = 0)在 SIFT 中很常见,但一些微调 API 支持小数 PLW,并建议在短补全数据上微调时使用较小的非零 PLW 可以帮助稳定学习。然而,此前从未有研究证实这一说法,且主要的基于云的 SIFT 提供商 OpenAI 最近从其微调 API 中移除了该参数。我们发现,在短补全数据上微调的模型性能与 PLW 呈现出具有统计显著性的负二次关系。使用较小的 PLW 值(0.01 - 0.5)在多项选择和短生成基准上取得了更好的结果(优于在长补全数据上微调的模型),而使用较大的 PLW 值(~ 1.0)在长生成基准上取得了更好的结果。我们解释了这一效应,并通过额外实验验证了其重要性。本研究向 API 提供商发出警告,指出为 SIFT 提供 PLW 参数的重要性。

英文摘要:

We present a novel study analyzing the effects of various prompt loss token weights (PLW) for supervised instruction fine-tuning (SIFT). While prompt-masking (PLW = 0) is common for SIFT, some fine-tuning APIs support fractional PLWs and suggest that using a small non-zero PLW can help stabilize learning when fine-tuning on short-completion data. However, there has never been a study confirming this claim, and OpenAI, a major cloud-based SIFT provider, recently removed this parameter from their fine-tuning API. We found that performance of models fine-tuned on short-completion data had a statistically-significant negative quadratic relationship with PLW. Using small values (0.01 - 0.5) of PLW produced better results on multiple-choice and short-generation benchmarks (outperforming models fine-tuned on long-completion data) while large values (~ 1.0) of PLW produced better results on long-generation benchmarks. We explained this effect and verified its importance through additional experiments. This research serves as a warning to API providers about the importance of providing a PLW parameter for SIFT.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑