arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2411.12484cs.LGcs.CL
收藏

面向远距离标签交互的正则模式敏感CRFs

Regular-pattern-sensitive CRFs for Distant Label Interactions

University of Bamberg(巴姆堡大学);Institute for Natural Language Processing(自然语言处理研究所);University of Stuttgart(斯图加特大学)

Sean Papay, Roman Klinger, Sebastian Pado

AI总结:

本研究提出正则模式敏感CRFs(RPCRFs),通过用户指定的正则表达式标签模式增强标准线性链CRFs的长距离标签交互建模能力,在保证精确训练与推断可处理的同时,在合成数据集上验证了有效性。

摘要:

尽管大语言模型(LLMs)在序列标注领域已得到广泛应用,线性链条件随机场(CRFs)凭借能够直接建模标签间交互的特性,仍是一种常用的替代方案。但马尔可夫假设限制了这类模型仅能直接建模相邻标签间的交互。相比之下,加权有限状态转换器(FSTs)能够建模远距离的标签-标签交互,但精确的标签推断通常难以处理。\n在本研究中,我们提出了正则模式敏感CRFs(RPCRFs),这是一种通过用户指定模式赋予标准线性链CRFs学习长距离标签交互能力的方法。该方法允许用户编写正则表达式形式的标签模式,简洁指定模型应考虑的交互类型,使模型能够从数据中学习这些模式是否存在以及在何种上下文中出现。该结果既可以被解释为添加了额外非局部势函数的CRF,也可以被解释为由一组易于解释的模式定义结构的有限状态转换器。关键在于,对于许多模式集而言,精确训练和推断都是可处理的。我们详细说明了如何从一组用户指定的模式自动构建RPCRF,并在三个合成序列建模数据集组成的序列上验证了该模型的有效性。

英文摘要:

While LLMs have grown popular in sequence labeling, linear-chain conditional random fields (CRFs) remain a popular alternative with the ability to directly model interactions between labels. However, the Markov assumption limits them to % only directly modeling interactions between adjacent labels. Weighted finite-state transducers (FSTs), in contrast, can model distant label--label interactions, but exact label inference is intractable in general. In this work, we present regular-pattern-sensitive CRFs (RPCRFs), a method of enriching standard linear-chain CRFs with the ability to learn long-distance label interactions through user-specified patterns. This approach allows users to write regular-expression label patterns concisely specifying which types of interactions the model should take into account, allowing the model to learn from data whether and in which contexts these patterns occur. The result can be interpreted alternatively as a CRF augmented with additional, non-local potentials, or as a finite-state transducer whose structure is defined by a set of easily-interpretable patterns. Critically, exact training and inference are tractable for many pattern sets. We detail how an RPCRF can be automatically constructed from a set of user-specified patterns, and demonstrate the model's effectiveness on a sequence of three synthetic sequence modeling datasets.

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

↑