cs.LGDec 3, 2025

D-STEER: Two-Way Control of DPO-Induced Safety Behavior in Activation Space

Authors: Samarth Raina, Saksham Aggarwal, Amit Dhanda, Vinija Jain, Aman Chadha, Amitava Das

Organizations: IIIT Delhi · Microsoft · Apple (USA) · Google (USA) · 

Abstract

Preference-based post-training shapes language-model behavior, but safer outputs do not reveal how that change is represented internally or how firmly it persists under direct intervention. This matters for open-weight models, where an actor with white-box access can manipulate internal representations at inference without touching parameters. Using Direct Preference Optimization (DPO), we ask whether the safety behavior it introduces becomes deeply embedded or stays accessible to targeted activation-space interventions. We introduce D-STEER, an audit of two matched instruction-tuned and harmlessness-DPO pairs: OpenHermes-2.5-Mistral-7B and Llama-3-8B OpenHermes. D-STEER derives layer-local directions from differences in matched prompt activations, adds them to the instruction-tuned model to install the DPO-associated safety change and subtracts them from the DPO model to remove it, with separate operating windows distinguishing behavioral control from degradation. On held-out HarmfulQA, all four interventions shift harmful enablement as intended and exceed norm-matched random controls; Mistral installation recovers 98% of the endpoint gap and the other three arms recover 46-50%. The intended direction transfers to HH-RLHF and AdvBench under frozen coefficients, although usable operating windows do not transfer universally. An independently rebuilt implementation reproduces the bidirectional pattern on the Mistral pair under different construction and intervention choices. A meaningful component of DPO-induced safety behavior therefore remains controllable through compact inference-time intervention, with the extent depending on the checkpoint pair and the steering implementation.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. OPIUM: Mitigating Steering Externalities and Over-Refusal via Dual Objective Latent Optimization

    Jul 22, 2026Kavin Aravindan, Arihant Rastogi, Krishak Aneja +4LLM Safety AlignmentOver-Refusal

  2. CompassDPO: Dynamics-Controlled Direct Preference Optimization for Robust Safety Alignment

    Mar 7, 2026Jilong Liu, Yonghui Yang, Pengyang Shao +5Direct Preference OptimizationLLM Safety Alignment

  3. Curriculum Learning for Safety Alignment

    May 25, 2026Sandeep Kumar, Virginia Smith, Chhavi YadavLLM AlignmentDirect Preference Optimization