This prompt is for evaluation platform teams running LLM judges in production who need a systematic way to close the loop between detected misalignments and judge improvement. Use it when you have a batch of recent evaluation records where the LLM judge's scores diverged from human ratings or reference standards, and you need to extract actionable feedback rather than just logging the discrepancy. The prompt produces three outputs: a structured extraction of what the judge got wrong and why, a set of prioritized instruction updates targeting the root causes, and a retraining recommendation that balances fixing recent errors against preserving general calibration.
Prompt
Calibration Feedback Loop Prompt for Continuous Alignment

When to Use This Prompt
Understand the job-to-be-done, required context, and boundaries for the Calibration Feedback Loop prompt.
This is not a prompt for initial judge calibration or one-off score comparison. It assumes you already have a calibration baseline, a rubric, and a stream of scored examples with ground truth or human labels. The prompt belongs in a continuous alignment pipeline where judge performance is monitored, drift is detected, and feedback is fed back into instruction refinement or fine-tuning data selection. You should have at least 20-50 recent misaligned examples before running this prompt; smaller batches produce noisy root cause attributions and brittle instruction updates that overfit to individual cases rather than patterns.
Do not use this prompt when you are building a judge from scratch, comparing two judges for the first time, or debugging a single anomalous score. Those workflows need calibration set construction, pairwise comparison, or root cause analysis prompts instead. This prompt assumes the misalignment pattern is already confirmed and the team is ready to act on it. Before running it, verify that your ground truth labels are reliable—feeding this prompt noisy human ratings will produce instruction updates that chase label error rather than judge error. If you cannot confirm label quality, run a calibration data quality audit first.
Use Case Fit
Where the Calibration Feedback Loop Prompt delivers value and where it introduces risk. This prompt automates judge improvement, but it is not a substitute for human oversight of evaluation standards.
Good Fit: Continuous Judge Tuning
Use when: you have a steady stream of human-annotated samples and need to keep LLM judges aligned over time. Guardrail: Gate feedback application behind a minimum sample size to prevent overfitting to a single anomalous batch.
Bad Fit: Initial Rubric Design
Avoid when: you are designing a scoring rubric from scratch without any human baseline. Guardrail: Use the Rubric Design and Scoring Prompts pillar first. This prompt assumes an existing rubric and calibration set; it cannot invent evaluation standards.
Required Inputs
What you need: a recent window of scored samples with both LLM judge scores and human ratings, the current judge instructions, and the existing rubric. Guardrail: Validate that human ratings are consistent before feeding them into the loop. Garbage human labels produce garbage alignment.
Operational Risk: Overfitting to Recent Samples
What to watch: the prompt may produce instruction updates that fix the last 50 examples but break general calibration. Guardrail: Always run the proposed instruction update against a held-out calibration set before deployment. Reject updates that improve recent fit but degrade overall alignment.
Operational Risk: Feedback Loop Instability
What to watch: repeatedly applying feedback without human review can cause the judge to drift toward its own errors. Guardrail: Require human approval for instruction changes that shift scores beyond a threshold. Log every feedback cycle for audit.
Not a Replacement for Human Review
What to watch: teams may treat automated feedback as a set-and-forget system. Guardrail: Schedule periodic human review of judge behavior, especially for high-stakes evaluation dimensions. The feedback loop reduces drift, it does not eliminate the need for oversight.
Copy-Ready Prompt Template
A single-call prompt that processes a batch of recent judge-human misalignments and returns structured feedback, prioritized instruction updates, and a retraining recommendation.
This prompt is the engine of a continuous alignment loop. You feed it a batch of examples where your LLM judge's scores diverged from human ratings, along with the current judge instructions and evaluation rubric. The model returns a structured JSON payload containing extracted misalignment patterns, concrete instruction rewrites ranked by impact, and a data-driven recommendation on whether to update instructions, recalibrate thresholds, or expand the calibration set. The prompt is designed for a single LLM call with no tool use, making it suitable for scheduled batch jobs, CI hooks, or evaluation pipeline automation.
textYou are a calibration analyst for an LLM-based evaluation system. Your job is to diagnose why an automated judge's scores diverged from human ratings and produce actionable corrections. ## INPUTS ### Current Judge Instructions [JUDGE_INSTRUCTIONS] ### Evaluation Rubric [RUBRIC] ### Misalignment Examples A batch of examples where the LLM judge score differs from the human reference score by at least [MIN_SCORE_GAP] points. Each example includes the item being evaluated, the judge's score and justification, and the human reference score and justification. [MISALIGNMENT_EXAMPLES] ### Calibration Window Context Number of examples in this batch: [BATCH_SIZE] Overall judge-human agreement rate in recent window: [AGREEMENT_RATE] Previous calibration actions taken (if any): [PREVIOUS_ACTIONS] ## OUTPUT SCHEMA Return valid JSON matching this structure: { "misalignment_patterns": [ { "pattern_name": "string (short label)", "description": "string (what the judge consistently does wrong)", "affected_dimensions": ["string (rubric dimension names)"], "example_count": "integer (how many misalignments exhibit this pattern)", "severity": "high | medium | low", "direction": "over_score | under_score | inconsistent" } ], "instruction_updates": [ { "priority": "integer (1 = highest)", "target_pattern": "string (must match a pattern_name above)", "current_wording": "string (excerpt from judge instructions causing the issue)", "proposed_wording": "string (replacement text)", "rationale": "string (why this change addresses the pattern)", "regression_risk": "high | medium | low", "affected_test_cases": ["string (IDs or descriptions of cases to re-test)"] } ], "threshold_adjustments": [ { "dimension": "string (rubric dimension name)", "current_boundary": "string (current pass/fail or score boundary)", "proposed_boundary": "string (adjusted boundary)", "rationale": "string" } ], "calibration_set_recommendation": { "action": "add_examples | remove_examples | re_label | no_change", "rationale": "string", "target_score_ranges": ["string (underrepresented score buckets)"], "suggested_example_count": "integer" }, "overall_recommendation": { "primary_action": "update_instructions | recalibrate_thresholds | expand_calibration_set | investigate_human_labels | no_action", "confidence": "high | medium | low", "summary": "string (one-paragraph explanation for the evaluation team)", "risk_of_overfitting": "high | medium | low", "overfitting_rationale": "string (why this batch might not generalize)" } } ## CONSTRAINTS 1. Only propose instruction updates that are directly supported by patterns observed in the misalignment examples. Do not invent patterns. 2. If fewer than [MIN_EXAMPLES_FOR_ACTION] examples exhibit a pattern, set severity to "low" and deprioritize corresponding updates. 3. Flag any proposed instruction change that could cause regression on previously well-calibrated dimensions. Set regression_risk accordingly and list specific test cases to re-evaluate. 4. If the misalignment batch is small (fewer than [SMALL_BATCH_THRESHOLD] examples) or covers a narrow range of inputs, set risk_of_overfitting to "high" and recommend caution. 5. When human labels themselves show inconsistency or possible error, recommend investigate_human_labels before changing judge instructions. 6. Do not propose threshold changes unless the pattern shows systematic bias in one direction across multiple examples. 7. Preserve the judge's ability to handle edge cases. Do not optimize only for the examples in this batch. ## OUTPUT Return only the JSON object. No preamble, no commentary.
To adapt this prompt for your pipeline, replace the square-bracket placeholders with real data before each call. [JUDGE_INSTRUCTIONS] should contain the full system prompt or scoring instructions your LLM judge currently uses. [RUBRIC] is the evaluation rubric with dimension definitions and scoring scale. [MISALIGNMENT_EXAMPLES] is the critical input: format each example consistently with the item text, the judge's score and justification, and the human reference score and justification. Set [MIN_SCORE_GAP] to filter out trivial disagreements that don't warrant instruction changes—typically 1.5–2 points on a 5-point scale. Set [MIN_EXAMPLES_FOR_ACTION] to at least 3 to avoid reacting to noise, and [SMALL_BATCH_THRESHOLD] to 10–15 examples below which overfitting risk is elevated. The [AGREEMENT_RATE] and [PREVIOUS_ACTIONS] fields provide context that helps the model avoid repeating failed interventions.
Before deploying this prompt into an automated calibration loop, validate the output JSON against the schema and run a human review step on the proposed instruction updates. A judge that silently rewrites its own instructions based on a narrow batch can drift catastrophically. Log every calibration run's inputs, outputs, and the human accept/reject decision for each proposed change. This audit trail is essential when stakeholders ask why scores shifted. For high-stakes evaluation pipelines, gate instruction updates behind a manual approval step and re-run the calibration set after any change to confirm alignment improved without regressions.
Prompt Variables
Each placeholder the Calibration Feedback Loop Prompt needs to work reliably. Validate inputs before sending to prevent overfitting to recent samples or losing general calibration.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[MISALIGNMENT_LOG] | Recent cases where LLM judge scores diverged from human reference ratings beyond an acceptable threshold | A JSON array of objects with fields: case_id, judge_score, human_score, dimension, input_text, judge_rationale | Must contain at least 5 cases. Each case must have non-null judge_score and human_score. Reject if any case is missing dimension or input_text. |
[BASELINE_CALIBRATION] | Reference calibration metrics from the previous stable window, establishing expected agreement rates and score distributions | A JSON object with fields: window_start, window_end, agreement_coefficient, per_dimension_bias, score_distribution | Must include per_dimension_bias map. Reject if window_end is older than 30 days or agreement_coefficient is null. Validate that score_distribution sums to 1.0. |
[JUDGE_INSTRUCTIONS] | Current system prompt and scoring rubric the LLM judge uses to evaluate outputs | A string containing the full judge system prompt with scoring criteria and dimension definitions | Must be non-empty and contain at least one scoring dimension definition. Check for presence of scale anchors. Reject if instructions exceed model context window minus 2000 tokens. |
[HUMAN_RATER_GUIDELINES] | The annotation guidelines human raters follow, used to detect rubric ambiguity causing misalignment | A string containing rater instructions, edge case handling rules, and calibration examples | Must be non-empty. Validate that guidelines reference the same scoring dimensions as [JUDGE_INSTRUCTIONS]. Flag if no edge case examples present. |
[RECENT_SAMPLE_WINDOW] | Time-bounded set of evaluation cases used for feedback extraction, distinct from full calibration history | A JSON object with fields: start_date, end_date, total_cases, misaligned_cases, aligned_cases | Must have end_date within last 14 days. Validate that misaligned_cases + aligned_cases equals total_cases. Reject if total_cases is less than 20. |
[OVERFITTING_GUARDRAILS] | Constraints preventing the feedback loop from optimizing only for recent samples at the expense of general calibration | A JSON object with fields: min_historical_agreement_threshold, max_instruction_change_ratio, preserved_test_cases | Must include at least 5 preserved_test_cases from older windows. min_historical_agreement_threshold must be between 0.7 and 0.95. Reject if max_instruction_change_ratio is null. |
[DIMENSION_WEIGHTS] | Priority weights for each evaluation dimension, controlling which misalignments get addressed first | A JSON object mapping dimension names to float weights between 0.0 and 1.0 | All weights must sum to 1.0. Reject if any dimension in [MISALIGNMENT_LOG] is missing from weights. Validate no weight exceeds 1.0 or falls below 0.0. |
[PREVIOUS_FEEDBACK_CYCLE] | Output from the last calibration feedback loop run, used to detect repeated failures and measure improvement | A JSON object with fields: cycle_id, generated_date, prioritized_issues, instruction_patches_applied, post_patch_agreement | Null allowed on first run. If present, validate that cycle_id is not a duplicate. Check that instruction_patches_applied matches changes visible in [JUDGE_INSTRUCTIONS] if patches were applied. |
Implementation Harness Notes
How to wire the calibration feedback loop prompt into an evaluation pipeline with validation, retry, logging, and human review gates.
The calibration feedback loop prompt is not a one-shot generation task—it is a diagnostic step inside a continuous alignment pipeline. Wire it to run on a schedule (daily or per-evaluation-batch) whenever new human-annotated samples or judge-scored outputs accumulate. The prompt expects a structured [MISALIGNMENT_LOG] containing recent discrepancies between human ratings and LLM judge scores, plus the current [JUDGE_INSTRUCTIONS] that produced those scores. The output is a structured [FEEDBACK_PACKET] with prioritized instruction updates, retraining recommendations, and a severity assessment. Because this prompt directly proposes changes to your evaluation infrastructure, treat its output as a recommendation, not an automated commit.
Implement a validation layer that parses the [FEEDBACK_PACKET] before any action is taken. At minimum, confirm that each proposed instruction change includes a rationale tied to a specific misalignment pattern from the input log. Reject changes that lack evidence grounding or that propose sweeping rewrites without traceable justification. Add a retry wrapper: if the model returns malformed JSON, missing required fields, or changes that contradict the input evidence, retry once with the validation errors appended as [CORRECTION_HINTS]. If the second attempt also fails, escalate to a human reviewer queue with the raw output and validation log. Log every run—input hash, output hash, validation status, retry count, and reviewer decision—so you can audit the feedback loop's own behavior over time.
Include a human review gate before any instruction update reaches production. Even when validation passes, route the proposed changes to a review interface that shows the current instructions, the proposed diff, the misalignment evidence that triggered the change, and a preview of how the updated judge would score a holdout set of recent examples. The reviewer should confirm that the change addresses real drift rather than overfitting to a noisy batch. Set a severity threshold: if the prompt's output indicates high-severity drift or recommends retraining, require two reviewers. Never auto-apply instruction changes from this prompt without human sign-off—the calibration feedback loop is a diagnostic tool, not an auto-healing mechanism. After approval, version the judge instructions, record the approval metadata, and run a regression test against your golden evaluation set before promoting the change.
Expected Output Contract
Fields, types, validation rules, and pass/fail conditions for the JSON response produced by the Calibration Feedback Loop Prompt. Use this contract to validate outputs before applying feedback to judge instructions.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
feedback_loop_id | string (UUID v4) | Must be a valid UUID v4 string. Parse check: regex match against standard UUID pattern. Reject if missing or malformed. | |
generated_at | string (ISO 8601 UTC) | Must parse as valid ISO 8601 datetime with UTC timezone. Schema check: date-time format. Reject if in the future or older than 30 days. | |
calibration_window | object | Must contain start_date and end_date as ISO 8601 strings. end_date must be after start_date. Window must not exceed 90 days. Schema check: required fields present. | |
misalignment_instances | array of objects | Array length must be between 1 and 50. Each object must contain sample_id (string), judge_score (number 0-10), human_score (number 0-10), discrepancy (number), and dimension (string). Reject if empty or exceeds limit. | |
priority_findings | array of objects | Array length must be between 1 and 5. Each object must contain rank (integer 1-5), pattern_description (string, min 10 chars), affected_dimension (string), severity (enum: critical|high|medium|low), and evidence_count (integer >= 1). Reject if rank values are not unique. | |
instruction_updates | array of objects | Array length must be between 1 and 5. Each object must contain target_instruction_section (string), current_wording (string), proposed_wording (string), rationale (string, min 20 chars), and regression_risk (enum: high|medium|low). Reject if proposed_wording equals current_wording. | |
retraining_recommendation | object | Must contain action (enum: retrain|fine_tune|hold|no_action), confidence (number 0.0-1.0), sample_count_needed (integer or null), and justification (string, min 30 chars). Reject if action is retrain or fine_tune and sample_count_needed is null. | |
overfitting_guard | object | Must contain recency_bias_detected (boolean), affected_dimensions (array of strings, can be empty), mitigation_note (string, min 10 chars if recency_bias_detected is true, otherwise null allowed). Reject if recency_bias_detected is true and affected_dimensions is empty. |
Common Failure Modes
What breaks first when you deploy a calibration feedback loop and how to prevent silent alignment decay.
Overfitting to Recent Discrepancies
What to watch: The judge instructions get rewritten to fix the last batch of misalignments, but the new instructions break previously calibrated score ranges. The judge becomes a pendulum, swinging between overcorrection and the original error. Guardrail: Always run the revised judge instructions against a held-out golden set from older time windows before promoting. Require a minimum agreement threshold on historical examples before accepting any instruction patch.
Minority Class Collapse in Feedback Selection
What to watch: The feedback extraction step only surfaces high-discrepancy examples from common score buckets, ignoring rare but critical edge cases (e.g., safety failures, extreme outliers). The judge slowly loses calibration on the long tail. Guardrail: Stratify the feedback sample by score bucket, error severity, and input category before extraction. Enforce minimum representation quotas for low-frequency score regions and safety-critical dimensions.
Human Rater Drift Masquerading as Judge Drift
What to watch: The calibration loop flags judge drift, but the root cause is actually human raters changing their standards over time due to fatigue, policy updates, or team turnover. The judge gets retrained to match a moving target. Guardrail: Run inter-rater reliability checks on the human reference labels before using them for judge calibration. If human agreement drops below threshold, pause judge retraining and investigate rater consistency first.
Instruction Patch Accumulation Without Pruning
What to watch: Each feedback cycle appends new rules and exceptions to the judge prompt. After five cycles, the prompt is a contradictory mess of layered patches that confuses the model and produces inconsistent scores. Guardrail: After every three instruction updates, run a prompt simplification pass that consolidates rules, removes redundant constraints, and resolves contradictions. Version the consolidated prompt and test against the full calibration set before deployment.
Silent Score Compression Toward the Mean
What to watch: The calibration loop optimizes for aggregate agreement metrics, and the judge learns that giving middling scores reduces disagreement risk. Extreme scores disappear, and the judge loses the ability to distinguish excellent from poor outputs. Guardrail: Monitor the variance and distribution shape of judge scores over time. Set alerts when the standard deviation drops below a configured floor or when extreme score bucket counts fall outside historical bounds.
Feedback Loop Latency Creating Stale Corrections
What to watch: The feedback extraction runs weekly, but the product surface or evaluation rubric changed mid-week. By the time the calibration patch arrives, it's fixing yesterday's problem on today's different distribution. Guardrail: Attach a freshness check to every calibration update. If the feedback source data is older than a configured window or if a rubric version change occurred since collection, flag the update for review instead of auto-applying.
Evaluation Rubric
Use this rubric to test the calibration feedback loop prompt before relying on it in production. Each criterion targets a specific failure mode that breaks continuous alignment systems.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Misalignment Root Cause Identification | Feedback extraction correctly attributes each misalignment to judge error, rubric ambiguity, or reference label noise with specific evidence from the input pair | Vague attribution like 'judge was wrong' without evidence or misclassifying human error as judge error | Run 10 known misalignment cases with ground-truth root causes; require >= 90% attribution accuracy |
Instruction Update Specificity | Proposed judge instruction changes target the exact scoring dimension and error pattern identified, with concrete before/after wording | Generic updates like 'be more careful' or changes that affect dimensions that were already calibrated | Diff the proposed instruction against the original; verify each change maps to a specific misalignment pattern from the feedback |
Overfitting Prevention | Instruction updates improve alignment on the feedback batch without degrading performance on a held-out calibration set | Score distribution on held-out set shifts by more than 0.3 standard deviations after applying proposed updates | Apply proposed instruction changes to a judge copy; run both original and updated judge on a held-out calibration set of 50+ examples; check score stability |
Priority Ordering of Updates | Feedback output ranks instruction changes by impact, with the highest-misalignment dimension addressed first | Trivial formatting changes ranked above substantive scoring dimension fixes, or no prioritization provided | Verify that the top-ranked update addresses the dimension with the largest human-judge score gap in the input data |
Retraining Recommendation Quality | Recommendation specifies whether fine-tuning, few-shot example updates, or instruction-only changes are appropriate, with rationale tied to misalignment type | Always recommends fine-tuning regardless of misalignment type, or recommends retraining without specifying what data to use | Classify each misalignment as systematic bias, edge-case gap, or noise; verify the recommendation matches the classification (systematic -> fine-tune, edge-case -> examples, noise -> no retraining) |
Confidence Calibration in Feedback | Feedback includes confidence estimates for each proposed change that correlate with actual improvement likelihood | All changes marked high confidence, or confidence scores that don't correlate with whether the change actually fixes the issue | Run 5 feedback cycles; track whether high-confidence changes resolve misalignments at a higher rate than low-confidence changes; require monotonic relationship |
Regression Risk Flagging | Output identifies which existing calibration dimensions might degrade from proposed changes and suggests mitigation | No regression risk mentioned, or flagging risks that are irrelevant to the proposed changes | Cross-reference proposed instruction changes against all scoring dimensions; verify that any dimension sharing keywords or concepts with changed instructions is flagged |
Feedback Loop Convergence Check | After 3 simulated feedback cycles on the same judge, alignment metrics improve or stabilize rather than oscillate | Scores oscillate between over-correction and under-correction across cycles, or alignment worsens after cycle 2 | Run 3 sequential feedback cycles on a judge with known misalignment; plot human-judge score gap per cycle; require monotonic improvement or stabilization within tolerance |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Start with the base prompt and a small calibration set of 20-30 human-judged examples. Remove the retraining recommendation section and the guardrail against overfitting. Focus on getting the feedback extraction and instruction update generation working before adding statistical rigor.
Replace the [PRIORITIZED_INSTRUCTION_UPDATES] section with a simpler format: just list the top 3 instruction changes without confidence scores or regression risk flags.
Watch for
- The judge may overfit to the small calibration set and produce instruction updates that don't generalize
- Missing the guardrail that prevents the feedback loop from amplifying a single recent misalignment
- No baseline comparison: you won't know if the updated judge is actually better without running it against held-out examples

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us