The majority of Neural Semantic Parsing (NSP) models are developed with the assumption that there are no concepts outside the ones such models can represent with their target symbols (closed-world assumption). This assumption leads to generate hallucinated outputs rather than admitting their lack of knowledge. Hallucinations can lead to wrong or potentially offensive responses to users. Hence, a mechanism to prevent this behavior is crucial to build trusted NSP-based Question Answering agents. To that end, we propose the Hallucination Simulation Framework (HSF), a general setting for stimulating and analyzing NSP model hallucinations. The framework can be applied to any NSP task with a closed-ontology. Using the proposed framework and KQA Pro as the benchmark dataset, we assess state-of-the-art techniques for hallucination detection. We then present a novel hallucination detection strategy that exploits the computational graph of the NSP model to detect the NSP hallucinations in the presence of ontology gaps, out-of-domain utterances, and to recognize NSP errors, improving the F1-Score respectively by ∼21%, ∼24% and ∼1%. This is the first work in closed-ontology NSP that addresses the problem of recognizing ontology gaps. We release our code and checkpoints at https://github.com/amazon-science/handling-ontology-gaps-in-semantic-parsing.

Handling Ontology Gaps in Semantic Parsing / Bacciu, Andrea; Damonte, Marco; Basaldella, Marco; Monti, Emilio. - (2024), pp. 345-359. (Intervento presentato al convegno 13th Joint Conference on Lexical and Computational Semantics tenutosi a Città del Messico) [10.18653/v1/2024.starsem-1.28].

Handling Ontology Gaps in Semantic Parsing

Andrea Bacciu
Primo
Writing – Review & Editing
;
2024

Abstract

The majority of Neural Semantic Parsing (NSP) models are developed with the assumption that there are no concepts outside the ones such models can represent with their target symbols (closed-world assumption). This assumption leads to generate hallucinated outputs rather than admitting their lack of knowledge. Hallucinations can lead to wrong or potentially offensive responses to users. Hence, a mechanism to prevent this behavior is crucial to build trusted NSP-based Question Answering agents. To that end, we propose the Hallucination Simulation Framework (HSF), a general setting for stimulating and analyzing NSP model hallucinations. The framework can be applied to any NSP task with a closed-ontology. Using the proposed framework and KQA Pro as the benchmark dataset, we assess state-of-the-art techniques for hallucination detection. We then present a novel hallucination detection strategy that exploits the computational graph of the NSP model to detect the NSP hallucinations in the presence of ontology gaps, out-of-domain utterances, and to recognize NSP errors, improving the F1-Score respectively by ∼21%, ∼24% and ∼1%. This is the first work in closed-ontology NSP that addresses the problem of recognizing ontology gaps. We release our code and checkpoints at https://github.com/amazon-science/handling-ontology-gaps-in-semantic-parsing.
2024
13th Joint Conference on Lexical and Computational Semantics
hallucinations; semantic parsing; ontology; ontology gaps; out of domain; large language models
04 Pubblicazione in atti di convegno::04b Atto di convegno in volume
Handling Ontology Gaps in Semantic Parsing / Bacciu, Andrea; Damonte, Marco; Basaldella, Marco; Monti, Emilio. - (2024), pp. 345-359. (Intervento presentato al convegno 13th Joint Conference on Lexical and Computational Semantics tenutosi a Città del Messico) [10.18653/v1/2024.starsem-1.28].
File allegati a questo prodotto
File Dimensione Formato  
Bacciu_preprint_Handling_2024.pdf

accesso aperto

Note: 10.18653/v1/2024.starsem-1.28
Tipologia: Documento in Pre-print (manoscritto inviato all'editore, precedente alla peer review)
Licenza: Creative commons
Dimensione 455.14 kB
Formato Adobe PDF
455.14 kB Adobe PDF
Bacciu_Handling_2024.pdf

solo gestori archivio

Tipologia: Versione editoriale (versione pubblicata con il layout dell'editore)
Licenza: Tutti i diritti riservati (All rights reserved)
Dimensione 463.25 kB
Formato Adobe PDF
463.25 kB Adobe PDF   Contatta l'autore

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11573/1716987
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
social impact