Multimodal NMF Topic Model

Machine Learning
Introduced by
Lee & Seung (NMF); multimodal extensions by various authors (~2010s)
Year
2010s
Type
Multimodal topic model (NMF-based)
Family
Deep learning / NLP / CV

What does it do?

Multimodal NMF Topic Model extends Non-negative Matrix Factorization to discover latent topics across several data modalities, such as text and images.

It does this by combining a shared non-negative factor matrix with a separate coefficient matrix for each modality. The aim is topics that describe patterns in every modality at once.

The intuition behind the method

Standard topic models like LDA operate on text alone. But real-world documents often pair text with images, audio, or sensor readings. Multimodal NMF addresses this by factorizing each modality's data matrix while tying them together through shared document-topic weights. Because NMF constrains all factors to be non-negative, the discovered topics are parts-based and additive, making them easier to inspect than the mixed positive-and-negative loadings of SVD or PCA. The aim is a set of topics that can be checked in every modality.

History

Non-negative Matrix Factorization was introduced as a parts-based decomposition by Lee and Seung (1999, 2001) in Nature and NIPS, and is noted for its interpretability advantages over PCA and VQ. Multimodal extensions of NMF have been proposed by several groups; no single originator of the joint objective described here is established. Graph-regularized NMF (Cai et al., 2011) is a single-view extension with a graph-based penalty and is related work on regularized NMF, not a multimodal study.

When to use it

Choose this method when each document has text plus at least one other modality, such as images or numeric sensor features. It fits when the goal is interpretable, parts-based topics that describe both channels, and when the features are non-negative or can be made so. Typical datasets include image-caption pairs, social media posts with photos, scientific papers with figures, and multi-sensor records. Avoid it when the modalities have no meaningful correspondence, because the shared document-topic weights W assume that each document's modalities express the same topics. Avoid it also when you need probabilistic topic proportions or uncertainty over assignments, where probabilistic multimodal topic models are the more natural choice. If only text is available, a unimodal topic model is the simpler option.

Limitations and considerations

  • The objective is non-convex in W, H_1 and H_2 jointly, so multiplicative updates can stop at different local minima. Repeated restarts are needed, and results should be compared across them.
  • The number of topics K is not set by the model. Choosing it requires a grid search or domain judgement, and reconstruction error alone does not identify it.
  • The method assumes non-negative inputs. Signed features, such as raw embedding vectors, must be transformed before factorization.
  • The coefficient matrices are unnormalized non-negative scores rather than probabilities, so uncertainty over topic proportions is hard to quantify.
  • Each update involves matrix products whose cost grows with the number of documents and the feature dimension. Very large vocabularies or high-dimensional image features may require dimensionality reduction first.

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

Strengths

  • Non-negativity forces every factor entry to be zero or positive, so each topic combines its features additively, without subtraction, and can be read as a set of positively weighted features.
  • The shared document-topic matrix W is the mechanism that links the modalities: each document's topic weights must reconstruct its content in every modality, and each topic can be inspected in each channel through its row of every H_i.
  • The updates use standard matrix operations, and the multiplicative rules keep entries non-negative without a separate projection step. No probabilistic inference engine is required.
  • Additional terms, such as graph or sparsity penalties, can be added to the objective, although the objective given on this page includes none.

Applications

  • Joint topic discovery in image-caption or article-figure datasets.
  • Cross-modal document retrieval, such as querying by text to retrieve images that share a topic.
  • Social media analysis that combines post text with attached photos.
  • Biomedical literature mining that jointly processes abstracts and microscopy image features.
  • Recommendation systems that align user review text with product image features.

How it works

How it works

1

Each modality is represented as a non-negative matrix with one row per document. The objective requires every modality to cover the same documents, so all modality matrices share the same number of rows, n. Each matrix X_i is n × d_i, where d_i is the number of features in modality i; the feature counts may differ between modalities. For text this is a document-by-term TF-IDF matrix, the transpose of the usual term-document layout. For images it might be bag-of-visual-words counts or CNN feature activations.

2

The objective sums the squared Frobenius reconstruction errors over the modalities. It uses one shared document-topic matrix W (n × K) and one topic-feature matrix H_i (K × d_i) per modality, with all factors constrained to be non-negative. As written, the objective gives every modality equal weight and has no regularization terms. Extra terms, such as graph or sparsity penalties, are sometimes added in NMF variants.

Formula
\min_{W,H_1,H_2} \|X_1 - WH_1\|_F^2 + \|X_2 - WH_2\|_F^2 \quad \text{s.t.} \; W, H_1, H_2 \geq 0
3

Lee and Seung's multiplicative update rules are applied iteratively to W, H_1 and H_2. Each update multiplies the current entry by a ratio of two non-negative gradient terms, which keeps entries non-negative without a separate projection step.

4

After convergence, row k of each H_i gives topic k's weights over the features of modality i. Each topic is therefore read from its own row in every H_i, and its highest-weighted features are inspected in each modality to label and check it. W holds each document's non-negative weights on the K topics, and these weights are shared across modalities.

5

For a new document, the fitted H_i are held fixed and the document's row of W is estimated by solving a non-negative least-squares problem against whichever modalities it has. If a modality is missing for the new document, its error term is dropped, so the row of W is fitted from the observed modalities alone. The resulting weights indicate how strongly each topic is present in that document.

Common pitfalls

  • Using a single random initialization and accepting the first result without checking stability across restarts.
  • Ignoring modality imbalance. The objective adds the modality errors without weights, so a modality with larger-magnitude entries or more features can dominate the shared W. Check the reconstruction error for each modality separately.
  • Applying NMF directly to raw signed embeddings, such as Word2Vec vectors, without first making the inputs non-negative.
  • Selecting K by reconstruction error alone. Reconstruction error tends to fall as K increases, so it cannot pick K by itself. Combine it with held-out checks and inspection of the topics.
  • Treating the NMF loadings as probabilities when they are unnormalized non-negative scores.

Frequently asked questions

How is this different from standard (unimodal) NMF?

Standard NMF factorizes a single data matrix. Multimodal NMF factorizes two or more modality matrices simultaneously while sharing a common document-topic matrix W, so the discovered topics must jointly explain patterns across all modalities rather than just one.

How do I choose the number of topics K?

Common strategies include evaluating reconstruction error on a held-out split as K increases (looking for an elbow), computing coherence scores (e.g., NPMI) for the top words per topic, and qualitative inspection of a sample of topics for interpretability. There is no universal automatic criterion.

My image features contain negative values. Can I still use this model?

No, without modification. NMF requires non-negative inputs. You can shift-and-scale the features to enforce non-negativity, use only non-negative feature types (e.g., histogram-of-gradients, bag-of-visual-words), or switch to a semi-NMF variant that allows mixed-sign factor matrices.

Is Multimodal NMF a deep learning method?

No. It is a matrix factorization method, not a neural network. Deep CNN features extracted from images are often used as the visual input matrix, so the model can sit alongside end-to-end neural pipelines as a lightweight, interpretable component.

What if one modality has missing data for some documents?

Missing modality entries can be handled by masking the corresponding terms in the objective function (weighted NMF), using imputation before factorization, or switching to a probabilistic variant that marginalizes over missing observations.

Related methods

Sources

  1. Cai, D., He, X., Han, J., & Huang, T. S. (2011). Graph regularized NMF. IEEE Transactions on Pattern Analysis and Machine Intelligence, 33(8), 1548–1560.

    Open publication reference
  2. Non-negative matrix factorization. Wikipedia.

    Open publication reference