Post-Processor Dialects (Fanuc, Haas, Siemens): Evaluating Dialect Awareness

Post-Processor Dialects (Fanuc, Haas, Siemens): Evaluating Dialect Awareness

CNC post-processors are not interchangeable. A G-code file that runs correctly on a Fanuc 0i-MF will fault on a Siemens Sinumerik 840D. A canned cycle that Haas interprets as a peck-drilling command means something different in Fanuc dialect. For a language model generating or reviewing CNC programs, getting the controller family right is not a style preference. It is a correctness criterion. Evaluating post-processor dialect awareness in models requires the same rigour applied to any safety-critical output: verifiable ground truth, controller-specific rubrics, and failure-mode analysis grounded in how each dialect actually diverges. This post defines what that evaluation looks like in practice.

Answer Capsule: Evaluating post-processor dialect awareness means testing whether a model produces syntactically valid and semantically correct G-code for a specific controller family (Fanuc, Haas, Siemens) rather than generic G-code. Evaluation requires controller-specific verifiers, dialect-tagged task sets authored by practising CNC programmers, and rubrics that score cycle syntax, address conventions, modal state management, and machine-specific parameter handling separately.

Why Post-Processor Dialects Create a Distinct Evaluation Problem

The three dominant controller families share ISO 6983 as a common ancestor but diverge in ways that are operationally significant. Fanuc, Haas, and Siemens each extend the base standard with proprietary cycles, address conventions, and modal behaviours. A model that has absorbed large volumes of generic G-code from the web will produce plausible-looking programs that fail on specific controllers.

The evaluation problem is harder than it appears because many errors are silent at the syntax level. A Fanuc-style G83 peck-drilling cycle with Q (peck depth) expressed as a positive value will parse without error on a Haas controller but may behave differently depending on firmware version and parameter settings. Siemens Sinumerik uses a fundamentally different cycle call structure (CYCLE83 as a modal subroutine with named parameters) that shares no surface syntax with either Fanuc or Haas. A model that conflates these is not making a small error. It is generating a program that could crash a spindle.

Generic evals that score G-code by syntactic plausibility miss this entirely. Dialect awareness requires tasks that are explicitly tagged by controller family, authored by programmers who work on those specific controllers, and verified against controller documentation or simulation environments.

How the Three Major Dialects Diverge: A Structured Comparison

Understanding where dialects diverge is prerequisite to designing tasks that test those divergences. The table below covers the axes most likely to produce model failures.

Feature

Fanuc (e.g. 0i, 30i)

Haas (NGC / Classic)

Siemens Sinumerik (840D sl)

Canned cycle syntax

G81-G89 with address-based parameters (R, Z, Q, P)

G81-G89, largely Fanuc-compatible but with Haas-specific extensions and parameter differences

Named cycles (CYCLE81, CYCLE83, CYCLE840) with positional or keyword arguments

Subprogram call

M98 P[program number] L[repeat count]

M97 (local) / M98 (external), line-number based variants

L[name] or CALL with block structure; no M98 equivalent

Tool length compensation

G43 H[offset number]

G43 H[offset number], compatible; Haas adds dynamic work offsets

TOOL CALL with D word; G43/G44 not native

Coordinate rotation

G68 / G69 with R (angle)

G68 / G69, compatible subset

ROT, AROT, TRANS as transformation frames

Variable / macro syntax

Custom Macro B: #[n] variables, IF/GOTO

Haas macros: compatible with Custom Macro B subset

R parameters (R0-R299) and system variables; structured programming with IF/WHILE/FOR

Program end

M30 (rewind and reset)

M30 or M99 depending on context

M30 or RET in subroutines; END_LABEL constructs

Each row in this table is a potential task axis. A well-designed eval draws tasks from multiple axes and requires the model to produce output correct for a specified controller, not generically plausible output.

Designing Tasks That Test Dialect Awareness

A dialect-aware eval task has four required components: a controller specification, a machining intent description, a verifiable correct output, and a rubric that scores dialect-specific features independently of general G-code correctness.

The controller specification must be precise. Stating "Fanuc" is insufficient; Fanuc 0i-MF and Fanuc 30i-B differ in available cycles and parameter handling. Haas NGC and Haas Classic Control differ in macro syntax. Siemens 840D sl and 828D differ in available transformation frames. Tasks authored without this precision produce ambiguous ground truth.

