Power Systems and Control Theory Evals for LLMs

Power Systems and Control Theory Evals for LLMs

Power systems engineering and control theory sit at the intersection of deep mathematical reasoning, domain convention, and physical constraint. A model that can recite the Nyquist stability criterion cannot necessarily apply it to a real grid topology under fault conditions. Power systems and control theory evals for LLMs expose that gap precisely. This post describes how to design, author, and verify evaluation tasks in this domain: what makes a task hard, how verification works, and where frontier models reliably fail.

Answer Capsule

Power systems and control theory evals for LLMs require tasks grounded in physical feasibility, mathematical derivation, and domain convention. Effective evals combine symbolic computation checks, simulation-based verifiers, and expert rubrics. Frontier models fail most consistently on multi-step stability analysis, per-unit system conversions, and controller synthesis under realistic constraints. Difficulty must be calibrated empirically per model, not assumed from task surface complexity.

What makes power systems and control theory tasks genuinely hard for LLMs?

Hardness in this domain is not surface complexity. It is the simultaneous requirement for symbolic precision, physical intuition, and adherence to engineering convention.

Three properties distinguish hard tasks from hard-looking tasks:

  1. Constraint coupling. Power flow problems couple voltage magnitude, angle, active power, and reactive power across every bus simultaneously. An error in one variable propagates through the entire solution. A model that gets the P-Q decoupling assumption wrong produces a plausible-looking but physically invalid result.

  2. Convention sensitivity. Per-unit normalization, reference frame selection (dq0, abc, phasor), and sign conventions for generator versus load vary by textbook and by regional practice. A task that is unambiguous to a practicing engineer is ambiguous to a model trained on mixed sources.

  3. Verification asymmetry. Checking a Bode plot sketch requires a different verifier than checking a closed-form transfer function. Some correct answers cannot be verified programmatically at all without a simulation environment.

Control theory adds its own failure surface. Root locus construction, Lyapunov stability proofs, and state-space realization all require step-by-step algebraic correctness. A model that skips an intermediate step and arrives at a numerically close answer has failed the task, even if the final number is within tolerance.

How to structure power systems and control theory eval tasks

Task structure determines what the verifier can check. Four task types cover most of the domain:

Task type

Example prompt

Verifier type

Expert review needed?

Derivation

Derive the transfer function of a PI controller in a voltage-controlled inverter

Symbolic algebra check

Yes, for intermediate steps

Numerical computation

Solve the 3-bus Newton-Raphson power flow to convergence

Programmatic (Python/MATPOWER reference)

No, if tolerance is defined

Stability analysis

Determine gain and phase margins from a given open-loop transfer function

Bode plot simulation or symbolic

Yes, for interpretation

Design synthesis

Design a PID controller meeting specified rise time and overshoot constraints

Simulation (step response check)

Yes, for constraint satisfaction reasoning

Derivation tasks are the highest signal for post-training. They require process-level correctness, not just answer-level correctness, which makes them suitable for process reward model data. Numerical computation tasks are the easiest to verify automatically but the easiest to game with a calculator scaffold. Design synthesis tasks are the hardest to verify and the most valuable for RL environments.

For more on how verifier design interacts with task type, see the Chiron Data Labs post on generating verifiable geometry checks for LLMs, which applies the same verification hierarchy to a parallel domain.

Verifier design for power systems and control theory evals

A task without a reliable verifier is not a usable eval or training signal. Verifier design in this domain has three tiers:

Tier 1: Programmatic exact check. Applies to numerical outputs with a defined tolerance. The reference solution is computed by a trusted solver (MATPOWER for power flow, SciPy control for transfer functions, MATLAB/Simulink for time-domain response). The model output is parsed, units are normalized, and the result is compared within a specified tolerance band. Tolerance must be set by an expert, not by the task author alone, because engineering tolerances are domain-specific.

