unrulyabstractions commited on
Commit
bc3d190
·
verified ·
1 Parent(s): 95c7f6e

Add files using upload-large-folder tool

Browse files
Files changed (50) hide show
  1. .DS_Store +0 -0
  2. agg_att/.DS_Store +0 -0
  3. agg_att/denoising.json +0 -0
  4. agg_att/noising.json +0 -0
  5. agg_coarse/.DS_Store +0 -0
  6. agg_coarse/all/.DS_Store +0 -0
  7. agg_coarse/all/sweep_attn_out/.DS_Store +0 -0
  8. agg_coarse/all/sweep_attn_out/layer_sweep/.DS_Store +0 -0
  9. agg_coarse/all/sweep_attn_out/position_sweep/.DS_Store +0 -0
  10. agg_coarse/all/sweep_component_comparison/.DS_Store +0 -0
  11. agg_coarse/all/sweep_component_comparison/05_circuit_synthesis/circuit_summary.txt +78 -0
  12. agg_coarse/all/sweep_component_comparison/README.md +104 -0
  13. agg_coarse/all/sweep_mlp_out/.DS_Store +0 -0
  14. agg_coarse/all/sweep_mlp_out/layer_sweep/.DS_Store +0 -0
  15. agg_coarse/all/sweep_mlp_out/position_sweep/.DS_Store +0 -0
  16. agg_coarse/all/sweep_resid_post/.DS_Store +0 -0
  17. agg_coarse/all/sweep_resid_post/layer_sweep/.DS_Store +0 -0
  18. agg_coarse/all/sweep_resid_post/position_sweep/.DS_Store +0 -0
  19. agg_coarse/all/sweep_resid_pre/.DS_Store +0 -0
  20. agg_coarse/all/sweep_resid_pre/layer_sweep/.DS_Store +0 -0
  21. agg_coarse/all/sweep_resid_pre/position_sweep/.DS_Store +0 -0
  22. agg_coarse/attn_out.json +0 -0
  23. agg_coarse/half_horizon/.DS_Store +0 -0
  24. agg_coarse/horizon/.DS_Store +0 -0
  25. agg_coarse/horizon/sweep_attn_out/.DS_Store +0 -0
  26. agg_coarse/horizon/sweep_attn_out/layer_sweep/.DS_Store +0 -0
  27. agg_coarse/horizon/sweep_attn_out/position_sweep/.DS_Store +0 -0
  28. agg_coarse/horizon/sweep_component_comparison/.DS_Store +0 -0
  29. agg_coarse/horizon/sweep_component_comparison/README.md +104 -0
  30. agg_coarse/horizon/sweep_mlp_out/.DS_Store +0 -0
  31. agg_coarse/horizon/sweep_mlp_out/layer_sweep/.DS_Store +0 -0
  32. agg_coarse/horizon/sweep_mlp_out/position_sweep/.DS_Store +0 -0
  33. agg_coarse/mlp_out.json +0 -0
  34. agg_coarse/resid_post.json +0 -0
  35. agg_coarse/resid_pre.json +0 -0
  36. agg_diffmeans/diffmeans_agg.json +0 -0
  37. agg_geo/geo_agg.json +0 -0
  38. different_label.json +1 -0
  39. different_order.json +1 -0
  40. half_horizon.json +16 -0
  41. horizon.json +21 -0
  42. horizon_analysis.json +42 -0
  43. log.txt +0 -0
  44. no_horizon.json +3 -0
  45. pair_analysis.json +90 -0
  46. pairs/.DS_Store +0 -0
  47. processed_results.json +0 -0
  48. profile.json +185 -0
  49. same_label.json +27 -0
  50. same_order.json +27 -0
.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_att/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_att/denoising.json ADDED
The diff for this file is too large to render. See raw diff
 
agg_att/noising.json ADDED
The diff for this file is too large to render. See raw diff
 
agg_coarse/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/all/.DS_Store ADDED
Binary file (8.2 kB). View file
 
