NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Discriminative Relational Features for Sequence Labeling

Naveen Nair, Ajay Nagesh, Ganesh RamakrishnanarXiv 2017

Abstract

Discovering relational structure between input features in sequence labeling models has been shown to improve accuracy across various problem settings. However, the search space for these relational features is exponential relative to the number of basic input features, often forcing existing approaches to rely on greedy search strategies. This paper investigates the optimal learning and application of discriminative relational features for sequence labeling. We introduce Hierarchical Kernel Learning for Structured Output Spaces (StructHKL), an approach that efficiently explores the hierarchical feature space. To address the limitations of learning complex relational features across relative positions, we further propose enumAF (enumerating and composing simple features) and SubseqSVM (leveraging relational kernels). Empirical evaluations on activity recognition datasets demonstrate that these methods significantly outperform standard baselines.

Introduction

In sequence labeling tasks, such as activity recognition or part-of-speech tagging, the goal is to assign a label to every observation in a temporal sequence. While standard models like Hidden Markov Models (HMMs) and Conditional Random Fields (CRFs) are widely used, they typically rely on "basic" features—observations tied to a specific point in time.

However, the most discriminative patterns are often relational features: combinations of inputs across time. For instance, in a smart-home environment, a sensor firing near the stove followed shortly by a sensor on the microwave strongly suggests the activity "preparing a meal." The challenge lies in the search space; the number of possible combinations of sensors and time offsets grows exponentially. Most current methods use greedy heuristics to navigate this space, which frequently miss optimal feature combinations. This research proposes methods to explore this space optimally and efficiently.

Methodology

1. StructHKL: Hierarchical Kernel Learning

The core contribution is StructHKL, which adapts Hierarchical Kernel Learning (HKL) for structured output spaces. StructHKL treats the space of feature conjunctions as a lattice. Because features follow a partial order—where a conjunction of features (A and B) is a descendant of a single feature (A)—the model can use a $ ho$-norm hierarchical regularizer to efficiently "prune" the lattice. This allows the model to search through millions of potential feature combinations and select a sparse, highly effective set of features without exhaustive enumeration.

2. enumAF: Enumerated Absolute Features

While StructHKL is highly effective for features at a single time step, it faces challenges with complex temporal offsets. To solve this, the authors propose enumAF. This method uses a relational pattern miner (Warmr) to pre-discover frequent patterns across different time steps. These discovered patterns are then treated as input features for the StructHKL framework, which identifies the most discriminative compositions among them.

3. SubseqSVM: Relational Subsequence Kernels

As an alternative to explicit feature discovery, the authors propose SubseqSVM. This method utilizes Relational Subsequence Kernels to implicitly compute similarities between sequences in a high-dimensional space. This space naturally includes all possible composite relational features within a defined time window, bypassing the need to explicitly list or "discover" specific rules while still capturing their discriminative power.

Experimental Evaluation

The proposed methods were evaluated on three benchmark activity recognition datasets:

  • UA Data (University of Amsterdam): 28 days of household data with 14 binary sensors and 8 activity labels.
  • MIT Data (Place-Lab): Data from two apartments with 70–76 sensors and 8 high-level activity categories.
  • KU Data (Katholieke University, Leuven): A kitchen environment with 25 sensors/RFID tags and 19 specific activities (e.g., "toast bread").

Key Results

The proposed methods consistently outperformed standard baselines in micro-averaged accuracy:

  • UA Dataset: StructHKL (63.96%) and SubseqSVM (65.25%) significantly outperformed HMMs (25.40%) and CRFs (48.49%).
  • MIT Dataset: On Subject 1, StructHKL achieved 82.88% accuracy, compared to 75.03% for a standard StructSVM.
  • Statistical Significance: Wilcoxon Signed Rank Tests confirmed that the improvements were statistically significant at a 0.01 level.

Beyond accuracy, StructHKL provided interpretable results, discovering intuitive rules such as: sleeping(T) ← bedroomDoor(T) ∧ toiletDoor(T) ∧ bathroomDoor(T).

Discussion and Insights

A critical insight from this work is the Transition Trade-off. The authors found that while emission features (the relationship between observations and labels) should be sparse to ensure generalizability, transition features (how labels follow one another) should not be. Consequently, they applied a standard 2-norm for transitions while using the hierarchical regularizer for emissions.

Furthermore, the research demonstrates that relational subsequence kernels (SubseqSVM) cover the same theoretical feature space as complex composite features. This provides a mathematical justification for using kernel-based methods when explicit rule discovery is computationally prohibitive.

Limitations and Future Work

The primary limitation of these approaches is computational overhead. Training StructHKL on the UA dataset took approximately 31 hours, compared to minutes for a standard CRF. Similarly, SubseqSVM requires significant inference time due to the complexity of kernel computations. Future work will focus on parallelization using frameworks like Hadoop and developing more aggressive pruning heuristics to scale these methods to larger, more complex sensor networks.

Conclusion

By moving beyond greedy search and hand-crafted features, StructHKL and SubseqSVM provide a robust framework for discovering the complex relational structures inherent in sequence data. These methods offer a significant leap in accuracy for activity recognition and provide a foundation for more automated, discriminative feature engineering in structured output tasks.

Summary updated

BibTeX
@misc{nair2017learning,
  author = {Naveen Nair and Ajay Nagesh and Ganesh Ramakrishnan},
  title = {{Learning Discriminative Relational Features for Sequence Labeling}},
  year = {2017},
  eprint = {1705.02562},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.02562},
}
Figure