Machining intent descriptions should be drawn from real manufacturing scenarios: a 4-axis contour on an aluminium housing, a tapping cycle on a cast iron flange, a subprogram-based bolt-hole pattern. The intent description must be solvable with a unique correct approach for the specified controller so that the verifier has an unambiguous reference.

The rubric scores at minimum four dimensions:

  1. Cycle syntax correctness: are the cycle call, address letters, and parameter values correct for the specified controller?

  2. Modal state management: does the program correctly establish and cancel modal states (compensation, absolute/incremental, feed mode)?

  3. Address convention compliance: are addresses used in ways the specified controller accepts (sign conventions, decimal point requirements, leading zeros)?

  4. Machine-specific parameter handling: are controller-specific parameters (Haas setting numbers, Siemens machine data references, Fanuc parameter-dependent behaviours) handled correctly or appropriately avoided?

Scoring each dimension separately matters because models fail on different dimensions for different controllers. A model may produce correct cycle syntax for Fanuc but collapse on Siemens transformation frame syntax while handling modal state management acceptably in both. Aggregate scores hide this.

Verifier Design for G-Code Dialect Tasks

A task without a reliable verifier is not a usable training or eval signal. For G-code dialect tasks, three verifier tiers are practical.

Tier 1: Syntactic parser. A controller-specific parser checks that every address is valid for the specified controller family, that cycle calls use the correct format, and that the program structure (block numbering, program open/close) conforms. This catches the most obvious failures and is fast enough to run at scale. Open-source G-code parsers exist but are not controller-specific; dialect-aware parsers require customisation against controller documentation.

Tier 2: Simulation. Several CAM vendors and independent developers offer G-code simulation environments that model specific controller behaviours. Running generated programs through a controller-matched simulator catches modal state errors, tool path deviations from intent, and cycle parameter errors that a syntactic parser misses. Simulation is slower and requires a correctly configured virtual machine, but it produces a pass/fail signal grounded in controller behaviour rather than documentation interpretation.

Tier 3: Expert review. For tasks where the machining intent involves judgement (optimal cycle selection, feed and speed appropriateness, approach and retract strategy), expert review by a practising CNC programmer or applications engineer is the only reliable verifier. Expert review is expensive and slow. It should be reserved for tasks that clear Tier 1 and Tier 2 and require a quality signal on dimensions that simulators do not score.

The right verifier stack depends on task type. Canned cycle syntax tasks can often be fully verified at Tier 1 and Tier 2. Macro programming tasks and complex 4- or 5-axis programs require Tier 3 for the quality dimensions that matter most to post-training. For more on how expert judgment integrates with reward model evaluation, see the discussion of evaluating domain-specific reward models with expert judgments.

Worked Example: A Dialect-Tagged Peck Drilling Task

Illustrative example. Numbers and outputs are constructed to demonstrate the evaluation method; they do not represent a specific model evaluation result.

Task specification: Controller: Fanuc 0i-MF. Operation: peck drilling, 12mm diameter through-hole, 45mm deep, 5mm peck increment, 0.3 second dwell at bottom, coolant on. Material: mild steel. Starting position: X50.0 Y30.0, tool already at safe Z height, tool length compensation active on H01.

Reference output (abbreviated):

G90 G94 G21
G43 Z50.0 H01
M08
G83 X50.0 Y30.0 Z-45.0 R5.0 Q5.0 P300 F120.
G80
M09

Rubric scoring for this task:

  • Cycle syntax (G83 with correct addresses): 0 or 1

  • Q value sign and units (positive, millimetres): 0 or 1

  • P value format (milliseconds as integer, not seconds): 0 or 1

  • G80 cancel after cycle: 0 or 1

  • Modal state (G90 absolute, G94 feed per minute, G21 metric): 0 or 1

A model that produces G73 (chip-break cycle) instead of G83 (full retract peck) scores zero on cycle syntax. A model that writes P0.3 instead of P300 scores zero on P value format. These are not the same error and they have different post-training implications. Tracking them separately produces more actionable failure-mode data than a single correctness score.

