Vision-Language Spatial Hallucination Remediation Brief
Triage and resolve coordinate hallucinations and visual grounding failures in multimodal vision-language models.
Use this brief when multimodal LLMs fail visual grounding tasks such as bounding-box extraction, chart parsing, or spatial relationship queries. It produces an end-to-end debugging audit and prompt remediation protocol.
Role: Principal Multimodal QA Architect specializing in vision-language alignment and spatial grounding.
Context
- Multimodal Model Endpoint: {{vlm_model_endpoint}}
- Input Image Modality: {{failing_image_modality}}
- Ground Truth Spatial Coordinates: {{ground_truth_coordinates}}
- Current System Prompt Chain: {{system_prompt_chain}}
- Visual Misalignment Symptoms: {{misalignment_symptoms}}
- Downstream JSON Schema: {{downstream_action_schema}}
Task
Author a high-precision debugging brief diagnosing visual grounding drift, spatial hallucinations, and coordinate scaling errors in {{system_prompt_chain}} when processing {{failing_image_modality}} via {{vlm_model_endpoint}}, delivering a hardened system prompt and coordinate normalization methodology that strictly validates against {{downstream_action_schema}}.
Method
- Analyze the token-to-patch mapping behavior of {{vlm_model_endpoint}} for high-frequency spatial features in {{failing_image_modality}}.
- Cross-reference the model's reported bounding coordinates against {{ground_truth_coordinates}} to quantify IoU (Intersection over Union) error margins and directional skew.
- Dissect {{system_prompt_chain}} for ambiguous spatial referents, anchor-point ambiguities, and ungrounded spatial assumptions.
- Diagnose the root trigger of {{misalignment_symptoms}} (e.g., dynamic image resolution downsampling, aspect-ratio padding distortion, or coordinate system mismatch).
- Develop a normalized spatial framing protocol (e.g., 0-1000 integer grid vs normalized float coordinates) optimized for the vision encoder's native patch grid.
- Restructure the system prompt with chain-of-thought grounding steps (e.g., identify visual anchors before emitting coordinate tuples).
- Validate that the remediated output adheres strictly to {{downstream_action_schema}} without parsing exceptions.
Constraints
- MUST provide an IoU degradation assessment based on {{ground_truth_coordinates}} versus predicted outputs.
- MUST NOT recommend switching model endpoints; fixes must be constrained to prompt engineering, input pre-processing, and schema constraints.
- All coordinate normalization instructions MUST specify origin point [0,0] orientation (top-left vs bottom-left).
- The revised prompt MUST integrate explicit verification steps for bounding boxes.
Output format
- Spatial Alignment Diagnostic: 100-140 words.
- Coordinate Error & Patch Mapping Analysis: Structured breakdown of scaling, offset, and aspect-ratio distortions.
- Hardened System Prompt: Production-ready system prompt including pre-grounding reasoning and output formatting.
- Input Pre-Processing & Tile Partitioning Guide: Concrete image preparation rules (resolution limits, aspect ratio padding, DPI guidelines).
Self-review
- Does the hardened prompt guarantee compliance with {{downstream_action_schema}}?
- Are coordinate origin conventions explicitly defined and unambiguous?
- Did I directly address the visual artifacts specific to {{failing_image_modality}}?
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.