Embedding Heterogeneous Data Using Statistical Models

Amir Globerson, Gal Chechik, Fernando Pereira, Naftali Tishby

Introduction

Traditional dimensionality reduction techniques, such as Multidimensional Scaling (MDS) or Locally Linear Embedding (LLE), are primarily designed for homogeneous data—sets of objects of the same type where a distance metric is either given or easily defined. However, many real-world datasets are inherently heterogeneous, consisting of different types of entities like words and documents, genes and symptoms, or authors and papers. In these cases, there is no natural physical distance; instead, relationships are defined by statistical associations or co-occurrences.

This paper introduces Co-Occurrence Data Embedding (CODE), a method for mapping heterogeneous data into a unified low-dimensional Euclidean space. By translating statistical associations into geometric distances, CODE enables intuitive visualization and high-performance retrieval across different entity types.

The CODE Framework

The core innovation of CODE is the treatment of the relationship between two variables, $X$ and $Y$, as a probabilistic model where Euclidean distance determines likelihood.

Conceptual framework of CODE: mapping a co-occurrence distribution to a shared geometric embedding.

Probabilistic Modeling

The authors model the conditional probability $p(y|x)$ using an exponential function of the negative squared Euclidean distance between the embedded points $\phi(x)$ and $\psi(y)$:

$$p(y|x) = \frac{1}{Z(x)} \exp(-\|\phi(x) - \psi(y)\|^2)$$

where $Z(x)$ is a partition function that ensures the probabilities sum to one. This formulation implies that if $x$ and $y$ co-occur frequently, their corresponding points in the embedding space should be close. The partition function acts as a natural regularizer, preventing the "collapse" of all points into a single location.

Optimization

The model is trained by maximizing the log-likelihood of the observed empirical co-occurrences. For low-dimensional visualizations (2D or 3D), the authors employ conjugate gradient ascent. For higher-dimensional embeddings, the problem can be reformulated as a convex Semidefinite Program (SDP) by optimizing over the Gram matrix of dot products, which guarantees finding a global optimum.

Experimental Evaluation

The authors evaluated CODE on two benchmark text datasets:

  • NIPS 0-17 Database: 2,483 documents and 2,000 words from the Neural Information Processing Systems conference, including metadata like document topics and author names.
  • 20 Newsgroups: Approximately 20,000 messages categorized into 20 distinct newsgroups, representing a standard benchmark for classification and clustering.

Results and Discussion

CODE demonstrates significant advantages over traditional methods in both qualitative and quantitative assessments.

Visualization of the NIPS dataset embedding, showing document clusters (a) and associated keywords (b-d).

Visual Clustering and Adjacency

As shown in the visualization of the NIPS dataset, CODE successfully maps documents and words into clusters that align with scientific sub-fields (e.g., Neuroscience, Learning Theory) without prior knowledge of labels. A key insight is implicit similarity: although the model only learns distances between different types (word-to-document), it induces meaningful distances between same-type objects. Two words appear close together if they share similar document co-occurrence patterns.

Quantitative Performance

Using "purity" measures—which check if a document's nearest neighbors share its topic—CODE consistently outperformed standard techniques. It surpassed linear methods like Correspondence Analysis (CA) and Singular Value Decomposition (SVD), as well as non-linear manifold learning methods like IsoMap and MDS. Unlike Canonical Correlation Analysis (CCA), which is limited to linear relationships, CODE’s non-linear exponential mapping proves more robust for sparse, real-world data.

Conclusion and Future Work

CODE provides a powerful bridge between statistics and geometry, allowing heterogeneous data to be analyzed within a unified framework. While the SDP approach offers convexity, maintaining low-rank constraints for visualization remains a challenge. Future research directions include extending the model to joint distributions $p(x,y)$ and scaling the framework to multivariate systems, such as Markov Random Fields, to embed complex networks of authors, citations, and keywords simultaneously.

Summary updated

BibTeX
@inproceedings{globerson2006embedding,
  author = {Amir Globerson and Gal Chechik and Fernando Pereira and Naftali Tishby},
  title = {{Embedding Heterogeneous Data Using Statistical Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2006},
}
Figure