TL;DR
POEM is a visual analytics system designed to help researchers optimize prompts for Multimodal Large Language Models (MLLMs). By visualizing how models balance text versus visual cues, POEM allows users to iteratively refine prompts using AI-assisted principles and smartly sampled demonstration examples, significantly boosting reasoning accuracy.
What Problem Does This Paper Address?
While Large Language Models (LLMs) have become remarkably adept at reasoning, their multimodal counterparts (MLLMs)—which process both text and images/video—are notoriously finicky. A slight change in a prompt can cause a model to ignore a speaker's words in favor of a misleading visual cue, or vice versa.
The challenge is that prompt engineering for MLLMs is currently a "black box" process. Developers often rely on trial-and-error, looking at overall accuracy scores without understanding why the model failed on specific multimodal interactions. There is a lack of tools that specifically address the complex interplay between different modalities, making it difficult to steer models toward human-like reasoning.
Methods
The authors introduce POEM (Interactive Prompt Optimization for Enhancing Multimodal Reasoning), a framework that bridges the gap between raw model output and human insight.
The system architecture (Fig. 2) consists of four primary modules:
- Multimodal Reasoning Understanding: This module categorizes how the model handles modalities using a three-layer augmented Sankey diagram. It identifies whether modalities are Complementary (agreeing) or in Conflict (disagreeing), and further drills down into whether one modality dominates the final decision.
- Multimodal Reasoning Pattern Mining: Using the Apriori algorithm, the system identifies frequent patterns of co-occurrence between linguistic concepts (e.g., "didn't like") and visual concepts (e.g., "smile").
- Prompt Iteration Strategy Recommendation: To reduce the user's cognitive load, POEM uses an auxiliary LLM (GPT-4) to suggest "Instructional Principles"—rules the model should follow—and recommends k-shot examples based on a balance of similarity and diversity using CLIP embeddings.
- Interactive Interface: A unified dashboard for crafting prompts, examining reasoning at the instance level, and monitoring performance across versions.
Datasets
The system was evaluated using two distinct multimodal datasets:
- CMU-MOSEI: A large-scale dataset for multimodal sentiment analysis, consisting of monologue video clips where speakers express sentiments.
- WTaG: A dataset for user intent understanding, featuring egocentric (first-person) videos of users performing cooking tasks in augmented reality.
Key Insights and Ideas
- The "Conflict-Dominant" Trap: One of the most significant findings was the model's tendency to be biased by one modality. For example, in sentiment analysis, the model often prioritized a "smile" (visual) even when the speaker used explicitly negative words like "boring" or "hate" (text).
- Visualizing the Interplay: By using a Sankey diagram to map prediction errors to modality interactions, users can pinpoint exactly where the model's "common sense" fails.
- Deductive vs. Inductive Steering: POEM supports both. Users can provide k-shot examples (inductive) to show the model how to reason, or define explicit principles (deductive) to tell the model what rules to follow, such as "do not overemphasize visual cues when verbal content is explicit."
- AI-Assisted Refinement: The use of an auxiliary LLM to "summarize mistakes" into actionable prompt principles proved highly effective at helping humans articulate their domain expertise into machine-readable instructions.
Key Results
The authors conducted two case studies that demonstrated substantial performance gains:
- Case Study 1 (Sentiment Analysis): Starting with a baseline prompt accuracy of 70%, a researcher used POEM to identify visual biases. By adding a targeted principle and three refined k-shot examples, the accuracy improved to 82%.
- Case Study 2 (User Intent): A zero-shot prompt initially achieved only 53% accuracy, with heavy bias toward "Confirmation" and "Answer" classes. By using POEM to clarify prediction classes and add k-shot examples, the researcher boosted accuracy to 77%.
Limitations and Future Work
- Computational Bottleneck: Processing video datasets and generating LLM rationales in real-time is computationally expensive. The authors currently use batch processing to mitigate this, but it remains a hurdle for massive datasets.
- UI Scalability: The Sankey diagram, while powerful, can become cluttered when dealing with a high number of prediction classes or more than two modalities.
- Model Hallucinations: The system relies on the MLLM's own generated rationales, which can sometimes be inconsistent or "hallucinated."
- Future Directions: The authors plan to extend POEM to support more than two modalities (e.g., adding audio/sensor data) and to enable direct comparisons between different MLLMs (e.g., LLaVA vs. GPT-4V) within the same interface.
Summary updated