Scoped Semantic Invariance as a Foundation for LLM Reliability
Rosario Uceda-Sosa, Maria Chang, Karthikeyan Natesan Ramamurthy, Moninder Singh
Abstract
LLMs often answer semantically equivalent queries inconsistently, even when the underlying facts are known. We formalize consistency as semantic invariance over equivalence classes of queries and show that invariance under arbitrary meaning-preserving transformations is undecidable in general. This motivates scoped semantic invariance, where model behavior is evaluated relative to bounded semantic domains. We operationalize this framework using knowledge graphs (KGs), which act as explicit semantic control structures defining local semantic constraints and grounding contexts. Across the MITRE D3FEND ontology and eight Wikidata- derived domains, we show that inconsistencies are structured rather than random, concentrating in localized hotspot subgraphs organized around recurring TREE, STAR, and CYCLE patterns that remain stable across models and domains. We further show that selective graph grounding improves correctness and cross-model consistency, while indiscriminate grounding introduces regressions. A layered grounding strategy achieves the strongest monotonicity profile, preserving correct knowledge while reducing inconsistency. Finally, we show that hotspot structures discovered from simple consistency probes transfer to more realistic compositional reasoning tasks.
Create a lesson
Metadata
- Comments
- Accepted at EMNLP 2026
Related papers
Improving semantic equivalence in research-level math formalization
Shared title terminologycs.AIAyush Khaitan, Liam Fowl, Tomàs Ortega et al.
Improving the Improver: Semantic PID Control for Medical Agent Self-Improvement
Shared title terminologycs.AIDexia Chen, YiLong Hu, Wenqi Zhong et al.
SMAD: A Semantics-Guided Multi-Agent Framework for Unsupervised Time-Series Anomaly Detection
Shared title terminologycs.AIQinghua Liu, Junpeng Wang, Mingzhi Hu et al.
Temporal Logic Tensor Networks: Foundations of Temporal Reasoning in Neural Networks
Shared title terminologycs.AIEdjard Mota, Artur d'Avila Garcez, Maria Azevedo et al.
LLM-Enhanced Heterogeneous Graph Learning with Business Semantics for Financial Fraud Detection
Shared title terminologycs.AIYixuan Chen, Hongyu Zhan, Jie Sheng et al.
MuSID-KD: Multigranularity Knowledge Distillation for Generative Recommendation with Semantic IDs
Shared title terminologycs.AIFengshi Zhang, Xiyan Ding, Shuxiao Xie et al.