Abstract
Multimodal Knowledge Graph Completion (MKGC) is essential for maintaining robust AI systems, yet it faces significant challenges when using Multimodal Large Language Models (MLLMs). These challenges include semantic noise from redundant visual data and the high computational overhead of processing thousands of image tokens. We introduce ELMM (Efficient Lightweight Multimodal Large Language Models), a framework that employs a Multi-view Visual Token Compressor (MVTC) to distill relevant visual features and an Attention Pruning Strategy to eliminate model redundancy. ELMM achieves state-of-the-art accuracy, including a 39% relative gain in Hits@1 on the FB15k-237-IMG dataset, while operating over 30% faster than standard MLLM baselines.
Introduction and Problem Statement
Knowledge Graphs (KGs) store facts as triplets (head entity, relation, tail entity). Multimodal Knowledge Graphs (MKGs) enhance these facts with images and text. However, MKGs are often incomplete. While MLLMs like LLaVA are powerful tools for completion, they suffer from two primary issues in the MKG context:
- Semantic Noise: Entities often have numerous associated images. Not every region of an image is relevant to every relation. For instance, a celebrity's face is relevant to a "Born In" relation but irrelevant to an "Award Won" relation where the trophy is the key visual cue.
- Computational Complexity: Processing large volumes of image tokens leads to quadratic increases in complexity, making inference slow and resource-intensive.
The ELMM Framework
ELMM optimizes MLLMs for knowledge graph completion through three architectural innovations designed to reduce noise and increase speed.
Multi-view Visual Token Compressor (MVTC)
Instead of passing all raw image tokens to the LLM, MVTC uses a multi-head attention mechanism to distill them. It evaluates images from a Textual View (aligning features with entity/relation names) and a Visual View (identifying salient regions). This process compresses thousands of tokens into a compact, high-information set.
Attention Pruning with Linear Compensation
Analysis of MLLMs reveals significant structural redundancy in the upper layers for specialized tasks like MKGC. ELMM prunes the top-K most redundant layers. To mitigate the resulting accuracy loss, the framework inserts a simple linear projection layer that compensates for the missing logic, effectively restoring model performance with minimal overhead.
Multimodal Knowledge Reasoning Layer
The standard LLM head is replaced with a specialized reasoning layer that outputs probability distributions over all candidate entities in the graph, rather than generic text tokens. This is supported by a Self-Denoising Strategy during training, which treats the input head entity as a "hard negative" to ensure the model learns true relational logic.
Key Results and Insights
ELMM was evaluated on four standard benchmarks: FB15k-237-IMG, WN18-IMG, DB15K, and MKG-W. Key findings include:
- Superior Accuracy: ELMM outperformed all existing multimodal and text-only models, achieving a 39% relative gain in Hits@1 on FB15k-237-IMG compared to previous leaders.
- Efficiency Gains: By pruning 16 attention layers, ELMM achieved over 30% faster inference than its non-pruned counterparts.
- Effective Compensation: The proposed linear compensation strategy reduced the error introduced by pruning by 98.3%.
- Robustness to Missing Data: Interestingly, the model performed better when 20% of the modality data was missing, suggesting that moderate data loss acts as a regularizer that forces the model to learn more robust representations.
Conclusion
ELMM demonstrates that MLLMs can be significantly optimized for specialized tasks like Knowledge Graph Completion without sacrificing accuracy. By filtering relation-specific visual noise and pruning redundant layers, ELMM provides a scalable and efficient path forward for multimodal reasoning. Future work will explore dynamic pruning strategies to further enhance real-time performance on massive, billion-node graphs.
Summary updated