NeuroFilter: Privacy Guardrails for Conversational LLM Agents
Saswat Das , Ferdinando Fioretto
Published on arXiv
2601.14660
Prompt Injection
OWASP LLM Top 10 — LLM01
Sensitive Information Disclosure
OWASP LLM Top 10 — LLM06
Key Finding
NeuroFilter achieves zero false positives on benign prompts while detecting privacy attacks across 7B–70B models at several orders of magnitude lower computational cost than LLM-based agentic privacy defenses.
NeuroFilter
Novel technique introduced
This work addresses the computational challenge of enforcing privacy for agentic Large Language Models (LLMs), where privacy is governed by the contextual integrity framework. Indeed, existing defenses rely on LLM-mediated checking stages that add substantial latency and cost, and that can be undermined in multi-turn interactions through manipulation or benign-looking conversational scaffolding. Contrasting this background, this paper makes a key observation: internal representations associated with privacy-violating intent can be separated from benign requests using linear structure. Using this insight, the paper proposes NeuroFilter, a guardrail framework that operationalizes contextual integrity by mapping norm violations to simple directions in the model's activation space, enabling detection even when semantic filters are bypassed. The proposed filter is also extended to capture threats arising during long conversations using the concept of activation velocity, which measures cumulative drift in internal representations across turns. A comprehensive evaluation across over 150,000 interactions and covering models from 7B to 70B parameters, illustrates the strong performance of NeuroFilter in detecting privacy attacks while maintaining zero false positives on benign prompts, all while reducing the computational inference cost by several orders of magnitude when compared to LLM-based agentic privacy defenses.
Key Contributions
- Observation that privacy-violating intent is linearly separable in LLM activation space, enabling lightweight detection without additional LLM inference
- NeuroFilter: a guardrail framework grounding contextual integrity norms in activation-space linear probes, resilient to semantic-filter bypass
- Activation velocity metric that tracks cumulative drift in internal representations across conversation turns to detect slow-burn conversational manipulation and mosaic attacks