# How can we reliably prevent large language models from generating harmful content across diverse contexts and modalities?

Category: [LLM Reliability Evaluation](../qcat/0.md) › [LLM Safety Evaluation](../qgroup/33.md) · 23 papers · Partly verified

[Open on the map](../questions.html#q24)

*23 papers; abstracts only, so this reports what papers claim.*

## Bottom line
Across these papers, defenses can improve safety while preserving utility and offer tunable safety-utility trade-offs, yet safety alignment remains brittle: lightweight inference-time attacks bypass refusal, and safety degrades in multi-step workflows, tool use, and compositional contexts, with poor transfer to code, low-resource languages, and multimodal inputs. The central tension is whether more inference-time reasoning helps: thinking traces show little safety deliberation, yet added reasoning improves refusal of contextually inferred harmful objectives, though incompletely and at cost. Missing are defenses validated against the new vulnerabilities the attack papers expose, testing on closed frontier systems as defense testbeds, and coverage of modalities and low-resource languages beyond a few frameworks.

## Convergence
### 1. Safety alignment is brittle: lightweight inference-time attacks without training can bypass refusal or redirect generation toward harm.
**3 papers** (1 self-reported results)
- [p148509](../p/148509.md) A Single Neuron Is Sufficient to Bypass Safety Alignment in  [causal; 1.7B-70B, two families]: suppressing a single refusal neuron bypassed safety across seven models spanning 1.7B to 70B parameters
- [p149105](../p/149105.md) Narrative Paradoxes in LLM Inference: Shaping Reasoning Traj [behavioural/synthetic; not stated]: paradoxical narratives steer representations away from refusal patterns, achieving state-of-the-art attack success across diverse LLMs
- [p156068](../p/156068.md) Inference-Time Vulnerability Beyond Shallow Safety: Alignmen [causal/behavioural; not stated]: short token injections at any generation step substantially alter subsequent safety behavior of aligned models

### 2. Safety degrades when models execute multi-step workflows, use tools, or must infer harmful goals spread across a context.
**3 papers**
- [p148657](../p/148657.md) Internal Safety Collapse in Frontier Large Language Models [behavioural/synthetic; four frontier LLMs]: four frontier LLMs averaged a 95.3% safety-failure rate across 53 workflows in eight disciplines
- [p139387](../p/139387.md) MLLMs Fail to Refuse when Using Tools Agentically [behavioural; open- and closed-weight MLLMs]: tool-using MLLMs show significantly lower safety, with relative refusal failure rate increases up to 68.7%
- [p149897](../p/149897.md) Do Reasoning LLMs Refuse What They Infer in Long Contexts? [behavioural/synthetic; not stated]: refusal rates drop sharply when harmful objectives must be reconstructed from fragments in long contexts
- (qualifies) [p149897](../p/149897.md) Do Reasoning LLMs Refuse What They Infer in Long Contexts? [behavioural/synthetic; not stated]: models usually refuse directly retrievable harmful requests; failures concentrate on compositionally inferred objectives

### 3. Defenses can raise safety while preserving general utility, with mechanisms for tuning the safety-utility trade-off.
**4 papers** (2 self-reported results)
- [p151223](../p/151223.md) UpSafe℃: Upcycling for Controllable Safety in Large Language [method/causal; not stated]: safety temperature allows dynamic adjustment of the trade-off between safety and utility at inference time
- [p148157](../p/148157.md) Selective Safety Steering via Value-Filtered Decoding [method/theory; not stated]: value-filtered decoding outperforms baselines, with a threshold controlling the bound on false interventions
- [p150944](../p/150944.md) Guaranteed Jailbreaking Defense via Disrupt-and-Rectify Smoo [method/theory; not stated]: disrupt-and-rectify smoothing surpasses state-of-the-art defenses in both harmlessness and helpfulness
- [p149849](../p/149849.md) Steering Frozen LLMs: Adaptive Social Alignment via Online P [method/theory; not stated]: bandit prompt routing improves the safety-utility trade-off and cumulative reward by 10.98% over the strongest baseline
- (qualifies) [p150944](../p/150944.md) Guaranteed Jailbreaking Defense via Disrupt-and-Rectify Smoo [method/theory; not stated]: guarantees are bounds conditional on disruption strength requirements
- (qualifies) [p154329](../p/154329.md) DACE: Diversity-Driven Adversarial Co-Evolution for Robust L [method; not stated] **[partial]**: improves robustness to out-of-distribution attacks while preserving capabilities, but the abstract describes no trade-off tuning mechanism
- (qualifies) [p148333](../p/148333.md) BarrierSteer: LLM Safety via Learning Barrier Steering [method/theory; not stated] **[partial]**: latent barrier steering reduces unsafe generations without modifying parameters, but the abstract describes no explicit trade-off control

### 4. Safety alignment trained in one domain often fails to transfer to code, low-resource languages, or multimodal inputs.
**3 papers**
- [p148231](../p/148231.md) CodeMimicry: Exploiting Safety Generalization Lag in Large L [behavioural/method; 8 commercial LLMs]: alignment trained on natural language fails to transfer to code, giving a 96.25% attack success rate
- [p151163](../p/151163.md) Multilingual Safety Alignment via Self-Distillation [method; not stated]: models hold strong safeguards in high-resource languages but stay highly vulnerable to jailbreaks in low-resource ones
- [p149571](../p/149571.md) Safety Geometry Collapse in Multimodal LLMs and Adaptive Dri [causal/correlational; not stated]: MLLMs often fail to transfer safety capabilities learned in the text modality to semantically equivalent non-text inputs

## Contested
### Does more inference-time reasoning make models safer? (scope difference)
- A: Thinking traces do not deliberate about safety; the refusal decision is already fixed early in thinking. (p150945)
- B: Increasing inference-time reasoning improves refusal of harmful objectives that must be inferred from context. (p149897)
- Why: p150945 probes thinking traces on standard harmful prompts; p149897 studies long-context compositional attacks where reasoning helps reconstruct distributed intent.

## Isolated claims (1 to 2 papers)
- Steering a model's internal representations at inference time reduces unsafe generations across text and multimodal settings while preserving utility.
  - [p153308](../p/153308.md) Omni-Safety under Cross-Modality Conflict: Vulnerabilities,  [causal/method; not stated] **[partial]**: OmniSteer raised refusal success from 69.9% to 91.2% while preserving capabilities across all modalities
  - [p155291](../p/155291.md) Harnessing Textual Refusal Directions for Multimodal Safety [causal/method; not stated] **[partial]**: MARS injected textual refusal directions into multimodal models, giving consistent safety gains while preserving utility
  - [p152823](../p/152823.md) ReSAM: Representation-Level Safety Margin Alignment for Visi [method/correlational; not stated] **[disputed]**: lightweight representation-space alignment method that: (i) computes direction vectors separating refusal and non-refusal representations
- Test-time alignment for diffusion language models can cut unsafe outputs by re-masking risk-inducing tokens during denoising.
  - [p151876](../p/151876.md) CURE: Counterfactual Unsafe-token Re-masking for Diffusion L [method; not stated]: counterfactual re-masking reduced macro-average ASR from 47.20% to 1.36% across three DLMs, adding only 0.84 TFLOPs
- Subgroup tail coverage governs worst-group safety, with an offline impossibility result when harmful tail support is missing.
  - [p149857](../p/149857.md) TailGuard: Subgroup Tail Coverage Theory for Safe LLM Alignm [theory; not stated]: proves subgroup quantile coverage governs tail-risk transfer and yields an impossibility result under missing tail support
- Guard models often fail to generalize to out-of-distribution alignment failures, but pairing them with OOD detectors improves detection.
  - [p139423](../p/139423.md) Benchmarking and Improving Monitors for Out-Of-Distribution  [behavioural/method; not stated]: combining a guard model with a Mahalanobis OOD detector raised recall from 39% to 47%, with positive scaling trends

## Gaps
- Defensive methods are validated mainly on open-weight models; closed frontier systems appear mostly as attack targets, not defense testbeds.
- No paper shows a proposed defense closing the specific new vulnerabilities (code completion, tool use, workflow, long-context) reported in the attack papers.
- Modalities beyond text, image, and video, and low-resource languages beyond one distillation framework, remain untested.

## Off topic or tangential
- [p153664](../p/153664.md) Fingerprinting Inference Systems of Large Language Models [method/behavioural; not stated]: fingerprints inference-system components from numerical deviations; its only safety link is identifying deployment stacks, not preventing harmful content

## Verification report
- revision: 9 findings sent back to the generator; the revised answer was checked again
- placement: 1 papers were in no claim; 1 added to an existing claim, 0 given a new claim, 0 marked off topic
- bottom line: 3 sentences written, 0 dropped and 0 narrowed where both judges agreed, 0 kept although the judges split, 0 not checked
- 25 paper-to-statement attributions checked by two judges; agreement: 2 supports vs partial, 22 both agree, 1 split
- changes: 1 disputed, 2 partial
- judge A (command-a-plus-05-2026): planted wrong statements caught 28 of 28; positive controls passed 28 of 28; claim-level overstatements caught 1 of 1; bottom-line overstatements caught 1 of 1
- judge B (deepseek/deepseek-v4-pro-0813): planted wrong statements caught 28 of 28; positive controls passed 28 of 28; claim-level overstatements caught 1 of 1; bottom-line overstatements caught 1 of 1

### Removed, changed or disputed by verification
- disputed: [p152823](../p/152823.md) Steering a model's internal representations at inference time reduces unsafe generations across text and multi -- disputed: judge A: Abstract does not discuss steering representations at inference time or preserving utility.; judge B: It reports representation-space alignment improving safety, but not inference-time steeri

## The 23 papers that ask this question

- [BarrierSteer: LLM Safety via Learning Barrier Steering](../p/148333.md)
- [UpSafe℃: Upcycling for Controllable Safety in Large Language Models](../p/151223.md)
- [A Single Neuron Is Sufficient to Bypass Safety Alignment in Large Language Models](../p/148509.md)
- [Guaranteed Jailbreaking Defense via Disrupt-and-Rectify Smoothing](../p/150944.md)
- [Internal Safety Collapse in Frontier Large Language Models](../p/148657.md)
- [Omni-Safety under Cross-Modality Conflict: Vulnerabilities, Dynamic Mechanisms and Efficient Alignment](../p/153308.md)
- [CodeMimicry: Exploiting Safety Generalization Lag in Large Language Models via Structured Code Completion](../p/148231.md)
- [Safety Geometry Collapse in Multimodal LLMs and Adaptive Drift Correction](../p/149571.md)
- [CURE: Counterfactual Unsafe-token Re-masking for Diffusion Large Language Model Test-time Alignment](../p/151876.md)
- [TailGuard: Subgroup Tail Coverage Theory for Safe LLM Alignment](../p/149857.md)
- [Steering Frozen LLMs: Adaptive Social Alignment via Online Prompt Routing](../p/149849.md)
- [Selective Safety Steering via Value-Filtered Decoding](../p/148157.md)
- [Narrative Paradoxes in LLM Inference: Shaping Reasoning Trajectories toward Misalignment](../p/149105.md)
- [Multilingual Safety Alignment via Self-Distillation](../p/151163.md)
- [ReSAM: Representation-Level Safety Margin Alignment for Vision–Language Models](../p/152823.md)
- [Fingerprinting Inference Systems of Large Language Models](../p/153664.md)
- [Do Reasoning LLMs Refuse What They Infer in Long Contexts?](../p/149897.md)
- [Benchmarking and Improving Monitors for Out-Of-Distribution Alignment Failure in LLMs](../p/139423.md)
- [Inference-Time Vulnerability Beyond Shallow Safety: Alignment Along Generation Trajectories](../p/156068.md)
- [MLLMs Fail to Refuse when Using Tools Agentically](../p/139387.md)
- [Harnessing Textual Refusal Directions for Multimodal Safety](../p/155291.md)
- [DACE: Diversity-Driven Adversarial Co-Evolution for Robust LLM Safety Alignment](../p/154329.md)
- [Do Thinking Tokens Help with Safety?](../p/150945.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=q/24)
