
Sareena Bilal · Figshare 2026 · 2026
DOI: 10.6084/m9.figshare.34488996
Counts differ because each database indexes a different set of publications. We treat OpenAlex as the canonical count; Google Scholar is not shown (no API, and crawling it violates its ToS).
The rapid integration of Large Language Models (LLMs) into enterprise applications has exposed critical safety vulnerabilities, most notably hallucinations and prompt injection attacks. While Retrieval-Augmented Generation (RAG) was introduced to ground LLMs in external knowledge, it inadvertently expands the attack surface. This paper proposes a Multi-Layered Defense Architecture (MLDA) designed specifically to secure the RAG pipeline. Our framework introduces three sequential safety phases: Input Intent Verification, Contextual Grounding, and Output Confidence Filtering. To empirically validate the feasibility of the Output Confidence Filtering phase, we deployed a lightweight, open-source Natural Language Inference (NLI) model (BART-large-MNLI) to detect factual contradictions simulating LLM hallucinations. Experimental results demonstrate that the NLI model successfully identifies factual discrepancies with high confidence scores ranging from 0.82 to 0.97. This research provides a practical, reproducible, and mathematically agnostic safety framework for deploying LLMs in sensitive environments without relying on computationally expensive retraining.
arXiv (Cornell University) 2014 · 2014 · 8145 citations90% match
2016 · 5389 citations90% match
arXiv (Cornell University) 2017 · 2017 · 4803 citations90% match
OASIcs : OpenAccess Series in Informatics 2025 · 2025 · 4742 citations90% match
2016 · 3971 citations90% match
2017 · 3530 citations90% match
2018 · 3031 citations90% match
No comments yet — start the discussion below.
arXiv (Cornell University) 2016 · 2016 · 3010 citations90% match
IEEE Transactions on Pattern Analysis and Machine Intelligence 2018 · 2018 · 2870 citations90% match
2017 · 2741 citations90% match