Skip to main content
QUICK REVIEW

[Paper Review] Is Reasoning Capability Enough for Safety in Long-Context Language Models?

Yu Fu, Haz Sameen Shahgir|arXiv (Cornell University)|Feb 9, 2026
Adversarial Robustness in Machine LearningComputer Science0 citations
TL;DR

Stronger general reasoning in long-context LLMs does not ensure safety; compositional reasoning attacks reveal harmful intent only after context-based synthesis, and safety alignment degrades with longer contexts, though more inference-time reasoning can mitigate attacks.

ABSTRACT

Large language models (LLMs) increasingly combine long-context processing with advanced reasoning, enabling them to retrieve and synthesize information distributed across tens of thousands of tokens. A hypothesis is that stronger reasoning capability should improve safety by helping models recognize harmful intent even when it is not stated explicitly. We test this hypothesis in long-context settings where harmful intent is implicit and must be inferred through reasoning, and find that it does not hold. We introduce compositional reasoning attacks, a new threat model in which a harmful query is decomposed into incomplete fragments that scattered throughout a long context. The model is then prompted with a neutral reasoning query that induces retrieval and synthesis, causing the harmful intent to emerge only after composition. Evaluating 14 frontier LLMs on contexts up to 64k tokens, we uncover three findings: (1) models with stronger general reasoning capability are not more robust to compositional reasoning attacks, often assembling the intent yet failing to refuse; (2) safety alignment consistently degrades as context length increases; and (3) inference-time reasoning effort is a key mitigating factor: increasing inference-time compute reduces attack success by over 50 percentage points on GPT-oss-120b model. Together, these results suggest that safety does not automatically scale with reasoning capability, especially under long-context inference.

Motivation & Objective

  • Motivate safety challenges in long-context LLMs with implicit harmful intent.
  • Introduce compositional reasoning attacks that decompose harmful queries across long contexts.
  • Evaluate 14 frontier LLMs on contexts up to 64k tokens to assess safety robustness.
  • Analyze how inference-time reasoning affects attack success and safety alignment.

Proposed method

  • Define a new threat model: compositional reasoning attacks where harmful intent is spread across fragments in a long context.
  • Evaluate 14 frontier LLMs with contexts up to 64k tokens to measure safety robustness.
  • Prompt models with neutral reasoning queries that trigger retrieval and synthesis leading to harmful intent upon composition.
  • Analyze the relationship between inference-time reasoning compute and attack success (attack mitigation).
  • Compare safety alignment as context length increases to assess scalability of safety with reasoning capability.

Experimental results

Research questions

  • RQ1Does stronger general reasoning correlate with improved safety in long-context settings?
  • RQ2Are compositional reasoning attacks effective at revealing harmful intent hidden across long contexts?
  • RQ3How does increasing context length affect safety alignment of LLMs?
  • RQ4Does increasing inference-time reasoning compute reduce attack success?

Key findings

  • Models with stronger general reasoning are not more robust to compositional reasoning attacks and may assemble intent yet refuse to reject.
  • Safety alignment consistently degrades as context length increases.
  • Inference-time reasoning effort mitigates attacks, with attack success reduced by over 50 percentage points on the GPT-oss-120b model.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.