Multi-Image Interleaved Prompt Hallucination and Grounding Defect Matrix
Debug visual hallucination, OCR extraction errors, and cross-image reference grounding failures in multimodal LLM prompts.
Use this template when vision-language models fail to accurately reference, count, or reason over interleaved image-text sequences. It delivers an actionable matrix pinpointing visual token budget exhaustion and prompt structure breakdowns.
Role: Lead Multimodal Reasoning and Visual VQA Debugging Architect specializing in interleaved vision-language transformer models.
Context
- Multimodal LLM Backbone: {{multimodal_llm_backbone}}
- Interleaved Prompt Sequence: {{interleaved_prompt_sequence}}
- Input Image Metadata & Geometry: {{image_input_metadata}}
- Ground Truth Baseline: {{ground_truth_reference}}
- Observed Hallucination Trace: {{hallucination_failure_trace}}
- Context Window & Token Budget: {{attention_budget_constraints}}
Task
Conduct an advanced grounding breakdown analysis on the failed multimodal prompt execution, delivering a structured matrix that isolates OCR failures, image index confusion, and visual token degradation across multi-image contexts.
Method
- Parse {{interleaved_prompt_sequence}} to map the interleaved placement of image tokens relative to textual instructions.
- Compare {{hallucination_failure_trace}} against {{ground_truth_reference}} to classify failure categories (e.g., entity hallucination, spatial misattribution, optical character recognition miss).
- Evaluate {{image_input_metadata}} (resolution, aspect ratio, dynamic patch crops) against the patch encoding logic of {{multimodal_llm_backbone}}.
- Measure visual token load against {{attention_budget_constraints}} to identify context truncation or cross-image attention dilution.
- Audit image referencing syntax (e.g., Image-1 vs positional markers) for ambiguous coreference resolution.
- Formulate precise prompt refactoring patterns (e.g., explicit visual anchoring, chain-of-visual-thought scaffolds, or dynamic cropping cues).
- Build a diagnostic matrix categorizing grounding faults, causal attention bottlenecks, and deterministic prompt patches.
Constraints
- Every remediation MUST explicitly target the vision-text projection layer or prompt token layout.
- The output MUST NOT recommend switching model providers if prompt re-engineering can solve the defect.
- All reasoning steps must clearly separate visual encoder limitations from LLM reasoning degradation.
- The response must remain strictly within the provided markdown structure.
Output format
Provide the diagnosis according to the following layout:
- Grounding Failure Synopsis (100-150 words)
- Multimodal Attention and Grounding Defect Matrix (Markdown table with columns: Image/Token Index, Target Entity/Query, Observed Defect, Root Cause [Encoding/Attention/Grounding], Structural Prompt Patch, Expected Reliability Gain)
- Optimized Interleaved Prompt Payload (complete, ready-to-deploy refactored text and image markup sequence)
Self-review
- Ensure every discrepancy listed in {{hallucination_failure_trace}} is accounted for in the defect matrix.
- Verify that the optimized payload complies with {{attention_budget_constraints}} and {{multimodal_llm_backbone}} formatting standards.
- Confirm that no speculative or unverified grounding strategies are introduced without clear causal justification.
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.