Computing a partition function of a generalized pattern-based energy over a semiring

Valued constraint satisfaction problems with ordered variables (VCSPO) are a special case of Valued CSPs in which variables are totally ordered and soft constraints are imposed on tuples of variables that do not violate the order. We study a restriction of VCSPO, in which soft constraints are imposed on a segment of adjacent variables and a constraint language consists of -valued characteristic functions of predicates. This kind of potentials generalizes the so-called pattern-based potentials, which were applied in many tasks of structured prediction. For a constraint language we introduce a closure operator, , and give examples of constraint languages for which is small. If all predicates in are cartesian products, we show that the minimization of a generalized pattern-based potential (or, the computation of its partition function) can be made in time, where is a set of variables, is a domain set. If, additionally, only non-positive weights of constraints are allowed, the complexity of the minimization task drops to where is the arity of . For a general language and non-positive weights, the minimization task can be carried out in time. We argue that in many natural cases is of moderate size, though in the worst case can blow up and depend exponentially on .
View on arXiv