arXiv:2610.09104cs.CCOct 2026

Manuscript Offprint

arXiv:2610.09104

On the Computational Complexity of Hidden Markov Model Identification

Markel Zubia, Nils Jansen

Abstract

Identification is the task of recovering the parameters of an unknown ground-truth model from sampled data. When parameters other than the ground truth induce the same output distribution, data alone does not provide enough information to recover the ground truth, and the model is thus called unidentifiable. We study the identifiability problem for hidden Markov models (HMMs): given an HMM, is it identifiable? Existing work on HMM identification establishes conditions under which the ground-truth HMM can be identified. However, most of these conditions are sufficient but not necessary, meaning that, when a model does not satisfy them, its identifiability remains inconclusive. We instead take a computational perspective: is there a sound and complete algorithm that decides whether a given HMM is identifiable, and if so, what is the complexity of this decision problem? We consider the decision problems arising from the various notions of identifiability in the literature, including deterministic, generic, global, local, state-permutation-invariant, and finite-alphabet identifiability. We show that all of these problems are decidable in PSPACE, via reductions to the theory of the reals at various levels of its quantifier-alternation hierarchy. We further show that the deterministic variants are already ∀R-hard (and hence coNP-hard) for simply parameterized families.

1 Introduction

Hidden Markov models. A Hidden Markov model (HMM; Petrie, 1969; Rabiner, 1989) is a stochastic model in which an unobserved Markov chain generates sequences of observations. Given a dataset of observation sequences, the central task is HMM estimation: find an HMM that generates the data. The typical approach to HMM estimation is maximum-likelihood estimation (i.e., estimate the likeliest HMM to generate the data), which is often implemented by the famed Baum–Welch algorithm (Baum et al., 1970; Leroux, 1992). As such, HMMs are a standard tool for modeling sequential data and play a crucial role in a wide range of fields, including signal processing (Rabiner, 1989), machine learning (Ghahramani, 2001), finance (Hamilton, 1989), psychology (Visser et al., 2002), telecommunications (Turin and Van Nobelen, 1998), and many more (Rabiner, 1989; Ephraim and Merhav, 2002).

HMM identification. Within the vast landscape of HMM estimation, a considerable body of work focuses on identification (Blackwell and Koopmans, 1957; Petrie, 1969; Rothenberg, 1971): under the assumption that the dataset was generated by a ground-truth HMM, beyond simply fitting a model to said data, can we reconstruct the ground-truth HMM? If there exists an HMM different from the ground truth that generates the same distribution on observation sequences, then no amount of data from that distribution can allow us to distinguish between them, and the ground truth is thus deemed unidentifiable. In contraposition, the ground-truth is identifiable when its distribution on observation sequences is unique. HMM identifiability is particularly relevant in settings where the ground-truth model is an interesting object of study in-and-of-itself, having been applied in a broad range of areas such as cognitive diagnosis (Liu et al., 2023), system monitoring (Zhang et al., 2016), and DNA sequencing (Steel et al., 1993, 1998).

Identifiability flavors. For any ground-truth HMM, one may construct a different HMM with the same output probabilities in a trivial manner, say by adding dummy hidden states or by renaming the hidden states without changing the output probabilities. Therefore, to pose a sensible notion of identifiability, it is necessary to impose restrictions on the set of allowed HMMs, for instance by fixing the number of hidden states, as well as specify the kind of uniqueness we seek, for instance by enforcing uniqueness up to hidden-state renaming. Consequently, literature introduces various nuanced definitions of HMM identifiability. There are two main flavors of identifiability: deterministic and generic. Deterministic (or strict) identification is a classical idea (see Paz (1971); Finesso (1990); Bonhomme et al. (2016)), and it expresses that the ground-truth model is “strictly” unique, in that, no model other than the ground-truth may generate the data. In contrast, generic (or probabilistic) identification asks whether the HMMs that induce the same distribution on output words as the ground-truth model form a set of Lebesgue measure zero (see Petrie (1969); Allman et al. (2009); Liu et al. (2023)), which in principle allows the identification of the ground-truth almost-surely. Literature further establishes additional variants, and we refer to Cole (2020) for a comprehensive introduction. In short, local identification asks whether there exists a ball around the ground-truth in which it is unique (whereas the more general question is regarded as global identification), parameterized identification restricts the number of parameters that describe the model (closely related to parameter redundancy (Catchpole and Morgan, 1997)), permutation independence considers uniqueness up to the permutation of hidden states. Finally, some works use the term “model” to refer to individual HMMs (Tune et al., 2013), whereas others use it to refer to classes or sets of HMMs induced by a given set of parameters (Catchpole and Morgan, 1997). We adopt the former terminology, and we explicitly write “family” when referring to sets of HMMs.

