ablate 0 0 0

musicakamusic/crimsonred-paper-replication

published by @musicakamusic

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
741
Last 30 days
129
Likes
-
Size
29.8 MB
Created on HF
2026-07-26
Age
2 months ago

Description

CrimsonRed — Cross-Architecture Emotion-Prime Steering Replication

Replication of the emotion-prime steering protocol from arXiv:2607.18691 (NSM

semantic primes as explanans for emotion in LLMs), extended across four

architectures. Generated by scripts/paper_faithful_steering.py in the

CrimsonRed project.

The finding

The paper's core claim — that semantic-prime recipe directions steer emotion more

strongly than Scherer appraisal directions — replicates… See the full description on the dataset page: https://huggingface.co/datasets/musicakamusic/crimsonred-paper-replication.

Tags

task_categories:text-generationlicense:agpl-3.0arxiv:2607.18691region:usemotionsteeringactivation-steeringinterpretabilityreplicationcross-architecture

README current version from Hugging Face


license: agpl-3.0
task_categories:

  • text-generation
    tags:
  • emotion
  • steering
  • activation-steering
  • interpretability
  • replication
  • cross-architecture
    pretty_name: CrimsonRed cross-architecture emotion-prime steering replication

CrimsonRed — Cross-Architecture Emotion-Prime Steering Replication

Replication of the emotion-prime steering protocol from arXiv:2607.18691 (NSM
semantic primes as explanans for emotion in LLMs), extended across four
architectures. Generated by scripts/paper_faithful_steering.py in the
CrimsonRed project.

The finding

The paper's core claim — that semantic-prime recipe directions steer emotion more
strongly than Scherer appraisal directions — replicates cross-architecture when
the injection protocol is matched to the reference code, not the paper's prose:

Model Layer prime_recipe single_appraisal Operating-regime ratio Paper: 2.9×
Llama-3.2-1B 11 +0.26 +0.15 2.80× ✅
Qwen3.5-2B 18 +0.09 +0.01 2.95× ✅
Gemma-4-E2B 15 +0.04 −0.03 primes ≫ appraisals* ✅
Gemma-4-E4B 20 pending pending pending TBD

*On Gemma-E2B, appraisals steer away from the target (negative on 3/4 emotions).
The ratio is undefined (negative denominator), but primes ≫ appraisals is unambiguous
— stronger than a 2.9× advantage.

The prose–code discrepancy (methodological contribution)

The paper's §4 describes the injection as "a unit-normalized direction, scaled by the
layer's mean residual norm, at all token positions." The reference code
(emo-llm/main.py:469-492) does something different:

Aspect Paper prose (§4) Reference code
Direction unit-normalized raw probe weight (unnormalized)
Scale β × mean residual norm β × 1.0 (fixed)
Token positions all last token only
Layers single (L11) span of 3 (L10, L11, L12)
Contrastive removal not mentioned disabled (Beta2 = 0.0)

Following the prose produces a false negative (Qwen 0.82×, Gemma 0.91× — apparent
"Llama-specificity"). Following the code reproduces the paper's ~2.9× on every model.

Protocol (source mode)

  • Injection: HF register_forward_hook, post-MLP residual, adds
    β × raw_probe_weight at the last token over a 3-layer span.
  • Directions: 32 primes (L2 logistic, C=1.0, 210 contrastive pairs/prime,
    held-out acc 0.987) + 20 appraisals (Ridge α=5.0 on enVent 6,800 events) +
    13 emotions (L2 logistic on enVent labels).
  • Metric: target-emotion logit shift at the answer position of Tak et al.'s
    2-shot classification prompt. Selectivity clamped to [−1, 1].
  • Operating-regime ratio: prime/appraisal shift ratio over (target, β) cells
    where the emotion ceiling shift is positive.
  • Targets: guilt, anger, joy, sadness.

Files

