Training-Free Policy Violation Detection via Activation-Space Whitening in LLMs
Not on the map. Why?
Abstract (arXiv)
As organizations increasingly deploy LLMs in sensitive domains such as legal, financial, and medical settings, ensuring alignment with internal organizational policies has become a priority. Existing content moderation frameworks remain largely confined to the safety domain and lack the robustness to capture nuanced organizational policies. LLM-as-a-judge and fine-tuning approaches, though flexible, introduce significant latency and training cost. To address these limitations, we frame policy violation detection as an out-of-distribution (OOD) problem in the model's activation space. We propose a training-free method that operates directly on the LLM internal representations, leveraging prior evidence that decision-relevant information is encoded within them. Inspired by whitening techniques, we derive policy-violation scores directly from normalized representations of LLM hidden activations. Our method requires only the policy text and a small number of illustrative samples, making it lightweight and easily deployable. We extensively evaluate our method across multiple LLMs and challenging policy benchmarks. It achieves up to 86.0% F1, outperforming both fine-tuned and LLM-as-a-judge baselines while requiring substantially less computation. Our code is publicly available at: https://github.com/FujitsuResearch/LLM-policy-violation-detection
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 34 of its 61 references that are in the map. First posted on arXiv 3 Dec 2025.
Builds on
34 of 61 references.
References · 34
- 2017Attention Is All You Needcited by 59,932
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
- 2024A Survey on LLM-as-a-Judgecited by 1,384
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
- 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,280
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,124
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 596
- 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMscited by 460
- 2020Generalized ODIN: Detecting Out-of-distribution Image without Learning from Out-of-distribution Datacited by 408
22 more
- 2023Trustworthy LLMs: a Survey and Guideline for Evaluating Large Language Models' Alignmentcited by 394
- 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 347
- 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 293
- 2024LLMs Know More Than They Show: On the Intrinsic Representation of LLM Hallucinationscited by 230
- 2024ShieldGemma: Generative AI Content Moderation Based on Gemmacited by 224
- 2024AEGIS: Online Adaptive AI Content Safety Moderation with Ensemble of LLM Expertscited by 126
- 2020ATOM: Robustifying Out-of-distribution Detection Using Outlier Miningcited by 116
- 2021Contrastive Out-of-Distribution Detection for Pretrained Transformerscited by 70
- 2024RigorLLM: Resilient Guardrails for Large Language Models against Undesired Contentcited by 65
- 2025The Widespread Adoption of Large Language Model-Assisted Writing Across Societycited by 50
- 2024SCANS: Mitigating the Exaggerated Safety for LLMs via Safety-Conscious Activation Steeringcited by 45
- 2024R2-Guard: Robust Reasoning Enabled LLM Guardrail via Knowledge-Enhanced Logical Reasoningcited by 41
- 2025SafeSwitch: Steering Unsafe LLM Behavior via Internal Activation Signalscited by 29
- 2025Whitened CLIP as a Likelihood Surrogate of Images and Captionscited by 16
- 2025DynaGuard: A Dynamic Guardian Model With User-Defined Policiescited by 16
- 2023Fine-Tuning Deteriorates General Textual Out-of-Distribution Detection by Distorting Task-Agnostic Featurescited by 12
- 2024LLMs with Industrial Lens: Deciphering the Challenges and Prospects -- A Surveycited by 12
- 2024Insights and Current Gaps in Open-Source LLM Vulnerability Scanners: A Comparative Analysiscited by 9
- 2025LLM Access Shield: Domain-Specific LLM Framework for Privacy Policy Compliancecited by 6
- 2023Enhancing Neural Training via a Correlated Dynamics Modelcited by 5
- 2025Using LLMs for Automated Privacy Policy Analysis: Prompt Engineering, Fine-Tuning and Explainabilitycited by 4
- 2025JavelinGuard: Low-Cost Transformer Architectures for LLM Securitycited by 4
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026Training-free Detection of Generated Videos via Spatial-Temporal Likelihoodscited by 7
- 2026What Do Compliance Detectors Read? An Audit of Activation Probes and Guard Modelscited by 1
- 2026LADFA: A Framework of Using Large Language Models and Retrieval-Augmented Generation for Personal Data Flow Analysis in Privacy Policiescited by 0
- 2026Inference-Time Backdoors via Chat Templates: From LLM Supply Chains to Agentic System Compromisecited by 0
- 2026RIFT-Bench: Dynamic Red-teaming For Agentic AI Systemscited by 0
- 2026Verdict Without the Rule: Diagnosing and Auditing Regulatory Rule Sensitivity in LLM Compliance Systemscited by 0
- 2026Verdict Without the Rule: Diagnosing and Auditing Regulatory Rule Sensitivity in LLM Compliance Systems8 Oct 2026
- 2026What Do Compliance Detectors Read? An Audit of Activation Probes and Guard Models17 Aug 2026
- 2026RIFT-Bench: Dynamic Red-teaming For Agentic AI Systems22 Jun 2026
- 2026Training-free Detection of Generated Videos via Spatial-Temporal Likelihoods16 Mar 2026
- 2026Inference-Time Backdoors via Chat Templates: From LLM Supply Chains to Agentic System Compromise4 Feb 2026
- 2026LADFA: A Framework of Using Large Language Models and Retrieval-Augmented Generation for Personal Data Flow Analysis in Privacy Policies15 Jan 2026