Trapping LLM Hallucinations Using Tagged Context Prompts
| dc.contributor.author | Feldman, Philip | |
| dc.contributor.author | Foulds, James | |
| dc.contributor.author | Pan, Shimei | |
| dc.date.accessioned | 2024-02-27T17:45:27Z | |
| dc.date.available | 2024-02-27T17:45:27Z | |
| dc.date.issued | 2023-06-09 | |
| dc.description.abstract | Recent advances in large language models (LLMs), such as ChatGPT, have led to highly sophisticated conversation agents. However, these models suffer from "hallucinations," where the model generates false or fabricated information. Addressing this challenge is crucial, particularly with AI-driven platforms being adopted across various sectors. In this paper, we propose a novel method to recognize and flag instances when LLMs perform outside their domain knowledge, and ensuring users receive accurate information. We find that the use of context combined with embedded tags can successfully combat hallucinations within generative language models. To do this, we baseline hallucination frequency in no-context prompt-response pairs using generated URLs as easily-tested indicators of fabricated data. We observed a significant reduction in overall hallucination when context was supplied along with question prompts for tested generative engines. Lastly, we evaluated how placing tags within contexts impacted model responses and were able to eliminate hallucinations in responses with 98.88% effectiveness. | |
| dc.description.uri | https://arxiv.org/abs/2306.06085 | |
| dc.format.extent | 14 pages | |
| dc.genre | journal articles | |
| dc.genre | preprints | |
| dc.identifier | doi:10.13016/m20k3c-smqk | |
| dc.identifier.uri | https://doi.org/10.48550/arXiv.2306.06085 | |
| dc.identifier.uri | http://hdl.handle.net/11603/31712 | |
| dc.relation.isAvailableAt | The University of Maryland, Baltimore County (UMBC) | |
| dc.relation.ispartof | UMBC Information Systems Department Collection | |
| dc.relation.ispartof | UMBC Faculty Collection | |
| dc.relation.ispartof | UMBC Student Collection | |
| dc.rights | This item is likely protected under Title 17 of the U.S. Copyright Law. Unless on a Creative Commons license, for uses protected by Copyright Law, contact the copyright holder or the author. | |
| dc.title | Trapping LLM Hallucinations Using Tagged Context Prompts | |
| dc.type | Text | |
| dcterms.creator | https://orcid.org/0000-0001-6164-6620 | |
| dcterms.creator | https://orcid.org/0000-0003-0935-4182 | |
| dcterms.creator | https://orcid.org/0000-0002-5989-8543 |
