Anchoring LLM tools to manufacturing ontologies eradicates domain-identifier hallucinations: in a controlled trial across six industry configurations, ontology-grounded parameters cut hallucination from 43% to 0%, enabling a single codebase to be reconfigured across domains without code changes.
Large language model (LLM)-based AI agents are increasingly deployed in manufacturing environments for analytics, quality management, and decision support. These agents demonstrate statistical fluency with domain terminology but lack grounded understanding of operational semantics -- the relational structure that connects equipment identifiers, process parameters, failure codes, and regulatory constraints within a specific production context. This paper identifies and formalizes the semantic training gap: a structural disconnect between how AI systems acquire domain vocabulary through training and how manufacturing operations define meaning through ontological relationships. We demonstrate that this gap causes operationally incorrect outputs even when model responses are linguistically precise, and that in multi-agent configurations it produces a compounding failure mode we term semantic drift. To close this gap, we present an architecture that embeds manufacturing ontology directly into the AI tool layer as a typed relational configuration, enforcing semantic constraints at runtime rather than relying on model training. The architecture is formalized as a three-operation interface contract -- resolve, contextualize, annotate -- with invariants enforced by an AIOps orchestration layer. In a controlled experiment across six industry configurations (72 tool invocations using Qwen3-32B), unconstrained tool parameters produced a 43% hallucination rate for domain identifiers; ontology-grounded parameters reduced this to 0%. We validate the approach through a digital twin analytics platform demonstrating that a single codebase with domain-specific ontology configurations eliminates tool-call hallucination and achieves cross-domain configurability without application code changes.
Summary
Main Finding
The paper identifies a distinct failure category—the "semantic training gap"—in industrial LLM-based agent systems: models learn domain vocabulary but not the operational relations that give terms their meaning in a production context. This gap causes a specific, high-cost hallucination mode (tool-call or parameter fabrication) and a multi-agent compounding failure (semantic drift). The authors propose an ontology-grounded tool architecture with a three-operation interface contract (resolve, contextualize, annotate) and an AIOps enforcement layer. In a controlled experiment across six industry configurations (72 tool invocations using Qwen3-32B), unconstrained tool parameters produced a 43% hallucination rate for domain identifiers; ontology-grounded parameters reduced this to 0%.
Key Points
- Semantic training gap: training gives statistical fluency (labels/taxonomies) but not operational meaning (ontological relations, constraints). This disconnect produces operationally incorrect but linguistically plausible outputs.
- Tool-call hallucination: LLMs fabricate programmatic parameters (e.g., station IDs). These hallucinated parameters can silently produce empty/incorrect data pulls and misleading downstream conclusions—distinct from factual hallucination.
- Semantic drift: In multi-agent settings, agents with different or unversioned semantic mappings diverge over time (tool federation gaps, version independence, parameter variance), producing systemic inconsistency.
- Interface contract: A three-operation contract for ontology-grounded tool execution:
- resolve: map free-form identifiers to canonical entities,
- contextualize: attach relational context (failure codes, upstream/downstream links, regulatory constraints),
- annotate: return structured, typed labels for downstream use. The contract enforces invariants including session consistency, version immutability, and circuit-breaking.
- Ontology design: A pragmatic "typed relational configuration" (not OWL axiomatization) implemented as Python modules exporting 45 required constants (plant config, equipment hierarchy, products, failure codes, inspection plans, tooling, certifications, etc.). Modules are 700–770 lines of pure data and validated at load time.
- Enforcement architecture (AIOps): Runtime enforcement via pre-execution validation (prevent invalid tool calls), mid-execution circuit breakers, and post-execution structuring (normalized outputs). This acts on tool-call parameters rather than only filtering text outputs.
- Empirical result: Across six industry verticals (aerospace, pharmaceutical, automotive, electronics, food & beverage, warehousing), unconstrained string parameters led to tool-parameter fabrication in 43% of invocations (72 calls). Using ontology-grounded parameters eliminated this (0% fabrication).
- Portability claim: Single codebase + domain-specific ontology modules allowed cross-domain configurability without changing application code. Integration sources suggested include OPC UA address spaces and AutomationML project files.
- Limitations acknowledged: current ontology is a practical typed config (not full OWL axioms), validation on structurally similar configs (future work needed for large heterogeneous topologies), and brownfield integration challenges.
Data & Methods
- Experimental apparatus
- Digital twin analytics platform generating MES-shaped, causally coherent synthetic data (Template-as-Ontology principle used; companion paper describes simulation architecture).
- Six domain configurations used as ontologies (each a Python module of 700–770 lines exporting 45 items). Typical structural size: 6 stations × 4 products for most domains (Food & Beverage used 14 stations).
- Ontology exports cover plant, equipment hierarchy, products, BOMs, failure codes, certifications, inspection plans, tooling, process parameters, workforce, etc.
- Model and invocation setup
- LLM: Qwen3-32B (32K context window), function-calling mode.
- Total tool invocations: 72 (across six domain configurations).
- Two conditions compared: unconstrained string parameters (agents allowed to generate identifiers freely) vs ontology-grounded parameters (parameters validated/resolved against loaded ontology).
- Validation & metrics
- Tool-call hallucination measured as fabrication of identifier values not present in the ontology/equipment hierarchy (i.e., queries that cannot map to real entities).
- Outcome: 43% identifier fabrication under unconstrained parameters; 0% with ontology-grounded parameters.
- Implementation notes
- Ontology modules validated at load time; missing required exports cause explicit errors.
- Cross-domain entity resolution supports site-local mapping; enterprise-global mapping considered for cross-site analytics.
- The architecture is lightweight (typed relational configs) by design to prioritize runtime enforcement and operational practicality over full formal axiomatization (OWL).
- Reproducibility constraints
- The digital twin and Template-as-Ontology framework are described; AutomationML/OPC UA integration is discussed as feasible sources for ontology population but was not implemented in this study.
- The paper includes a quantified, controlled comparison but does not report large-scale brownfield deployment results.
Implications for AI Economics
- Risk reduction and avoided costs
- Eliminating tool-call hallucination removes a class of silent, operationally misleading errors. In manufacturing, that can translate into fewer missed defects, fewer incorrect decisions, less rework, and lower risk of regulatory non-compliance—all of which have direct economic value.
- Shifts in investment priorities
- The results imply higher ROI from investing in ontology engineering, AIOps enforcement, and data/metadata integration than from purely model-centric mitigation (e.g., further fine-tuning). Enterprises should re-balance spend toward semantic engineering, tool-interface contracts, and runtime validation.
- Productivity and reuse
- A single codebase plus domain-specific ontology modules enables faster cross-domain deployment and reduces application development costs. This modularity lowers incremental cost to enter adjacent verticals or plants.
- Operational scalability for multi-agent systems
- Shared ontologies and enforced versioning prevent semantic drift, reducing coordination/maintenance overhead across agents and teams—lowering long-term operational costs of multi-agent systems.
- Compliance and auditability
- Typed, validated ontology modules and enforced interface contracts improve traceability and auditability of decisions—potentially reducing compliance costs and legal exposure in regulated industries (pharma, aerospace, food).
- Ongoing costs and tradeoffs
- Building and maintaining ontologies (especially in brownfield environments) requires engineering effort, governance, and integration with existing standards (OPC UA, AutomationML). These are upfront and recurring costs that must be budgeted.
- Governance needs: version management, site vs enterprise mappings, and change-control processes add organizational overhead but reduce downstream economic risk.
- Strategic recommendations (economic)
- Prioritize ontology-building for high-risk/high-value processes (quality gates, regulatory checkpoints).
- Implement runtime AIOps enforcement to shift error detection upstream (pre-execution) and reduce costly downstream remediation.
- Leverage existing industrial standards (OPC UA, AutomationML, ISA-95/B2MML) to lower manual mapping costs.
- Treat ontology and metadata engineering as strategic assets that unlock safer, cheaper LLM deployments across plants and domains.
Summary: For industrial AI deployments, the paper argues the economically sensible move is to invest in operational semantics (ontologies and runtime enforcement) rather than treating hallucination mitigation as only a model problem. The empirical reduction of tool-call hallucination from 43% to 0% demonstrates a high-leverage intervention that reduces silent operational errors and supports reusable, cross-domain AI agent systems.
Assessment
Claims (9)
| Claim | Direction | Confidence | Outcome | Details |
|---|---|---|---|---|
| LLM-based AI agents deployed in manufacturing demonstrate statistical fluency with domain terminology but lack grounded understanding of operational semantics. Other | negative | high | grounded understanding of operational semantics |
0.48
|
| There exists a 'semantic training gap': a structural disconnect between how AI systems acquire domain vocabulary through training and how manufacturing operations define meaning through ontological relationships. Other | negative | high | existence of semantic training gap (structural disconnect) |
0.08
|
| The semantic training gap causes operationally incorrect outputs even when model responses are linguistically precise. Output Quality | negative | high | operational correctness of outputs (vs. linguistic precision) |
0.48
|
| In multi-agent configurations the semantic training gap produces a compounding failure mode termed 'semantic drift'. Error Rate | negative | high | occurrence of semantic drift (compounding errors in multi-agent setups) |
0.48
|
| Embedding manufacturing ontology directly into the AI tool layer as a typed relational configuration enforces semantic constraints at runtime and closes the semantic training gap. Other | positive | high | enforcement of semantic constraints at runtime / closure of semantic gap |
0.48
|
| The architecture is formalized as a three-operation interface contract — resolve, contextualize, annotate — with invariants enforced by an AIOps orchestration layer. Other | positive | high | existence of a three-operation interface contract and invariant enforcement |
0.08
|
| In a controlled experiment across six industry configurations (72 tool invocations using Qwen3-32B), unconstrained tool parameters produced a 43% hallucination rate for domain identifiers. Error Rate | negative | high | hallucination rate for domain identifiers |
n=72
43% hallucination rate
0.48
|
| In the same controlled experiment, ontology-grounded parameters reduced domain-identifier hallucination to 0%. Error Rate | positive | high | hallucination rate for domain identifiers (ontology-grounded condition) |
n=72
0%
0.48
|
| A digital twin analytics platform validation shows that a single codebase with domain-specific ontology configurations eliminates tool-call hallucination and achieves cross-domain configurability without application code changes. Error Rate | positive | high | tool-call hallucination elimination and cross-domain configurability without app code changes |
0.48
|