Mechanistic Personality Analysis of LLMs: Steering Personality via Latent Feature Interventions

David Courtis, Ting Hu
6/27/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Large Language Models (LLMs) have demonstrated the ability to simulate human-like OCEAN personality traits in generated text. Previous efforts have focused on prompt engineering or fine-tuning to shape LLM personality.

Show full abstract

In this work, we propose a mechanistic interpretability approach that directly intervenes on the model's latent features. Our method identifies latent directions in the residual stream corresponding to a target OCEAN trait using sparse autoencoders (SAEs) and contrastive activation analysis. We formalize an additive steering vector in activation space and demonstrate how applying a small additive shift to the hidden states enhances the target trait while preserving overall language modeling performance. To determine the optimal combination of feature shifts, we explore a linear weighting heuristic with grid search optimization that balances personality expression with task performance. Our approach shows promise in controllably steering personality traits at the mechanistic level while maintaining high performance on standard benchmarks.

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{courtis2026mechanistic,
  title  = {Mechanistic Personality Analysis of LLMs: Steering Personality via Latent Feature Interventions},
  author = {David Courtis and Ting Hu},
  year   = {2026},
  eprint = {2606.28770},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.28770v2}
}

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.28770.svg)](https://codeofpaper.com/paper/2606.28770)

Discussion