ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2305.17526
10
0

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

27 May 2023
Rustem Takhanov
ArXivPDFHTML
Abstract

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 Γ\GammaΓ consists of {0,1}\{0,1\}{0,1}-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 Γ\GammaΓ we introduce a closure operator, Γ∩‾⊇Γ \overline{\Gamma^{\cap}}\supseteq \GammaΓ∩⊇Γ, and give examples of constraint languages for which ∣Γ∩‾∣|\overline{\Gamma^{\cap}}|∣Γ∩∣ is small. If all predicates in Γ\GammaΓ 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 O(∣V∣⋅∣D∣2⋅∣Γ∩‾∣2){\mathcal O}(|V|\cdot |D|^2 \cdot |\overline{\Gamma^{\cap}}|^2 )O(∣V∣⋅∣D∣2⋅∣Γ∩∣2) time, where VVV is a set of variables, DDD is a domain set. If, additionally, only non-positive weights of constraints are allowed, the complexity of the minimization task drops to O(∣V∣⋅∣Γ∩‾∣⋅∣D∣⋅max⁡ρ∈Γ∥ρ∥2){\mathcal O}(|V|\cdot |\overline{\Gamma^{\cap}}| \cdot |D| \cdot \max_{\rho\in \Gamma}\|\rho\|^2 )O(∣V∣⋅∣Γ∩∣⋅∣D∣⋅maxρ∈Γ​∥ρ∥2) where ∥ρ∥\|\rho\|∥ρ∥ is the arity of ρ∈Γ\rho\in \Gammaρ∈Γ. For a general language Γ\GammaΓ and non-positive weights, the minimization task can be carried out in O(∣V∣⋅∣Γ∩‾∣2){\mathcal O}(|V|\cdot |\overline{\Gamma^{\cap}}|^2)O(∣V∣⋅∣Γ∩∣2) time. We argue that in many natural cases Γ∩‾\overline{\Gamma^{\cap}}Γ∩ is of moderate size, though in the worst case ∣Γ∩‾∣|\overline{\Gamma^{\cap}}|∣Γ∩∣ can blow up and depend exponentially on max⁡ρ∈Γ∥ρ∥\max_{\rho\in \Gamma}\|\rho\|maxρ∈Γ​∥ρ∥.

View on arXiv
Comments on this paper