For evaluation frameworks that extend this approach to visual representations of engineering tasks, the methodology for evaluating VLMs on engineering drawings and GD&T tolerances covers analogous rubric design challenges.

Common Failure Modes in Dialect Awareness Evaluation

1. Controller-agnostic task authoring. Tasks that do not specify a controller family produce ambiguous ground truth. A model that generates valid Fanuc syntax for a task intended to test Siemens cannot be scored. Detection: audit task metadata for controller specification at the version level. Fix: require controller family and version as mandatory task fields; reject tasks without them.

2. Fanuc-majority training signal. Fanuc is the most documented controller family on the public web. Models trained on web-derived data produce Fanuc-style output by default, even when prompted for Siemens or Haas. Detection: measure per-controller pass rates separately; a model with high Fanuc pass rate and low Siemens pass rate shows this pattern. Fix: deliberately over-sample Siemens and Haas tasks in both training and eval sets; do not use aggregate pass rates as the primary metric.

3. Syntactic plausibility masking semantic errors. G-code is terse. A program with a wrong cycle parameter looks almost identical to a correct one. Syntactic parsers pass it. Detection: include simulation as Tier 2 verification; run tool path comparison against reference. Fix: do not rely on Tier 1 alone for cycle-parameter tasks.

4. Version conflation within a controller family. Haas NGC and Haas Classic differ in macro syntax and available functions. Tasks tagged only as "Haas" produce conflicting ground truth. Detection: check whether expert authors can agree on a single correct answer; high inter-annotator disagreement on a task often signals version ambiguity. Fix: version-tag all tasks; treat different controller versions as separate task classes.

5. Rubric collapse to a single correctness score. Summing rubric dimensions into one score hides which dialect features a model handles reliably. A model that always cancels modal state correctly but consistently fails on Siemens cycle argument syntax looks mediocre on an aggregate score. Detection: report per-dimension pass rates broken out by controller. Fix: store and report rubric dimension scores separately; aggregate only for headline reporting.

6. Expert authors without controller-specific experience. A general CNC programmer may know Fanuc well and Siemens only in principle. Tasks authored from documentation rather than machine-side experience tend to miss parameter-dependent behaviours and firmware-specific edge cases. Detection: calibrate authors with gold tasks that include known edge cases; check whether author outputs match simulator results. Fix: vet authors by controller family, not just by general CNC knowledge. The principles behind this vetting process apply broadly to expert sourcing, as covered in the discussion of evaluating PRMs with held-out expert step judgments.

Where This Approach Breaks Down

Simulation-based verification covers the controller behaviours that simulators model. It does not cover machine-specific parameter settings that vary by installation, custom macro libraries loaded on a specific machine, or post-processor output from CAM software that uses non-standard extensions. Tasks intended to test these behaviours require expert review and cannot be fully automated.

Dialect awareness also drifts as controllers receive firmware updates. A task authored against Fanuc 0i-MF Series 1 documentation may not correctly represent Series 2 behaviour for specific cycles. Eval sets require dated provenance and periodic re-validation against current documentation. Pass rates measured today against a specific model version will not hold as models improve or as controller documentation evolves.

Finally, dialect-aware evaluation addresses syntactic and semantic correctness for a specified controller. It does not evaluate whether the machining strategy is optimal, whether feeds and speeds are appropriate for the material, or whether the program is safe to run without further review. Those dimensions require separate rubrics and separate expert qualifications.

Frequently Asked Questions

What is the minimum task set size for a reliable dialect awareness eval?

There is no universal minimum; the required sample size depends on the variance of the metric and the effect size you need to detect. For a per-controller pass rate with a target precision of plus or minus 5 percentage points at 95% confidence, a rough estimate using a normal approximation requires roughly 400 tasks per controller family. Tasks should be stratified across cycle types, axis count, and programming constructs to avoid coverage gaps. Treat this as a floor, not a target.

Can a single model be evaluated across all three controller families with the same task set?

Only if tasks are dialect-tagged and scored with controller-specific rubrics. A shared task set with shared rubrics produces scores that conflate dialect-specific failures with general G-code errors. The correct design is a single task corpus with per-task controller tags and per-controller rubric variants, evaluated and reported separately by controller family.

