特征自适应与数据可扩展的上下文学习
Feature-Adaptive and Data-Scalable In-Context Learning
AI总结:
提出 FADS-ICL 框架,通过任务特定调制器对 LLM 提取的上下文外样本特征进行细化,实现特征自适应与数据可扩展的上下文学习,在多种数据与模型规模设置下显著超越现有最先进方法。
摘要:
上下文学习(ICL)通过提供若干示范来促进推理,已成为激发 LLM 在下游任务上能力的广泛范式。由于上下文长度限制,即使有更多训练数据也无法进一步提升性能,且 ICL 中直接来自 LLM 的通用特征无法适应特定下游任务。本文提出特征自适应与数据可扩展的上下文学习框架(FADS-ICL),利用任务自适应特征在上下文外样本的监督下促进下游任务推理。具体而言,首先通过 LLM 以 ICL 输入形式逐个提取上下文外样本的通用特征,并引入任务特定调制器,在拟合特定下游任务后进行特征细化与预测。我们在不同数据设置(4$\sim$128 shots)和 LLM 规模(0.8$\sim$70B)下对 FADS-ICL 进行了大量实验。实验结果表明,FADS-ICL 在所有设置下均以显著优势超越先前最先进方法,验证了其有效性与优越性。例如,在 1.5B 和 32 shots 设置下,FADS-ICL 在 10 个数据集上通过特征自适应相比原始 ICL 实现 \textbf{+14.3} 平均准确率提升,相比先前最先进方法实现 \textbf{+6.2} 平均准确率提升,且性能随训练数据增加而提升。代码与数据公开于 \url{https://github.com/jiahaozhenbang/FADS-ICL}。
英文摘要:
In-context learning (ICL), which promotes inference with several demonstrations, has become a widespread paradigm to stimulate LLM capabilities for downstream tasks. Due to context length constraints, it cannot be further improved in spite of more training data, and general features directly from LLMs in ICL are not adaptive to the specific downstream task. In this paper, we propose a feature-adaptive and data-scalable in-context learning framework (FADS-ICL), which can leverage task-adaptive features to promote inference on the downstream task, with the supervision of beyond-context samples. Specifically, it first extracts general features of beyond-context samples via the LLM with ICL input form one by one, and introduces a task-specific modulator to perform feature refinement and prediction after fitting a specific downstream task. We conduct extensive experiments on FADS-ICL under varying data settings (4$\sim$128 shots) and LLM scale (0.8$\sim$70B) settings. Experimental results show that FADS-ICL consistently outperforms previous state-of-the-art methods by a significant margin under all settings, verifying the effectiveness and superiority of FADS-ICL. For example, under the 1.5B and 32 shots setting, FADS-ICL can achieve \textbf{+14.3} average accuracy from feature adaptation over vanilla ICL on 10 datasets, with \textbf{+6.2} average accuracy over the previous state-of-the-art method, and the performance can further improve with increasing training data. Code and data are publicly available at \url{https://github.com/jiahaozhenbang/FADS-ICL}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。