Multimodal LSTM

Machine Learning
Introduced by
Rajagopalan et al. and various concurrent works (2016–2018)
Year
2016
Type
Recurrent neural network architecture
Family
Deep learning / NLP / CV

What does it do?

Multimodal LSTM extends the Long Short-Term Memory network so that it can process sequential data from several modalities, such as text, audio, and video, within one recurrent architecture.

Representations from the modalities are combined into a fused input that the LSTM reads over time, so the model can capture temporal dependencies within and across modalities. It has been applied mainly to tasks such as sentiment analysis, video captioning, and affective computing.

The intuition behind the method

A standard LSTM reads one stream of inputs and keeps information that is useful across time steps. A multimodal version reads several streams at once, for example words together with vocal tone or video frames, all unfolding over the same period. The central assumption is that the modalities carry complementary signals, so combining them at each step can reveal relationships that a single stream does not show. The exact fusion strategy matters: the mechanics formula on this page describes a single fused input vector, and gated or attention-based weighting of modalities is an extension of that basic idea rather than something the formula itself defines.

History

The LSTM architecture was introduced by Hochreiter and Schmidhuber in 1997 and forms the recurrent core of the multimodal model. The multimodal extension is attributed to Rajagopalan et al. (2016), and several concurrent works explored similar multimodal recurrent designs. Transformer-based multimodal models have since become another widely used approach.

When to use it

Choose Multimodal LSTM when the data are sequences recorded in two or more modalities, the order of time steps matters, and a single modality is judged insufficient for the task. Examples include spoken sentiment analysis combining transcripts with acoustic features, or emotion recognition from video frames and speech. The modalities should be temporally aligned, at least if early fusion is used. Avoid the model when the modalities cannot be aligned in time, when the labelled dataset is small relative to the model's parameter count, or when a pretrained Transformer-based multimodal model is available and fits the available compute.

Limitations and considerations

  • Parameter count grows with the number of modalities and the hidden size, so the model needs a substantial amount of labelled data to avoid overfitting.
  • Early fusion requires the modality streams to be aligned to the same time steps during preprocessing; misalignment degrades the fused input directly.
  • Training by backpropagation through time becomes costly on long sequences, because gradients must be propagated across every time step.
  • Attributing a prediction to a particular modality or time step is difficult without additional analysis methods.

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

Strengths

  • Models temporal dynamics and cross-modal interactions within a single end-to-end trainable network.
  • Fusion design can be adapted to how well the modalities are synchronised; the formula on this page covers early fusion only, and late or hybrid designs need a different formulation.
  • The LSTM gates learn which parts of the fused signal to retain or discard over time, without manual selection of time-window features.
  • More modalities can be added by adding further encoder branches before the fusion step.
  • Can be compared with unimodal LSTM baselines trained on the same task, which shows whether fusion adds value.

Applications

  • Multimodal sentiment analysis combining text, audio, and video; CMU-MOSI and CMU-MOSEI are commonly used benchmarks for this task.
  • Emotion recognition from speech using acoustic features and transcripts.
  • Video captioning and dense video description leveraging visual frames and audio.
  • Affective computing in human-computer interaction systems.
  • Medical signal analysis combining clinical notes with time-series sensor data.
  • Social media analysis pairing textual posts with accompanying images or audio.

How it works

How it works

1

Each input modality is first converted into a fixed-size feature vector by a modality-specific encoder. Text may be represented by word embeddings or a pretrained language model, while audio, image, video, or sensor streams require their own encoders. The encoders are chosen per modality, and their outputs must be brought to a shared dimensionality before they are combined.

2

The modality vectors are combined at each time step into a single fused input, the x_t^fused term in the mechanics formula. Concatenation is the simplest operator for this, but the formula on this page does not specify the operator. Late fusion, which runs a separate recurrent network per modality and combines their outputs, and gated or attention-based weighting of modalities are different designs and are not represented by this formula.

3

The fused vector at each time step is passed to the LSTM together with the previous hidden state. The input, forget, and output gates control what the cell state keeps, updates, and exposes, which allows information to persist across the sequence.

Formula
h_t = \text{LSTM}(x_t^{\text{fused}}, h_{t-1})
4

The final hidden state, or a summary of the hidden states, feeds a task-specific output layer, such as a classifier for sentiment or emotion categories, a regression layer, or a decoder for captioning. Training uses backpropagation through time, and gradient clipping is commonly applied to limit unstable updates on long sequences.

Common pitfalls

  • Feeding modality streams that were not synchronised, without checking the alignment before fusion.
  • Using one learning rate for all modality encoders when they differ in scale or in whether they are pretrained.
  • Omitting gradient clipping, which can cause exploding gradients on long sequences.
  • Reporting only accuracy on imbalanced sentiment or emotion datasets, where macro-F1 or per-class results are more informative.
  • Not comparing against the strongest unimodal LSTM baseline, which is needed to show that the fusion adds value.

Frequently asked questions

What is the difference between early, late, and hybrid fusion in Multimodal LSTM?

Early fusion concatenates the modality vectors before the LSTM, so one network sees all modalities at each step, but the streams must be aligned in time. Late fusion runs a separate LSTM for each modality and combines their outputs at decision time, which is more tolerant of asynchronous streams. Hybrid fusion introduces gates or attention inside the recurrent processing to weight modalities at each step; this is an extension beyond the basic formula on this page.

When should I use Multimodal LSTM instead of a Transformer-based multimodal model?

Multimodal LSTM is a reasonable choice when compute is limited, when sequences are not very long, or when a simpler recurrent baseline is needed for comparison. Transformer-based models are often the alternative for large datasets and long inputs, but the relative performance depends on the task and data, and should be checked empirically.

How do I handle missing modalities at inference time?

Common approaches are to zero-mask the missing modality's feature vector, to train with random modality dropout so the network can operate with partial input, or to use a separate imputation step. Reporting performance with modalities removed is a sensible way to show how the model behaves under missing input.

How many labelled samples are needed?

Multimodal LSTMs have many parameters, so small labelled datasets increase the risk of overfitting. If data are limited, one option is to reuse pretrained unimodal encoders and train mainly the fusion and recurrent layers, and to check results with held-out data.

Is temporal alignment of modalities strictly required?

For early fusion, yes: the modality vectors combined at each step must correspond to the same time point. Late fusion is more flexible because each modality's LSTM can run on its own timeline. Misaligned early fusion is likely to degrade performance, so alignment should be checked during preprocessing.

Related methods

Sources

  1. Rajagopalan, S., Tran, L., Rozgic, V., Narayanan, S., Kumar, A., & Ramakrishna, S. (2016). Extending Long Short-Term Memory for Multi-View Structured Learning. In Proceedings of ECCV 2016. Springer.

    Open publication reference
  2. Hochreiter, S., & Schmidhuber, J. (1997). Long Short-Term Memory. Neural Computation, 9(8), 1735–1780.

    Open DOI reference