Extracting Persona Subspaces Through Iterative Nullspace Projection For Modulation
Organizations: Northeastern University
Abstract
Large Language Models (LLMs) can adopt distinct personas to tune their semantics, expertise, and perspective to different users and tasks. Precise control over these traits is critical to ensure safety and reliability in model behavior. Existing methods like activation steering and prompt-based persona induction reduce a persona to a single dominant direction, missing the finer, nested traits that emerge only once that dominant signal is factored out. We introduce modulation as a setting where the persona context is already embedded in the content being manipulated, requiring control methods to amplify or suppress a trait already present rather than inject it from scratch. PaSS is an inference-time control paradigm that models personas as multi-dimensional subspaces in a model's latent space without supervised contrastive examples. The persona subspaces are extracted via iterative concept erasure and applied to modulate persona-guided generation without retraining. To extract this subspace, we use Iterative Nullspace Projections (INLP) to linearly and iteratively isolate persona-specific directions. We causally evaluate six personas against diverse tasks like MATH-500, TinyAlpaca, GSM8K, and IFEval, showing that discriminative, iterative subspace extraction captures diverse traits underlying a given persona, enabling stronger and larger modulation than single-direction additive methods, while maintaining content fidelity. We further study individual peeled directions within each subspace to uncover the distinct aspects of persona behavior they encode. Overall, we show that persona subspaces offer a controllable, interpretable, and generalizable framework for modulating LLM behavior without sacrificing task performance.
Figures & tables
| Category | Description | Personas |
|---|---|---|
| Stylistic | Introduces Surface-level output changes | Emoji, Capitalization |
| Identity | Adopts a particular identity/culture | Indian Culture, Chinese |
| Behavioral | Affects semantics and decision making | Refusal, Frustrated |
| PaSS | DiffMeans Vec | DiffMeans PCA | ReFt Vec | |||||
| Persona | ||||||||
| Llama3-8B-Instruct | ||||||||
| Emoji | ||||||||
| Capitalization | ||||||||
| Indian Culture | ||||||||
| Chinese | ||||||||
| PaSS | DiffMean | PCA | ||||
|---|---|---|---|---|---|---|
| Transfer | Persona Cost | Content Change | Persona Cost | Content Change | Persona Cost | Content Change |
| Emoji TinyAlpaca | ||||||
| Chinese GSM-8K | ||||||
| Refusal AdvBench | ||||||
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| Type | Model | Temperature | p-val | max tokens |
|---|---|---|---|---|
| Generation | Llama3-8B-Instruct | 0.7 | 0.9 | 150 |
| Qwen2.5-7B-Instruct | 0.7 | 0.9 | 150 | |
| Evaluation | GPT-4.1-mini | 0 | 1.0 | NA |
| Dataset | Test Samples |
|---|---|
| MATH-500 | 150 |
| TinyAlpaca | 100 |
| GSM-8K | 200 |
| IFEval | 66*3 (seeds) |
| BBQ-Bias | 800 |
| AdvBench | 170 |
| Model | Persona | Layer 20 Rank |
|---|---|---|
| Llama3-8B-Instruct | Emoji | 22 |
| Capitalization | 22 | |
| Indian Culture | 20 | |
| Chinese | 23 | |
| Refusal | 22 | |
| Frustrate | 18 |
| Model | PC | Avg Spearman | Avg Kendall |
|---|---|---|---|
| Llama3-8B-Instruct | PC1 | 0.876 | 0.80 |
| PC2 | 0.886 | 0.778 | |
| PC3 | 0.819 | 0.689 | |
| Qwen2.5-7B-Instruct | PC1 | 0.817 | 0.76 |
| PC2 | 0.6 | 0.52 | |
| PC3 | 0.589 | 0.547 |
| Probe accuracy on | DiffMeans in | ||||
|---|---|---|---|---|---|
| Persona | linear | RBF | MLP | retained | AUC |
| refusal | 0.499 | 0.726 | 0.644 | 0.156 | 0.553 |
| capitalization | 0.489 | 0.749 | 0.710 | 0.158 | 0.560 |
| frustrated | 0.507 | 0.763 | 0.630 | 0.134 | 0.561 |
| emoji | 0.553 | 0.760 | 0.743 | 0.253 | 0.607 |
| chinese | 0.490 | 0.789 | 0.766 | 0.115 | 0.545 |
| Category | Personas Used | Persona Definition |
| Extraction Phase | Neutral | You are an assistant. |
| Stylistic | Emoji | You are an assistant that uses emoji. |
| Capitalization | You are an assistant that only uses uppercase letters. | |
| Identity | Indian Culture | You are an Indian assistant so respond like an Indian assistant would do . |
| Chinese | You are an assistant that only responds in Chinese. | |
| Behavioral | Refusal | You are an assistant that refuses to answer. |
| Pearson Correlation | MAE | Within | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Persona | H1 | H2 | Inter-Rater | LLM–h | h–h | LLM–h1 | LLM–h2 | h1–h2 | BA bias |
| Refusal | 0.7829 | 0.772 | 0.955 | 0.21 | 0.09 | 100% | 100% | 100% | |
| Indian Culture | 0.8841 | 0.909 | 0.949 | 0.20 | 0.09 | 100% | 100% | 100% | |
| Frustrated | 0.6504 | 0.704 | 0.856 | 0.16 | 0.12 | 100% | 100% | 100% | |
| Chinese | 0.9588 | 0.993 | 0.972 | 0.07 | 0.05 | 100% | 100% | 100% | |
| Combined | 0.787 | 0.784 | 0.948 | – | – | – | – | – | – |
| direction vs. basis | fraction inside | |||||
| DiM | ||||||
| 1 | 0.763 | 0.730 | 0.181 | 0.583 | 0.532 | 0.033 |
| 2 | 0.202 | 0.208 | 0.020 | 0.624 | 0.575 | 0.033 |
| 5 | 0.163 | 0.162 | 0.078 | 0.723 | 0.679 | 0.041 |
| 10 | 0.108 | 0.102 | 0.114 | 0.823 | 0.772 | 0.127 |
| 22 | 0.078 | 0.079 | 0.007 | 0.899 | 0.838 | 0.209 |
| Content Scores | |||
|---|---|---|---|
| Prompt Variation | Decrease ( ) | Baseline ( ) | Increase ( ) |
| Emoji (Likes) | 0.237 | 0.270 | 0.254 |
| Emoji (Uses) | 0.264 | 0.264 | 0.297 |
| Persona Scores | |||
| Prompt Variation | Decrease ( ) | Baseline ( ) | Increase ( ) |
| Emoji (Likes) | 0.214 | 0.383 | 0.443 |
Language Model Steering
Language model steering controls a model’s behavior at inference time by intervening in its representations, components, or decoding process.
See all 283 papers