TRANSMISSION // 2612.01078v1
Why longer prompts can weaken AI safety
Source published
A study of two Qwen3 models links longer inputs with weaker safety signals and tests SALSA, a training approach that brings long-context safety closer to short-context results.

Adding harmless material to a prompt may seem like it should leave a model’s safety behavior unchanged. This preprint investigates why that expectation can fail—and whether training can help.
A long prompt can bury the part that matters. In a study of two Qwen3 language models, researchers examined why safety performance may fall as inputs grow, even when the added material is benign or unrelated to the user’s request. They also tested a training approach called SALSA, designed to preserve safety behavior in long contexts without making models refuse more often across the board.
The question matters as language models are used with lengthy documents, retrieved information and extended conversations. A model trained to recognize a risky request in a short exchange may respond differently when the same request appears amid many more tokens. The authors investigate both the observed behavior and possible internal explanations.
Tracing a safety signal
The researchers used safety-vector projection: a way of measuring how strongly internal model representations align with a direction associated with safe versus harmful inputs. They examined the attention and multilayer perceptron (MLP) pathways, two components of a transformer model’s processing.
Their analysis points to two linked patterns. First, as context grows, attention to the risky query falls relative to attention to other tokens. The authors call this risk dilution. Second, the MLP pathway’s measured safety-related contribution also declines, which they interpret as weaker safety perception. In their tested Qwen3-8B model, for example, safety rates on the LongSafety evaluation fell from 69.7% to 42.7% for relevant long contexts as length increased from zero to 8,192 tokens. For irrelevant contexts, the reported rate fell from 64.0% to 50.5%. These results show a decline in the tested setup; they do not establish that length alone explains every safety failure in deployed systems.
Training that summarizes and judges
SALSA combines two methods. Safety-Aware Group Sequence Policy Optimization (SA-GSPO) trains a model to judge whether candidate responses are safe or unsafe, aiming to strengthen risk discrimination rather than simply reward refusals. Segment Summary On-Policy Self-Distillation (SS-OPSD) trains the model to summarize input segments within its reasoning, then transfers that behavior so it can summarize without a special inference-time prompt. An exponential moving average (EMA) anchor on benign examples is intended to limit unwanted changes to ordinary responses and capabilities.
The authors evaluated SALSA on Qwen3-4B and Qwen3-8B. Their training used 3,000 examples assembled from two long-context safety corpora, with 543 cases from LongSafety held out for testing. Safety labels were supplied by Qwen3Guard, an automated guard model. The evaluation also included jailbreak tests, measures of general capability, and tests for over-refusal.
On the held-out LongSafety “Full” test, the reported safety rate for Qwen3-8B rose from 39.21% before alignment to 89.20% with SALSA; for Qwen3-4B, it rose from 38.67% to 87.19%. The gap between short- and long-context safety narrowed: from 29.30 percentage points to 3.10 for the 8B model, and from 29.45 to 4.89 for the 4B model. These are results on the paper’s selected benchmarks and models, not estimates of real-world incident rates.
The paper reports that general-capability scores and response rates remained largely stable overall, although results varied by measure. One revealing comparison is the prompted-summary approach: it improved safety in a reported test but substantially reduced response rate and some capability scores. Distilling summarization into the model, with the benign-data anchor, was intended to avoid that cost. The results support that design in these experiments, but do not guarantee the same trade-off elsewhere.
What the evidence can—and cannot—show
The internal measurements offer a proposed account of how safety signals change with context. They are not direct proof that attention dilution causes every unsafe answer. The authors’ analysis also relies on a particular safety direction and studies two Qwen3 model sizes; other architectures, datasets and deployment settings may behave differently. Automated safety labels and benchmark scores have their own limitations, and the paper’s mechanistic explanation includes simplifying assumptions about how summaries affect attention.
The source is an arXiv preprint marked “under review,” not a peer-reviewed publication. Its findings should therefore be treated as preliminary. The study offers a specific, testable explanation and encouraging benchmark results—not evidence that long-context safety is solved.
- AI safety
- large language models
- long context
- SALSA
- model alignment
- attention
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
When Compressing AI Requests Weakens Safety Refusals
Supporting evidence: Both papers report that changing how a request is represented or processed can weaken refusal behavior: Guan et al. attribute long-context degradation to diluted risk signals and reduced safety perception, while Nguyen and Lin report lower harmful-prompt refusal rates after encoder-based compression. This supports the bounded point that refusal behavior may not be preserved across input transformations; the studies use different settings and do not establish a shared mechanism or directly comparable effect.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.01078v1 — Original paper
Excerpt reference:
static/papers/2612.01078v1.md:66-182
Basis: Paper text
Source file SHA-256:310c5476038c1dac49476e94ee5ab32844c774df42271ff4f5ff91df3e598ee62611.06380v1 — Original paper
Excerpt reference:
static/papers/2611.06380v1.md:452-519
Basis: Paper text
Source file SHA-256:abcb51cb3957346ec922ab415603e888afb6725e905005d8c25a2ca3b2be1c8f
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Making AI refusals harder to erase
Source published
Shared keywords: ai safety, model alignment
Testing whether AI can follow a changing ICU patient
Source published
Shared keywords: ai safety, large language models
A clearer handoff may help AI assistants refuse less often
Source published
Shared keywords: ai safety, large language models
How Mosaic coordinates CPUs and GPUs for long-context AI
Source published
Shared keywords: large language models
A shared shortlist could make long-context AI faster
Source published
Shared keywords: large language models