Multimodal LDA Topic Model

Machine Learning
Introduced by
Blei, D. M. & Jordan, M. I.
Year
2003
Type
Probabilistic generative topic model (multimodal)
Family
Deep learning / NLP / CV

What does it do?

Multimodal LDA extends Latent Dirichlet Allocation to model paired observations from several modalities, most commonly text and images, within one probabilistic framework.

Each document or instance is represented as a mixture of latent topics shared across modalities, so the discovered themes link visual and linguistic content. The idea was developed for annotated image collections, where captions describe images, and Blei and Jordan's 2003 work on this problem culminated in correspondence LDA.

The intuition behind the method

Standard LDA discovers hidden themes in text by modelling each document as a mixture of word distributions. Multimodal LDA applies the same idea to paired data: a document or image-caption pair is assumed to draw on a shared set of latent topics, and each topic governs both the words that appear and the visual features observed. For example, a topic about beaches would put weight on words such as 'sea' and 'sand' and on visual features associated with water and shoreline. Because the same topics explain both views, the fitted model defines a joint semantic space in which items from one modality can be compared with items from the other.

History

The multimodal extension of LDA is associated with Blei and Jordan's 2003 paper 'Modeling Annotated Data', presented at the SIGIR conference. That paper compared three hierarchical probabilistic mixture models, culminating in correspondence LDA, which models the joint distribution of image content and caption text and the conditional distribution of the annotation given the image. It was evaluated on the Corel database of images and captions using held-out likelihood, automatic annotation and text-based image retrieval. Later work on image annotation and multimedia retrieval built on this framework, and neural approaches have since become common for many of these tasks.

When to use it

Use Multimodal LDA when you have paired or co-occurring observations from two or more modalities, such as image-caption datasets, annotated photo collections, scientific papers with figures, or posts that combine text and images, and your goal is to discover shared latent themes or to support cross-modal retrieval and annotation. It suits projects where interpretable topics are the main aim rather than the highest possible classification or retrieval accuracy. Do not use it when the modalities are not paired or aligned at the document or segment level, when you need spatial understanding of pixels rather than bag-of-visual-words representations, or when the required output is a discriminative label rather than topic structure. Fitting cost grows with corpus size, and online or stochastic variational variants may be needed for large corpora.

Limitations and considerations

  • Bag-of-words and bag-of-visual-words representations discard word order and the spatial layout of image regions.
  • The number of topics K must be fixed in advance, and the resulting topics depend on that choice.
  • Visual features are extracted beforehand by a separate procedure; the model does not learn them end-to-end, so its results depend on that front end.
  • The simplified shared-topic variant treats the modalities as conditionally independent given the topic, so dependencies between modalities beyond the shared topic are not modelled directly. The correspondence LDA of Blei and Jordan (2003) instead models the conditional distribution of the annotation given the image, which this variant does not capture.
  • Iterative variational fitting becomes more costly as the corpus grows, which limits scale.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Models text and non-text observations within one generative framework, so the topics are learned from both views together.
  • Each topic is summarised by top words and top visual features, which lets a researcher inspect what the model has found.
  • Supports cross-modal retrieval and annotation: a query in one modality can be matched to items in the other, as in the original image-caption experiments on the Corel database.
  • Being a probabilistic model, it can be evaluated by held-out likelihood, as in the original experiments, and its fitting can be monitored through the ELBO.
  • Because the topics link the modalities, one modality can be predicted from the other, for example by annotating an image from its visual features.

Applications

  • Cross-modal image annotation and retrieval from paired text-image datasets.
  • Thematic analysis of scientific publications with associated figures or charts.
  • Social media analysis where posts combine text captions with photographs.
  • Multimedia document summarisation using aligned topics from audio, text, and video frames.
  • Digital humanities analysis of illustrated books, manuscripts, or museum collections.

How it works

How it works

1