agg_coarse/all/sweep_attn_out/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/all/sweep_attn_out/layer_sweep/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/all/sweep_attn_out/position_sweep/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/all/sweep_component_comparison/.DS_Store ADDED
Binary file (8.2 kB). View file
 
agg_coarse/all/sweep_component_comparison/05_circuit_synthesis/circuit_summary.txt ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Circuit Summary
2
+
3
+ This document summarizes the inferred circuit from activation patching analysis.
4
+ Scores shown as: noising_disruption / denoising_recovery
5
+
6
+ ## Key Finding: Two-Phase Architecture
7
+
8
+ The circuit operates in two phases:
9
+ 1. **Attention phase**: Attention heads read from source positions and route information
10
+ 2. **MLP phase**: MLP layers transform and write to destination positions
11
+
12
+ ## Source Positions (Early)
13
+
14
+ Found 4 key source positions (1 have backup pathways):
15
+ - P83: 0.963/0.016 (important)
16
+ - P78: 0.787/-0.049 (important)
17
+ - P73: 0.752/0.931 (REDUNDANT - has backups)
18
+ - P98: 0.053/-0.001 (important)
19
+
20
+ Interpretation: Redundant positions have denoising > noising, meaning
21
+ the model can recover even when these positions are corrupted (backup pathways exist).
22
+
23
+ ## Attention Layers
24
+
25
+ Top attention layers (ranked by noising disruption):
26
+ - L24: 0.414/0.364 ★ MULTI-FUNCTION
27
+ - L30: 0.165/0.152
28
+ - L29: 0.162/0.137
29
+ - L23: 0.157/0.198
30
+ - L21: 0.153/0.209
31
+
32
+ These layers read from source positions and route information.
33
+ Multi-function layers (L24) appear in both attention AND MLP top lists,
34
+ suggesting they do double-duty processing.
35
+
36
+ ## MLP Layers
37
+
38
+ Top MLP layers (ranked by noising disruption):
39
+ - L35: 0.262/0.266
40
+ - L31: 0.208/0.174
41
+ - L24: 0.151/0.208 ★ MULTI-FUNCTION
42
+ - L34: 0.148/0.095
43
+ - L27: 0.088/0.064
44
+
45
+ These layers transform information and write to destination positions.
46
+
47
+ ## Destination Positions (Late) - THE BOTTLENECK
48
+
49
+ Found 4 key destination positions:
50
+ - P138: 1.000/0.000 (★ BOTTLENECK)
51
+ - P118: 0.186/0.000 (secondary)
52
+ - P133: 0.171/0.000 (secondary)
53
+ - P103: 0.024/-0.001 (secondary)
54
+
55
+ CRITICAL: 1 position(s) are true bottlenecks (noising > 0.5).
56
+ Corrupting these positions severely disrupts the model's output.
57
+ This is where the final answer is computed.
58
+
59
+ ## Layer-Position Bindings
60
+
61
+ These show which layers act at which positions (the actual circuit edges):
62
+
63
+ - L21-L30 attention reads from P73-P98
64
+ - L24-L35 MLP writes to P103-P138
65
+
66
+ ## Methodology Notes
67
+
68
+ - **Noising** (disruption): Replace clean activation with corrupted → measures necessity
69
+ - **Denoising** (recovery): Replace corrupted activation with clean → measures sufficiency
70
+ - High noising + low denoising = necessary but has backups (OR relationship)
71
+ - High noising + high denoising = necessary AND sufficient (AND relationship)
72
+ - The redundancy gap (noising - denoising) indicates how replaceable a component is
73
+ - **Denoising-only positions filtered**: Positions where denoising >> noising are excluded
74
+ as they indicate artifacts rather than true circuit components
75
+
76
+ ## Circuit Diagram
77
+
78
+ See information_flow_diagram.png for a visual representation.
agg_coarse/all/sweep_component_comparison/README.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Component Comparison Plots
2
+
3
+ This directory contains activation patching analysis visualizations organized
4
+ into five categories. Each plot has a figure number for easy reference.
5
+
6
+ ## Quick Start
7
+
8
+ 1. **Check 01_sanity_checks/** first - if these fail, results are unreliable
9
+ 2. **Read 05_circuit_synthesis/circuit_summary.txt** for the plain-text explanation
10
+ 3. **View 05_circuit_synthesis/information_flow_diagram.png** for the visual summary
11
+ 4. Drill into other folders for detailed analysis
12
+
13
+ ---
14
+
15
+ ## Directory Structure
16
+
17
+ ### 01_sanity_checks/
18
+ *Validation plots - check these first. If they fail, everything else is suspect.*
19
+
20
+ | Fig | File | Description |
21
+ |-----|------|-------------|
22
+ | 1.1 | resid_delta_sanity.png | Compares resid_pre[L+1] vs resid_post[L] (should match) |
23
+ | 1.2 | resid_delta_difference.png | Difference plot with +/-0.02 tolerance band |
24
+
25
+ ### 02_overview/
26
+ *The big picture: "Where does the computation happen?"*
27
+
28
+ | Fig | File | Description |
29
+ |-----|------|-------------|
30
+ | 2.1 | heatmap_layers_denoising.png | Layer × Component attribution (denoising recovery) |
31
+ | 2.2 | heatmap_layers_noising.png | Layer × Component attribution (noising disruption) |
32
+ | 2.3 | heatmap_layers_colnorm_denoising.png | Column-normalized heatmap (reveals fine structure) |
33
+ | 2.4 | heatmap_layers_colnorm_noising.png | Column-normalized heatmap (noising) |
34
+ | 2.5 | heatmap_positions_denoising.png | Position × Component attribution (denoising) |
35
+ | 2.6 | heatmap_positions_noising.png | Position × Component attribution (noising) |
36
+ | 2.7 | layer_position_heatmap.png | Layer × Position importance map (2D localization) |
37
+
38
+ ### 03_component_decomp/
39
+ *Drilling in: "Is it attention or MLP? Which specific components?"*
40
+
41
+ | Fig | File | Description |
42
+ |-----|------|-------------|
43
+ | 3.1 | attn_vs_mlp_layer.png | Attention vs MLP scatter by layer |
44
+ | 3.2 | attn_vs_mlp_position.png | Attention vs MLP scatter by position |
45
+ | 3.3 | attn_vs_mlp_paired.png | Paired scatter with arrows (denoising→noising movement) |
46
+ | 3.4 | component_importance_ranked.png | Top components ranked with same-layer linking |
47
+ | 3.5 | cumulative_recovery.png | Cumulative recovery with dip annotations |
48
+ | 3.6 | marginal_contribution.png | Per-layer marginal contribution |
49
+ | 3.7 | position_component_interaction.png | Effect vs position for each component |
50
+ | 3.8 | position_interaction_zoomed.png | Zoomed panels for hub regions |
51
+
52
+ ### 04_redundancy/
53
+ *Methodology comparison: "Can I trust the scores? What has backup pathways?"*
54
+
55
+ | Fig | File | Description |
56
+ |-----|------|-------------|
57
+ | 4.1 | noise_vs_denoise_per_component_layer.png | Noising vs denoising scatter (layers) |
58
+ | 4.2 | noise_vs_denoise_per_component_position.png | Noising vs denoising scatter (positions) |
59
+ | 4.3 | redundancy_gap.png | Redundancy gap (disruption - recovery) per layer |
60
+ | 4.4 | redundancy_gap_sorted.png | Redundancy gap sorted by magnitude |
61
+ | 4.5 | difference_heatmap_layer.png | Redundancy gap heatmap (layers) |
62
+ | 4.6 | difference_heatmap_position.png | Redundancy gap heatmap (positions) |
63
+
64
+ ### 05_circuit_synthesis/
65
+ *The punchline: synthesized information flow.*
66
+
67
+ | Fig | File | Description |
68
+ |-----|------|-------------|
69
+ | 5.1 | information_flow_diagram.png | Circuit summary with redundancy and bottleneck annotations |
70
+ | — | circuit_summary.txt | Plain-text explanation of the circuit hypothesis |
71
+
72
+ ---
73
+
74
+ ## Interpretation Guide
75
+
76
+ ### Scatter Plot Regions
77
+ - **AND region** (upper-right): High in both → necessary AND sufficient
78
+ - **OR region** (lower-right): High denoising, low noising → has backup pathways
79
+
80
+ ### Redundancy Gap
81
+ - **Positive gap** (disruption > recovery): Component is necessary
82
+ - **Negative gap** (recovery > disruption): Component is sufficient but replaceable
83
+
84
+ ### Scores in Circuit Diagram
85
+ - Format: noising_disruption / denoising_recovery
86
+ - Higher noising = more necessary (corrupting it breaks the model)
87
+ - Higher denoising = more sufficient (restoring it fixes the model)
88
+
89
+ ### Visual Conventions
90
+ - ★ = Multi-function layer (appears in both attention and MLP top lists)
91
+ - Colored brackets = Same-layer components (e.g., L24_attn and L24_mlp)
92
+ - Red thick arrow = Critical bottleneck path
93
+ - Dashed arrow = Backup/bypass pathway
94
+
95
+ ---
96
+
97
+ ## Colormap Reference
98
+
99
+ | Plot Type | Colormap | Interpretation |
100
+ |-----------|----------|----------------|
101
+ | Recovery/Disruption heatmaps | RdYlGn | Green=high, Red=low |
102
+ | 2D localization map | Hot | White=high, Black=low |
103
+ | Redundancy gap heatmaps | RdBu_r | Red=necessity, Blue=sufficiency |
104
+ | Layer/position scatter | Viridis | Yellow=late, Purple=early |
agg_coarse/all/sweep_mlp_out/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/all/sweep_mlp_out/layer_sweep/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/all/sweep_mlp_out/position_sweep/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/all/sweep_resid_post/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/all/sweep_resid_post/layer_sweep/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/all/sweep_resid_post/position_sweep/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/all/sweep_resid_pre/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/all/sweep_resid_pre/layer_sweep/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/all/sweep_resid_pre/position_sweep/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/attn_out.json ADDED
The diff for this file is too large to render. See raw diff
 
agg_coarse/half_horizon/.DS_Store ADDED
Binary file (8.2 kB). View file
 
agg_coarse/horizon/.DS_Store ADDED
Binary file (8.2 kB). View file
 
agg_coarse/horizon/sweep_attn_out/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/horizon/sweep_attn_out/layer_sweep/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/horizon/sweep_attn_out/position_sweep/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/horizon/sweep_component_comparison/.DS_Store ADDED
Binary file (8.2 kB). View file
 
agg_coarse/horizon/sweep_component_comparison/README.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Component Comparison Plots
2
+
3
+ This directory contains activation patching analysis visualizations organized
4
+ into five categories. Each plot has a figure number for easy reference.
5
+
6
+ ## Quick Start
7
+
8
+ 1. **Check 01_sanity_checks/** first - if these fail, results are unreliable
9
+ 2. **Read 05_circuit_synthesis/circuit_summary.txt** for the plain-text explanation
10
+ 3. **View 05_circuit_synthesis/information_flow_diagram.png** for the visual summary
11
+ 4. Drill into other folders for detailed analysis
12
+
13
+ ---
14
+
15
+ ## Directory Structure
16
+
17
+ ### 01_sanity_checks/
18
+ *Validation plots - check these first. If they fail, everything else is suspect.*
19
+
20
+ | Fig | File | Description |
21
+ |-----|------|-------------|
22
+ | 1.1 | resid_delta_sanity.png | Compares resid_pre[L+1] vs resid_post[L] (should match) |
23
+ | 1.2 | resid_delta_difference.png | Difference plot with +/-0.02 tolerance band |
24
+
25
+ ### 02_overview/
26
+ *The big picture: "Where does the computation happen?"*
27
+
28
+ | Fig | File | Description |
29
+ |-----|------|-------------|
30
+ | 2.1 | heatmap_layers_denoising.png | Layer × Component attribution (denoising recovery) |
31
+ | 2.2 | heatmap_layers_noising.png | Layer × Component attribution (noising disruption) |
32
+ | 2.3 | heatmap_layers_colnorm_denoising.png | Column-normalized heatmap (reveals fine structure) |
33
+ | 2.4 | heatmap_layers_colnorm_noising.png | Column-normalized heatmap (noising) |
34
+ | 2.5 | heatmap_positions_denoising.png | Position × Component attribution (denoising) |
35
+ | 2.6 | heatmap_positions_noising.png | Position × Component attribution (noising) |
36
+ | 2.7 | layer_position_heatmap.png | Layer × Position importance map (2D localization) |
37
+
38
+ ### 03_component_decomp/
39
+ *Drilling in: "Is it attention or MLP? Which specific components?"*
40
+
41
+ | Fig | File | Description |
42
+ |-----|------|-------------|
43
+ | 3.1 | attn_vs_mlp_layer.png | Attention vs MLP scatter by layer |
44
+ | 3.2 | attn_vs_mlp_position.png | Attention vs MLP scatter by position |
45
+ | 3.3 | attn_vs_mlp_paired.png | Paired scatter with arrows (denoising→noising movement) |
46
+ | 3.4 | component_importance_ranked.png | Top components ranked with same-layer linking |
47
+ | 3.5 | cumulative_recovery.png | Cumulative recovery with dip annotations |
48
+ | 3.6 | marginal_contribution.png | Per-layer marginal contribution |
49
+ | 3.7 | position_component_interaction.png | Effect vs position for each component |
50
+ | 3.8 | position_interaction_zoomed.png | Zoomed panels for hub regions |
51
+
52
+ ### 04_redundancy/
53
+ *Methodology comparison: "Can I trust the scores? What has backup pathways?"*
54
+
55
+ | Fig | File | Description |
56
+ |-----|------|-------------|
57
+ | 4.1 | noise_vs_denoise_per_component_layer.png | Noising vs denoising scatter (layers) |
58
+ | 4.2 | noise_vs_denoise_per_component_position.png | Noising vs denoising scatter (positions) |
59
+ | 4.3 | redundancy_gap.png | Redundancy gap (disruption - recovery) per layer |
60
+ | 4.4 | redundancy_gap_sorted.png | Redundancy gap sorted by magnitude |
61
+ | 4.5 | difference_heatmap_layer.png | Redundancy gap heatmap (layers) |
62
+ | 4.6 | difference_heatmap_position.png | Redundancy gap heatmap (positions) |
63
+
64
+ ### 05_circuit_synthesis/
65
+ *The punchline: synthesized information flow.*
66
+
67
+ | Fig | File | Description |
68
+ |-----|------|-------------|
69
+ | 5.1 | information_flow_diagram.png | Circuit summary with redundancy and bottleneck annotations |
70
+ | — | circuit_summary.txt | Plain-text explanation of the circuit hypothesis |
71
+
72
+ ---
73
+
74
+ ## Interpretation Guide
75
+
76
+ ### Scatter Plot Regions
77
+ - **AND region** (upper-right): High in both → necessary AND sufficient
78
+ - **OR region** (lower-right): High denoising, low noising → has backup pathways
79
+
80
+ ### Redundancy Gap
81
+ - **Positive gap** (disruption > recovery): Component is necessary
82
+ - **Negative gap** (recovery > disruption): Component is sufficient but replaceable
83
+
84
+ ### Scores in Circuit Diagram
85
+ - Format: noising_disruption / denoising_recovery
86
+ - Higher noising = more necessary (corrupting it breaks the model)
87
+ - Higher denoising = more sufficient (restoring it fixes the model)
88
+
89
+ ### Visual Conventions
90
+ - ★ = Multi-function layer (appears in both attention and MLP top lists)
91
+ - Colored brackets = Same-layer components (e.g., L24_attn and L24_mlp)
92
+ - Red thick arrow = Critical bottleneck path
93
+ - Dashed arrow = Backup/bypass pathway
94
+
95
+ ---
96
+
97
+ ## Colormap Reference
98
+
99
+ | Plot Type | Colormap | Interpretation |
100
+ |-----------|----------|----------------|
101
+ | Recovery/Disruption heatmaps | RdYlGn | Green=high, Red=low |
102
+ | 2D localization map | Hot | White=high, Black=low |
103
+ | Redundancy gap heatmaps | RdBu_r | Red=necessity, Blue=sufficiency |
104
+ | Layer/position scatter | Viridis | Yellow=late, Purple=early |
agg_coarse/horizon/sweep_mlp_out/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/horizon/sweep_mlp_out/layer_sweep/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/horizon/sweep_mlp_out/position_sweep/.DS_Store ADDED
Binary file (6.15 kB). View file
 
agg_coarse/mlp_out.json ADDED
The diff for this file is too large to render. See raw diff
 
agg_coarse/resid_post.json ADDED
The diff for this file is too large to render. See raw diff
 
agg_coarse/resid_pre.json ADDED
The diff for this file is too large to render. See raw diff
 
agg_diffmeans/diffmeans_agg.json ADDED
The diff for this file is too large to render. See raw diff
 
agg_geo/geo_agg.json ADDED
The diff for this file is too large to render. See raw diff
 
different_label.json ADDED
@@ -0,0 +1 @@
 
 
1
+ []
different_order.json ADDED
@@ -0,0 +1 @@
 
 
1
+ []
half_horizon.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_has_horizon": [
3
+ 0,
4
+ 3,
5
+ 7,
6
+ 10,
7
+ 13,
8
+ 15,
9
+ 18,
10
+ 20,
11
+ 22,
12
+ 23,
13
+ 24
14
+ ],
15
+ "corrupted_has_horizon": []
16
+ }
horizon.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_greater": [],
3
+ "corrupted_greater": [
4
+ 1,
5
+ 2,
6
+ 4,
7
+ 5,
8
+ 6,
9
+ 9,
10
+ 11,
11
+ 12,
12
+ 14,
13
+ 16,
14
+ 17,
15
+ 19
16
+ ],
17
+ "equal": [
18
+ 8,
19
+ 21
20
+ ]
21
+ }
horizon_analysis.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "horizon": {
3
+ "clean_greater": [],
4
+ "corrupted_greater": [
5
+ 1,
6
+ 2,
7
+ 4,
8
+ 5,
9
+ 6,
10
+ 9,
11
+ 11,
12
+ 12,
13
+ 14,
14
+ 16,
15
+ 17,
16
+ 19
17
+ ],
18
+ "equal": [
19
+ 8,
20
+ 21
21
+ ]
22
+ },
23
+ "half_horizon": {
24
+ "clean_has_horizon": [
25
+ 0,
26
+ 3,
27
+ 7,
28
+ 10,
29
+ 13,
30
+ 15,
31
+ 18,
32
+ 20,
33
+ 22,
34
+ 23,
35
+ 24
36
+ ],
37
+ "corrupted_has_horizon": []
38
+ },
39
+ "no_horizon": {
40
+ "pair_indices": []
41
+ }
42
+ }
log.txt ADDED
The diff for this file is too large to render. See raw diff
 
no_horizon.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "pair_indices": []
3
+ }
pair_analysis.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "labels": {
3
+ "same_labels": [
4
+ 0,
5
+ 1,
6
+ 2,
7
+ 3,
8
+ 4,
9
+ 5,
10
+ 6,
11
+ 7,
12
+ 8,
13
+ 9,
14
+ 10,
15
+ 11,
16
+ 12,
17
+ 13,
18
+ 14,
19
+ 15,
20
+ 16,
21
+ 17,
22
+ 18,
23
+ 19,
24
+ 20,
25
+ 21,
26
+ 22,
27
+ 23,
28
+ 24
29
+ ],
30
+ "different_labels": []
31
+ },
32
+ "order": {
33
+ "same_order": [
34
+ 0,
35
+ 1,
36
+ 2,
37
+ 3,
38
+ 4,
39
+ 5,
40
+ 6,
41
+ 7,
42
+ 8,
43
+ 9,
44
+ 10,
45
+ 11,
46
+ 12,
47
+ 13,
48
+ 14,
49
+ 15,
50
+ 16,
51
+ 17,
52
+ 18,
53
+ 19,
54
+ 20,
55
+ 21,
56
+ 22,
57
+ 23,
58
+ 24
59
+ ],
60
+ "different_order": [],
61
+ "both_short_first": [
62
+ 0,
63
+ 1,
64
+ 2,
65
+ 3,
66
+ 4,
67
+ 5,
68
+ 6,
69
+ 7,
70
+ 8,
71
+ 9,
72
+ 10,
73
+ 11,
74
+ 12,
75
+ 13,
76
+ 14,
77
+ 15,
78
+ 16,
79
+ 17,
80
+ 18,
81
+ 19,
82
+ 20,
83
+ 21,
84
+ 22,
85
+ 23,
86
+ 24
87
+ ],
88
+ "both_long_first": []
89
+ }
90
+ }
pairs/.DS_Store ADDED
Binary file (10.2 kB). View file
 
processed_results.json ADDED
The diff for this file is too large to render. See raw diff
 
profile.json ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "entries": [
3
+ {
4
+ "name": "run_experiment",
5
+ "total_ms": 1225781.5171249968,
6
+ "count": 1,
7
+ "avg_ms": 1225781.5171249968,
8
+ "children": [
9
+ {
10
+ "name": "step_preference_data",
11
+ "total_ms": 3706.3284589967225,
12
+ "count": 1,
13
+ "avg_ms": 3706.3284589967225
14
+ },
15
+ {
16
+ "name": "step_attribution_patching",
17
+ "total_ms": 6613.111875019968,
18
+ "count": 1,
19
+ "avg_ms": 6613.111875019968
20
+ },
21
+ {
22
+ "name": "step_coarse_activation_patching",
23
+ "total_ms": 2332.7152080019005,
24
+ "count": 1,
25
+ "avg_ms": 2332.7152080019005
26
+ },
27
+ {
28
+ "name": "step_diffmeans",
29
+ "total_ms": 283.85824998258613,
30
+ "count": 1,
31
+ "avg_ms": 283.85824998258613
32
+ },
33
+ {
34
+ "name": "step_geo",
35
+ "total_ms": 10649.801999999909,
36
+ "count": 1,
37
+ "avg_ms": 10649.801999999909
38
+ },
39
+ {
40
+ "name": "step_process_results",
41
+ "total_ms": 14.578208996681497,
42
+ "count": 1,
43
+ "avg_ms": 14.578208996681497
44
+ },
45
+ {
46
+ "name": "step_visualize_results",
47
+ "total_ms": 1202180.1247920084,
48
+ "count": 1,
49
+ "avg_ms": 1202180.1247920084,
50
+ "children": [
51
+ {
52
+ "name": "visualize_all_att_aggregated_slices",
53
+ "total_ms": 44276.10679101781,
54
+ "count": 1,
55
+ "avg_ms": 44276.10679101781,
56
+ "children": [
57
+ {
58
+ "name": "visualize_att_aggregated",
59
+ "total_ms": 44275.95533296699,
60
+ "count": 4,
61
+ "avg_ms": 11068.988833241747,
62
+ "children": [
63
+ {
64
+ "name": "generate_analysis_plots",
65
+ "total_ms": 12549.135708017275,
66
+ "count": 4,
67
+ "avg_ms": 3137.2839270043187,
68
+ "children": [
69
+ {
70
+ "name": "plot_aggregated_layer_attribution",
71
+ "total_ms": 3622.4987510067876,
72
+ "count": 4,
73
+ "avg_ms": 905.6246877516969,
74
+ "children": [
75
+ {
76
+ "name": "plot_layer_attribution_line",
77
+ "total_ms": 3606.1577108921483,
78
+ "count": 32,
79
+ "avg_ms": 112.69242846537963
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "name": "plot_aggregated_histograms",
85
+ "total_ms": 731.5591250080615,
86
+ "count": 4,
87
+ "avg_ms": 182.88978125201538,
88
+ "children": [
89
+ {
90
+ "name": "plot_score_histogram",
91
+ "total_ms": 730.164539971156,
92
+ "count": 8,
93
+ "avg_ms": 91.2705674963945
94
+ }
95
+ ]
96
+ },
97
+ {
98
+ "name": "plot_aggregated_mode_comparison",
99
+ "total_ms": 5748.870708950562,
100
+ "count": 4,
101
+ "avg_ms": 1437.2176772376406,
102
+ "children": [
103
+ {
104
+ "name": "plot_mode_bar_chart",
105
+ "total_ms": 2950.436625018483,
106
+ "count": 4,
107
+ "avg_ms": 737.6091562546208
108
+ },
109
+ {
110
+ "name": "plot_mode_scatter",
111
+ "total_ms": 1291.1740419804119,
112
+ "count": 4,
113
+ "avg_ms": 322.79351049510296
114
+ },
115
+ {
116
+ "name": "plot_component_scatter_grid",
117
+ "total_ms": 1504.7882919898257,
118
+ "count": 4,
119
+ "avg_ms": 376.1970729974564
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "name": "plot_aggregated_top_scores",
125
+ "total_ms": 2441.4216660079546,
126
+ "count": 4,
127
+ "avg_ms": 610.3554165019887,
128
+ "children": [
129
+ {
130
+ "name": "plot_top_scores_text",
131
+ "total_ms": 394.730250001885,
132
+ "count": 8,
133
+ "avg_ms": 49.341281250235625
134
+ },
135
+ {
136
+ "name": "plot_top_scores_bar",
137
+ "total_ms": 2044.0846259880345,
138
+ "count": 8,
139
+ "avg_ms": 255.51057824850432
140
+ }
141
+ ]
142
+ }
143
+ ]
144
+ }
145
+ ]
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "name": "visualize_all_aggregated",
151
+ "total_ms": 146356.77679200307,
152
+ "count": 1,
153
+ "avg_ms": 146356.77679200307
154
+ },
155
+ {
156
+ "name": "visualize_tokenization",
157
+ "total_ms": 20710.865210945485,
158
+ "count": 25,
159
+ "avg_ms": 828.4346084378194
160
+ },
161
+ {
162
+ "name": "visualize_att_patching",
163
+ "total_ms": 101914.27295503672,
164
+ "count": 50,
165
+ "avg_ms": 2038.2854591007344
166
+ },
167
+ {
168
+ "name": "visualize_coarse_patching",
169
+ "total_ms": 749217.5547430525,
170
+ "count": 100,
171
+ "avg_ms": 7492.175547430525
172
+ },
173
+ {
174
+ "name": "visualize_component_comparison",
175
+ "total_ms": 87789.18679297203,
176
+ "count": 25,
177
+ "avg_ms": 3511.5674717188813
178
+ }
179
+ ]
180
+ }
181
+ ]
182
+ }
183
+ ],
184
+ "total_ms": 1225781.5171249968
185
+ }
same_label.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ 0,
3
+ 1,
4
+ 2,
5
+ 3,
6
+ 4,
7
+ 5,
8
+ 6,
9
+ 7,
10
+ 8,
11
+ 9,
12
+ 10,
13
+ 11,
14
+ 12,
15
+ 13,
16
+ 14,
17
+ 15,
18
+ 16,
19
+ 17,
20
+ 18,
21
+ 19,
22
+ 20,
23
+ 21,
24
+ 22,
25
+ 23,
26
+ 24
27
+ ]
same_order.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ 0,
3
+ 1,
4
+ 2,
5
+ 3,
6
+ 4,
7
+ 5,
8
+ 6,
9
+ 7,
10
+ 8,
11
+ 9,
12
+ 10,
13
+ 11,
14
+ 12,
15
+ 13,
16
+ 14,
17
+ 15,
18
+ 16,
19
+ 17,
20
+ 18,
21
+ 19,
22
+ 20,
23
+ 21,
24
+ 22,
25
+ 23,
26
+ 24
27
+ ]