Skip to content
AI.info

Research

Graph4MM: Weaving Multimodal Learning with Structural Information

Overview Research area: Multimodal machine learning, specifically structuring and fusing text and image data using graph topology with foundation models (LLMs/VLMs). Technical level: Advanced — the pa

arXiv
2510.16990
Published
2025-10-19
Authors
Xuying Ning, Dongqi Fu, Tianxin Wei, Wujiang Xu, Jingrui He

AI summary

Overview

Research area: Multimodal machine learning, specifically structuring and fusing text and image data using graph topology with foundation models (LLMs/VLMs).

Technical level: Advanced — the paper builds on attention mechanics, graph neural networks, and includes formal propositions involving Dirichlet energy and mutual information.

Scope: The paper proposes Graph4MM, a framework that uses graph structure as a guide for how multimodal data is selected and fused, rather than treating the graph as an additional input modality.

What This Paper Is About

Real-world multimodal data rarely comes as clean one-to-one image-caption pairs. Images and text in documents, webpages, or product catalogs relate to each other in many-to-many ways — through section hierarchies, co-references, co-purchases, and contextual dependencies. The paper's goal is to build a multimodal framework that (a) injects multi-hop graph structure into a pretrained foundation model's attention, and (b) fuses text and image information in a principled, query-based way. The authors argue that the prior state of the art, MMGL (Yoon et al., 2023), treats all distant graph neighbors equally and incorrectly treats the graph as a standalone modality alongside text and images.

Key Contributions

  1. A structure-guided paradigm for multimodal learning. Graph4MM integrates structural information from multi-hop neighbors into foundation models and fuses modality-specific representations, rather than concatenating neighbor data or encoding the graph as a separate modality.
  2. Hop-Diffused Attention. Multi-hop connectivity is injected into self-attention through causal masking over graph edges plus a diffusion mechanism with exponentially decaying hop weights. The authors prove it preserves valid attention properties and, per Proposition 3.1, retains higher Dirichlet energy than a k-layer GAT aggregating the same hops, mitigating over-smoothing. A lighter variant, Hop-Aware Attention, replaces diffusion with learnable per-hop embeddings, cutting complexity from O(|V_p| · d²) to O(|V_p| · d).
  3. MM-QFormer (Multi-Mapping QFormer). A two-layer querying transformer with learnable query tokens, shared self-attention (queries conditioned on text) and cross-attention onto visual embeddings, producing multimodal tokens for the downstream LLM.
  4. A theoretical and empirical revisiting of graphs in multimodal learning. Proposition 4.1 formalizes a mutual-information gap, I(z_G; X) ≪ I(z_X; X), between GCN-derived graph embeddings trained only on a small graph and large-scale pretrained text/image encoders, motivating the use of topology as guidance rather than a modality.

Main Findings

  • Overall performance: Hop-Diffused and Hop-Aware MM-QFormer consistently outperform pretrained VLMs, pretrained LLMs, and MMGL on both generative and discriminative tasks, with an average improvement of 1.77% on the generative task and 12.09% on the discriminative task as reported in the results discussion. The abstract states a 6.93% average improvement across textual and visual metrics.
  • Generative task (WikiWeb2M, OPT-125M backbone): Hop-Diffused MM-QFormer reaches BLEU-4 0.0800, ROUGE-L 0.4076, CIDEr 0.7831; Hop-Aware reaches 0.0801 / 0.4063 / 0.7736; the plain MM-QFormer (no structural modeling) reaches 0.0769 / 0.4044 / 0.7684. For comparison, the strongest MMGL setting reported (Subgraph's Text & Image) reaches 0.0778 / 0.4041 / 0.7712, and the MMGL variant that adds GNN embeddings (Subgraph's T & I + GNN) drops to 0.0633 / 0.3814 / 0.6326.
  • Generative task (LLaMA-1B backbone): Hop-Diffused reaches 0.1177 / 0.4713 / 1.1221 and Hop-Aware reaches 0.1186 / 0.4731 / 1.1262, versus MMGL's Subgraph's Text & Image at 0.1157 / 0.4685 / 1.1072 and its GNN variant at 0.1003 / 0.4487 / 0.9631.
  • Discriminative task (Ele-Fashion, zero-shot classification): With OPT-125M, all three Graph4MM variants reach 100.00% accuracy, recall, and precision, versus 99.85% / 83.25% / 83.33% for MMGL's Subgraph's Text & Image. With LLaMA-1B, Hop-Diffused reaches 100.00 / 100.00 / 100.00 and MM-QFormer alone 99.88 / 99.86 / 99.87, versus 98.07 / 84.55 / 85.50 for the strongest MMGL setting. Hop-Aware with LLaMA-1B reports 99.87 / 89.86 / 89.88.
  • Pretrained VLMs perform worst. BLIP and QwenVL baselines score 0.0000 BLEU-4 across reported generative settings and much lower classification accuracy, which the authors attribute to pretraining focused on captioning and simple QA, causing irrelevant image descriptions rather than answers.
  • Subgraph context helps, but GCN embeddings hurt. Adding subgraph text or images consistently improves over node-only inputs, yet adding learned GCN graph embeddings degrades results — the semantic-gap effect predicted by Proposition 4.1.
  • Ablation on structural priors: Removing graph adjacency heuristics from either modality lowers performance in all cases. Removing structure from images causes the severer drop (Hop-Diffused: 0.0800 / 0.4076 / 0.7831 → 0.0769 / 0.4044 / 0.7684), because text retains partial structural cues through explicit prompt hints such as "context from 1-hop neighbor," while images at different hops are otherwise treated as equally important. (In the Hop-Aware ablation row for removed text structure, the reported BLEU-4 value of 0.7943 appears inconsistent with the surrounding trend.)
  • Hybrid hop attention is competitive: Mixing Hop-Aware on text with Hop-Diffused on images gives the best reported OPT-125M generative numbers in that table (0.0822 / 0.4094 / 0.7947), suggesting modality-specific structural inductive biases are complementary.
  • Graph-as-modality attempts fail: Projecting GCN embeddings into global graph tokens or node tokens produced no meaningful gains over treating text and images alone (e.g., + Graph Tokens: 0.0796 / 0.4052 / 0.7736 versus 0.0788 / 0.4051 / 0.7790 without).

