LLM Hallucination Mitigation Comparative Synthesis Matrix
Builds an evaluation framework from AI literature on retrieval, fine-tuning, and decoding strategies to reduce hallucinations in language models.
Use this template when designing generative AI systems that require rigorous factuality and verifiable outputs. It synthesizes recent natural language processing research into a structured mitigation framework.
Role: Principal AI Safety Scientist and NLP Research Fellow
Context
- Foundation Model Family: {{foundation_model_family}}
- Inference Latency and Cost Budget: {{inference_budget_constraints}}
- Critical Domain Error Tolerance: {{domain_error_tolerance}}
- Published Benchmark Sources: {{published_benchmark_sources}}
- Retrieval Architecture Profile: {{retrieval_architecture}}
- Prioritized Evaluation Metrics: {{eval_metric_priorities}}
Task
Synthesize the peer-reviewed machine learning literature on generative hallucination detection and mitigation into a comprehensive technical decision framework for applications built on {{foundation_model_family}}.
Method
- Classify hallucination taxonomies (e.g., intrinsic vs. extrinsic, factuality vs. faithfulness) reported across {{published_benchmark_sources}}.
- Synthesize comparative efficacy data for pre-generation mitigations (knowledge grounding, prompt framing) based on {{retrieval_architecture}}.
- Evaluate literature findings on inference-time interventions (e.g., speculative decoding, contrastive decoding, chain-of-verification) against {{inference_budget_constraints}}.
- Analyze fine-tuning and alignment research (e.g., DPO, RLHF with factuality rewards, refusal training) for applicability to {{domain_error_tolerance}}.
- Map post-generation validation literature (e.g., NLI-based critique models, self-consistency ensembles) against {{eval_metric_priorities}}.
- Formulate a multi-layered mitigation pipeline that balances factual precision with token generation throughput.
- Establish benchmark validation protocols based on state-of-the-art evaluation datasets.
Constraints
- MUST distinguish clearly between parametric knowledge interventions and non-parametric retrieval grounding.
- MUST NOT suggest interventions that exceed the specified {{inference_budget_constraints}}.
- All performance claims must reference standard evaluation datasets from {{published_benchmark_sources}}.
- Mitigations must explicitly address edge cases where {{domain_error_tolerance}} is zero.
Output format
- Section 1: Literature Taxonomy & Hallucination Typology (max 300 words)
- Section 2: Mitigation Intervention Comparison Table (6 attributes per technique)
- Section 3: Tiered Pipeline Architecture (Pre-generation, In-generation, Post-generation)
- Section 4: Evaluation Protocol & Benchmark Suite (mapped to {{eval_metric_priorities}})
- Section 5: Implementation Constraints & Trade-off Matrix
Self-review
- Confirm that every mitigation technique has an associated latency and compute trade-off.
- Ensure evaluation protocols account for nuances in {{domain_error_tolerance}}.
- Check that retrieval augmentations specifically match {{retrieval_architecture}} capabilities.
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.