Tier 2: Simulation-based check. Applies to controller designs and stability claims. The model's proposed controller parameters are inserted into a reference simulation. The simulation runs and checks whether the specified performance criteria (settling time, overshoot, steady-state error) are met. This requires a maintained simulation environment and a defined pass/fail threshold. Verifier bugs in this tier are common and must be caught by expert review of the verifier itself, not just the tasks.

Tier 3: Expert rubric. Applies to derivations, stability arguments, and any task where the reasoning process is the signal. The rubric specifies which intermediate steps are required, which simplifying assumptions are acceptable, and what constitutes a fatal error versus a minor notation error. Rubric design requires a domain expert and at least one calibration round against gold solutions.

Most power systems tasks require Tier 1 or Tier 2 for the final answer and Tier 3 for the reasoning trace. Running only Tier 1 on a derivation task will pass a model that copied the answer from a memorized source without demonstrating the derivation. That is a contamination risk, not a capability signal.

Worked illustrative example: gain margin task with a programmatic verifier

Illustrative example: numbers are constructed to demonstrate the verification protocol, not drawn from a published benchmark.

Task prompt: The open-loop transfer function of a unity-feedback control system is G(s) = 10 / (s(s+2)(s+5)). Compute the gain margin in decibels and the phase margin in degrees. State all intermediate steps, including the phase crossover frequency and the gain crossover frequency.

Reference solution (computed by SciPy control):

  • Phase crossover frequency: approximately 3.16 rad/s

  • Gain at phase crossover: approximately 0.1 (i.e., gain margin = 20 dB)

  • Gain crossover frequency: approximately 1.06 rad/s

  • Phase at gain crossover: approximately -128 degrees (phase margin approximately 52 degrees)

Verifier logic: Parse the model's stated gain margin and phase margin values. Accept gain margin within plus or minus 0.5 dB and phase margin within plus or minus 2 degrees of the reference. Flag any response that states the final values without showing the crossover frequency derivation as a process failure, even if the final numbers pass the tolerance check.

What this catches: A model that retrieves a memorized answer for this specific transfer function will pass the numerical check but fail the process check if it cannot reconstruct the crossover frequencies. A model that applies the correct method to a novel transfer function will pass both. The distinction matters for training signal quality.

This verification structure parallels the approach described in multi-document engineering evals, where answer-level and process-level checks serve different post-training objectives.

Common failure modes in power systems and control theory evals

1. Per-unit conversion errors. Models frequently drop the base conversion step or apply the wrong base MVA. Detection: check intermediate per-unit values against the reference, not just the final answer. Fix: require the model to state the base values explicitly as part of the answer format.

2. Reference frame confusion. Mixing phasor, dq0, and abc representations in the same derivation produces internally inconsistent results that look plausible. Detection: flag any response that uses phasor notation in a time-domain differential equation without an explicit transformation step. Fix: specify the required reference frame in the task prompt and penalize frame switching in the rubric.

3. Stability criterion misapplication. Models apply the Routh-Hurwitz criterion to systems where it does not apply (time-delay systems, distributed parameter systems) or apply the Nyquist criterion without accounting for open-loop poles on the imaginary axis. Detection: include a task variant where the standard criterion fails; a model that applies it anyway is flagged. Fix: author task variants that require the model to identify which criterion applies before applying it.

4. Controller synthesis without constraint checking. A model designs a PID controller with parameters that satisfy the performance spec in isolation but violate actuator saturation or sampling rate constraints stated elsewhere in the problem. Detection: the simulation-based verifier catches this if saturation limits are encoded in the simulation environment. Fix: encode all physical constraints in the verifier, not just the performance metrics. See also safety-critical error evals for how constraint violations are handled in adjacent manufacturing domains.

5. Plausible but non-unique answers accepted as correct. Many control design problems have multiple valid solutions. A verifier that checks only one reference solution will incorrectly fail valid alternative designs. Detection: run the verifier against three or four expert-authored alternative solutions before deploying the task. Fix: use simulation-based pass/fail criteria tied to performance specs, not to specific parameter values.

