通过精选数据提升闭源大模型在分布外自然语言推理中的表现
Improving the OOD Performance of Closed-Source LLMs on NLI Through Strategic Data Selection
- 优先选择复杂样本或用大模型生成更复杂的合成数据进行微调
- 复杂样本微调使模型在困难的分布外数据集上性能提升显著
- 自回归模型比编码器模型更抗分布偏移,适合作为新研究基线
我们研究了微调后大语言模型在自然语言推理(NLI)任务上的鲁棒性,发现分布内性能提升伴随分布外(OOD)性能大幅下降。尽管闭源大模型被广泛使用,但现有鲁棒性缓解方法在API微调约束下不可行,因需改变微调流程或大规模数据增强。为此,我们提出战略性选择NLI微调数据:优先使用更复杂的样本,或以大模型生成的数据替换原有训练样本。优先复杂样本可提升模型在挑战性OOD NLI数据集上的表现;使用合成数据则在较易的OOD数据集上带来显著改进。我们发现合成数据常过于简单,通过提示大模型生成更复杂合成数据,可在简单与困难两种OOD数据集上均实现性能提升。最后,我们发现近期自回归大模型相比编码器模型对分布偏移具有更强鲁棒性,应作为未来研究的首选基线。
原文摘要 · Abstract (English)
We investigate the robustness of fine-tuned Large Language Models (LLMs) for the task of Natural Language Inference (NLI), finding that the in-distribution gains from fine-tuning correspond to a large drop in out-of-distribution (OOD) performance. Despite the widespread use of closed-source LLMs, there are no robustness mitigation methods that work under their API fine-tuning constraints. Existing methods to improve robustness typically require changing the fine-tuning process or large-scale data augmentation, methods that are infeasible or cost prohibitive for closed-source models. To address this, we propose strategically selecting the NLI fine-tuning data, prioritising more complex examples or replacing existing training examples with LLM-generated data. Prioritising more complex training examples improves performance on challenging OOD NLI datasets, while training with synthetic data leads to substantial improvements on easier OOD datasets. We find that synthetic examples are often too simple, and by prompting LLMs to create more complex synthetic data we can improve performance on both easy and challenging OOD datasets. Finally, we show that recent autoregressive LLMs are substantially more robust to distributional shifts compared to encoder models, and should be a preferred baseline for future research.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。