---
title: Conflict-Aware Sparse Tuning (CAST)
url: https://www.emergentmind.com/topics/conflict-aware-sparse-tuning-cast
type: topic
---

# Conflict-Aware Sparse Tuning (CAST)

Searching arXiv for the specified paper to ground the article in current metadata and citation details.
Conflict-Aware Sparse Tuning (CAST) is a framework for safety alignment in large language models that combines head-level conflict diagnosis with sparse fine-tuning. It is introduced in "Safety-Utility Conflicts Are Not Global: Surgical Alignment via Head-Level Diagnosis" [2601.04262], which argues that safety alignment in LLMs inherently presents a multi-objective optimization conflict, often accompanied by an unintended degradation of general capabilities. CAST is designed around the claim that this conflict is not uniformly distributed across Transformer parameters: instead, the functional sensitivity and degree of conflict vary substantially across different attention heads. The method therefore constructs a pre-alignment conflict map and uses it to guide selective parameter updates, with the stated goal of reducing utility loss without compromising safety [2601.04262].

## 1. Conceptual basis and problem setting

CAST is motivated by a limitation attributed to existing mitigation strategies: they typically rely on global gradient geometry to resolve safety-utility conflicts, but they overlook Modular Heterogeneity within Transformers. In the formulation of the paper, global approaches impose uniform update rules across all parameters, often resulting in suboptimal trade-offs by indiscriminately updating utility sensitive heads that exhibit intense gradient conflicts [2601.04262].

Within this framework, the central empirical claim is that alignment conflicts in LLMs are not uniformly distributed. The reported finding is that the drop in general capabilities mainly comes from updating a small group of "high-conflict" heads. CAST operationalizes this observation by identifying those heads before alignment and excluding them from updates during safety tuning. This suggests a shift from parameter-global alignment to what the paper characterizes as a surgical alignment regime, in which the granularity of diagnosis and intervention is the attention head rather than the entire model [2601.04262].

A common misconception addressed by the CAST formulation is that safety-utility conflict should be treated as a global property of the model or training objective. The reported results instead support the narrower claim that conflict is concentrated in a small subset of heads, while other heads can be updated to improve safety with minimal utility cost [2601.04262].

## 2. Head-level diagnosis: optimization conflict and functional sensitivity

CAST hinges on a per-head "Conflict Score" $C(h)$ that combines two diagnostic metrics: Optimization Conflict $O(h)$ and Functional Sensitivity $S(h)$ [2601.04262].

Optimization Conflict measures geometric disagreement between the safety and utility gradient signals at head $h$. The notation is defined as follows: $\theta_h$ denotes the parameters of head $h$, with the analysis focusing on its query-projection submatrix; $D_{\rm safe}$ is a small set of harmful prompts used to induce refusal gradients; $D_{\rm util}$ is a small set of general-capability benchmarks used to induce utility gradients; and
$g_{\rm safe}(h)=\nabla_{\theta_h}\ell_{\rm safe}(\theta)$ and $g_{\rm util}(h)=\nabla_{\theta_h}\ell_{\rm util}(\theta)$. The paper gives the metric as
$$
O(h)=1-\cos[g_{\rm safe}(h),g_{\rm util}(h)]
=1-\frac{\langle g_{\rm safe}(h),g_{\rm util}(h)\rangle}{\|g_{\rm safe}(h)\|\cdot \|g_{\rm util}(h)\|}\in[0,1].
$$
This metric is intended to identify heads where safety and utility gradients are strongly opposed [2601.04262].

Functional Sensitivity measures how "causally critical" head $h$ is for utility tasks versus safety tasks via zero-shot ablation. Let $f_{\theta\setminus h}$ denote the model with head $h$ masked, $\mathrm{Acc}_{\rm gen}(\cdot)$ denote accuracy on $D_{\rm util}$, and $\mathrm{Ref}_{\rm safe}(\cdot)$ denote refusal rate or defense success on $D_{\rm safe}$. The raw shifts are
$$
H_{\rm gen}(h)=\mathrm{Acc}_{\rm gen}(f_{\theta\setminus h})-\mathrm{Acc}_{\rm gen}(f_{\theta}),
$$
$$
H_{\rm safe}(h)=\mathrm{Ref}_{\rm safe}(f_{\theta\setminus h})-\mathrm{Ref}_{\rm safe}(f_{\theta}).
$$
These shifts are converted to percentile ranks $\tilde H\in[0,1]$, after which the sensitivity metric is defined as
$$
S(h)=\exp\bigl[\tilde H_{\rm gen}(h)-\tilde H_{\rm safe}(h)\bigr].
$$
The interpretation supplied in the paper is explicit: $S(h)>1$ if head $h$ is more critical to utility than safety, making it bad to update; $S(h)<1$ if head $h$ is more critical to safety, so updating it is "safer" [2601.04262].

