Saved in:
Bibliographic Details
Main Authors: Yrjänäinen, Väinö, Boström, Isac, Magnusson, Måns, Jonasson, Johan
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2508.02337
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909720646778880
author Yrjänäinen, Väinö
Boström, Isac
Magnusson, Måns
Jonasson, Johan
author_facet Yrjänäinen, Väinö
Boström, Isac
Magnusson, Måns
Jonasson, Johan
contents Quantifying uncertainty in word embeddings is crucial for reliable inference from textual data. However, existing Bayesian methods such as Hamiltonian Monte Carlo (HMC) and mean-field variational inference (MFVI) are either computationally infeasible for large data or rely on restrictive assumptions. We propose a scalable Gibbs sampler using Polya-Gamma augmentation as well as Laplace approximation and compare them with MFVI and HMC for word embeddings. In addition, we address non-identifiability in word embeddings. Our Gibbs sampler and HMC correctly estimate uncertainties, while MFVI does not, and Laplace approximation only does so on large sample sizes, as expected. Applying the Gibbs sampler to the US Congress and the Movielens datasets, we demonstrate the feasibility on larger real data. Finally, as a result of having draws from the full posterior, we show that the posterior mean of word embeddings improves over maximum a posteriori (MAP) estimates in terms of hold-out likelihood, especially for smaller sampling sizes, further strengthening the need for posterior sampling of word embeddings.
format Preprint
id arxiv_https___arxiv_org_abs_2508_02337
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Posterior Sampling of Probabilistic Word Embeddings
Yrjänäinen, Väinö
Boström, Isac
Magnusson, Måns
Jonasson, Johan
Machine Learning
Computation
Quantifying uncertainty in word embeddings is crucial for reliable inference from textual data. However, existing Bayesian methods such as Hamiltonian Monte Carlo (HMC) and mean-field variational inference (MFVI) are either computationally infeasible for large data or rely on restrictive assumptions. We propose a scalable Gibbs sampler using Polya-Gamma augmentation as well as Laplace approximation and compare them with MFVI and HMC for word embeddings. In addition, we address non-identifiability in word embeddings. Our Gibbs sampler and HMC correctly estimate uncertainties, while MFVI does not, and Laplace approximation only does so on large sample sizes, as expected. Applying the Gibbs sampler to the US Congress and the Movielens datasets, we demonstrate the feasibility on larger real data. Finally, as a result of having draws from the full posterior, we show that the posterior mean of word embeddings improves over maximum a posteriori (MAP) estimates in terms of hold-out likelihood, especially for smaller sampling sizes, further strengthening the need for posterior sampling of word embeddings.
title Posterior Sampling of Probabilistic Word Embeddings
topic Machine Learning
Computation
url https://arxiv.org/abs/2508.02337