ablate 0 0 0

massines3a/assistant-axis-vectors

published by @massines3a

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
1K
Last 30 days
90
Likes
-
Size
176.7 MB
Created on HF
2026-01-29
Age
8 months ago

Description

Assistant Axis Vectors for gemma-3-27b-it

This dataset contains pre-computed role vectors and the assistant axis for gemma-3-27b-it.

Overview

These vectors were computed using the methodology from the paper "The Assistant Axis"

by Christina Lu et al. The vectors can be used for activation steering to control model behavior along the

"assistant-like" to "role-playing" spectrum.

Contents

gemma-3-27b-it/assistant_axis.pt - The computed assistant… See the full description on the dataset page: https://huggingface.co/datasets/massines3a/assistant-axis-vectors.

Tags

task_categories:text-generationlanguage:enlicense:mitsize_categories:n<1Kformat:jsonmodality:textlibrary:datasetslibrary:pandaslibrary:polarslibrary:mlcroissantarxiv:2601.10387region:usactivation-steeringinterpretabilityllmgemma

README current version from Hugging Face


license: mit
task_categories:

  • text-generation
    language:
  • en
    tags:
  • activation-steering
  • interpretability
  • llm
  • gemma
    pretty_name: Assistant Axis Vectors for gemma-3-27b-it

Assistant Axis Vectors for gemma-3-27b-it

This dataset contains pre-computed role vectors and the assistant axis for gemma-3-27b-it.

Overview

These vectors were computed using the methodology from the paper "The Assistant Axis"
by Christina Lu et al. The vectors can be used for activation steering to control model behavior along the
"assistant-like" to "role-playing" spectrum.

Contents

  • gemma-3-27b-it/assistant_axis.pt - The computed assistant axis (principal component)
  • gemma-3-27b-it/default_vector.pt - Mean activation vector for default assistant behavior
  • gemma-3-27b-it/role_vectors/ - 275 role-specific activation vectors
  • gemma-3-27b-it/benchmark/generated.json - Benchmark results with steering experiments

Vector Format

Each role vector is a PyTorch tensor with shape [62, 5376]:

  • 62 layers - One vector per transformer layer
  • 5376 dimensions - Hidden state dimension of the model

Usage

from huggingface_hub import snapshot_download
import torch

# Download vectors
local_dir = snapshot_download(
    repo_id="massines3a/assistant-axis-vectors",
    repo_type="dataset",
    allow_patterns=["gemma-3-27b-it/*"]
)

# Load assistant axis
axis = torch.load(f"{local_dir}/gemma-3-27b-it/assistant_axis.pt", map_location="cpu")

# Load a role vector
pirate = torch.load(f"{local_dir}/gemma-3-27b-it/role_vectors/pirate.pt", map_location="cpu")

# Load benchmark results
import json
with open(f"{local_dir}/gemma-3-27b-it/benchmark/generated.json") as f:
    benchmark = json.load(f)

Benchmark Data

The benchmark file (generated.json) contains steering experiment results. Each entry is a JSON object with the following fields:

Fields

Field Description
role The persona being tested (e.g., "pirate", "detective", "philosopher"). The model was given a system prompt instructing it to adopt this persona.
question The prompt question asked to the model (e.g., "Tell me about yourself.", "What is your name?").
steering The steering condition applied during generation (see below for details).
system_prompt The full system prompt used to instruct the model to adopt the persona.
model_response The model's generated response under the given steering condition.
oracle_response The activation oracle's interpretation of what persona the model is adopting, based on its internal activations.

Steering Conditions

The steering field indicates which intervention was applied during generation:

Axis-based steering (using the Assistant Axis from PCA):

Condition Description
baseline No steering applied - model generates normally with the persona system prompt
axis_neg10 Steering coefficient -10 along the assistant axis (pushes toward role-playing behavior)
axis_neg5 Steering coefficient -5 along the assistant axis (mild push toward role-playing)
axis_pos5 Steering coefficient +5 along the assistant axis (mild push toward assistant behavior)
axis_pos10 Steering coefficient +10 along the assistant axis (strong push toward assistant behavior)

SAE-based steering (using Sparse Autoencoder features):

Condition Description
sae_top1 Steering using the top 1 SAE feature most correlated with the assistant axis
sae_top5 Steering using the top 5 SAE features most correlated with the assistant axis
sae_bidir5 Bidirectional steering using top 5 features (both positive and negative directions)

Interpreting Results

  • Positive axis coefficients (+5, +10) push the model toward "default assistant" behavior, making it less likely to role-play
  • Negative axis coefficients (-5, -10) push the model toward "role-playing" behavior, making it more likely to stay in character
  • The oracle_response reveals what the model's internal activations suggest about its current persona, which may differ from the intended role

Model Information

  • Model: google/gemma-3-27b-it
  • Layers: 62
  • Hidden Dimension: 5376
  • Number of Roles: 275

Citation

If you use these vectors, please cite the original paper:

@misc{lu2026assistantaxissituatingstabilizing,
      title={The Assistant Axis: Situating and Stabilizing the Default Persona of Language Models}, 
      author={Christina Lu and Jack Gallagher and Jonathan Michala and Kyle Fish and Jack Lindsey},
      year={2026},
      eprint={2601.10387},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2601.10387}, 
}

License

MIT License

README history 4 revisions

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2026-01-29Add gemma-3-27b-it vectors (275 roles)3eec1914.8 KB
    Loading...
  2. 2026-01-29Update README.md4d716b81.7 KB
    Loading...
  3. 2026-01-29Add gemma-3-27b-it vectors (275 roles)b8b70051.9 KB
    Loading...
  4. 2026-01-29initial commit3dd0ded0 B
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Community discussions 1 thread · 1 open · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, license clarifications. Click any thread to expand and read the full conversation inline. Newest first.

  1. 2026-01-30[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · ablate

Read further

Metadata

License
mit

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("massines3a/assistant-axis-vectors")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="massines3a/assistant-axis-vectors", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/massines3a/assistant-axis-vectors
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration