Error Localization Labeling: Pinpointing the First Wrong Step
Error Localization Labeling: Pinpointing the First Wrong Step
A model that produces a wrong final answer is a known problem. A model that produces a wrong final answer via a plausible-looking chain of reasoning is a harder one. Process reward models, step-level verifiers, and fine-grained preference data all depend on the same upstream operation: error localization labeling, the practice of identifying exactly which step in a multi-step output first departs from correctness. Get that label wrong, and every downstream signal built on it is corrupted. Get it right, and the result is one of the highest-signal training artifacts a post-training pipeline can consume.
This post defines the annotation protocol for error localization labeling, describes the verifier and rubric design choices that make it tractable, and identifies the failure modes that degrade label quality in practice.
What Error Localization Labeling Is
Error localization labeling is the annotation task of identifying the first step in a model-generated reasoning trace at which the output becomes incorrect, unjustified, or logically discontinuous with the prior steps. The label is a step index, not a binary correct-or-incorrect judgment on the full output.
The distinction matters. Outcome supervision tells a reward model whether the final answer is right. Process supervision, as described in the OpenAI paper Let's Verify Step by Step (Lightman et al., 2023), assigns a correctness signal to each intermediate step. Error localization labeling is the prerequisite for process supervision: before you can score steps, you must identify which step introduced the first error and why.
Three annotation targets exist within this task class:
First-error step index: the ordinal position of the step where correctness first fails.
Error type: a taxonomy label drawn from a pre-specified defect taxonomy (factual error, invalid inference, missing constraint, arithmetic slip, and so on).
Error span: the specific clause, expression, or sub-step within the step that is wrong, when a step contains multiple operations.
All three targets are needed for a process reward model training set. The first alone is sufficient for a step-level verifier that needs a binary pass-fail boundary.
Why Pinpointing the First Wrong Step Is Harder Than It Looks
The difficulty is not in recognizing that an error exists. The difficulty is in determining whether a step that looks correct is actually correct given the prior context, or whether it is superficially valid but carries a latent assumption that will cause failure two steps later.
Four structural properties of multi-step reasoning make this hard:
Error propagation: A wrong value computed at step 3 may not produce a visibly wrong expression until step 6. Annotators anchored to surface plausibility will label step 6 as the first error. The correct label is step 3.
Correct-answer-wrong-path: A model can reach a correct final answer via an invalid intermediate step. Outcome-only review misses this entirely. Step-level review must catch it.
Ambiguous decomposition: Reasoning traces are not always decomposed at consistent granularity. A single annotator-perceived step may contain three logical operations. The error span target exists precisely to handle this.
Domain-dependent correctness: Whether a step is correct often depends on domain knowledge the annotator must hold independently of the model output. In G-code generation, structural engineering, or PLC ladder logic, a step can be syntactically valid and semantically wrong simultaneously. Generalist annotators cannot make this judgment reliably.
This last point is the central constraint on the entire task class. Error localization labeling in non-trivial domains is not a labeling task. It is an expert review task with a structured output format.
The Annotation Protocol: A Five-Step Procedure
The following protocol applies to multi-step reasoning traces in domains where a ground-truth solution path exists or can be constructed by the expert reviewer.
Establish the reference solution. Before reviewing the model output, the expert annotator constructs or confirms the correct solution path independently. This is not optional. Annotators who review model output without a prior reference are susceptible to anchoring on the model's framing.
Segment the trace. Divide the model output into atomic steps. Define atomicity in the task specification: for mathematical reasoning, one step equals one algebraic transformation. For code generation, one step equals one function or one block of sequential operations. Consistent segmentation across annotators is enforced by a shared segmentation rubric.
Forward-scan with a binary gate. Read each step in order. At each step, ask: given only the steps before this one, is this step correct? Stop at the first step that fails the gate. Record the step index.
Classify the error type. Apply the domain-specific defect taxonomy to the identified step. Taxonomy categories should be mutually exclusive and exhaustive within the domain. See the Chiron Data Labs post on defect taxonomies and root-cause classification for how to construct and validate a taxonomy before annotation begins.
Mark the error span. Within the identified step, highlight the specific clause or expression that is wrong. This span is used to train step-level process reward models with finer granularity than step-index alone.
Annotator agreement is measured at each target separately. Step-index agreement, error-type agreement, and span agreement will have different inter-annotator agreement profiles. Collapsing them into a single agreement metric conceals the actual reliability of each label component.
Verifier Design for Error Localization Tasks
A task without a reliable verifier is not a usable training signal. For error localization labeling, verification operates at two levels.
Programmatic verification applies where the domain supports it. In mathematical reasoning, a computer algebra system can check each algebraic step independently. In code, a unit test suite can evaluate each function in isolation. In G-code, a simulator can detect the first toolpath command that violates stock geometry or machine constraints. Programmatic verification sets a hard ceiling on the annotator's first-error label: if the program identifies an error at step 4, a human label of step 6 is wrong by definition and triggers rework.
Expert rubric verification applies where programmatic checks are insufficient. In natural language reasoning, legal analysis, or engineering design decisions, correctness is not always computable. The rubric must specify, for each error type in the taxonomy, the observable evidence that distinguishes a genuine error from an acceptable alternative approach. Rubrics that do not make this distinction produce high annotator disagreement on exactly the steps that matter most.
The interaction between these two verification layers is where most pipeline failures originate. Programmatic checks miss errors that are formally valid but contextually wrong. Expert rubrics miss errors that are syntactically plausible. A hybrid grading pipeline that runs automated first-pass checks and routes disagreements to expert adjudication is the operationally sound design for production-scale error localization labeling.
Illustrative Example: Error Localization in a Structural Calculation Trace
Illustrative example: numbers are constructed for clarity, not drawn from a specific model evaluation.
A frontier model is asked to calculate the maximum bending moment in a simply supported beam with a point load at mid-span. The model produces a six-step trace:
Identifies the beam as simply supported. (Correct.)
States the point load magnitude and position. (Correct.)
Computes the reactions at each support as P/2. (Correct.)
States the bending moment formula as M = P * L / 4. (Correct formula for this configuration.)
Substitutes values: P = 50 kN, L = 6 m, then computes M = 50 * 6 / 4 = 70 kN-m. (Arithmetic error: 50 * 6 = 300, 300 / 4 = 75, not 70.)
States the maximum bending moment is 70 kN-m and proceeds to a section modulus calculation using this value. (Propagated error.)
An outcome-only reviewer sees a wrong final section modulus and labels the output as incorrect. An error localization annotator identifies step 5 as the first-error step, classifies the error type as arithmetic slip, and marks the span as the multiplication operation. The downstream process reward model receives a signal that steps 1 through 4 are valid and that step 5 is the failure origin, which is the operationally useful signal for training a model to self-correct at the right point.
Common Failure Modes in Error Localization Labeling
Six failure modes recur across error localization annotation programs. Each has a detection signal and a remediation.
1. Anchoring on the final answer. Annotators who know the final answer is wrong work backward to find an error rather than forward-scanning from step one. Detection: compare annotator labels on traces with correct final answers versus wrong final answers; if agreement is systematically lower on correct-answer traces, anchoring is present. Fix: blind annotators to the final answer during step-level review, or require the reference solution to be constructed before the model trace is revealed.
2. Mislabeling propagated errors as first errors. The step where an error becomes visible is not necessarily the step where it originated. Detection: cross-check annotator labels against programmatic step-level verification where available; systematic downstream bias indicates propagation confusion. Fix: add explicit training on error propagation with worked examples in the annotator calibration set.
3. Inconsistent step segmentation. Two annotators segment the same trace at different granularities, making step-index labels incomparable. Detection: measure segmentation agreement as a separate metric before measuring error-location agreement. Fix: enforce a domain-specific segmentation rubric with examples of correct and incorrect segmentation decisions.
4. Taxonomy drift. Error type labels shift in meaning as annotators develop personal interpretations of category boundaries. Detection: periodic gold-task recalibration; measure error-type agreement against gold labels monthly. Fix: update the taxonomy with clarifying examples at each recalibration cycle. The taxonomy construction and maintenance process should be treated as a living artifact, not a one-time deliverable.
5. Annotator-model agreement inflation. Annotators who have reviewed many model outputs in a domain begin to accept model-typical reasoning patterns as correct, even when those patterns are subtly wrong. Detection: introduce adversarial gold tasks where the model's reasoning is plausible but wrong; measure annotator pass rate on these tasks over time. Fix: rotate gold tasks and include novel error types not seen in prior batches.
6. Missing tie-breaking protocol for ambiguous steps. Some steps are genuinely ambiguous: they are wrong under one valid interpretation of the problem and correct under another. Without a protocol, annotators resolve ambiguity inconsistently. Detection: flag steps where annotator disagreement exceeds a defined threshold and review them manually. Fix: for ambiguous cases, require annotators to state the interpretation under which the step is being evaluated, and adjudicate via the process described in the Chiron Data Labs post on ties, ambiguity, and both-wrong cases in preference datasets.
Where This Approach Breaks Down
Error localization labeling assumes that a correct reference solution path exists and is known to the annotator. In open-ended generation tasks, creative writing, or strategic planning, there is no single correct path, and the first-error-step framing does not apply.
It also assumes that errors are localizable to a single step. Some failure modes are distributed: a model may apply a consistent but wrong heuristic across every step of a trace, making the entire trace wrong without a single identifiable first-error step. In these cases, outcome-level labeling with an explanation of the systematic error is more informative than a step index.
Finally, difficulty calibration drifts. A task that reliably elicits step-level errors from frontier models today may be solved correctly within months as models improve. Error localization programs require ongoing difficulty monitoring, measured empirically against current model versions, not assumed from the original task design.
FAQ
What is the difference between process supervision and error localization labeling?
Process supervision assigns a correctness score to every step in a reasoning trace. Error localization labeling identifies only the first step that fails. Error localization is a component of process supervision data collection: it is the annotation task that produces the step-index labels from which step-level reward model training data is constructed.
How many annotators are needed per trace for reliable error localization labels?
A minimum of two independent expert annotators per trace is required to compute inter-annotator agreement. For domains where step-level errors are subtle (structural engineering, PLC logic, VLSI timing analysis), three annotators with adjudication on disagreement is the operationally sound standard. Agreement should be measured separately for step index, error type, and error span, as reliability differs across these targets.
Can LLM-as-judge replace human experts for error localization in technical domains?
For mathematical reasoning with programmatic verification available, LLM-as-judge can handle first-pass segmentation and flag candidate error steps reliably. For domains where correctness is domain-dependent and not computable (structural design decisions, manufacturing process selection, PLC safety logic), LLM-as-judge agreement with expert annotators is not yet sufficient for production use without human adjudication on disagreements. Results vary by model, scaffold, and date.
What inter-annotator agreement threshold is acceptable for step-index labels?
Cohen's kappa above 0.70 is a conventional threshold for substantial agreement in annotation tasks. For error localization step-index labels in technical domains, kappa below 0.60 on a calibration set indicates that the segmentation rubric or annotator training is insufficient and must be revised before production annotation begins. Treat the calibration phase as a rubric validation exercise, not a warm-up.
How does error localization labeling interact with reward hacking?
A process reward model trained on error localization labels can be hacked if the model learns to produce traces that satisfy the step-level verifier without actually reasoning correctly. The mitigation is to include adversarial traces in the training set: outputs where each step passes surface-level checks but the aggregate reasoning is wrong. These must be authored by domain experts who understand the failure modes, not generated synthetically from correct examples.
What This Means in Practice
Error localization labeling is not a labeling task dressed up in technical language. It is an expert review discipline with a structured output format, and the quality of every downstream process reward model depends on how well the upstream annotation protocol handles segmentation, reference-solution construction, taxonomy consistency, and verifier design. The failure modes are operational, not theoretical. They appear in production pipelines, degrade label quality silently, and are detectable only if the right agreement metrics are being measured at the right granularity.
If you are building process supervision data or step-level evals in a domain where correctness is not computable by a general-purpose checker, talk to Chiron Data Labs about expert-authored error localization tasks for your domain.
Have questions or want personalised guidance? Contact us and we'll be happy to help.
A model that produces a wrong final answer is a known problem. A model that produces a wrong final answer via a plausible-looking chain of reasoning is a harder one. Process reward models, step-level verifiers, and fine-grained preference data all depend on the same upstream operation: error localization labeling, the practice of identifying exactly which step in a multi-step output first departs from correctness. Get that label wrong, and every downstream signal built on it is corrupted. Get it right, and the result is one of the highest-signal training artifacts a post-training pipeline can consume.
This post defines the annotation protocol for error localization labeling, describes the verifier and rubric design choices that make it tractable, and identifies the failure modes that degrade label quality in practice.
What Error Localization Labeling Is
Error localization labeling is the annotation task of identifying the first step in a model-generated reasoning trace at which the output becomes incorrect, unjustified, or logically discontinuous with the prior steps. The label is a step index, not a binary correct-or-incorrect judgment on the full output.
The distinction matters. Outcome supervision tells a reward model whether the final answer is right. Process supervision, as described in the OpenAI paper Let's Verify Step by Step (Lightman et al., 2023), assigns a correctness signal to each intermediate step. Error localization labeling is the prerequisite for process supervision: before you can score steps, you must identify which step introduced the first error and why.
Three annotation targets exist within this task class:
First-error step index: the ordinal position of the step where correctness first fails.
Error type: a taxonomy label drawn from a pre-specified defect taxonomy (factual error, invalid inference, missing constraint, arithmetic slip, and so on).
Error span: the specific clause, expression, or sub-step within the step that is wrong, when a step contains multiple operations.
All three targets are needed for a process reward model training set. The first alone is sufficient for a step-level verifier that needs a binary pass-fail boundary.
Why Pinpointing the First Wrong Step Is Harder Than It Looks
The difficulty is not in recognizing that an error exists. The difficulty is in determining whether a step that looks correct is actually correct given the prior context, or whether it is superficially valid but carries a latent assumption that will cause failure two steps later.
Four structural properties of multi-step reasoning make this hard:
Error propagation: A wrong value computed at step 3 may not produce a visibly wrong expression until step 6. Annotators anchored to surface plausibility will label step 6 as the first error. The correct label is step 3.
Correct-answer-wrong-path: A model can reach a correct final answer via an invalid intermediate step. Outcome-only review misses this entirely. Step-level review must catch it.
Ambiguous decomposition: Reasoning traces are not always decomposed at consistent granularity. A single annotator-perceived step may contain three logical operations. The error span target exists precisely to handle this.
Domain-dependent correctness: Whether a step is correct often depends on domain knowledge the annotator must hold independently of the model output. In G-code generation, structural engineering, or PLC ladder logic, a step can be syntactically valid and semantically wrong simultaneously. Generalist annotators cannot make this judgment reliably.
This last point is the central constraint on the entire task class. Error localization labeling in non-trivial domains is not a labeling task. It is an expert review task with a structured output format.
The Annotation Protocol: A Five-Step Procedure
The following protocol applies to multi-step reasoning traces in domains where a ground-truth solution path exists or can be constructed by the expert reviewer.
Establish the reference solution. Before reviewing the model output, the expert annotator constructs or confirms the correct solution path independently. This is not optional. Annotators who review model output without a prior reference are susceptible to anchoring on the model's framing.
Segment the trace. Divide the model output into atomic steps. Define atomicity in the task specification: for mathematical reasoning, one step equals one algebraic transformation. For code generation, one step equals one function or one block of sequential operations. Consistent segmentation across annotators is enforced by a shared segmentation rubric.
Forward-scan with a binary gate. Read each step in order. At each step, ask: given only the steps before this one, is this step correct? Stop at the first step that fails the gate. Record the step index.
Classify the error type. Apply the domain-specific defect taxonomy to the identified step. Taxonomy categories should be mutually exclusive and exhaustive within the domain. See the Chiron Data Labs post on defect taxonomies and root-cause classification for how to construct and validate a taxonomy before annotation begins.
Mark the error span. Within the identified step, highlight the specific clause or expression that is wrong. This span is used to train step-level process reward models with finer granularity than step-index alone.
Annotator agreement is measured at each target separately. Step-index agreement, error-type agreement, and span agreement will have different inter-annotator agreement profiles. Collapsing them into a single agreement metric conceals the actual reliability of each label component.
Verifier Design for Error Localization Tasks
A task without a reliable verifier is not a usable training signal. For error localization labeling, verification operates at two levels.
Programmatic verification applies where the domain supports it. In mathematical reasoning, a computer algebra system can check each algebraic step independently. In code, a unit test suite can evaluate each function in isolation. In G-code, a simulator can detect the first toolpath command that violates stock geometry or machine constraints. Programmatic verification sets a hard ceiling on the annotator's first-error label: if the program identifies an error at step 4, a human label of step 6 is wrong by definition and triggers rework.
Expert rubric verification applies where programmatic checks are insufficient. In natural language reasoning, legal analysis, or engineering design decisions, correctness is not always computable. The rubric must specify, for each error type in the taxonomy, the observable evidence that distinguishes a genuine error from an acceptable alternative approach. Rubrics that do not make this distinction produce high annotator disagreement on exactly the steps that matter most.
The interaction between these two verification layers is where most pipeline failures originate. Programmatic checks miss errors that are formally valid but contextually wrong. Expert rubrics miss errors that are syntactically plausible. A hybrid grading pipeline that runs automated first-pass checks and routes disagreements to expert adjudication is the operationally sound design for production-scale error localization labeling.
Illustrative Example: Error Localization in a Structural Calculation Trace
Illustrative example: numbers are constructed for clarity, not drawn from a specific model evaluation.
A frontier model is asked to calculate the maximum bending moment in a simply supported beam with a point load at mid-span. The model produces a six-step trace:
Identifies the beam as simply supported. (Correct.)
States the point load magnitude and position. (Correct.)
Computes the reactions at each support as P/2. (Correct.)
States the bending moment formula as M = P * L / 4. (Correct formula for this configuration.)
Substitutes values: P = 50 kN, L = 6 m, then computes M = 50 * 6 / 4 = 70 kN-m. (Arithmetic error: 50 * 6 = 300, 300 / 4 = 75, not 70.)
States the maximum bending moment is 70 kN-m and proceeds to a section modulus calculation using this value. (Propagated error.)
An outcome-only reviewer sees a wrong final section modulus and labels the output as incorrect. An error localization annotator identifies step 5 as the first-error step, classifies the error type as arithmetic slip, and marks the span as the multiplication operation. The downstream process reward model receives a signal that steps 1 through 4 are valid and that step 5 is the failure origin, which is the operationally useful signal for training a model to self-correct at the right point.
Common Failure Modes in Error Localization Labeling
Six failure modes recur across error localization annotation programs. Each has a detection signal and a remediation.
1. Anchoring on the final answer. Annotators who know the final answer is wrong work backward to find an error rather than forward-scanning from step one. Detection: compare annotator labels on traces with correct final answers versus wrong final answers; if agreement is systematically lower on correct-answer traces, anchoring is present. Fix: blind annotators to the final answer during step-level review, or require the reference solution to be constructed before the model trace is revealed.
2. Mislabeling propagated errors as first errors. The step where an error becomes visible is not necessarily the step where it originated. Detection: cross-check annotator labels against programmatic step-level verification where available; systematic downstream bias indicates propagation confusion. Fix: add explicit training on error propagation with worked examples in the annotator calibration set.
3. Inconsistent step segmentation. Two annotators segment the same trace at different granularities, making step-index labels incomparable. Detection: measure segmentation agreement as a separate metric before measuring error-location agreement. Fix: enforce a domain-specific segmentation rubric with examples of correct and incorrect segmentation decisions.
4. Taxonomy drift. Error type labels shift in meaning as annotators develop personal interpretations of category boundaries. Detection: periodic gold-task recalibration; measure error-type agreement against gold labels monthly. Fix: update the taxonomy with clarifying examples at each recalibration cycle. The taxonomy construction and maintenance process should be treated as a living artifact, not a one-time deliverable.
5. Annotator-model agreement inflation. Annotators who have reviewed many model outputs in a domain begin to accept model-typical reasoning patterns as correct, even when those patterns are subtly wrong. Detection: introduce adversarial gold tasks where the model's reasoning is plausible but wrong; measure annotator pass rate on these tasks over time. Fix: rotate gold tasks and include novel error types not seen in prior batches.
6. Missing tie-breaking protocol for ambiguous steps. Some steps are genuinely ambiguous: they are wrong under one valid interpretation of the problem and correct under another. Without a protocol, annotators resolve ambiguity inconsistently. Detection: flag steps where annotator disagreement exceeds a defined threshold and review them manually. Fix: for ambiguous cases, require annotators to state the interpretation under which the step is being evaluated, and adjudicate via the process described in the Chiron Data Labs post on ties, ambiguity, and both-wrong cases in preference datasets.
Where This Approach Breaks Down
Error localization labeling assumes that a correct reference solution path exists and is known to the annotator. In open-ended generation tasks, creative writing, or strategic planning, there is no single correct path, and the first-error-step framing does not apply.
It also assumes that errors are localizable to a single step. Some failure modes are distributed: a model may apply a consistent but wrong heuristic across every step of a trace, making the entire trace wrong without a single identifiable first-error step. In these cases, outcome-level labeling with an explanation of the systematic error is more informative than a step index.
Finally, difficulty calibration drifts. A task that reliably elicits step-level errors from frontier models today may be solved correctly within months as models improve. Error localization programs require ongoing difficulty monitoring, measured empirically against current model versions, not assumed from the original task design.
FAQ
What is the difference between process supervision and error localization labeling?
Process supervision assigns a correctness score to every step in a reasoning trace. Error localization labeling identifies only the first step that fails. Error localization is a component of process supervision data collection: it is the annotation task that produces the step-index labels from which step-level reward model training data is constructed.
How many annotators are needed per trace for reliable error localization labels?
A minimum of two independent expert annotators per trace is required to compute inter-annotator agreement. For domains where step-level errors are subtle (structural engineering, PLC logic, VLSI timing analysis), three annotators with adjudication on disagreement is the operationally sound standard. Agreement should be measured separately for step index, error type, and error span, as reliability differs across these targets.
Can LLM-as-judge replace human experts for error localization in technical domains?
For mathematical reasoning with programmatic verification available, LLM-as-judge can handle first-pass segmentation and flag candidate error steps reliably. For domains where correctness is domain-dependent and not computable (structural design decisions, manufacturing process selection, PLC safety logic), LLM-as-judge agreement with expert annotators is not yet sufficient for production use without human adjudication on disagreements. Results vary by model, scaffold, and date.
What inter-annotator agreement threshold is acceptable for step-index labels?
Cohen's kappa above 0.70 is a conventional threshold for substantial agreement in annotation tasks. For error localization step-index labels in technical domains, kappa below 0.60 on a calibration set indicates that the segmentation rubric or annotator training is insufficient and must be revised before production annotation begins. Treat the calibration phase as a rubric validation exercise, not a warm-up.
How does error localization labeling interact with reward hacking?
A process reward model trained on error localization labels can be hacked if the model learns to produce traces that satisfy the step-level verifier without actually reasoning correctly. The mitigation is to include adversarial traces in the training set: outputs where each step passes surface-level checks but the aggregate reasoning is wrong. These must be authored by domain experts who understand the failure modes, not generated synthetically from correct examples.
What This Means in Practice
Error localization labeling is not a labeling task dressed up in technical language. It is an expert review discipline with a structured output format, and the quality of every downstream process reward model depends on how well the upstream annotation protocol handles segmentation, reference-solution construction, taxonomy consistency, and verifier design. The failure modes are operational, not theoretical. They appear in production pipelines, degrade label quality silently, and are detectable only if the right agreement metrics are being measured at the right granularity.
If you are building process supervision data or step-level evals in a domain where correctness is not computable by a general-purpose checker, talk to Chiron Data Labs about expert-authored error localization tasks for your domain.
Have questions or want personalised guidance? Contact us and we'll be happy to help.