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

Kernelized Sorting

Novi Quadrianto, Le Song, Alexander J. Smola

TL;DR

Kernelized Sorting is a novel framework for matching objects between two different sets (like images and text) without needing a pre-defined "bridge" or cross-domain similarity measure. By maximizing the statistical dependence between the sets using the Hilbert Schmidt Independence Criterion (HSIC), the algorithm discovers the optimal alignment based solely on the internal structures of each domain.

What Problem Does This Paper Address?

In many unsupervised learning tasks, we want to find correspondences between two different types of data—for example, matching a satellite map to a street-view image or a document in English to its translation in French.

Standard approaches require a cross-domain similarity measure: a function that tells you how much a specific image "looks like" a specific piece of text. However, creating such a function is often difficult or impossible without labeled data. This paper addresses the challenge of matching two sets of observations, $\mathcal{X}$ and $\mathcal{Y}$, when we only understand the relationships within $\mathcal{X}$ and within $\mathcal{Y}$, but have no map between the two.

Methods

The authors propose Kernelized Sorting, which treats matching as a dependency maximization problem.

  1. Dependency Measure (HSIC): They use the Hilbert Schmidt Independence Criterion (HSIC) to measure how "related" two sets of variables are. HSIC works by mapping data into a high-dimensional feature space (Reproducing Kernel Hilbert Space, or RKHS). If two sets are independent, their HSIC is zero; the more dependent they are, the higher the value.
  2. The Objective: The goal is to find a permutation (a reordering) of one set that maximizes the HSIC between the two sets. Mathematically, this is expressed as maximizing $\text{tr}(\bar{K} \pi \bar{L} \pi^\top)$, where $\bar{K}$ and $\bar{L}$ are centered kernel matrices representing the internal similarities of the two domains, and $\pi$ is the permutation matrix.
  3. Optimization: This is a Quadratic Assignment Problem (QAP), which is notoriously NP-hard. To solve it efficiently, the authors use DC (Difference of Convex) Programming. They approximate the problem by iteratively solving Linear Assignment Problems (LAP), which are much faster to compute.
  4. Handling Text: For text data, which often results in "diagonally dominant" matrices (where a document is only similar to itself), they introduce a bias-corrected version of the estimator to improve matching accuracy.

Datasets

The authors evaluated their method across several diverse domains:

  • Image Layout: 284 images from Flickr, resized and converted to Lab color space.
  • UCI/LibSVM Benchmarks: Standard datasets including australian, breastcancer, diabetes, optdigits, and satimage.
  • Multilingual Documents: The Europarl Parallel Corpus, consisting of 300 long documents translated across several European languages (Danish, Dutch, English, French, German, Italian, Portuguese, Spanish, and Swedish).

Key Insights and Ideas

  • Sorting as a Special Case: The authors prove that standard numerical sorting is actually a specific, 1D case of kernelized sorting. This provides a beautiful theoretical link between basic data ordering and complex manifold alignment.
  • Structure is Enough: The core "aha" moment is that if two datasets describe the same underlying phenomena, their "shapes" (internal similarity structures) will be similar. By aligning these shapes, you align the data points themselves without ever needing a translation key.
  • No Dictionary Needed: In the multilingual document task, the algorithm successfully matched English documents to their translations in other languages without using a bilingual dictionary or any cross-language features—it relied entirely on the fact that similar topics create similar "clusters" of documents in any language.

Key Results

  • Image Matching: When matching the left and right halves of 320 images, the algorithm correctly recovered 140 pairs. While not perfect, this is significantly higher than the "chance" level of 1 pair.
  • Multilingual Alignment: The results were particularly striking here. For example, when matching Portuguese documents to English translations, Kernelized Sorting found 252 correct matches out of 300. For Italian to English, it found 237/300. This outperformed baseline length-based matching by a massive margin.
  • Visualization: The algorithm successfully laid out images into a grid forming the letters "NIPS 2008," grouping images with similar color compositions together more effectively than traditional methods like Self-Organizing Maps (SOM), which often leave "holes" in the layout.
Images arranged to form "NIPS 2008" based on color composition using Kernelized Sorting.

Limitations and Future Work

  • Local Optima: Because the underlying optimization problem is NP-hard, the DC programming approach only guarantees a locally optimal solution. The quality of the match is highly dependent on a good initialization (the authors suggest using principal eigenvectors).
  • Kernel Selection: The performance relies on choosing appropriate kernels for each domain. While the Gaussian RBF kernel works well for many cases, specialized kernels (like SIFT for images) might be required for more complex tasks.
  • Computational Scaling: While more efficient than exhaustive QAP solvers, the $O(m^3)$ complexity of the linear assignment step may still be a bottleneck for extremely large datasets (millions of points). Future work could explore more scalable approximation techniques.

Summary updated

BibTeX
@inproceedings{quadrianto2008kernelized,
  author = {Novi Quadrianto and Le Song and Alexander J. Smola},
  title = {{Kernelized Sorting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2008},
}
Figure