随着大语言模型(Large Language Models, LLMs)被部署承担越来越多的现实世界职责,能够以可靠的方式规范和约束这些系统的行为变得十分重要。模型开发者可能希望为模型设定明确规则,例如“不生成辱骂性内容”,但这些规则可能被越狱技术绕过。现有的针对大语言模型的对抗攻击与防御评估通常要么需要成本高昂的人工审核,要么依赖不可靠的启发式检查。为解决这一问题,我们提出了规则遵循语言评估场景(Rule-following Language Evaluation Scenarios, RuLES),这是一个用于衡量大语言模型规则遵循能力的程序化框架。RuLES包含14个简单的文本场景,模型被要求在与用户交互的过程中遵守各类规则。每个场景都配有一个程序化评估函数,用于判定模型在对话中是否违反了任何规则。我们对专有模型和开源模型的评估显示,即便在简单的测试用例上,当前几乎所有模型都难以遵循场景规则。我们还证明,简单的优化攻击就足以大幅提升测试用例的失败率。最后,我们探索了两种潜在的改进方向:测试时引导和监督微调。
英文摘要:
As Large Language Models (LLMs) are deployed with increasing real-world responsibilities, it is important to be able to specify and constrain the behavior of these systems in a reliable manner. Model developers may wish to set explicit rules for the model, such as "do not generate abusive content", but these may be circumvented by jailbreaking techniques. Existing evaluations of adversarial attacks and defenses on LLMs generally require either expensive manual review or unreliable heuristic checks. To address this issue, we propose Rule-following Language Evaluation Scenarios (RuLES), a programmatic framework for measuring rule-following ability in LLMs. RuLES consists of 14 simple text scenarios in which the model is instructed to obey various rules while interacting with the user. Each scenario has a programmatic evaluation function to determine whether the model has broken any rules in a conversation. Our evaluations of proprietary and open models show that almost all current models struggle to follow scenario rules, even on straightforward test cases. We also demonstrate that simple optimization attacks suffice to significantly increase failure rates on test cases. We conclude by exploring two potential avenues for improvement: test-time steering and supervised fine-tuning.
Beyond Instruction Following: Evaluating Inferential Rule Following of Large Language Models
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Xiaohongshu Inc AI Lab, AIGility Cloud Innovation(小红书AI实验室);Department of Computer Science and Engineering, Texas A&M University(德克萨斯农工大学计算机科学与工程学院)
Investigating More Explainable and Partition-Free Compositionality Estimation for LLMs: A Rule-Generation Perspective
National Key Laboratory for Multimedia Information Processing, School of Computer Science, Peking University(国家多媒体信息处理重点实验室,计算机学院,北京大学);OPPO AI Center(OPPO人工智能中心)
Failures Pave the Way: Enhancing Large Language Models through Tuning-free Rule Accumulation
Tsinghua University(清华大学);Institute for AI Industry Research (AIR), Tsinghua University(清华大学人工智能产业研究院);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)
Distilling Rule-based Knowledge into Large Language Models
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);Pattern Recognition Center, WeChat AI, Tencent Inc.(腾讯微信AI模式识别中心)
LLMs model how humans induce logically structured rules
Department of Computer Science, Brown University, Providence, RI, USA(计算机科学系,布朗大学);Program in Linguistics, Brown University, Providence, RI, USA(语言学项目,布朗大学);Department of Cognitive and Psychological Sciences, Brown University, Providence, RI, USA(认知与心理学系,布朗大学);Brown University, Providence, Rhode Island, USA(布朗大学)
Large Language Model-Enhanced Symbolic Reasoning for Knowledge Base Completion
College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算与数据科学学院);School of Computer Science and Engineering, Nanjing University of Science and Technology(南京理工大学计算机科学与工程学院)
Case-Based or Rule-Based: How Do Transformers Do the Math?
Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);National Key Laboratory of General Artificial Intelligence, BIGAI(北京智源人工智能研究院通用人工智能国家重点实验室)
Beyond path selection: Better LLMs for Scientific Information Extraction with MimicSFT and Relevance and Rule-induced(R$^2$)GRPO
HKUST Hong Kong SAR, China(香港科技大学);SEU Jiangsu, China(江苏大学);HKUST(GZ) Guangzhou, China(香港科技大学(广州));Zhipu AI Beijing, China(智谱AI);HKUST(GZ), HKUST Guangzhou, China(香港科技大学(广州)、香港科技大学)
Automatic Adaptation Rule Optimization via Large Language Models
School of Computing, Tokyo Institute of Technology(东京工业大学计算学院);Department of Computer Science and Engineering, Waseda University(早稻田大学计算机科学与工程学院);Graduate School of Information Science and Technology, University of Tokyo(东京大学信息科学与技术研究生院)
CHAIRO: Contextual Hierarchical Analogical Induction and Reasoning Optimization for LLMs
National Engineering Laboratory for Big Data System Computing Technology(国家大数据系统计算技术工程实验室);Shenzhen University(深圳大学);Tsinghua University(清华大学);National University of Singapore(新加坡国立大学)
In Search of the Long-Tail: Systematic Generation of Long-Tail Inferential Knowledge via Logical Rule Guided Search
University of Southern California(南加州大学);Ohio State University(俄亥俄州立大学);Fudan University(复旦大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所);University of Pittsburgh(匹兹堡大学);University of Washington(华盛顿大学);Cornell University(康奈尔大学)
DAG-Math: Graph-of-Thought Guided Mathematical Reasoning in LLMs
Department of Statistics, University of Warwick(沃里克大学统计系);Google DeepMind(谷歌DeepMind);Department of Applied Mathematics, Hong Kong Polytechnic University(香港理工大学应用数学系);School of Mathematical Sciences, Institute of Natural Sciences and MOE-LSC, Shanghai Jiao Tong University(上海交通大学数学科学学院)