Is Free Self-Alignment Possible?

Dyah Adila, Changho Shin, Yijing Zhang, Frederic Sala · Submission to ICLR 2025 · Rejected

TL;DR

ALIGNEZ demonstrates that large language models (LLMs) can be aligned to human preferences without human-annotated data, reward models, or gradient updates. By prompting an unaligned base model to generate its own helpful and harmful examples, ALIGNEZ extracts preference directions via singular value decomposition (SVD) and steers internal representations during inference. This training-free approach closes nearly 30% of the gap between base and instruction-tuned models and allows DPO models trained on just 1% of data to match models trained on 25%.

What Problem Does This Paper Address?

Traditional post-training alignment pipelines (such as RLHF or DPO) are resource-intensive: they demand thousands of human preference annotations and compute-heavy fine-tuning. These requirements become major bottlenecks for rapid on-the-fly model customization or resource-constrained deployments.

Prior work shows that pretraining already embeds human-aligned concepts inside the model’s weights. While some methods attempt "self-alignment" via synthetic data generation, they typically still require expensive fine-tuning. Conversely, existing inference-time activation steering methods (like Contrastive Activation Addition) still rely on ground-truth human preference data to find steering vectors.

The authors tackle a fundamental question: Can we achieve alignment completely "for free"—using only an unaligned base model’s own internal knowledge, with zero human annotations and zero training?

Methods

ALIGNEZ achieves test-time alignment through a four-part pipeline:

  1. Self-Generated Preference Pairs: Using fixed prompt templates (no manual tuning), the base LLM describes the characteristics of a helpful assistant versus a malicious/useless assistant for a given query, then generates paired completions conditioned on those descriptions ($P^{\text{help}}$ and $P^{\text{harm}}$).
  2. Local ($k$-NN) Direction Finding: Because base models generate noisy outputs, global SVD would capture spurious features. Instead, ALIGNEZ queries the $k$-nearest neighbor prompts in embedding space and runs SVD locally on their representations to identify the primary helpful ($\theta^{\text{help}}_l$) and harmful ($\theta^{\text{harm}}_l$) direction vectors at layer $l$.
  3. Representation Editing: At each autoregressive decoding step, ALIGNEZ modifies the MLP output activation $x_l$ using vector rejection to scrub the harmful projection, followed by vector addition along the helpful direction: $$\hat{x}_l \leftarrow x_l - \text{proj}_{\theta^{\text{harm}}_l}(x_l) + \text{proj}_{\theta^{\text{help}}_l}(\hat{x}_l)$$
  4. Inter-Layer Alignment Selection: To prevent conflicting layer edits from cancelling each other out, ALIGNEZ computes the cosine similarity of $\theta^{\text{help}}$ across all layers and only edits the top $L$ layers whose helpful directions are most mutually consistent.

Datasets

  • Helpfulness Evaluation: The helpfulness slice of just-eval-instruct, covering five benchmarks:
  • AlpacaEval subsets: helpful-base, koala, open-assistant (oasst), and self-instruct
  • MT-Bench
  • Preference Data for Baselines: The helpfulness split of hh-rlhf (used to supply ground-truth data for baselines CAA and ITI).
  • DPO Acceleration Experiments: The binarized UltraFeedback dataset.
  • Safety & Factuality Probing: MaliciousInstruct, JailBreakBench, and FActScore (evaluated against Wikipedia facts).

Key Insights and Ideas

  • Base models already "know" alignment axes: Even raw, unaligned models possess distinct geometric representations separating helpful from unhelpful content; they simply require steering to surface them during generation.
  • Locality curbs synthetic noise: Theoretical and empirical results prove that restricting SVD to local $k$-nearest neighbors keeps unrelated linguistic noise ($\sigma_{\text{linguistic}}$) bounded, making noisy synthetic generations viable for steering.
  • Middle layers disentangle quality best: Measuring the cosine similarity between $\theta^{\text{help}}$ and $\theta^{\text{harm}}$ across layers reveals that the middle layers (layers 10–25 in 32-layer models) exhibit the lowest similarity, indicating the sharpest semantic separation between good and bad responses.
  • Test-time steering acts as a data multiplier: Rather than competing with parameter updates, inference-time steering synergizes with gradient-based alignment, enabling weak, low-data DPO checkpoints to punch significantly above their weight.

Key Results

  • Narrows the Alignment Gap: Across Mistral-7B-v0.3 and Llama-3.1-8B, ALIGNEZ achieved an average 29.1% Relative Improvement (RI) toward fully aligned instruct/RLHF models without modifying a single parameter. It consistently outperformed test-time steering baselines (CAA and ITI) even though those baselines had access to ground-truth human preferences.
  • Accelerating DPO: When applied to a Mistral checkpoint trained via DPO on only 1% of UltraFeedback data, ALIGNEZ boosted performance to match that of a model trained on 25% of the data.
  • Complementary with Prompting: Combining ALIGNEZ with URIAL (an in-context alignment prompt) produced additional net win rate gains of +3.5% to +10.0% over URIAL alone. In head-to-head comparisons on HH-RLHF, ALIGNEZ outperformed URIAL by +12.7% net win on Mistral and +14.0% on Llama 3.1.
  • Preserves Safety and Factuality: ALIGNEZ maintained factual accuracy on FActScore (~0.44–0.45) and produced modest improvements on MaliciousInstruct and JailBreakBench without degrading safety.

Limitations and Future Work

  • Uniform Step Interventions: The edit is applied indiscriminately at every token generation step. Exploring dynamic or token-dependent intervention scheduling could improve efficiency and generation quality.
  • Reliance on Model Scale/Capacity: The method assumes the base model is capable enough to articulate good vs. bad characteristics. The authors note the need for predictive metrics to determine a priori whether a base model has sufficient latent knowledge to self-align.
  • Hyperparameter Sensitivity: Performance degrades if $k$ (number of neighbors) is too small (excessive noise) or too large (irrelevant concepts), or if $L$ (intervened layers) exceeds 20 (causing excessive drift in representation space).

Summary updated

BibTeX
@inproceedings{adila2024is,
  author = {Dyah Adila and Changho Shin and Yijing Zhang and Frederic Sala},
  title = {{Is Free Self-Alignment Possible?}},
  booktitle = {MINT @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=ondGQUZTfx},
}
Figure