Innovative Guardrails for Generative AI: Designing an Intelligent Filter for Safe and Responsible LLM Deployment
Top Cited Papers
Open Access
- 28 June 2025
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 15 (13) , 7298
Abstract
This paper proposes a technological framework designed to mitigate the inherent risks associated with the deployment of artificial intelligence (AI) in decision-making and task execution within the management processes. The Agreement Validation Interface (AVI) functions as a modular Application Programming Interface (API) Gateway positioned between user applications and LLMs. This gateway architecture is designed to be LLM-agnostic, meaning it can operate with various underlying LLMs without requiring specific modifications for each model. This universality is achieved by standardizing the interface for requests and responses and applying a consistent set of validation and enhancement processes irrespective of the chosen LLM provider, thus offering a consistent governance layer across a diverse LLM ecosystem. AVI facilitates the orchestration of multiple AI subcomponents for input–output validation, response evaluation, and contextual reasoning, thereby enabling real-time, bidirectional filtering of user interactions. A proof-of-concept (PoC) implementation of AVI was developed and rigorously evaluated using industry-standard benchmarks. The system was tested for its effectiveness in mitigating adversarial prompts, reducing toxic outputs, detecting personally identifiable information (PII), and enhancing factual consistency. The results demonstrated that AVI reduced successful fast injection attacks by 82%, decreased toxic content generation by 75%, and achieved high PII detection performance (F1-score ≈ 0.95). Furthermore, the contextual reasoning module significantly improved the neutrality and factual validity of model outputs. Although the integration of AVI introduced a moderate increase in latency, the overall framework effectively enhanced the reliability, safety, and interpretability of LLM-driven applications. AVI provides a scalable and adaptable architectural template for the responsible deployment of generative AI in high-stakes domains such as finance, healthcare, and education, promoting safer and more ethical use of AI technologies.Keywords
All Related Versions
Funding Information
- Korea Government (MSIT) (IITP-2025-RS-2024-00436765, 202302470001/202403380001)
- Educational Research Promotion Project (IITP-2025-RS-2024-00436765, 202302470001/202403380001)
This publication has 20 references indexed in Scilit:
- Survey of Hallucination in Natural Language GenerationACM Computing Surveys, 2023
- Competition-level code generation with AlphaCodeScience, 2022
- A Comprehensive Survey of Fully Homomorphic Encryption from Its Theory to Applications2022
- On the Dangers of Stochastic Parrots2021
- Leveraging Passage Retrieval with Generative Models for Open Domain Question Answering2021
- Closing the AI accountability gap2020
- RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models2020
- Measuring and Mitigating Unintended Bias in Text Classification2018
- Practical Secure Aggregation for Privacy-Preserving Machine Learning2017
- A large annotated corpus for learning natural language inference2015