Evaluating Unit and Dimensional Analysis Errors in LLM Physics Reasoning

Evaluating Unit and Dimensional Analysis Errors in LLM Physics Reasoning

Evaluating unit and dimensional analysis errors in LLM physics reasoning is one of the most under-instrumented problems in post-training evaluation. A model can produce a numerically correct magnitude while attaching the wrong unit, or derive a dimensionally inconsistent expression that looks plausible in natural language. Neither failure is caught by standard accuracy metrics. For evals engineers and post-training researchers building physics-capable models, this gap produces misleading benchmark scores and reward signals that reinforce silent, systematic errors.

Direct Answer: What Unit and Dimensional Analysis Errors Look Like in LLM Outputs

Unit and dimensional analysis errors in LLM physics reasoning fall into four categories: unit omission (a numerical answer with no unit attached), unit substitution (a plausible but incorrect unit, such as watts instead of joules), dimensional inconsistency (an expression where left-hand and right-hand side dimensions do not match), and conversion error (a correct unit with an incorrect scaling factor). Standard string-match or numeric-tolerance verifiers catch none of these reliably without explicit dimensional parsing. Detection requires a verifier that tracks dimension vectors through each algebraic step, not just the final answer.

Why Standard Verifiers Miss Dimensional Errors

Most eval harnesses compare model outputs to a reference answer using numeric tolerance or exact string match. Both methods fail on unit errors for a structural reason: they operate on the scalar value, not the quantity.

A quantity in physics is a (magnitude, dimension) pair. The dimension of force is mass times length per time squared, written in SI base dimensions as M L T-2. A model that outputs 9.8 m/s for a force question has the right magnitude in a common gravitational context but the wrong dimension. A numeric-tolerance verifier comparing 9.8 to 9.8 passes it. A string-match verifier comparing "9.8 m/s" to "9.8 N" fails it, but only accidentally, because the verifier has no understanding of why the strings differ.

The correct architecture is a dimensional verifier that:

  1. Parses the model output into a (magnitude, unit string) pair.

  2. Maps the unit string to a dimension vector in a canonical basis, such as [M, L, T, I, Theta, N, J] for SI.

  3. Compares the dimension vector of the model output to the dimension vector of the reference answer.

  4. Separately checks the numeric magnitude after dimensional alignment.

This separates two distinct error types that aggregate metrics collapse: dimensional reasoning failure and arithmetic failure. Both matter for post-training, but they have different causes and different remedies.

Taxonomy of Unit and Dimensional Analysis Errors

A structured taxonomy is necessary before designing tasks or rubrics. The four error classes differ in how they arise, how they are detected, and what training signal they require.

Error Class

Example

Detection Method

Training Signal Needed

Unit omission

"The force is 12."

Parse for unit token; flag absence

Supervised examples with explicit unit attachment

Unit substitution

"The energy is 50 W" (should be J)

Dimension vector mismatch

Contrastive preference pairs on unit correctness

Dimensional inconsistency

Adding velocity to acceleration in an expression

Check dimensions at each operator node in the expression tree

Process reward on intermediate steps

Conversion error

"1 atm = 10,000 Pa" (correct: 101,325 Pa)

Numeric check after dimensional alignment

Retrieval-grounded SFT or verifier rejection

Unit substitution and dimensional inconsistency are the highest-signal error classes for post-training because they indicate a failure of dimensional reasoning, not just factual recall. Conversion errors are factual failures and respond to different interventions.

Evaluating Unit Errors: A Three-Step Protocol

The following protocol applies to any eval set targeting unit and dimensional analysis errors in LLM physics reasoning. It is designed to produce a clean, interpretable signal rather than a single aggregate score.

Step 1: Task construction. Each task must specify the quantity being requested (not just the numeric answer), the unit system expected (SI, CGS, imperial), and the domain context (mechanics, thermodynamics, electromagnetism). Tasks should not embed the expected unit in the question phrasing, because models learn to copy units from the prompt rather than derive them.

Step 2: Output parsing. Extract the model's final answer as a (magnitude, unit) pair. If the model produces a derivation, extract intermediate quantities as well. Use a unit-parsing library, such as Pint in Python, to normalize unit strings to a canonical dimension vector. Flag outputs where parsing fails as a separate error class: malformed unit expression.