6. Benchmark saturation from textbook proximity. Tasks drawn from standard textbooks (Franklin, Powell and Emami-Naeini; Kundur; Bergen and Vittal) are likely present in training data. A model that scores well on these tasks may be retrieving rather than reasoning. Detection: compare pass@1 on textbook-sourced tasks versus novel tasks authored by practitioners. A large gap indicates retrieval. Fix: author tasks from practitioner-generated scenarios, not textbook problems. For context on how saturation timelines affect eval utility, see benchmark saturation timelines.

Where this approach breaks down

Simulation-based verifiers are only as reliable as the simulation environment. A verifier built on a simplified linear model will pass a controller design that fails in the nonlinear plant. This is not a model failure; it is a verifier scope limitation. Task authors must document the simulation assumptions explicitly.

Expert rubrics for derivation tasks require inter-annotator agreement calibration. Two power systems engineers may disagree on whether a simplifying assumption is acceptable. Without a calibration round, rubric scores have high variance and low utility as training signal.

Difficulty calibration drifts as models improve. A task that requires pass@16 today may reach pass@1 within six to twelve months on a next-generation model. Evals in this domain need scheduled re-baselining against current frontier models, not a one-time difficulty assessment. The mechanics of that process are described in re-baselining saturated evals.

Frequently asked questions

Can LLMs solve Newton-Raphson power flow problems reliably?

Current frontier models can execute the Newton-Raphson algorithm on small, well-posed bus systems when the problem is presented in a standard format. Reliability drops on systems with more than four buses, non-standard load conventions, or missing convergence criteria. Models also fail to flag divergence conditions, which is a safety-relevant failure mode for any downstream application.

What sample size is needed for a power systems eval to be statistically meaningful?

Sample size depends on the effect size you need to detect and the variance of model performance on the task class. For a domain-specific eval distinguishing two model variants, fewer than 50 tasks typically yields insufficient statistical power. A principled power analysis is required. The method is described in detail in minimum sample size for domain-specific evals.

Are synthetic power systems tasks a viable alternative to expert-authored ones?

Synthetic tasks generated by perturbing textbook problems or by prompting a frontier model are fast to produce but carry two risks: they may be contaminated by training data overlap, and they may contain physically invalid setups that an expert would catch immediately. Synthetic tasks work best as low-difficulty scaffolding. High-difficulty tasks that probe genuine reasoning require expert authorship and verification.

How do you verify a Lyapunov stability proof from a model?

Lyapunov proofs require checking that the candidate function is positive definite and that its time derivative is negative definite along system trajectories. Programmatic verification is possible for polynomial systems using sum-of-squares methods (DSOS/SDSOS solvers). For non-polynomial systems, expert review of each step is required. Automated checking of the full proof is not reliably available for general nonlinear systems.

How do power systems evals differ from general math reasoning evals?

General math reasoning evals (GSM8K, MATH, AIME) test symbolic manipulation and arithmetic. Power systems evals additionally require physical unit tracking, domain convention adherence, and constraint satisfaction across coupled variables. A model can score at ceiling on MATH and still fail a per-unit power flow task. The failure mode is domain convention, not arithmetic.

What this means in practice

Power systems and control theory are among the most verification-friendly engineering domains for LLM evals. Simulation environments exist. Reference solvers are available. Physical constraints are well-defined. The gap is not tooling; it is expert task authorship that produces novel, physically valid, practitioner-grounded scenarios that frontier models cannot retrieve from training data.

Difficulty calibration must be empirical and scheduled. A task that discriminates models today may not discriminate models in twelve months. Eval suites in this domain need the same re-baselining discipline applied to any rapidly saturating benchmark. For teams building evals or RL environments in power systems, control theory, or adjacent engineering domains, talk to Chiron Data Labs about expert-authored tasks for your domain at chirondatalabs.com.

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

