跳到正文
arXiv (AI + Vision + Imaging)· Yu Fu, Haz Sameen Shahgir, Huanli Gong, Zhipeng Wei, N. Benjamin Erichson, Yue Dong·· 14 天前AI 评分23

推理LLM在长上下文中会拒绝自己推断出的有害目标吗?

Do Reasoning LLMs Refuse What They Infer in Long Contexts?

AI 导读

研究提出"组合式推理攻击":将有害请求拆成语义不完整的片段嵌入长上下文,最终查询本身中性,模型需检索并组合片段才能推断出隐含的有害目标。模型对明确表述的有害请求通常会拒绝,但当同一目标需从片段重建时拒绝率下降,且上下文越长越明显;分析显示模型往往能重建有害目标却未能可靠拒绝,该差距无法仅用检索困难解释。提高推理时计算量可改善拒绝率,但成本更高且仍会出现不安全回复。

正文 · 原文

arXiv:2602.08874v3 Announce Type: replace Abstract: Long-context LLMs can infer objectives that are not explicitly stated. This capability is useful for reasoning over documents, code, and tool traces, but it also introduces a safety risk. Harmful intent can be distributed across a context and become apparent only after the model combines the relevant information. Existing safety evaluations largely focus on explicitly stated harmful requests and therefore do not fully capture this failure mode. We introduce compositional reasoning attacks, a long-context attack setting in which harmful requests are decomposed into semantically incomplete fragments and embedded in long contexts. The final query is neutral, and the model must retrieve and combine the fragments to infer the implied harmful objective. Empirically, we show that models generally refuse harmful requests when they are explicitly stated. However, refusal rates drop when the same objectives must be reconstructed from fragments, and these failures often become more pronounced in longer contexts. Our analyses suggest that this gap cannot be explained by retrieval difficulties alone. Models can often reconstruct the harmful objective but do not reliably refuse it. Increasing inference-time reasoning effort improves refusal, but at a higher computational cost, with unsafe responses still occurring. Our results reveal a long-context safety gap: Models are better at refusing harmful requests they see than harmful objectives they infer.

来源:arXiv (AI + Vision + Imaging) · arxiv.org