Existing HMM identification techniques and the current gap. Most HMM literature on identifiability studies the conditions under which identification is guaranteed. These conditions include rank and separation assumptions used by spectral algorithms (Hsu et al., 2012), assumptions on Markov chain topology (Pearl and Tarsi, 1986; Steel et al., 1998; Chang, 1996), Kruskal-rank conditions (Kruskal, 1976; Allman et al., 2009), and problem-specific restrictions such as Q-matrix structures in cognitive diagnosis (Liu et al., 2023). Tune et al. (2013) build upon Allman et al. (2009) to provide necessary and sufficient conditions for identifiability under irreducibility, aperiodicity, and non-redundancy assumptions (see Appendix I). While these results are crucial, our work presents a different perspective: rather than introducing another criterion for identifiability, we focus on the computational complexity of the decision problem itself. Cole (2019, 2020) applies symbolic-algebra systems to local HMM identifiability, which provides a sound and complete decision algorithm. However, a naive application of such approach into our setting requires exhaustively enumerating exponentially many probabilities, whereas we provide a PSPACE solution. Even though identifiability problems are often computationally hard for other stochastic models (see for instance van der Zander et al. (2023); Dörfler et al. (2024)), and HMM identifiability has vast literature and has generally been speculated intractable (Cole, 2019), the exact computational complexity of HMM identifiability has so far remained an open question.

Scope. We focus on finite-state, finite-alphabet, discrete HMMs. This is the setting of much of the classical HMM identifiability and probabilistic automata literature (Petrie, 1969; Baum et al., 1970; Paz, 1971; Rabiner, 1989; Tzeng, 1992). It is also the natural setting from a computational perspective: the input is an HMM with rational parameters that can be encoded in the tape of a Turing machine. Other models such as continuous-output, infinite state, or nonparametric HMMs are important statistical models, but their identifiability is not as relevant from a computational perspective and are not treated in this paper.

Research objectives. We study the (Cook–Levin–Karp) computational complexity-theoretic classification of canonical HMM identifiability problems, by proving complexity upper bounds in the form of decision algorithms (i.e., it cannot be harder than running its decision algorithm), and lower bounds in the form of many-one reductions (i.e., it is at least as hard as another well-known hard problem). In particular, we study the following problems: (I) deterministic HMM identifiability up to equality, hidden state permutation, and bisimilarity, (II) deterministic identifiability with fixed alphabet sizes, (III) local identifiability, (IV) generic identifiability, and (V) family-wise identifiability.

Contribution. We give polynomial-size ∃R\exists\mathbb{R} certificates for HMM output equivalence in Section 4 and use them throughout the paper. Section 5 shows that deterministic identifiability up to equality is in ∀R\forall\mathbb{R}, and that it is ∀R\forall\mathbb{R}-complete for simple parameterizations, and coNP-hard for mask (rectangular) parameterizations. We show that identifiability up to hidden-state permutation is in ∀∃R\forall\exists\mathbb{R} in Section 6.1, while identifiability up to bisimilarity is in ∀R\forall R is shown in Section 6.2. Section 6.3 shows that the hardness results from deterministic global identifiability up to equality carry over to both identifiability up to hidden-state renaming and bisimilarity. In Section 7.1, we show that the hardness results are alphabet-independent, meaning that the identification of HMMs with a binary alphabet is as hard as the problem with an arbitrary alphabet. Section 7.2 shows that local identifiability is in ∀R\forall R. Section 7.3 shows that generic identifiability is in ∃R∩∀R\exists R \cap \forall R, and Section 7.4 shows family-wise identifiability is in ∀R\forall R. By Canny (1988) and Renegar (1992), it follows that all problems studied here are decidable in PSPACE.