arXiv:2609.00760cs.CLSep 2026

Manuscript Offprint

arXiv:2609.00760

A Unified Mechanistic Analysis of Knowledge- and Safety-Based Refusals

Yuri Son, Seunghee Kim, Hyuhng Joon Kim, Taeuk Kim

Abstract

Large language models (LLMs) are increasingly trained to decline queries that fall outside their knowledge (knowledge-based refusal, KR) or violate safety policies (safety-based refusal, SR). Although KR and SR result in superficially similar responses, they have largely been studied in isolation, leaving open whether they share an underlying mechanism. We address this gap with a systematic study on a new dataset of 213 contrastive quadruples that jointly probe both refusal types. We find that KR and SR are governed by overlapping yet distinguishable mechanisms. Both share a refusal direction, yet the overlap is asymmetric: SR signals transfer more strongly to KR than the reverse. Type-specific specialization emerges mainly in upper layers, with KR aligning with uncertainty- and knowledge-related representations and SR with safety- and policy-related ones. We thus characterize refusal as a commit-then-specify process: a shared initial mechanism commits to refusing, then type-specific features in later layers specify whether the grounds are epistemic or normative.

1 Introduction

Large language models (LLMs) are increasingly deployed in real-world settings where knowing when to refuse a user's query is as important as knowing how to answer it. For instance, a request may (1) lie beyond the model's knowledge (e.g., unverifiable facts, fictional entities) or (2) violate normative constraints (e.g., private information, harmful instructions). The first case gives rise to knowledge-based refusal (KR), which represents the model's awareness of its epistemic limitations. The second leads to safety-based refusal (SR), reflecting the model's adherence to safety and usage guidelines.

Although KR and SR elicit superficially similar refusal behavior, the two have largely been studied

Figure

Figure 1: Knowledge- and safety-based refusals stem from different conditions yet produce similar responses, motivating a unified analysis of their inner workings.

in isolation, as illustrated in Figure 1. Specifically, KR has been investigated primarily in research on uncertainty estimation, hallucination mitigation, and epistemic honesty (Yang et al., 2024; Zhang et al., 2024; Kim et al., 2025). By contrast, SR has been explored in the literature on LLM alignment, jailbreaking, and policy compliance (Dai et al., 2024; Yi et al., 2024; Cui et al., 2025). As a result of this separation, a fundamental research question remains unresolved: (RQ1) do KR and SR share an internal mechanism, or do they arise from distinct processes? Addressing this is crucial, as improving one type of refusal may transfer to, interfere with, or fail to affect the other.

However, instilling both KR and SR in a single model and probing the underlying mechanisms is non-trivial. First, the datasets used for KR and SR differ substantially in topic coverage, domain, and lexical style, hindering a systematic comparison. Second, as a result, few models have been explicitly trained to handle both refusal types.

To this end, we introduce a new dataset of 213 contrastive quadruples. All four items within a quadruple share a common topic and format, but differ in whether the model should refuse. They are organized into two refusal–control pairs: (KR,

*Corresponding author

KC) for knowledge and (SR, SC) for safety, where each control calls for a normal answer despite mirroring its refusal counterpart.¹ This design isolates refusal-specific behavior from confounders, enabling a controlled study. In addition, we show that a sequential training schedule—first KR, then SR—achieves the best balance between refusal capability and general performance, offering a practical recipe for performing both forms of refusal.

Building on this foundation, we investigate two further questions beyond RQ1: (RQ2) If KR and SR share an internal mechanism, is the transfer between them symmetric or asymmetric? (RQ3) Where and how does the model develop signals that distinguish KR from SR?

Through representation-level analysis, we find that KR and SR are governed by overlapping yet distinguishable mechanisms. The two share a refusal direction—the representational shift from control to refusal conditions—revealing a common basis (RQ1). However, this overlap is asymmetric: SR signals transfer more strongly to KR than KR signals to SR (RQ2). Finally, type-specific specialization emerges prominently in the upper layers, with KR aligning with uncertainty- and knowledge-related representations and SR with safety- and policy-related ones (RQ3).

In summary, refusal in LLMs is a layered phenomenon: a shared initial mechanism that produces refusal, refined by type-specific features in later layers, which together explain the surface similarity of refusals and the divergent paths that produce them.