Permit: Permission-Aware Representation Intervention for Controlled Generation in Large Language Models

Pengcheng Sun, Lan Zhang, Zhaopeng Zhang, Jiewei Lai, Chen Tang

TL;DR

PERMIT is a lightweight framework that enforces fine-grained access control directly within a Large Language Model's (LLM) hidden states during generation. By steering internal representations within a compact, low-dimensional "permission-sensitive subspace," it drives information leakage to near zero while maintaining high generation quality—all while keeping the core model frozen and using 98% fewer trainable parameters than current state-of-the-art methods.

What Problem Does This Paper Address?

When deploying LLMs in enterprise environments (like internal search or Retrieval-Augmented Generation (RAG) systems), protecting sensitive data is paramount. Traditional access control focuses on input filtering—deciding whether a document should be fed into the prompt based on a user's role.

However, this creates a major vulnerability: once sensitive information enters the context window, the LLM's generation behavior is unconstrained. The model can easily leak restricted data or infer unauthorized insights in its final response. Existing methods to fix this internally—such as safety fine-tuning or training separate LoRA adapters for every single corporate role—scale poorly, demand massive compute, and often tank the model's general helpfulness (utility). PERMIT addresses this gap by shifting access control from the data-input level to the representation-generation level.

Methods

The authors introduce PERMIT (Permission-Aware Representation Intervention), an inference-time framework that operates on a frozen LLM backbone. The methodology relies on a two-stage process:

  1. Subspace Identification: Through exploratory analysis, the authors discovered that different permission prompts shift the LLM's hidden states in highly predictable, low-dimensional directions. They apply Singular Value Decomposition (SVD) to these activation differences to isolate a compact "permission-sensitive subspace."
  2. Representation Intervention: During inference, the model's hidden states at a specific layer are projected into this subspace. A lightweight module modifies the coordinates to align with the user's authorized permission level, and the adjusted vector is mapped back into the main residual stream to steer the remaining generation.

The authors propose two distinct intervention mechanisms within this subspace:

  • Offset-based: Applies an affine transformation (translation and recombination) to precisely shift representations under strict permission boundaries.
  • Gated: Applies a dimension-wise mask via a sigmoid function to dynamically scale features along the security-utility frontier.

Datasets

The framework was evaluated using MedicalSys, a role-aware medical system dataset designed for multi-domain access control in healthcare management.

To test realistic, complex enterprise scenarios, the authors extended MedicalSys to support multi-level permissions. The benchmark includes:

  • Four distinct user roles: Medical Practitioners, Financial Accountants, Logistics Administrators, and Human Resource Managers.
  • Four hierarchical permission levels per role based on data sensitivity.
  • Approximately 16,000 total documents and 3,000 permission-specific question-answer pairs per level.

Key Insights and Ideas

  • Permissions Have a Geometric Structure: Hidden states under different permission levels aren't randomly scattered; they form well-separated clusters in activation space that naturally mirror the hierarchy of the underlying security policies.
Figure 1: Activation-space structure of different permission conditions. Subfigures (a) and (b) show that hidden states under different permissions are well separated across both models; (c) and (d) show that mean permission-induced representation shifts exhibit hierarchy-aware directions: related permissions cluster together, and stronger permissions induce larger shifts along consistent directions.
  • Low-Rank Concentration: The internal representation shifts caused by permission constraints are incredibly concentrated. For instance, in a Qwen2.5-7B model, just 0.37% of the hidden dimensions are needed to capture 80% of the permission-related variance. This explains why full-model fine-tuning is overkill; you only need to nudge a tiny fraction of the space.
  • Shifting Beats Gating: The offset-based approach consistently outperformed the gated approach. This suggests that enforcing a permission policy is better modeled as a structured semantic shift rather than simply turning specific internal features "on" or "off."

Key Results

Evaluated against LLaMA3.1-8B and Qwen2.5-7B, PERMIT achieved exceptional results across utility, security, and efficiency metrics:

  • Near-Zero Leakage: While standard models leaked unauthorized information up to 97% of the time, PERMIT-Offset reduced the information leakage rate to 0.0% on LLaMA3.1-8B and 2.5% on Qwen2.5-7B.
  • Superior Utility: It achieved an absolute F1-score improvement of 18% to 21% over the previous state-of-the-art activation steering method (ControlNet), proving it doesn't sacrifice answer quality to achieve safety.
  • Extreme Efficiency: PERMIT requires >98% fewer trainable parameters than ControlNet (accounting for a mere ~0.0018% of the backbone parameters) and adds negligible inference latency (0.01s to 0.14s).
  • Prompt Injection Robustness: When tested against adversarial attacks designed to bypass security (e.g., "Pretend you have administrator privileges"), PERMIT held strong, maintaining a tiny 1.0% leakage rate compared to the 14.0% leakage rate of prompt-based defenses.

Limitations and Future Work

Despite its strong performance, the authors note a few limitations:

  • Static Assumptions: PERMIT assumes that the user's permission state is explicitly known and provided as an input token/condition at generation time. Real-world systems often require dynamic, context-dependent authorization based on user intent.
  • No Formal Guarantees: While empirically highly robust, representation steering does not provide absolute cryptographic or formal security guarantees against highly sophisticated, adaptive adversaries.

Future work will focus on extending representation intervention to adaptive authorization settings and developing stronger defenses against evolving adversarial attacks.

Summary updated

BibTeX
@inproceedings{sun2026permit,
  author = {Pengcheng Sun and Lan Zhang and Zhaopeng Zhang and Jiewei Lai and Chen Tang},
  title = {{Permit: Permission-Aware Representation Intervention for Controlled Generation in Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=MWLu2uQdN4},
}
Figure