Computer Science > Machine Learning
[Submitted on 1 Oct 2012 (this version), latest version 20 Jan 2017 (v5)]
Title:Inference algorithms for pattern-based CRFs on sequence data
View PDFAbstract: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 $\alpha$. Such CRFs were used in computer vision, and can be naturally applied to many sequence tagging problems.
Let $\Pi$ be the set of input patterns and $L=\sum_{\alpha\in\Pi}|\alpha|$ be their total length. (Komodakis & Paragios, 2009) showed how to compute MAP in time $O(n L)$ when all costs are non-positive. We present a modification that has the same worst-case complexity but can beat it in the best case. More importantly, we give efficient algorithms for the three standard inference tasks in a CRF, namely computing (i) the partition function, (ii) marginals, and (iii) MAP in the general case (i.e. when costs can be positive). Their complexities are respectively $O(n L)$, $O(n\sum_{\alpha\in\Pi}|\alpha|^2)$, and $O(n L\cdot \min{|D|,\log L})$ where $D$ is the input alphabet.
Submission history
From: Vladimir Kolmogorov [view email][v1] Mon, 1 Oct 2012 19:13:59 UTC (63 KB)
[v2] Tue, 23 Oct 2012 16:16:58 UTC (64 KB)
[v3] Thu, 8 Nov 2012 00:11:30 UTC (65 KB)
[v4] Sat, 29 Dec 2012 22:13:01 UTC (72 KB)
[v5] Fri, 20 Jan 2017 08:00:44 UTC (60 KB)
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
IArxiv Recommender
(What is IArxiv?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.