Step 3: Scoring. Score each output on three independent dimensions:

  • Dimensional correctness (binary): dimension vector of model output matches reference.

  • Magnitude correctness (tolerance-based): numeric value is within an acceptable relative error after unit conversion to a canonical form.

  • Step-level dimensional consistency (for chain-of-thought outputs): each intermediate expression is dimensionally consistent. This requires a process reward model or expert step review.

Report the three scores separately. A model that scores high on magnitude correctness but low on dimensional correctness is producing numerically coincidental answers, not physically grounded reasoning. That distinction is invisible in a single accuracy metric.

Worked Example: Evaluating a Pressure Calculation Task

Illustrative example (numbers are constructed for demonstration; they do not represent any specific model's measured performance).

Task: A column of water 10 meters tall exerts pressure at its base. Calculate the gauge pressure in pascals. Assume density of water is 1000 kg/m3 and gravitational acceleration is 9.81 m/s2.

Reference answer: P = rho * g * h = 1000 * 9.81 * 10 = 98,100 Pa. Dimension check: [kg/m3] * [m/s2] * [m] = [kg/(m*s2)] = [Pa]. Correct.

Model output A: "The pressure is 98,100 N."
Dimension vector of N: M L T-2. Dimension vector of Pa: M L-1 T-2. Mismatch. Error class: unit substitution. Magnitude is numerically correct. This output passes a numeric verifier and fails a dimensional verifier.

Model output B: "P = rho * g * h = 1000 * 9.81 * 10 = 98,100 Pa." Intermediate step check: rho has dimension M L-3, g has dimension L T-2, h has dimension L. Product: M L-3 * L T-2 * L = M L-1 T-2 = Pa. All steps consistent. Full credit on all three scoring dimensions.

Model output C: "The pressure is 9,810 Pa."
Dimension vector: correct. Magnitude: off by a factor of 10. Error class: conversion error (likely dropped one order of magnitude in the multiplication). Passes dimensional check, fails magnitude check.

Three outputs, three distinct failure signatures. A single accuracy metric collapses them into two passes (B) and one fail (A and C), depending on tolerance. The three-score protocol distinguishes all three.

Common Failure Modes in Unit Error Evaluation

1. Prompting the unit into the question. If the task asks "what is the force in newtons," the model copies the unit from the prompt. Detection: audit tasks for unit mentions in the question stem. Fix: strip unit specifications from question phrasing; require the model to determine the appropriate unit.

2. Accepting dimensionally equivalent but contextually wrong units. Joules and newton-meters are dimensionally equivalent, but a task about electrical energy should not accept N*m. Detection: define a context-appropriate unit whitelist per task, not just a dimension vector. Fix: add a domain-appropriateness criterion to the rubric.

3. Failing to parse non-standard unit strings. Models produce unit strings such as "kg*m/s^2", "kgms-2", or "kilogram meters per second squared." A verifier that only recognizes canonical strings will flag these as errors. Detection: log parse failures separately; inspect the rate. Fix: normalize via a unit-parsing library before dimensional comparison.

4. Conflating dimensional analysis with unit conversion. A task that asks a model to convert 1 atm to pascals tests factual recall, not dimensional reasoning. Mixing these task types inflates or deflates dimensional reasoning scores depending on the model's retrieval strength. Detection: classify tasks by required skill before aggregating scores. Fix: report conversion-task accuracy and dimensional-reasoning accuracy as separate metrics.

5. Using chain-of-thought length as a proxy for reasoning quality. Longer derivations are not more dimensionally consistent. A model can produce a five-step derivation with a dimensional error at step two and a correct final answer by coincidence. Detection: score each intermediate step independently. Fix: implement step-level dimensional checks in the verifier, or use expert step review for a sample.

6. Eval set contamination from textbook problem sets. Standard physics problem sets are heavily represented in pretraining corpora. A model that has memorized the answer to a specific problem will produce the correct (magnitude, unit) pair without performing dimensional reasoning. Detection: test with structurally isomorphic but numerically novel variants of each problem. Fix: generate tasks with non-standard parameter values that break memorized answers. For a deeper treatment of physical reasoning evaluation, see evaluating physical reasoning in LLMs and VLMs.

Where This Approach Breaks Down

Dimensional verifiers assume the reference answer has a unique correct unit. Some physics quantities are legitimately expressible in multiple unit systems, and the choice depends on disciplinary convention, not correctness. A dimensional verifier cannot adjudicate between SI and CGS without a domain-specific policy decision baked into the rubric.

Step-level dimensional scoring requires either a process reward model trained on physics derivations or expert step review. Both are expensive at scale. For large eval sets, sampling a subset for step-level review and reporting the step-error rate as a separate diagnostic is more practical than full coverage.

Finally, dimensional analysis does not catch physical model errors. A model that applies the ideal gas law where a van der Waals correction is required will produce a dimensionally correct, numerically wrong answer. Dimensional correctness is a necessary condition for physical reasoning quality, not a sufficient one. Evaluation of deeper physical reasoning, including model selection and boundary condition reasoning, requires expert-authored tasks with rubrics that go beyond dimensional checks. The design of such rubrics is closely related to the challenges discussed in evaluating domain-specific reward models with expert judgments.

Frequently Asked Questions

What is the difference between a unit error and a dimensional analysis error?

A unit error is an incorrect unit attached to a correct or incorrect magnitude, for example reporting energy in watts instead of joules. A dimensional analysis error is a deeper failure: the model produces or accepts an expression where the dimensions on each side of an equation do not match, such as adding a velocity term to an acceleration term. Dimensional analysis errors indicate a failure of physical reasoning; unit errors may indicate only a labeling failure.

Can LLM-as-judge detect unit errors reliably?

LLM-as-judge is unreliable for unit and dimensional analysis errors without a structured rubric and explicit dimensional checking instructions. General-purpose judge models frequently accept dimensionally incorrect outputs when the magnitude is plausible. For unit error evaluation, a programmatic dimensional verifier is more reliable than a judge model. LLM-as-judge is more useful for scoring the quality of a derivation's reasoning steps after dimensional correctness has been verified programmatically. See the treatment of process reward model evaluation in evaluating PRMs with held-out expert step judgments.

How many tasks are needed for a statistically meaningful unit error rate?

The minimum sample size depends on the expected error rate and the precision required. For an estimated error rate of 0.20 and a margin of error of plus or minus 0.05 at 95% confidence, the standard formula n = z2 * p * (1-p) / e2 gives approximately 246 tasks. At lower expected error rates, more tasks are needed. Report confidence intervals alongside point estimates; a single accuracy figure without an interval is not interpretable for model comparison.

How should unit error tasks differ from standard physics benchmark tasks?

Standard physics benchmarks such as MMLU Physics or GPQA test factual recall and problem-solving accuracy, typically with multiple-choice formats that eliminate unit expression entirely. Unit error tasks must use open-ended numeric response formats, specify the unit system without specifying the unit, and include structurally novel parameter values that resist memorization. The task should require the model to derive the unit from dimensional analysis of the formula, not retrieve it from a memorized answer.

Does multimodal input change the unit error profile?

Vision-language models evaluated on physics diagrams, schematics, or data tables introduce additional unit error pathways: misreading axis labels, misinterpreting unit notation in diagrams, or failing to propagate units from a visual input into a derived quantity. The error taxonomy is the same, but the detection pipeline must include a stage that extracts units from the visual input and verifies they are correctly interpreted before the derivation begins. For related evaluation design, see evaluating diagram and schematic understanding in vision-language models.

What This Means in Practice

Unit and dimensional analysis errors are silent. They do not surface in aggregate accuracy metrics. They do not trigger obvious failures. They accumulate in post-training reward signals and produce models that are confidently wrong in ways that matter in every applied physics context, from engineering calculations to scientific simulation. The evaluation infrastructure to catch them exists: dimensional verifiers, three-score reporting, and structurally novel task construction. The gap is not technical. It is operational: most eval pipelines are not built to separate dimensional correctness from magnitude correctness, and most task sets are not constructed to resist memorization.

Building tasks that genuinely probe dimensional reasoning requires domain practitioners who understand both the physics and the failure modes. Chiron Data Labs builds expert-authored evaluation and training tasks in physics and engineering domains, with verifier design and difficulty calibration included. If you are building evals or RL environments in this domain, get in touch with Chiron Data Labs.

Have questions or want personalised guidance? Contact us and we'll be happy to help.

Evaluating unit and dimensional analysis errors in LLM physics reasoning is one of the most under-instrumented problems in post-training evaluation. A model can produce a numerically correct magnitude while attaching the wrong unit, or derive a dimensionally inconsistent expression that looks plausible in natural language. Neither failure is caught by standard accuracy metrics. For evals engineers and post-training researchers building physics-capable models, this gap produces misleading benchmark scores and reward signals that reinforce silent, systematic errors.

Direct Answer: What Unit and Dimensional Analysis Errors Look Like in LLM Outputs

Unit and dimensional analysis errors in LLM physics reasoning fall into four categories: unit omission (a numerical answer with no unit attached), unit substitution (a plausible but incorrect unit, such as watts instead of joules), dimensional inconsistency (an expression where left-hand and right-hand side dimensions do not match), and conversion error (a correct unit with an incorrect scaling factor). Standard string-match or numeric-tolerance verifiers catch none of these reliably without explicit dimensional parsing. Detection requires a verifier that tracks dimension vectors through each algebraic step, not just the final answer.

Why Standard Verifiers Miss Dimensional Errors

Most eval harnesses compare model outputs to a reference answer using numeric tolerance or exact string match. Both methods fail on unit errors for a structural reason: they operate on the scalar value, not the quantity.

A quantity in physics is a (magnitude, dimension) pair. The dimension of force is mass times length per time squared, written in SI base dimensions as M L T-2. A model that outputs 9.8 m/s for a force question has the right magnitude in a common gravitational context but the wrong dimension. A numeric-tolerance verifier comparing 9.8 to 9.8 passes it. A string-match verifier comparing "9.8 m/s" to "9.8 N" fails it, but only accidentally, because the verifier has no understanding of why the strings differ.

The correct architecture is a dimensional verifier that:

  1. Parses the model output into a (magnitude, unit string) pair.

  2. Maps the unit string to a dimension vector in a canonical basis, such as [M, L, T, I, Theta, N, J] for SI.

  3. Compares the dimension vector of the model output to the dimension vector of the reference answer.

  4. Separately checks the numeric magnitude after dimensional alignment.

This separates two distinct error types that aggregate metrics collapse: dimensional reasoning failure and arithmetic failure. Both matter for post-training, but they have different causes and different remedies.

Taxonomy of Unit and Dimensional Analysis Errors

A structured taxonomy is necessary before designing tasks or rubrics. The four error classes differ in how they arise, how they are detected, and what training signal they require.

Error Class

Example

Detection Method

Training Signal Needed

Unit omission

"The force is 12."

Parse for unit token; flag absence

Supervised examples with explicit unit attachment

Unit substitution

"The energy is 50 W" (should be J)

Dimension vector mismatch

Contrastive preference pairs on unit correctness

Dimensional inconsistency

Adding velocity to acceleration in an expression

Check dimensions at each operator node in the expression tree

Process reward on intermediate steps

Conversion error

"1 atm = 10,000 Pa" (correct: 101,325 Pa)

Numeric check after dimensional alignment

Retrieval-grounded SFT or verifier rejection

Unit substitution and dimensional inconsistency are the highest-signal error classes for post-training because they indicate a failure of dimensional reasoning, not just factual recall. Conversion errors are factual failures and respond to different interventions.

Evaluating Unit Errors: A Three-Step Protocol

The following protocol applies to any eval set targeting unit and dimensional analysis errors in LLM physics reasoning. It is designed to produce a clean, interpretable signal rather than a single aggregate score.

Step 1: Task construction. Each task must specify the quantity being requested (not just the numeric answer), the unit system expected (SI, CGS, imperial), and the domain context (mechanics, thermodynamics, electromagnetism). Tasks should not embed the expected unit in the question phrasing, because models learn to copy units from the prompt rather than derive them.

Step 2: Output parsing. Extract the model's final answer as a (magnitude, unit) pair. If the model produces a derivation, extract intermediate quantities as well. Use a unit-parsing library, such as Pint in Python, to normalize unit strings to a canonical dimension vector. Flag outputs where parsing fails as a separate error class: malformed unit expression.

Step 3: Scoring. Score each output on three independent dimensions:

  • Dimensional correctness (binary): dimension vector of model output matches reference.

  • Magnitude correctness (tolerance-based): numeric value is within an acceptable relative error after unit conversion to a canonical form.

  • Step-level dimensional consistency (for chain-of-thought outputs): each intermediate expression is dimensionally consistent. This requires a process reward model or expert step review.

Report the three scores separately. A model that scores high on magnitude correctness but low on dimensional correctness is producing numerically coincidental answers, not physically grounded reasoning. That distinction is invisible in a single accuracy metric.

Worked Example: Evaluating a Pressure Calculation Task

Illustrative example (numbers are constructed for demonstration; they do not represent any specific model's measured performance).

Task: A column of water 10 meters tall exerts pressure at its base. Calculate the gauge pressure in pascals. Assume density of water is 1000 kg/m3 and gravitational acceleration is 9.81 m/s2.

Reference answer: P = rho * g * h = 1000 * 9.81 * 10 = 98,100 Pa. Dimension check: [kg/m3] * [m/s2] * [m] = [kg/(m*s2)] = [Pa]. Correct.

Model output A: "The pressure is 98,100 N."
Dimension vector of N: M L T-2. Dimension vector of Pa: M L-1 T-2. Mismatch. Error class: unit substitution. Magnitude is numerically correct. This output passes a numeric verifier and fails a dimensional verifier.

Model output B: "P = rho * g * h = 1000 * 9.81 * 10 = 98,100 Pa." Intermediate step check: rho has dimension M L-3, g has dimension L T-2, h has dimension L. Product: M L-3 * L T-2 * L = M L-1 T-2 = Pa. All steps consistent. Full credit on all three scoring dimensions.

Model output C: "The pressure is 9,810 Pa."
Dimension vector: correct. Magnitude: off by a factor of 10. Error class: conversion error (likely dropped one order of magnitude in the multiplication). Passes dimensional check, fails magnitude check.

Three outputs, three distinct failure signatures. A single accuracy metric collapses them into two passes (B) and one fail (A and C), depending on tolerance. The three-score protocol distinguishes all three.

Common Failure Modes in Unit Error Evaluation

1. Prompting the unit into the question. If the task asks "what is the force in newtons," the model copies the unit from the prompt. Detection: audit tasks for unit mentions in the question stem. Fix: strip unit specifications from question phrasing; require the model to determine the appropriate unit.

2. Accepting dimensionally equivalent but contextually wrong units. Joules and newton-meters are dimensionally equivalent, but a task about electrical energy should not accept N*m. Detection: define a context-appropriate unit whitelist per task, not just a dimension vector. Fix: add a domain-appropriateness criterion to the rubric.

3. Failing to parse non-standard unit strings. Models produce unit strings such as "kg*m/s^2", "kgms-2", or "kilogram meters per second squared." A verifier that only recognizes canonical strings will flag these as errors. Detection: log parse failures separately; inspect the rate. Fix: normalize via a unit-parsing library before dimensional comparison.

4. Conflating dimensional analysis with unit conversion. A task that asks a model to convert 1 atm to pascals tests factual recall, not dimensional reasoning. Mixing these task types inflates or deflates dimensional reasoning scores depending on the model's retrieval strength. Detection: classify tasks by required skill before aggregating scores. Fix: report conversion-task accuracy and dimensional-reasoning accuracy as separate metrics.

5. Using chain-of-thought length as a proxy for reasoning quality. Longer derivations are not more dimensionally consistent. A model can produce a five-step derivation with a dimensional error at step two and a correct final answer by coincidence. Detection: score each intermediate step independently. Fix: implement step-level dimensional checks in the verifier, or use expert step review for a sample.

6. Eval set contamination from textbook problem sets. Standard physics problem sets are heavily represented in pretraining corpora. A model that has memorized the answer to a specific problem will produce the correct (magnitude, unit) pair without performing dimensional reasoning. Detection: test with structurally isomorphic but numerically novel variants of each problem. Fix: generate tasks with non-standard parameter values that break memorized answers. For a deeper treatment of physical reasoning evaluation, see evaluating physical reasoning in LLMs and VLMs.

Where This Approach Breaks Down

Dimensional verifiers assume the reference answer has a unique correct unit. Some physics quantities are legitimately expressible in multiple unit systems, and the choice depends on disciplinary convention, not correctness. A dimensional verifier cannot adjudicate between SI and CGS without a domain-specific policy decision baked into the rubric.

Step-level dimensional scoring requires either a process reward model trained on physics derivations or expert step review. Both are expensive at scale. For large eval sets, sampling a subset for step-level review and reporting the step-error rate as a separate diagnostic is more practical than full coverage.

Finally, dimensional analysis does not catch physical model errors. A model that applies the ideal gas law where a van der Waals correction is required will produce a dimensionally correct, numerically wrong answer. Dimensional correctness is a necessary condition for physical reasoning quality, not a sufficient one. Evaluation of deeper physical reasoning, including model selection and boundary condition reasoning, requires expert-authored tasks with rubrics that go beyond dimensional checks. The design of such rubrics is closely related to the challenges discussed in evaluating domain-specific reward models with expert judgments.

Frequently Asked Questions

What is the difference between a unit error and a dimensional analysis error?

A unit error is an incorrect unit attached to a correct or incorrect magnitude, for example reporting energy in watts instead of joules. A dimensional analysis error is a deeper failure: the model produces or accepts an expression where the dimensions on each side of an equation do not match, such as adding a velocity term to an acceleration term. Dimensional analysis errors indicate a failure of physical reasoning; unit errors may indicate only a labeling failure.

Can LLM-as-judge detect unit errors reliably?

LLM-as-judge is unreliable for unit and dimensional analysis errors without a structured rubric and explicit dimensional checking instructions. General-purpose judge models frequently accept dimensionally incorrect outputs when the magnitude is plausible. For unit error evaluation, a programmatic dimensional verifier is more reliable than a judge model. LLM-as-judge is more useful for scoring the quality of a derivation's reasoning steps after dimensional correctness has been verified programmatically. See the treatment of process reward model evaluation in evaluating PRMs with held-out expert step judgments.

How many tasks are needed for a statistically meaningful unit error rate?

The minimum sample size depends on the expected error rate and the precision required. For an estimated error rate of 0.20 and a margin of error of plus or minus 0.05 at 95% confidence, the standard formula n = z2 * p * (1-p) / e2 gives approximately 246 tasks. At lower expected error rates, more tasks are needed. Report confidence intervals alongside point estimates; a single accuracy figure without an interval is not interpretable for model comparison.

How should unit error tasks differ from standard physics benchmark tasks?

Standard physics benchmarks such as MMLU Physics or GPQA test factual recall and problem-solving accuracy, typically with multiple-choice formats that eliminate unit expression entirely. Unit error tasks must use open-ended numeric response formats, specify the unit system without specifying the unit, and include structurally novel parameter values that resist memorization. The task should require the model to derive the unit from dimensional analysis of the formula, not retrieve it from a memorized answer.

Does multimodal input change the unit error profile?

Vision-language models evaluated on physics diagrams, schematics, or data tables introduce additional unit error pathways: misreading axis labels, misinterpreting unit notation in diagrams, or failing to propagate units from a visual input into a derived quantity. The error taxonomy is the same, but the detection pipeline must include a stage that extracts units from the visual input and verifies they are correctly interpreted before the derivation begins. For related evaluation design, see evaluating diagram and schematic understanding in vision-language models.

What This Means in Practice

Unit and dimensional analysis errors are silent. They do not surface in aggregate accuracy metrics. They do not trigger obvious failures. They accumulate in post-training reward signals and produce models that are confidently wrong in ways that matter in every applied physics context, from engineering calculations to scientific simulation. The evaluation infrastructure to catch them exists: dimensional verifiers, three-score reporting, and structurally novel task construction. The gap is not technical. It is operational: most eval pipelines are not built to separate dimensional correctness from magnitude correctness, and most task sets are not constructed to resist memorization.

Building tasks that genuinely probe dimensional reasoning requires domain practitioners who understand both the physics and the failure modes. Chiron Data Labs builds expert-authored evaluation and training tasks in physics and engineering domains, with verifier design and difficulty calibration included. If you are building evals or RL environments in this domain, get in touch with Chiron Data Labs.

Have questions or want personalised guidance? Contact us and we'll be happy to help.

© 2026 CHIRON, SAN FRANCISCO, CA