Introduction
Sequence labeling—the task of assigning tags to every element in a temporal series—is a fundamental challenge in machine learning, with applications ranging from gesture recognition in video to part-of-speech tagging in natural language processing. While deep learning models like LSTMs have become popular for these tasks, they often lack interpretability and can be difficult to stabilize. This paper introduces Factored Latent-Dynamic Conditional Random Fields (FLDCRF), a framework that bridges the gap between traditional graphical models and deep learning. By employing multiple interacting layers of hidden states, FLDCRF captures complex internal dynamics more efficiently than previous models, offering superior accuracy, faster training, and enhanced stability.
The Challenge of Sequence Labeling
Standard Conditional Random Fields (CRFs) are highly effective at modeling dependencies between labels (e.g., ensuring that a "standing" label is likely to follow "sitting"). However, they struggle to model the internal phases of a single label, such as the distinct "swing" and "stance" phases within a "walking" gait.
To address this, Latent-Dynamic CRFs (LDCRFs) were developed to incorporate hidden variables that represent these sub-structures. While powerful, LDCRFs suffer from a "state-space explosion": as the complexity of the hidden dynamics increases, the computational cost grows quadratically. This makes them difficult to train on complex tasks and prone to overfitting. The evolution of these models is shown in Figure 1.
Methodology: The Factored Approach
The core innovation of this work is the application of factorization to the latent space, inspired by Factorial Hidden Markov Models (FHMMs). Instead of using a single, monolithic hidden state, FLDCRF utilizes multiple "cotemporal" hidden state variables (layers) that interact with one another. This allows the model to represent a large state space using significantly fewer parameters.
The authors introduce three primary variants:
- FLDCRF-s (Single-label): Uses multiple hidden layers to model different facets of a single label sequence (e.g., separate layers for horizontal and vertical movement components).
- FLDCRF-m (Multi-label): Designed for multi-task learning where different label categories (like "locomotion" and "high-level activity") have their own hidden layers that influence one another.
- FLDCRF-i (Interaction): A variant specifically for modeling social interactions between multiple agents.
Training is performed by maximizing conditional log-likelihood using the BFGS optimizer. Unlike LSTMs, which typically require GPU acceleration and extensive hyperparameter tuning, FLDCRF uses a structured probabilistic approach that can be trained efficiently on a standard CPU.
Experimental Evaluation
The models were evaluated on two benchmark datasets:
- UCI Gesture Phase Data: Kinect-based video features of people gesticulating. The task is binary segmentation (gesture vs. rest).
- UCI Opportunity Data: A complex activity recognition dataset from body-worn sensors, requiring simultaneous identification of "locomotion" (4 classes) and "high-level activity" (5 classes).
Key Results
- Superior Accuracy: FLDCRF-s outperformed the best LSTM models by approximately 4% on the gesture phase task. On the multi-label Opportunity dataset, FLDCRF-m outperformed LSTMs by an average of 2%.
- Training Efficiency: FLDCRF reached convergence significantly faster than LSTMs, even without GPU acceleration.
- Model Selection: Finding the optimal configuration for FLDCRF is more straightforward than for neural networks, as performance follows predictable patterns relative to the number of hidden states.
Discussion: Stability and Interpretability
A major finding of this research is the "Stability Gap" in deep learning models. While LSTMs often show excellent performance on validation data, they frequently fail to generalize to test data, exhibiting high variance across different runs. In contrast, FLDCRF showed high consistency between validation and test sets.
Furthermore, FLDCRF offers a level of interpretability that "black box" neural networks lack. Because it is a graphical model, researchers can manually encode known dependencies—such as the physical impossibility of walking while sitting—directly into the model structure. This ability to integrate expert knowledge makes FLDCRF a robust choice for specialized domains.
Conclusion and Future Work
FLDCRF provides a scalable, stable, and interpretable alternative to LSTMs for sequence labeling tasks. By factoring the latent space, it achieves high representational power with a fraction of the parameters required by traditional LDCRFs. Future research will explore extending this factored latent space to heterogeneous models (combining discrete and continuous states) and developing hybrid models that use Convolutional Neural Networks (CNNs) for feature extraction alongside FLDCRF for structured labeling.
Summary updated