Pointwise Mutual Information (PMI) is a metric that quantifies how much more often two events—typically words—co-occur than expected by random chance. It is calculated as the logarithm of the ratio between their observed joint probability and the product of their individual marginal probabilities, providing a direct measure of association strength for a specific pair.
Glossary
Pointwise Mutual Information (PMI)

What is Pointwise Mutual Information (PMI)?
An information-theoretic measure quantifying the degree of statistical dependence between two specific events, most commonly applied to word co-occurrence in natural language processing.
A high positive PMI score indicates strong co-occurrence, a score near zero suggests statistical independence, and a negative score implies the words tend to repel each other. As a foundational component of topic coherence metrics like C_V coherence, PMI evaluates the semantic interpretability of latent themes by confirming that a topic's top-ranked words frequently appear together in a reference corpus.
Core Characteristics of PMI
Pointwise Mutual Information (PMI) is a foundational metric for quantifying the statistical association between two discrete events, such as the co-occurrence of words. It measures how much more likely two items are to appear together than if they were independent.
Quantifying Statistical Association
PMI measures the deviation from statistical independence between two events. It calculates the log ratio between the observed joint probability and the expected probability if the events were independent. A high positive PMI indicates a strong association, a value near zero suggests independence, and a negative value implies the events tend to avoid each other.
The Core Formula
The calculation is defined as: PMI(x; y) = log₂ [P(x, y) / (P(x) * P(y))]
- P(x, y): The joint probability of events
xandyoccurring together. - P(x) * P(y): The product of their individual probabilities, representing the expected co-occurrence if they were independent.
- log₂: The binary logarithm, measuring the result in bits of information.
Role in Topic Coherence
PMI is the fundamental building block for evaluating topic models. It quantifies the semantic coherence of a topic by measuring the association between its top-ranked words.
- UCI Coherence: Uses PMI based on word co-occurrence in a sliding window over an external corpus like Wikipedia.
- UMass Coherence: A variant that uses document co-occurrence counts within the original corpus, avoiding the need for an external reference.
Handling the Zero-Frequency Problem
A critical limitation of raw PMI is its behavior with unobserved events. If two words never co-occur, their joint probability P(x, y) is zero, causing the PMI score to tend toward negative infinity. This makes raw PMI unreliable for ranking rare or unseen word pairs.
Normalized PMI (NPMI)
To correct for the zero-frequency issue and bound the score, Normalized Pointwise Mutual Information (NPMI) is widely used. It is calculated as NPMI(x; y) = PMI(x; y) / -log₂[P(x, y)]. This normalizes the score to a fixed range of [-1, +1], where -1 means no co-occurrence, 0 means independence, and +1 means perfect co-occurrence. NPMI is the standard metric for the C_V coherence measure.
PMI Matrix and Word Embeddings
A PMI matrix is constructed by calculating the PMI score for every word-context pair in a corpus. Early neural word embedding techniques, like GloVe, were theoretically linked to factorizing a shifted PMI matrix. This demonstrates that PMI captures the same distributional semantics that modern dense vectors encode.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about Pointwise Mutual Information and its role in evaluating topic models.
Pointwise Mutual Information (PMI) is an information-theoretic measure that quantifies the association between two specific events—in NLP, typically two words—by comparing their observed joint probability to their expected joint probability if they were statistically independent. The core formula is PMI(x; y) = log₂(p(x, y) / (p(x) * p(y))). A positive PMI score indicates that the words co-occur more frequently than chance would predict, suggesting a genuine semantic or syntactic association. A score near zero implies independence, while a negative score indicates the words tend to repel each other. Unlike simple co-occurrence counts, PMI corrects for the baseline frequency of individual words, preventing high-frequency but uninformative pairs (like "the" and "and") from dominating association rankings. The log₂ transformation maps the ratio to an intuitive scale where each unit of increase represents a doubling of the association strength over chance.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Pointwise Mutual Information (PMI) is a cornerstone metric for evaluating topic interpretability. These related concepts form the mathematical and methodological ecosystem around PMI in topic modeling.
Topic Coherence
The primary evaluation metric that quantifies semantic interpretability of discovered topics. PMI serves as the foundational building block for coherence measures like C_V coherence and UMass coherence. Topic coherence measures the degree of semantic similarity between a topic's top-N words by calculating their co-occurrence statistics in reference corpora.
- Intrinsic measures: Use the original corpus (e.g., UMass)
- Extrinsic measures: Use external corpora like Wikipedia (e.g., C_V, NPMI)
- Higher coherence scores correlate strongly with human interpretability judgments
C_V Coherence
A state-of-the-art coherence metric that combines normalized PMI with cosine similarity over word context vectors. It segments top-N words into pairs, computes confirmation measures using indirect cosine similarity, and averages them. C_V consistently achieves the highest correlation with human topic interpretability ratings.
- Uses a sliding window to build context vectors for each word
- Computes cosine similarity between context vectors of word pairs
- Applies NPMI as the confirmation measure within the cosine framework
Normalized PMI (NPMI)
A variant of PMI that constrains values to the range [-1, +1] by dividing raw PMI by the negative log of joint probability. NPMI corrects PMI's bias toward rare words and enables meaningful comparisons across different word pairs.
- -1: Words never co-occur (perfect negative association)
- 0: Words co-occur as expected by chance (independence)
- +1: Words always co-occur (perfect positive association)
- Preferred over raw PMI in modern coherence calculations
Topic Intrusion
A human-in-the-loop evaluation method that directly validates topic interpretability. Annotators are shown a topic's top-N words plus one randomly injected intruder word from another topic. The ease with which humans detect the outlier measures the topic's semantic coherence.
- Topic Intrusion Score: Percentage of correct intruder identifications
- Complements automated metrics like PMI-based coherence
- Gold standard for validating that automated metrics align with human judgment
Latent Dirichlet Allocation (LDA)
The generative probabilistic model where PMI-based coherence is most commonly applied. LDA represents documents as random mixtures over latent topics, with each topic characterized by a Dirichlet distribution over words. PMI evaluates the quality of these learned word distributions.
- Alpha: Controls document-topic sparsity
- Beta: Controls topic-word sparsity
- PMI coherence helps select the optimal number of topics (K) by measuring interpretability across different K values
UMass Coherence
An intrinsic coherence measure that calculates PMI using document co-occurrence counts from the original training corpus rather than an external reference corpus. It defines co-occurrence as two words appearing together in the same document.
- Computationally efficient: no external corpus needed
- Uses smoothed PMI with a small epsilon to handle zero counts
- Often lower correlation with human judgment compared to extrinsic measures like C_V
- Formula: sum over word pairs of log(P(wi,wj)+epsilon / P(wj))

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us