Multi-Dimensional Classification via kNN Feature Augmentation

Bin-Bin Jia, Min-Ling Zhang

Abstract

Multi-dimensional classification (MDC) involves predicting multiple class labels for a single instance across distinct dimensions. While traditional methods focus on modeling label dependencies in the output space, this paper introduces KRAM (kNN featuRe Augmentation for Multi-dimensional classification). KRAM is a meta-strategy that enriches the input feature space by incorporating label distribution information from an instance's nearest neighbors. Experimental results across 11 benchmark datasets demonstrate that KRAM significantly enhances the performance of various MDC algorithms, proving to be a robust and flexible pre-processing technique.

The Challenge of Multi-Dimensional Classification

In Multi-Dimensional Classification (MDC), a single object belongs to multiple categories simultaneously across different "dimensions." For instance, a song might be classified by Genre (Rock, Jazz) and Instrument (Guitar, Piano). These dimensions are rarely independent; knowing a song features a "Guitar" makes the "Rock" label statistically more likely.

Comparison of classification paradigms: (a) multi-dimensional, (b) multi-label, and (c) multi-class classification.

As shown in Figure 1, MDC differs from standard multi-label classification (where labels are binary) and multi-class classification (where only one variable exists). Traditionally, researchers have tackled MDC by modeling these dependencies in the output space using complex structures like classifier chains or label powersets. However, these methods can be computationally expensive. KRAM shifts the focus to the feature space (the input), asking if classification can be improved by manipulating the data before it reaches the model.

Methodology: The KRAM Meta-Strategy

KRAM works as a simple yet effective feature augmentation technique that can be wrapped around any existing MDC algorithm. The process involves four key steps:

  1. Neighbor Identification: For every instance in the training set, the algorithm identifies its $k$ nearest neighbors based on the original features.
  2. Counting Statistics: For each class dimension, KRAM calculates the frequency of each possible class among those $k$ neighbors.
  3. Feature Augmentation: These counting statistics are concatenated to the original feature vector, augmenting the input with discriminative information derived from the label space of similar examples.
  4. Model Induction: A standard MDC algorithm (e.g., Binary Relevance or Classifier Chains) is then trained on this enriched dataset.

Experimental Evaluation

The authors evaluated KRAM on 11 benchmark MDC datasets spanning industrial, multimedia, biological, and natural phenomena domains. They compared four state-of-the-art MDC approaches (BR, ECC, ECP, and ESC) against their KRAM-augmented versions using SVM and Naive Bayes as base classifiers.

Key Results and Robustness

Across 264 different experimental configurations, KRAM achieved superior or comparable performance in 94.7% of cases. The most dramatic improvements were often seen in the Binary Relevance (BR) model; by adding kNN features, the simple BR model often became competitive with much more complex ensemble methods.

Performance metrics (Hamming Score, Exact Match, Sub-Exact Match) across different values of k for various datasets.

One of the most significant findings is the robustness of the strategy. As illustrated in Figure 2, the performance of KRAM remains relatively stable across different values of $k$ (the number of neighbors considered). This stability makes the algorithm easy to deploy in real-world scenarios without requiring exhaustive hyperparameter tuning.

Conclusion

KRAM demonstrates that the label distribution of an instance's neighbors is a powerful proxy for its own labels. By moving this information into the feature space, even simple models that ignore label dependencies can implicitly learn them. While future work may explore more sophisticated encoding methods or address computational overhead for large-scale datasets, KRAM stands as a highly effective and flexible meta-strategy for modern multi-dimensional classification tasks.

Summary updated

BibTeX
@inproceedings{jia2019multi,
  author = {Bin-Bin Jia and Min-Ling Zhang},
  title = {{Multi-Dimensional Classification via kNN Feature Augmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33013975},
}
Figure