Manuscript Offprint

arXiv:2608.23264

Hidden in the Request: Explaining Unethical LLM Compliance through Token Relevance

Or Biton, Tomer Krichli, Itai Allouche, Joseph Keshet

Abstract

Although Large Language Models (LLMs) are aligned to optimize for both helpfulness and harmlessness, these dual objectives may conflict, inevitably leading to alignment failures. This work systematically investigates instances where LLMs fail to exhibit ethical behavior. To understand the underlying mechanics of these vulnerabilities, we introduce a probing methodology that presents unethical scenarios to LLMs in three distinct structural modalities: objective classification tasks, subjective first-person statements, and direct requests for assistance. We find that model performance degrades in the request-for-assistance-based form. Using Layer-wise Relevance Propagation (LRP), we trace this discrepancy to an attribution bias: the model places greater emphasis on benign task-framing tokens (e.g., “Can you help me...”) than on tokens signaling the underlying unethical behavior (e.g., “without getting caught”), which we term cue-tokens. We hypothesize that this under-attribution contributes to harmful compliance. To test this, we introduce two LRP-guided decoding methods that steer generation toward trajectories more relevant to cue tokens. Empirical evaluations show that these interventions promote safer responses, supporting cue-token attribution’s role in compliance failures.

1 Introduction

Large language models (LLMs) are increasingly deployed as general-purpose assistants across a wide range of domains. To support such broad deployment, alignment procedures commonly aim to make these models both helpful and harmless [6, 19]. Although these objectives are often compatible, they are not always jointly achievable. In particular, a model that indiscriminately maximizes helpfulness may provide assistance that facilitates harmful, unethical, or otherwise undesirable behavior [15, 25, 8, 23].

This work reveals a systematic gap in how LLMs respond to unethical behavior depending on how it is framed. In particular, models often recognize and accurately characterize an ethical violation when it is presented as a judgment or as a statement, yet fails to act on the same violation when the behavior is embedded in a request for assistance. In the latter setting, the pressure to be helpful can override the model's apparent recognition of the underlying ethical concern, leading it to provide assistance that facilitates the behavior. This work is focused on this discrepancy between ethical recognition and action, characterize the conditions under which it arises, and investigate methods for mitigating it.

Previous work shows that LLM responses to moral scenarios are sensitive to prompt formulation and social context [18, 12, 15]. A separate line of work explains refusal and safety behavior at the level of internal representations, identifying directions that mediate refusal and showing that harmfulness and refusal can be encoded separately [3, 27]. However, these studies do not directly examine whether LLMs assist with unethical actions that they recognize as morally wrong, nor which parts of the prompt such failures can be traced to.

∗^{*}Equal contribution

Preprint.

We examine this problem through the lens of Rest’s four-component model of morality [17]. According to this framework, moral action depends on four components: (i) moral sensitivity, the ability to recognize ethically problematic situations and anticipate their consequences; (ii) moral judgment, the ability to determine the most ethical course of action; (iii) moral motivation, the prioritization of moral values over competing objectives; and (iv) moral implementation, the ability to carry out the chosen action. A failure in any of these components can result in unethical behavior.

Drawing on Rest’s framework, we designed a controlled benchmark that presents the same unethical behavior in three forms: (i) a binary moral-classification task, (ii) a subjective first-person narrative, and (iii) an explicit request for assistance. This design allows us to distinguish failures of moral sensitivity from failures of moral motivation. We evaluated two LLMs across the three forms and found that, although both LLMs generally recognize the ethical issue in the classification and narrative settings, they do not consistently respond ethically when the same behavior is framed as a request for assistance. This discrepancy suggests that the objective of being helpful can override the models’ apparent recognition of ethical concerns.

To further investigate the source of this discrepancy, we used Layer-wise Relevance Propagation (LRP) [5], which quantifies how strongly each input token contributes to each predicted token of the output. Finally, rather than using LRP solely as a post-hoc attribution method, we introduce two LRP-guided decoding strategies that actively steer generation trajectories to prioritize these cues.

References (31)