How do you handle tasks where Haas and Fanuc syntax is nearly identical?

Near-identical surface syntax is precisely where dialect awareness evaluation must probe deeper. Design tasks that exercise the divergence points: Haas-specific M-codes, Haas setting-number references, NGC macro syntax differences. If a task produces identical correct output for both controllers, it does not test dialect awareness. Remove it from the dialect-specific eval or reclassify it as a general G-code task.

Is LLM-as-judge viable for scoring G-code dialect correctness?

LLM-as-judge is not reliable for dialect-specific correctness because frontier models have the same Fanuc-majority bias described above. A judge model will tend to score Fanuc-style output as correct regardless of the specified controller. Programmatic verifiers and expert review are the appropriate scoring mechanisms. LLM-as-judge may be used for rubric dimensions that are not controller-specific, such as comment quality or code organisation, where the bias is less consequential. For a broader treatment of this question, see the analysis of evaluating diagram and schematic understanding in vision language models, which covers analogous judge reliability issues in technical domains.

How often should a dialect eval set be refreshed?

Refresh triggers are model-driven and documentation-driven. When frontier models reach a pass rate above roughly 80% on a controller family, the tasks at the easy end of the distribution have lost their signal value and should be replaced with harder tasks. When a controller manufacturer releases a firmware update that changes cycle behaviour, affected tasks must be re-validated. Neither trigger has a fixed calendar interval; track pass rates per model release and monitor manufacturer documentation actively.

What This Means in Practice

Post-processor dialect awareness is a narrow, verifiable, high-stakes competency. The evaluation infrastructure it requires is not complicated, but it demands controller-specific task authoring, tiered verification, and per-dimension rubric scoring. Generic G-code evals do not provide this signal. Models trained or evaluated on undifferentiated G-code data will produce Fanuc-biased output by default and will fail on Siemens and Haas in ways that aggregate scores conceal.

The path to reliable dialect awareness in a model runs through tasks authored by programmers who work on specific controllers, verified by simulators configured for those controllers, and scored by rubrics that treat each dialect feature as a separate dimension. That is the level of specificity the problem requires.

If you are building evals or post-training data pipelines in CNC, CAM, or manufacturing domains, get in touch with Chiron Data Labs.

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

CNC post-processors are not interchangeable. A G-code file that runs correctly on a Fanuc 0i-MF will fault on a Siemens Sinumerik 840D. A canned cycle that Haas interprets as a peck-drilling command means something different in Fanuc dialect. For a language model generating or reviewing CNC programs, getting the controller family right is not a style preference. It is a correctness criterion. Evaluating post-processor dialect awareness in models requires the same rigour applied to any safety-critical output: verifiable ground truth, controller-specific rubrics, and failure-mode analysis grounded in how each dialect actually diverges. This post defines what that evaluation looks like in practice.

Answer Capsule: Evaluating post-processor dialect awareness means testing whether a model produces syntactically valid and semantically correct G-code for a specific controller family (Fanuc, Haas, Siemens) rather than generic G-code. Evaluation requires controller-specific verifiers, dialect-tagged task sets authored by practising CNC programmers, and rubrics that score cycle syntax, address conventions, modal state management, and machine-specific parameter handling separately.

Why Post-Processor Dialects Create a Distinct Evaluation Problem

The three dominant controller families share ISO 6983 as a common ancestor but diverge in ways that are operationally significant. Fanuc, Haas, and Siemens each extend the base standard with proprietary cycles, address conventions, and modal behaviours. A model that has absorbed large volumes of generic G-code from the web will produce plausible-looking programs that fail on specific controllers.

The evaluation problem is harder than it appears because many errors are silent at the syntax level. A Fanuc-style G83 peck-drilling cycle with Q (peck depth) expressed as a positive value will parse without error on a Haas controller but may behave differently depending on firmware version and parameter settings. Siemens Sinumerik uses a fundamentally different cycle call structure (CYCLE83 as a modal subroutine with named parameters) that shares no surface syntax with either Fanuc or Haas. A model that conflates these is not making a small error. It is generating a program that could crash a spindle.

Generic evals that score G-code by syntactic plausibility miss this entirely. Dialect awareness requires tasks that are explicitly tagged by controller family, authored by programmers who work on those specific controllers, and verified against controller documentation or simulation environments.

