Domain-Specific Retrieval-Augmented Generation Using Vector Stores, Knowledge Graphs, and Tensor Factorization

dc.contributor.authorBarron, Ryan
dc.contributor.authorGrantcharov, Ves
dc.contributor.authorWanna, Selma
dc.contributor.authorEren, Maksim
dc.contributor.authorBhattarai, Manish
dc.contributor.authorSolovyev, Nicholas
dc.contributor.authorTompkins, George
dc.contributor.authorNicholas, Charles
dc.contributor.authorRasmussen, Kim Ø
dc.contributor.authorMatuszek, Cynthia
dc.contributor.authorAlexandrov, Boian S.
dc.date.accessioned2024-11-14T15:18:39Z
dc.date.available2024-11-14T15:18:39Z
dc.date.issued2024-10-03
dc.description.abstractLarge Language Models (LLMs) are pre-trained on large-scale corpora and excel in numerous general natural language processing (NLP) tasks, such as question answering (QA). Despite their advanced language capabilities, when it comes to domain-specific and knowledge-intensive tasks, LLMs suffer from hallucinations, knowledge cut-offs, and lack of knowledge attributions. Additionally, fine tuning LLMs' intrinsic knowledge to highly specific domains is an expensive and time consuming process. The retrieval-augmented generation (RAG) process has recently emerged as a method capable of optimization of LLM responses, by referencing them to a predetermined ontology. It was shown that using a Knowledge Graph (KG) ontology for RAG improves the QA accuracy, by taking into account relevant sub-graphs that preserve the information in a structured manner. In this paper, we introduce SMART-SLIC, a highly domain-specific LLM framework, that integrates RAG with KG and a vector store (VS) that store factual domain specific information. Importantly, to avoid hallucinations in the KG, we build these highly domain-specific KGs and VSs without the use of LLMs, but via NLP, data mining, and nonnegative tensor factorization with automatic model selection. Pairing our RAG with a domain-specific: (i) KG (containing structured information), and (ii) VS (containing unstructured information) enables the development of domain-specific chat-bots that attribute the source of information, mitigate hallucinations, lessen the need for fine-tuning, and excel in highly domain-specific question answering tasks. We pair SMART-SLIC with chain-of-thought prompting agents. The framework is designed to be generalizable to adapt to any specific or specialized domain. In this paper, we demonstrate the question answering capabilities of our framework on a corpus of scientific publications on malware analysis and anomaly detection.
dc.description.urihttp://arxiv.org/abs/2410.02721
dc.format.extent8 pages
dc.genrejournal articles
dc.genrepreprints
dc.identifierdoi:10.13016/m2hmjx-hskj
dc.identifier.urihttps://doi.org/10.48550/arXiv.2410.02721
dc.identifier.urihttp://hdl.handle.net/11603/36946
dc.language.isoen_US
dc.relation.isAvailableAtThe University of Maryland, Baltimore County (UMBC)
dc.relation.ispartofUMBC Faculty Collection
dc.relation.ispartofUMBC Student Collection
dc.relation.ispartofUMBC Computer Science and Electrical Engineering Department
dc.rightsThis work was written as part of one of the author's official duties as an Employee of the United States Government and is therefore a work of the United States Government. In accordance with 17 U.S.C. 105, no copyright protection is available for such works under U.S. Law.
dc.rightsPublic Domain
dc.rights.urihttps://creativecommons.org/publicdomain/mark/1.0/
dc.subjectComputer Science - Software Engineering
dc.subjectComputer Science - Computation and Language
dc.subjectComputer Science - Information Retrieval
dc.subjectComputer Science - Artificial Intelligence
dc.subjectUMBC Interactive Robotics and Language Lab
dc.titleDomain-Specific Retrieval-Augmented Generation Using Vector Stores, Knowledge Graphs, and Tensor Factorization
dc.typeText
dcterms.creatorhttps://orcid.org/0009-0005-5045-9527
dcterms.creatorhttps://orcid.org/0000-0002-4362-0256
dcterms.creatorhttps://orcid.org/0000-0003-1383-8120
dcterms.creatorhttps://orcid.org/0000-0001-9494-7139

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
2410.02721v1.pdf
Size:
8.44 MB
Format:
Adobe Portable Document Format