arXiv:2509.00921cs.CL2025-09被引 1

用提示学习+监督微调提升大模型做序列标注的性能

Supervised In-Context Fine-Tuning for Generative Sequence Labeling

  • 将序列标注转为受限生成任务,结合上下文学习与监督微调
  • 在多个标准任务上显著优于传统方法和解码器编码器基准
  • 移除指令可缓解长上下文带来的性能下降,适合实际部署

序列标注(SL)任务(如命名实体识别、基于方面的情感分析)在自然语言处理中广泛存在。由于需要双向上下文,传统上采用编码器模型处理。近期研究发现,去除微调时的因果掩码可使基于解码器的大语言模型有效进行词元分类。然而,针对(有监督的)生成式序列标注的研究仍较少,而这类设定更符合因果大模型的天然范式。随着大模型快速扩展,其在序列标注上的表现有望超越发展停滞的编码器模型。本文提出监督式上下文微调(SIFT),将序列标注转化为受约束的响应生成任务,结合示范学习与监督微调。SIFT在多个标准序列标注任务上显著优于上下文学习和解码器作为编码器的微调基线。我们还发现,尽管长上下文会降低生成式序列标注的性能(无论在ICL还是SIFT中),但通过移除指令可缓解该问题,因为实验表明指令对SIFT实现强性能并非必要。这些发现揭示了大模型进行序列标注的优势与局限,强调以响应生成形式定义任务对性能提升的重要性。

原文摘要 · Abstract (English)

Sequence labeling (SL) tasks, where labels are assigned to tokens, are abundant in NLP (e.g., named entity recognition and aspect-based sentiment analysis). Owing to the intuition that they require bidirectional context, SL tasks are commonly tackled with encoder-only models. Recent work also shows that removing the causal mask in fine-tuning enables decoder-based LLMs to become effective token classifiers. Less work, however, focused on (supervised) generative SL, a more natural setting for causal LLMs. Due to their rapid scaling, causal LLMs applied to SL are expected to outperform encoders, whose own development has stagnated. In this work, we propose supervised in-context fine-tuning (SIFT) for generative SL. SIFT casts SL tasks as constrained response generation, natural to LLMs, combining in-context learning (ICL) from demonstrations with supervised fine-tuning. SIFT considerably outperforms both ICL and decoder-as-encoder fine-tuning baselines on a range of standard SL tasks. We further find that although long context hinders the performance of generative SL in both ICL and SIFT, this deficiency can be mitigated by removing the instruction, as instructions are shown to be largely unnecessary for achieving strong SL performance with SIFT. Our findings highlight strengths and limitations of SL with LLMs, underscoring the importance of a response-based generative task formulation for effective SL performance.

序列标注大模型提示学习生成式任务

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