mlsanityData to 14 Oct 2026

Privacy-Preserving Prompt Injection Detection for LLMs Using Federated Learning and Embedding-Based NLP Classification

arXiv 2511.12295 ↗First posted 15 Nov 2025cs.CRcited by 0

On the map: LLM safety and security → Prompt injection and agent security

Abstract (arXiv)

Prompt injection attacks are an emerging threat to large language models (LLMs), enabling malicious users to manipulate outputs through carefully designed inputs. Existing detection approaches often require centralizing prompt data, creating significant privacy risks. This paper proposes a privacy-preserving prompt injection detection framework based on federated learning and embedding-based classification. A curated dataset of benign and adversarial prompts was encoded with sentence embedding and used to train both centralized and federated logistic regression models. The federated approach preserved privacy by sharing only model parameters across clients, while achieving detection performance comparable to centralized training. Results demonstrate that effective prompt injection detection is feasible without exposing raw data, making this one of the first explorations of federated security for LLMs. Although the dataset is limited in scale, the findings establish a strong proof-of-concept and highlight new directions for building secure and privacy-aware LLM systems.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. First posted on arXiv 15 Nov 2025.

Builds on

0 of 0 references.

No references here yet.

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Privacy-Preserving Large Language Models: Mechanisms, Applications, and Future Directions
  2. 2024Analysis of Privacy Leakage in Federated Large Language Models
  3. 2024Embedding-based classifiers can detect prompt injection attacks
  4. 2025Privacy-preserving Prompt Personalization in Federated Learning for Multimodal Large Language Models
  5. 2024Fine-tuned Large Language Models (LLMs): Improved Prompt Injection Attacks Detection
  6. 2025A Survey on Privacy Risks and Protection in Large Language Models
  7. 2025Can Federated Learning Safeguard Private Data in LLM Training? Vulnerabilities, Attacks, and Defense Evaluation
  8. 2025Privacy-Preserving Personalized Federated Prompt Learning for Multimodal Large Language Models