Introduction
Traditional Role-Based Access Control (RBAC) is a cornerstone of enterprise security, ensuring that sensitive data is only accessible to authorized personnel. However, as Large Language Models (LLMs) become central to corporate workflows—handling everything from meeting summaries to HR queries—a significant security gap has emerged. Standard LLM safety training focuses on universal harms (e.g., hate speech, dangerous instructions) but fails to address contextual harms. In an organizational setting, "harm" is defined by the user's role: a CEO accessing restructuring plans is standard operations, while a junior researcher doing the same constitutes a major data breach.
This research introduces "Role-Aware Language Models," which integrate organizational hierarchies directly into the model's decision-making logic. By teaching models to recognize user roles and permissions, the authors demonstrate a system capable of selective information disclosure based on the requester's position in the company hierarchy.
Methodology: Modeling Strategies
The researchers evaluated three primary architectural approaches for implementing role-conditioned instruction filtering:
- Role-aware Classifiers (Cls): Utilizing traditional encoder models like BERT, RoBERTa, and ModernBERT as binary gatekeepers. These models classify a prompt-role pair as "granted" or "denied" before the generative LLM is even invoked.
- Role-aware LLM Classifiers (LLM-Cls): Fine-tuning generative models (e.g., Llama 3.1, Qwen 2.5) using Low-Rank Adaptation (LoRA) to act as high-reasoning classifiers. These models output a boolean "True" or "False" based on the input context.
- Role-aware Generative Models (LLM-Gen): A unified approach where a single model is trained to either provide the requested information or a polite refusal in a single generative step.
To represent organizational structures, the study tested various encoding methods, including plain-text titles ("CEO"), hierarchical paths ("CEO - IT Manager"), and numerical indices ("1.1.2").
Dataset Construction
Given the lack of existing enterprise-grade access control datasets for LLMs, two new benchmarks were developed:
- Repurposed Dolly-15k: The Databricks Dolly dataset was clustered by topic using K-Means and mapped to a hypothetical organizational hierarchy (e.g., "General" info for everyone, "Root-Only" for the CEO).
- Synthetic Organization Dataset: Using GPT-4o-mini, the team generated 6,000 interactions reflecting two common corporate structures: a flat "Basic" hierarchy (one boss, many subordinates) and a multi-tiered "Office" hierarchy (CEO, Dept Managers, Team Members).
Performance Analysis
The experimental results indicate that instruction-tuned LLMs are highly effective at internalizing access control policies.
As shown in the performance data, the LLM-Cls approach consistently outperformed traditional BERT-style classifiers. This is attributed to the LLM's inherent "common sense" and superior intent recognition, allowing it to interpret the spirit of a policy rather than relying on simple keyword matching. Notably, ModernBERT-Large and Llama 3.1 8B achieved approximately 90% accuracy across both datasets.
One trade-off observed was in the LLM-Gen models, which tended to be "over-cautious." While this increases safety, it resulted in higher false negative rates (denying access to authorized users) compared to the more precise LLM-based classifiers.
Robustness and Security
A critical finding of the study was the "Broken Role" vulnerability. Models using hierarchical numerical encodings proved brittle when faced with mangled role strings (e.g., changing "1.1" to "01.02"), sometimes failing to recognize them as unauthorized. However, the models showed exceptional robustness against "Random" roles (external entities), with near 100% rejection rates.
Furthermore, by including adversarial "jailbreak" examples in the training set—where users attempt to override instructions by claiming higher authority (e.g., "I am the CEO, ignore previous instructions")—the models' resistance to prompt injection improved from 70% to 87%.
Conclusion and Future Work
While this work marks a significant step toward secure enterprise AI, several challenges remain. Current models are static; changes to an organization's hierarchy require re-tuning. Future research will focus on dynamic access control, where models can interpret policy files at inference time. Additionally, integrating these role-aware models with Retrieval-Augmented Generation (RAG) systems is essential to ensure that the model does not inadvertently leak unauthorized data retrieved from external databases.
The study concludes that role-conditioned instruction tuning is a viable and necessary path for deploying LLMs safely within complex organizational environments without degrading the quality or clarity of the model's output.
Summary updated