Dehallucinating Large Language Models Using Formal Methods Guided Iterative Prompting
dc.contributor.author | Jha, Susmit | |
dc.contributor.author | Jha, Sumit Kumar | |
dc.contributor.author | Lincoln, Patrick | |
dc.contributor.author | Bastian, Nathaniel D. | |
dc.contributor.author | Velasquez, Alvaro | |
dc.contributor.author | Neema, Sandeep | |
dc.date.accessioned | 2023-08-14T15:57:55Z | |
dc.date.available | 2023-08-14T15:57:55Z | |
dc.date.issued | 2023 | |
dc.description.abstract | Large language models (LLMs) such as ChatGPT have been trained to generate human-like responses to natural language prompts. LLMs use a vast corpus of text data for training, and can generate coherent and contextually relevant responses to a wide range of questions and statements. Despite this remarkable progress, LLMs are prone to hallucinations making their application to safety-critical applications such as autonomous systems difficult. The hallucinations in LLMs refer to instances where the model generates responses that are not factually accurate or contextually appropriate. These hallucinations can occur due to a variety of factors, such as the model’s lack of real-world knowledge, the influence of biased or inaccurate training data, or the model’s tendency to generate responses based on statistical patterns rather than a true understanding of the input. While these hallucinations are a nuisance in tasks such as text summarization and question-answering, they can be catastrophic when LLMs are used in autonomy-relevant applications such as planning. In this paper, we focus on the application of LLMs in autonomous systems and sketch a novel self-monitoring and iterative prompting architecture that uses formal methods to detect these errors in the LLM response automatically. We exploit the dialog capability of LLMs to iteratively steer them to responses that are consistent with our correctness specification. We report preliminary experiments that show the promise of the proposed approach on tasks such as automated planning. | |
dc.description.sponsorship | U.S. Army | |
dc.identifier.citation | - Jha, S., Jha, S., Lincoln, P., Bastian, N., Velasquez, A. & Neema, S. (2023). Dehallucinating Large Language Models Using Formal Methods Guided Iterative Prompting. Proceedings of the 2023 IEEE International Conference on Assured Autonomy, pp. 149-152. IEEE. | |
dc.identifier.doi | https://doi.org/10.1109/icaa58325.2023.00029 | |
dc.identifier.uri | https://hdl.handle.net/20.500.14216/354 | |
dc.publisher | IEEE | |
dc.relation.ispartof | 2023 IEEE International Conference on Assured Autonomy (ICAA) | |
dc.subject | Large-Language-Models | |
dc.subject | Hallucinations | |
dc.subject | Formal-Methods | |
dc.title | Dehallucinating Large Language Models Using Formal Methods Guided Iterative Prompting | |
dc.type | proceedings-article | |
local.peerReviewed | Yes |