Power systems engineering and control theory sit at the intersection of deep mathematical reasoning, domain convention, and physical constraint. A model that can recite the Nyquist stability criterion cannot necessarily apply it to a real grid topology under fault conditions. Power systems and control theory evals for LLMs expose that gap precisely. This post describes how to design, author, and verify evaluation tasks in this domain: what makes a task hard, how verification works, and where frontier models reliably fail.

Answer Capsule

Power systems and control theory evals for LLMs require tasks grounded in physical feasibility, mathematical derivation, and domain convention. Effective evals combine symbolic computation checks, simulation-based verifiers, and expert rubrics. Frontier models fail most consistently on multi-step stability analysis, per-unit system conversions, and controller synthesis under realistic constraints. Difficulty must be calibrated empirically per model, not assumed from task surface complexity.

What makes power systems and control theory tasks genuinely hard for LLMs?

Hardness in this domain is not surface complexity. It is the simultaneous requirement for symbolic precision, physical intuition, and adherence to engineering convention.

Three properties distinguish hard tasks from hard-looking tasks:

  1. Constraint coupling. Power flow problems couple voltage magnitude, angle, active power, and reactive power across every bus simultaneously. An error in one variable propagates through the entire solution. A model that gets the P-Q decoupling assumption wrong produces a plausible-looking but physically invalid result.

  2. Convention sensitivity. Per-unit normalization, reference frame selection (dq0, abc, phasor), and sign conventions for generator versus load vary by textbook and by regional practice. A task that is unambiguous to a practicing engineer is ambiguous to a model trained on mixed sources.

  3. Verification asymmetry. Checking a Bode plot sketch requires a different verifier than checking a closed-form transfer function. Some correct answers cannot be verified programmatically at all without a simulation environment.

Control theory adds its own failure surface. Root locus construction, Lyapunov stability proofs, and state-space realization all require step-by-step algebraic correctness. A model that skips an intermediate step and arrives at a numerically close answer has failed the task, even if the final number is within tolerance.

How to structure power systems and control theory eval tasks

Task structure determines what the verifier can check. Four task types cover most of the domain:

Task type

Example prompt

Verifier type

Expert review needed?

Derivation

Derive the transfer function of a PI controller in a voltage-controlled inverter

Symbolic algebra check

Yes, for intermediate steps

Numerical computation

Solve the 3-bus Newton-Raphson power flow to convergence

Programmatic (Python/MATPOWER reference)

No, if tolerance is defined

Stability analysis

Determine gain and phase margins from a given open-loop transfer function

Bode plot simulation or symbolic

Yes, for interpretation

Design synthesis

Design a PID controller meeting specified rise time and overshoot constraints

Simulation (step response check)

Yes, for constraint satisfaction reasoning

Derivation tasks are the highest signal for post-training. They require process-level correctness, not just answer-level correctness, which makes them suitable for process reward model data. Numerical computation tasks are the easiest to verify automatically but the easiest to game with a calculator scaffold. Design synthesis tasks are the hardest to verify and the most valuable for RL environments.

For more on how verifier design interacts with task type, see the Chiron Data Labs post on generating verifiable geometry checks for LLMs, which applies the same verification hierarchy to a parallel domain.

Verifier design for power systems and control theory evals

A task without a reliable verifier is not a usable eval or training signal. Verifier design in this domain has three tiers:

Tier 1: Programmatic exact check. Applies to numerical outputs with a defined tolerance. The reference solution is computed by a trusted solver (MATPOWER for power flow, SciPy control for transfer functions, MATLAB/Simulink for time-domain response). The model output is parsed, units are normalized, and the result is compared within a specified tolerance band. Tolerance must be set by an expert, not by the task author alone, because engineering tolerances are domain-specific.

