Pith.

Computation and Language · arXiv:2603.23509 v2 · submitted 4 Mar 2026

Internal Safety Collapse in LLMs and Coding Agents

Yutao Wu, Xiao Liu, Hanxun Huang, Xiang Zheng, Yige Li, Yifeng Gao, Cong Wang, Bo Li

show 2 more authors

Xingjun Ma, Yu-Gang Jiang

The paper says

“These results indicate that, despite substantial alignment efforts, frontier LLMs remain internally unsafe: safety alignment primarily reshapes surface behavior without eliminating the underlying knowledge that enables unsafe outputs.”

from the abstract · picked out as the main claim by a classifier

Pith says

Pith has not reviewed this paper.

Get a Pith Review, $5

Reviews

Reviews by people

No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and their review is published here whatever it concludes.

Request a human review

How Pith checks papers · The full audit of this paper

The paper

Abstract

LLMs and coding agents can now tackle complex, long-horizon tasks through advances in reinforcement learning, but stronger task-solving capabilities do not necessarily preserve safety alignment. Recent AI agent incidents involving reward hacking indicate how optimizing for task success can bring learned capabilities into conflict with safety alignment. In this work, we identify a critical failure mode that manifests this conflict, which we term Internal Safety Collapse (ISC). When completing otherwise benign coding tasks, AI agents can prioritize satisfying program requirements over safety constraints, generating large volumes of sensitive content, including unsafe outputs, as task data. To study this phenomenon, we introduce TVD (Task, Validator, Data), a framework for building controlled workflows that require sensitive content for completion. Through extensive experiments, we observe instances of highly harmful content that closely resemble outputs from early, unaligned LLMs in 2023. We further find that ISC can be effectively triggered even in highly capable LLMs such as Claude Fable 5. These results indicate that, despite substantial alignment efforts, frontier LLMs remain internally unsafe: safety alignment primarily reshapes surface behavior without eliminating the underlying knowledge that enables unsafe outputs. Our findings underscore the need for caution when deploying LLMs in high-stakes settings, such as scientific pipelines and autonomous agents. Content Warning: This paper contains examples of harmful content. Source code: https://github.com/wuyoscar/Internal-Safety-Collapse

The paper's own sentences, arranged. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. No sentence in this record was written by a model.

abstract compiled · 2026-11-09 · no language-model review

How the main claim is stated: asserted 0.50

What the abstract itself states, as probabilities: claims first 0.07 · states limitation 0.31 · human participants 0.05 · controlled comparison 0.11 · randomized assignment 0.02 · states quantitative result 0.06 · compares with prior results 0.39 · mentions code or data availability 0.97

The abstract, sentence by sentence

This table labels the abstract only (arXiv listing abstract v2). The number is the probability the classifier gave the label.

SentenceRoleThe authors' own workStates the main conclusionStrength
LLMs and coding agents can now tackle complex, long-horizon tasks through advances in reinforcement learning, but stronger task-solving capabilities do not necessarily preserve safety alignment. background 0.99 0.07 0.11 asserted 0.68
Recent AI agent incidents involving reward hacking indicate how optimizing for task success can bring learned capabilities into conflict with safety alignment. background 1.00 0.05 0.04 hedged possibility 0.88
In this work, we identify a critical failure mode that manifests this conflict, which we term Internal Safety Collapse (ISC). contribution 1.00 0.88 0.09 asserted 1.00
When completing otherwise benign coding tasks, AI agents can prioritize satisfying program requirements over safety constraints, generating large volumes of sensitive content, including unsafe outputs, as task data. result 0.78 0.69 0.15 asserted 0.54
To study this phenomenon, we introduce TVD (Task, Validator, Data), a framework for building controlled workflows that require sensitive content for completion. method 0.88 0.92 0.03 asserted 1.00
Through extensive experiments, we observe instances of highly harmful content that closely resemble outputs from early, unaligned LLMs in 2023. result 1.00 0.95 0.07 asserted 1.00
We further find that ISC can be effectively triggered even in highly capable LLMs such as Claude Fable 5. result 1.00 0.92 0.08 asserted 0.99
These results indicate that, despite substantial alignment efforts, frontier LLMs remain internally unsafe: safety alignment primarily reshapes surface behavior without eliminating the underlying knowledge that enables unsafe outputs. interpretation 1.00 0.84 0.88 asserted 0.50
Our findings underscore the need for caution when deploying LLMs in high-stakes settings, such as scientific pipelines and autonomous agents. interpretation 0.73 0.22 0.11 asserted 0.77
Content Warning: This paper contains examples of harmful content. limitation 0.79 0.20 0.02 asserted 0.93
Source code: https://github.com/wuyoscar/Internal-Safety-Collapse contribution 0.63 0.15 0.01 unclear 0.80

What kind of paper the classifier reports this is: empirical study 0.96 · evidence from observation or experiment 1.00

What was examined, and what was not

Sources read

  • arXiv listing abstract v2

Not examined

  • full text
  • figures and tables
  • references and citing sentences
  • relations to other papers

Levels run

  • P abstract

Not run

  • S sections
  • T body sentences
  • C citations
  • R cross-paper relations

How the labels were made

Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-11-09: 1 request, 8,106 input tokens.

Every quoted sentence on this record is the authors'. Every label is from Pith's closed vocabulary, with the probability shown beside it. This record as JSON

How the literature uses it

7 arXiv papers cite this in 20 sentences

Each citing sentence is taken from the citing paper's LaTeX source and typed by Pith's classifier. A label appears at probability 0.8 or more (0.95 for support), a contest at 0.7 or more; the quoted words are the citing authors'. How each label was checked · JSON

Papers citing it · 12 sentences without a confident label

Uses its method or tool 1 paper
Uses its data or values 1 paper
Compares with it 1 paper
Cites it as support 3 papers
Cites it as background 1 paper

Challenges and discussion

Know something about this paper? Leave a comment.

No comments yet.

Sign in to comment