NNK-Means: Data summarization using dictionary learning with non-negative kernel regression

Sarath Shekkizhar, Antonio Ortega

TL;DR

This paper introduces NNK-Means, a novel dictionary learning approach for data summarization. By integrating non-negative kernel regression (NNK) into a dictionary learning framework, NNK-Means learns "geometric" dictionary atoms that are more interpretable and better represent the underlying data manifold than traditional methods, leading to improved classification accuracy and comparable or faster runtimes.

What Problem Does This Paper Address?

As datasets grow exponentially in size and complexity, efficiently summarizing them becomes crucial for downstream tasks like understanding, clustering, and classification. Traditional clustering methods like k-Means offer interpretable summaries (centroids) but struggle with complex data structures. Dictionary learning (DL) methods can learn representations but often produce atoms that lack clear geometric meaning and are computationally expensive, especially for large datasets. This paper aims to bridge this gap by developing a DL method that produces geometrically meaningful summaries, is scalable, and improves classification performance.

Methods

The core of NNK-Means lies in its novel approach to dictionary learning, which alternates between two steps:

  • Sparse Coding with NNK: Instead of standard sparse coding, NNK-Means uses a non-negative kernel regression (NNK) based approach. This method represents each data point as a sparse, non-negative linear combination of dictionary atoms. Crucially, the NNK framework leverages local data geometry to select relevant neighbors, leading to a more adaptive and geometrically informed representation. This is a key departure from traditional DL methods that might select atoms based purely on correlation with residuals.
  • Dictionary Update: After obtaining the sparse codes (W), the dictionary (A) is updated using a method similar to the Method of Optimal Directions (MOD). This step ensures that the dictionary adapts to the learned sparse representations.

The paper highlights that NNK-Means can be seen as a generalization of k-Means when the sparsity constraint is set to 1, preserving the geometric interpretability of k-Means centroids.

Datasets

The paper evaluates NNK-Means on the following datasets:

  • Synthetic Dataset: A 4-class dataset generated from a non-linear manifold with Gaussian noise, used for visualizing classification performance.
  • USPS: A dataset of handwritten digits.
  • MNIST: A dataset of handwritten digits.
  • CIFAR10: A dataset of image classes.

For classification experiments, subsets of MNIST and CIFAR10 (denoted MNIST-S and CIFAR10-S) were used to enable fair comparison with kernel kSVD, which struggled with the full dataset sizes. For CIFAR10, features were extracted using a self-supervised model (SimCLR).

Key Insights and Ideas

  • Geometric Atoms are Key: The paper strongly advocates for dictionary atoms that have clear geometric interpretations, similar to k-Means centroids. NNK-Means achieves this by leveraging the local geometry captured by NNK, ensuring atoms are more representative of the data manifold.
  • NNK for Adaptive Sparsity: Unlike fixed sparsity constraints in other DL methods, NNK-Means' sparse coding adapts based on the relative positions of data points and dictionary atoms, leading to more efficient and meaningful representations.
  • k-Means as a Special Case: The theoretical connection to k-Means (when sparsity is 1) provides strong intuition and validation for NNK-Means' approach, suggesting it inherits desirable properties like interpretability.
  • Scalability through Neighborhoods: The use of NNK for sparse coding allows for efficient processing by focusing on local neighborhoods, which is crucial for handling large datasets where global optimization is prohibitive.

Key Results

  • Improved Classification Accuracy: NNK-Means consistently outperforms other dictionary learning methods (kSVD, kernel kSVD) and k-Means variants in classification tasks across various datasets, especially when dealing with non-linear data structures. For example, on CIFAR-S, NNK-Means achieved 87.21% accuracy, outperforming kSVD (86.28%) and kernel kSVD (86.71%).
  • Runtime Efficiency: NNK-Means demonstrates competitive or superior runtime performance. It is comparable to k-Means and significantly faster than kernel kSVD (67x faster train, 7x faster test on USPS). This speedup is attributed to the efficient sparse coding enabled by NNK.
  • Interpretable Summaries: Visualizations show that NNK-Means learns dictionary atoms that are more directly related to the input data (e.g., resembling digits in the MNIST example) compared to standard DL methods.

Limitations and Future Work

  • Limitations: The paper acknowledges that while NNK-Means is scalable, its runtime complexity for sparse coding can still be a factor for extremely large datasets, with complexities mentioned as O(NMd) and O(Nk³) for neighborhood search and quadratic optimization, respectively. The dictionary update step has a complexity of O(M³ + NMk).
  • Future Work: The authors suggest exploring the trade-offs between summary size and the effectiveness of obtained summaries in improving analysis and design of data-driven machine learning systems. Further research into optimizing the trade-offs associated with summary size and its impact on downstream tasks is a promising direction.

Summary updated

BibTeX
@inproceedings{shekkizhar2022nnk,
  author = {Sarath Shekkizhar and Antonio Ortega},
  title = {{NNK-Means: Data summarization using dictionary learning with non-negative kernel regression}},
  booktitle = {EUSIPCO},
  year = {2022},
  url = {https://openreview.net/forum?id=hy9R79fwZD_},
}
Figure