arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1210.0508cs.LGcs.DS
收藏

序列数据上基于模式的CRF推理算法

Inference algorithms for pattern-based CRFs on sequence data

Nazarbayev University(纳扎尔巴耶夫大学);Institute of Science Technology Austria(奥地利科学技术研究所)

Rustem Takhanov, Vladimir Kolmogorov

摘要:

我们考虑条件随机场(CRF)与基于模式的潜力定义在一个链上。在这个模型中,一个字符串(标签)的能量$x_1...x_n$是在间隔$[i,j]$上的项的和,其中每个项是非零的,只有当子字符串$x_i...x_j$等于预先指定的模式$α$。这样的CRF可以自然地应用于许多序列标记问题。我们提出了有效的算法,在CRF的三个标准的推理任务,即计算(i)的分区函数,(ii)边际,(iii)计算MAP。它们的复杂度分别为$O(n L)$、$O(n L \ell_{max})$和$O(n L \min\{|D|,\log (\ell_{max}+1)\})$,其中$L$是输入模式的组合长度,$\ell_{max}$是模式的最大长度,$D$是输入字母表。这改进了(Ye等人,2009),其复杂度分别为$O(n L |D|)$、$O(n |Γ| L^2 \ell_{max}^2)$和$O(n L |D|)$,其中$|Γ|$是输入模式的数量。此外,我们给出了一个有效的算法进行采样。最后,我们考虑非正权重的情况。(Komodakis & Paragios,2009)给出了用于计算MAP的$O(n L)$算法。我们提出了一个修改,具有相同的最坏情况下的复杂性,但可以在最好的情况下击败它。

英文摘要:

We consider Conditional Random Fields (CRFs) with pattern-based potentials defined on a chain. In this model the energy of a string (labeling) $x_1...x_n$ is the sum of terms over intervals $[i,j]$ where each term is non-zero only if the substring $x_i...x_j$ equals a prespecified pattern $α$. Such CRFs can be naturally applied to many sequence tagging problems. We present efficient algorithms for the three standard inference tasks in a CRF, namely computing (i) the partition function, (ii) marginals, and (iii) computing the MAP. Their complexities are respectively $O(n L)$, $O(n L \ell_{max})$ and $O(n L \min\{|D|,\log (\ell_{max}+1)\})$ where $L$ is the combined length of input patterns, $\ell_{max}$ is the maximum length of a pattern, and $D$ is the input alphabet. This improves on the previous algorithms of (Ye et al., 2009) whose complexities are respectively $O(n L |D|)$, $O(n |Γ| L^2 \ell_{max}^2)$ and $O(n L |D|)$, where $|Γ|$ is the number of input patterns. In addition, we give an efficient algorithm for sampling. Finally, we consider the case of non-positive weights. (Komodakis & Paragios, 2009) gave an $O(n L)$ algorithm for computing the MAP. We present a modification that has the same worst-case complexity but can beat it in the best case.

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

↑