paper
active
2026
paper:doi-10-48550-arxiv-2602-19157

Facet-Level Persona Control by Trait-Activated Routing with Contrastive SAE for Role-Playing LLMs

TL;DR

Facet-level personality control in role-playing LLMs is substantially improved by injecting contrastively trained sparse autoencoder (SAE) control vectors into mid-residual layers, with the CV-SAE+Prompt configuration achieving 88.5% Full-Accuracy on contextualized Big Five questions for both Qwen3-4B and Mistral-7B, compared to 30.7% and 42.3% respectively for prompt-only baselines. The core method, Contrastive SAE with Trait-Activated Routing, learns 30 facet-aligned control vectors from a purpose-built 15,000-sample leakage-controlled corpus (500 instances per facet, 78.4% macro-F1 on a held-out 30-way classifier), using a prototype contrast loss with ArcFace/CosFace-style angular margins to pull SAE codes toward positive trait centroids while pushing them from negative ones. A key finding is that CV-CAA+Prompt catastrophically collapsed on Mistral-7B (FA dropping from 76.9% to 38.5%), whereas CV-SAE+Prompt remained stable, demonstrating that SAE disentanglement is critical for preventing prompt-activation interference. The Agent-Based Decision Module, guided by Trait Activation Theory, selects only the facets contextually cued by each user query rather than injecting all 30 vectors simultaneously, preserving dialogue coherence as measured by Multi-Turn Rate. The paper argues this implies that facet-purity in training data, combined with contrastive geometry in latent space and targeted injection, is sufficient to achieve stable, interpretable persona control at inference time without any weight updates.

What to take away

  1. 1. CV-SAE+Prompt achieves 88.5% Full-Accuracy on contextualized Big Five questions for both Qwen3-4B and Mistral-7B, compared to 76.9% for CV-SAE alone and 30.7%/42.3% for the Prompt-Label baseline on the respective models.
  2. 2. CV-CAA+Prompt catastrophically degrades on Mistral-7B, with Full-Accuracy dropping from 76.9% (CV-CAA alone) to 38.5%, while CV-SAE+Prompt on the same model reaches 88.5%, demonstrating that SAE-based disentanglement is essential for stable prompt-vector composition.
  3. 3. Training SAE control vectors without the contrastive learning (CL) objective reduces Full-Accuracy to near-zero (0.0% abstract, 3.9% contextual on Qwen3-4B) — worse than the untrained baseline of 11.5% — because the distance-only loss simultaneously decreases similarity to both positive and negative centroids.
  4. 4. Adding CL raises cosine similarity to the positive Extraversion centroid from 0.76 to 0.93 on Qwen3-4B while suppressing similarity to the negative centroid from 0.31 to 0.59, confirming that angular margin losses (ArcFace/CosFace style) enforce the intended push-pull geometry in SAE latent space.
  5. 5. The 15,000-sample leakage-controlled corpus (500 positive + 500 negative per facet across all 30 NEO-PI facets, generated by a GPT-5-class model with minimal-edit negative pairs) achieves 78.4% macro-F1 on a held-out 30-way facet classifier with only 6.2% of misclassifications crossing Big Five dimension boundaries.
  6. 6. CV injection is performed at a single mid-residual layer — layer 15 for Qwen3-4B and layer 16 for Mistral-7B — while CV-CAA injects into every layer; this architectural difference is hypothesized to explain CV-SAE's lower Multi-Turn Rate and higher semantic purity, since per-layer CAA injection introduces off-target semantic components as injection strength α increases.
  7. 7. Prompt-Label alone generalizes poorly to contextualized questions, with Full-Accuracy dropping from 50.0% (abstract) to 30.7% (contextual) on Qwen3-4B, whereas CV-SAE+Prompt gains +7.5 percentage points moving from abstract to contextual settings, suggesting that latent steering adapts to situational cues that explicit labels cannot capture.
  8. 8. To replicate the Agent-Based Decision Module, a researcher can use the role-play model's own base LLM as a routing agent that receives the user query, infers which of the 30 facet-level CVs are most strongly cued, and injects only those relevant vectors per dialogue turn rather than all 30 simultaneously.
  9. 9. An open question raised by the paper is whether the observed instability of CV-CAA on Mistral-7B — but not on Qwen3-4B — reflects a model-architecture interaction (e.g., attention mechanism differences) or a data-regime sensitivity, since the same CAA method behaves qualitatively differently across the two backbones.
  10. 10. The contextualized benchmark, constructed by rewriting all 44 In-Character abstract Big Five questions with minimal temporal and situational cues using GPT-4o, reduces socially desirable response bias while preserving semantics, and serves as a more discriminating evaluation surface than the original abstract question set.

