提出SIFT算法,让大模型测试时微调更高效准确
Efficiently Learning at Test-Time: Active Fine-Tuning of LLMs
- 用不确定性减少思想优化数据选择,避免冗余
- 在Pile数据集上优于近邻检索,计算开销极小
- 可预测微调效果,动态分配计算资源
近期语言模型微调常依赖自动数据选择,通常采用从大数据集进行最近邻检索。然而我们理论证明该方法易选到重复数据,限制效果甚至损害性能。为此提出SIFT算法,通过降低模型对提示的响应不确定性来统一检索与主动学习思想。相比传统近邻检索,SIFT能有效处理信息重复问题,最大化所选样本的整体信息增益。我们在Pile数据集上评估了测试时针对特定提示的语言建模微调,结果表明SIFT始终优于近邻检索,且计算开销极低。此外,我们发现不确定性估计可预测测试时微调的性能提升,并据此设计自适应算法,使测试时计算资源按实际收益动态投入。我们发布了$ exttt{activeft}$库,可作为近邻检索的即插即用替代方案。
原文摘要 · Abstract (English)
Recent efforts in fine-tuning language models often rely on automatic data selection, commonly using Nearest Neighbors retrieval from large datasets. However, we theoretically show that this approach tends to select redundant data, limiting its effectiveness or even hurting performance. To address this, we introduce SIFT, a data selection algorithm designed to reduce uncertainty about the model's response given a prompt, which unifies ideas from retrieval and active learning. Whereas Nearest Neighbor retrieval typically fails in the presence of information duplication, SIFT accounts for information duplication and optimizes the overall information gain of the selected examples. We focus our evaluations on fine-tuning at test-time for prompt-specific language modeling on the Pile dataset, and show that SIFT consistently outperforms Nearest Neighbor retrieval, with minimal computational overhead. Moreover, we show that our uncertainty estimates can predict the performance gain of test-time fine-tuning, and use this to develop an adaptive algorithm that invests test-time compute proportional to realized performance gains. We provide the $\texttt{activeft}$ (Active Fine-Tuning) library which can be used as a drop-in replacement for Nearest Neighbor retrieval.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。