Abstract: We present a fast algorithm for learning the parameters of the abstract hidden Markov model, a type of hierarchical activity recognition model. Learning using exact inference scales poorly as the number of levels in the hierarchy increases; therefore, an approximation is required for large models. We demonstrate that variational inference is well suited to solve this problem. Not only does this technique scale, but it also offers a natural way to leverage the context-specific independence properties inherent in the model via the fixed point equations. Experiments confirm that the variational approximation significantly reduces the time necessary for learning while estimating parameter values that can be used to make reliable predictions.
Introduction
Activity recognition is the process of translating raw sequential data—such as GPS coordinates or laser scans—into high-level interpretations of human intent. The Abstract Hidden Markov Model (AHMM) is a sophisticated framework for this task, organizing actions into a hierarchy where low-level states are governed by policies, which are themselves directed by higher-level abstract policies.
However, as the complexity of the hierarchy increases, the model encounters a "curse of dimensionality." The computational cost of learning parameters via exact inference (typically using the Junction Tree algorithm) grows exponentially with the depth of the hierarchy. This paper introduces a deterministic, variational learning algorithm that replaces expensive exact inference with a "mean field" approximation, enabling efficient training of deep hierarchical models.
The Abstract Hidden Markov Model
The AHMM structure allows for the modeling of complex behaviors by nesting policies. Each level in the hierarchy consists of a policy variable and a termination flag. A policy at level $k$ selects a sub-policy at level $k-1$, and this sub-policy continues to execute until its termination flag is triggered.
While powerful, the dependencies shown in the graphical model above make exact inference intractable for deep hierarchies. Previous solutions relied on Monte Carlo sampling, which can be difficult to tune for convergence. The proposed variational approach offers a faster, deterministic alternative.
Methodology: Variational Inference
The authors propose a Variational E-Step for the Expectation-Maximization (EM) algorithm based on several key components:
- Mean Field Approximation: The algorithm utilizes a "completely factorized" distribution, assuming that hidden variables (policies, states, and termination flags) are independent given certain variational parameters.
- KL Divergence Minimization: By applying Jensen’s Inequality, the authors create a lower bound on the data's likelihood. They then iteratively update the variational parameters to tighten this bound.
- Exploiting Context-Specific Independence (CSI): A unique advantage of the AHMM is that a policy typically remains constant until a termination flag is raised. The variational method naturally exploits these logical "if-then" structures, simplifying the fixed-point equations and roughly halving the number of terms required for updates.
Experimental Evaluation and Results
The algorithm was evaluated across three domains: a Lab Dataset (robot laser tracking in a cubicle), an Entryway Dataset (complex university entryway tracking), and a synthetic Airline Dataset (15 flight routes across the US with overlapping paths).
Key Findings
- Efficiency: The variational algorithm demonstrated significant speedups, running 17% faster for 1-level models and 64% faster for 2-level models compared to exact inference. As shown in the results table, the time required for exact inference on a 2-level model (284s) is nearly four times that of the variational approximation (71s).
- Accuracy: Despite the approximation, the method achieved nearly 100% classification accuracy on the robot datasets and 95% accuracy on the complex airline dataset.
- Predictive Quality: While exact inference naturally achieves higher log-likelihood values, the variational method produces more "peaked" marginal probabilities, assigning high confidence to specific policies, which is often desirable for clear intent disambiguation.
Conclusion
The variational learning algorithm for AHMMs provides a scalable solution for hierarchical activity recognition. By leveraging mean field approximations and context-specific independence, the method achieves dramatic reductions in training time while maintaining high predictive accuracy. Future work may explore structured approximations to capture more subtle temporal dependencies or scaling the algorithm to even larger, multi-dimensional datasets.
Summary updated