Skip to content

Training-Free Policy Violation Detection via Activation-Space Whitening in LLMs

Dec 2025 · arXiv.org · Vol abs/2512.03994 · 5 citations · ⚡ 1 influential · 61 references
Computer Science

TL;DR

This work proposes a training-free method that operates directly on the LLM internal representations, leveraging prior evidence that decision-relevant information is encoded within them, and derives policy-violation scores directly from normalized representations of LLM hidden activations.

Abstract

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

View source

Similar papers

Preprint Sep 2026

Self-Evolving Defense: Continual Security Policy Learning for LLM Agents

Large language models (LLMs) increasingly power agents that access sensitive information, use external tools, and modify software repositories. Although these capabilities offer substantial benefits, they also create security risks such as jailbreaks, prompt injection, and vulnerable code generation. Existing defenses...

Minh Nhat Le, Nisarga Gondi, Yi-Bo Peng et al. · 0 citations
#natural language process... Preprint Sep 2026

Combating Instruction Conflict via Energy-Driven Latent Conflict Detection

Large Language Models (LLMs) are increasingly deployed with hierarchical instructions, yet they remain vulnerable to conflicts in which user directives override system-level constraints. Existing defense mechanisms predominantly focus on static input inspection and therefore fail to detect Response Drift, a phenomenon...

Mi Ma, Yu-Xin Wu, Jing-Bo Wang et al. · 0 citations
#artificial intelligence Preprint Sep 2026

PolicyMem: Geometric Policy Memory for LLM Governance

PolicyMem is introduced, a geometric policy memory that externalizes natural-language policies as reusable geometric memory objects represented by low-rank subspaces in a shared representation space that achieves state-of-the-art unsafe behavior detection while enabling effective policy attribution, rewriting, and post...

Yuan-Chen Bei, Zheng-Zhang Chen, Yan-Jun Zhao et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Constitutional adapters: Inference-time interventions for misalignment and misuse

It is shown that constitution-consistent behavior can be distilled from synthetic corpora into lightweight objects (low-rank adapters and steering vectors) that increase jailbreak defense success and measured alignment and recommend CAs as a lightweight, portable, and tunable lever for mitigating misalignment and misus...

Adam S. Lowet, Mark Kurzeja · 0 citations
#artificial intelligence Preprint Sep 2026

Alignment Inertia: Auditing the Durability of Training Data Influence Through Policy Override Resistance

Platform operators increasingly rely on system prompts and fine-tuning to govern model behavior, yet it remains unclear how reliably these interventions override behavior inherited from prior training. We propose Override Success Rate (OSR) and alignment inertia to measure when operator interventions succeed or fail to...

Renata Barreto, Markelle Roesti, Mohammad Tahaei · 0 citations
#natural language process... Preprint Sep 2026

Smarter by the Moment: Environment-Driven Dynamic Policies for Continual LLM Improvement

Dynamic Retrieval-based Policy Generation (DRPG) is proposed, a framework that integrates memory-based retrieval with a dynamic policy generator, leveraging historical data and environment feedback to produce task-specific policies for continual LLM improvement.

Ting-Wei Chang, Po-Chun Chen, Hen-Hsen Huang et al. · 0 citations

Related blog posts

Microsoft Research Blog Oct 12, 2026

Simulating student learning for better AI tutoring

StudentSim is a research system for evaluating and improving AI tutoring tools before they are tested with learners. It models how individuals may engage with tutors, giving feedback to improve tutor performance across subjects like chess, writing, and mathematics. The post Simulating student learning for better AI tutoring appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.