Unknown

Dataset Information

PromptGuard a structured framework for injection resilient language models.


ABSTRACT: Prompt injection attacks threaten the reliability of large language models (LLMs) by embedding adversarial instructions that override intended behavior and compromise task fidelity. Existing defenses are typically narrow in scope or depend on retraining, limiting their adaptability across deployment contexts. This paper presents a modular, four-layer defense framework that integrates input gatekeeping, structured prompt formatting, semantic output validation, and adaptive response refinement (ARR). The pipeline combines regex and MiniBERT-based detection to identify and block malicious instructions, while structured formatting and critic-based validation ensure consistent task alignment. Evaluations on PromptBench, InjectBench, and TruthfulQA demonstrate that the framework enhances robustn

SUBMITTER: Alzahrani A 

PROVIDER: S-EPMC12789616 | biostudies-literature | 2026 Jan

REPOSITORIES: biostudies-literature