Manuscript Offprint

arXiv:2610.24906

Compositional Activation Steering Across Languages and Behaviors with Contextual Gates

Daniil Gurgurov, Akansh Maurya, Josef van Genabith, Simon Ostermann, Hitomi Yanaka

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Activation steering has emerged as an effective and precise way to influence the behaviours of language models. However, composing multiple steering directions to control several behaviours simultaneously remains challenging, particularly in multilingual settings and with training-free steering vectors. We address this challenge with contextual steering, jointly training gates that adapt the strength of fixed steering directions to the current hidden state and interactions between interventions. Across a broad range of languages, behavioural attributes, and models, our approach outperforms constant-strength steering and four strong baselines, including prompting. It also better preserves general knowledge and keeps the model's internal computation closer to that of the prompted model. Our analysis further shows how jointly trained gates adapt their contributions during composition, explaining the mechanisms underlying effective compositional steering.

1 Introduction

Inference-time steering shifts a model's activation trajectory toward a desired behaviour without updating its weights (Turner et al., 2025). It has been used to control a range of attributes, including style (Konen et al., 2024), factuality (Rimsky et al., 2024), truthfulness (Li et al., 2023), language identity (Gurgurov et al., 2026), and refusal (Arditi et al., 2024). For language control in particular, recent work shows that steering remains effective across variation in input language and content (Sterz et al., 2025; Chou et al., 2025; Michaelov et al., 2026; Gurgurov et al., 2026), suggesting that it can serve as a form of adaptation (Ostermann et al., 2026; Xu et al., 2026). Yet, most existing work considers only one attribute at a time. In realistic settings, models often need to satisfy several constraints simultaneously, such as generating text in a specified language while adhering to a behavioural requirement.

Although several approaches to compositional steering have been explored (Nguyen et al., 2025; Oozeer et al., 2025; Ghasemi et al., 2026), effectively composing multiple attributes remains challenging, particularly in multilingual settings (Scalena et al., 2024; Kang et al., 2026). A central difficulty is that interventions that work well in isolation may interact when combined in the residual stream, making their effects difficult to predict. Moreover, fixed intervention strengths cannot adapt to the current context, where an attribute may already be expressed to varying degrees. Effective composition therefore requires interventions that account for both the current hidden state and the interactions between attributes.

Contextual steering offers a way to address these challenges by using gates to determine intervention strengths from the current state (Hsu et al., 2026). We extend this idea to compositional steering by jointly training such gates for multiple attributes while keeping their steering directions fixed, allowing each gate to adapt its contribution in the presence of other interventions. We evaluate this approach across languages, behavioural attributes, and models, analyse its effects on knowledge retention, and investigate why contextual steering works by examining internal representations, output distributions, and interactions between interventions.

Our contributions are as follows:

• We establish a cross-lingual evaluation setup for composing language steering with general- and safety-related behavioural attributes, covering variation in both language and meaning.

• We introduce a compositional steering method that jointly trains context-dependent gates while keeping steering directions fixed. Across 9 models, 9 target languages, and 14 behavioural directions, it outperforms constant-strength steering

1 extract dℓ,α⋆d_{\ell}, \alpha_{\star}

2 learn one gate

3 tune both jointly

4 compose at inference

Figure

Figure 1: Methodology. (1) For each attribute, we extract a steering direction dℓd_{\ell} and select a constant intervention strength α⋆\alpha_{\star}, yielding CAA. (2) CLAS keeps dℓd_{\ell} fixed and learns a contextual gate that determines the intervention strength αℓ\alpha_{\ell} from the hidden state, using cross-entropy (CE). (3) For multiple attributes, the gates are initialized from the corresponding single-attribute gates and jointly optimized with all interventions active. (4) At inference, the contextual interventions are composed in the residual stream, with each gate controlling its attribute's contribution.

and four additional strong baselines.

• We show that contextual composition substantially improves knowledge retention over constant-level steering, while maintaining strong performance across languages, including languages unseen during training.

• We analyse the internal dynamics of steering, showing that contextual interventions keep representations and intermediate output distributions closer to those of the prompted model, while jointly trained gates adapt their contributions during composition. 1^{1}

References (11)