Path Description
summary_2026-07-27_source_mode.json Cross-architecture source-mode summary
docs/METHODOLOGY_AUDIT_PAPER_FAITHFUL_2026-07-27.md Full methodology audit vs. the paper
docs/PAPER_DRAFT_CROSS_ARCH_PRIMES_2026-07-27.md Publication draft
results/source/paper_faithful_llama1b_L11_source_cal.json Llama L11 source, β=0.01–0.2
results/source/paper_faithful_qwen35_L18_source.json Qwen3.5-2B L18 source
results/source/paper_faithful_gemma_e2b_L15_source.json Gemma-4-E2B L15 source
results/source/paper_faithful_gemma_e4b_L20_source.json Gemma-4-E4B L20 source (appended when run completes)
results/papermode/paper_faithful_llama1b_L11_sweep_v2.json Llama paper-mode v2 (corrected metrics)
results/papermode/paper_faithful_llama1b_L11_paperverse.json Llama paper's β=0.5–2.0 (collapse)
legacy/… Earlier paper-mode results, retained for provenance

Reproduce

python scripts/paper_faithful_steering.py \
  --model <path> --layer <L> --inject-tokens last --layer-span 3 \
  --beta 0.01 0.02 0.05 0.1 0.2 --mode source --pairs-per-prime 210 \
  --output data/<name>.json

Generated by CrimsonRed,
scripts/paper_faithful_steering.py. AGPL-3.0 license.

README history 20 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-09-13Upload e4b_dose_grid/stats_permutation_gemma_e4b_L30_b04.json with huggingfac...4ebb43d4.2 KB
    Loading...
  2. 2026-09-13Upload e4b_dose_grid/stats_permutation_gemma_e4b_L30_b03.json with huggingfac...626e3e34.2 KB
    Loading...
  3. 2026-09-13Upload e4b_dose_grid/stats_permutation_gemma_e4b_L30_b02.json with huggingfac...699318e4.2 KB
    Loading...
  4. 2026-09-13Upload e4b_dose_grid/stats_permutation_gemma_e4b_L30_b015.json with huggingfa...e1a11744.2 KB
    Loading...
  5. 2026-09-13Upload e4b_dose_grid/paper_faithful_gemma_e4b_L30_dosegrid_probegen.json with...4f8260f4.2 KB
    Loading...
  6. 2026-09-13Upload e4b_dose_grid/e4b_dose_grid_analysis_20260913.json with huggingface_hub186ec7f4.2 KB
    Loading...
  7. 2026-09-13Upload e4b_dose_grid/e4b_dose_grid_20260913.log with huggingface_hub558b1594.2 KB
    Loading...
  8. 2026-08-02Upload results/existence_sweep_gemma-4-e2b.json with huggingface_hub408c8984.2 KB
    Loading...
  9. 2026-08-02Upload results/behavioral_tests_gemma_e2b_L34.json with huggingface_hub0d8fd9e4.2 KB
    Loading...
  10. 2026-08-02Upload results/behavioral_equivalence_gemma-4-e2b.json with huggingface_hub507ba254.2 KB
    Loading...
  11. 2026-08-02Upload results/recipe_match_gemma-4-e2b_L34.json with huggingface_huba2845b04.2 KB
    Loading...
  12. 2026-08-02Upload results/bottom_out_test_gemma-4-e2b.json with huggingface_hub4256f7a4.2 KB
    Loading...
  13. 2026-08-02Upload results/stats/stats_permutation_gemma_e4b_L30_b01.json with huggingfac...a233e394.2 KB
    Loading...
  14. 2026-08-02Upload results/stats/stats_permutation_gemma_e2b_L34_b01.json with huggingfac...d87d66f4.2 KB
    Loading...
  15. 2026-08-02Upload results/stats/stats_permutation_qwen35_L12_b01.json with huggingface_hub8592f9f4.2 KB
    Loading...
  16. 2026-08-02Upload results/stats/stats_permutation_gemma_e4b_L30.json with huggingface_hubeb7a6884.2 KB
    Loading...
  17. 2026-08-02Upload results/stats/stats_permutation_qwen35_L12.json with huggingface_hub2f8caa04.2 KB
    Loading...
  18. 2026-08-02Upload probes/paper_probes_gemma_e2b_L34.pt with huggingface_hubc79322b4.2 KB
    Loading...
  19. 2026-08-02Upload probes/paper_probes_gemma_e4b_L30.pt with huggingface_hub53d80224.2 KB
    Loading...
  20. 2026-08-02Upload probes/paper_probes_qwen35_L12.pt with huggingface_hub55054114.2 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-08-02[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · ablate

Read further

Metadata

License
agpl-3.0

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("musicakamusic/crimsonred-paper-replication")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="musicakamusic/crimsonred-paper-replication", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/musicakamusic/crimsonred-paper-replication
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