mlsanityData to 14 Oct 2026

VSPO: Validating Semantic Pitfalls in Ontology via LLM-Based CQ Generation

arXiv 2511.07991 ↗First posted 11 Nov 2025cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Competency Questions (CQs) play a crucial role in validating ontology design. While manually crafting CQs can be highly time-consuming and costly for ontology engineers, recent studies have explored the use of large language models (LLMs) to automate this process. However, prior approaches have largely evaluated generated CQs based on their similarity to existing datasets, which often fail to verify semantic pitfalls such as "Misusing allValuesFrom". Since such pitfalls cannot be reliably detected through rule-based methods, we propose a novel dataset and model of Validating Semantic Pitfalls in Ontology (VSPO) for CQ generation specifically designed to verify the semantic pitfalls. To simulate missing and misused axioms, we use LLMs to generate natural language definitions of classes and properties and introduce misalignments between the definitions and the ontology by removing axioms or altering logical operators (e.g., substituting union with intersection). We then fine-tune LLaMA-3.1-8B-Instruct to generate CQs that validate these semantic discrepancies between the provided definitions and the corresponding axioms. The resulting CQs can detect a broader range of modeling errors compared to existing public datasets. Our fine-tuned model demonstrates superior performance over baselines, showing 26% higher precision and 28.2% higher recall than GPT-4.1 in generating CQs for pitfall validation. This research enables automatic generation of TBox-validating CQs using LLMs, significantly reducing manual effort while improving semantic alignment between ontologies and expert knowledge. To the best of our knowledge, this is the first study to target semantic pitfall validation in CQ generation using LLMs.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 7 of its 24 references that are in the map. First posted on arXiv 11 Nov 2025.

Builds on

7 of 24 references.

References · 7

  1. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  2. 2023Exploring Large Language Models for Ontology Alignmentcited by 26
  3. 2024Do LLMs Really Adapt to Domains? An Ontology Learning Perspectivecited by 11
  4. 2024LLMs4OL 2024 Overview: The 1st Large Language Models for Ontology Learning Challengecited by 8
  5. 2024A RAG Approach for Generating Competency Questions in Ontology Engineeringcited by 7
  6. 2019The African Wildlife Ontology tutorial ontologies: requirements, design, and contentcited by 6
  7. 2025Bench4KE: Benchmarking Automated Competency Question Generationcited by 3

Built on by

Not cited yet.