Methods that learn hidden-state models of text by matching statistics of word triples (for example, how often word $i$, word $j$ and word $k$ appear in consecutive positions) come with guarantees that they recover the true model. In practice they are often abandoned because triple counts are too noisy to estimate from realistic corpora. This proposal argues that much of that noise is self-inflicted. These methods count only adjacent triples. Yet in a hidden Markov model (HMM), a generator in which an unobserved state evolves over time and emits one word per step, triples spread out across a window carry the same structural information as adjacent ones. Pooling triples over a window with a distance-decaying weight, the "proximity weighting" that word-embedding research has long used as a heuristic, multiplies the usable data. The central observation is that if the weight factors into a separate left-offset part and right-offset part, the pooled tensor keeps exactly the low-rank structure that makes the model identifiable. The middle factor is still the emission matrix, so pooling adds no bias to it.
The point is to turn distance weighting from a tuned trick into a principled estimator with a known trade-off. Distant triples add counts. Their signal fades at the rate the hidden chain forgets its state, while their noise does not. That trade-off predicts which decay rate is best, and the rate can be estimated from the data without a downstream grid search. If the prediction holds, third-order methods become competitive in the data-starved regime where pairwise-only methods are currently the recommended alternative.
Core Claim
Let $x_t$ be the token at position $t$ with one-hot vector $e_{x_t}$, $O$ the emission matrix (column $o_h$ is the word distribution of state $h$), $A$ the forward transition matrix, $B$ the time-reversed transition matrix, and $\pi$ the stationary state distribution. Let $u_a, v_b \ge 0$ be left and right decay weights at offsets $a, b \ge 1$. Past and future words are independent given the current hidden state. It follows that
$$T_{u,v} \;=\; \sum_{a,b\ge 1} u_a v_b\, \mathbb{E}\big[e_{x_{t-a}}\otimes e_{x_t}\otimes e_{x_{t+b}}\big] \;=\; \sum_{h=1}^{K} \pi_h\, \ell_h \otimes o_h \otimes r_h,$$
with $\ell_h = \sum_a u_a O B^a e_h$ and $r_h = \sum_b v_b O A^b e_h$. The pooled tensor is therefore a rank-$K$ three-way decomposition, where $K$ is the number of hidden states, and its middle factor is the emission matrix itself, whatever the kernel. Adjacent-only counting is the special case $u = v = \delta_1$, meaning all weight on offset 1.
The weight shape changes only the conditioning of the outer factors. As the offset grows, $O A^b e_h$ collapses toward the stationary word distribution, which is the same for every state. The component that separates states shrinks roughly like $|\lambda_2|^b$, where $\lambda_2$ is the second-largest eigenvalue of $A$. This rate comes from the spectral decomposition of $A^b$. So the useful signal from offset $b$ decays geometrically, while that offset's contribution to estimator variance stays roughly constant. Variance is also cut less than raw counts suggest, because overlapping triples are correlated; this is the effective-sample-size issue the file raises for decayed estimators. The prediction is that exponential weights $u_a = v_a = \rho^a$ with $\rho$ tied to $|\lambda_2|$ should be near-optimal for HMM-generated data. A kernel that ignores separability, such as a flat cutoff on the total span $a + b \le W$, breaks the factorization and should introduce bias.
Relation to Prior Work
The direct competitor, and the work that motivates the problem, is Learning Hidden Markov Models from Pairwise Co-occurrences. It argues that third-order tensors need prohibitive sample sizes. It proves instead that adjacent-pair co-occurrences identify an HMM under a "sufficiently scattered" geometric condition on emissions, solving a non-convex determinant-regularized problem. Anchor-Free Correlated Topic Modeling makes the same move for topic models. Both treat the cost of third-order statistics as fixed. We challenge that premise: their comparison is against adjacent-only triples, and neither paper pools across offsets for pairs or for triples. Our estimator needs no scattering condition, only full-rank factors, and its decomposition step is algebraic rather than alternating optimization.
The sample-complexity barrier is documented more starkly in causal discovery, which constrains what we can hope for. Cumulant methods need more than 50,000 observations for structural accuracy in Identification of Causal Structure with Latent Variables Based on Higher Order Cumulants, and $10^5$ to $10^7$ for fourth-order systems in Causal Effect Identification in lvLiNGAM from Higher-Order Cumulants. Spectral Experts reports the same gap between moment methods and EM. These settings are i.i.d. and have no offset structure to pool, so our argument does not transfer to them. We cite them as evidence that the bottleneck is real, not as targets.
The distance-weighting literature supplies the kernels but no theory for them. FOFE word embeddings use exponential forgetting $\alpha^k$ for pairwise counts. Levy, Goldberg and Dagan show that Skip-gram's dynamic window is an implicit linear decay. Ding and Yang find empirically that learned power-law decay works best for CBOW. All three are second-order, and all tune decay against downstream tasks. We supply a reason a particular decay is right, and an estimable criterion for choosing it. The nearest pooling idea outside text is Calibrating Higher-Order Statistics for FSCIL, which borrows covariances from similar base classes. That pooling is biased by construction. Ours pools within a single model and, for separable kernels, is unbiased for the emission factor.
Research Program
The work has three parts. The first is theory. We prove the factorization above for separable kernels and bound the error in recovering $O$ as a function of corpus length $N$, the kernel, $\lambda_2$, and the smallest singular value of the pooled outer factors. Under geometric mixing we derive the long-run variance of the pooled tensor, which accounts for the overlap between triples. The expected result is a signal-to-noise ratio that peaks at an interior $\rho$ and shifts toward 1 as the chain becomes stickier.
The second part is a data-driven kernel choice. Pairwise co-occurrence matrices at offset $b$ have state-separating singular values that decay like $|\lambda_2|^b$. We estimate this rate from the singular-value decay across offsets, plug it into the derived optimum, and check the choice with a document-level bootstrap estimate of tensor variance. This answers the file's open problem of choosing decay bandwidth without grid search.
The third part is the estimator itself: a pooled tensor, a standard simultaneous-diagonalization decomposition, and optionally a few EM steps started from the result. This last option is a reported variant, not the headline.
Baselines
The naive reference is the adjacent-only third-order estimator: the same decomposition applied to the $u = v = \delta_1$ tensor. It isolates whether pooling helps at all, and it uses identical code, data and decomposition routine.
The strongest existing method is the pairwise determinant-minimization learner of Huang et al.. It is the strongest competitor because it was designed to escape the third-order barrier that we claim to lower. We will run the authors' formulation, including their successive-convex-approximation solver, on the same token streams. Its regularization weight gets the same tuning budget we give $\rho$. In the fully data-driven variant we give $\rho$ no tuning budget at all, so the comparison favors the baseline. The file has no reported numerical total-variation errors on the synthetic HMM task or coherence scores on Reuters-21578 for this method (no reported result found on Lacuna for either). On TDT2, the companion AnchorFree reports clustering accuracy "at least 30% higher" than FastAnchor, XRAY and SPA, but gives no absolute value. We will therefore reproduce both methods ourselves and report their numbers alongside ours.
Because the competitor might also benefit from pooling, we add a lag-pooled pairwise baseline. It applies the same exponential weights to pairwise co-occurrences before determinant minimization. This configuration is not in the paper, but it is the obvious upgrade and must be beaten.
We also include Baum-Welch EM from random restarts, matched to our wall-clock budget. Two kernel ablations isolate the key ingredient. One compares separable flat, linear (Levy-style), power-law (Ding–Yang-style) and exponential kernels. The other uses a non-separable total-span kernel, which tests whether preserving the factorization, rather than merely adding counts, drives the gain.
Beating the field means three things. On synthetic data, the pooled estimator should reach a given emission error with several-fold fewer tokens than the adjacent-only estimator. It should match or beat lag-pooled pairwise learning whenever the scattering condition is weak. It should do so with a $\rho$ chosen without labels.
Why not just…?
Why not just use pairwise co-occurrences, as Huang et al. recommend? This is the real threat. Pairwise statistics are less noisy, and the paper reports that tensor baselines plateaued while its error kept falling. Pairwise identifiability, however, requires the sufficiently scattered condition. Its solver is non-convex with no guarantee of reaching the global optimum, and their regularization weight is itself tuned heuristically. We will vary emission overlap in the synthetic generator, from near-anchor to heavily overlapping word distributions. If lag-pooled pairwise learning matches our method across that whole range, the honest conclusion is that pooling, not third-order structure, is the contribution. We would report it that way.
Why not just run EM? Spectral Experts concedes that EM is more sample-efficient when it finds the right basin. Cai et al. show that iterative latent-variable methods often get stuck in local optima. Our design includes EM from random starts and EM started from our estimate. If random-start EM is as good at equal compute, the method's value reduces to providing a starting point, and the experiment will show whether that holds.
Why not just widen a flat window? A flat separable window also preserves the factorization, so this is a legitimate competitor rather than a strawman. The theory predicts that flat windows give distant, signal-free offsets the same weight as close ones and so inflate variance. That difference should be largest for fast-mixing chains. The kernel ablation tests this directly.
Proposed Experiments
The synthetic study follows the HMM realization benchmark of Huang et al.. We sweep sequence length, the number of states, emission overlap and $\lambda_2$ (from fast-mixing to sticky chains), and measure total-variation error of the recovered emission and transition matrices. The decisive check is whether the empirically best $\rho$ tracks $|\lambda_2|$ as theory predicts, and whether the data-driven $\rho$ lands within the flat region of the error curve.
On real text, we fit hidden topic Markov models on Reuters-21578 and report topic coherence as in the competitor paper. We cluster TDT2 documents by inferred topic proportions and report clustering accuracy. We fit HMMs to text8 and report held-out log-likelihood. Topic chains are sticky and word-class chains mix fast, so we predict a long kernel for Reuters and a short one for text8.
Our prediction for real text is open to failure: text has dependencies on several timescales, so a power-law kernel may beat a single exponential there. That would be consistent with Ding and Yang's finding for CBOW. It would also show that the single-rate HMM theory is the wrong model for real text, and we will report the outcome either way.
References
- Learning Hidden Markov Models from Pairwise Co-occurrences with Application to Topic Modeling
- Anchor-Free Correlated Topic Modeling: Identifiability and Algorithm
- Identification of Causal Structure with Latent Variables Based on Higher Order Cumulants
- Causal Effect Identification in lvLiNGAM from Higher-Order Cumulants
- Spectral Experts for Estimating Mixtures of Linear Regressions
- Word Embeddings based on Fixed-Size Ordinally Forgetting Encoding
- Improving Distributional Similarity with Lessons Learned from Word Embeddings
- Learning Word Embedding with Better Distance Weighting and Window Size Scheduling
- Calibrating Higher-Order Statistics for Few-Shot Class-Incremental Learning with Pre-trained Vision Transformers
- Causal Discovery with Latent Confounders Based on Higher-Order Cumulants