How the Three Major Dialects Diverge: A Structured Comparison

Understanding where dialects diverge is prerequisite to designing tasks that test those divergences. The table below covers the axes most likely to produce model failures.

Feature

Fanuc (e.g. 0i, 30i)

Haas (NGC / Classic)

Siemens Sinumerik (840D sl)

Canned cycle syntax

G81-G89 with address-based parameters (R, Z, Q, P)

G81-G89, largely Fanuc-compatible but with Haas-specific extensions and parameter differences

Named cycles (CYCLE81, CYCLE83, CYCLE840) with positional or keyword arguments

Subprogram call

M98 P[program number] L[repeat count]

M97 (local) / M98 (external), line-number based variants

L[name] or CALL with block structure; no M98 equivalent

Tool length compensation

G43 H[offset number]

G43 H[offset number], compatible; Haas adds dynamic work offsets

TOOL CALL with D word; G43/G44 not native

Coordinate rotation

G68 / G69 with R (angle)

G68 / G69, compatible subset

ROT, AROT, TRANS as transformation frames

Variable / macro syntax

Custom Macro B: #[n] variables, IF/GOTO

Haas macros: compatible with Custom Macro B subset

R parameters (R0-R299) and system variables; structured programming with IF/WHILE/FOR

Program end

M30 (rewind and reset)

M30 or M99 depending on context

M30 or RET in subroutines; END_LABEL constructs

Each row in this table is a potential task axis. A well-designed eval draws tasks from multiple axes and requires the model to produce output correct for a specified controller, not generically plausible output.

Designing Tasks That Test Dialect Awareness

A dialect-aware eval task has four required components: a controller specification, a machining intent description, a verifiable correct output, and a rubric that scores dialect-specific features independently of general G-code correctness.

The controller specification must be precise. Stating "Fanuc" is insufficient; Fanuc 0i-MF and Fanuc 30i-B differ in available cycles and parameter handling. Haas NGC and Haas Classic Control differ in macro syntax. Siemens 840D sl and 828D differ in available transformation frames. Tasks authored without this precision produce ambiguous ground truth.

Machining intent descriptions should be drawn from real manufacturing scenarios: a 4-axis contour on an aluminium housing, a tapping cycle on a cast iron flange, a subprogram-based bolt-hole pattern. The intent description must be solvable with a unique correct approach for the specified controller so that the verifier has an unambiguous reference.

The rubric scores at minimum four dimensions:

  1. Cycle syntax correctness: are the cycle call, address letters, and parameter values correct for the specified controller?

  2. Modal state management: does the program correctly establish and cancel modal states (compensation, absolute/incremental, feed mode)?

  3. Address convention compliance: are addresses used in ways the specified controller accepts (sign conventions, decimal point requirements, leading zeros)?

  4. Machine-specific parameter handling: are controller-specific parameters (Haas setting numbers, Siemens machine data references, Fanuc parameter-dependent behaviours) handled correctly or appropriately avoided?

Scoring each dimension separately matters because models fail on different dimensions for different controllers. A model may produce correct cycle syntax for Fanuc but collapse on Siemens transformation frame syntax while handling modal state management acceptably in both. Aggregate scores hide this.

Verifier Design for G-Code Dialect Tasks

A task without a reliable verifier is not a usable training or eval signal. For G-code dialect tasks, three verifier tiers are practical.

Tier 1: Syntactic parser. A controller-specific parser checks that every address is valid for the specified controller family, that cycle calls use the correct format, and that the program structure (block numbering, program open/close) conforms. This catches the most obvious failures and is fast enough to run at scale. Open-source G-code parsers exist but are not controller-specific; dialect-aware parsers require customisation against controller documentation.

Tier 2: Simulation. Several CAM vendors and independent developers offer G-code simulation environments that model specific controller behaviours. Running generated programs through a controller-matched simulator catches modal state errors, tool path deviations from intent, and cycle parameter errors that a syntactic parser misses. Simulation is slower and requires a correctly configured virtual machine, but it produces a pass/fail signal grounded in controller behaviour rather than documentation interpretation.

