Evaluating Synthetic Sentence Coherence Using a Large Language Model
Richard Thompson, Angelos Toutsios, Adam Pease, Mathias Kölsch, Christian J. Darken · Proceedings of the ... International Florida Artificial Intelligence Research Society Conference · 2026
Fine-tuning a Large Language Model (LLM) to translate imprecise, ambiguous natural language into a formal logic language that supports automated reasoning requires a significant amount of training data. With the assistance of a large ontology, millions of synthetic sentences can be generated in natural language with a corresponding formal representation. A problem arises in that generated sentences are often nonsensical. Detecting and omitting incoherent sentences improves the quality of the training dataset, and provides useful feedback to the ontologist for adding "common sense" rules to the ontology. Using approximately 6,000 human labeled sentences, this research analyzes three methods for detecting linguistic coherence and conducting high precision filtering. The first method makes use of expected next-token statistics from an LLM. The second method submits a prompt to an LLM asking it to make a coherence determination. The third method is a composite of the first two. Our results have dramatically improved synthetic training data quality and are expected to contribute to significantly better language reasoning skills.