Papers › From Prompt Risk to Response Risk: Paired Analysis of Safety Behavior of Large Language Models

From Prompt Risk to Response Risk: Paired Analysis of Safety Behavior of Large Language Models

28 Apr 2026arXiv:2604.26052added by Syntology

Mengya Hu, Qiong Wei, Sandeep Atluri

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Safety evaluations of large language models (LLMs) typically report binary outcomes, i.e. attack success rate (ASR), refusal rate, or harmful versus safe classification, which hide how risk changes between prompt and response. We present a paired analysis over human labeled prompt and response records across four harm categories (Sexual, Self harm, Hate and Violence) and ordinal severity levels (Safe, Low, Medium, High). 61% of responses reduce harm relative to the prompt, 36% preserve severity, and 3% escalate. The escalation splits into two mechanisms: benign prompts triggering unrequested harmful detail, and answers that stay on task at higher severity than the prompt. Category decomposition shows that Sexual content exhibits the highest harm persistence in this sample, driven by compliance at the same severity rather than drift from benign inputs. Joint relevance analysis exposes a helpfulness versus harmlessness tradeoff: compliance escalations remain highly relevant, whereas safe responses include generic refusals with low relevance. A public supporting evaluation over 600 prompts and six models reproduces the framework's measurements and two directional signals, while few-shot LLM graders exhibit a prompt/response detection asymmetry that data calibration does not close. Grader prompts, public-evaluation artifacts, and analysis code are shared at https://github.com/microsoft/PairedSafety.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2604.26052")

Code

Syntology Ran 16 of 16 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 16 ran with no contract checked.

By repository: found in paper text by Syntology: 16 samples from 1 repository, 16 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

microsoft/PairedSafety found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 16 ran; 0 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

16ran

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from microsoft/PairedSafety. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_grader_user_prompt microsoft/PairedSafety/analysis/public_mini_eval/common.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 6e8d3206a87226f5 · report
category_severity microsoft/PairedSafety/analysis/grader_error_analysis/analyze_grader_errors.py found in paper text by Syntology ran MIT (permissive) · c640cdb2a2ed31c1 · report
category_severity microsoft/PairedSafety/analysis/relevance_significance/compute_relevance_tests.py found in paper text by Syntology ran MIT (permissive) · cf95ecf6bf76f008 · report
category_severity microsoft/PairedSafety/analysis/statistical_uncertainty/compute_ci.py found in paper text by Syntology ran MIT (permissive) · 3f7d6c8dfcbe8fe8 · report
classify microsoft/PairedSafety/analysis/grader_error_analysis/analyze_grader_errors.py found in paper text by Syntology ran MIT (permissive) · 997b1fcda4c2d309 · report
collect_errors microsoft/PairedSafety/analysis/grader_error_analysis/analyze_grader_errors.py found in paper text by Syntology ran MIT (permissive) · b995a562d936b28c · report
exact_mcnemar_p microsoft/PairedSafety/analysis/public_mini_eval/04_analyze.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 2a8a032b65547218 · report
extract_json microsoft/PairedSafety/analysis/grader_error_analysis/llm_code_errors.py found in paper text by Syntology ran MIT (permissive) · f430bb03b2488d92 · report
holm_adjust microsoft/PairedSafety/analysis/public_mini_eval/04_analyze.py found in paper text by Syntology ran MIT (permissive) · e3b4271de6261ae4 · report
load_rows microsoft/PairedSafety/analysis/relevance_significance/compute_relevance_tests.py found in paper text by Syntology ran MIT (permissive) · 8e7210e0a9408f5b · report
max_severity microsoft/PairedSafety/analysis/relevance_significance/compute_relevance_tests.py found in paper text by Syntology ran MIT (permissive) · 7b486431a06a277c · report
max_severity microsoft/PairedSafety/analysis/statistical_uncertainty/compute_ci.py found in paper text by Syntology ran MIT (permissive) · 50ebee8611871db6 · report
normalize microsoft/PairedSafety/analysis/grader_error_analysis/llm_code_errors.py found in paper text by Syntology ran MIT (permissive) · ffefa80c0ddebd88 · report
raw_to_merged microsoft/PairedSafety/analysis/public_mini_eval/common.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 929355233d2fe52d · report
wilson microsoft/PairedSafety/analysis/public_mini_eval/04_analyze.py found in paper text by Syntology ran MIT (permissive) · e96ea8226b0e733b · report
wilson_ci microsoft/PairedSafety/analysis/statistical_uncertainty/compute_ci.py found in paper text by Syntology ran fingerprinted MIT (permissive) · c99829ab032929a1 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2604.26052, was issued in April 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections