Measuring AI hallucination with Ontologies
Why

In the AI era, trust matters more than ever — how can we evaluate how likely a model is to give the truth, and how prone it is to hallucinate? However, the definition of truth is not easy once we go beyond mathematical problems and start dealing with real-world objects.
So Mykhailo Flaks
Mykhailo FlaksPhD researcher in physics · Johannes Gutenberg University MainzDevelops quantum sensors for neuroimaging in Prof. At the University of Basel, used physics-informed neural networks to reconstruct magnetization from magnetic field images (Physical Review Applied 23, 044012). Co-author in Nature Communications 15, 8059 (2024). and I contribute to a project that aims to evaluate the precision, hallucination rate and critical thinking of AI. The challenge is to make the evaluation unbiased. Unlike existing benchmarks, we would like to involve neither humans nor other AI models in assessing the results.
What
For evidence that an answer is true, it has to fit a real-world model, so we pick ontologies: models of real life. An ontology model explicitly defines the concepts, relationships, properties and constraints of a domain. When we give an AI model a task together with an ontology model, we expect it to solve the task, follow the rules and clearly flag conflicts. Any move that contradicts the ontology model counts as a hallucination.
This approach lets us compare AI answers with “true” known in advance and classify them as true / false positives / negatives.
How
As a well-known ontology model that every AI model is familiar with, we picked a bunch of Rubik's cubes. The allowed moves are known, the limitations are clear, and the definition of success is known in advance. We took not just the traditional 3x3x3, but also the 2x2, 4x4 and 5x5. The models are supposed to solve them, depending on how scrambled they are.
What we are interested in is not just the success rate or how efficient the solutions are, but also the ability to catch a cube state that can't be solved, and the cost of precision.
Results: owox.github.io/ai-ontology-benchmark
You're very welcome to share your feedback and contribute