KG-UQ: Knowledge Graph-Based Uncertainty Quantification for Long Text in Large Language Models
With the commercialization of large language models (LLMs) and their integration into daily life, addressing their susceptibility to hallucinations-unfactual information in generated outputs-has become an urgent priority. Existing uncertainty quantification (UQ) methods often rely on access to LLMs' internal states, which is unavailable for closed-source models like GPTs, or are primarily designed for short text. Current research on long text typically evaluates sentences individually, overlooking smaller semantic units that better capture the text's complexity. Recognizing the potential of knowledge graphs (KGs) to extract structured relationships from unstructured text, we propose KG-UQ, a UQ method leveraging KGs to address the semantic intricacies of long text. Our approach involves constructing KGs from long-text outputs and utilizing their embeddings to estimate uncertainties. Through our analysis, we demonstrate that knowledge graphs are an effective tool for decomposing long text into fundamental statements. However, we also highlight the increased uncertainty introduced during KG construction, stemming from inherent challenges in accurately capturing all semantic information.
Authors
- Jian Yang (ORCID: https://orcid.org/0000-0002-4408-1952)
- Mark Dras (ORCID: https://orcid.org/0000-0001-9908-7182)
- Matloob Khushi (ORCID: https://orcid.org/0000-0001-7792-2327)
- Imran Razzak (ORCID: https://orcid.org/0000-0002-3930-6600)
- Haohui Lu (ORCID: https://orcid.org/0000-0002-5338-156X)
- Usman Naseem (ORCID: https://orcid.org/0000-0003-0191-7171)
- Linwei Tao (ORCID: https://orcid.org/0000-0002-8848-0189)
- Yanna Yuan
Institutions
- University of London (GB)
- The University of Sydney (AU)
- Mohamed bin Zayed University of Artificial Intelligence (AE)
- Brunel University of London (GB)
- Macquarie University (AU)
Publication Details
- Published
- 2025-05-08
- DOI
- https://doi.org/10.1145/3701716.3717660
- Citations
- 1
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 2.48
Funders
- Macquarie University