Tier 2: Simulation-based check. Applies to controller designs and stability claims. The model's proposed controller parameters are inserted into a reference simulation. The simulation runs and checks whether the specified performance criteria (settling time, overshoot, steady-state error) are met. This requires a maintained simulation environment and a defined pass/fail threshold. Verifier bugs in this tier are common and must be caught by expert review of the verifier itself, not just the tasks.

Tier 3: Expert rubric. Applies to derivations, stability arguments, and any task where the reasoning process is the signal. The rubric specifies which intermediate steps are required, which simplifying assumptions are acceptable, and what constitutes a fatal error versus a minor notation error. Rubric design requires a domain expert and at least one calibration round against gold solutions.

Most power systems tasks require Tier 1 or Tier 2 for the final answer and Tier 3 for the reasoning trace. Running only Tier 1 on a derivation task will pass a model that copied the answer from a memorized source without demonstrating the derivation. That is a contamination risk, not a capability signal.

Worked illustrative example: gain margin task with a programmatic verifier

Illustrative example: numbers are constructed to demonstrate the verification protocol, not drawn from a published benchmark.

Task prompt: The open-loop transfer function of a unity-feedback control system is G(s) = 10 / (s(s+2)(s+5)). Compute the gain margin in decibels and the phase margin in degrees. State all intermediate steps, including the phase crossover frequency and the gain crossover frequency.

Reference solution (computed by SciPy control):

  • Phase crossover frequency: approximately 3.16 rad/s

  • Gain at phase crossover: approximately 0.1 (i.e., gain margin = 20 dB)

  • Gain crossover frequency: approximately 1.06 rad/s

  • Phase at gain crossover: approximately -128 degrees (phase margin approximately 52 degrees)

Verifier logic: Parse the model's stated gain margin and phase margin values. Accept gain margin within plus or minus 0.5 dB and phase margin within plus or minus 2 degrees of the reference. Flag any response that states the final values without showing the crossover frequency derivation as a process failure, even if the final numbers pass the tolerance check.

What this catches: A model that retrieves a memorized answer for this specific transfer function will pass the numerical check but fail the process check if it cannot reconstruct the crossover frequencies. A model that applies the correct method to a novel transfer function will pass both. The distinction matters for training signal quality.

This verification structure parallels the approach described in multi-document engineering evals, where answer-level and process-level checks serve different post-training objectives.

Common failure modes in power systems and control theory evals

1. Per-unit conversion errors. Models frequently drop the base conversion step or apply the wrong base MVA. Detection: check intermediate per-unit values against the reference, not just the final answer. Fix: require the model to state the base values explicitly as part of the answer format.

2. Reference frame confusion. Mixing phasor, dq0, and abc representations in the same derivation produces internally inconsistent results that look plausible. Detection: flag any response that uses phasor notation in a time-domain differential equation without an explicit transformation step. Fix: specify the required reference frame in the task prompt and penalize frame switching in the rubric.

3. Stability criterion misapplication. Models apply the Routh-Hurwitz criterion to systems where it does not apply (time-delay systems, distributed parameter systems) or apply the Nyquist criterion without accounting for open-loop poles on the imaginary axis. Detection: include a task variant where the standard criterion fails; a model that applies it anyway is flagged. Fix: author task variants that require the model to identify which criterion applies before applying it.

4. Controller synthesis without constraint checking. A model designs a PID controller with parameters that satisfy the performance spec in isolation but violate actuator saturation or sampling rate constraints stated elsewhere in the problem. Detection: the simulation-based verifier catches this if saturation limits are encoded in the simulation environment. Fix: encode all physical constraints in the verifier, not just the performance metrics. See also safety-critical error evals for how constraint violations are handled in adjacent manufacturing domains.

5. Plausible but non-unique answers accepted as correct. Many control design problems have multiple valid solutions. A verifier that checks only one reference solution will incorrectly fail valid alternative designs. Detection: run the verifier against three or four expert-authored alternative solutions before deploying the task. Fix: use simulation-based pass/fail criteria tied to performance specs, not to specific parameter values.