The unified score is then
$$
C(h)=O(h)\cdot S(h).
$$
Under this definition, only heads with both large gradient opposition and high utility-dependency become "high conflict" [2601.04262].

## 3. CAST algorithm and sparse update rule

The CAST procedure consists of two stages: head-level conflict diagnosis and budget-matched sparse fine-tuning [2601.04262].

In the diagnosis stage, the method computes $g_{\rm safe}(h)$ and $g_{\rm util}(h)$ for each attention head on a frozen pretrained model, uses them to obtain $O(h)$, then performs zero-shot ablation to obtain $H_{\rm gen}(h)$ and $H_{\rm safe}(h)$, converts these to percentile ranks, and computes $S(h)$ and finally $C(h)$. Heads are then sorted by $C(h)$ in descending order and partitioned into $M$ equal buckets from top to bottom. The paper gives an example with $M=4$, where one selects a bucket to update, such as the "safe zone" corresponding to the bottom-$25\%$ bucket [2601.04262].

In the fine-tuning stage, all heads outside the selected bucket are frozen, and LoRA or full SFT is applied only to the chosen heads. Training then proceeds on the full safety-alignment dataset $D_{\rm align}$ for a fixed budget, after which safety and utility are evaluated. The update rule is summarized as
$$
\text{For } h\in \text{"safe zone"}:\quad
\theta_h\leftarrow \theta_h-\eta\cdot \nabla_{\theta_h}\ell_{\rm safe}(\theta),
$$
with $\theta_h$ remaining frozen for heads outside the safe zone [2601.04262].

The criteria attached to the bucket structure are central to the method’s interpretation. Heads in the top-$C$ buckets, described as the "risky zone," are reported to cause large utility drops if updated, whereas heads in the bottom-$C$ buckets, described as the "safe zone," improve safety with minimal utility cost [2601.04262]. A plausible implication is that CAST treats sparse tuning not merely as a parameter-efficiency device but as a diagnostic intervention guided by measured conflict structure.

## 4. Experimental configuration and evaluation protocol

The reported experiments cover three instruction-tuned base models: Llama-3.1-8B-Instruct, Qwen2.5-7B-Instruct, and Mistral-7B-v0.2 [2601.04262]. Diagnostics and LoRA updates are applied only on the query-projection $W_q$. The LoRA configuration is rank $r=4$, $\alpha=32$, learning rate $1\mathrm{e}{-4}$, with $3$ seeds $\{21,42,84\}$ [2601.04262].

For pre-alignment calibration, the utility set $D_{\rm util}$ consists of $500$ MMLU examples, and the safety set $D_{\rm safe}$ consists of $500$ harmful prompts from WildJailbreak [2601.04262]. The alignment dataset $D_{\rm align}$ contains $10\,\mathrm{K}$ samples, with $2.5\,\mathrm{K}$ each of vanilla/adversarial $\times$ harmful/benign [2601.04262].

The evaluation protocol separates safety and utility. Safety is measured by Defense Success Rate on WildJailbreak test, WildGuard, and DAN. Utility is evaluated on knowledge benchmarks MMLU and CSQA using multiple-choice accuracy, and on reasoning benchmarks GSM8K and MATH using chain-of-thought generation [2601.04262].

The principal trade-off metric is the Utility Cost Ratio (UCR), together with MMLU-CR, both defined in equation 8 of the paper. The provided formula is
$$
\mathrm{UCR}=\max\left(0,\frac{U_{\rm base}-U_{\rm aligned}}{S_{\rm aligned}-S_{\rm base}+\epsilon}\right),
$$
with the interpretation that lower values indicate better trade-off efficiency [2601.04262]. This metric formalizes the claim that safety gains should be evaluated jointly with any degradation in general capability.

## 5. Empirical findings

The main quantitative result is a safety-versus-utility comparison between full fine-tuning, random sparse updates, and CAST-guided sparse updates. On Llama, Full-SFT over all heads drops MMLU from $59.4\to 46.3$ (a decrease of $13.1$ percentage points) while achieving $94.3\%$ safety. Random $25\%$ head selection recovers some utility, with MMLU approximately $52.6$. CAST-SFT on the bottom-$25\%$ safe-zone heads yields $\mathrm{MMLU}=55.7$, which is reported as $+9.4$ percentage points relative to Full-SFT, at matching safety of $94.9\%$ [2601.04262]. Similar patterns are reported on Qwen and Mistral [2601.04262].

The paper also reports synergy with PCGrad. Even when applying global PCGrad projection, updating only safe-zone heads through CAST+PCG strictly dominates full PCGrad and full-SFT in Pareto plots [2601.04262]. This result is presented as evidence that head-level diagnosis and global gradient projection are not mutually exclusive; rather, the former can constrain where the latter is allowed to act.

