Skip to main content
QUICK REVIEW

[Paper Review] Exponential Family Embeddings

Maja Rudolph, Francisco J. R. Ruiz|arXiv (Cornell University)|Aug 2, 2016
Family Dynamics and RelationshipsSocial Sciences74 citations
TL;DR

This paper introduces Exponential Family Embeddings (ef-emb), a generalization of word embeddings to diverse data types such as neural activity, market basket data, and movie ratings. By modeling each observation conditionally on its context using exponential family distributions and shared latent vectors, ef-emb achieves superior data reconstruction and discovers interpretable semantic structures compared to traditional dimensionality reduction methods like Poisson factorization and exponential family PCA.

ABSTRACT

Word embeddings are a powerful approach for capturing semantic similarity among terms in a vocabulary. In this paper, we develop exponential family embeddings, a class of methods that extends the idea of word embeddings to other types of high-dimensional data. As examples, we studied neural data with real-valued observations, count data from a market basket analysis, and ratings data from a movie recommendation system. The main idea is to model each observation conditioned on a set of other observations. This set is called the context, and the way the context is defined is a modeling choice that depends on the problem. In language the context is the surrounding words; in neuroscience the context is close-by neurons; in market basket data the context is other items in the shopping cart. Each type of embedding model defines the context, the exponential family of conditional distributions, and how the latent embedding vectors are shared across data. We infer the embeddings with a scalable algorithm based on stochastic gradient descent. On all three applications - neural activity of zebrafish, users' shopping behavior, and movie ratings - we found exponential family embedding models to be more effective than other types of dimension reduction. They better reconstruct held-out data and find interesting qualitative structure.

Motivation & Objective

  • To extend the success of word embeddings beyond natural language to high-dimensional data types such as neural recordings, transaction data, and ratings.
  • To develop a unified framework that models each data point as conditionally dependent on its context using exponential family distributions.
  • To enable scalable learning of latent representations through stochastic gradient descent, applicable across diverse data modalities.
  • To demonstrate that ef-emb captures meaningful semantic structure—such as substitutes and complements in shopping data or thematic topics in movie ratings—beyond what traditional factorization methods achieve.
  • To show that ef-emb outperforms existing dimensionality reduction techniques in reconstructing held-out data across multiple real-world datasets.

Proposed method

  • Define a context for each observation, such as neighboring words, nearby neurons, or co-purchased items, based on the data type and problem context.
  • Specify a conditional exponential family distribution (e.g., Gaussian for real-valued data, Poisson for counts, Bernoulli for binary ratings) to model each observation given its context.
  • Use latent embedding vectors and context vectors to parameterize the natural parameter of the exponential family distribution, enabling flexible modeling of dependencies.
  • Share embedding and context vectors across observations to enforce consistency and enable generalization, with the model structure varying by data type.
  • Fit the model using stochastic gradient descent with ℓ₂ regularization, enabling scalability to large datasets.
  • For non-Poisson models like hpf, use variational inference; for Poisson-based models, compute likelihoods via normalized Poisson means given context.

Experimental results

Research questions

  • RQ1Can the principles of word embeddings be generalized to non-textual, high-dimensional data such as neural activity and market basket transactions?
  • RQ2How can a unified framework model diverse data types (real-valued, count, binary) using conditional exponential families and shared latent representations?
  • RQ3To what extent do ef-emb models reconstruct held-out data more accurately than traditional dimensionality reduction techniques like Poisson factorization and exponential family PCA?
  • RQ4Do the learned embeddings reveal interpretable semantic structures—such as product substitutes, complements, or thematic movie clusters—beyond statistical fit?
  • RQ5How does the choice of context definition and distribution family affect model performance and interpretability across different data modalities?

Key findings

  • On market basket data, the p-emb model with K=100 latent dimensions achieved the best predictive performance, outperforming both Poisson PCA and hpf in normalized log-likelihood on held-out data.
  • On MovieLens data, the p-emb model with K=20 provided the highest test log-likelihood, demonstrating superior reconstruction of user ratings compared to baseline methods.
  • The p-emb model successfully captured semantic similarity: for example, yogurt and soda were embedded close to other similar products, with cosine similarity reflecting expected groupings.
  • Inner products between embedding and context vectors identified meaningful relationships: high values indicated complementary items (e.g., potato chips and beer), while low or negative values indicated substitutes (e.g., different pasta sauces) or rarely co-occurring items.
  • In movie ratings, the context vectors for each latent dimension ranked movies by thematic similarity, revealing interpretable clusters such as children’s films and science-fiction/action genres.
  • The ef-emb framework subsumes existing models like continuous bag of words (cbow) and negative sampling as special cases, establishing a unifying perspective on embedding methods.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.