SafeGPT: Preventing Data Leakage and Unethical Outputs in Enterprise LLM Use
Pratyush Desai, Luoxi Tang, Yuqiao Meng, Zhaohan Xi
TL;DR
SafeGPT tackles data leakage and unethical-output risks in enterprise LLM use by introducing a two-sided guardrail architecture that gates input prompts and polices outputs, enhanced by human-in-the-loop feedback. The input side uses pattern matching, enterprise NER, and knowledge graphs to detect structured secrets and contextual risks, applying block, warn, or redact actions. The output side employs classifiers for bias and policy compliance, along with automated remediation and occasional human review. Experiments on synthetic datasets show high precision/recall and substantial leakage reduction, with end-to-end improvements in compliance and user satisfaction. This approach offers a practical, auditable framework for safer, enterprise-grade LLM deployments.
Abstract
Large Language Models (LLMs) are transforming enterprise workflows but introduce security and ethics challenges when employees inadvertently share confidential data or generate policy-violating content. This paper proposes SafeGPT, a two-sided guardrail system preventing sensitive data leakage and unethical outputs. SafeGPT integrates input-side detection/redaction, output-side moderation/reframing, and human-in-the-loop feedback. Experiments demonstrate SafeGPT effectively reduces data leakage risk and biased outputs while maintaining satisfaction.
