CLEAR: Continuous Latent-Space Adapter Routing for Safe and Effective LLM Alignment

Published 2026-08-21 · AI Daily — AI-assisted deep research, methodology & disclosure

Large language models often trade off utility when improving safety, because global safety fine-tuning alters the model's response to both harmful and benign inputs. This paper proposes CLEAR (Continuous Latent-Space Adapter Routing), a conditional safety-adaptation framework that uses a lightweight hidden-state gate to continuously modulate the activation strength of a low-rank adapter, reducing harmful responses while avoiding unnecessary changes to the frozen backbone that could harm performance on benign prompts. Experiments across several common safety and utility benchmarks show that CLEAR enhances robustness on HarmBench while mitigating the utility drop seen with global safety fine-tuning such as SFT or standard LoRA. On Llama-3-8B-Instruct, CLEAR reduces the HarmBench ASR from 32.3% to 0.5% and improves accuracy on GSM8K by up to 7.1 percentage points over global SFT or LoRA, while preserving most of the base model's utility. Results indicate that CLEAR is a promising mechanism for improving the safety-utility trade-off in LLM alignment.

Background and Context

Large language models face a persistent dilemma in safety alignment: hardening a model against harmful inputs frequently comes at the expense of its usefulness on ordinary requests. The root of the problem lies in how global safety fine-tuning works. When a model is fine-tuned end-to-end to refuse attacks, the same parameter updates touch its response to benign inputs as well, leaving it unable to distinguish a jailbreak attempt from a legitimate question. The consequence is a model that may become overly cautious or produce lower-quality answers even when no threat is present.

To address this tension, researchers propose CLEAR, which stands for Continuous Latent-Space Adapter Routing. It is a conditional safety-adaptation framework whose central idea is that safety behavior should activate dynamically, according to the input, rather than being applied uniformly to everything. The paper reframes safety adaptation from a global, binary operation into a local, continuous, and controllable mechanism, offering a fresh approach to the safety-utility trade-off that has long constrained large language models.

Deep Analysis

The technical heart of CLEAR is a lightweight hidden-state gate. It reads the hidden states the model produces during inference and outputs a continuous control signal that scales the activation strength of a low-rank adapter. Low-rank adapters are parameter-efficient modules that can influence a large transformer model while updating only a small number of parameters. By gating their strength rather than switching them on or off, CLEAR avoids the side effects of a hard threshold, such as suppressing benign inputs too aggressively or failing to intercept harmful ones.

Unlike global safety fine-tuning or standard LoRA, which impose the same constraint on every input, CLEAR lets the model decide how strong the safety adaptation should be based on the current content. The backbone remains frozen throughout training; only the gate and the low-rank adapter are updated. This keeps training costs low and makes deployment simpler. The objective and training strategy are built around this gating logic, teaching the model when to engage safety adaptation and when to preserve the base model's original capabilities.

The authors frame this as a conceptual shift: safety is turned from a global property into a context-aware ability. Because the adaptation is conditioned on the input rather than applied wholesale, the model can more finely balance refusing harmful requests against retaining normal competence. The design is also intended to transfer, offering a reusable pattern rather than a one-off fix for a single model.

Industry Impact

The authors report systematic experiments across several common safety and utility benchmarks. Safety is measured with the widely used HarmBench, which evaluates how well a model resists attacks, while utility is assessed by checking whether performance on benign tasks degrades after safety fine-tuning. On Llama-3-8B-Instruct, CLEAR cuts the attack success rate on HarmBench from 32.3 percent down to 0.5 percent, a dramatic improvement in defensive capability.

At the same time, CLEAR preserves most of the base model's utility. On GSM8K, a benchmark that measures reasoning ability, it achieves accuracy up to 7.1 percentage points higher than global SFT or standard LoRA. The authors argue that this stability across multiple benchmarks indicates the approach is not overfit to a single dataset, but rather provides a generalizable safety-adaptation mechanism. Global fine-tuning, by contrast, tends to gain safety while losing utility.

From a practical standpoint, CLEAR offers a parameter-efficient, easy-to-deploy safety enhancement. Because the backbone stays frozen and only lightweight modules are added, the method can be layered onto existing models at relatively low cost. For the open-source community, this conditional-adaptation path provides an alternative to full fine-tuning, potentially advancing the development of models that are both safer and more usable.

Outlook

The paper suggests that the CLEAR paradigm, which converts safety adaptation from a global operation into a continuously controllable conditional mechanism, can be extended to other alignment goals and to larger models. Possible directions include stronger gate designs or richer contextual signals to further refine when and how safety is applied.

The authors also hint that a mechanism achieving a better balance between safety and utility could help mitigate the over-conservatism that is common in current large language model deployments, allowing models to remain safe while delivering a better practical experience. This would address a real pain point, since excessive refusal often frustrates users even when it is technically justified.

Overall, CLEAR represents more than a specific technical improvement. It reflects a broader trend in LLM alignment, moving from coarse global control toward fine-grained, conditional regulation. If the approach generalizes as the authors suggest, it could become a widely adopted design pattern for making safety a context-sensitive capability rather than a blunt, always-on constraint.

Sources

FAQ

What is CLEAR and how does it address the safety-utility dilemma?

CLEAR is a conditional safety framework using a lightweight hidden-state gate to scale a low-rank adapter. On Llama-3-8B-Instruct it cuts HarmBench ASR from 32.3% to 0.5%.

Why does CLEAR outperform global safety fine-tuning?

Global fine-tuning hurts both harmful and benign prompts. CLEAR adapts per input, keeps the backbone frozen, and gains up to 7.1 GSM8K points over global SFT or LoRA.

What should watchers look for with CLEAR going forward?

CLEAR makes safety a continuous, controllable mechanism instead of a global switch. It is parameter-efficient and deployable, with room to scale to larger models.