Tier 3: Expert review. For tasks where the machining intent involves judgement (optimal cycle selection, feed and speed appropriateness, approach and retract strategy), expert review by a practising CNC programmer or applications engineer is the only reliable verifier. Expert review is expensive and slow. It should be reserved for tasks that clear Tier 1 and Tier 2 and require a quality signal on dimensions that simulators do not score.

The right verifier stack depends on task type. Canned cycle syntax tasks can often be fully verified at Tier 1 and Tier 2. Macro programming tasks and complex 4- or 5-axis programs require Tier 3 for the quality dimensions that matter most to post-training. For more on how expert judgment integrates with reward model evaluation, see the discussion of evaluating domain-specific reward models with expert judgments.

Worked Example: A Dialect-Tagged Peck Drilling Task

Illustrative example. Numbers and outputs are constructed to demonstrate the evaluation method; they do not represent a specific model evaluation result.

Task specification: Controller: Fanuc 0i-MF. Operation: peck drilling, 12mm diameter through-hole, 45mm deep, 5mm peck increment, 0.3 second dwell at bottom, coolant on. Material: mild steel. Starting position: X50.0 Y30.0, tool already at safe Z height, tool length compensation active on H01.

Reference output (abbreviated):

G90 G94 G21
G43 Z50.0 H01
M08
G83 X50.0 Y30.0 Z-45.0 R5.0 Q5.0 P300 F120.
G80
M09

Rubric scoring for this task:

  • Cycle syntax (G83 with correct addresses): 0 or 1

  • Q value sign and units (positive, millimetres): 0 or 1

  • P value format (milliseconds as integer, not seconds): 0 or 1

  • G80 cancel after cycle: 0 or 1

  • Modal state (G90 absolute, G94 feed per minute, G21 metric): 0 or 1

A model that produces G73 (chip-break cycle) instead of G83 (full retract peck) scores zero on cycle syntax. A model that writes P0.3 instead of P300 scores zero on P value format. These are not the same error and they have different post-training implications. Tracking them separately produces more actionable failure-mode data than a single correctness score.

For evaluation frameworks that extend this approach to visual representations of engineering tasks, the methodology for evaluating VLMs on engineering drawings and GD&T tolerances covers analogous rubric design challenges.

Common Failure Modes in Dialect Awareness Evaluation

1. Controller-agnostic task authoring. Tasks that do not specify a controller family produce ambiguous ground truth. A model that generates valid Fanuc syntax for a task intended to test Siemens cannot be scored. Detection: audit task metadata for controller specification at the version level. Fix: require controller family and version as mandatory task fields; reject tasks without them.

2. Fanuc-majority training signal. Fanuc is the most documented controller family on the public web. Models trained on web-derived data produce Fanuc-style output by default, even when prompted for Siemens or Haas. Detection: measure per-controller pass rates separately; a model with high Fanuc pass rate and low Siemens pass rate shows this pattern. Fix: deliberately over-sample Siemens and Haas tasks in both training and eval sets; do not use aggregate pass rates as the primary metric.

3. Syntactic plausibility masking semantic errors. G-code is terse. A program with a wrong cycle parameter looks almost identical to a correct one. Syntactic parsers pass it. Detection: include simulation as Tier 2 verification; run tool path comparison against reference. Fix: do not rely on Tier 1 alone for cycle-parameter tasks.

4. Version conflation within a controller family. Haas NGC and Haas Classic differ in macro syntax and available functions. Tasks tagged only as "Haas" produce conflicting ground truth. Detection: check whether expert authors can agree on a single correct answer; high inter-annotator disagreement on a task often signals version ambiguity. Fix: version-tag all tasks; treat different controller versions as separate task classes.

5. Rubric collapse to a single correctness score. Summing rubric dimensions into one score hides which dialect features a model handles reliably. A model that always cancels modal state correctly but consistently fails on Siemens cycle argument syntax looks mediocre on an aggregate score. Detection: report per-dimension pass rates broken out by controller. Fix: store and report rubric dimension scores separately; aggregate only for headline reporting.

