High-Dimensional Random Projection for Activation Steering in Language Models

Minh-Hieu Pham, Bach Do, Laziz Abdullaev, Tan Minh Nguyen, Khoat ThanarXiv 2026

TL;DR

Existing activation steering methods modify large language model (LLM) behaviors by applying linear shifts in the original activation space, but they fail to capture complex, non-linear feature relationships. To solve this, the authors introduce HiDRA (High-Dimensional Random-projection for Activation Steering), a training-free, plug-and-play framework that lifts activations into a higher-dimensional space using a random non-linear map. Steering in this expanded space allows the model to capture subtle, higher-order discriminative signals, significantly improving behavioral control (like safety and truthfulness) with minimal computational overhead.

What Problem Does This Paper Address?

Activation steering is a popular post-hoc technique used to control LLM behavior at inference time without expensive fine-tuning. It typically works by finding a "steering direction" (often using a simple difference-in-means between contrastive prompt sets, such as harmful vs. harmless prompts) and adding it to the model's internal activations.

However, current methods assume that behavioral concepts are represented purely as linear directions in the original activation space. Under the superposition hypothesis, LLMs pack more features than they have dimensions by encoding them as overlapping, non-orthogonal configurations. This means crucial discriminative signals often reside in non-linear or second-order structures (like variance differences) rather than simple mean shifts. Standard linear steering completely misses these signals.

Methods

The authors propose HiDRA, a training-free approach that seamlessly integrates with existing activation steering workflows. Instead of steering in the original activation space, HiDRA temporarily "lifts" the activations into a higher-dimensional space where non-linear structures become linearly accessible.

Figure 1: HiDRA pipeline. A difference-in-means steering vector d(ℓ) computed in the lifted, high- dimensional space, is added with strength α before the lifted activations are projected back down.

The process follows three simple steps:

  1. Lift: The original activation vector $\mathbf{x} \in \mathbb{R}^d$ is projected into a higher-dimensional space $\mathbb{R}^m$ (where $m > d$) using a fixed, randomly initialized Gaussian matrix $\mathbf{A}$ and an element-wise non-linear activation function $\sigma$ (defaulting to LeakyReLU): $\mathbf{x}' = \sigma(\mathbf{A}\mathbf{x})$.
  2. Steer: Standard difference-in-means (DiM) steering is applied in this high-dimensional space by adding the steering vector $\mathbf{d}^{(\ell)}$ scaled by an intervention strength $\alpha$.
  3. Project Back: The modified activation is mapped back to the original space using the pseudo-inverse of the matrix and the inverse of the non-linearity: $\mathbf{y} = \mathbf{A}^{\dagger}\sigma^{-1}(\mathbf{x}'_{\text{steered}})$.

Datasets

The framework was evaluated across three distinct behavioral tasks using several established datasets:

  • Jailbreaking (Safety Evaluation): Steering vectors were extracted using contrastive harmful prompts from AdvBench, MaliciousInstruct, TDC2023, and HarmBench, paired with harmless prompts from Alpaca. Evaluation was conducted on JailbreakBench.
  • Truthfulness: Evaluated using a split subset of TruthfulQA.
  • CAA-style Multiple-Choice QA: Evaluated on alignment-relevant concepts (AI Coordination, Corrigibility, Myopic Reward, Survival Instinct, Sycophancy) from Anthropic's Advanced AI Risk evaluations, alongside a custom Hallucination dataset generated via GPT-4.
  • General Capabilities: TinyBenchmarks was used to ensure that steering did not degrade the models' baseline language capabilities.

Key Insights and Ideas

  • The Power of Non-Linear Lifting: By mapping activations to a higher dimension via a non-linear function, second-order characteristics (like variance gaps between classes) are transformed into first-order mean shifts. This allows simple linear steering vectors to capture complex, non-linear structures that were previously unreachable.
  • Stability Requires Lipschitz Continuity: Not all non-linear functions are created equal. While functions like Cube ($x^3$) can yield high steering success, they cause unstable, degenerate text generations because their derivatives grow unboundedly. Globally Lipschitz functions like LeakyReLU ensure stable perturbations and clean text reconstruction.
  • Expressive but Not Overly Large: Performance follows a non-monotonic trend regarding the target dimension $m$. If $m$ is too small, the space lacks expressivity; if $m$ is too large (e.g., $\ge 32,768$), it introduces irrelevant noise directions that reduce steering selectivity.

Key Results

HiDRA consistently outperformed standard activation steering baselines across multiple LLM families (Gemma 2, Llama 3/3.2, Qwen 2.5) while preserving baseline capabilities.

Jailbreaking Effectiveness

In safety evaluation tests, HiDRA consistently achieved higher Attack Success Rates (ASR) when steering models to bypass safety guardrails, proving it extracts a stronger behavioral signal than the baseline method, Mean-AcT.

Figure 1: HiDRA pipeline. A difference-in-means steering vector d(ℓ) computed in the lifted, high- dimensional space, is added with strength α before the lifted activations are projected back down.

Inducing Truthfulness

On TruthfulQA, HiDRA achieved a noticeable boost in the primary true × informative % metric compared to standard Mean-AcT, without degrading general performance on TinyBenchmarks.

Table 2: TRUTHFULQA results and TINYBENCHMARK performance under different steering methods. For HiDRA, we sweep the projected dimensions m ∈{8192, 16384} and use a LeakyReLU slope of 0.7. α denotes the intervention strength; we sweep α ∈{1.0, 1.1, . . . , 2.0} and report the best-performing value (opt. α) for each method/model. ✓indicates all-token steering and ✗indicates prompt-only steering. Results are reported as mean ± standard deviation over 5 runs.

Multiple-Choice QA Control

When evaluated against Contrastive Activation Steering (CAA) and Sparse Activation Steering (SAS), HiDRA demonstrated superior control for both positive steering (inducing a behavior) and negative steering (suppressing a behavior) across almost all tested concepts.

Table 3: Results for CAA, SAS, and HiDRA on GEMMA-2-9B-IT when no system prompt is provided, with steering applied at layer 22. For α < 0, smaller average token probability is better, so we report the minimum value over α ∈{−2, −1}. For α > 0, larger average token probability is better, so we report the maximum value over α ∈{1, 2}. Bold indicates the best result among the three methods for each concept and sign of α.

Computational Efficiency

Despite operating in a higher-dimensional space, HiDRA adds minimal overhead. In sequential steering setups, it only increases runtime by 18%–31% compared to baseline steering, while memory usage remains within 1% of the baseline.

Limitations and Future Work

While training-free and highly effective, HiDRA does introduce additional inference-time compute and memory overhead due to the large random projection matrices, particularly when scaling to long sequences or intervening across many layers simultaneously.

The authors suggest that future work should explore more principled strategies for selecting projection parameters. Additionally, replacing pure random projections with structured, randomized non-linear feature maps (such as kernel approximations) could enable even more sophisticated non-linear steering while maintaining strict inference efficiency.

Summary updated

BibTeX
@misc{pham2026high,
  author = {Minh-Hieu Pham and Bach Do and Laziz Abdullaev and Tan Minh Nguyen and Khoat Than},
  title = {{High-Dimensional Random Projection for Activation Steering in Language Models}},
  year = {2026},
  eprint = {2606.15092},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.15092},
}
Figure