Peer brief — for seminar discussion

The paper addresses a persistent failure mode in role-playing LLM agents: persona drift and prompt dilution under long context, without the cost of retraining. The approach, called Contrastive SAE with Trait-Activated Routing (CV-SAE), trains a Sparse AutoEncoder on hidden states collected from WikiText-103-raw-v1 at a single mid-residual layer — layer 15 for Qwen3-4B, layer 16 for Mistral-7B — and uses a contrastive objective combining a prototype contrast loss (with ArcFace/CosFace-style angular margins) and a positive pull loss to learn 30 facet-aligned control vectors corresponding to the NEO-PI Big Five 30-facet taxonomy. These vectors are injected additively into the residual stream at inference time, scaled by a tunable strength α, with an Agent-Based Decision Module selecting only the contextually relevant facets per dialogue turn. A purpose-built 15,000-sample corpus — 500 positive and 500 negative first-person sentences per facet, generated by a GPT-5-class model with minimal-edit negatives — provides the contrastive supervision; a 30-way facet classifier trained on this corpus achieves 78.4% macro-F1 with only 6.2% cross-dimension leakage, validating facet purity. The load-bearing finding is that CV-SAE+Prompt reaches 88.5% Full-Accuracy on contextualized Big Five questions for both Qwen3-4B and Mistral-7B, versus 30.7% and 42.3% respectively for the Prompt-Label baseline. More revealing is the failure mode of the alternative method: CV-CAA+Prompt collapses on Mistral-7B with Full-Accuracy falling from 76.9% to 38.5%, while the same combination is stable on Qwen3-4B at 81.0%. The ablation on contrastive learning is equally pointed — removing the CL objective from SAE training causes Full-Accuracy to drop below the untrained baseline (0.0% abstract on Qwen3-4B vs. 11.5% before training), because the distance-only loss inadvertently reduces similarity to both positive and negative centroids simultaneously. CV-CAA, the natural comparison method that could have been used throughout, is simpler and parameter-free but injects into every layer and, the paper argues, accumulates off-target semantic components as α grows, inflating Multi-Turn Rate. The paper implies that facet-purity in training data combined with contrastive geometry in SAE latent space is sufficient for stable, interpretable persona control at inference time across different model scales, and predicts that the SAE+Prompt combination will generalize across contextualized settings better than prompt-only or CAA-based approaches. One thing a critical reader should push back on is the corpus construction: the positive and negative samples are generated by a GPT-5-class model rather than human authors, and while ten psychology graduate students validated a 50-item sample per facet, the agreement statistics between human judges and the secondary LLM screener are not reported quantitatively. Given that the entire downstream performance rests on the facet purity of this corpus, the validation methodology is under-specified — a cross-trait confusion matrix broken down by specific facets, rather than an aggregate 6.2% cross-dimension leakage figure, would give much stronger evidence that the training signal is actually facet-specific rather than coarser Big Five dimension-specific.

Methods (21)

Frameworks (9)

Datasets (2)

Findings (13)

Claims (10)

Questions (3)

Original abstract (expand)

Personality control in Role-Playing Agents (RPAs) is commonly achieved via training-free methods that inject persona descriptions and memory through prompts or retrieval-augmented generation, or via supervised fine-tuning (SFT) on persona-specific corpora. While SFT can be effective, it requires persona-labeled data and retraining for new roles, limiting flexibility. In contrast, prompt- and RAG-based signals are easy to apply but can be diluted in long dialogues, leading to drifting and sometimes inconsistent persona behavior. To address this, we propose a contrastive Sparse AutoEncoder (SAE) framework that learns facet-level personality control vectors aligned with the Big Five 30-facet model. A new 15,000-sample leakage-controlled corpus is constructed to provide balanced supervision for each facet. The learned vectors are integrated into the model's residual space and dynamically selected by a trait-activated routing module, enabling precise and interpretable personality steering. Experiments on Large Language Models (LLMs) show that the proposed method maintains stable character fidelity and output quality across contextualized settings, outperforming Contrastive Activation Addition (CAA) and prompt-only baselines. The combined SAE+Prompt configuration achieves the best overall performance, confirming that contrastively trained latent vectors can enhance persona control while preserving dialogue coherence. Dataset is available at: https://github.com/lunat5078/BigFive-Personality-Facets-Dataset

Related work— refs + corpus + external arXiv

Cited / in-corpus / arXiv badges show which signals surfaced each row. Multi-source rows weighted higher.

+26 more

Similar preprints — Semantic Scholar