Recovering Event Probabilities from Large Language Model Embeddings via Axiomatic Constraints
Jian-Qiao Zhu, Haijiang Yan, Thomas L. Griffiths
TL;DR
This work addresses the problem that LLM-derived event probabilities are often incoherent with the axioms of probability. It proposes an unsupervised, two-step VAE approach that learns a low-dimensional latent space from LLM embeddings and enforces the additivity constraint for complementary events by modifying a single latent variable (interpreted as log-odds) via a sign flip, yielding recovered probabilities $P_ ext{recovered}=rac{e^{ extbf{z}^{(1)}}}{1+e^{ extbf{z}^{(1)}}}$. Training interleaves standard reconstruction with a second objective to predict embeddings of complementary events, guided by a centered Gaussian prior ($p( extbf{z})= ext{N}( extbf{0}, extbf{I})$) and a $eta$-VAE regime ($eta=5$). Empirical evaluation on dice-related events shows recovered probabilities are more coherent than text-based judgments and closely track true probabilities, with ablation demonstrating the necessity of Step 2; results also indicate model- and layer-dependent performance, with Gemma-2-9b-instruct outperforming Llama-3.1-8b-instruct. The findings reveal that coherent probabilistic structure can be recovered from embeddings and suggest avenues for integrating axiomatic constraints into LLMs to enhance probabilistic reasoning in uncertain domains.
Abstract
Rational decision-making under uncertainty requires coherent degrees of belief in events. However, event probabilities generated by Large Language Models (LLMs) have been shown to exhibit incoherence, violating the axioms of probability theory. This raises the question of whether coherent event probabilities can be recovered from the embeddings used by the models. If so, those derived probabilities could be used as more accurate estimates in events involving uncertainty. To explore this question, we propose enforcing axiomatic constraints, such as the additive rule of probability theory, in the latent space learned by an extended variational autoencoder (VAE) applied to LLM embeddings. This approach enables event probabilities to naturally emerge in the latent space as the VAE learns to both reconstruct the original embeddings and predict the embeddings of semantically related events. We evaluate our method on complementary events (i.e., event A and its complement, event not-A), where the true probabilities of the two events must sum to 1. Experiment results on open-weight language models demonstrate that probabilities recovered from embeddings exhibit greater coherence than those directly reported by the corresponding models and align closely with the true probabilities.