Methodology in Plain English

The researchers first build a multimodal graph where each node is a content item (a section, an image, a product) with optional text and image attributes, and edges encode real-world relations such as section-subsection hierarchy or co-purchase. From the target node, they extract a textual subgraph and a visual subgraph of nodes within a hop limit.

Text is encoded with a frozen pretrained language model and images with a frozen visual encoder, both projected into the LLM's token space. Instead of simply concatenating neighbors' content, the graph topology is turned into a causal attention mask: a node may only attend to nodes it is actually connected to. Multi-hop influence is then introduced by a diffusion step that sums powers of this masked attention matrix with geometrically decaying weights, truncating at a finite diffusion step K. This lets a node absorb information from distant nodes while down-weighting them, with a residual connection preserving its own features. A cheaper option simply adds a learnable embedding per hop distance to each node's representation.

The resulting structure-aware text and image embeddings feed MM-QFormer: learnable query tokens interact with text through shared self-attention (so queries become text-conditioned), then attend to visual embeddings through cross-attention, followed by a feed-forward network. The final query tokens become the multimodal tokens inserted directly after the matching node's text tokens in the LLM input sequence, preserving one-to-one node correspondence. The LLM itself is frozen and generates the answer for both generation (e.g., imputing a section's first sentence) and classification (matching a generated response against class descriptions by similarity).

Why This Matters

Impact on research. The paper challenges a common assumption in multimodal graph learning — that topology should be encoded as just another modality. Its Proposition 4.1 and supporting experiments indicate that GCN embeddings trained on small sparse graphs lack the expressiveness and cross-modal alignment of large-scale pretrained encoders, so structure is better used as an attention guide. The Dirichlet-energy result also connects hop diffusion to the over-smoothing literature, offering an alternative to stacking GNN layers.

Real-world applications:

  • Academic and technical document understanding: generating section summaries using page descriptions, neighboring sections, images, and captions.
  • E-commerce: zero-shot product/fashion classification and recommendation over co-purchase graphs, where products have text descriptions and images.
  • Webpage and enterprise content processing: summarizing or answering questions over pages whose sections, figures, and captions are interrelated.
  • Multimodal retrieval and question answering where entities co-reference each other across images and text beyond simple pairs.

Industry relevance. The approach is designed around frozen off-the-shelf vision and language models, so it targets teams that want to add relational context to existing foundation-model pipelines without full retraining. Because the discriminative experiments show large gains specifically in the zero-shot setting (for example, recall rising from 84.55% to 100.00% on Ele-Fashion with LLaMA-1B), the method is relevant to cold-start and long-tail catalog problems.

Future Directions

  • Scaling to larger backbones. Experiments use OPT-125M and LLaMA-1B as PLM backbones; whether the gains hold on larger foundation models is not reported.
  • Beyond text and images. The framework is defined for textual and visual attributes; extending the hop-diffusion idea to other modalities such as audio remains open.
  • Graph construction quality. Edges are assumed to come from predefined real-world relations (hierarchies, co-purchases, co-occurrence); how sensitive performance is to noisy or automatically induced edges is not addressed.
  • Resolving the observed anomalies and broadening tasks. The Hop-Aware ablation value that deviates from its trend, and the reported discrepancy between the 6.93% headline and the 1.77%/12.09% task-level figures, invite clarification; the paper also leaves broader evaluation across more generative and discriminative task families as future work.

Target Audience

Researchers and graduate students in multimodal learning, graph representation learning, and vision-language modeling, particularly those working on document understanding, retrieval-augmented generation, or graph-enhanced LLMs. Practitioners building zero-shot classification or summarization systems over structured multimodal data will find the architecture and ablation results directly applicable, though the theoretical propositions require comfort with attention math and graph spectral concepts.

Authors’ abstract

Real-world multimodal data usually exhibit complex structural relationships beyond traditional one-to-one mappings like image-caption pairs. Entities across modalities interact in intricate ways, with images and text forming diverse interconnections through contextual dependencies and co-references. Graphs provide powerful structural information for modeling intra-modal and inter-modal relationships. However, previous works fail to distinguish multi-hop neighbors and treat the graph as a standalone modality, which fragments the overall understanding. This limitation presents two key challenges in multimodal learning: (1) integrating structural information from multi-hop neighbors into foundational models, and (2) fusing modality-specific information in a principled manner. To address these challenges, we revisit the role of graphs in multimodal learning within the era of foundation models and propose Graph4MM, a graph-based multimodal learning framework. To be specific, we introduce Hop-Diffused Attention, which integrates multi-hop structural information into self-attention through causal masking and hop diffusion. Furthermore, we design MM-QFormer, a multi-mapping querying transformer for cross-modal fusion. Through theoretical and empirical analysis, we show that leveraging structures to integrate both intra- and inter-modal interactions improves multimodal understanding beyond treating them as a standalone modality. Experiments on both generative and discriminative tasks show that Graph4MM outperforms larger VLMs, LLMs, and multimodal graph baselines, achieving a 6.93% average improvement.

Read the original paper