The Correlated Topic Model (CTM) is a hierarchical Bayesian model that represents documents as mixtures of latent topics, where the topic proportions are drawn from a logistic normal distribution rather than a Dirichlet distribution. This substitution allows CTM to capture the natural co-occurrence patterns between topics—for instance, a document about genetics is likely to also discuss bioinformatics—via a covariance matrix over the topic space.
Glossary
Correlated Topic Model (CTM)

What is Correlated Topic Model (CTM)?
The Correlated Topic Model (CTM) is a probabilistic graphical model that extends Latent Dirichlet Allocation by replacing the Dirichlet prior with a logistic normal distribution to explicitly model correlations between latent topics.
Unlike Latent Dirichlet Allocation (LDA), which assumes near-independence of topics through its Dirichlet prior, CTM models the pairwise correlations between topics explicitly. Inference is typically performed using variational inference due to the non-conjugacy of the logistic normal prior, making it computationally more intensive but yielding richer representations of thematic structure in corpora where topics are inherently correlated.
Key Features of CTM
The Correlated Topic Model (CTM) extends LDA by replacing the Dirichlet prior with a logistic normal distribution, enabling the explicit modeling of correlations between topic proportions within a document corpus.
Logistic Normal Prior
CTM replaces the Dirichlet prior of LDA with a logistic normal distribution over the topic simplex. This is achieved by drawing a multivariate Gaussian vector and mapping it to the simplex via a softmax transformation. This prior naturally captures the intuition that the presence of one topic (e.g., 'genetics') increases the probability of a related topic (e.g., 'disease'), a correlation structure the Dirichlet cannot model due to its near-independent neutrality property.
Covariance Matrix Estimation
The core innovation of CTM is the estimation of a topic covariance matrix from the corpus. This matrix quantifies the pairwise correlations between all latent topics.
- Positive covariance: Topics tend to co-occur in documents.
- Negative covariance: Topics tend to be mutually exclusive. This explicit correlation graph provides a richer semantic map of the domain than LDA's independent topics.
Non-Conjugacy and Inference
Unlike LDA, the logistic normal prior is not conjugate to the multinomial likelihood, making exact Bayesian inference intractable. CTM relies on variational inference with a novel bound on the logistic normal integral. The inference algorithm uses a Taylor approximation or a more accurate Laplace approximation within the variational EM loop to optimize the model parameters, making it computationally more intensive than standard LDA Gibbs sampling.
Topic Graph Visualization
The estimated covariance matrix allows for the construction of a topic correlation graph, where nodes represent topics and weighted edges represent correlation strength. This graph can be visualized using force-directed layouts or circular dendrograms, providing an intuitive map of the thematic landscape. Analysts can identify clusters of related topics and bridge topics that connect different semantic domains, offering deeper insight than flat topic lists.
Predictive Performance Gains
By modeling topic correlations, CTM often achieves a lower perplexity score on held-out documents compared to LDA, especially in corpora with highly correlated themes. The model's ability to leverage co-occurrence patterns means it can better predict the presence of unseen words. However, this improved predictive power comes at the cost of increased computational complexity and a more challenging optimization landscape.
CTM vs. LDA: Key Differences
A technical comparison of the Correlated Topic Model against standard Latent Dirichlet Allocation across statistical assumptions, inference methods, and performance characteristics.
| Feature | LDA | CTM | Structural Topic Model (STM) |
|---|---|---|---|
Topic Prior Distribution | Dirichlet | Logistic Normal | Logistic Normal |
Models Topic Correlation | |||
Conjugate Prior | |||
Inference Method | Variational Inference / Gibbs Sampling | Variational EM with Laplace Approximation | Variational EM |
Document-Level Covariates | |||
Computational Complexity | O(K * V) | O(K^2 * V) | O(K^2 * V + C) |
Interpretability of Priors | High (Alpha/Beta) | Moderate (Covariance Matrix) | Moderate (Covariance + Covariates) |
Risk of Overfitting | Low | Moderate | Moderate to High |
Frequently Asked Questions
Explore the mechanics, advantages, and practical considerations of the Correlated Topic Model (CTM), an advanced probabilistic framework that explicitly captures relationships between latent themes in text corpora.
A Correlated Topic Model (CTM) is a hierarchical probabilistic model that extends Latent Dirichlet Allocation (LDA) by explicitly modeling correlations between topic proportions within a document corpus. Unlike LDA, which assumes topics are nearly independent due to its single Dirichlet prior, CTM replaces this with a logistic normal distribution over the topic simplex. This is achieved by drawing a latent multivariate Gaussian vector for each document, which is then mapped to topic proportions via a softmax transformation. The covariance matrix of this Gaussian distribution captures the rich correlational structure—for example, a document about 'genetics' is likely to also discuss 'healthcare' rather than 'astrophysics'. Inference is typically performed using variational expectation-maximization (EM) with Laplace approximations or non-conjugate variational inference, as the non-conjugacy introduced by the logistic normal prevents the use of simple collapsed Gibbs sampling.
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
Key concepts and models that surround the Correlated Topic Model, from its foundational predecessor to modern evaluation metrics.
Latent Dirichlet Allocation (LDA)
The foundational generative probabilistic model that CTM extends. LDA represents documents as random mixtures over latent topics but assumes topic independence via a Dirichlet prior. CTM replaces this with a logistic normal distribution to explicitly model correlations.
Logistic Normal Distribution
The core mathematical innovation in CTM. Unlike the Dirichlet, this distribution captures covariance structure between topics. It transforms a multivariate Gaussian through a softmax, allowing the model to learn that 'genetics' and 'healthcare' co-occur more often than 'genetics' and 'sports'.
Variational Inference
The approximate inference method used to fit CTMs. Because the logistic normal is non-conjugate, exact inference is intractable. Variational inference finds the closest tractable distribution by minimizing KL divergence, using Jensen's inequality to bound the log probability.
Topic Coherence
A critical evaluation metric measuring semantic interpretability. Coherence quantifies the degree of co-occurrence between a topic's top-ranked words in reference corpora. Key variants include:
- C_V Coherence: Combines normalized PMI with cosine similarity
- UCI Coherence: Based on pointwise mutual information
- UMass Coherence: Uses document co-occurrence counts
Structural Topic Model (STM)
A framework that incorporates document-level metadata as covariates. While CTM models topic correlations globally, STM allows metadata like publication date or author to influence topic prevalence and topical content, enabling richer causal analysis.
Dynamic Topic Model (DTM)
Captures topic evolution over time by chaining sequential models where topic-word distributions drift according to a state-space model. Unlike CTM's static correlation structure, DTM reveals how themes merge, split, or fade across sequential time slices.

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