Group $K$-Means

Jianfeng Wang, Shuicheng Yan, Yi Yang, Mohan S. Kankanhalli, Shipeng Li, Jingdong WangarXiv 2015

TL;DR

This paper introduces "Group K-Means" (gk-means), a novel algorithm for learning multiple dictionaries to represent data points as sums of codewords. It addresses the challenge of finding effective solutions for this non-convex problem by proposing an iterative assignment-update strategy and a hierarchical initialization method, achieving competitive distortion errors.

What Problem Does This Paper Address?

The paper tackles the problem of learning multiple dictionaries for data representation. The goal is to approximate a data point as a sum of codewords, where each codeword is selected from a different dictionary. While theoretically, such a representation can achieve low approximation errors, finding an effective and scalable algorithm for this task has been a challenge. Existing methods either struggle with computational complexity as the number of dictionaries grows or are limited in their ability to find optimal solutions due to the non-convex nature of the objective function. This paper aims to bridge this gap by proposing a practical and efficient algorithm.

Methods

The core of the proposed solution is the Group K-Means (gk-means) algorithm. It iteratively refines two key components:

  • Assignment Step: This step determines which codeword from each dictionary best represents a given data point. The paper introduces two strategies:
  • Order-1 Group Assignment (O1GA): Each dictionary is treated as a group of K-means cluster centers, and assignments are made iteratively for each dictionary.
  • Order-2 Group Assignment (O2GA): Pairs of dictionaries are considered as groups, allowing for more complex interactions between codewords. This is a generalization that can be extended to "Order-n Group Assignment."
  • Update Step: Once assignments are made, the codewords within each dictionary are updated to minimize the approximation error, similar to the update step in traditional K-means.

A crucial aspect of gk-means is its hierarchical initialization strategy. Recognizing that the non-convex objective function can lead to local minima, the authors propose a multi-stage approach. This method starts with simpler subproblems where dictionaries have many zero constraints and gradually relaxes these constraints in subsequent stages, leading to a better initialization than random sampling or standard K-means.

Datasets

The paper evaluates its approach on three widely-used high-dimensional datasets:

  • SIFT1M: Contains 128-dimensional SIFT descriptors.
  • GIST1M: Contains 960-dimensional GIST features.
  • MNIST: Uses vectorized 28x28 pixel images, resulting in 784-dimensional feature vectors.

The experiments focus on the application of gk-means for data compression and approximate nearest neighbor (ANN) search.

Key Insights and Ideas

  • "Grouping" Dictionaries for Scalability: The core idea of treating dictionaries (or pairs of dictionaries) as "groups" of K-means centers is a clever way to break down the complex multi-dictionary problem into more manageable subproblems, improving scalability.
  • Hierarchical Initialization is Crucial: The paper strongly emphasizes that for non-convex optimization problems like this, initialization is not just a detail but a critical factor determining the final solution quality. Their hierarchical approach consistently outperforms random and standard K-means initializations.
  • Order-2 Assignment Offers Potential Improvement: While not always guaranteed, the Order-2 Group Assignment generally leads to lower distortion than Order-1, suggesting that considering interactions between multiple dictionaries can capture more complex data structures.
  • Trade-off Between Assignment Complexity and Distortion: The paper highlights a trade-off: Order-1 assignment is computationally cheaper but might yield higher distortion, while Order-2 is more complex but can achieve better results.

Key Results

  • Competitive Distortion: gk-means, particularly with hierarchical initialization (e.g., gk-means(2, h)), achieves competitive or lower relative distortion compared to existing methods like ock-means and ck-means across various code lengths (32, 64, 128 bits) on SIFT1M, GIST1M, and MNIST datasets.
  • Initialization Dominance: The hierarchical initialization consistently leads to significantly better results than random or k-means-based initializations, underscoring its importance.
  • Scalability: gk-means scales linearly with the number of dictionaries, making it more practical than methods like MCMP which exhibit exponential complexity. For instance, encoding 10^6 SIFT1M points with 8 dictionaries took significantly less time with gk-means compared to MCMP.
  • ANN Search Performance: In the context of approximate nearest neighbor search, gk-means (especially gk-means(2, h)) also demonstrates superior recall performance compared to other methods.

Limitations and Future Work

  • Non-convexity Remains a Challenge: While the hierarchical initialization helps, the non-convex nature of the problem means that local minima can still be an issue, and theoretically optimal solutions are not guaranteed.
  • Order-n Complexity: The paper notes that extending to Order-n assignment (n > 2) leads to exponential complexity with n, limiting practical applications to n=1 or n=2.
  • Future Work: The authors suggest exploring applications in multimedia retrieval (especially with inner product measurements) and image compression. Further research could also focus on developing more robust initialization strategies or exploring alternative assignment mechanisms to further improve performance and scalability.

Summary updated

Abstract

We study how to learn multiple dictionaries from a dataset, and approximate any data point by the sum of the codewords each chosen from the corresponding dictionary. Although theoretically low approximation errors can be achieved by the global solution, an effective solution has not been well studied in practice. To solve the problem, we propose a simple yet effective algorithm \textit{Group $K$-Means}. Specifically, we take each dictionary, or any two selected dictionaries, as a group of $K$-means cluster centers, and then deal with the approximation issue by minimizing the approximation errors. Besides, we propose a hierarchical initialization for such a non-convex problem. Experimental results well validate the effectiveness of the approach.
BibTeX
@misc{wang2015group,
  author = {Jianfeng Wang and Shuicheng YAN and Yi Yang and Mohan S. Kankanhalli and Shipeng Li and Jingdong Wang},
  title = {{Group $K$-Means}},
  year = {2015},
  eprint = {1501.00825},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1501.00825},
}
Figure