arXiv:2512.19879cs.LGcs.AI2025-12被引 3

将提示学习融入微调,提升小样本任务适应效率

Fine-Tuned In-Context Learners for Efficient Adaptation

  • 用包含示例的提示结构增强微调数据,融合两种方法优势
  • 在少样本场景下性能超越纯微调与提示学习基线
  • 提出预序评估法,无需交叉验证,适合低数据场景

在将大语言模型适配特定下游任务时,通常采用两种方法:一是提示工程结合上下文少样本学习,利用模型泛化能力;二是基于任务数据的微调,直接优化模型参数。提示方法在少样本时表现优异,但数据增多后效果趋于饱和;微调随数据量增加表现更佳,但在样本稀缺时性能不足。本文提出一种统一方法:将上下文学习结构嵌入微调过程,使用包含示例的提示格式增强任务数据。该方法虽需针对每项任务微调,却兼具提示学习的样本效率与微调的性能提升,在多数任务上显著优于两者基线。为解决低数据场景下的超参数选择难题,提出预序评估(prequential evaluation),避免昂贵的交叉验证,同时利用全部数据训练并提供可靠验证信号。通过大量实证研究,验证了该统一方法在具体下游任务中的最优预测性能。

原文摘要 · Abstract (English)

When adapting large language models (LLMs) to a specific downstream task, two primary approaches are commonly employed: (1) prompt engineering, often with in-context few-shot learning, leveraging the model's inherent generalization abilities, and (2) fine-tuning on task-specific data, directly optimizing the model's parameters. While prompt-based methods excel in few-shot scenarios, their effectiveness often plateaus as more data becomes available. Conversely, fine-tuning scales well with data but may underperform when training examples are scarce. We investigate a unified approach that bridges these two paradigms by incorporating in-context learning directly into the fine-tuning process. Specifically, we fine-tune the model on task-specific data augmented with in-context examples, mimicking the structure of k-shot prompts. This approach, while requiring per-task fine-tuning, combines the sample efficiency of in-context learning with the performance gains of fine-tuning, leading to a method that consistently matches and often significantly exceeds both these baselines. To perform hyperparameter selection in the low-data regime, we propose to use prequential evaluation, which eliminates the need for expensive cross-validation and leverages all available data for training while simultaneously providing a robust validation signal. We conduct an extensive empirical study to determine which adaptation paradigm - fine-tuning, in-context learning, or our proposed unified approach offers the best predictive performance on a concrete data downstream-tasks.

微调提示学习少样本

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。