Optimizing Locally Linear Classifiers with Supervised Anchor Point Learning

Xue Mao, Zhouyu Fu, Ou Wu, Weiming Hu

Introduction

Nonlinear classification is essential for handling complex real-world data, yet it often presents a significant computational challenge. While Kernel SVMs offer high accuracy, their prediction complexity scales with the number of support vectors, making them slow for large-scale applications. Conversely, Locally Linear Classifiers (LLC) provide a faster alternative by approximating nonlinear boundaries through a collection of local linear models anchored to specific points in the data space.

However, traditional LLCs typically select these "anchor points" using unsupervised methods like K-means clustering. This approach places landmarks based on data density rather than the classification task at hand, often leading to sub-optimal decision boundaries. This paper introduces Locally Linear Classifiers with Supervised Anchor Point Learning (LLC-SAPL), a framework that jointly optimizes both the classifier weights and the positions of the anchor points to maximize classification performance.

The Limitation of Unsupervised Anchor Points

In standard locally linear models, anchor points serve as representative landmarks. A data point is represented by its coordinates relative to these landmarks. When anchor points are chosen via unsupervised clustering, they are positioned to capture the global shape of the data distribution. Unfortunately, the regions most critical for classification—the decision boundaries—may not coincide with high-density clusters. This mismatch results in "wiggly" or inaccurate boundaries because the local linear approximations are not centered where they are needed most.

Supervised Anchor Point Learning (SAPL)

The core innovation of LLC-SAPL is the treatment of anchor points as trainable parameters within a unified optimization framework.

  1. Differentiable Localized Coding: The authors employ a localized soft-assignment coding scheme. Each data point is represented as a weighted combination of its $k$-nearest anchor points. By using a differentiable analytic form for these weights, the entire pipeline becomes amenable to gradient-based optimization.
  2. Joint Optimization via SGD: Using Stochastic Gradient Descent (SGD), the algorithm simultaneously updates the classifier's weights ($W$ and $b$) and "nudges" the anchor points ($v$). This allows the model to move anchor points toward the decision boundary, where they can most effectively resolve class ambiguities.
  3. Efficiency and Sparsity: By restricting each data point's representation to its $k$ nearest neighbors, the model maintains the computational efficiency of local methods. The prediction speed remains linear with respect to the number of anchor points, which is kept small.

Visualizing the Decision Boundary

The impact of supervised learning is most evident when visualizing decision boundaries on synthetic datasets.

Comparison of decision boundaries for LLSVM, LLC-SAPL, and Kernel SVM on a synthetic sine wave dataset.

As shown in the figure above, the unsupervised LLSVM produces a jagged boundary that fails to capture the underlying structure perfectly. In contrast, LLC-SAPL produces a smooth boundary nearly identical to that of a Kernel SVM. Remarkably, LLC-SAPL achieves this result using only a handful of anchor points, whereas the Kernel SVM requires hundreds of support vectors to define the same curve.

Key Results and Performance

The authors evaluated LLC-SAPL across various benchmarks, ranging from binary classification tasks (e.g., IJCNN, CIFAR) to large-scale multi-class problems like MNIST8m.

  • Accuracy: LLC-SAPL consistently outperformed unsupervised locally linear methods. On the USPS dataset, the benefit of supervised anchor point refinement is clear across varying model sizes.
Accuracy vs. number of anchor points on the USPS dataset.
  • Scalability and Speed: On the MNIST dataset, LLC-SAPL achieved testing speeds over 100 times faster than Kernel SVM (~6.4s vs ~867s) while maintaining comparable accuracy. Furthermore, the use of SGD allowed the model to train effectively on the MNIST8m dataset (8 million samples), a scale where traditional Kernel SVMs become computationally prohibitive.

Conclusion

LLC-SAPL successfully bridges the gap between the efficiency of linear models and the expressive power of kernel methods. By transforming anchor point selection from a heuristic preprocessing step into a supervised learning task, the authors provide a principled way to build fast, accurate, and scalable nonlinear classifiers. Future work may involve automating the selection of the number of anchor points to further simplify model deployment.

Summary updated

BibTeX
@inproceedings{mao2015optimizing,
  author = {Xue Mao and Zhouyu Fu and Ou Wu and Weiming Hu},
  title = {{Optimizing Locally Linear Classifiers with Supervised Anchor Point Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2015},
}
Figure