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

Cross-Domain Matching for Bag-of-Words Data via Kernel Embeddings of Latent Distributions

Yuya Yoshikawa, Tomoharu Iwata, Hiroshi Sawada, Takeshi Yamada

TL;DR

Researchers have developed a new kernel-based method to match related items across different domains—like pairing an English Wikipedia article with its Japanese counterpart or an image with its descriptive tags. By treating every "bag of words" as a distribution of latent feature vectors and mapping those distributions into a high-dimensional space (RKHS), the model learns to bridge the gap between different vocabularies and modalities more effectively than traditional linear methods.

What Problem Does This Paper Address?

The core challenge in cross-domain matching is that different domains often have no overlapping features. If you want to match an English document to a Japanese one, a standard computer model sees two entirely different sets of words with zero mathematical similarity. Traditional approaches like Canonical Correlation Analysis (CCA) try to project these into a shared space, but they often struggle with non-linear relationships or fail to recognize that different words (like "PC" and "Computer") carry the same semantic weight.

Existing "Kernel CCA" methods attempt to fix this by using non-linear kernels, but they usually treat the entire document as a single fixed vector. This ignores the internal structure of the "bag of words"—the fact that a document is a collection of individual features that each have their own meaning.

Methods

The authors propose a framework that operates at the level of individual features (words, tags, or visual elements) rather than treating entire documents as monolithic vectors.

Overview of the proposed cross-domain matching framework
  1. Shared Latent Space: Every feature in every domain (e.g., the English word "apple" and the Japanese word "りんご") is assigned a latent vector in a shared, $q$-dimensional space.
  2. Instances as Distributions: Instead of representing a document as one big vector, the authors treat it as a distribution of the latent vectors of the words it contains.
  3. Kernel Embeddings: To compare these distributions without making messy assumptions about their shape (like assuming they are Gaussian), the team uses Kernel Embeddings of Distributions. This maps the distribution of words into a Reproducing Kernel Hilbert Space (RKHS).
  4. Discriminative Learning: The model is trained to minimize the distance between the embeddings of paired instances (e.g., the English and Japanese versions of the same article) while maximizing the distance between unrelated ones. This is done using a gradient-based optimization (L-BFGS).

Datasets

The researchers evaluated their method across several diverse datasets to prove its versatility:

  • Multi-lingual Wikipedia: 34,024 articles across six languages (English, German, Finnish, French, Italian, and Japanese).
  • Social Bookmarking (Delicious and Hatena): Matching web pages to the tags users assigned to them.
  • Patent Dataset: Matching patent descriptions to their category tags.
  • Flickr: Matching images (represented as "bag-of-visual-words" using SIFT features) to their user-provided tags.

Key Insights and Ideas

  • Feature-Level Granularity: By learning latent vectors for features rather than just documents, the model can capture semantic relationships. For example, it can learn that "Intel" and "SD Card" are related because they often appear in similar contexts across domains, even if they aren't direct translations.
  • Non-parametric Flexibility: Using kernel embeddings allows the model to represent complex, multi-modal distributions of words within a document. It doesn't need to "summarize" a document into a single mean; it preserves the "moment information" (like variance and higher-order relationships) of the word distributions.
  • Discriminative vs. Generative: Unlike bilingual topic models (which are generative and try to model how the data was created), this method is discriminative. It focuses specifically on the task of matching, which often leads to better performance on retrieval tasks.

Key Results

The proposed method consistently outperformed standard CCA, Kernel CCA (KCCA), and Bilingual Latent Dirichlet Allocation (BLDA) across multiple tasks.

Precision curves for multilingual Wikipedia document matching
  • Multilingual Matching: In all 15 language pairs on Wikipedia, the proposed method achieved significantly higher precision. For example, in Japanese-to-English matching, it was much better at finding the exact correct article within the top 5 results compared to KCCA.
  • Image/Tag Matching: On the Flickr dataset, the method successfully retrieved relevant images for tag queries like "ocean, shore, sea," outperforming baseline methods that struggled with the non-linear relationship between visual pixels and text tags.
  • Robustness: The method showed a "top-heavy" precision curve, meaning the true match was very frequently ranked as the #1 or #2 choice, rather than just being "somewhere in the top 50."

Limitations and Future Work

  • Computational Complexity: While not explicitly detailed as a failure, the method involves optimizing latent vectors for every single feature in the vocabulary. For massive vocabularies (millions of words), this could become computationally expensive compared to simpler linear projections.
  • Supervised Requirement: The model requires a set of known pairs to learn the embedding. Future work might explore "semi-supervised" or "unsupervised" versions where only a few pairs (or none at all) are known upfront.
  • Pivot Domains: The paper mentions that while they focus on two domains, the method can be extended to three or more by using one domain as a "pivot," though this wasn't the primary focus of the experiments.

Summary updated

BibTeX
@inproceedings{yoshikawa2015cross,
  author = {Yuya Yoshikawa and Tomoharu Iwata and Hiroshi Sawada and Takeshi Yamada},
  title = {{Cross-Domain Matching for Bag-of-Words Data via Kernel Embeddings of Latent Distributions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2015},
}
Figure