用有限人工数据,先调优再修正,让大模型更准更省。
Efficient Inference Using Large Language Models with Limited Human Data: Fine-Tuning then Rectification
- 先微调后修正,分两阶段优化模型输出
- 减少预测误差方差,比传统方法提升性能
- 适合资源有限但需高可靠性的企业应用
受人工智能进展推动,大型语言模型(LLMs)在商业场景中作为生成类人响应的可扩展替代方案展现出巨大潜力。现有常见方法包括:微调以使模型更贴近人类反应,以及修正以纠正模型输出偏差。本文提出一种两阶段框架,结合微调与修正,并针对有限标注样本进行最优分配。不同于传统最小化均方预测误差的目标,我们提出最小化预测误差方差作为微调目标,这在下游修正阶段更具优势。基于微调的缩放规律,我们设计了最优样本分配策略。实证分析验证了微调缩放规律,并确认所提分配规则能可靠识别最优样本分配。相比单独使用微调或修正,或在标准均方误差目标下使用该框架,本方法显著提升了估计与推断效率,大幅降低实现可靠商业决策的成本。
原文摘要 · Abstract (English)
Driven by recent advances in artificial intelligence (AI), a growing literature has demonstrated the potential for using large language models (LLMs) as scalable surrogates to generate human-like responses in many business applications. Two common approaches to improve the performance of LLMs include: fine-tuning, which aligns LLMs more closely with human responses, and rectification, which corrects biases in LLM outputs. In this paper, we develop a two-stage framework that combines fine-tuning and rectification, and optimally allocates limited labeled samples across the two stages. Unlike the conventional objective that minimizes the mean squared prediction errors, we propose to minimize the variance of the prediction errors as the fine-tuning objective, which is optimal for the downstream rectification stage. Building on this insight, we leverage the scaling law of fine-tuning to optimally allocate the limited labeled human data between the fine-tuning and rectification stages. Our empirical analysis validates the fine-tuning scaling law and confirms that our proposed optimal allocation rule reliably identifies the optimal sample allocation. We demonstrate substantial efficiency gains in estimation and inference performance relative to fine-tuning or rectification alone, or to employing the standard mean-squared error objective within the fine-tuning then rectification framework, resulting in significant cost savings for reliable business decisions.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。