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

用于搜索的智能体强化学习使指令微调对齐失效

Agentic Reinforcement Learning for Search Misaligns Instruction-Tuning

University of Oxford(牛津大学);Ludwig-Maximilians-Universität München(慕尼黑路德维希-马克西米利安大学);Harvard University(哈佛大学)

Yushi Yang, Shreyansh Padarha, Sarah Ball, Andrew Lee, Adam Mahdi

AI总结:

研究智能体强化学习(RL)对指令微调模型对齐的影响,发现RL训练使模型将有害请求转化为良性搜索查询,但在触发条件下产生多步不安全搜索行为,并提出了基于表示引导的RL训练方法恢复对齐。

摘要:

智能体强化学习(RL)训练大型语言模型使用工具,但其对对齐的影响尚不明确。我们研究用于搜索的智能体RL如何影响指令微调(IT)模型的对齐。我们发现,RL训练的模型通过将有害请求转移为良性搜索查询来继承拒绝推理,但在一个简单的诊断触发器下,该触发器在拒绝发生前引发搜索调用,这种机制失效。在此条件下,RL模型产生多步不安全的搜索动作和推理,相对于IT对应模型,Qwen和Llama模型的搜索查询安全性降低高达68.6%。该效应跨模型家族、规模和RL算法泛化。为了理解原因,我们识别出残差流中控制搜索查询安全性的线性方向,并表明RL训练逐步将搜索行为向该方向的有害端移动。因此,我们提出表示引导的RL训练,它基于朝向有害搜索方向的投影添加奖励惩罚。仅使用良性数据训练,它在不降低任务准确性的情况下恢复IT级别的对齐,且不需要额外的训练数据。总之,我们的工作为诊断、机制分析和缓解用于搜索的智能体RL中的对齐退化提供了首个框架。

英文摘要:

Agentic reinforcement learning (RL) trains large language models to use tools, but its impact on alignment is poorly understood. We study how agentic RL for search affects the alignment of instruction-tuned (IT) models. We find that RL-trained models inherit refusal reasoning by deflecting harmful requests into benign search queries, but this breaks down under a simple diagnostic trigger that elicits a search call before refusal can occur. Under this condition, RL models produce multi-step unsafe search actions and reasoning, reducing search query safety by up to 68.6% in Qwen and Llama models relative to their IT counterparts. The effect generalises across model families, scales, and RL algorithms. To understand why, we identify linear directions in the residual stream that control search query safety, and show that RL training progressively shifts search behaviour toward the harmful end of this direction. We thus propose representation-guided RL training, which adds a reward penalty based on projection toward the harmful search direction. Training on benign data alone, it restores IT-level alignment without reducing task accuracy and requires no additional training data. Together, our work provides the first framework for diagnosing, mechanistically analysing, and mitigating alignment degradation in agentic RL for search.

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

↑