viliana-dev commited on
Commit
73e45f1
·
verified ·
1 Parent(s): d44a06b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +101 -0
README.md ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - text-classification
5
+ language:
6
+ - en
7
+ tags:
8
+ - sycophancy
9
+ - interpretability
10
+ - activation-probing
11
+ - mixture-of-experts
12
+ - epistemic-uncertainty
13
+ pretty_name: Nested Geometry of Sycophancy
14
+ size_categories:
15
+ - 10K<n<100K
16
+ ---
17
+
18
+ # Nested Geometry of Sycophancy
19
+
20
+ Dataset and activation features for the paper **"The Nested Geometry of Epistemic Capitulation: Asymmetric Transfer of Sycophancy Mechanisms Across LLM Architectures"** (EIML @ ICML 2026).
21
+
22
+ ## Overview
23
+
24
+ We study the internal geometry of sycophancy in reasoning LLMs, stratified by epistemic uncertainty. The dataset contains:
25
+
26
+ - **Sycophancy evaluation data** from Anthropic model-written evaluations, with model-generated Chain-of-Thought responses and sycophancy labels
27
+ - **Activation features** (residual stream) extracted at multiple layers and CoT depth percentages
28
+ - **Token-level entropy** measuring model uncertainty
29
+ - **Steering experiment results** testing static linear interventions
30
+
31
+ Three models are covered:
32
+
33
+ | Model | Type | Layers | Hidden dim | Best layer | Suffix |
34
+ |---|---|---|---|---|---|
35
+ | Qwen3-14B | Dense | 40 | 5120 | L30 | `sycophancy` |
36
+ | gpt-oss-20b | MoE (32x4) | 24 | 2880 | L18 | `sycophancy_gptoss` |
37
+ | Qwen3-30B-A3B | MoE (128x8) | 48 | 2048 | L36 | `sycophancy_qwen_moe` |
38
+
39
+ ## File structure
40
+
41
+ ```
42
+ data/
43
+ generated/
44
+ sycophancy{_gptoss,_qwen_moe}/
45
+ labeled.jsonl # question_id, question, answer, CoT, label (0/1), uncertainty_score
46
+ answer_entropy.jsonl # question_id, entropy (token-level)
47
+ splits.json # train/val/test question_id lists (70/15/15)
48
+ steering/ # per-direction x per-alpha generation results
49
+ features/
50
+ sycophancy{_gptoss,_qwen_moe}/
51
+ L{layer}_K{pct}.npz # X: (n_samples, hidden_dim), qids: question_ids
52
+ results/
53
+ exp_geometry{_gptoss,_qwen_moe}.json
54
+ exp_subspace_analysis{_gptoss,_qwen_moe}.json
55
+ exp_steering{_gptoss}.json
56
+ exp3_probe_by_uncertainty_{entropy_rank,*}.json
57
+ exp4_trajectories{_gptoss,_qwen_moe}.json
58
+ exp5_multiseed{_gptoss,_qwen_moe}.json
59
+ exp_moe_routing{_qwen_moe}.json
60
+ ...
61
+ ```
62
+
63
+ ## Loading features
64
+
65
+ ```python
66
+ import numpy as np
67
+
68
+ # Load best-layer features for Qwen3-14B
69
+ npz = np.load("data/features/sycophancy/L30_K100.npz")
70
+ X = npz["X"] # shape: (5096, 5120) — activations
71
+ qids = npz["qids"] # shape: (5096,) — question IDs
72
+ ```
73
+
74
+ ## Loading labels
75
+
76
+ ```python
77
+ import json
78
+
79
+ with open("data/generated/sycophancy/labeled.jsonl") as f:
80
+ records = [json.loads(line) for line in f]
81
+
82
+ # Each record has: question_id, question_raw, answer_raw, label (1=sycophantic),
83
+ # answer_matching_behavior, thinking (CoT text), uncertainty_score
84
+ ```
85
+
86
+ ## Key findings
87
+
88
+ 1. **Universal nested geometry**: uncertain sycophancy (w_unc) is a base vector; confident sycophancy adds orthogonal v_override. Holds across all 3 architectures.
89
+ 2. **Standing committees**: MoE models route both regimes through shared expert subsets (Jaccard >= 0.86).
90
+ 3. **Steering null result**: Static linear steering produces +/- 2pp change, explained by representational independence.
91
+
92
+ ## Citation
93
+
94
+ ```bibtex
95
+ @inproceedings{anonymous2026nested,
96
+ title={The Nested Geometry of Epistemic Capitulation: Asymmetric Transfer of Sycophancy Mechanisms Across {LLM} Architectures},
97
+ author={Anonymous},
98
+ booktitle={ICML 2026 Workshop on Evaluating and Improving Models of Language (EIML)},
99
+ year={2026}
100
+ }
101
+ ```