ablate 0 0 0

Drishti/emotion-vector-robustness-audit

published by @Drishti

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
135
Last 30 days
19
Likes
-
Size
7.4 MB
Created on HF
2026-07-08
Age
3 months ago

Description

Emotion-Vector Robustness Audit

This repository contains a two-model audit of an emotion-vector-style method.

The core question is:

When a desperate - calm activation direction separates examples, is it tracking an emotion-like internal signal, or is it mostly tracking surface wording, generic negative affect, prompt construction, and dataset artifacts?

The analysis is framed as a robustness audit rather than a positive claim that the model contains a clean internal… See the full description on the dataset page: https://huggingface.co/datasets/Drishti/emotion-vector-robustness-audit.

Tags

license:mitsize_categories:n<1Kmodality:tabularmodality:textregion:usmechanistic-interpretabilityrepresentation-engineeringactivation-vectorsllm-evaluationai-safetyrobustness

README current version from Hugging Face


license: mit
pretty_name: Emotion Vector Robustness Audit
tags:

  • mechanistic-interpretability
  • representation-engineering
  • activation-vectors
  • llm-evaluation
  • ai-safety
  • robustness

Emotion-Vector Robustness Audit

This repository contains a two-model audit of an emotion-vector-style method.

The core question is:

When a desperate - calm activation direction separates examples, is it tracking an emotion-like internal signal, or is it mostly tracking surface wording, generic negative affect, prompt construction, and dataset artifacts?

The analysis is framed as a robustness audit rather than a positive claim that the model contains a clean internal "desperation" variable.

Main Result

A mean-difference activation direction can separate controlled synthetic desperate vs calm examples very strongly. However, the same synthetic task is also solved perfectly by TF-IDF in both models, and the margin is substantially weakened by lexical controls. A generic happy/sad direction is also highly competitive. Across the two runs, the supported claim is:

Emotion-vector pipelines evaluated only on lexically confounded contrasts can produce high separation scores while remaining dominated by surface wording, lexical cues, and generic negative affect.

The Qwen run is the main exploratory run. The Phi run provides a second-model validation check rather than a general cross-family proof.

Models

Model Role
Qwen/Qwen3-4B-Instruct-2507 Main run
microsoft/Phi-3.5-mini-instruct Second-model validation run

Files

Path Description
notebooks/01_qwen3-4b_emotion_vector_audit.ipynb Main Qwen3-4B notebook with outputs preserved.
notebooks/02_phi-3.5-mini_emotion_vector_audit.ipynb Phi-3.5-mini validation notebook with outputs preserved.
results/qwen3-4b_results_summary.json Machine-readable Qwen result summary.
results/phi-3.5-mini_results_summary.json Machine-readable Phi result summary.
results/cross_model_comparison.md Short cross-model comparison.

Result Snapshot

Check Qwen3-4B Phi-3.5-mini Interpretation
Held-out synthetic separation 1.00 accuracy 1.00 accuracy The unadjusted direction separates matched synthetic pairs.
TF-IDF baseline 1.00 accuracy 1.00 accuracy The synthetic task is surface-readable.
Lexical-control margin retention 0.45 primary / 0.41 natural 0.42 primary / 0.53 natural Lexical cues account for a substantial part of the margin.
Happy/sad control on pressure examples 0.978 accuracy 0.933 accuracy Generic negative affect is highly competitive.
Pressure vs dramatic wording wording dominates wording dominates Wording style is a first-order confound.
Synthetic direction -> GoEmotions AUROC 0.690 AUROC 0.736 Some proxy real-text transfer exists.
GoEmotions train/test direction vs real TF-IDF +0.029 AUROC delta -0.112 AUROC delta Activation directions are not consistently above real-text lexical baselines.
GoEmotions -> DAIR transfer vs TF-IDF +0.092 AUROC delta +0.146 AUROC delta Cross-dataset transfer is positive but modest.
Risk-choice observational correlation rho = 0.329 rho = 0.436 The relationship is exploratory, not a validated causal risk metric.
Steering mixed mixed Steering remains exploratory and secondary.

Pipeline

+-------------------------+
|  Matched text stimuli   |
|  calm / desperate       |
+-----------+-------------+
            |
            v
+-------------------------+
| Frozen instruction model|
| collect hidden states   |
+-----------+-------------+
            |
            v
+-------------------------+
| Estimate direction      |
| mean(desperate) -       |
| mean(calm)              |
+-----------+-------------+
            |
            v
+-------------------------+
| Evaluate separation     |
| held-out pairs + layers |
+-----------+-------------+
            |
            v
+-------------------------+
| Robustness checks       |
| lexical / TF-IDF /      |
| valence / domain /      |
| wording controls        |
+-----------+-------------+
            |
            v
+-------------------------+
| Real-text transfer      |
| GoEmotions / DAIR       |
+-----------+-------------+
            |
            v
+-------------------------+
| Risk proxy + steering   |
| cautious vs fast action |
+-----------+-------------+
            |
            v
+-------------------------+
| Result interpretation   |
| evidence after controls |
+-------------------------+

Repository Structure

The Qwen notebook is the primary run. The Phi notebook repeats the audit as a second-model validation run.

The notebooks preserve outputs so the result can be inspected without rerunning the models. The JSON summaries are included for quick extraction and comparison.

The main files are:

  1. notebooks/01_qwen3-4b_emotion_vector_audit.ipynb - primary run with outputs preserved.
  2. notebooks/02_phi-3.5-mini_emotion_vector_audit.ipynb - second-model validation run with outputs preserved.
  3. results/cross_model_comparison.md - compact cross-model comparison.

Scope And Limitations

  • This is an audit of one emotion-vector-style pipeline, not a general proof about all emotion representations.
  • GoEmotions and DAIR are real-text proxy emotion datasets, not direct desperation ground truth.
  • The synthetic matched-pair task is useful for control, but it is lexically easy; TF-IDF reaches perfect accuracy.
  • Steering results are exploratory, mixed, and treated as secondary.
  • The main contribution is methodological: a compact audit protocol for evaluating activation-direction results before interpreting them as internal emotional-state probes.

README history 1 revision

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-07-08Add emotion vector robustness audita189ea85.7 KB
    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-07-09[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("Drishti/emotion-vector-robustness-audit")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="Drishti/emotion-vector-robustness-audit", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/Drishti/emotion-vector-robustness-audit
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