6. Benchmark saturation from textbook proximity. Tasks drawn from standard textbooks (Franklin, Powell and Emami-Naeini; Kundur; Bergen and Vittal) are likely present in training data. A model that scores well on these tasks may be retrieving rather than reasoning. Detection: compare pass@1 on textbook-sourced tasks versus novel tasks authored by practitioners. A large gap indicates retrieval. Fix: author tasks from practitioner-generated scenarios, not textbook problems. For context on how saturation timelines affect eval utility, see benchmark saturation timelines.

Where this approach breaks down

Simulation-based verifiers are only as reliable as the simulation environment. A verifier built on a simplified linear model will pass a controller design that fails in the nonlinear plant. This is not a model failure; it is a verifier scope limitation. Task authors must document the simulation assumptions explicitly.

Expert rubrics for derivation tasks require inter-annotator agreement calibration. Two power systems engineers may disagree on whether a simplifying assumption is acceptable. Without a calibration round, rubric scores have high variance and low utility as training signal.

Difficulty calibration drifts as models improve. A task that requires pass@16 today may reach pass@1 within six to twelve months on a next-generation model. Evals in this domain need scheduled re-baselining against current frontier models, not a one-time difficulty assessment. The mechanics of that process are described in re-baselining saturated evals.

Frequently asked questions

Can LLMs solve Newton-Raphson power flow problems reliably?

Current frontier models can execute the Newton-Raphson algorithm on small, well-posed bus systems when the problem is presented in a standard format. Reliability drops on systems with more than four buses, non-standard load conventions, or missing convergence criteria. Models also fail to flag divergence conditions, which is a safety-relevant failure mode for any downstream application.

What sample size is needed for a power systems eval to be statistically meaningful?

Sample size depends on the effect size you need to detect and the variance of model performance on the task class. For a domain-specific eval distinguishing two model variants, fewer than 50 tasks typically yields insufficient statistical power. A principled power analysis is required. The method is described in detail in minimum sample size for domain-specific evals.

Are synthetic power systems tasks a viable alternative to expert-authored ones?

Synthetic tasks generated by perturbing textbook problems or by prompting a frontier model are fast to produce but carry two risks: they may be contaminated by training data overlap, and they may contain physically invalid setups that an expert would catch immediately. Synthetic tasks work best as low-difficulty scaffolding. High-difficulty tasks that probe genuine reasoning require expert authorship and verification.

How do you verify a Lyapunov stability proof from a model?

Lyapunov proofs require checking that the candidate function is positive definite and that its time derivative is negative definite along system trajectories. Programmatic verification is possible for polynomial systems using sum-of-squares methods (DSOS/SDSOS solvers). For non-polynomial systems, expert review of each step is required. Automated checking of the full proof is not reliably available for general nonlinear systems.

How do power systems evals differ from general math reasoning evals?

General math reasoning evals (GSM8K, MATH, AIME) test symbolic manipulation and arithmetic. Power systems evals additionally require physical unit tracking, domain convention adherence, and constraint satisfaction across coupled variables. A model can score at ceiling on MATH and still fail a per-unit power flow task. The failure mode is domain convention, not arithmetic.

What this means in practice

Power systems and control theory are among the most verification-friendly engineering domains for LLM evals. Simulation environments exist. Reference solvers are available. Physical constraints are well-defined. The gap is not tooling; it is expert task authorship that produces novel, physically valid, practitioner-grounded scenarios that frontier models cannot retrieve from training data.

Difficulty calibration must be empirical and scheduled. A task that discriminates models today may not discriminate models in twelve months. Eval suites in this domain need the same re-baselining discipline applied to any rapidly saturating benchmark. For teams building evals or RL environments in power systems, control theory, or adjacent engineering domains, talk to Chiron Data Labs about expert-authored tasks for your domain at chirondatalabs.com.

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

© 2026 CHIRON, SAN FRANCISCO, CA