arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.16946cs.CL
收藏

使用大语言模型进行跨度标记的策略

Strategies for Span Labeling with Large Language Models

Institute of Formal and Applied Linguistics(形式与应用语言学研究所);Faculty of Mathematics and Physics, Charles University(数学与物理系,查尔斯大学)

Danil Semin, Ondřej Dušek, Zdeněk Kasner

AI总结:

研究使用大语言模型进行跨度标记的策略,将现有策略分为三类,针对内容匹配局限引入LogitMatch方法,经四项任务评估,发现标记是强大基线,LogitMatch能改进基于匹配的方法,在部分设置中表现更优。

摘要:

大语言模型(LLMs)越来越多地用于文本分析任务,如命名实体识别或错误检测。然而,与基于编码器的模型不同,生成式架构缺乏明确机制来指代其输入的特定部分。这导致了各种用于跨度标记的临时提示策略,结果往往不一致。本文将这些策略分为三类:标记输入文本、索引跨度的数字位置和匹配跨度内容。为解决内容匹配的局限性,引入了LogitMatch,一种新的约束解码方法,强制模型输出与有效输入跨度对齐。在四项不同任务中评估了所有方法。发现虽然标记仍是强大基线,但LogitMatch通过消除跨度匹配问题改进了基于匹配的竞争方法,在某些设置中优于其他策略。

英文摘要:

Large language models (LLMs) are increasingly used for text analysis tasks, such as named entity recognition or error detection. Unlike encoder-based models, however, generative architectures lack an explicit mechanism to refer to specific parts of their input. This leads to a variety of ad-hoc prompting strategies for span labeling, often with inconsistent results. In this paper, we categorize these strategies into three families: tagging the input text, indexing numerical positions of spans, and matching span content. To address the limitations of content matching, we introduce LogitMatch, a new constrained decoding method that forces the model's output to align with valid input spans. We evaluate all methods across four diverse tasks. We find that while tagging remains a robust baseline, LogitMatch improves upon competitive matching-based methods by eliminating span matching issues and outperforms other strategies in some setups.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