6. Expert authors without controller-specific experience. A general CNC programmer may know Fanuc well and Siemens only in principle. Tasks authored from documentation rather than machine-side experience tend to miss parameter-dependent behaviours and firmware-specific edge cases. Detection: calibrate authors with gold tasks that include known edge cases; check whether author outputs match simulator results. Fix: vet authors by controller family, not just by general CNC knowledge. The principles behind this vetting process apply broadly to expert sourcing, as covered in the discussion of evaluating PRMs with held-out expert step judgments.

Where This Approach Breaks Down

Simulation-based verification covers the controller behaviours that simulators model. It does not cover machine-specific parameter settings that vary by installation, custom macro libraries loaded on a specific machine, or post-processor output from CAM software that uses non-standard extensions. Tasks intended to test these behaviours require expert review and cannot be fully automated.

Dialect awareness also drifts as controllers receive firmware updates. A task authored against Fanuc 0i-MF Series 1 documentation may not correctly represent Series 2 behaviour for specific cycles. Eval sets require dated provenance and periodic re-validation against current documentation. Pass rates measured today against a specific model version will not hold as models improve or as controller documentation evolves.

Finally, dialect-aware evaluation addresses syntactic and semantic correctness for a specified controller. It does not evaluate whether the machining strategy is optimal, whether feeds and speeds are appropriate for the material, or whether the program is safe to run without further review. Those dimensions require separate rubrics and separate expert qualifications.

Frequently Asked Questions

What is the minimum task set size for a reliable dialect awareness eval?

There is no universal minimum; the required sample size depends on the variance of the metric and the effect size you need to detect. For a per-controller pass rate with a target precision of plus or minus 5 percentage points at 95% confidence, a rough estimate using a normal approximation requires roughly 400 tasks per controller family. Tasks should be stratified across cycle types, axis count, and programming constructs to avoid coverage gaps. Treat this as a floor, not a target.

Can a single model be evaluated across all three controller families with the same task set?

Only if tasks are dialect-tagged and scored with controller-specific rubrics. A shared task set with shared rubrics produces scores that conflate dialect-specific failures with general G-code errors. The correct design is a single task corpus with per-task controller tags and per-controller rubric variants, evaluated and reported separately by controller family.

How do you handle tasks where Haas and Fanuc syntax is nearly identical?

Near-identical surface syntax is precisely where dialect awareness evaluation must probe deeper. Design tasks that exercise the divergence points: Haas-specific M-codes, Haas setting-number references, NGC macro syntax differences. If a task produces identical correct output for both controllers, it does not test dialect awareness. Remove it from the dialect-specific eval or reclassify it as a general G-code task.

Is LLM-as-judge viable for scoring G-code dialect correctness?

LLM-as-judge is not reliable for dialect-specific correctness because frontier models have the same Fanuc-majority bias described above. A judge model will tend to score Fanuc-style output as correct regardless of the specified controller. Programmatic verifiers and expert review are the appropriate scoring mechanisms. LLM-as-judge may be used for rubric dimensions that are not controller-specific, such as comment quality or code organisation, where the bias is less consequential. For a broader treatment of this question, see the analysis of evaluating diagram and schematic understanding in vision language models, which covers analogous judge reliability issues in technical domains.

How often should a dialect eval set be refreshed?

Refresh triggers are model-driven and documentation-driven. When frontier models reach a pass rate above roughly 80% on a controller family, the tasks at the easy end of the distribution have lost their signal value and should be replaced with harder tasks. When a controller manufacturer releases a firmware update that changes cycle behaviour, affected tasks must be re-validated. Neither trigger has a fixed calendar interval; track pass rates per model release and monitor manufacturer documentation actively.

What This Means in Practice

Post-processor dialect awareness is a narrow, verifiable, high-stakes competency. The evaluation infrastructure it requires is not complicated, but it demands controller-specific task authoring, tiered verification, and per-dimension rubric scoring. Generic G-code evals do not provide this signal. Models trained or evaluated on undifferentiated G-code data will produce Fanuc-biased output by default and will fail on Siemens and Haas in ways that aggregate scores conceal.

The path to reliable dialect awareness in a model runs through tasks authored by programmers who work on specific controllers, verified by simulators configured for those controllers, and scored by rubrics that treat each dialect feature as a separate dimension. That is the level of specificity the problem requires.

If you are building evals or post-training data pipelines in CNC, CAM, or manufacturing domains, 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