Mechanistic Analysis of Alignment Algorithms in Language Models

Aarush Sinha, Ishan Garg, Veeraraju Elluru, Arth Singh, Kushal Garg
5/9/2026
cs.LGcs.CL
rlrlhf-rlvr-dpo

No confident code implementation found for this paper.

Abstract

Post-training alignment algorithms are predominantly evaluated as black boxes, obscuring how they reshape language models' internal computations. We present a systematic mechanistic analysis of six preference-optimization methods: PPO, DPO, SimPO, ORPO, GRPO, and KTO across three open-weight model families.

Show full abstract

By integrating layer-wise linear probing, Sparse Autoencoders, and crosscoders, we localize preference representations and quantify alignment-induced geometric transformations in latent space. We find that preference signals consistently concentrate in early--mid or mid--late layers, but different objectives induce qualitatively distinct representational shifts. KTO and GRPO enhance linear separability through constructive feature sharing and sparse, high-salience recruitment. In contrast, DPO and ORPO degrade separability via non-constructive geometric rotation and feature attenuation, while PPO and SimPO largely preserve baseline geometry. These transformations exhibit architecture-dependent variability, demonstrating that behavioral alignment does not imply uniform internal restructuring. Our findings establish alignment as a heterogeneous intervention, motivate standardized feature-level auditing for safety and interpretability, and highlight the need for mechanism-aware optimization objectives.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sinha2026mechanistic,
  title  = {Mechanistic Analysis of Alignment Algorithms in Language Models},
  author = {Aarush Sinha and Ishan Garg and Veeraraju Elluru and Arth Singh and Kushal Garg},
  year   = {2026},
  eprint = {2606.09850},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.09850v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.09850.svg)](https://codeofpaper.com/paper/2606.09850)

Discussion