Steer Model beyond Assistant: Controlling System Prompt Strength via Contrastive Decoding

Yijiang River Dong, Tiancheng Hu, Zheng Hui, Nigel Collier

Abstract

Large language models excel at complex instructions yet struggle to deviate from their helpful assistant persona, as post-training instills strong priors that resist conflicting instructions. We introduce system prompt strength, a training-free method that treats prompt adherence as a continuous control. By contrasting logits from target and default system prompts, we isolate and amplify the behavioral signal unique to the target persona by a scalar factor alpha. Across five diverse benchmarks spanning constraint satisfaction, behavioral control, pluralistic alignment, capability modulation, and stylistic control, our method yields substantial improvements: up to +8.5 strict accuracy on IFEval, +45pp refusal rate on OffTopicEval, and +13% steerability on Prompt-Steering. Our approach enables practitioners to modulate system prompt strength, providing dynamic control over model behavior without retraining.

Introduction: The "Assistant Prior" Problem

Modern Large Language Models (LLMs) are meticulously tuned to be articulate, knowledgeable, and universally helpful. While this makes them excellent general-purpose assistants, it creates a fundamental tension when users require non-standard behaviors. This "helpful assistant" prior acts as a behavioral anchor, making it difficult to steer models into personas or constraints that conflict with their training.

For instance, an LLM asked to role-play as a child often fails to simplify its vocabulary sufficiently, or a medical bot instructed to refuse off-topic queries may still "helpfully" answer questions about unrelated subjects. Current solutions, such as fine-tuning, are resource-intensive, while activation steering requires invasive model access. This research introduces a simpler, inference-time "dial"—System Prompt Strength ($\alpha$)—to control how much a system prompt influences model output.

Methodology: Contrastive Decoding on the System Prompt

The core of the proposed method is Contrastive Decoding on the System Prompt. Unlike standard contrastive decoding, which typically compares a strong model to a weak one, this approach uses the same model but varies the system prompt to isolate the desired behavior.

Overview of the steering mechanism and contrastive decoding process.

The process involves:

  1. Dual Logit Calculation: For every token, the model calculates logits ($z$) for two scenarios: a target persona (e.g., "You are a struggling student") and a default assistant (e.g., "You are a helpful assistant").
  2. Isolating the Persona Delta: By subtracting the default logits from the target logits, the method isolates the specific behavioral "signal" introduced by the system prompt.
  3. Amplification: This delta is added back to the original logits, scaled by a factor $\alpha$: $$p_\alpha = \text{softmax}(z_{sys} + \alpha(z_{sys} - z_{def}))$$
  4. Negative Contrast: In some cases, a specific "negative" prompt (e.g., "You are an overly helpful assistant") is used instead of the default to more aggressively suppress unwanted behaviors.

Evaluation and Datasets

The method was rigorously tested across five model families (including Qwen-2.5, Llama-3.1, and Olmo-3.1) and five diverse benchmarks:

  • IFEval: Verifiable constraint adherence (e.g., word counts, formatting).
  • OffTopicEval: Domain-specific refusal and staying on-task.
  • Prompt-Steering: Adoption of diverse political and ethical stances.
  • Inverse Capability: Simulating lower proficiency (e.g., a student struggling with math).
  • Readability Control: Writing for specific age groups (ages 6 to 25).

Key Results and Insights

The experiments revealed that the "optimal" $\alpha$ varies based on the degree of conflict with the assistant prior. Formatting tasks (IFEval) benefit from a low $\alpha$ (0.5–1.0), whereas tasks requiring the model to be "bad" at something (Inverse Capability) require a higher $\alpha$ (2.0+).

Trade-off between steering strength (OS) and accuracy as alpha increases.

Significant performance gains include:

  • Instruction Following: Improved strict accuracy by up to +8.5 points on Llama-3.1-8B.
  • Domain Refusal: Increased refusal rates for out-of-domain queries by 45 percentage points on OffTopicEval.
  • Simulating Incompetence: A baseline model instructed to be a "struggling student" dropped from 91% math accuracy to 11% with $\alpha=2$, successfully adopting the persona.
  • Style Control: Reduced "grade-level overshoot" by nearly 50%, forcing models to use age-appropriate language.

Discussion: The Steering Tax and Limitations

While powerful, increasing system prompt strength comes with a "Steering Tax." If $\alpha$ is set too high, the model's general capabilities and ability to follow complex formatting can degrade. Furthermore, the method effectively doubles inference latency because it requires two logit calculations per token. As a "gray-box" method, it also requires access to output logits, which limits its use with closed-API models that do not expose such controls.

Despite these trade-offs, the method provides a robust way to reduce sensitivity to prompt phrasing and allows practitioners to dynamically modulate model behavior without the need for expensive retraining.

Summary updated

BibTeX
@misc{dong2026steer,
  author = {Yijiang River Dong and Tiancheng Hu and Zheng Hui and Nigel Collier},
  title = {{Steer Model beyond Assistant: Controlling System Prompt Strength via Contrastive Decoding}},
  year = {2026},
  eprint = {2601.06403},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.06403},
}
Figure