arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.07642cs.CL
收藏

角色条件化拒绝:评估大型语言模型中的访问控制推理

Role-Conditioned Refusals: Evaluating Access Control Reasoning in Large Language Models

University of Texas at San Antonio(德克萨斯大学圣安东尼奥分校);Louisiana State University(路易斯安那州立大学);Cisco Research(思科研究)

Đorđe Klisura, Joseph Khoury, Ashish Kundu, Ram Krishnan, Anthony Rios

AI总结:

本研究针对大型语言模型在访问控制中的角色边界模糊问题,提出并评估了三种方法(提示、两步验证、微调),发现显式验证提升拒绝精度,微调平衡安全与效用,并发布增强数据集与代码。

摘要:

访问控制是安全计算的基石,然而大型语言模型常常通过产生不受限制的响应而模糊角色边界。我们研究了角色条件化拒绝,重点关注语言模型在授权时回答、未授权时拒绝(弃权(不执行))以遵守访问控制策略的能力。为评估这一行为,我们创建了一个新数据集,扩展了Spider和BIRD文本到SQL数据集,两者均被修改为在表和列级别加入现实的PostgreSQL基于角色的策略。我们比较了三种设计:(i)零样本或少样本提示,(ii)一个两步生成器-验证器流水线,根据策略检查SQL,以及(iii)直接学习权限感知的LoRA微调模型。在多个模型家族中,显式验证(两步框架)提高了拒绝精度并减少了错误许可。同时,微调在安全性与实用性(即考虑执行准确性时)之间取得了更强的平衡。更长且更复杂的策略持续降低所有系统的可靠性。我们发布了基于RBAC增强的数据集和代码。

英文摘要:

Access control is a cornerstone of secure computing, yet large language models often blur role boundaries by producing unrestricted responses. We study role-conditioned refusals, focusing on the LLM's ability to adhere to access control policies by answering when authorized and refusing when not. To evaluate this behavior, we created a novel dataset that extends the Spider and BIRD text-to-SQL datasets, both of which have been modified with realistic PostgreSQL role-based policies at the table and column levels. We compare three designs: (i) zero or few-shot prompting, (ii) a two-step generator-verifier pipeline that checks SQL against policy, and (iii) LoRA fine-tuned models that learn permission awareness directly. Across multiple model families, explicit verification (the two-step framework) improves refusal precision and lowers false permits. At the same time, fine-tuning achieves a stronger balance between safety and utility (i.e., when considering execution accuracy). Longer and more complex policies consistently reduce the reliability of all systems. We release RBAC-augmented datasets and code.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