sudoLLM: On Multi-role Alignment of Language Models

Soumadeep Saha, Akshay Chaturvedi, Joy Mahapatra, Utpal Garain
5/20/2025
cs.CLcs.CR

No official code found. Best implementation: espressoVi/sudoLLM (0 stars, MIT, last commit 2025-11-11).

Abstract

User authorization-based access privileges are a key feature in many safety-critical systems, but have not been extensively studied in the large language model (LLM) realm. In this work, drawing inspiration from such access control systems, we introduce sudoLLM, a novel framework that results in multi-role aligned LLMs, i.e., LLMs that account for, and behave in accordance with, user access rights. sudoLLM injects subtle user-based biases into queries and trains an LLM to utilize this bias signal in order to produce sensitive information if and only if the user is authorized. We present empirical results demonstrating that this approach shows substantially improved alignment, generalization, resistance to prefix-based jailbreaking attacks, and ``fails-closed''. The persistent tension between the language modeling objective and safety alignment, which is often exploited to jailbreak LLMs, is somewhat resolved with the aid of the injected bias signal. Our framework is meant as an additional security layer, and complements existing guardrail mechanisms for enhanced end-to-end safety with LLMs.

View on arXivView PDF

Code Implementations(1)

espressoVi/sudoLLMCommunity60%
MIT

Official repository for the paper titled "sudoLLM: On Multi-role Alignment of Language Models", EMNLP 2025.

00PythonAug 23, 202511 months agoMIT

Cite this paper

@article{saha2025sudollm,
  title  = {sudoLLM: On Multi-role Alignment of Language Models},
  author = {Soumadeep Saha and Akshay Chaturvedi and Joy Mahapatra and Utpal Garain},
  year   = {2025},
  eprint = {2505.14607},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.14607v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.14607.svg)](https://codeofpaper.com/paper/2505.14607)

Discussion