Predictive validity is another prominent empirical claim. Aggregate bucket scores $C(B_i)$ strongly correlate with realized MMLU-CR, with Pearson $r\in[0.94,1.00]$, and with UCR, with Pearson $r\in[0.73,0.95]$ [2601.04262]. The intended interpretation is that the pre-alignment conflict map is not merely descriptive but predictive of post-alignment safety-utility outcomes.

A concise summary of the principal reported results is useful:

| Setting | Reported outcome | Interpretation in paper |
|---|---|---|
| Full-SFT on Llama | MMLU $59.4\to 46.3$; safety $94.3\%$ | Global updates incur substantial utility loss |
| Random $25\%$ heads | MMLU $\approx 52.6$ | Some utility can be recovered by sparsity alone |
| CAST-SFT bottom-$25\%$ | MMLU $55.7$; safety $94.9\%$ | Selective low-conflict updates improve the trade-off |
| CAST+PCG | Strictly dominates full PCGrad and full-SFT in Pareto plots | Head-level selection complements global projection |

The conclusion drawn in the source is that CAST achieves safety gains equal to global fine-tuning while recovering over $9$ points of MMLU and preserving chain-of-thought abilities [2601.04262]. Because this language appears in the conclusion rather than the benchmark table, it is best read as the paper’s overall synthesis of the reported experiments.

## 6. Ablations, interpretability, and limitations

The ablation studies are designed to test whether CAST’s conflict score requires both constituent metrics. The reported result is that $O(h)$ alone or $S(h)$ alone often fail, including cases with negative correlations, whereas the unified score $C(h)=O\cdot S$ maintains strong positive correlations across all models [2601.04262]. This directly supports the claim that gradient opposition and functional importance encode distinct but jointly necessary aspects of conflict.

The sparsity-ratio ablation reports that the bottom-$25\%$ safe zone achieves the best utility/safety trade-off. Expanding the updated set to the bottom-$50\%$ or $75\%$ degrades utility without improving safety, which the paper interprets as confirming that most benign heads live in that $25\%$ tail. Updating the top-$25\%$ yields the worst utility collapse [2601.04262]. This suggests that the relevant structure is sharply concentrated rather than smoothly distributed.

Data-efficiency experiments indicate that using only $100$ MMLU calibration samples still identifies the same safe-zone heads and preserves the utility peak [2601.04262]. Domain-transfer experiments further show that calibrating on $100$ GSM8K reasoning samples shifts the "safe zone" to an intermediate bucket rather than the extreme tail, revealing that domain-specific conflict topologies can differ, described in the paper as an "inverted U-shape" [2601.04262]. A plausible implication is that CAST’s head ranking is not universal across task families, even within the same model.

Conflict map visualization is reported to show that high-conflict heads are sparse and cluster in middle-to-deep layers, while other heads remain low-conflict [2601.04262]. This is the basis for the paper’s interpretability claim: the head-level map provides concrete insights into which layers and heads mediate refusal versus reasoning.

The paper’s limitations are stated explicitly. First, scope is limited to query projections, and future work should include MLP layers. Second, static one-time diagnosis may miss "conflict drift" during long training. Third, calibration is task-dependent, so cross-domain alignment, such as code generation, may require bespoke calibration sets [2601.04262]. These limitations qualify the method’s generality and indicate that CAST is presently a diagnosis-and-tuning scheme for a restricted subspace of Transformer parameters rather than a complete account of alignment conflict.

## 7. Position within safety-utility alignment research

CAST is presented as a response to a particular framing of the alignment problem: safety alignment as a multi-objective optimization conflict whose costs are not globally homogeneous across model components [2601.04262]. In this framing, the key contribution is not merely sparse fine-tuning, but sparse fine-tuning driven by a pre-alignment diagnostic map that integrates optimization conflict and functional sensitivity.

The paper attributes three broader properties to this approach. First, under the heading of Modular Heterogeneity, it argues that the safety-utility conflict is concentrated in a small subset of heads rather than being a global phenomenon. Second, under the heading of Interpretability, it claims that the head-level map provides concrete insights into the functional roles of layers and heads. Third, under the heading of Pareto Efficiency, it states that CAST consistently pushes out the safety-utility frontier, including in combination with optimization-centric methods like PCGrad [2601.04262].

Taken together, these claims position CAST as a diagnostic-driven sparse tuning paradigm for LLM safety alignment. Its central thesis is that selective skipping of high-conflict heads during alignment can preserve general capabilities while maintaining safety performance, provided that head selection is based on the coupled score
$$
C(h)=O(h)\times S(h).
$$
This suggests a broader methodological lesson: when alignment costs are heterogeneous across modules, parameter selection informed by causal and geometric diagnostics may be more effective than uniform update rules applied across the entire model [2601.04262].

Source: https://www.emergentmind.com/topics/conflict-aware-sparse-tuning-cast