Each instance links one or more text representations (words, tokens, or a bag-of-words) with one or more non-text modalities, such as image feature vectors, visual words derived from SIFT or CNN features, audio descriptors, or structured attributes. The model assumes the pairing is meaningful at the document or segment level, so misaligned pairs should be corrected before fitting.

2

Each document receives a topic-proportion vector theta_d drawn from a Dirichlet prior with parameter alpha over K topics. In this formulation, theta_d is the common source for all modalities of that document, so every topic has to account for the text and the non-text observations together.

Formula
\theta_d \sim \text{Dir}(\alpha)
3

In the simplified shared-topic variant described here, for each text token a topic is drawn from theta_d and a word is then drawn from that topic's word distribution. For each non-text observation, a topic is drawn from the same theta_d and a feature is drawn from that topic's distribution over the non-text modality. The per-topic textual and visual distributions are learned jointly, which produces topics that describe both views. The final model in Blei and Jordan (2003) is correspondence LDA, which instead models the conditional distribution of the annotation given the primary modality (the image), so caption words depend on image content. Implementations that target that model should follow the correspondence formulation rather than this simplified variant.

4

Exact posterior inference over the latent topic assignments is intractable, so the model is typically fitted with variational EM. The E-step updates approximate posterior parameters for each document's topic assignments, and the M-step re-estimates the topic-word and topic-feature distributions. Convergence is usually checked by monitoring the evidence lower bound (ELBO).

5

After fitting, each topic is summarised by its top words and its most representative visual features or image regions. Topics can be assessed with coherence scores, with cross-modal retrieval accuracy (a query in one modality retrieves relevant items in the other), or with human judgement of whether the theme is consistent.

Common pitfalls

  • Pairing modalities incorrectly at the document or segment level produces topics that mix unrelated text and visual content.
  • Feeding raw pixel arrays instead of a quantised visual vocabulary gives the model features that do not fit its bag-of-features assumption; pre-extracted visual words or descriptors are the usual choice.
  • Choosing K without evaluation. Compare coherence scores and held-out cross-modal retrieval across a range of K values.
  • Skipping text preprocessing (tokenisation, stopword removal) or normalisation of the visual features distorts the word and feature distributions the model learns.
  • Treating learned topics as ground-truth categories without human review or coherence measures overstates what the model has shown.

Frequently asked questions

How is Multimodal LDA different from standard LDA?

Standard LDA models a single modality, usually text represented as a bag-of-words. Multimodal LDA places the topic proportions of each document over two or more modalities, so the inferred topics must explain both the words and the non-text features.

What visual features should I use?

Common choices have included SIFT-based visual words and Fisher vectors. For recent image collections, CNN activation vectors (for example from ResNet or VGG) quantised into a visual vocabulary are a practical option. Raw pixels are generally avoided because they are high-dimensional and noisy for a bag-of-features representation.

How do I choose the number of topics K?

Evaluate several values of K (e.g., 10, 20, 50, 100) using topic coherence scores on the text side and cross-modal retrieval accuracy on held-out pairs. The best K balances interpretable topics with good retrieval performance. There is no universally correct value.

Can Multimodal LDA be used for classification?

It is primarily a generative and retrieval model, not a discriminative classifier. Topic proportions can serve as features for a downstream classifier such as an SVM or logistic regression, but for end-to-end classification, neural multimodal models such as CLIP-based classifiers are usually the more direct choice.

Is Multimodal LDA still relevant given large vision-language models?

Yes, where interpretable topics, small or sparsely annotated datasets, or explicit probabilistic modelling matter. It produces human-readable topic descriptors without the large computational resources that neural vision-language models typically require. For large-scale retrieval or generation, neural vision-language models are generally the stronger option.

Related methods

Sources

  1. Blei, D. M. & Jordan, M. I. (2003). Modeling annotated data. Proceedings of the 26th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, 127–134.

    Open DOI reference
  2. Barnard, K., Duygulu, P., Forsyth, D., de Freitas, N., Blei, D. M. & Jordan, M. I. (2003). Matching words and pictures. Journal of Machine Learning Research, 3, 1107–1135.

    Open publication reference