Multimodal Graph Learning for Generative Tasks

Minji Yoon, Jing Yu Koh, Bryan Hooi, Russ Salakhutdinov · DOI

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities in text generation, but their integration with multimodal data often relies on simplistic "1-to-1" assumptions, such as a single image paired with a single caption. In real-world scenarios, data is often structured as complex graphs with "many-to-many" relationships. Researchers from CMU and NUS have introduced Multimodal Graph Learning (MMGL), a framework designed to handle these complexities by representing multimodal data as a graph and integrating it with LLMs to generate contextually rich text.

The Challenge of Complex Multimodal Structures

Existing multimodal models struggle with the inherent complexity of structured data, such as Wikipedia pages. A typical page contains a hierarchical structure of sections, multiple text blocks, and various images scattered throughout.

Multimodal graph structure of a Wikipedia page.

The authors identify three primary hurdles in processing such data:

  1. Scalability: Efficiently feeding numerous neighboring images and text blocks into a model without exceeding memory limits.
  2. Structure: Effectively communicating the relational map (e.g., which image belongs to which section) to the model.
  3. Efficiency: Adapting massive pre-trained LLMs to utilize graph data without the prohibitive cost of full re-training.

The MMGL Framework

The proposed MMGL framework treats multimodal entities as nodes within a graph structure. The architecture is defined by three critical design choices:

  • Neighbor Encoding: The researchers evaluated three methods for presenting neighboring context to the LLM. SA-Text+Embeddings (SA-TE) maintains neighbor text as raw strings, while SA-Embeddings (SA-E) converts all modalities into fixed-size embeddings. Cross-Attention (CA-E) utilizes specialized layers to integrate neighbor embeddings, similar to the Flamingo architecture.
  • Graph Structure Encoding: To preserve the "map" of the data, the framework employs Graph Neural Networks (GNNs) and Laplacian Position Encodings (LPE). These methods embed structural relationships directly into the data representations.
  • Parameter-Efficient Fine-Tuning (PEFT): To maintain efficiency, the framework uses techniques like LoRA and Prefix Tuning, adapting the LLM using only a small fraction of its original parameters.
Overview of the MMGL architecture and encoding options.

Experimental Evaluation

The framework was tested on the WikiWeb2M dataset, which preserves the full hierarchical and multimodal structure of Wikipedia. The primary task was section summarization—generating a one-sentence summary of a specific section based on its broader multimodal context.

Key Results and Insights

  • Contextual Advantage: Incorporating page-level context (neighboring sections and images) significantly improved generation quality, raising the CIDEr score from a baseline of 79.68 to 96.62.
  • Structural Importance: Utilizing GNN-based structure encoding provided a 2-point CIDEr score improvement over simple sequential ordering, confirming that the data's "shape" is vital for the LLM's understanding.
  • Efficiency vs. Quality: While raw text encoding (SA-TE) yielded the best performance, it is computationally expensive. Embedding-based approaches (SA-E) offer better scalability at the cost of some information loss.
  • Robustness: The models demonstrated resilience to "missing modalities," a common occurrence in real-world data where not every section contains an image.

Conclusion

MMGL represents a significant step toward more sophisticated multimodal AI. By moving beyond simple pairs to complex graph structures, the framework enables LLMs to generate text that is deeply informed by its surrounding context. Future research will focus on improving the "mappers" that translate text into embeddings to minimize information loss and scaling the framework to handle even larger, more dynamic graph structures.

Summary updated

BibTeX
@misc{yoon2023multimodal,
  author = {Minji Yoon and Jing Yu Koh and Bryan Hooi and Russ Salakhutdinov},
  title = {{Multimodal Graph Learning for Generative Tasks}},
  year = {2023},
  eprint = {2310.07478},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.07478},
}
Figure