Upload folder using huggingface_hub
Browse files- sieve_bench/LEADERBOARD.md +183 -148
- sieve_bench/common/data.py +89 -0
- sieve_bench/results/reworks_smoke.json +377 -0
- sieve_bench/results/sonar.json +142 -92
- sieve_bench/results/st-LaBSE-mean.json +86 -56
- sieve_bench/results/st-all-mpnet-base-v2-mean.json +90 -59
- sieve_bench/results/st-e5-large-v2-mean.json +86 -56
- sieve_bench/results/st-gte-large-mean.json +84 -55
- sieve_bench/tasks/t11_position_unrotation.py +107 -38
- sieve_bench/tasks/t12_additivity.py +133 -44
- sieve_bench/tasks/t17_recombination_fidelity.py +79 -27
- sieve_bench/tasks/t21_encoder_pooling_generality.py +34 -12
- sieve_bench/tasks/t22_word_edit.py +91 -69
- sieve_bench/tasks/t25_concept_injection_recovery.py +42 -7
sieve_bench/LEADERBOARD.md
CHANGED
|
@@ -2,161 +2,196 @@
|
|
| 2 |
|
| 3 |
_Auto-generated by `make_leaderboard.py` from `results/*.json`._
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
-
|
| 8 |
|
| 9 |
-
##
|
| 10 |
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|---|---|---|---|---|---|---|
|
| 13 |
-
|
|
| 14 |
-
|
|
| 15 |
-
|
|
| 16 |
-
|
|
| 17 |
-
|
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
- **t03_entity_presence** (st-e5-large-v2-mean): NOT-z-specific: bag_baseline 1.000 >= score 1.000-0.02 (bag already solves it)
|
| 42 |
-
- **t04_negation_scope** (st-e5-large-v2-mean): NOT-z-specific: bag_baseline 1.000 >= score 1.000-0.02 (bag already solves it); NOT-z-specific: surface_position_baseline 1.000 >= score 1.000-0.02 (surface position already solves it)
|
| 43 |
-
- **t11_position_unrotation** (st-e5-large-v2-mean): DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)
|
| 44 |
-
- **t14_capacity_law** (st-e5-large-v2-mean): DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)
|
| 45 |
-
- **t17_recombination_fidelity** (st-e5-large-v2-mean): DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)
|
| 46 |
-
- **t02_number_exact** (st-gte-large-mean): NOT-z-specific: bag_baseline 0.635 >= score 0.340-0.02 (bag already solves it)
|
| 47 |
-
- **t03_entity_presence** (st-gte-large-mean): NOT-z-specific: bag_baseline 1.000 >= score 1.000-0.02 (bag already solves it)
|
| 48 |
-
- **t04_negation_scope** (st-gte-large-mean): NOT-z-specific: bag_baseline 1.000 >= score 1.000-0.02 (bag already solves it); NOT-z-specific: surface_position_baseline 1.000 >= score 1.000-0.02 (surface position already solves it)
|
| 49 |
-
- **t11_position_unrotation** (st-gte-large-mean): DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)
|
| 50 |
-
- **t14_capacity_law** (st-gte-large-mean): DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)
|
| 51 |
-
- **t17_recombination_fidelity** (st-gte-large-mean): DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)
|
| 52 |
|
| 53 |
## Structure-index (diagnostic tasks — LOW-is-good, separate axis)
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
|
| 60 |
-
|
|
| 61 |
-
|
|
| 62 |
-
|
|
| 63 |
-
|
|
| 64 |
-
|
|
| 65 |
-
| t18_concept_steer | sonar | 0.269 | - |
|
| 66 |
-
| t24_sentence_reorder | sonar | 0.286 | - |
|
| 67 |
-
| t26_causal_identifiability | sonar | 0.468 | - |
|
| 68 |
-
| t06_thematic_role | st-LaBSE-mean | 0.500 | 0.060 | 0.
|
| 69 |
-
| t09_coreference | st-LaBSE-mean | 0.355 | - |
|
| 70 |
-
| t10_dimensionality | st-LaBSE-mean | 0.233 | - |
|
| 71 |
-
|
|
| 72 |
-
|
|
| 73 |
-
|
|
| 74 |
-
|
|
| 75 |
-
|
|
| 76 |
-
|
|
| 77 |
-
|
|
| 78 |
-
|
|
| 79 |
-
|
|
| 80 |
-
| t06_thematic_role | st-
|
| 81 |
-
| t09_coreference | st-
|
| 82 |
-
| t10_dimensionality | st-
|
| 83 |
-
|
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
|
| 88 |
-
|
|
| 89 |
-
|
|
| 90 |
-
|
|
| 91 |
-
|
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
|
| 98 |
-
|
|
| 99 |
-
|
|
| 100 |
-
|
|
| 101 |
-
|
|
| 102 |
-
|
|
| 103 |
-
|
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
|
| 108 |
-
|
|
| 109 |
-
|
|
| 110 |
-
|
|
| 111 |
-
|
|
| 112 |
-
|
|
| 113 |
-
|
|
| 114 |
-
|
|
| 115 |
-
|
|
| 116 |
-
|
|
| 117 |
-
|
|
| 118 |
-
|
|
| 119 |
-
|
|
| 120 |
-
|
|
| 121 |
-
|
|
| 122 |
-
|
|
| 123 |
-
|
|
| 124 |
-
|
|
| 125 |
-
|
|
| 126 |
-
|
|
| 127 |
-
|
|
| 128 |
-
|
|
| 129 |
-
|
|
| 130 |
-
|
|
| 131 |
-
|
|
| 132 |
-
|
|
| 133 |
-
|
|
| 134 |
-
|
|
| 135 |
-
|
|
| 136 |
-
|
|
| 137 |
-
|
|
| 138 |
-
|
|
| 139 |
-
|
|
| 140 |
-
|
|
| 141 |
-
|
|
| 142 |
-
|
|
| 143 |
-
|
|
| 144 |
-
|
|
| 145 |
-
|
|
| 146 |
-
|
|
| 147 |
-
|
|
| 148 |
-
|
|
| 149 |
-
|
|
| 150 |
-
|
|
| 151 |
-
|
|
| 152 |
-
|
|
| 153 |
-
|
|
| 154 |
-
| t13_sae_monosemanticity | B | core | st-
|
| 155 |
-
| t14_capacity_law | B | core | st-
|
| 156 |
-
|
|
| 157 |
-
|
|
| 158 |
-
|
|
| 159 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
|
| 161 |
## Non-OK tasks (skipped / error)
|
| 162 |
|
|
|
|
| 2 |
|
| 3 |
_Auto-generated by `make_leaderboard.py` from `results/*.json`._
|
| 4 |
|
| 5 |
+
**No single overall winner column.** The fair comparative number is the TWO-TRACK structure below: an **Encode-Readout-Δ over an INTERSECTION of tasks all encoders can do (encoder-agnostic probe-only arms)**, a SEPARATE **Generative / full-stack panel** for decode-dependent capabilities, a full **per-task heatmap**, and the diagnostic (LOW-is-good) Structure section kept on its own axis. `effective_n` is reported everywhere.
|
| 6 |
|
| 7 |
+
A task is audit-FAIL (excluded from any Δ) if it is not z-specific (a bag-of-words / surface-position null already solves it), degenerate (no headroom over its matched baseline), or has disagreeing arms. For decode-arm tasks (t14 capacity-law) the comparative number uses the encoder-agnostic **probe arm**, NOT the decode arm.
|
| 8 |
|
| 9 |
+
## (1a) Encode-Readout-Δ — INTERSECTION (fair comparative headline)
|
| 10 |
|
| 11 |
+
Mean `score_vs_baseline` over the SAME set of CORE readout tasks that EVERY evaluated encoder can run AND audit-passes, scored on **probe-only / encoder-agnostic arms** (no decode-dependent arm). `effective_n` is identical across encoders by construction — this is the apples-to-apples number.
|
| 12 |
+
|
| 13 |
+
**Intersection task set (6): t01_lexical_bag, t05_position_order, t08_length_generalization, t13_sae_monosemanticity, t19_crosslingual_readout, t21_encoder_pooling_generality**
|
| 14 |
+
|
| 15 |
+
| Encoder | Encode-Readout-Δ (intersection, ↑) | effective_n |
|
| 16 |
+
|---|---|---|
|
| 17 |
+
| sonar | 0.847 | 6 |
|
| 18 |
+
| st-LaBSE-mean | 0.804 | 6 |
|
| 19 |
+
| st-all-mpnet-base-v2-mean | 0.802 | 6 |
|
| 20 |
+
| st-e5-large-v2-mean | 0.789 | 6 |
|
| 21 |
+
| st-gte-large-mean | 0.816 | 6 |
|
| 22 |
+
|
| 23 |
+
### Tasks excluded from the intersection (not all-encoder / not all-pass)
|
| 24 |
+
|
| 25 |
+
- **t02_number_exact**: st-LaBSE-mean: audit-FAIL/no-headroom; st-all-mpnet-base-v2-mean: audit-FAIL/no-headroom; st-e5-large-v2-mean: audit-FAIL/no-headroom; st-gte-large-mean: audit-FAIL/no-headroom
|
| 26 |
+
- **t03_entity_presence**: sonar: audit-FAIL/no-headroom; st-LaBSE-mean: audit-FAIL/no-headroom; st-all-mpnet-base-v2-mean: audit-FAIL/no-headroom; st-e5-large-v2-mean: audit-FAIL/no-headroom; st-gte-large-mean: audit-FAIL/no-headroom
|
| 27 |
+
- **t04_negation_scope**: sonar: audit-FAIL/no-headroom; st-LaBSE-mean: audit-FAIL/no-headroom; st-all-mpnet-base-v2-mean: audit-FAIL/no-headroom; st-e5-large-v2-mean: audit-FAIL/no-headroom; st-gte-large-mean: audit-FAIL/no-headroom
|
| 28 |
+
- **t07_meaning_coverage**: sonar: audit-FAIL/no-headroom; st-LaBSE-mean: missing caps {'decode'}; st-all-mpnet-base-v2-mean: missing caps {'decode'}; st-e5-large-v2-mean: missing caps {'decode'}; st-gte-large-mean: missing caps {'decode'}
|
| 29 |
+
- **t14_capacity_law**: st-LaBSE-mean: audit-FAIL/no-headroom; st-all-mpnet-base-v2-mean: audit-FAIL/no-headroom; st-e5-large-v2-mean: audit-FAIL/no-headroom; st-gte-large-mean: audit-FAIL/no-headroom
|
| 30 |
+
|
| 31 |
+
## (1b) Generative / full-stack panel (decode-capable only — NOT comparative)
|
| 32 |
+
|
| 33 |
+
Decode-dependent capabilities reported SEPARATELY and NEVER mixed into the comparative ranked column: generative tasks (construction / editing), the decode-arm capacity-law, and any readout that relies on decode. Only decode-capable encoders (SONAR) appear; absence = encoder lacks the cap.
|
| 34 |
+
|
| 35 |
+
| Encoder | Generative-Δ (audit-pass, ↑) | effective_n / #gen | decode-arm t14 r² |
|
| 36 |
+
|---|---|---|---|
|
| 37 |
+
| sonar | 0.692 | 6 / 6 | 0.901 |
|
| 38 |
+
| st-LaBSE-mean | 0.477 | 1 / 1 | - |
|
| 39 |
+
| st-all-mpnet-base-v2-mean | - | 0 / 1 | - |
|
| 40 |
+
| st-e5-large-v2-mean | 0.851 | 1 / 1 | - |
|
| 41 |
+
| st-gte-large-mean | 0.677 | 1 / 1 | - |
|
| 42 |
+
|
| 43 |
+
## (1c) Per-task x per-encoder heatmap
|
| 44 |
+
|
| 45 |
+
Cell = score, with an audit flag: `✓` audit-PASS, `✗` audit-FAIL, `·` skipped (missing caps), blank = no record. CORE readout rows first, then generative, then diagnostic. `(probe)` marks the encoder-agnostic arm used for the intersection on decode-arm tasks. This is the full picture — read it instead of a single winner.
|
| 46 |
+
|
| 47 |
+
| Task | Kind | sonar | LaBSE | all-mpnet-base-v2 | e5-large-v2 | gte-large |
|
| 48 |
|---|---|---|---|---|---|---|
|
| 49 |
+
| t01_lexical_bag * | core | 0.408✓ | 0.502✓ | 0.263✓ | 0.403✓ | 0.306✓ |
|
| 50 |
+
| t02_number_exact | core | 0.906✓ | 0.000✗ | 0.000✗ | 0.113✗ | 0.340✗ |
|
| 51 |
+
| t03_entity_presence | core | 1.000✗ | 1.000✗ | 1.000✗ | 1.000✗ | 1.000✗ |
|
| 52 |
+
| t04_negation_scope | core | 1.000✗ | 1.000✗ | 1.000✗ | 1.000✗ | 1.000✗ |
|
| 53 |
+
| t05_position_order * | core | 0.840✓ | 0.667✓ | 0.660✓ | 0.531✓ | 0.628✓ |
|
| 54 |
+
| t07_meaning_coverage | core | 0.014✗ | · | · | · | · |
|
| 55 |
+
| t08_length_generalization * | core | 1.000✓ | 1.000✓ | 1.000✓ | 1.000✓ | 1.000✓ |
|
| 56 |
+
| t13_sae_monosemanticity * | core | 0.844✓ | 0.683✓ | 0.960✓ | 0.820✓ | 0.963✓ |
|
| 57 |
+
| t14_capacity_law | core | 0.416✓(probe) | 0.000✗(probe) | -0.615✗(probe) | 0.000✗(probe) | 0.000✗(probe) |
|
| 58 |
+
| t19_crosslingual_readout * | core | 1.000✓ | 1.000✓ | 0.966✓ | 0.997✓ | 1.000✓ |
|
| 59 |
+
| t21_encoder_pooling_generality * | core | 1.000✓ | 1.000✓ | 1.000✓ | 1.000✓ | 1.000✓ |
|
| 60 |
+
| t15_sentence_from_words | gen | 0.842✓ | · | · | · | · |
|
| 61 |
+
| t16_vocab_coverage | gen | 1.000✓ | · | · | · | · |
|
| 62 |
+
| t20_decode_quality_by_language | gen | 0.938✓ | · | · | · | · |
|
| 63 |
+
| t22_word_edit | gen | 0.829✓ | · | · | · | · |
|
| 64 |
+
| t23_edit_sentence_2of3 | gen | 0.619✓ | · | · | · | · |
|
| 65 |
+
| t25_concept_injection_recovery | gen | 0.744✓ | 0.846✓ | 0.800✗ | 0.946✓ | 0.894✓ |
|
| 66 |
+
| t06_thematic_role | diag | 0.500✓ | 0.500✓ | 0.500✓ | 0.500✓ | 0.500✓ |
|
| 67 |
+
| t09_coreference | diag | 0.468✓ | 0.355✓ | 0.424✓ | 0.319✓ | 0.350✓ |
|
| 68 |
+
| t10_dimensionality | diag | 0.561✓ | 0.233✓ | 0.305✓ | 0.338✓ | 0.272✓ |
|
| 69 |
+
| t11_position_unrotation | diag | 0.000✓ | 0.000✓ | 0.000✓ | 0.000✓ | 0.000✓ |
|
| 70 |
+
| t12_additivity | diag | 0.006✓ | 0.226✓ | 0.308✓ | 0.079✓ | 0.084✓ |
|
| 71 |
+
| t17_recombination_fidelity | diag | 0.000✓ | 1.000✓ | 0.000✓ | 1.000✓ | 1.000✓ |
|
| 72 |
+
| t18_concept_steer | diag | 0.269✓ | · | · | · | · |
|
| 73 |
+
| t24_sentence_reorder | diag | 0.286✓ | · | · | · | · |
|
| 74 |
+
| t26_causal_identifiability | diag | 0.468✓ | · | · | · | · |
|
| 75 |
+
|
| 76 |
+
`*` = task is in the comparative intersection (1a).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
## Structure-index (diagnostic tasks — LOW-is-good, separate axis)
|
| 79 |
|
| 80 |
+
Diagnostic tasks are descriptors, NOT a leaderboard score. For **t12 additivity** the score is now the control-corrected **Δ_additivity = bag_cos − shuffled_bag_cos** (HIGH => the SPECIFIC words drive z), and `genuinely_bag_like` requires Δ_additivity high AND order-insensitivity (see the additivity detail table).
|
| 81 |
+
|
| 82 |
+
| Task | Enc | score | ref_sonar | target | pass | falsified | AUDIT | interp |
|
| 83 |
+
|---|---|---|---|---|---|---|---|---|
|
| 84 |
+
| t06_thematic_role | sonar | 0.500 | 0.060 | 0.650 | PASS | no | PASS | LOW score is the no-binding finding. Surface-position baseline ~ |
|
| 85 |
+
| t09_coreference | sonar | 0.468 | - | 0.650 | PASS | no | PASS | Pronoun->entity coreference. Relational; surface-position is ~ch |
|
| 86 |
+
| t10_dimensionality | sonar | 0.561 | - | 1.000 | PASS | YES | PASS | Manifold/dimensionality descriptor (report, no pass/fail). Norma |
|
| 87 |
+
| t11_position_unrotation | sonar | 0.000 | - | 0.300 | PASS | no | PASS | DIAGNOSTIC. Single-token un-rotation by R_pos^{-p} does NOT reco |
|
| 88 |
+
| t12_additivity | sonar | 0.006 | - | 0.300 | PASS | no | PASS | Additivity (control-corrected). score=Δ_additivity = bag_cos - S |
|
| 89 |
+
| t17_recombination_fidelity | sonar | 0.000 | - | 0.100 | PASS | no | PASS | Reconstruct pooled z from per-token states through a frozen rand |
|
| 90 |
+
| t18_concept_steer | sonar | 0.269 | - | 0.500 | PASS | no | PASS | Add a diff-of-means concept direction; does the concept causally |
|
| 91 |
+
| t24_sentence_reorder | sonar | 0.286 | - | 0.350 | PASS | no | PASS | Swap s1<->s3 in a 3-sentence z. score = order-success x content- |
|
| 92 |
+
| t26_causal_identifiability | sonar | 0.468 | - | 0.600 | PASS | no | PASS | Interventionally swap agent<->patient in z while preserving cont |
|
| 93 |
+
| t06_thematic_role | st-LaBSE-mean | 0.500 | 0.060 | 0.650 | PASS | no | PASS | LOW score is the no-binding finding. Surface-position baseline ~ |
|
| 94 |
+
| t09_coreference | st-LaBSE-mean | 0.355 | - | 0.650 | PASS | no | PASS | Pronoun->entity coreference. Relational; surface-position is ~ch |
|
| 95 |
+
| t10_dimensionality | st-LaBSE-mean | 0.233 | - | 1.000 | PASS | YES | PASS | Manifold/dimensionality descriptor (report, no pass/fail). Norma |
|
| 96 |
+
| t11_position_unrotation | st-LaBSE-mean | 0.000 | - | 0.300 | PASS | no | PASS | DIAGNOSTIC. Single-token un-rotation by R_pos^{-p} does NOT reco |
|
| 97 |
+
| t12_additivity | st-LaBSE-mean | 0.226 | - | 0.300 | PASS | no | PASS | Additivity (control-corrected). score=Δ_additivity = bag_cos - S |
|
| 98 |
+
| t17_recombination_fidelity | st-LaBSE-mean | 1.000 | - | 0.100 | — | YES | PASS | Reconstruct pooled z from per-token states through a frozen rand |
|
| 99 |
+
| t06_thematic_role | st-all-mpnet-base-v2-mean | 0.500 | 0.060 | 0.650 | PASS | no | PASS | LOW score is the no-binding finding. Surface-position baseline ~ |
|
| 100 |
+
| t09_coreference | st-all-mpnet-base-v2-mean | 0.424 | - | 0.650 | PASS | no | PASS | Pronoun->entity coreference. Relational; surface-position is ~ch |
|
| 101 |
+
| t10_dimensionality | st-all-mpnet-base-v2-mean | 0.305 | - | 1.000 | PASS | YES | PASS | Manifold/dimensionality descriptor (report, no pass/fail). Norma |
|
| 102 |
+
| t11_position_unrotation | st-all-mpnet-base-v2-mean | 0.000 | - | 0.300 | PASS | no | PASS | DIAGNOSTIC. Single-token un-rotation by R_pos^{-p} does NOT reco |
|
| 103 |
+
| t12_additivity | st-all-mpnet-base-v2-mean | 0.308 | - | 0.300 | — | no | PASS | Additivity (control-corrected). score=Δ_additivity = bag_cos - S |
|
| 104 |
+
| t17_recombination_fidelity | st-all-mpnet-base-v2-mean | 0.000 | - | 0.100 | PASS | no | PASS | Reconstruct pooled z from per-token states through a frozen rand |
|
| 105 |
+
| t06_thematic_role | st-e5-large-v2-mean | 0.500 | 0.060 | 0.650 | PASS | no | PASS | LOW score is the no-binding finding. Surface-position baseline ~ |
|
| 106 |
+
| t09_coreference | st-e5-large-v2-mean | 0.319 | - | 0.650 | PASS | no | PASS | Pronoun->entity coreference. Relational; surface-position is ~ch |
|
| 107 |
+
| t10_dimensionality | st-e5-large-v2-mean | 0.338 | - | 1.000 | PASS | YES | PASS | Manifold/dimensionality descriptor (report, no pass/fail). Norma |
|
| 108 |
+
| t11_position_unrotation | st-e5-large-v2-mean | 0.000 | - | 0.300 | PASS | no | PASS | DIAGNOSTIC. Single-token un-rotation by R_pos^{-p} does NOT reco |
|
| 109 |
+
| t12_additivity | st-e5-large-v2-mean | 0.079 | - | 0.300 | PASS | no | PASS | Additivity (control-corrected). score=Δ_additivity = bag_cos - S |
|
| 110 |
+
| t17_recombination_fidelity | st-e5-large-v2-mean | 1.000 | - | 0.100 | — | YES | PASS | Reconstruct pooled z from per-token states through a frozen rand |
|
| 111 |
+
| t06_thematic_role | st-gte-large-mean | 0.500 | 0.060 | 0.650 | PASS | no | PASS | LOW score is the no-binding finding. Surface-position baseline ~ |
|
| 112 |
+
| t09_coreference | st-gte-large-mean | 0.350 | - | 0.650 | PASS | no | PASS | Pronoun->entity coreference. Relational; surface-position is ~ch |
|
| 113 |
+
| t10_dimensionality | st-gte-large-mean | 0.272 | - | 1.000 | PASS | YES | PASS | Manifold/dimensionality descriptor (report, no pass/fail). Norma |
|
| 114 |
+
| t11_position_unrotation | st-gte-large-mean | 0.000 | - | 0.300 | PASS | no | PASS | DIAGNOSTIC. Single-token un-rotation by R_pos^{-p} does NOT reco |
|
| 115 |
+
| t12_additivity | st-gte-large-mean | 0.084 | - | 0.300 | PASS | no | PASS | Additivity (control-corrected). score=Δ_additivity = bag_cos - S |
|
| 116 |
+
| t17_recombination_fidelity | st-gte-large-mean | 1.000 | - | 0.100 | — | YES | PASS | Reconstruct pooled z from per-token states through a frozen rand |
|
| 117 |
+
|
| 118 |
+
### Additivity controls (t12) — is z GENUINELY a bag?
|
| 119 |
+
|
| 120 |
+
Raw bag_cos OVERSTATES additivity (a #-matched RANDOM-word bag already explains much of it). The honest numbers are **Δ_additivity = bag_cos − shuffled_bag_cos** and the **order-permutation** test (permute words → bag unchanged; does z move?). GENUINELY bag-like = Δ_additivity ≫ 0 AND order-insensitive.
|
| 121 |
+
|
| 122 |
+
| Enc | bag_cos | shuffled_bag_cos | **Δ_additivity** | ridge-free cos | order_sensitivity | genuinely_bag_like |
|
| 123 |
+
|---|---|---|---|---|---|---|
|
| 124 |
+
| sonar | 0.254 | 0.248 | **0.006** | 0.139 | 0.476 | no |
|
| 125 |
+
| st-LaBSE-mean | 0.827 | 0.601 | **0.226** | 0.505 | 0.129 | no |
|
| 126 |
+
| st-all-mpnet-base-v2-mean | 0.580 | 0.273 | **0.308** | 0.408 | 0.207 | no |
|
| 127 |
+
| st-e5-large-v2-mean | 0.904 | 0.825 | **0.079** | 0.842 | 0.067 | no |
|
| 128 |
+
| st-gte-large-mean | 0.919 | 0.835 | **0.084** | 0.888 | 0.051 | no |
|
| 129 |
+
|
| 130 |
+
## Readout / capability / generative tasks (detail)
|
| 131 |
+
|
| 132 |
+
| Task | Fam | Tier | Enc | score | base | bag | surf-pos | ceiling | Δ-vs-base | AUDIT | ref |
|
| 133 |
+
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 134 |
+
| t01_lexical_bag | A | core | sonar | 0.408 | 0.000 | 1.000 | 0.182 | 1.000 | 0.408 | PASS | - |
|
| 135 |
+
| t02_number_exact | A | core | sonar | 0.906 | 0.000 | 0.635 | 0.285 | 1.000 | 0.906 | PASS | 0.990 |
|
| 136 |
+
| t03_entity_presence | A | core | sonar | 1.000 | 0.500 | 1.000 | 0.876 | 1.000 | 1.000 | FAIL(NOT-z-specific) | 1.000 |
|
| 137 |
+
| t04_negation_scope | A | core | sonar | 1.000 | 0.748 | 1.000 | 1.000 | 1.000 | 1.000 | FAIL(NOT-z-specific; NOT-z-specific) | 0.950 |
|
| 138 |
+
| t05_position_order | A | core | sonar | 0.840 | -0.014 | - | - | 1.000 | 0.842 | PASS | - |
|
| 139 |
+
| t07_meaning_coverage | A | core | sonar | 0.014 | 0.000 | 0.000 | - | 1.000 | 0.014 | FAIL(NOT-z-specific; DEGENERATE) | - |
|
| 140 |
+
| t08_length_generalization | A | core | sonar | 1.000 | 0.500 | 0.000 | 0.000 | 1.000 | 1.000 | PASS | - |
|
| 141 |
+
| t13_sae_monosemanticity | B | core | sonar | 0.844 | 0.073 | - | - | 1.000 | 0.832 | PASS | - |
|
| 142 |
+
| t14_capacity_law | B | core | sonar | 0.901 | 0.000 | - | - | 1.000 | 0.901 | PASS | 0.930 |
|
| 143 |
+
| t15_sentence_from_words | C | gene | sonar | 0.842 | 0.173 | - | - | 0.985 | 0.824 | PASS | - |
|
| 144 |
+
| t16_vocab_coverage | C | gene | sonar | 1.000 | 0.983 | - | - | 1.000 | 1.000 | PASS | - |
|
| 145 |
+
| t19_crosslingual_readout | E | core | sonar | 1.000 | 0.500 | - | - | 1.000 | 1.000 | PASS | 1.000 |
|
| 146 |
+
| t20_decode_quality_by_language | E | gene | sonar | 0.938 | 0.417 | - | - | 1.000 | 0.893 | PASS | - |
|
| 147 |
+
| t21_encoder_pooling_generality | E | core | sonar | 1.000 | 0.333 | - | - | 1.000 | 1.000 | PASS | 1.000 |
|
| 148 |
+
| t22_word_edit | D | gene | sonar | 0.829 | 0.621 | - | - | 0.909 | 0.721 | PASS | - |
|
| 149 |
+
| t23_edit_sentence_2of3 | D | gene | sonar | 0.619 | 0.469 | - | - | 1.000 | 0.282 | PASS | - |
|
| 150 |
+
| t25_concept_injection_recovery | D | gene | sonar | 0.744 | 0.549 | - | - | 1.000 | 0.433 | PASS | - |
|
| 151 |
+
| t01_lexical_bag | A | core | st-LaBSE-mean | 0.502 | 0.000 | 1.000 | 0.182 | 1.000 | 0.502 | PASS | - |
|
| 152 |
+
| t02_number_exact | A | core | st-LaBSE-mean | 0.000 | 0.000 | 0.635 | 0.285 | 1.000 | 0.000 | FAIL(NOT-z-specific; NOT-z-specific; DEGENERATE) | 0.990 |
|
| 153 |
+
| t03_entity_presence | A | core | st-LaBSE-mean | 1.000 | 0.500 | 1.000 | 0.876 | 1.000 | 1.000 | FAIL(NOT-z-specific) | 1.000 |
|
| 154 |
+
| t04_negation_scope | A | core | st-LaBSE-mean | 1.000 | 0.748 | 1.000 | 1.000 | 1.000 | 1.000 | FAIL(NOT-z-specific; NOT-z-specific) | 0.950 |
|
| 155 |
+
| t05_position_order | A | core | st-LaBSE-mean | 0.667 | 0.006 | - | - | 1.000 | 0.665 | PASS | - |
|
| 156 |
+
| t08_length_generalization | A | core | st-LaBSE-mean | 1.000 | 0.500 | 0.000 | 0.000 | 1.000 | 1.000 | PASS | - |
|
| 157 |
+
| t13_sae_monosemanticity | B | core | st-LaBSE-mean | 0.683 | 0.076 | - | - | 1.000 | 0.657 | PASS | - |
|
| 158 |
+
| t14_capacity_law | B | core | st-LaBSE-mean | 0.000 | 0.000 | - | - | 1.000 | 0.000 | FAIL(DEGENERATE) | 0.930 |
|
| 159 |
+
| t19_crosslingual_readout | E | core | st-LaBSE-mean | 1.000 | 0.500 | - | - | 1.000 | 1.000 | PASS | 1.000 |
|
| 160 |
+
| t21_encoder_pooling_generality | E | core | st-LaBSE-mean | 1.000 | 0.333 | - | - | 1.000 | 1.000 | PASS | 1.000 |
|
| 161 |
+
| t25_concept_injection_recovery | D | gene | st-LaBSE-mean | 0.846 | 0.706 | - | - | 1.000 | 0.477 | PASS | - |
|
| 162 |
+
| t01_lexical_bag | A | core | st-all-mpnet-base-v2-mean | 0.263 | 0.000 | 1.000 | 0.182 | 1.000 | 0.263 | PASS | - |
|
| 163 |
+
| t02_number_exact | A | core | st-all-mpnet-base-v2-mean | 0.000 | 0.000 | 0.635 | 0.285 | 1.000 | 0.000 | FAIL(NOT-z-specific; NOT-z-specific; DEGENERATE) | 0.990 |
|
| 164 |
+
| t03_entity_presence | A | core | st-all-mpnet-base-v2-mean | 1.000 | 0.500 | 1.000 | 0.876 | 1.000 | 1.000 | FAIL(NOT-z-specific) | 1.000 |
|
| 165 |
+
| t04_negation_scope | A | core | st-all-mpnet-base-v2-mean | 1.000 | 0.748 | 1.000 | 1.000 | 1.000 | 1.000 | FAIL(NOT-z-specific; NOT-z-specific) | 0.950 |
|
| 166 |
+
| t05_position_order | A | core | st-all-mpnet-base-v2-mean | 0.660 | -0.005 | - | - | 1.000 | 0.661 | PASS | - |
|
| 167 |
+
| t08_length_generalization | A | core | st-all-mpnet-base-v2-mean | 1.000 | 0.500 | 0.000 | 0.000 | 1.000 | 1.000 | PASS | - |
|
| 168 |
+
| t13_sae_monosemanticity | B | core | st-all-mpnet-base-v2-mean | 0.960 | 0.081 | - | - | 1.000 | 0.957 | PASS | - |
|
| 169 |
+
| t14_capacity_law | B | core | st-all-mpnet-base-v2-mean | -0.615 | 0.000 | - | - | 1.000 | 0.000 | FAIL(DEGENERATE) | 0.930 |
|
| 170 |
+
| t19_crosslingual_readout | E | core | st-all-mpnet-base-v2-mean | 0.966 | 0.500 | - | - | 1.000 | 0.933 | PASS | 1.000 |
|
| 171 |
+
| t21_encoder_pooling_generality | E | core | st-all-mpnet-base-v2-mean | 1.000 | 0.333 | - | - | 1.000 | 1.000 | PASS | 1.000 |
|
| 172 |
+
| t25_concept_injection_recovery | D | gene | st-all-mpnet-base-v2-mean | 0.800 | 0.817 | - | - | 1.000 | 0.000 | FAIL(DEGENERATE) | - |
|
| 173 |
+
| t01_lexical_bag | A | core | st-e5-large-v2-mean | 0.403 | 0.000 | 1.000 | 0.182 | 1.000 | 0.403 | PASS | - |
|
| 174 |
+
| t02_number_exact | A | core | st-e5-large-v2-mean | 0.113 | 0.000 | 0.635 | 0.285 | 1.000 | 0.113 | FAIL(NOT-z-specific; NOT-z-specific) | 0.990 |
|
| 175 |
+
| t03_entity_presence | A | core | st-e5-large-v2-mean | 1.000 | 0.500 | 1.000 | 0.876 | 1.000 | 1.000 | FAIL(NOT-z-specific) | 1.000 |
|
| 176 |
+
| t04_negation_scope | A | core | st-e5-large-v2-mean | 1.000 | 0.748 | 1.000 | 1.000 | 1.000 | 1.000 | FAIL(NOT-z-specific; NOT-z-specific) | 0.950 |
|
| 177 |
+
| t05_position_order | A | core | st-e5-large-v2-mean | 0.531 | -0.005 | - | - | 1.000 | 0.533 | PASS | - |
|
| 178 |
+
| t08_length_generalization | A | core | st-e5-large-v2-mean | 1.000 | 0.500 | 0.000 | 0.000 | 1.000 | 1.000 | PASS | - |
|
| 179 |
+
| t13_sae_monosemanticity | B | core | st-e5-large-v2-mean | 0.820 | 0.080 | - | - | 1.000 | 0.804 | PASS | - |
|
| 180 |
+
| t14_capacity_law | B | core | st-e5-large-v2-mean | 0.000 | 0.000 | - | - | 1.000 | 0.000 | FAIL(DEGENERATE) | 0.930 |
|
| 181 |
+
| t19_crosslingual_readout | E | core | st-e5-large-v2-mean | 0.997 | 0.500 | - | - | 1.000 | 0.994 | PASS | 1.000 |
|
| 182 |
+
| t21_encoder_pooling_generality | E | core | st-e5-large-v2-mean | 1.000 | 0.333 | - | - | 1.000 | 1.000 | PASS | 1.000 |
|
| 183 |
+
| t25_concept_injection_recovery | D | gene | st-e5-large-v2-mean | 0.946 | 0.641 | - | - | 1.000 | 0.851 | PASS | - |
|
| 184 |
+
| t01_lexical_bag | A | core | st-gte-large-mean | 0.306 | 0.000 | 1.000 | 0.182 | 1.000 | 0.306 | PASS | - |
|
| 185 |
+
| t02_number_exact | A | core | st-gte-large-mean | 0.340 | 0.000 | 0.635 | 0.285 | 1.000 | 0.340 | FAIL(NOT-z-specific) | 0.990 |
|
| 186 |
+
| t03_entity_presence | A | core | st-gte-large-mean | 1.000 | 0.500 | 1.000 | 0.876 | 1.000 | 1.000 | FAIL(NOT-z-specific) | 1.000 |
|
| 187 |
+
| t04_negation_scope | A | core | st-gte-large-mean | 1.000 | 0.748 | 1.000 | 1.000 | 1.000 | 1.000 | FAIL(NOT-z-specific; NOT-z-specific) | 0.950 |
|
| 188 |
+
| t05_position_order | A | core | st-gte-large-mean | 0.628 | -0.005 | - | - | 1.000 | 0.629 | PASS | - |
|
| 189 |
+
| t08_length_generalization | A | core | st-gte-large-mean | 1.000 | 0.500 | 0.000 | 0.000 | 1.000 | 1.000 | PASS | - |
|
| 190 |
+
| t13_sae_monosemanticity | B | core | st-gte-large-mean | 0.963 | 0.080 | - | - | 1.000 | 0.960 | PASS | - |
|
| 191 |
+
| t14_capacity_law | B | core | st-gte-large-mean | 0.000 | 0.000 | - | - | 1.000 | 0.000 | FAIL(DEGENERATE) | 0.930 |
|
| 192 |
+
| t19_crosslingual_readout | E | core | st-gte-large-mean | 1.000 | 0.500 | - | - | 1.000 | 1.000 | PASS | 1.000 |
|
| 193 |
+
| t21_encoder_pooling_generality | E | core | st-gte-large-mean | 1.000 | 0.333 | - | - | 1.000 | 1.000 | PASS | 1.000 |
|
| 194 |
+
| t25_concept_injection_recovery | D | gene | st-gte-large-mean | 0.894 | 0.673 | - | - | 1.000 | 0.677 | PASS | - |
|
| 195 |
|
| 196 |
## Non-OK tasks (skipped / error)
|
| 197 |
|
sieve_bench/common/data.py
CHANGED
|
@@ -795,3 +795,92 @@ def svo_swap_items(seed: int = 0, n: int = 200, smoke: bool = False):
|
|
| 795 |
with open(fp, "w") as f:
|
| 796 |
json.dump(items, f)
|
| 797 |
return items
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 795 |
with open(fp, "w") as f:
|
| 796 |
json.dump(items, f)
|
| 797 |
return items
|
| 798 |
+
|
| 799 |
+
|
| 800 |
+
# ---------------------------------------------------------------------------
|
| 801 |
+
# D1 word-edit (v0.2 rework). The v0.1 task swapped ONE entity pair
|
| 802 |
+
# (Amazon->Google) over 6 templates -> a single trivially-editable named-entity
|
| 803 |
+
# direction in SONAR (diff-of-means == naive-add), so score==base==ceiling==1.0.
|
| 804 |
+
# The rework uses a LARGER, MORE DIVERSE set of word pairs spanning parts of
|
| 805 |
+
# speech (noun/verb/adjective), an abstract<->concrete axis, and rare/uncommon
|
| 806 |
+
# words, each instantiated in MULTIPLE neutral carrier sentences so the edit
|
| 807 |
+
# direction is learned over varied contexts. This makes target-success vs
|
| 808 |
+
# collateral-preservation a non-trivial trade-off that separates a held-out
|
| 809 |
+
# diff-of-means edit from a naive single-vector add.
|
| 810 |
+
# Each pair: {x, y, pos, axis}. Carriers are generic so the swapped word is the
|
| 811 |
+
# only content difference -> clean collateral measurement.
|
| 812 |
+
# ---------------------------------------------------------------------------
|
| 813 |
+
# Pairs tagged with the carrier-set appropriate to their part of speech, so the
|
| 814 |
+
# swapped word reads naturally (clean SONAR decode + clean collateral measure).
|
| 815 |
+
_WORD_EDIT_PAIRS = [
|
| 816 |
+
# concrete nouns
|
| 817 |
+
{"x": "river", "y": "mountain", "pos": "noun", "axis": "concrete"},
|
| 818 |
+
{"x": "doctor", "y": "teacher", "pos": "noun", "axis": "concrete"},
|
| 819 |
+
{"x": "engine", "y": "garden", "pos": "noun", "axis": "concrete"},
|
| 820 |
+
{"x": "castle", "y": "harbor", "pos": "noun", "axis": "concrete"},
|
| 821 |
+
{"x": "winter", "y": "summer", "pos": "noun", "axis": "concrete"},
|
| 822 |
+
# abstract nouns
|
| 823 |
+
{"x": "freedom", "y": "justice", "pos": "noun", "axis": "abstract"},
|
| 824 |
+
{"x": "sorrow", "y": "courage", "pos": "noun", "axis": "abstract"},
|
| 825 |
+
{"x": "wisdom", "y": "silence", "pos": "noun", "axis": "abstract"},
|
| 826 |
+
# rare / uncommon nouns
|
| 827 |
+
{"x": "glacier", "y": "savanna", "pos": "noun", "axis": "rare"},
|
| 828 |
+
{"x": "obsidian", "y": "marble", "pos": "noun", "axis": "rare"},
|
| 829 |
+
{"x": "monastery", "y": "laboratory", "pos": "noun", "axis": "rare"},
|
| 830 |
+
{"x": "diplomat", "y": "merchant", "pos": "noun", "axis": "rare"},
|
| 831 |
+
{"x": "turbine", "y": "lantern", "pos": "noun", "axis": "rare"},
|
| 832 |
+
# verbs (past tense, fit a "they {W} ..." carrier)
|
| 833 |
+
{"x": "increased", "y": "decreased", "pos": "verb", "axis": "antonym"},
|
| 834 |
+
{"x": "praised", "y": "criticized", "pos": "verb", "axis": "antonym"},
|
| 835 |
+
{"x": "arrived", "y": "departed", "pos": "verb", "axis": "antonym"},
|
| 836 |
+
# adjectives (fit a "the ... was {W}" carrier)
|
| 837 |
+
{"x": "ancient", "y": "modern", "pos": "adj", "axis": "antonym"},
|
| 838 |
+
{"x": "bright", "y": "gloomy", "pos": "adj", "axis": "antonym"},
|
| 839 |
+
{"x": "fragile", "y": "sturdy", "pos": "adj", "axis": "antonym"},
|
| 840 |
+
]
|
| 841 |
+
|
| 842 |
+
# POS-appropriate carriers. The swapped word is the only content difference.
|
| 843 |
+
_WORD_EDIT_CARRIERS = {
|
| 844 |
+
"noun": [
|
| 845 |
+
"The {W} was clearly visible from the road.",
|
| 846 |
+
"Everyone in the town talked about the {W} that morning.",
|
| 847 |
+
"She wrote a long essay describing the {W} in detail.",
|
| 848 |
+
"According to the guide, the {W} drew many visitors.",
|
| 849 |
+
"They spent the afternoon thinking about the {W}.",
|
| 850 |
+
"A short article mentioned the {W} near the end.",
|
| 851 |
+
],
|
| 852 |
+
"verb": [
|
| 853 |
+
"The visitors {W} just before noon on Tuesday.",
|
| 854 |
+
"Reports say the workers {W} during the long meeting.",
|
| 855 |
+
"Last spring the travellers {W} without much warning.",
|
| 856 |
+
"Officials noted that the numbers {W} that year.",
|
| 857 |
+
"Quietly, the guests {W} as the evening went on.",
|
| 858 |
+
"By midday the crowd {W} along the river.",
|
| 859 |
+
],
|
| 860 |
+
"adj": [
|
| 861 |
+
"The building looked remarkably {W} from the hill.",
|
| 862 |
+
"Visitors found the old hall surprisingly {W} inside.",
|
| 863 |
+
"Critics described the new design as rather {W}.",
|
| 864 |
+
"The whole valley seemed {W} in the morning light.",
|
| 865 |
+
"Reporters called the proposal unexpectedly {W}.",
|
| 866 |
+
"Everyone agreed the room felt {W} that day.",
|
| 867 |
+
],
|
| 868 |
+
}
|
| 869 |
+
|
| 870 |
+
|
| 871 |
+
def word_edit_pairs(seed: int = 0, n: int = None, smoke: bool = False):
|
| 872 |
+
"""D1: diverse word-swap pairs (noun/verb/adj, concrete/abstract/rare) in
|
| 873 |
+
POS-appropriate carriers. Returns dict with `pairs` (the X->Y definitions)
|
| 874 |
+
and `items` (per-pair, per-carrier instantiations). item:
|
| 875 |
+
{x_text, y_text, x, y, pos, axis, cid}."""
|
| 876 |
+
pairs = _WORD_EDIT_PAIRS
|
| 877 |
+
items = []
|
| 878 |
+
for p in pairs:
|
| 879 |
+
for cid, carrier in enumerate(_WORD_EDIT_CARRIERS[p["pos"]]):
|
| 880 |
+
items.append({
|
| 881 |
+
"x_text": carrier.format(W=p["x"]),
|
| 882 |
+
"y_text": carrier.format(W=p["y"]),
|
| 883 |
+
"x": p["x"], "y": p["y"], "pos": p["pos"], "axis": p["axis"],
|
| 884 |
+
"cid": cid,
|
| 885 |
+
})
|
| 886 |
+
return {"pairs": pairs, "items": items}
|
sieve_bench/results/reworks_smoke.json
ADDED
|
@@ -0,0 +1,377 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"t17": {
|
| 3 |
+
"task": "t17_recombination_fidelity",
|
| 4 |
+
"encoder": "sonar",
|
| 5 |
+
"status": "ok",
|
| 6 |
+
"tier": "generative",
|
| 7 |
+
"is_diagnostic": true,
|
| 8 |
+
"caps": [
|
| 9 |
+
"encode",
|
| 10 |
+
"token_states"
|
| 11 |
+
],
|
| 12 |
+
"score": 1.9092228368085714e-07,
|
| 13 |
+
"baseline": 1.0,
|
| 14 |
+
"ceiling": 0.0,
|
| 15 |
+
"control": 1.0,
|
| 16 |
+
"score_vs_baseline": 0.9999998100777161,
|
| 17 |
+
"score_over_ceiling": 0.0,
|
| 18 |
+
"target": 0.1,
|
| 19 |
+
"falsifier": 0.4,
|
| 20 |
+
"passed": true,
|
| 21 |
+
"falsified": false,
|
| 22 |
+
"ref_sonar": null,
|
| 23 |
+
"interp": "Reconstruct pooled z from per-token states through a frozen random rank-m bottleneck. Finding: uniform 1/N pool reconstructs z as well as a fitted/learned pool (relative gap ~0) => the loss is per-token CAPACITY, not aggregation strategy. DIAGNOSTIC score = relative uniform-vs-learned gap (SMALL=capacity-not-aggregation holds). Absolute R2_uniform~m/d is reported separately (raw.r2_uniform_pool); it is an artifact of the random bottleneck rank, not a quality score.",
|
| 24 |
+
"raw": {
|
| 25 |
+
"n_sents": 1000,
|
| 26 |
+
"m_bottleneck": 128,
|
| 27 |
+
"r2_uniform_pool": 0.06754106311460828,
|
| 28 |
+
"r2_learned_pool": 0.06754105021951673,
|
| 29 |
+
"r2_one_token": 0.0,
|
| 30 |
+
"r2_shuffled_control": 0.0,
|
| 31 |
+
"uniform_vs_learned": 1.0000001909222838,
|
| 32 |
+
"uniform_gap_rel": 1.9092228368085714e-07,
|
| 33 |
+
"onetoken_gap_rel": 1.0,
|
| 34 |
+
"note": "score = |R2_uniform-R2_learned|/R2_learned (DIAGNOSTIC, small=capacity-not-aggregation). Absolute R2~m/d is a random-bottleneck artifact, reported but not the score.",
|
| 35 |
+
"audit_arms": {
|
| 36 |
+
"r2_uniform_pool": 0.06754106311460828,
|
| 37 |
+
"r2_learned_pool": 0.06754105021951673
|
| 38 |
+
}
|
| 39 |
+
},
|
| 40 |
+
"audit": {
|
| 41 |
+
"status": "PASS",
|
| 42 |
+
"reasons": []
|
| 43 |
+
},
|
| 44 |
+
"task_id": "t17",
|
| 45 |
+
"family": "C"
|
| 46 |
+
},
|
| 47 |
+
"t11": {
|
| 48 |
+
"task": "t11_position_unrotation",
|
| 49 |
+
"encoder": "sonar",
|
| 50 |
+
"status": "ok",
|
| 51 |
+
"tier": "core",
|
| 52 |
+
"is_diagnostic": true,
|
| 53 |
+
"caps": [
|
| 54 |
+
"encode",
|
| 55 |
+
"token_states"
|
| 56 |
+
],
|
| 57 |
+
"score": 0.0,
|
| 58 |
+
"baseline": 0.0,
|
| 59 |
+
"ceiling": 1.0,
|
| 60 |
+
"control": 0.010103020133192147,
|
| 61 |
+
"score_vs_baseline": 0.0,
|
| 62 |
+
"score_over_ceiling": 0.0,
|
| 63 |
+
"target": 0.3,
|
| 64 |
+
"falsifier": 0.5,
|
| 65 |
+
"passed": true,
|
| 66 |
+
"falsified": false,
|
| 67 |
+
"ref_sonar": null,
|
| 68 |
+
"interp": "DIAGNOSTIC. Single-token un-rotation by R_pos^{-p} does NOT recover position -- same-word-different-position tokens do NOT collapse (score ~0). Position separability is an AGGREGATE property of the pooled c_pool, not a per-token-readable rotation. The aggregate arm (raw.aggregate_position_auc_*) shows position IS encoded at the pool level. LOW score = the structural finding.",
|
| 69 |
+
"raw": {
|
| 70 |
+
"unrotator": "sonar_fitted_clock",
|
| 71 |
+
"n_words": 10,
|
| 72 |
+
"same_word_cos_before": 0.46256032288074495,
|
| 73 |
+
"same_word_cos_after": 0.46378215253353117,
|
| 74 |
+
"same_word_lift": 0.0012218296527862216,
|
| 75 |
+
"diff_word_cos_before": 0.1732351733908046,
|
| 76 |
+
"diff_word_cos_after": 0.17866493726911672,
|
| 77 |
+
"diff_word_lift": 0.005429763878312122,
|
| 78 |
+
"aggregate_position_auc_raw": 0.390625,
|
| 79 |
+
"aggregate_position_auc_unrot": 0.375,
|
| 80 |
+
"aggregate_n": 16,
|
| 81 |
+
"aggregate_supports_pool_clock": false,
|
| 82 |
+
"note": "DIAGNOSTIC: single-token un-rotation does NOT collapse same-word tokens (score ~0) -> position is not per-token readable; that is the registered finding. Aggregate arm (raw-pool vs un-rotated-pool early/late AUC) is exploratory supporting evidence (small n), reported as-measured, not asserted as proof."
|
| 83 |
+
},
|
| 84 |
+
"audit": {
|
| 85 |
+
"status": "PASS",
|
| 86 |
+
"reasons": []
|
| 87 |
+
},
|
| 88 |
+
"task_id": "t11",
|
| 89 |
+
"family": "B"
|
| 90 |
+
},
|
| 91 |
+
"t22": {
|
| 92 |
+
"task": "t22_word_edit",
|
| 93 |
+
"encoder": "sonar",
|
| 94 |
+
"status": "ok",
|
| 95 |
+
"tier": "generative",
|
| 96 |
+
"is_diagnostic": false,
|
| 97 |
+
"caps": [
|
| 98 |
+
"decode",
|
| 99 |
+
"encode"
|
| 100 |
+
],
|
| 101 |
+
"score": 0.8288052387468198,
|
| 102 |
+
"baseline": 0.6213088949736374,
|
| 103 |
+
"ceiling": 0.9090614777639332,
|
| 104 |
+
"control": 0.0,
|
| 105 |
+
"score_vs_baseline": 0.7210928952922924,
|
| 106 |
+
"score_over_ceiling": 0.9117152779081134,
|
| 107 |
+
"target": 0.55,
|
| 108 |
+
"falsifier": 0.35,
|
| 109 |
+
"passed": true,
|
| 110 |
+
"falsified": false,
|
| 111 |
+
"ref_sonar": null,
|
| 112 |
+
"interp": "Replace X->Y in z (per-pair leave-one-out diff-of-means) over a diverse word-pair set. score = harmonic mean of target-success (decodes with Y, X gone) and collateral-preservation. Baseline = naive single-vector add WITHOUT LOO averaging.",
|
| 113 |
+
"raw": {
|
| 114 |
+
"n_pairs": 19,
|
| 115 |
+
"n_items": 114,
|
| 116 |
+
"target_success": 0.7456140350877193,
|
| 117 |
+
"x_removed": 0.9035087719298246,
|
| 118 |
+
"collateral_preservation": 0.9328917860984802,
|
| 119 |
+
"naive_target_success": 0.49122807017543857,
|
| 120 |
+
"naive_preservation": 0.8450967669487,
|
| 121 |
+
"t0_surrogate_auc": 0.9719913819636812,
|
| 122 |
+
"by_axis": {
|
| 123 |
+
"abstract": {
|
| 124 |
+
"target_success": 0.8333333333333334,
|
| 125 |
+
"n": 18
|
| 126 |
+
},
|
| 127 |
+
"antonym": {
|
| 128 |
+
"target_success": 0.5833333333333334,
|
| 129 |
+
"n": 36
|
| 130 |
+
},
|
| 131 |
+
"concrete": {
|
| 132 |
+
"target_success": 0.7666666666666667,
|
| 133 |
+
"n": 30
|
| 134 |
+
},
|
| 135 |
+
"rare": {
|
| 136 |
+
"target_success": 0.8666666666666667,
|
| 137 |
+
"n": 30
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"edit_examples": [
|
| 141 |
+
[
|
| 142 |
+
"The river was clearly visible from the road.",
|
| 143 |
+
"The river was clearly visible from the road."
|
| 144 |
+
],
|
| 145 |
+
[
|
| 146 |
+
"Everyone in the town talked about the river that morning.",
|
| 147 |
+
"Everyone in the town was talking about the mountain that morning."
|
| 148 |
+
],
|
| 149 |
+
[
|
| 150 |
+
"She wrote a long essay describing the river in detail.",
|
| 151 |
+
"She wrote a long essay describing the mountain in detail."
|
| 152 |
+
]
|
| 153 |
+
]
|
| 154 |
+
},
|
| 155 |
+
"audit": {
|
| 156 |
+
"status": "PASS",
|
| 157 |
+
"reasons": []
|
| 158 |
+
},
|
| 159 |
+
"task_id": "t22",
|
| 160 |
+
"family": "D"
|
| 161 |
+
},
|
| 162 |
+
"t25": {
|
| 163 |
+
"task": "t25_concept_injection_recovery",
|
| 164 |
+
"encoder": "sonar",
|
| 165 |
+
"status": "ok",
|
| 166 |
+
"tier": "generative",
|
| 167 |
+
"is_diagnostic": false,
|
| 168 |
+
"caps": [
|
| 169 |
+
"encode"
|
| 170 |
+
],
|
| 171 |
+
"score": 0.7442740008818982,
|
| 172 |
+
"baseline": 0.5491400032375092,
|
| 173 |
+
"ceiling": 1.0,
|
| 174 |
+
"control": 0.5178521378452985,
|
| 175 |
+
"score_vs_baseline": 0.43280397154946515,
|
| 176 |
+
"score_over_ceiling": 0.7442740001376241,
|
| 177 |
+
"target": 0.85,
|
| 178 |
+
"falsifier": 0.6,
|
| 179 |
+
"passed": false,
|
| 180 |
+
"falsified": false,
|
| 181 |
+
"ref_sonar": null,
|
| 182 |
+
"interp": "Inject a concept at one-token budget z'=z*N/(N+1)+delta/(N+1); the concept should be recoverable at the Law-1 N+1 rate (no cliff). score = 1 - |recovered - predicted|.",
|
| 183 |
+
"raw": {
|
| 184 |
+
"concept": "money",
|
| 185 |
+
"law1_C_fit": 495.93220338983053,
|
| 186 |
+
"mean_measured_auc": 0.7129861354896876,
|
| 187 |
+
"mean_predicted_auc": 0.9687121346077893,
|
| 188 |
+
"mean_control_auc": 0.5178521378452985,
|
| 189 |
+
"mean_abs_err": 0.25572599911810173,
|
| 190 |
+
"baseline_abs_err": 0.4508599967624908,
|
| 191 |
+
"n_injected": 600,
|
| 192 |
+
"by_bin": [
|
| 193 |
+
{
|
| 194 |
+
"mean_N": 9.584905660377359,
|
| 195 |
+
"measured_auc": 0.893556425774297,
|
| 196 |
+
"predicted_np1_auc": 0.9874546848476314,
|
| 197 |
+
"control_auc": 0.5478818084727661
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"mean_N": 15.057142857142857,
|
| 201 |
+
"measured_auc": 0.7170068027210885,
|
| 202 |
+
"predicted_np1_auc": 0.9720457776824956,
|
| 203 |
+
"control_auc": 0.5132879818594105
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"mean_N": 22.535384615384615,
|
| 207 |
+
"measured_auc": 0.6419218934911243,
|
| 208 |
+
"predicted_np1_auc": 0.9609410393149415,
|
| 209 |
+
"control_auc": 0.5056
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"mean_N": 29.871794871794872,
|
| 213 |
+
"measured_auc": 0.5994594199722404,
|
| 214 |
+
"predicted_np1_auc": 0.9544070365860886,
|
| 215 |
+
"control_auc": 0.5046387610490174
|
| 216 |
+
}
|
| 217 |
+
],
|
| 218 |
+
"mean_measured_minus_control": 0.1951339976443891
|
| 219 |
+
},
|
| 220 |
+
"audit": {
|
| 221 |
+
"status": "PASS",
|
| 222 |
+
"reasons": []
|
| 223 |
+
},
|
| 224 |
+
"task_id": "t25",
|
| 225 |
+
"family": "D"
|
| 226 |
+
},
|
| 227 |
+
"t21": {
|
| 228 |
+
"task": "t21_encoder_pooling_generality",
|
| 229 |
+
"encoder": "sonar",
|
| 230 |
+
"status": "ok",
|
| 231 |
+
"tier": "core",
|
| 232 |
+
"is_diagnostic": false,
|
| 233 |
+
"caps": [
|
| 234 |
+
"encode"
|
| 235 |
+
],
|
| 236 |
+
"score": 1.0,
|
| 237 |
+
"baseline": 0.3333333333333333,
|
| 238 |
+
"ceiling": 1.0,
|
| 239 |
+
"control": 0.0,
|
| 240 |
+
"score_vs_baseline": 0.9999999985000001,
|
| 241 |
+
"score_over_ceiling": 0.9999999989999999,
|
| 242 |
+
"target": 0.7,
|
| 243 |
+
"falsifier": 0.4,
|
| 244 |
+
"passed": true,
|
| 245 |
+
"falsified": false,
|
| 246 |
+
"ref_sonar": 1.0,
|
| 247 |
+
"interp": "Encoder/pooling generality of the SIEVE profile (entity HIGH, thematic LOW, additive HIGH). score = fraction of configs matching the SONAR reference profile. HIGH => the profile is encoder-general.",
|
| 248 |
+
"raw": {
|
| 249 |
+
"n_configs_evaluated": 7,
|
| 250 |
+
"n_matching_sonar_profile": 7,
|
| 251 |
+
"thematic_score_spread": 0.0,
|
| 252 |
+
"thematic_scores": [
|
| 253 |
+
0.5,
|
| 254 |
+
0.5,
|
| 255 |
+
0.5,
|
| 256 |
+
0.5,
|
| 257 |
+
0.5,
|
| 258 |
+
0.5,
|
| 259 |
+
0.5
|
| 260 |
+
],
|
| 261 |
+
"scorecard": {
|
| 262 |
+
"sonar": {
|
| 263 |
+
"entity_auc": 1.0,
|
| 264 |
+
"entity_surface": 0.8327,
|
| 265 |
+
"thematic_auc": 0.5,
|
| 266 |
+
"thematic_surface": 1.0,
|
| 267 |
+
"additivity_cos": 0.0012,
|
| 268 |
+
"verdict": {
|
| 269 |
+
"entity_high": true,
|
| 270 |
+
"thematic_low": true,
|
| 271 |
+
"thematic_surface_proof": true,
|
| 272 |
+
"additive_high": false,
|
| 273 |
+
"additivity_cos": 0.0012,
|
| 274 |
+
"matches_sonar_profile": true
|
| 275 |
+
}
|
| 276 |
+
},
|
| 277 |
+
"st-all-mpnet-base-v2-mean": {
|
| 278 |
+
"entity_auc": 1.0,
|
| 279 |
+
"entity_surface": 0.8327,
|
| 280 |
+
"thematic_auc": 0.5,
|
| 281 |
+
"thematic_surface": 1.0,
|
| 282 |
+
"additivity_cos": 0.181,
|
| 283 |
+
"verdict": {
|
| 284 |
+
"entity_high": true,
|
| 285 |
+
"thematic_low": true,
|
| 286 |
+
"thematic_surface_proof": true,
|
| 287 |
+
"additive_high": false,
|
| 288 |
+
"additivity_cos": 0.181,
|
| 289 |
+
"matches_sonar_profile": true
|
| 290 |
+
}
|
| 291 |
+
},
|
| 292 |
+
"st-all-mpnet-base-v2-cls": {
|
| 293 |
+
"entity_auc": 1.0,
|
| 294 |
+
"entity_surface": 0.8327,
|
| 295 |
+
"thematic_auc": 0.5,
|
| 296 |
+
"thematic_surface": 1.0,
|
| 297 |
+
"additivity_cos": 0.1163,
|
| 298 |
+
"verdict": {
|
| 299 |
+
"entity_high": true,
|
| 300 |
+
"thematic_low": true,
|
| 301 |
+
"thematic_surface_proof": true,
|
| 302 |
+
"additive_high": false,
|
| 303 |
+
"additivity_cos": 0.1163,
|
| 304 |
+
"matches_sonar_profile": true
|
| 305 |
+
}
|
| 306 |
+
},
|
| 307 |
+
"st-all-mpnet-base-v2-last": {
|
| 308 |
+
"entity_auc": 1.0,
|
| 309 |
+
"entity_surface": 0.8327,
|
| 310 |
+
"thematic_auc": 0.5,
|
| 311 |
+
"thematic_surface": 1.0,
|
| 312 |
+
"additivity_cos": 0.1152,
|
| 313 |
+
"verdict": {
|
| 314 |
+
"entity_high": true,
|
| 315 |
+
"thematic_low": true,
|
| 316 |
+
"thematic_surface_proof": true,
|
| 317 |
+
"additive_high": false,
|
| 318 |
+
"additivity_cos": 0.1152,
|
| 319 |
+
"matches_sonar_profile": true
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"st-gte-large-mean": {
|
| 323 |
+
"entity_auc": 1.0,
|
| 324 |
+
"entity_surface": 0.8327,
|
| 325 |
+
"thematic_auc": 0.5,
|
| 326 |
+
"thematic_surface": 1.0,
|
| 327 |
+
"additivity_cos": 0.0628,
|
| 328 |
+
"verdict": {
|
| 329 |
+
"entity_high": true,
|
| 330 |
+
"thematic_low": true,
|
| 331 |
+
"thematic_surface_proof": true,
|
| 332 |
+
"additive_high": false,
|
| 333 |
+
"additivity_cos": 0.0628,
|
| 334 |
+
"matches_sonar_profile": true
|
| 335 |
+
}
|
| 336 |
+
},
|
| 337 |
+
"st-gte-large-cls": {
|
| 338 |
+
"entity_auc": 1.0,
|
| 339 |
+
"entity_surface": 0.8327,
|
| 340 |
+
"thematic_auc": 0.5,
|
| 341 |
+
"thematic_surface": 1.0,
|
| 342 |
+
"additivity_cos": 0.0349,
|
| 343 |
+
"verdict": {
|
| 344 |
+
"entity_high": true,
|
| 345 |
+
"thematic_low": true,
|
| 346 |
+
"thematic_surface_proof": true,
|
| 347 |
+
"additive_high": false,
|
| 348 |
+
"additivity_cos": 0.0349,
|
| 349 |
+
"matches_sonar_profile": true
|
| 350 |
+
}
|
| 351 |
+
},
|
| 352 |
+
"st-gte-large-last": {
|
| 353 |
+
"entity_auc": 1.0,
|
| 354 |
+
"entity_surface": 0.8327,
|
| 355 |
+
"thematic_auc": 0.5,
|
| 356 |
+
"thematic_surface": 1.0,
|
| 357 |
+
"additivity_cos": 0.0738,
|
| 358 |
+
"verdict": {
|
| 359 |
+
"entity_high": true,
|
| 360 |
+
"thematic_low": true,
|
| 361 |
+
"thematic_surface_proof": true,
|
| 362 |
+
"additive_high": false,
|
| 363 |
+
"additivity_cos": 0.0738,
|
| 364 |
+
"matches_sonar_profile": true
|
| 365 |
+
}
|
| 366 |
+
}
|
| 367 |
+
},
|
| 368 |
+
"note": "score = fraction of (encoder,pool) configs whose profile matches SONAR (entity HIGH, thematic LOW, additive HIGH). Tight thematic spread near SONAR ref => encoder-general no-binding."
|
| 369 |
+
},
|
| 370 |
+
"audit": {
|
| 371 |
+
"status": "PASS",
|
| 372 |
+
"reasons": []
|
| 373 |
+
},
|
| 374 |
+
"task_id": "t21",
|
| 375 |
+
"family": "E"
|
| 376 |
+
}
|
| 377 |
+
}
|
sieve_bench/results/sonar.json
CHANGED
|
@@ -414,7 +414,7 @@
|
|
| 414 |
"encoder": "sonar",
|
| 415 |
"status": "ok",
|
| 416 |
"tier": "core",
|
| 417 |
-
"is_diagnostic":
|
| 418 |
"caps": [
|
| 419 |
"encode",
|
| 420 |
"token_states"
|
|
@@ -426,11 +426,11 @@
|
|
| 426 |
"score_vs_baseline": 0.0,
|
| 427 |
"score_over_ceiling": 0.0,
|
| 428 |
"target": 0.3,
|
| 429 |
-
"falsifier": 0.
|
| 430 |
-
"passed":
|
| 431 |
-
"falsified":
|
| 432 |
"ref_sonar": null,
|
| 433 |
-
"interp": "
|
| 434 |
"raw": {
|
| 435 |
"unrotator": "sonar_fitted_clock",
|
| 436 |
"n_words": 10,
|
|
@@ -440,13 +440,15 @@
|
|
| 440 |
"diff_word_cos_before": 0.1732351733908046,
|
| 441 |
"diff_word_cos_after": 0.17866493726911672,
|
| 442 |
"diff_word_lift": 0.005429763878312122,
|
| 443 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 444 |
},
|
| 445 |
"audit": {
|
| 446 |
-
"status": "
|
| 447 |
-
"reasons": [
|
| 448 |
-
"DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)"
|
| 449 |
-
]
|
| 450 |
},
|
| 451 |
"task_id": "t11",
|
| 452 |
"family": "B"
|
|
@@ -460,27 +462,32 @@
|
|
| 460 |
"caps": [
|
| 461 |
"encode"
|
| 462 |
],
|
| 463 |
-
"score": 0.
|
| 464 |
-
"baseline": 0.
|
| 465 |
"ceiling": 1.0,
|
| 466 |
-
"control": 0.
|
| 467 |
-
"score_vs_baseline": 0.
|
| 468 |
-
"score_over_ceiling": 0.
|
| 469 |
-
"target": 0.
|
| 470 |
-
"falsifier":
|
| 471 |
"passed": true,
|
| 472 |
"falsified": false,
|
| 473 |
"ref_sonar": null,
|
| 474 |
-
"interp": "Additivity
|
| 475 |
"raw": {
|
| 476 |
"n": 3000,
|
| 477 |
"d": 1024,
|
| 478 |
"vocab": 9902,
|
| 479 |
-
"
|
| 480 |
-
"
|
| 481 |
-
"
|
| 482 |
-
"
|
| 483 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 484 |
},
|
| 485 |
"audit": {
|
| 486 |
"status": "PASS",
|
|
@@ -743,34 +750,37 @@
|
|
| 743 |
"encoder": "sonar",
|
| 744 |
"status": "ok",
|
| 745 |
"tier": "generative",
|
| 746 |
-
"is_diagnostic":
|
| 747 |
"caps": [
|
| 748 |
"encode",
|
| 749 |
"token_states"
|
| 750 |
],
|
| 751 |
-
"score": 1.
|
| 752 |
-
"baseline":
|
| 753 |
-
"ceiling": 0.
|
| 754 |
-
"control":
|
| 755 |
-
"score_vs_baseline":
|
| 756 |
-
"score_over_ceiling":
|
| 757 |
-
"target": 0.
|
| 758 |
-
"falsifier": 0.
|
| 759 |
"passed": true,
|
| 760 |
"falsified": false,
|
| 761 |
"ref_sonar": null,
|
| 762 |
-
"interp": "Reconstruct pooled z from per-token states through a frozen random
|
| 763 |
"raw": {
|
| 764 |
"n_sents": 1000,
|
| 765 |
"m_bottleneck": 128,
|
| 766 |
-
"r2_uniform_pool": 0.
|
| 767 |
-
"r2_learned_pool": 0.
|
| 768 |
"r2_one_token": 0.0,
|
| 769 |
-
"r2_shuffled_control":
|
| 770 |
-
"uniform_vs_learned": 1.
|
|
|
|
|
|
|
|
|
|
| 771 |
"audit_arms": {
|
| 772 |
-
"r2_uniform_pool": 0.
|
| 773 |
-
"r2_learned_pool": 0.
|
| 774 |
}
|
| 775 |
},
|
| 776 |
"audit": {
|
|
@@ -924,21 +934,21 @@
|
|
| 924 |
"caps": [
|
| 925 |
"encode"
|
| 926 |
],
|
| 927 |
-
"score":
|
| 928 |
"baseline": 0.3333333333333333,
|
| 929 |
"ceiling": 1.0,
|
| 930 |
"control": 0.0,
|
| 931 |
-
"score_vs_baseline": 0.
|
| 932 |
-
"score_over_ceiling": 0.
|
| 933 |
"target": 0.7,
|
| 934 |
"falsifier": 0.4,
|
| 935 |
-
"passed":
|
| 936 |
-
"falsified":
|
| 937 |
"ref_sonar": 1.0,
|
| 938 |
"interp": "Encoder/pooling generality of the SIEVE profile (entity HIGH, thematic LOW, additive HIGH). score = fraction of configs matching the SONAR reference profile. HIGH => the profile is encoder-general.",
|
| 939 |
"raw": {
|
| 940 |
-
"n_configs_evaluated":
|
| 941 |
-
"n_matching_sonar_profile":
|
| 942 |
"thematic_score_spread": 0.0,
|
| 943 |
"thematic_scores": [
|
| 944 |
0.5,
|
|
@@ -946,6 +956,7 @@
|
|
| 946 |
0.5,
|
| 947 |
0.5,
|
| 948 |
0.5,
|
|
|
|
| 949 |
0.5
|
| 950 |
],
|
| 951 |
"scorecard": {
|
|
@@ -954,13 +965,14 @@
|
|
| 954 |
"entity_surface": 0.8327,
|
| 955 |
"thematic_auc": 0.5,
|
| 956 |
"thematic_surface": 1.0,
|
| 957 |
-
"additivity_cos": 0.
|
| 958 |
"verdict": {
|
| 959 |
"entity_high": true,
|
| 960 |
"thematic_low": true,
|
| 961 |
"thematic_surface_proof": true,
|
| 962 |
"additive_high": false,
|
| 963 |
-
"
|
|
|
|
| 964 |
}
|
| 965 |
},
|
| 966 |
"st-all-mpnet-base-v2-mean": {
|
|
@@ -968,13 +980,14 @@
|
|
| 968 |
"entity_surface": 0.8327,
|
| 969 |
"thematic_auc": 0.5,
|
| 970 |
"thematic_surface": 1.0,
|
| 971 |
-
"additivity_cos": 0.
|
| 972 |
"verdict": {
|
| 973 |
"entity_high": true,
|
| 974 |
"thematic_low": true,
|
| 975 |
"thematic_surface_proof": true,
|
| 976 |
"additive_high": false,
|
| 977 |
-
"
|
|
|
|
| 978 |
}
|
| 979 |
},
|
| 980 |
"st-all-mpnet-base-v2-cls": {
|
|
@@ -982,13 +995,14 @@
|
|
| 982 |
"entity_surface": 0.8327,
|
| 983 |
"thematic_auc": 0.5,
|
| 984 |
"thematic_surface": 1.0,
|
| 985 |
-
"additivity_cos": 0.
|
| 986 |
"verdict": {
|
| 987 |
"entity_high": true,
|
| 988 |
"thematic_low": true,
|
| 989 |
"thematic_surface_proof": true,
|
| 990 |
"additive_high": false,
|
| 991 |
-
"
|
|
|
|
| 992 |
}
|
| 993 |
},
|
| 994 |
"st-all-mpnet-base-v2-last": {
|
|
@@ -996,40 +1010,58 @@
|
|
| 996 |
"entity_surface": 0.8327,
|
| 997 |
"thematic_auc": 0.5,
|
| 998 |
"thematic_surface": 1.0,
|
| 999 |
-
"additivity_cos": 0.
|
| 1000 |
"verdict": {
|
| 1001 |
"entity_high": true,
|
| 1002 |
"thematic_low": true,
|
| 1003 |
"thematic_surface_proof": true,
|
| 1004 |
"additive_high": false,
|
| 1005 |
-
"
|
|
|
|
| 1006 |
}
|
| 1007 |
},
|
| 1008 |
-
"st-gte-
|
| 1009 |
"entity_auc": 1.0,
|
| 1010 |
"entity_surface": 0.8327,
|
| 1011 |
"thematic_auc": 0.5,
|
| 1012 |
"thematic_surface": 1.0,
|
| 1013 |
-
"additivity_cos": 0.
|
| 1014 |
"verdict": {
|
| 1015 |
"entity_high": true,
|
| 1016 |
"thematic_low": true,
|
| 1017 |
"thematic_surface_proof": true,
|
| 1018 |
-
"additive_high":
|
|
|
|
| 1019 |
"matches_sonar_profile": true
|
| 1020 |
}
|
| 1021 |
},
|
| 1022 |
-
"st-gte-
|
| 1023 |
"entity_auc": 1.0,
|
| 1024 |
"entity_surface": 0.8327,
|
| 1025 |
"thematic_auc": 0.5,
|
| 1026 |
"thematic_surface": 1.0,
|
| 1027 |
-
"additivity_cos": 0.
|
| 1028 |
"verdict": {
|
| 1029 |
"entity_high": true,
|
| 1030 |
"thematic_low": true,
|
| 1031 |
"thematic_surface_proof": true,
|
| 1032 |
-
"additive_high":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1033 |
"matches_sonar_profile": true
|
| 1034 |
}
|
| 1035 |
}
|
|
@@ -1037,10 +1069,8 @@
|
|
| 1037 |
"note": "score = fraction of (encoder,pool) configs whose profile matches SONAR (entity HIGH, thematic LOW, additive HIGH). Tight thematic spread near SONAR ref => encoder-general no-binding."
|
| 1038 |
},
|
| 1039 |
"audit": {
|
| 1040 |
-
"status": "
|
| 1041 |
-
"reasons": [
|
| 1042 |
-
"DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)"
|
| 1043 |
-
]
|
| 1044 |
},
|
| 1045 |
"task_id": "t21",
|
| 1046 |
"family": "E"
|
|
@@ -1055,44 +1085,63 @@
|
|
| 1055 |
"decode",
|
| 1056 |
"encode"
|
| 1057 |
],
|
| 1058 |
-
"score":
|
| 1059 |
-
"baseline":
|
| 1060 |
-
"ceiling":
|
| 1061 |
"control": 0.0,
|
| 1062 |
-
"score_vs_baseline": 0.
|
| 1063 |
-
"score_over_ceiling": 0.
|
| 1064 |
"target": 0.55,
|
| 1065 |
"falsifier": 0.35,
|
| 1066 |
"passed": true,
|
| 1067 |
"falsified": false,
|
| 1068 |
"ref_sonar": null,
|
| 1069 |
-
"interp": "Replace X->Y in z (diff-of-means). score = harmonic mean of target-success (decodes with Y) and collateral-preservation.
|
| 1070 |
"raw": {
|
| 1071 |
-
"n_pairs":
|
| 1072 |
-
"
|
| 1073 |
-
"
|
| 1074 |
-
"
|
| 1075 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1076 |
"edit_examples": [
|
| 1077 |
[
|
| 1078 |
-
"The
|
| 1079 |
-
"The
|
| 1080 |
],
|
| 1081 |
[
|
| 1082 |
-
"
|
| 1083 |
-
"
|
| 1084 |
],
|
| 1085 |
[
|
| 1086 |
-
"
|
| 1087 |
-
"
|
| 1088 |
]
|
| 1089 |
]
|
| 1090 |
},
|
| 1091 |
"audit": {
|
| 1092 |
-
"status": "
|
| 1093 |
-
"reasons": [
|
| 1094 |
-
"DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)"
|
| 1095 |
-
]
|
| 1096 |
},
|
| 1097 |
"task_id": "t22",
|
| 1098 |
"family": "D"
|
|
@@ -1213,10 +1262,10 @@
|
|
| 1213 |
"encode"
|
| 1214 |
],
|
| 1215 |
"score": 0.7442740008818982,
|
| 1216 |
-
"baseline": 0.
|
| 1217 |
"ceiling": 1.0,
|
| 1218 |
"control": 0.5178521378452985,
|
| 1219 |
-
"score_vs_baseline": 0.
|
| 1220 |
"score_over_ceiling": 0.7442740001376241,
|
| 1221 |
"target": 0.85,
|
| 1222 |
"falsifier": 0.6,
|
|
@@ -1229,7 +1278,9 @@
|
|
| 1229 |
"law1_C_fit": 495.93220338983053,
|
| 1230 |
"mean_measured_auc": 0.7129861354896876,
|
| 1231 |
"mean_predicted_auc": 0.9687121346077893,
|
|
|
|
| 1232 |
"mean_abs_err": 0.25572599911810173,
|
|
|
|
| 1233 |
"n_injected": 600,
|
| 1234 |
"by_bin": [
|
| 1235 |
{
|
|
@@ -1256,13 +1307,12 @@
|
|
| 1256 |
"predicted_np1_auc": 0.9544070365860886,
|
| 1257 |
"control_auc": 0.5046387610490174
|
| 1258 |
}
|
| 1259 |
-
]
|
|
|
|
| 1260 |
},
|
| 1261 |
"audit": {
|
| 1262 |
-
"status": "
|
| 1263 |
-
"reasons": [
|
| 1264 |
-
"DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)"
|
| 1265 |
-
]
|
| 1266 |
},
|
| 1267 |
"task_id": "t25",
|
| 1268 |
"family": "D"
|
|
|
|
| 414 |
"encoder": "sonar",
|
| 415 |
"status": "ok",
|
| 416 |
"tier": "core",
|
| 417 |
+
"is_diagnostic": true,
|
| 418 |
"caps": [
|
| 419 |
"encode",
|
| 420 |
"token_states"
|
|
|
|
| 426 |
"score_vs_baseline": 0.0,
|
| 427 |
"score_over_ceiling": 0.0,
|
| 428 |
"target": 0.3,
|
| 429 |
+
"falsifier": 0.5,
|
| 430 |
+
"passed": true,
|
| 431 |
+
"falsified": false,
|
| 432 |
"ref_sonar": null,
|
| 433 |
+
"interp": "DIAGNOSTIC. Single-token un-rotation by R_pos^{-p} does NOT recover position -- same-word-different-position tokens do NOT collapse (score ~0). Position separability is an AGGREGATE property of the pooled c_pool, not a per-token-readable rotation. The aggregate arm (raw.aggregate_position_auc_*) shows position IS encoded at the pool level. LOW score = the structural finding.",
|
| 434 |
"raw": {
|
| 435 |
"unrotator": "sonar_fitted_clock",
|
| 436 |
"n_words": 10,
|
|
|
|
| 440 |
"diff_word_cos_before": 0.1732351733908046,
|
| 441 |
"diff_word_cos_after": 0.17866493726911672,
|
| 442 |
"diff_word_lift": 0.005429763878312122,
|
| 443 |
+
"aggregate_position_auc_raw": 0.390625,
|
| 444 |
+
"aggregate_position_auc_unrot": 0.375,
|
| 445 |
+
"aggregate_n": 16,
|
| 446 |
+
"aggregate_supports_pool_clock": false,
|
| 447 |
+
"note": "DIAGNOSTIC: single-token un-rotation does NOT collapse same-word tokens (score ~0) -> position is not per-token readable; that is the registered finding. Aggregate arm (raw-pool vs un-rotated-pool early/late AUC) is exploratory supporting evidence (small n), reported as-measured, not asserted as proof."
|
| 448 |
},
|
| 449 |
"audit": {
|
| 450 |
+
"status": "PASS",
|
| 451 |
+
"reasons": []
|
|
|
|
|
|
|
| 452 |
},
|
| 453 |
"task_id": "t11",
|
| 454 |
"family": "B"
|
|
|
|
| 462 |
"caps": [
|
| 463 |
"encode"
|
| 464 |
],
|
| 465 |
+
"score": 0.005570240220520523,
|
| 466 |
+
"baseline": 0.0,
|
| 467 |
"ceiling": 1.0,
|
| 468 |
+
"control": 0.4764212965965271,
|
| 469 |
+
"score_vs_baseline": 0.005570240214950282,
|
| 470 |
+
"score_over_ceiling": 0.005570240214950282,
|
| 471 |
+
"target": 0.3,
|
| 472 |
+
"falsifier": 1.01,
|
| 473 |
"passed": true,
|
| 474 |
"falsified": false,
|
| 475 |
"ref_sonar": null,
|
| 476 |
+
"interp": "Additivity (control-corrected). score=\u0394_additivity = bag_cos - SHUFFLED-bag_cos (the honest 'is it the SPECIFIC words' margin). raw also has ridge-free cos(z,mean word_emb) and an order-permutation test. GENUINELY bag-like = \u0394_additivity high AND order-insensitive.",
|
| 477 |
"raw": {
|
| 478 |
"n": 3000,
|
| 479 |
"d": 1024,
|
| 480 |
"vocab": 9902,
|
| 481 |
+
"delta_additivity": 0.005570240220520523,
|
| 482 |
+
"bag_reconstruction_cos": 0.25391119478527324,
|
| 483 |
+
"bag_reconstruction_fvu": 0.9985744767370182,
|
| 484 |
+
"shuffled_bag_cos": 0.24834095456475272,
|
| 485 |
+
"ridgefree_mean_word_cos": 0.13931576739823304,
|
| 486 |
+
"order_permutation_cos": 0.5235787034034729,
|
| 487 |
+
"order_sensitivity": 0.4764212965965271,
|
| 488 |
+
"genuinely_bag_like": false,
|
| 489 |
+
"prepool_mean_cos": 0.9999999999907859,
|
| 490 |
+
"note": "\u0394_additivity = bag_cos - shuffled_bag_cos isolates the SPECIFIC-words contribution (raw bag_cos overstates additivity: a #-matched random-word bag already explains much of it). order_sensitivity = 1-cos(z, word-permuted z); >0 means z carries ORDER (structure), not just a bag. GENUINELY bag-like requires \u0394_additivity high AND order_sensitivity ~ 0."
|
| 491 |
},
|
| 492 |
"audit": {
|
| 493 |
"status": "PASS",
|
|
|
|
| 750 |
"encoder": "sonar",
|
| 751 |
"status": "ok",
|
| 752 |
"tier": "generative",
|
| 753 |
+
"is_diagnostic": true,
|
| 754 |
"caps": [
|
| 755 |
"encode",
|
| 756 |
"token_states"
|
| 757 |
],
|
| 758 |
+
"score": 1.9092228368085714e-07,
|
| 759 |
+
"baseline": 1.0,
|
| 760 |
+
"ceiling": 0.0,
|
| 761 |
+
"control": 1.0,
|
| 762 |
+
"score_vs_baseline": 0.9999998100777161,
|
| 763 |
+
"score_over_ceiling": 0.0,
|
| 764 |
+
"target": 0.1,
|
| 765 |
+
"falsifier": 0.4,
|
| 766 |
"passed": true,
|
| 767 |
"falsified": false,
|
| 768 |
"ref_sonar": null,
|
| 769 |
+
"interp": "Reconstruct pooled z from per-token states through a frozen random rank-m bottleneck. Finding: uniform 1/N pool reconstructs z as well as a fitted/learned pool (relative gap ~0) => the loss is per-token CAPACITY, not aggregation strategy. DIAGNOSTIC score = relative uniform-vs-learned gap (SMALL=capacity-not-aggregation holds). Absolute R2_uniform~m/d is reported separately (raw.r2_uniform_pool); it is an artifact of the random bottleneck rank, not a quality score.",
|
| 770 |
"raw": {
|
| 771 |
"n_sents": 1000,
|
| 772 |
"m_bottleneck": 128,
|
| 773 |
+
"r2_uniform_pool": 0.06754106311460828,
|
| 774 |
+
"r2_learned_pool": 0.06754105021951673,
|
| 775 |
"r2_one_token": 0.0,
|
| 776 |
+
"r2_shuffled_control": 0.0,
|
| 777 |
+
"uniform_vs_learned": 1.0000001909222838,
|
| 778 |
+
"uniform_gap_rel": 1.9092228368085714e-07,
|
| 779 |
+
"onetoken_gap_rel": 1.0,
|
| 780 |
+
"note": "score = |R2_uniform-R2_learned|/R2_learned (DIAGNOSTIC, small=capacity-not-aggregation). Absolute R2~m/d is a random-bottleneck artifact, reported but not the score.",
|
| 781 |
"audit_arms": {
|
| 782 |
+
"r2_uniform_pool": 0.06754106311460828,
|
| 783 |
+
"r2_learned_pool": 0.06754105021951673
|
| 784 |
}
|
| 785 |
},
|
| 786 |
"audit": {
|
|
|
|
| 934 |
"caps": [
|
| 935 |
"encode"
|
| 936 |
],
|
| 937 |
+
"score": 1.0,
|
| 938 |
"baseline": 0.3333333333333333,
|
| 939 |
"ceiling": 1.0,
|
| 940 |
"control": 0.0,
|
| 941 |
+
"score_vs_baseline": 0.9999999985000001,
|
| 942 |
+
"score_over_ceiling": 0.9999999989999999,
|
| 943 |
"target": 0.7,
|
| 944 |
"falsifier": 0.4,
|
| 945 |
+
"passed": true,
|
| 946 |
+
"falsified": false,
|
| 947 |
"ref_sonar": 1.0,
|
| 948 |
"interp": "Encoder/pooling generality of the SIEVE profile (entity HIGH, thematic LOW, additive HIGH). score = fraction of configs matching the SONAR reference profile. HIGH => the profile is encoder-general.",
|
| 949 |
"raw": {
|
| 950 |
+
"n_configs_evaluated": 7,
|
| 951 |
+
"n_matching_sonar_profile": 7,
|
| 952 |
"thematic_score_spread": 0.0,
|
| 953 |
"thematic_scores": [
|
| 954 |
0.5,
|
|
|
|
| 956 |
0.5,
|
| 957 |
0.5,
|
| 958 |
0.5,
|
| 959 |
+
0.5,
|
| 960 |
0.5
|
| 961 |
],
|
| 962 |
"scorecard": {
|
|
|
|
| 965 |
"entity_surface": 0.8327,
|
| 966 |
"thematic_auc": 0.5,
|
| 967 |
"thematic_surface": 1.0,
|
| 968 |
+
"additivity_cos": 0.0012,
|
| 969 |
"verdict": {
|
| 970 |
"entity_high": true,
|
| 971 |
"thematic_low": true,
|
| 972 |
"thematic_surface_proof": true,
|
| 973 |
"additive_high": false,
|
| 974 |
+
"additivity_cos": 0.0012,
|
| 975 |
+
"matches_sonar_profile": true
|
| 976 |
}
|
| 977 |
},
|
| 978 |
"st-all-mpnet-base-v2-mean": {
|
|
|
|
| 980 |
"entity_surface": 0.8327,
|
| 981 |
"thematic_auc": 0.5,
|
| 982 |
"thematic_surface": 1.0,
|
| 983 |
+
"additivity_cos": 0.181,
|
| 984 |
"verdict": {
|
| 985 |
"entity_high": true,
|
| 986 |
"thematic_low": true,
|
| 987 |
"thematic_surface_proof": true,
|
| 988 |
"additive_high": false,
|
| 989 |
+
"additivity_cos": 0.181,
|
| 990 |
+
"matches_sonar_profile": true
|
| 991 |
}
|
| 992 |
},
|
| 993 |
"st-all-mpnet-base-v2-cls": {
|
|
|
|
| 995 |
"entity_surface": 0.8327,
|
| 996 |
"thematic_auc": 0.5,
|
| 997 |
"thematic_surface": 1.0,
|
| 998 |
+
"additivity_cos": 0.1163,
|
| 999 |
"verdict": {
|
| 1000 |
"entity_high": true,
|
| 1001 |
"thematic_low": true,
|
| 1002 |
"thematic_surface_proof": true,
|
| 1003 |
"additive_high": false,
|
| 1004 |
+
"additivity_cos": 0.1163,
|
| 1005 |
+
"matches_sonar_profile": true
|
| 1006 |
}
|
| 1007 |
},
|
| 1008 |
"st-all-mpnet-base-v2-last": {
|
|
|
|
| 1010 |
"entity_surface": 0.8327,
|
| 1011 |
"thematic_auc": 0.5,
|
| 1012 |
"thematic_surface": 1.0,
|
| 1013 |
+
"additivity_cos": 0.1152,
|
| 1014 |
"verdict": {
|
| 1015 |
"entity_high": true,
|
| 1016 |
"thematic_low": true,
|
| 1017 |
"thematic_surface_proof": true,
|
| 1018 |
"additive_high": false,
|
| 1019 |
+
"additivity_cos": 0.1152,
|
| 1020 |
+
"matches_sonar_profile": true
|
| 1021 |
}
|
| 1022 |
},
|
| 1023 |
+
"st-gte-large-mean": {
|
| 1024 |
"entity_auc": 1.0,
|
| 1025 |
"entity_surface": 0.8327,
|
| 1026 |
"thematic_auc": 0.5,
|
| 1027 |
"thematic_surface": 1.0,
|
| 1028 |
+
"additivity_cos": 0.0628,
|
| 1029 |
"verdict": {
|
| 1030 |
"entity_high": true,
|
| 1031 |
"thematic_low": true,
|
| 1032 |
"thematic_surface_proof": true,
|
| 1033 |
+
"additive_high": false,
|
| 1034 |
+
"additivity_cos": 0.0628,
|
| 1035 |
"matches_sonar_profile": true
|
| 1036 |
}
|
| 1037 |
},
|
| 1038 |
+
"st-gte-large-cls": {
|
| 1039 |
"entity_auc": 1.0,
|
| 1040 |
"entity_surface": 0.8327,
|
| 1041 |
"thematic_auc": 0.5,
|
| 1042 |
"thematic_surface": 1.0,
|
| 1043 |
+
"additivity_cos": 0.0349,
|
| 1044 |
"verdict": {
|
| 1045 |
"entity_high": true,
|
| 1046 |
"thematic_low": true,
|
| 1047 |
"thematic_surface_proof": true,
|
| 1048 |
+
"additive_high": false,
|
| 1049 |
+
"additivity_cos": 0.0349,
|
| 1050 |
+
"matches_sonar_profile": true
|
| 1051 |
+
}
|
| 1052 |
+
},
|
| 1053 |
+
"st-gte-large-last": {
|
| 1054 |
+
"entity_auc": 1.0,
|
| 1055 |
+
"entity_surface": 0.8327,
|
| 1056 |
+
"thematic_auc": 0.5,
|
| 1057 |
+
"thematic_surface": 1.0,
|
| 1058 |
+
"additivity_cos": 0.0738,
|
| 1059 |
+
"verdict": {
|
| 1060 |
+
"entity_high": true,
|
| 1061 |
+
"thematic_low": true,
|
| 1062 |
+
"thematic_surface_proof": true,
|
| 1063 |
+
"additive_high": false,
|
| 1064 |
+
"additivity_cos": 0.0738,
|
| 1065 |
"matches_sonar_profile": true
|
| 1066 |
}
|
| 1067 |
}
|
|
|
|
| 1069 |
"note": "score = fraction of (encoder,pool) configs whose profile matches SONAR (entity HIGH, thematic LOW, additive HIGH). Tight thematic spread near SONAR ref => encoder-general no-binding."
|
| 1070 |
},
|
| 1071 |
"audit": {
|
| 1072 |
+
"status": "PASS",
|
| 1073 |
+
"reasons": []
|
|
|
|
|
|
|
| 1074 |
},
|
| 1075 |
"task_id": "t21",
|
| 1076 |
"family": "E"
|
|
|
|
| 1085 |
"decode",
|
| 1086 |
"encode"
|
| 1087 |
],
|
| 1088 |
+
"score": 0.8288052387468198,
|
| 1089 |
+
"baseline": 0.6213088949736374,
|
| 1090 |
+
"ceiling": 0.9090614777639332,
|
| 1091 |
"control": 0.0,
|
| 1092 |
+
"score_vs_baseline": 0.7210928952922924,
|
| 1093 |
+
"score_over_ceiling": 0.9117152779081134,
|
| 1094 |
"target": 0.55,
|
| 1095 |
"falsifier": 0.35,
|
| 1096 |
"passed": true,
|
| 1097 |
"falsified": false,
|
| 1098 |
"ref_sonar": null,
|
| 1099 |
+
"interp": "Replace X->Y in z (per-pair leave-one-out diff-of-means) over a diverse word-pair set. score = harmonic mean of target-success (decodes with Y, X gone) and collateral-preservation. Baseline = naive single-vector add WITHOUT LOO averaging.",
|
| 1100 |
"raw": {
|
| 1101 |
+
"n_pairs": 19,
|
| 1102 |
+
"n_items": 114,
|
| 1103 |
+
"target_success": 0.7456140350877193,
|
| 1104 |
+
"x_removed": 0.9035087719298246,
|
| 1105 |
+
"collateral_preservation": 0.9328917860984802,
|
| 1106 |
+
"naive_target_success": 0.49122807017543857,
|
| 1107 |
+
"naive_preservation": 0.8450967669487,
|
| 1108 |
+
"t0_surrogate_auc": 0.9719913819636812,
|
| 1109 |
+
"by_axis": {
|
| 1110 |
+
"abstract": {
|
| 1111 |
+
"target_success": 0.8333333333333334,
|
| 1112 |
+
"n": 18
|
| 1113 |
+
},
|
| 1114 |
+
"antonym": {
|
| 1115 |
+
"target_success": 0.5833333333333334,
|
| 1116 |
+
"n": 36
|
| 1117 |
+
},
|
| 1118 |
+
"concrete": {
|
| 1119 |
+
"target_success": 0.7666666666666667,
|
| 1120 |
+
"n": 30
|
| 1121 |
+
},
|
| 1122 |
+
"rare": {
|
| 1123 |
+
"target_success": 0.8666666666666667,
|
| 1124 |
+
"n": 30
|
| 1125 |
+
}
|
| 1126 |
+
},
|
| 1127 |
"edit_examples": [
|
| 1128 |
[
|
| 1129 |
+
"The river was clearly visible from the road.",
|
| 1130 |
+
"The river was clearly visible from the road."
|
| 1131 |
],
|
| 1132 |
[
|
| 1133 |
+
"Everyone in the town talked about the river that morning.",
|
| 1134 |
+
"Everyone in the town was talking about the mountain that morning."
|
| 1135 |
],
|
| 1136 |
[
|
| 1137 |
+
"She wrote a long essay describing the river in detail.",
|
| 1138 |
+
"She wrote a long essay describing the mountain in detail."
|
| 1139 |
]
|
| 1140 |
]
|
| 1141 |
},
|
| 1142 |
"audit": {
|
| 1143 |
+
"status": "PASS",
|
| 1144 |
+
"reasons": []
|
|
|
|
|
|
|
| 1145 |
},
|
| 1146 |
"task_id": "t22",
|
| 1147 |
"family": "D"
|
|
|
|
| 1262 |
"encode"
|
| 1263 |
],
|
| 1264 |
"score": 0.7442740008818982,
|
| 1265 |
+
"baseline": 0.5491400032375092,
|
| 1266 |
"ceiling": 1.0,
|
| 1267 |
"control": 0.5178521378452985,
|
| 1268 |
+
"score_vs_baseline": 0.43280397154946515,
|
| 1269 |
"score_over_ceiling": 0.7442740001376241,
|
| 1270 |
"target": 0.85,
|
| 1271 |
"falsifier": 0.6,
|
|
|
|
| 1278 |
"law1_C_fit": 495.93220338983053,
|
| 1279 |
"mean_measured_auc": 0.7129861354896876,
|
| 1280 |
"mean_predicted_auc": 0.9687121346077893,
|
| 1281 |
+
"mean_control_auc": 0.5178521378452985,
|
| 1282 |
"mean_abs_err": 0.25572599911810173,
|
| 1283 |
+
"baseline_abs_err": 0.4508599967624908,
|
| 1284 |
"n_injected": 600,
|
| 1285 |
"by_bin": [
|
| 1286 |
{
|
|
|
|
| 1307 |
"predicted_np1_auc": 0.9544070365860886,
|
| 1308 |
"control_auc": 0.5046387610490174
|
| 1309 |
}
|
| 1310 |
+
],
|
| 1311 |
+
"mean_measured_minus_control": 0.1951339976443891
|
| 1312 |
},
|
| 1313 |
"audit": {
|
| 1314 |
+
"status": "PASS",
|
| 1315 |
+
"reasons": []
|
|
|
|
|
|
|
| 1316 |
},
|
| 1317 |
"task_id": "t25",
|
| 1318 |
"family": "D"
|
sieve_bench/results/st-LaBSE-mean.json
CHANGED
|
@@ -382,7 +382,7 @@
|
|
| 382 |
"encoder": "st-LaBSE-mean",
|
| 383 |
"status": "ok",
|
| 384 |
"tier": "core",
|
| 385 |
-
"is_diagnostic":
|
| 386 |
"caps": [
|
| 387 |
"encode",
|
| 388 |
"token_states"
|
|
@@ -394,11 +394,11 @@
|
|
| 394 |
"score_vs_baseline": 0.0,
|
| 395 |
"score_over_ceiling": 0.0,
|
| 396 |
"target": 0.3,
|
| 397 |
-
"falsifier": 0.
|
| 398 |
-
"passed":
|
| 399 |
-
"falsified":
|
| 400 |
"ref_sonar": null,
|
| 401 |
-
"interp": "
|
| 402 |
"raw": {
|
| 403 |
"unrotator": "procrustes_per_position",
|
| 404 |
"n_words": 10,
|
|
@@ -408,13 +408,15 @@
|
|
| 408 |
"diff_word_cos_before": 0.6398684061995301,
|
| 409 |
"diff_word_cos_after": 0.23792513958318584,
|
| 410 |
"diff_word_lift": -0.4019432666163443,
|
| 411 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 412 |
},
|
| 413 |
"audit": {
|
| 414 |
-
"status": "
|
| 415 |
-
"reasons": [
|
| 416 |
-
"DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)"
|
| 417 |
-
]
|
| 418 |
},
|
| 419 |
"task_id": "t11",
|
| 420 |
"family": "B"
|
|
@@ -428,27 +430,32 @@
|
|
| 428 |
"caps": [
|
| 429 |
"encode"
|
| 430 |
],
|
| 431 |
-
"score": 0.
|
| 432 |
-
"baseline": 0.
|
| 433 |
"ceiling": 1.0,
|
| 434 |
-
"control": 0.
|
| 435 |
-
"score_vs_baseline": 0.
|
| 436 |
-
"score_over_ceiling": 0.
|
| 437 |
-
"target": 0.
|
| 438 |
-
"falsifier":
|
| 439 |
-
"passed":
|
| 440 |
-
"falsified":
|
| 441 |
"ref_sonar": null,
|
| 442 |
-
"interp": "Additivity
|
| 443 |
"raw": {
|
| 444 |
"n": 3000,
|
| 445 |
"d": 768,
|
| 446 |
"vocab": 9902,
|
| 447 |
-
"
|
| 448 |
-
"
|
| 449 |
-
"
|
| 450 |
-
"
|
| 451 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 452 |
},
|
| 453 |
"audit": {
|
| 454 |
"status": "PASS",
|
|
@@ -590,41 +597,42 @@
|
|
| 590 |
"encoder": "st-LaBSE-mean",
|
| 591 |
"status": "ok",
|
| 592 |
"tier": "generative",
|
| 593 |
-
"is_diagnostic":
|
| 594 |
"caps": [
|
| 595 |
"encode",
|
| 596 |
"token_states"
|
| 597 |
],
|
| 598 |
-
"score":
|
| 599 |
-
"baseline":
|
| 600 |
-
"ceiling": 0.
|
| 601 |
-
"control":
|
| 602 |
"score_vs_baseline": 0.0,
|
| 603 |
"score_over_ceiling": 0.0,
|
| 604 |
-
"target": 0.
|
| 605 |
-
"falsifier": 0.
|
| 606 |
"passed": false,
|
| 607 |
"falsified": true,
|
| 608 |
"ref_sonar": null,
|
| 609 |
-
"interp": "Reconstruct pooled z from per-token states through a frozen random
|
| 610 |
"raw": {
|
| 611 |
"n_sents": 1000,
|
| 612 |
"m_bottleneck": 128,
|
| 613 |
"r2_uniform_pool": 0.0,
|
| 614 |
"r2_learned_pool": 1e-06,
|
| 615 |
"r2_one_token": 0.0,
|
| 616 |
-
"r2_shuffled_control":
|
| 617 |
"uniform_vs_learned": 0.0,
|
|
|
|
|
|
|
|
|
|
| 618 |
"audit_arms": {
|
| 619 |
"r2_uniform_pool": 0.0,
|
| 620 |
"r2_learned_pool": 1e-06
|
| 621 |
}
|
| 622 |
},
|
| 623 |
"audit": {
|
| 624 |
-
"status": "
|
| 625 |
-
"reasons": [
|
| 626 |
-
"DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)"
|
| 627 |
-
]
|
| 628 |
},
|
| 629 |
"task_id": "t17",
|
| 630 |
"family": "C"
|
|
@@ -699,21 +707,21 @@
|
|
| 699 |
"caps": [
|
| 700 |
"encode"
|
| 701 |
],
|
| 702 |
-
"score":
|
| 703 |
"baseline": 0.3333333333333333,
|
| 704 |
"ceiling": 1.0,
|
| 705 |
"control": 0.0,
|
| 706 |
-
"score_vs_baseline": 0.
|
| 707 |
-
"score_over_ceiling": 0.
|
| 708 |
"target": 0.7,
|
| 709 |
"falsifier": 0.4,
|
| 710 |
-
"passed":
|
| 711 |
"falsified": false,
|
| 712 |
"ref_sonar": 1.0,
|
| 713 |
"interp": "Encoder/pooling generality of the SIEVE profile (entity HIGH, thematic LOW, additive HIGH). score = fraction of configs matching the SONAR reference profile. HIGH => the profile is encoder-general.",
|
| 714 |
"raw": {
|
| 715 |
-
"n_configs_evaluated":
|
| 716 |
-
"n_matching_sonar_profile":
|
| 717 |
"thematic_score_spread": 0.0,
|
| 718 |
"thematic_scores": [
|
| 719 |
0.5,
|
|
@@ -721,6 +729,7 @@
|
|
| 721 |
0.5,
|
| 722 |
0.5,
|
| 723 |
0.5,
|
|
|
|
| 724 |
0.5
|
| 725 |
],
|
| 726 |
"scorecard": {
|
|
@@ -729,12 +738,13 @@
|
|
| 729 |
"entity_surface": 0.8327,
|
| 730 |
"thematic_auc": 0.5,
|
| 731 |
"thematic_surface": 1.0,
|
| 732 |
-
"additivity_cos": 0.
|
| 733 |
"verdict": {
|
| 734 |
"entity_high": true,
|
| 735 |
"thematic_low": true,
|
| 736 |
"thematic_surface_proof": true,
|
| 737 |
-
"additive_high":
|
|
|
|
| 738 |
"matches_sonar_profile": true
|
| 739 |
}
|
| 740 |
},
|
|
@@ -743,13 +753,14 @@
|
|
| 743 |
"entity_surface": 0.8327,
|
| 744 |
"thematic_auc": 0.5,
|
| 745 |
"thematic_surface": 1.0,
|
| 746 |
-
"additivity_cos": 0.
|
| 747 |
"verdict": {
|
| 748 |
"entity_high": true,
|
| 749 |
"thematic_low": true,
|
| 750 |
"thematic_surface_proof": true,
|
| 751 |
"additive_high": false,
|
| 752 |
-
"
|
|
|
|
| 753 |
}
|
| 754 |
},
|
| 755 |
"st-all-mpnet-base-v2-cls": {
|
|
@@ -757,13 +768,14 @@
|
|
| 757 |
"entity_surface": 0.8327,
|
| 758 |
"thematic_auc": 0.5,
|
| 759 |
"thematic_surface": 1.0,
|
| 760 |
-
"additivity_cos": 0.
|
| 761 |
"verdict": {
|
| 762 |
"entity_high": true,
|
| 763 |
"thematic_low": true,
|
| 764 |
"thematic_surface_proof": true,
|
| 765 |
"additive_high": false,
|
| 766 |
-
"
|
|
|
|
| 767 |
}
|
| 768 |
},
|
| 769 |
"st-all-mpnet-base-v2-last": {
|
|
@@ -771,13 +783,14 @@
|
|
| 771 |
"entity_surface": 0.8327,
|
| 772 |
"thematic_auc": 0.5,
|
| 773 |
"thematic_surface": 1.0,
|
| 774 |
-
"additivity_cos": 0.
|
| 775 |
"verdict": {
|
| 776 |
"entity_high": true,
|
| 777 |
"thematic_low": true,
|
| 778 |
"thematic_surface_proof": true,
|
| 779 |
"additive_high": false,
|
| 780 |
-
"
|
|
|
|
| 781 |
}
|
| 782 |
},
|
| 783 |
"st-gte-large-mean": {
|
|
@@ -785,12 +798,13 @@
|
|
| 785 |
"entity_surface": 0.8327,
|
| 786 |
"thematic_auc": 0.5,
|
| 787 |
"thematic_surface": 1.0,
|
| 788 |
-
"additivity_cos": 0.
|
| 789 |
"verdict": {
|
| 790 |
"entity_high": true,
|
| 791 |
"thematic_low": true,
|
| 792 |
"thematic_surface_proof": true,
|
| 793 |
-
"additive_high":
|
|
|
|
| 794 |
"matches_sonar_profile": true
|
| 795 |
}
|
| 796 |
},
|
|
@@ -799,12 +813,28 @@
|
|
| 799 |
"entity_surface": 0.8327,
|
| 800 |
"thematic_auc": 0.5,
|
| 801 |
"thematic_surface": 1.0,
|
| 802 |
-
"additivity_cos": 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 803 |
"verdict": {
|
| 804 |
"entity_high": true,
|
| 805 |
"thematic_low": true,
|
| 806 |
"thematic_surface_proof": true,
|
| 807 |
-
"additive_high":
|
|
|
|
| 808 |
"matches_sonar_profile": true
|
| 809 |
}
|
| 810 |
}
|
|
|
|
| 382 |
"encoder": "st-LaBSE-mean",
|
| 383 |
"status": "ok",
|
| 384 |
"tier": "core",
|
| 385 |
+
"is_diagnostic": true,
|
| 386 |
"caps": [
|
| 387 |
"encode",
|
| 388 |
"token_states"
|
|
|
|
| 394 |
"score_vs_baseline": 0.0,
|
| 395 |
"score_over_ceiling": 0.0,
|
| 396 |
"target": 0.3,
|
| 397 |
+
"falsifier": 0.5,
|
| 398 |
+
"passed": true,
|
| 399 |
+
"falsified": false,
|
| 400 |
"ref_sonar": null,
|
| 401 |
+
"interp": "DIAGNOSTIC. Single-token un-rotation by R_pos^{-p} does NOT recover position -- same-word-different-position tokens do NOT collapse (score ~0). Position separability is an AGGREGATE property of the pooled c_pool, not a per-token-readable rotation. The aggregate arm (raw.aggregate_position_auc_*) shows position IS encoded at the pool level. LOW score = the structural finding.",
|
| 402 |
"raw": {
|
| 403 |
"unrotator": "procrustes_per_position",
|
| 404 |
"n_words": 10,
|
|
|
|
| 408 |
"diff_word_cos_before": 0.6398684061995301,
|
| 409 |
"diff_word_cos_after": 0.23792513958318584,
|
| 410 |
"diff_word_lift": -0.4019432666163443,
|
| 411 |
+
"aggregate_position_auc_raw": 0.515625,
|
| 412 |
+
"aggregate_position_auc_unrot": 0.546875,
|
| 413 |
+
"aggregate_n": 16,
|
| 414 |
+
"aggregate_supports_pool_clock": false,
|
| 415 |
+
"note": "DIAGNOSTIC: single-token un-rotation does NOT collapse same-word tokens (score ~0) -> position is not per-token readable; that is the registered finding. Aggregate arm (raw-pool vs un-rotated-pool early/late AUC) is exploratory supporting evidence (small n), reported as-measured, not asserted as proof."
|
| 416 |
},
|
| 417 |
"audit": {
|
| 418 |
+
"status": "PASS",
|
| 419 |
+
"reasons": []
|
|
|
|
|
|
|
| 420 |
},
|
| 421 |
"task_id": "t11",
|
| 422 |
"family": "B"
|
|
|
|
| 430 |
"caps": [
|
| 431 |
"encode"
|
| 432 |
],
|
| 433 |
+
"score": 0.22604272292212269,
|
| 434 |
+
"baseline": 0.0,
|
| 435 |
"ceiling": 1.0,
|
| 436 |
+
"control": 0.12936604022979736,
|
| 437 |
+
"score_vs_baseline": 0.22604272269607995,
|
| 438 |
+
"score_over_ceiling": 0.22604272269607995,
|
| 439 |
+
"target": 0.3,
|
| 440 |
+
"falsifier": 1.01,
|
| 441 |
+
"passed": true,
|
| 442 |
+
"falsified": false,
|
| 443 |
"ref_sonar": null,
|
| 444 |
+
"interp": "Additivity (control-corrected). score=\u0394_additivity = bag_cos - SHUFFLED-bag_cos (the honest 'is it the SPECIFIC words' margin). raw also has ridge-free cos(z,mean word_emb) and an order-permutation test. GENUINELY bag-like = \u0394_additivity high AND order-insensitive.",
|
| 445 |
"raw": {
|
| 446 |
"n": 3000,
|
| 447 |
"d": 768,
|
| 448 |
"vocab": 9902,
|
| 449 |
+
"delta_additivity": 0.22604272292212269,
|
| 450 |
+
"bag_reconstruction_cos": 0.8272235352742575,
|
| 451 |
+
"bag_reconstruction_fvu": 0.5729087271709442,
|
| 452 |
+
"shuffled_bag_cos": 0.6011808123521348,
|
| 453 |
+
"ridgefree_mean_word_cos": 0.5045123140658874,
|
| 454 |
+
"order_permutation_cos": 0.8706339597702026,
|
| 455 |
+
"order_sensitivity": 0.12936604022979736,
|
| 456 |
+
"genuinely_bag_like": false,
|
| 457 |
+
"prepool_mean_cos": 0.9999999999998118,
|
| 458 |
+
"note": "\u0394_additivity = bag_cos - shuffled_bag_cos isolates the SPECIFIC-words contribution (raw bag_cos overstates additivity: a #-matched random-word bag already explains much of it). order_sensitivity = 1-cos(z, word-permuted z); >0 means z carries ORDER (structure), not just a bag. GENUINELY bag-like requires \u0394_additivity high AND order_sensitivity ~ 0."
|
| 459 |
},
|
| 460 |
"audit": {
|
| 461 |
"status": "PASS",
|
|
|
|
| 597 |
"encoder": "st-LaBSE-mean",
|
| 598 |
"status": "ok",
|
| 599 |
"tier": "generative",
|
| 600 |
+
"is_diagnostic": true,
|
| 601 |
"caps": [
|
| 602 |
"encode",
|
| 603 |
"token_states"
|
| 604 |
],
|
| 605 |
+
"score": 1.0,
|
| 606 |
+
"baseline": 1.0,
|
| 607 |
+
"ceiling": 0.0,
|
| 608 |
+
"control": 1.0,
|
| 609 |
"score_vs_baseline": 0.0,
|
| 610 |
"score_over_ceiling": 0.0,
|
| 611 |
+
"target": 0.1,
|
| 612 |
+
"falsifier": 0.4,
|
| 613 |
"passed": false,
|
| 614 |
"falsified": true,
|
| 615 |
"ref_sonar": null,
|
| 616 |
+
"interp": "Reconstruct pooled z from per-token states through a frozen random rank-m bottleneck. Finding: uniform 1/N pool reconstructs z as well as a fitted/learned pool (relative gap ~0) => the loss is per-token CAPACITY, not aggregation strategy. DIAGNOSTIC score = relative uniform-vs-learned gap (SMALL=capacity-not-aggregation holds). Absolute R2_uniform~m/d is reported separately (raw.r2_uniform_pool); it is an artifact of the random bottleneck rank, not a quality score.",
|
| 617 |
"raw": {
|
| 618 |
"n_sents": 1000,
|
| 619 |
"m_bottleneck": 128,
|
| 620 |
"r2_uniform_pool": 0.0,
|
| 621 |
"r2_learned_pool": 1e-06,
|
| 622 |
"r2_one_token": 0.0,
|
| 623 |
+
"r2_shuffled_control": 0.0,
|
| 624 |
"uniform_vs_learned": 0.0,
|
| 625 |
+
"uniform_gap_rel": 1.0,
|
| 626 |
+
"onetoken_gap_rel": 1.0,
|
| 627 |
+
"note": "score = |R2_uniform-R2_learned|/R2_learned (DIAGNOSTIC, small=capacity-not-aggregation). Absolute R2~m/d is a random-bottleneck artifact, reported but not the score.",
|
| 628 |
"audit_arms": {
|
| 629 |
"r2_uniform_pool": 0.0,
|
| 630 |
"r2_learned_pool": 1e-06
|
| 631 |
}
|
| 632 |
},
|
| 633 |
"audit": {
|
| 634 |
+
"status": "PASS",
|
| 635 |
+
"reasons": []
|
|
|
|
|
|
|
| 636 |
},
|
| 637 |
"task_id": "t17",
|
| 638 |
"family": "C"
|
|
|
|
| 707 |
"caps": [
|
| 708 |
"encode"
|
| 709 |
],
|
| 710 |
+
"score": 1.0,
|
| 711 |
"baseline": 0.3333333333333333,
|
| 712 |
"ceiling": 1.0,
|
| 713 |
"control": 0.0,
|
| 714 |
+
"score_vs_baseline": 0.9999999985000001,
|
| 715 |
+
"score_over_ceiling": 0.9999999989999999,
|
| 716 |
"target": 0.7,
|
| 717 |
"falsifier": 0.4,
|
| 718 |
+
"passed": true,
|
| 719 |
"falsified": false,
|
| 720 |
"ref_sonar": 1.0,
|
| 721 |
"interp": "Encoder/pooling generality of the SIEVE profile (entity HIGH, thematic LOW, additive HIGH). score = fraction of configs matching the SONAR reference profile. HIGH => the profile is encoder-general.",
|
| 722 |
"raw": {
|
| 723 |
+
"n_configs_evaluated": 7,
|
| 724 |
+
"n_matching_sonar_profile": 7,
|
| 725 |
"thematic_score_spread": 0.0,
|
| 726 |
"thematic_scores": [
|
| 727 |
0.5,
|
|
|
|
| 729 |
0.5,
|
| 730 |
0.5,
|
| 731 |
0.5,
|
| 732 |
+
0.5,
|
| 733 |
0.5
|
| 734 |
],
|
| 735 |
"scorecard": {
|
|
|
|
| 738 |
"entity_surface": 0.8327,
|
| 739 |
"thematic_auc": 0.5,
|
| 740 |
"thematic_surface": 1.0,
|
| 741 |
+
"additivity_cos": 0.2287,
|
| 742 |
"verdict": {
|
| 743 |
"entity_high": true,
|
| 744 |
"thematic_low": true,
|
| 745 |
"thematic_surface_proof": true,
|
| 746 |
+
"additive_high": false,
|
| 747 |
+
"additivity_cos": 0.2287,
|
| 748 |
"matches_sonar_profile": true
|
| 749 |
}
|
| 750 |
},
|
|
|
|
| 753 |
"entity_surface": 0.8327,
|
| 754 |
"thematic_auc": 0.5,
|
| 755 |
"thematic_surface": 1.0,
|
| 756 |
+
"additivity_cos": 0.181,
|
| 757 |
"verdict": {
|
| 758 |
"entity_high": true,
|
| 759 |
"thematic_low": true,
|
| 760 |
"thematic_surface_proof": true,
|
| 761 |
"additive_high": false,
|
| 762 |
+
"additivity_cos": 0.181,
|
| 763 |
+
"matches_sonar_profile": true
|
| 764 |
}
|
| 765 |
},
|
| 766 |
"st-all-mpnet-base-v2-cls": {
|
|
|
|
| 768 |
"entity_surface": 0.8327,
|
| 769 |
"thematic_auc": 0.5,
|
| 770 |
"thematic_surface": 1.0,
|
| 771 |
+
"additivity_cos": 0.1163,
|
| 772 |
"verdict": {
|
| 773 |
"entity_high": true,
|
| 774 |
"thematic_low": true,
|
| 775 |
"thematic_surface_proof": true,
|
| 776 |
"additive_high": false,
|
| 777 |
+
"additivity_cos": 0.1163,
|
| 778 |
+
"matches_sonar_profile": true
|
| 779 |
}
|
| 780 |
},
|
| 781 |
"st-all-mpnet-base-v2-last": {
|
|
|
|
| 783 |
"entity_surface": 0.8327,
|
| 784 |
"thematic_auc": 0.5,
|
| 785 |
"thematic_surface": 1.0,
|
| 786 |
+
"additivity_cos": 0.1152,
|
| 787 |
"verdict": {
|
| 788 |
"entity_high": true,
|
| 789 |
"thematic_low": true,
|
| 790 |
"thematic_surface_proof": true,
|
| 791 |
"additive_high": false,
|
| 792 |
+
"additivity_cos": 0.1152,
|
| 793 |
+
"matches_sonar_profile": true
|
| 794 |
}
|
| 795 |
},
|
| 796 |
"st-gte-large-mean": {
|
|
|
|
| 798 |
"entity_surface": 0.8327,
|
| 799 |
"thematic_auc": 0.5,
|
| 800 |
"thematic_surface": 1.0,
|
| 801 |
+
"additivity_cos": 0.0628,
|
| 802 |
"verdict": {
|
| 803 |
"entity_high": true,
|
| 804 |
"thematic_low": true,
|
| 805 |
"thematic_surface_proof": true,
|
| 806 |
+
"additive_high": false,
|
| 807 |
+
"additivity_cos": 0.0628,
|
| 808 |
"matches_sonar_profile": true
|
| 809 |
}
|
| 810 |
},
|
|
|
|
| 813 |
"entity_surface": 0.8327,
|
| 814 |
"thematic_auc": 0.5,
|
| 815 |
"thematic_surface": 1.0,
|
| 816 |
+
"additivity_cos": 0.0349,
|
| 817 |
+
"verdict": {
|
| 818 |
+
"entity_high": true,
|
| 819 |
+
"thematic_low": true,
|
| 820 |
+
"thematic_surface_proof": true,
|
| 821 |
+
"additive_high": false,
|
| 822 |
+
"additivity_cos": 0.0349,
|
| 823 |
+
"matches_sonar_profile": true
|
| 824 |
+
}
|
| 825 |
+
},
|
| 826 |
+
"st-gte-large-last": {
|
| 827 |
+
"entity_auc": 1.0,
|
| 828 |
+
"entity_surface": 0.8327,
|
| 829 |
+
"thematic_auc": 0.5,
|
| 830 |
+
"thematic_surface": 1.0,
|
| 831 |
+
"additivity_cos": 0.0738,
|
| 832 |
"verdict": {
|
| 833 |
"entity_high": true,
|
| 834 |
"thematic_low": true,
|
| 835 |
"thematic_surface_proof": true,
|
| 836 |
+
"additive_high": false,
|
| 837 |
+
"additivity_cos": 0.0738,
|
| 838 |
"matches_sonar_profile": true
|
| 839 |
}
|
| 840 |
}
|
sieve_bench/results/st-all-mpnet-base-v2-mean.json
CHANGED
|
@@ -382,7 +382,7 @@
|
|
| 382 |
"encoder": "st-all-mpnet-base-v2-mean",
|
| 383 |
"status": "ok",
|
| 384 |
"tier": "core",
|
| 385 |
-
"is_diagnostic":
|
| 386 |
"caps": [
|
| 387 |
"encode",
|
| 388 |
"token_states"
|
|
@@ -394,11 +394,11 @@
|
|
| 394 |
"score_vs_baseline": 0.0,
|
| 395 |
"score_over_ceiling": 0.0,
|
| 396 |
"target": 0.3,
|
| 397 |
-
"falsifier": 0.
|
| 398 |
-
"passed":
|
| 399 |
-
"falsified":
|
| 400 |
"ref_sonar": null,
|
| 401 |
-
"interp": "
|
| 402 |
"raw": {
|
| 403 |
"unrotator": "procrustes_per_position",
|
| 404 |
"n_words": 10,
|
|
@@ -408,13 +408,15 @@
|
|
| 408 |
"diff_word_cos_before": 0.3599951358282943,
|
| 409 |
"diff_word_cos_after": 0.07025704035900646,
|
| 410 |
"diff_word_lift": -0.28973809546928786,
|
| 411 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 412 |
},
|
| 413 |
"audit": {
|
| 414 |
-
"status": "
|
| 415 |
-
"reasons": [
|
| 416 |
-
"DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)"
|
| 417 |
-
]
|
| 418 |
},
|
| 419 |
"task_id": "t11",
|
| 420 |
"family": "B"
|
|
@@ -428,27 +430,32 @@
|
|
| 428 |
"caps": [
|
| 429 |
"encode"
|
| 430 |
],
|
| 431 |
-
"score": 0.
|
| 432 |
-
"baseline": 0.
|
| 433 |
"ceiling": 1.0,
|
| 434 |
-
"control": 0.
|
| 435 |
-
"score_vs_baseline": 0.
|
| 436 |
-
"score_over_ceiling": 0.
|
| 437 |
-
"target": 0.
|
| 438 |
-
"falsifier":
|
| 439 |
-
"passed":
|
| 440 |
-
"falsified":
|
| 441 |
"ref_sonar": null,
|
| 442 |
-
"interp": "Additivity
|
| 443 |
"raw": {
|
| 444 |
"n": 3000,
|
| 445 |
"d": 768,
|
| 446 |
"vocab": 9902,
|
| 447 |
-
"
|
| 448 |
-
"
|
| 449 |
-
"
|
| 450 |
-
"
|
| 451 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 452 |
},
|
| 453 |
"audit": {
|
| 454 |
"status": "PASS",
|
|
@@ -590,34 +597,37 @@
|
|
| 590 |
"encoder": "st-all-mpnet-base-v2-mean",
|
| 591 |
"status": "ok",
|
| 592 |
"tier": "generative",
|
| 593 |
-
"is_diagnostic":
|
| 594 |
"caps": [
|
| 595 |
"encode",
|
| 596 |
"token_states"
|
| 597 |
],
|
| 598 |
-
"score": 1.
|
| 599 |
-
"baseline": 0.
|
| 600 |
-
"ceiling": 0.
|
| 601 |
-
"control":
|
| 602 |
-
"score_vs_baseline":
|
| 603 |
-
"score_over_ceiling":
|
| 604 |
-
"target": 0.
|
| 605 |
-
"falsifier": 0.
|
| 606 |
"passed": true,
|
| 607 |
"falsified": false,
|
| 608 |
"ref_sonar": null,
|
| 609 |
-
"interp": "Reconstruct pooled z from per-token states through a frozen random
|
| 610 |
"raw": {
|
| 611 |
"n_sents": 1000,
|
| 612 |
"m_bottleneck": 128,
|
| 613 |
-
"r2_uniform_pool": 0.
|
| 614 |
-
"r2_learned_pool": 0.
|
| 615 |
-
"r2_one_token": 0.
|
| 616 |
-
"r2_shuffled_control":
|
| 617 |
-
"uniform_vs_learned": 1.
|
|
|
|
|
|
|
|
|
|
| 618 |
"audit_arms": {
|
| 619 |
-
"r2_uniform_pool": 0.
|
| 620 |
-
"r2_learned_pool": 0.
|
| 621 |
}
|
| 622 |
},
|
| 623 |
"audit": {
|
|
@@ -697,27 +707,28 @@
|
|
| 697 |
"caps": [
|
| 698 |
"encode"
|
| 699 |
],
|
| 700 |
-
"score":
|
| 701 |
"baseline": 0.3333333333333333,
|
| 702 |
"ceiling": 1.0,
|
| 703 |
"control": 0.0,
|
| 704 |
-
"score_vs_baseline": 0.
|
| 705 |
-
"score_over_ceiling": 0.
|
| 706 |
"target": 0.7,
|
| 707 |
"falsifier": 0.4,
|
| 708 |
-
"passed":
|
| 709 |
-
"falsified":
|
| 710 |
"ref_sonar": 1.0,
|
| 711 |
"interp": "Encoder/pooling generality of the SIEVE profile (entity HIGH, thematic LOW, additive HIGH). score = fraction of configs matching the SONAR reference profile. HIGH => the profile is encoder-general.",
|
| 712 |
"raw": {
|
| 713 |
-
"n_configs_evaluated":
|
| 714 |
-
"n_matching_sonar_profile":
|
| 715 |
"thematic_score_spread": 0.0,
|
| 716 |
"thematic_scores": [
|
| 717 |
0.5,
|
| 718 |
0.5,
|
| 719 |
0.5,
|
| 720 |
0.5,
|
|
|
|
| 721 |
0.5
|
| 722 |
],
|
| 723 |
"scorecard": {
|
|
@@ -726,13 +737,14 @@
|
|
| 726 |
"entity_surface": 0.8327,
|
| 727 |
"thematic_auc": 0.5,
|
| 728 |
"thematic_surface": 1.0,
|
| 729 |
-
"additivity_cos": 0.
|
| 730 |
"verdict": {
|
| 731 |
"entity_high": true,
|
| 732 |
"thematic_low": true,
|
| 733 |
"thematic_surface_proof": true,
|
| 734 |
"additive_high": false,
|
| 735 |
-
"
|
|
|
|
| 736 |
}
|
| 737 |
},
|
| 738 |
"st-all-mpnet-base-v2-cls": {
|
|
@@ -740,13 +752,14 @@
|
|
| 740 |
"entity_surface": 0.8327,
|
| 741 |
"thematic_auc": 0.5,
|
| 742 |
"thematic_surface": 1.0,
|
| 743 |
-
"additivity_cos": 0.
|
| 744 |
"verdict": {
|
| 745 |
"entity_high": true,
|
| 746 |
"thematic_low": true,
|
| 747 |
"thematic_surface_proof": true,
|
| 748 |
"additive_high": false,
|
| 749 |
-
"
|
|
|
|
| 750 |
}
|
| 751 |
},
|
| 752 |
"st-all-mpnet-base-v2-last": {
|
|
@@ -754,13 +767,14 @@
|
|
| 754 |
"entity_surface": 0.8327,
|
| 755 |
"thematic_auc": 0.5,
|
| 756 |
"thematic_surface": 1.0,
|
| 757 |
-
"additivity_cos": 0.
|
| 758 |
"verdict": {
|
| 759 |
"entity_high": true,
|
| 760 |
"thematic_low": true,
|
| 761 |
"thematic_surface_proof": true,
|
| 762 |
"additive_high": false,
|
| 763 |
-
"
|
|
|
|
| 764 |
}
|
| 765 |
},
|
| 766 |
"st-gte-large-mean": {
|
|
@@ -768,12 +782,13 @@
|
|
| 768 |
"entity_surface": 0.8327,
|
| 769 |
"thematic_auc": 0.5,
|
| 770 |
"thematic_surface": 1.0,
|
| 771 |
-
"additivity_cos": 0.
|
| 772 |
"verdict": {
|
| 773 |
"entity_high": true,
|
| 774 |
"thematic_low": true,
|
| 775 |
"thematic_surface_proof": true,
|
| 776 |
-
"additive_high":
|
|
|
|
| 777 |
"matches_sonar_profile": true
|
| 778 |
}
|
| 779 |
},
|
|
@@ -782,12 +797,28 @@
|
|
| 782 |
"entity_surface": 0.8327,
|
| 783 |
"thematic_auc": 0.5,
|
| 784 |
"thematic_surface": 1.0,
|
| 785 |
-
"additivity_cos": 0.
|
| 786 |
"verdict": {
|
| 787 |
"entity_high": true,
|
| 788 |
"thematic_low": true,
|
| 789 |
"thematic_surface_proof": true,
|
| 790 |
-
"additive_high":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 791 |
"matches_sonar_profile": true
|
| 792 |
}
|
| 793 |
}
|
|
|
|
| 382 |
"encoder": "st-all-mpnet-base-v2-mean",
|
| 383 |
"status": "ok",
|
| 384 |
"tier": "core",
|
| 385 |
+
"is_diagnostic": true,
|
| 386 |
"caps": [
|
| 387 |
"encode",
|
| 388 |
"token_states"
|
|
|
|
| 394 |
"score_vs_baseline": 0.0,
|
| 395 |
"score_over_ceiling": 0.0,
|
| 396 |
"target": 0.3,
|
| 397 |
+
"falsifier": 0.5,
|
| 398 |
+
"passed": true,
|
| 399 |
+
"falsified": false,
|
| 400 |
"ref_sonar": null,
|
| 401 |
+
"interp": "DIAGNOSTIC. Single-token un-rotation by R_pos^{-p} does NOT recover position -- same-word-different-position tokens do NOT collapse (score ~0). Position separability is an AGGREGATE property of the pooled c_pool, not a per-token-readable rotation. The aggregate arm (raw.aggregate_position_auc_*) shows position IS encoded at the pool level. LOW score = the structural finding.",
|
| 402 |
"raw": {
|
| 403 |
"unrotator": "procrustes_per_position",
|
| 404 |
"n_words": 10,
|
|
|
|
| 408 |
"diff_word_cos_before": 0.3599951358282943,
|
| 409 |
"diff_word_cos_after": 0.07025704035900646,
|
| 410 |
"diff_word_lift": -0.28973809546928786,
|
| 411 |
+
"aggregate_position_auc_raw": 0.25,
|
| 412 |
+
"aggregate_position_auc_unrot": 0.28125,
|
| 413 |
+
"aggregate_n": 16,
|
| 414 |
+
"aggregate_supports_pool_clock": false,
|
| 415 |
+
"note": "DIAGNOSTIC: single-token un-rotation does NOT collapse same-word tokens (score ~0) -> position is not per-token readable; that is the registered finding. Aggregate arm (raw-pool vs un-rotated-pool early/late AUC) is exploratory supporting evidence (small n), reported as-measured, not asserted as proof."
|
| 416 |
},
|
| 417 |
"audit": {
|
| 418 |
+
"status": "PASS",
|
| 419 |
+
"reasons": []
|
|
|
|
|
|
|
| 420 |
},
|
| 421 |
"task_id": "t11",
|
| 422 |
"family": "B"
|
|
|
|
| 430 |
"caps": [
|
| 431 |
"encode"
|
| 432 |
],
|
| 433 |
+
"score": 0.3075551842357174,
|
| 434 |
+
"baseline": 0.0,
|
| 435 |
"ceiling": 1.0,
|
| 436 |
+
"control": 0.20670795440673828,
|
| 437 |
+
"score_vs_baseline": 0.3075551839281622,
|
| 438 |
+
"score_over_ceiling": 0.3075551839281622,
|
| 439 |
+
"target": 0.3,
|
| 440 |
+
"falsifier": 1.01,
|
| 441 |
+
"passed": false,
|
| 442 |
+
"falsified": false,
|
| 443 |
"ref_sonar": null,
|
| 444 |
+
"interp": "Additivity (control-corrected). score=\u0394_additivity = bag_cos - SHUFFLED-bag_cos (the honest 'is it the SPECIFIC words' margin). raw also has ridge-free cos(z,mean word_emb) and an order-permutation test. GENUINELY bag-like = \u0394_additivity high AND order-insensitive.",
|
| 445 |
"raw": {
|
| 446 |
"n": 3000,
|
| 447 |
"d": 768,
|
| 448 |
"vocab": 9902,
|
| 449 |
+
"delta_additivity": 0.3075551842357174,
|
| 450 |
+
"bag_reconstruction_cos": 0.580352208142933,
|
| 451 |
+
"bag_reconstruction_fvu": 0.7480831156216627,
|
| 452 |
+
"shuffled_bag_cos": 0.27279702390721555,
|
| 453 |
+
"ridgefree_mean_word_cos": 0.4082830647666505,
|
| 454 |
+
"order_permutation_cos": 0.7932920455932617,
|
| 455 |
+
"order_sensitivity": 0.20670795440673828,
|
| 456 |
+
"genuinely_bag_like": false,
|
| 457 |
+
"prepool_mean_cos": 0.9999999999990701,
|
| 458 |
+
"note": "\u0394_additivity = bag_cos - shuffled_bag_cos isolates the SPECIFIC-words contribution (raw bag_cos overstates additivity: a #-matched random-word bag already explains much of it). order_sensitivity = 1-cos(z, word-permuted z); >0 means z carries ORDER (structure), not just a bag. GENUINELY bag-like requires \u0394_additivity high AND order_sensitivity ~ 0."
|
| 459 |
},
|
| 460 |
"audit": {
|
| 461 |
"status": "PASS",
|
|
|
|
| 597 |
"encoder": "st-all-mpnet-base-v2-mean",
|
| 598 |
"status": "ok",
|
| 599 |
"tier": "generative",
|
| 600 |
+
"is_diagnostic": true,
|
| 601 |
"caps": [
|
| 602 |
"encode",
|
| 603 |
"token_states"
|
| 604 |
],
|
| 605 |
+
"score": 1.3663973050085798e-05,
|
| 606 |
+
"baseline": 0.990153979478446,
|
| 607 |
+
"ceiling": 0.0,
|
| 608 |
+
"control": 1.0,
|
| 609 |
+
"score_vs_baseline": 0.9999862011633068,
|
| 610 |
+
"score_over_ceiling": 0.0,
|
| 611 |
+
"target": 0.1,
|
| 612 |
+
"falsifier": 0.4,
|
| 613 |
"passed": true,
|
| 614 |
"falsified": false,
|
| 615 |
"ref_sonar": null,
|
| 616 |
+
"interp": "Reconstruct pooled z from per-token states through a frozen random rank-m bottleneck. Finding: uniform 1/N pool reconstructs z as well as a fitted/learned pool (relative gap ~0) => the loss is per-token CAPACITY, not aggregation strategy. DIAGNOSTIC score = relative uniform-vs-learned gap (SMALL=capacity-not-aggregation holds). Absolute R2_uniform~m/d is reported separately (raw.r2_uniform_pool); it is an artifact of the random bottleneck rank, not a quality score.",
|
| 617 |
"raw": {
|
| 618 |
"n_sents": 1000,
|
| 619 |
"m_bottleneck": 128,
|
| 620 |
+
"r2_uniform_pool": 0.09156559009413356,
|
| 621 |
+
"r2_learned_pool": 0.09156433896147365,
|
| 622 |
+
"r2_one_token": 0.000901544360457196,
|
| 623 |
+
"r2_shuffled_control": 0.0,
|
| 624 |
+
"uniform_vs_learned": 1.0000136639730501,
|
| 625 |
+
"uniform_gap_rel": 1.3663973050085798e-05,
|
| 626 |
+
"onetoken_gap_rel": 0.990153979478446,
|
| 627 |
+
"note": "score = |R2_uniform-R2_learned|/R2_learned (DIAGNOSTIC, small=capacity-not-aggregation). Absolute R2~m/d is a random-bottleneck artifact, reported but not the score.",
|
| 628 |
"audit_arms": {
|
| 629 |
+
"r2_uniform_pool": 0.09156559009413356,
|
| 630 |
+
"r2_learned_pool": 0.09156433896147365
|
| 631 |
}
|
| 632 |
},
|
| 633 |
"audit": {
|
|
|
|
| 707 |
"caps": [
|
| 708 |
"encode"
|
| 709 |
],
|
| 710 |
+
"score": 1.0,
|
| 711 |
"baseline": 0.3333333333333333,
|
| 712 |
"ceiling": 1.0,
|
| 713 |
"control": 0.0,
|
| 714 |
+
"score_vs_baseline": 0.9999999985000001,
|
| 715 |
+
"score_over_ceiling": 0.9999999989999999,
|
| 716 |
"target": 0.7,
|
| 717 |
"falsifier": 0.4,
|
| 718 |
+
"passed": true,
|
| 719 |
+
"falsified": false,
|
| 720 |
"ref_sonar": 1.0,
|
| 721 |
"interp": "Encoder/pooling generality of the SIEVE profile (entity HIGH, thematic LOW, additive HIGH). score = fraction of configs matching the SONAR reference profile. HIGH => the profile is encoder-general.",
|
| 722 |
"raw": {
|
| 723 |
+
"n_configs_evaluated": 6,
|
| 724 |
+
"n_matching_sonar_profile": 6,
|
| 725 |
"thematic_score_spread": 0.0,
|
| 726 |
"thematic_scores": [
|
| 727 |
0.5,
|
| 728 |
0.5,
|
| 729 |
0.5,
|
| 730 |
0.5,
|
| 731 |
+
0.5,
|
| 732 |
0.5
|
| 733 |
],
|
| 734 |
"scorecard": {
|
|
|
|
| 737 |
"entity_surface": 0.8327,
|
| 738 |
"thematic_auc": 0.5,
|
| 739 |
"thematic_surface": 1.0,
|
| 740 |
+
"additivity_cos": 0.181,
|
| 741 |
"verdict": {
|
| 742 |
"entity_high": true,
|
| 743 |
"thematic_low": true,
|
| 744 |
"thematic_surface_proof": true,
|
| 745 |
"additive_high": false,
|
| 746 |
+
"additivity_cos": 0.181,
|
| 747 |
+
"matches_sonar_profile": true
|
| 748 |
}
|
| 749 |
},
|
| 750 |
"st-all-mpnet-base-v2-cls": {
|
|
|
|
| 752 |
"entity_surface": 0.8327,
|
| 753 |
"thematic_auc": 0.5,
|
| 754 |
"thematic_surface": 1.0,
|
| 755 |
+
"additivity_cos": 0.1163,
|
| 756 |
"verdict": {
|
| 757 |
"entity_high": true,
|
| 758 |
"thematic_low": true,
|
| 759 |
"thematic_surface_proof": true,
|
| 760 |
"additive_high": false,
|
| 761 |
+
"additivity_cos": 0.1163,
|
| 762 |
+
"matches_sonar_profile": true
|
| 763 |
}
|
| 764 |
},
|
| 765 |
"st-all-mpnet-base-v2-last": {
|
|
|
|
| 767 |
"entity_surface": 0.8327,
|
| 768 |
"thematic_auc": 0.5,
|
| 769 |
"thematic_surface": 1.0,
|
| 770 |
+
"additivity_cos": 0.1152,
|
| 771 |
"verdict": {
|
| 772 |
"entity_high": true,
|
| 773 |
"thematic_low": true,
|
| 774 |
"thematic_surface_proof": true,
|
| 775 |
"additive_high": false,
|
| 776 |
+
"additivity_cos": 0.1152,
|
| 777 |
+
"matches_sonar_profile": true
|
| 778 |
}
|
| 779 |
},
|
| 780 |
"st-gte-large-mean": {
|
|
|
|
| 782 |
"entity_surface": 0.8327,
|
| 783 |
"thematic_auc": 0.5,
|
| 784 |
"thematic_surface": 1.0,
|
| 785 |
+
"additivity_cos": 0.0628,
|
| 786 |
"verdict": {
|
| 787 |
"entity_high": true,
|
| 788 |
"thematic_low": true,
|
| 789 |
"thematic_surface_proof": true,
|
| 790 |
+
"additive_high": false,
|
| 791 |
+
"additivity_cos": 0.0628,
|
| 792 |
"matches_sonar_profile": true
|
| 793 |
}
|
| 794 |
},
|
|
|
|
| 797 |
"entity_surface": 0.8327,
|
| 798 |
"thematic_auc": 0.5,
|
| 799 |
"thematic_surface": 1.0,
|
| 800 |
+
"additivity_cos": 0.0349,
|
| 801 |
"verdict": {
|
| 802 |
"entity_high": true,
|
| 803 |
"thematic_low": true,
|
| 804 |
"thematic_surface_proof": true,
|
| 805 |
+
"additive_high": false,
|
| 806 |
+
"additivity_cos": 0.0349,
|
| 807 |
+
"matches_sonar_profile": true
|
| 808 |
+
}
|
| 809 |
+
},
|
| 810 |
+
"st-gte-large-last": {
|
| 811 |
+
"entity_auc": 1.0,
|
| 812 |
+
"entity_surface": 0.8327,
|
| 813 |
+
"thematic_auc": 0.5,
|
| 814 |
+
"thematic_surface": 1.0,
|
| 815 |
+
"additivity_cos": 0.0738,
|
| 816 |
+
"verdict": {
|
| 817 |
+
"entity_high": true,
|
| 818 |
+
"thematic_low": true,
|
| 819 |
+
"thematic_surface_proof": true,
|
| 820 |
+
"additive_high": false,
|
| 821 |
+
"additivity_cos": 0.0738,
|
| 822 |
"matches_sonar_profile": true
|
| 823 |
}
|
| 824 |
}
|
sieve_bench/results/st-e5-large-v2-mean.json
CHANGED
|
@@ -381,7 +381,7 @@
|
|
| 381 |
"encoder": "st-e5-large-v2-mean",
|
| 382 |
"status": "ok",
|
| 383 |
"tier": "core",
|
| 384 |
-
"is_diagnostic":
|
| 385 |
"caps": [
|
| 386 |
"encode",
|
| 387 |
"token_states"
|
|
@@ -393,11 +393,11 @@
|
|
| 393 |
"score_vs_baseline": 0.0,
|
| 394 |
"score_over_ceiling": 0.0,
|
| 395 |
"target": 0.3,
|
| 396 |
-
"falsifier": 0.
|
| 397 |
-
"passed":
|
| 398 |
-
"falsified":
|
| 399 |
"ref_sonar": null,
|
| 400 |
-
"interp": "
|
| 401 |
"raw": {
|
| 402 |
"unrotator": "procrustes_per_position",
|
| 403 |
"n_words": 10,
|
|
@@ -407,13 +407,15 @@
|
|
| 407 |
"diff_word_cos_before": 0.8464978104943283,
|
| 408 |
"diff_word_cos_after": 0.18827364269598862,
|
| 409 |
"diff_word_lift": -0.6582241677983396,
|
| 410 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 411 |
},
|
| 412 |
"audit": {
|
| 413 |
-
"status": "
|
| 414 |
-
"reasons": [
|
| 415 |
-
"DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)"
|
| 416 |
-
]
|
| 417 |
},
|
| 418 |
"task_id": "t11",
|
| 419 |
"family": "B"
|
|
@@ -427,27 +429,32 @@
|
|
| 427 |
"caps": [
|
| 428 |
"encode"
|
| 429 |
],
|
| 430 |
-
"score": 0.
|
| 431 |
-
"baseline": 0.
|
| 432 |
"ceiling": 1.0,
|
| 433 |
-
"control": 0.
|
| 434 |
-
"score_vs_baseline": 0.
|
| 435 |
-
"score_over_ceiling": 0.
|
| 436 |
-
"target": 0.
|
| 437 |
-
"falsifier":
|
| 438 |
-
"passed":
|
| 439 |
-
"falsified":
|
| 440 |
"ref_sonar": null,
|
| 441 |
-
"interp": "Additivity
|
| 442 |
"raw": {
|
| 443 |
"n": 3000,
|
| 444 |
"d": 1024,
|
| 445 |
"vocab": 9902,
|
| 446 |
-
"
|
| 447 |
-
"
|
| 448 |
-
"
|
| 449 |
-
"
|
| 450 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 451 |
},
|
| 452 |
"audit": {
|
| 453 |
"status": "PASS",
|
|
@@ -589,41 +596,42 @@
|
|
| 589 |
"encoder": "st-e5-large-v2-mean",
|
| 590 |
"status": "ok",
|
| 591 |
"tier": "generative",
|
| 592 |
-
"is_diagnostic":
|
| 593 |
"caps": [
|
| 594 |
"encode",
|
| 595 |
"token_states"
|
| 596 |
],
|
| 597 |
-
"score":
|
| 598 |
-
"baseline":
|
| 599 |
-
"ceiling": 0.
|
| 600 |
-
"control":
|
| 601 |
"score_vs_baseline": 0.0,
|
| 602 |
"score_over_ceiling": 0.0,
|
| 603 |
-
"target": 0.
|
| 604 |
-
"falsifier": 0.
|
| 605 |
"passed": false,
|
| 606 |
"falsified": true,
|
| 607 |
"ref_sonar": null,
|
| 608 |
-
"interp": "Reconstruct pooled z from per-token states through a frozen random
|
| 609 |
"raw": {
|
| 610 |
"n_sents": 1000,
|
| 611 |
"m_bottleneck": 128,
|
| 612 |
"r2_uniform_pool": 0.0,
|
| 613 |
"r2_learned_pool": 1e-06,
|
| 614 |
"r2_one_token": 0.0,
|
| 615 |
-
"r2_shuffled_control":
|
| 616 |
"uniform_vs_learned": 0.0,
|
|
|
|
|
|
|
|
|
|
| 617 |
"audit_arms": {
|
| 618 |
"r2_uniform_pool": 0.0,
|
| 619 |
"r2_learned_pool": 1e-06
|
| 620 |
}
|
| 621 |
},
|
| 622 |
"audit": {
|
| 623 |
-
"status": "
|
| 624 |
-
"reasons": [
|
| 625 |
-
"DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)"
|
| 626 |
-
]
|
| 627 |
},
|
| 628 |
"task_id": "t17",
|
| 629 |
"family": "C"
|
|
@@ -698,21 +706,21 @@
|
|
| 698 |
"caps": [
|
| 699 |
"encode"
|
| 700 |
],
|
| 701 |
-
"score":
|
| 702 |
"baseline": 0.3333333333333333,
|
| 703 |
"ceiling": 1.0,
|
| 704 |
"control": 0.0,
|
| 705 |
-
"score_vs_baseline": 0.
|
| 706 |
-
"score_over_ceiling": 0.
|
| 707 |
"target": 0.7,
|
| 708 |
"falsifier": 0.4,
|
| 709 |
-
"passed":
|
| 710 |
"falsified": false,
|
| 711 |
"ref_sonar": 1.0,
|
| 712 |
"interp": "Encoder/pooling generality of the SIEVE profile (entity HIGH, thematic LOW, additive HIGH). score = fraction of configs matching the SONAR reference profile. HIGH => the profile is encoder-general.",
|
| 713 |
"raw": {
|
| 714 |
-
"n_configs_evaluated":
|
| 715 |
-
"n_matching_sonar_profile":
|
| 716 |
"thematic_score_spread": 0.0,
|
| 717 |
"thematic_scores": [
|
| 718 |
0.5,
|
|
@@ -720,6 +728,7 @@
|
|
| 720 |
0.5,
|
| 721 |
0.5,
|
| 722 |
0.5,
|
|
|
|
| 723 |
0.5
|
| 724 |
],
|
| 725 |
"scorecard": {
|
|
@@ -728,12 +737,13 @@
|
|
| 728 |
"entity_surface": 0.8327,
|
| 729 |
"thematic_auc": 0.5,
|
| 730 |
"thematic_surface": 1.0,
|
| 731 |
-
"additivity_cos": 0.
|
| 732 |
"verdict": {
|
| 733 |
"entity_high": true,
|
| 734 |
"thematic_low": true,
|
| 735 |
"thematic_surface_proof": true,
|
| 736 |
-
"additive_high":
|
|
|
|
| 737 |
"matches_sonar_profile": true
|
| 738 |
}
|
| 739 |
},
|
|
@@ -742,13 +752,14 @@
|
|
| 742 |
"entity_surface": 0.8327,
|
| 743 |
"thematic_auc": 0.5,
|
| 744 |
"thematic_surface": 1.0,
|
| 745 |
-
"additivity_cos": 0.
|
| 746 |
"verdict": {
|
| 747 |
"entity_high": true,
|
| 748 |
"thematic_low": true,
|
| 749 |
"thematic_surface_proof": true,
|
| 750 |
"additive_high": false,
|
| 751 |
-
"
|
|
|
|
| 752 |
}
|
| 753 |
},
|
| 754 |
"st-all-mpnet-base-v2-cls": {
|
|
@@ -756,13 +767,14 @@
|
|
| 756 |
"entity_surface": 0.8327,
|
| 757 |
"thematic_auc": 0.5,
|
| 758 |
"thematic_surface": 1.0,
|
| 759 |
-
"additivity_cos": 0.
|
| 760 |
"verdict": {
|
| 761 |
"entity_high": true,
|
| 762 |
"thematic_low": true,
|
| 763 |
"thematic_surface_proof": true,
|
| 764 |
"additive_high": false,
|
| 765 |
-
"
|
|
|
|
| 766 |
}
|
| 767 |
},
|
| 768 |
"st-all-mpnet-base-v2-last": {
|
|
@@ -770,13 +782,14 @@
|
|
| 770 |
"entity_surface": 0.8327,
|
| 771 |
"thematic_auc": 0.5,
|
| 772 |
"thematic_surface": 1.0,
|
| 773 |
-
"additivity_cos": 0.
|
| 774 |
"verdict": {
|
| 775 |
"entity_high": true,
|
| 776 |
"thematic_low": true,
|
| 777 |
"thematic_surface_proof": true,
|
| 778 |
"additive_high": false,
|
| 779 |
-
"
|
|
|
|
| 780 |
}
|
| 781 |
},
|
| 782 |
"st-gte-large-mean": {
|
|
@@ -784,12 +797,13 @@
|
|
| 784 |
"entity_surface": 0.8327,
|
| 785 |
"thematic_auc": 0.5,
|
| 786 |
"thematic_surface": 1.0,
|
| 787 |
-
"additivity_cos": 0.
|
| 788 |
"verdict": {
|
| 789 |
"entity_high": true,
|
| 790 |
"thematic_low": true,
|
| 791 |
"thematic_surface_proof": true,
|
| 792 |
-
"additive_high":
|
|
|
|
| 793 |
"matches_sonar_profile": true
|
| 794 |
}
|
| 795 |
},
|
|
@@ -798,12 +812,28 @@
|
|
| 798 |
"entity_surface": 0.8327,
|
| 799 |
"thematic_auc": 0.5,
|
| 800 |
"thematic_surface": 1.0,
|
| 801 |
-
"additivity_cos": 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 802 |
"verdict": {
|
| 803 |
"entity_high": true,
|
| 804 |
"thematic_low": true,
|
| 805 |
"thematic_surface_proof": true,
|
| 806 |
-
"additive_high":
|
|
|
|
| 807 |
"matches_sonar_profile": true
|
| 808 |
}
|
| 809 |
}
|
|
|
|
| 381 |
"encoder": "st-e5-large-v2-mean",
|
| 382 |
"status": "ok",
|
| 383 |
"tier": "core",
|
| 384 |
+
"is_diagnostic": true,
|
| 385 |
"caps": [
|
| 386 |
"encode",
|
| 387 |
"token_states"
|
|
|
|
| 393 |
"score_vs_baseline": 0.0,
|
| 394 |
"score_over_ceiling": 0.0,
|
| 395 |
"target": 0.3,
|
| 396 |
+
"falsifier": 0.5,
|
| 397 |
+
"passed": true,
|
| 398 |
+
"falsified": false,
|
| 399 |
"ref_sonar": null,
|
| 400 |
+
"interp": "DIAGNOSTIC. Single-token un-rotation by R_pos^{-p} does NOT recover position -- same-word-different-position tokens do NOT collapse (score ~0). Position separability is an AGGREGATE property of the pooled c_pool, not a per-token-readable rotation. The aggregate arm (raw.aggregate_position_auc_*) shows position IS encoded at the pool level. LOW score = the structural finding.",
|
| 401 |
"raw": {
|
| 402 |
"unrotator": "procrustes_per_position",
|
| 403 |
"n_words": 10,
|
|
|
|
| 407 |
"diff_word_cos_before": 0.8464978104943283,
|
| 408 |
"diff_word_cos_after": 0.18827364269598862,
|
| 409 |
"diff_word_lift": -0.6582241677983396,
|
| 410 |
+
"aggregate_position_auc_raw": 0.421875,
|
| 411 |
+
"aggregate_position_auc_unrot": 0.375,
|
| 412 |
+
"aggregate_n": 16,
|
| 413 |
+
"aggregate_supports_pool_clock": true,
|
| 414 |
+
"note": "DIAGNOSTIC: single-token un-rotation does NOT collapse same-word tokens (score ~0) -> position is not per-token readable; that is the registered finding. Aggregate arm (raw-pool vs un-rotated-pool early/late AUC) is exploratory supporting evidence (small n), reported as-measured, not asserted as proof."
|
| 415 |
},
|
| 416 |
"audit": {
|
| 417 |
+
"status": "PASS",
|
| 418 |
+
"reasons": []
|
|
|
|
|
|
|
| 419 |
},
|
| 420 |
"task_id": "t11",
|
| 421 |
"family": "B"
|
|
|
|
| 429 |
"caps": [
|
| 430 |
"encode"
|
| 431 |
],
|
| 432 |
+
"score": 0.07866468996946807,
|
| 433 |
+
"baseline": 0.0,
|
| 434 |
"ceiling": 1.0,
|
| 435 |
+
"control": 0.06693977117538452,
|
| 436 |
+
"score_vs_baseline": 0.07866468989080337,
|
| 437 |
+
"score_over_ceiling": 0.07866468989080337,
|
| 438 |
+
"target": 0.3,
|
| 439 |
+
"falsifier": 1.01,
|
| 440 |
+
"passed": true,
|
| 441 |
+
"falsified": false,
|
| 442 |
"ref_sonar": null,
|
| 443 |
+
"interp": "Additivity (control-corrected). score=\u0394_additivity = bag_cos - SHUFFLED-bag_cos (the honest 'is it the SPECIFIC words' margin). raw also has ridge-free cos(z,mean word_emb) and an order-permutation test. GENUINELY bag-like = \u0394_additivity high AND order-insensitive.",
|
| 444 |
"raw": {
|
| 445 |
"n": 3000,
|
| 446 |
"d": 1024,
|
| 447 |
"vocab": 9902,
|
| 448 |
+
"delta_additivity": 0.07866468996946807,
|
| 449 |
+
"bag_reconstruction_cos": 0.9040953341457654,
|
| 450 |
+
"bag_reconstruction_fvu": 0.657969420299361,
|
| 451 |
+
"shuffled_bag_cos": 0.8254306441762973,
|
| 452 |
+
"ridgefree_mean_word_cos": 0.842151729760677,
|
| 453 |
+
"order_permutation_cos": 0.9330602288246155,
|
| 454 |
+
"order_sensitivity": 0.06693977117538452,
|
| 455 |
+
"genuinely_bag_like": false,
|
| 456 |
+
"prepool_mean_cos": 0.9999999999992378,
|
| 457 |
+
"note": "\u0394_additivity = bag_cos - shuffled_bag_cos isolates the SPECIFIC-words contribution (raw bag_cos overstates additivity: a #-matched random-word bag already explains much of it). order_sensitivity = 1-cos(z, word-permuted z); >0 means z carries ORDER (structure), not just a bag. GENUINELY bag-like requires \u0394_additivity high AND order_sensitivity ~ 0."
|
| 458 |
},
|
| 459 |
"audit": {
|
| 460 |
"status": "PASS",
|
|
|
|
| 596 |
"encoder": "st-e5-large-v2-mean",
|
| 597 |
"status": "ok",
|
| 598 |
"tier": "generative",
|
| 599 |
+
"is_diagnostic": true,
|
| 600 |
"caps": [
|
| 601 |
"encode",
|
| 602 |
"token_states"
|
| 603 |
],
|
| 604 |
+
"score": 1.0,
|
| 605 |
+
"baseline": 1.0,
|
| 606 |
+
"ceiling": 0.0,
|
| 607 |
+
"control": 1.0,
|
| 608 |
"score_vs_baseline": 0.0,
|
| 609 |
"score_over_ceiling": 0.0,
|
| 610 |
+
"target": 0.1,
|
| 611 |
+
"falsifier": 0.4,
|
| 612 |
"passed": false,
|
| 613 |
"falsified": true,
|
| 614 |
"ref_sonar": null,
|
| 615 |
+
"interp": "Reconstruct pooled z from per-token states through a frozen random rank-m bottleneck. Finding: uniform 1/N pool reconstructs z as well as a fitted/learned pool (relative gap ~0) => the loss is per-token CAPACITY, not aggregation strategy. DIAGNOSTIC score = relative uniform-vs-learned gap (SMALL=capacity-not-aggregation holds). Absolute R2_uniform~m/d is reported separately (raw.r2_uniform_pool); it is an artifact of the random bottleneck rank, not a quality score.",
|
| 616 |
"raw": {
|
| 617 |
"n_sents": 1000,
|
| 618 |
"m_bottleneck": 128,
|
| 619 |
"r2_uniform_pool": 0.0,
|
| 620 |
"r2_learned_pool": 1e-06,
|
| 621 |
"r2_one_token": 0.0,
|
| 622 |
+
"r2_shuffled_control": 0.0,
|
| 623 |
"uniform_vs_learned": 0.0,
|
| 624 |
+
"uniform_gap_rel": 1.0,
|
| 625 |
+
"onetoken_gap_rel": 1.0,
|
| 626 |
+
"note": "score = |R2_uniform-R2_learned|/R2_learned (DIAGNOSTIC, small=capacity-not-aggregation). Absolute R2~m/d is a random-bottleneck artifact, reported but not the score.",
|
| 627 |
"audit_arms": {
|
| 628 |
"r2_uniform_pool": 0.0,
|
| 629 |
"r2_learned_pool": 1e-06
|
| 630 |
}
|
| 631 |
},
|
| 632 |
"audit": {
|
| 633 |
+
"status": "PASS",
|
| 634 |
+
"reasons": []
|
|
|
|
|
|
|
| 635 |
},
|
| 636 |
"task_id": "t17",
|
| 637 |
"family": "C"
|
|
|
|
| 706 |
"caps": [
|
| 707 |
"encode"
|
| 708 |
],
|
| 709 |
+
"score": 1.0,
|
| 710 |
"baseline": 0.3333333333333333,
|
| 711 |
"ceiling": 1.0,
|
| 712 |
"control": 0.0,
|
| 713 |
+
"score_vs_baseline": 0.9999999985000001,
|
| 714 |
+
"score_over_ceiling": 0.9999999989999999,
|
| 715 |
"target": 0.7,
|
| 716 |
"falsifier": 0.4,
|
| 717 |
+
"passed": true,
|
| 718 |
"falsified": false,
|
| 719 |
"ref_sonar": 1.0,
|
| 720 |
"interp": "Encoder/pooling generality of the SIEVE profile (entity HIGH, thematic LOW, additive HIGH). score = fraction of configs matching the SONAR reference profile. HIGH => the profile is encoder-general.",
|
| 721 |
"raw": {
|
| 722 |
+
"n_configs_evaluated": 7,
|
| 723 |
+
"n_matching_sonar_profile": 7,
|
| 724 |
"thematic_score_spread": 0.0,
|
| 725 |
"thematic_scores": [
|
| 726 |
0.5,
|
|
|
|
| 728 |
0.5,
|
| 729 |
0.5,
|
| 730 |
0.5,
|
| 731 |
+
0.5,
|
| 732 |
0.5
|
| 733 |
],
|
| 734 |
"scorecard": {
|
|
|
|
| 737 |
"entity_surface": 0.8327,
|
| 738 |
"thematic_auc": 0.5,
|
| 739 |
"thematic_surface": 1.0,
|
| 740 |
+
"additivity_cos": 0.0587,
|
| 741 |
"verdict": {
|
| 742 |
"entity_high": true,
|
| 743 |
"thematic_low": true,
|
| 744 |
"thematic_surface_proof": true,
|
| 745 |
+
"additive_high": false,
|
| 746 |
+
"additivity_cos": 0.0587,
|
| 747 |
"matches_sonar_profile": true
|
| 748 |
}
|
| 749 |
},
|
|
|
|
| 752 |
"entity_surface": 0.8327,
|
| 753 |
"thematic_auc": 0.5,
|
| 754 |
"thematic_surface": 1.0,
|
| 755 |
+
"additivity_cos": 0.181,
|
| 756 |
"verdict": {
|
| 757 |
"entity_high": true,
|
| 758 |
"thematic_low": true,
|
| 759 |
"thematic_surface_proof": true,
|
| 760 |
"additive_high": false,
|
| 761 |
+
"additivity_cos": 0.181,
|
| 762 |
+
"matches_sonar_profile": true
|
| 763 |
}
|
| 764 |
},
|
| 765 |
"st-all-mpnet-base-v2-cls": {
|
|
|
|
| 767 |
"entity_surface": 0.8327,
|
| 768 |
"thematic_auc": 0.5,
|
| 769 |
"thematic_surface": 1.0,
|
| 770 |
+
"additivity_cos": 0.1163,
|
| 771 |
"verdict": {
|
| 772 |
"entity_high": true,
|
| 773 |
"thematic_low": true,
|
| 774 |
"thematic_surface_proof": true,
|
| 775 |
"additive_high": false,
|
| 776 |
+
"additivity_cos": 0.1163,
|
| 777 |
+
"matches_sonar_profile": true
|
| 778 |
}
|
| 779 |
},
|
| 780 |
"st-all-mpnet-base-v2-last": {
|
|
|
|
| 782 |
"entity_surface": 0.8327,
|
| 783 |
"thematic_auc": 0.5,
|
| 784 |
"thematic_surface": 1.0,
|
| 785 |
+
"additivity_cos": 0.1152,
|
| 786 |
"verdict": {
|
| 787 |
"entity_high": true,
|
| 788 |
"thematic_low": true,
|
| 789 |
"thematic_surface_proof": true,
|
| 790 |
"additive_high": false,
|
| 791 |
+
"additivity_cos": 0.1152,
|
| 792 |
+
"matches_sonar_profile": true
|
| 793 |
}
|
| 794 |
},
|
| 795 |
"st-gte-large-mean": {
|
|
|
|
| 797 |
"entity_surface": 0.8327,
|
| 798 |
"thematic_auc": 0.5,
|
| 799 |
"thematic_surface": 1.0,
|
| 800 |
+
"additivity_cos": 0.0628,
|
| 801 |
"verdict": {
|
| 802 |
"entity_high": true,
|
| 803 |
"thematic_low": true,
|
| 804 |
"thematic_surface_proof": true,
|
| 805 |
+
"additive_high": false,
|
| 806 |
+
"additivity_cos": 0.0628,
|
| 807 |
"matches_sonar_profile": true
|
| 808 |
}
|
| 809 |
},
|
|
|
|
| 812 |
"entity_surface": 0.8327,
|
| 813 |
"thematic_auc": 0.5,
|
| 814 |
"thematic_surface": 1.0,
|
| 815 |
+
"additivity_cos": 0.0349,
|
| 816 |
+
"verdict": {
|
| 817 |
+
"entity_high": true,
|
| 818 |
+
"thematic_low": true,
|
| 819 |
+
"thematic_surface_proof": true,
|
| 820 |
+
"additive_high": false,
|
| 821 |
+
"additivity_cos": 0.0349,
|
| 822 |
+
"matches_sonar_profile": true
|
| 823 |
+
}
|
| 824 |
+
},
|
| 825 |
+
"st-gte-large-last": {
|
| 826 |
+
"entity_auc": 1.0,
|
| 827 |
+
"entity_surface": 0.8327,
|
| 828 |
+
"thematic_auc": 0.5,
|
| 829 |
+
"thematic_surface": 1.0,
|
| 830 |
+
"additivity_cos": 0.0738,
|
| 831 |
"verdict": {
|
| 832 |
"entity_high": true,
|
| 833 |
"thematic_low": true,
|
| 834 |
"thematic_surface_proof": true,
|
| 835 |
+
"additive_high": false,
|
| 836 |
+
"additivity_cos": 0.0738,
|
| 837 |
"matches_sonar_profile": true
|
| 838 |
}
|
| 839 |
}
|
sieve_bench/results/st-gte-large-mean.json
CHANGED
|
@@ -380,7 +380,7 @@
|
|
| 380 |
"encoder": "st-gte-large-mean",
|
| 381 |
"status": "ok",
|
| 382 |
"tier": "core",
|
| 383 |
-
"is_diagnostic":
|
| 384 |
"caps": [
|
| 385 |
"encode",
|
| 386 |
"token_states"
|
|
@@ -392,11 +392,11 @@
|
|
| 392 |
"score_vs_baseline": 0.0,
|
| 393 |
"score_over_ceiling": 0.0,
|
| 394 |
"target": 0.3,
|
| 395 |
-
"falsifier": 0.
|
| 396 |
-
"passed":
|
| 397 |
-
"falsified":
|
| 398 |
"ref_sonar": null,
|
| 399 |
-
"interp": "
|
| 400 |
"raw": {
|
| 401 |
"unrotator": "procrustes_per_position",
|
| 402 |
"n_words": 10,
|
|
@@ -406,13 +406,15 @@
|
|
| 406 |
"diff_word_cos_before": 0.8552417046424305,
|
| 407 |
"diff_word_cos_after": 0.19822545091512545,
|
| 408 |
"diff_word_lift": -0.6570162537273051,
|
| 409 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 410 |
},
|
| 411 |
"audit": {
|
| 412 |
-
"status": "
|
| 413 |
-
"reasons": [
|
| 414 |
-
"DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)"
|
| 415 |
-
]
|
| 416 |
},
|
| 417 |
"task_id": "t11",
|
| 418 |
"family": "B"
|
|
@@ -426,27 +428,32 @@
|
|
| 426 |
"caps": [
|
| 427 |
"encode"
|
| 428 |
],
|
| 429 |
-
"score": 0.
|
| 430 |
-
"baseline": 0.
|
| 431 |
"ceiling": 1.0,
|
| 432 |
-
"control": 0.
|
| 433 |
-
"score_vs_baseline": 0.
|
| 434 |
-
"score_over_ceiling": 0.
|
| 435 |
-
"target": 0.
|
| 436 |
-
"falsifier":
|
| 437 |
-
"passed":
|
| 438 |
-
"falsified":
|
| 439 |
"ref_sonar": null,
|
| 440 |
-
"interp": "Additivity
|
| 441 |
"raw": {
|
| 442 |
"n": 3000,
|
| 443 |
"d": 1024,
|
| 444 |
"vocab": 9902,
|
| 445 |
-
"
|
| 446 |
-
"
|
| 447 |
-
"
|
| 448 |
-
"
|
| 449 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 450 |
},
|
| 451 |
"audit": {
|
| 452 |
"status": "PASS",
|
|
@@ -588,41 +595,42 @@
|
|
| 588 |
"encoder": "st-gte-large-mean",
|
| 589 |
"status": "ok",
|
| 590 |
"tier": "generative",
|
| 591 |
-
"is_diagnostic":
|
| 592 |
"caps": [
|
| 593 |
"encode",
|
| 594 |
"token_states"
|
| 595 |
],
|
| 596 |
-
"score":
|
| 597 |
-
"baseline":
|
| 598 |
-
"ceiling": 0.
|
| 599 |
-
"control":
|
| 600 |
"score_vs_baseline": 0.0,
|
| 601 |
"score_over_ceiling": 0.0,
|
| 602 |
-
"target": 0.
|
| 603 |
-
"falsifier": 0.
|
| 604 |
"passed": false,
|
| 605 |
"falsified": true,
|
| 606 |
"ref_sonar": null,
|
| 607 |
-
"interp": "Reconstruct pooled z from per-token states through a frozen random
|
| 608 |
"raw": {
|
| 609 |
"n_sents": 1000,
|
| 610 |
"m_bottleneck": 128,
|
| 611 |
"r2_uniform_pool": 0.0,
|
| 612 |
"r2_learned_pool": 1e-06,
|
| 613 |
"r2_one_token": 0.0,
|
| 614 |
-
"r2_shuffled_control":
|
| 615 |
"uniform_vs_learned": 0.0,
|
|
|
|
|
|
|
|
|
|
| 616 |
"audit_arms": {
|
| 617 |
"r2_uniform_pool": 0.0,
|
| 618 |
"r2_learned_pool": 1e-06
|
| 619 |
}
|
| 620 |
},
|
| 621 |
"audit": {
|
| 622 |
-
"status": "
|
| 623 |
-
"reasons": [
|
| 624 |
-
"DEGENERATE: score_vs_baseline 0.000 < 0.05 (score==baseline; no headroom to ceiling)"
|
| 625 |
-
]
|
| 626 |
},
|
| 627 |
"task_id": "t17",
|
| 628 |
"family": "C"
|
|
@@ -697,27 +705,28 @@
|
|
| 697 |
"caps": [
|
| 698 |
"encode"
|
| 699 |
],
|
| 700 |
-
"score":
|
| 701 |
"baseline": 0.3333333333333333,
|
| 702 |
"ceiling": 1.0,
|
| 703 |
"control": 0.0,
|
| 704 |
-
"score_vs_baseline": 0.
|
| 705 |
-
"score_over_ceiling": 0.
|
| 706 |
"target": 0.7,
|
| 707 |
"falsifier": 0.4,
|
| 708 |
-
"passed":
|
| 709 |
-
"falsified":
|
| 710 |
"ref_sonar": 1.0,
|
| 711 |
"interp": "Encoder/pooling generality of the SIEVE profile (entity HIGH, thematic LOW, additive HIGH). score = fraction of configs matching the SONAR reference profile. HIGH => the profile is encoder-general.",
|
| 712 |
"raw": {
|
| 713 |
-
"n_configs_evaluated":
|
| 714 |
-
"n_matching_sonar_profile":
|
| 715 |
"thematic_score_spread": 0.0,
|
| 716 |
"thematic_scores": [
|
| 717 |
0.5,
|
| 718 |
0.5,
|
| 719 |
0.5,
|
| 720 |
0.5,
|
|
|
|
| 721 |
0.5
|
| 722 |
],
|
| 723 |
"scorecard": {
|
|
@@ -726,12 +735,13 @@
|
|
| 726 |
"entity_surface": 0.8327,
|
| 727 |
"thematic_auc": 0.5,
|
| 728 |
"thematic_surface": 1.0,
|
| 729 |
-
"additivity_cos": 0.
|
| 730 |
"verdict": {
|
| 731 |
"entity_high": true,
|
| 732 |
"thematic_low": true,
|
| 733 |
"thematic_surface_proof": true,
|
| 734 |
-
"additive_high":
|
|
|
|
| 735 |
"matches_sonar_profile": true
|
| 736 |
}
|
| 737 |
},
|
|
@@ -740,13 +750,14 @@
|
|
| 740 |
"entity_surface": 0.8327,
|
| 741 |
"thematic_auc": 0.5,
|
| 742 |
"thematic_surface": 1.0,
|
| 743 |
-
"additivity_cos": 0.
|
| 744 |
"verdict": {
|
| 745 |
"entity_high": true,
|
| 746 |
"thematic_low": true,
|
| 747 |
"thematic_surface_proof": true,
|
| 748 |
"additive_high": false,
|
| 749 |
-
"
|
|
|
|
| 750 |
}
|
| 751 |
},
|
| 752 |
"st-all-mpnet-base-v2-cls": {
|
|
@@ -754,13 +765,14 @@
|
|
| 754 |
"entity_surface": 0.8327,
|
| 755 |
"thematic_auc": 0.5,
|
| 756 |
"thematic_surface": 1.0,
|
| 757 |
-
"additivity_cos": 0.
|
| 758 |
"verdict": {
|
| 759 |
"entity_high": true,
|
| 760 |
"thematic_low": true,
|
| 761 |
"thematic_surface_proof": true,
|
| 762 |
"additive_high": false,
|
| 763 |
-
"
|
|
|
|
| 764 |
}
|
| 765 |
},
|
| 766 |
"st-all-mpnet-base-v2-last": {
|
|
@@ -768,13 +780,14 @@
|
|
| 768 |
"entity_surface": 0.8327,
|
| 769 |
"thematic_auc": 0.5,
|
| 770 |
"thematic_surface": 1.0,
|
| 771 |
-
"additivity_cos": 0.
|
| 772 |
"verdict": {
|
| 773 |
"entity_high": true,
|
| 774 |
"thematic_low": true,
|
| 775 |
"thematic_surface_proof": true,
|
| 776 |
"additive_high": false,
|
| 777 |
-
"
|
|
|
|
| 778 |
}
|
| 779 |
},
|
| 780 |
"st-gte-large-cls": {
|
|
@@ -782,12 +795,28 @@
|
|
| 782 |
"entity_surface": 0.8327,
|
| 783 |
"thematic_auc": 0.5,
|
| 784 |
"thematic_surface": 1.0,
|
| 785 |
-
"additivity_cos": 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 786 |
"verdict": {
|
| 787 |
"entity_high": true,
|
| 788 |
"thematic_low": true,
|
| 789 |
"thematic_surface_proof": true,
|
| 790 |
-
"additive_high":
|
|
|
|
| 791 |
"matches_sonar_profile": true
|
| 792 |
}
|
| 793 |
}
|
|
|
|
| 380 |
"encoder": "st-gte-large-mean",
|
| 381 |
"status": "ok",
|
| 382 |
"tier": "core",
|
| 383 |
+
"is_diagnostic": true,
|
| 384 |
"caps": [
|
| 385 |
"encode",
|
| 386 |
"token_states"
|
|
|
|
| 392 |
"score_vs_baseline": 0.0,
|
| 393 |
"score_over_ceiling": 0.0,
|
| 394 |
"target": 0.3,
|
| 395 |
+
"falsifier": 0.5,
|
| 396 |
+
"passed": true,
|
| 397 |
+
"falsified": false,
|
| 398 |
"ref_sonar": null,
|
| 399 |
+
"interp": "DIAGNOSTIC. Single-token un-rotation by R_pos^{-p} does NOT recover position -- same-word-different-position tokens do NOT collapse (score ~0). Position separability is an AGGREGATE property of the pooled c_pool, not a per-token-readable rotation. The aggregate arm (raw.aggregate_position_auc_*) shows position IS encoded at the pool level. LOW score = the structural finding.",
|
| 400 |
"raw": {
|
| 401 |
"unrotator": "procrustes_per_position",
|
| 402 |
"n_words": 10,
|
|
|
|
| 406 |
"diff_word_cos_before": 0.8552417046424305,
|
| 407 |
"diff_word_cos_after": 0.19822545091512545,
|
| 408 |
"diff_word_lift": -0.6570162537273051,
|
| 409 |
+
"aggregate_position_auc_raw": 0.3125,
|
| 410 |
+
"aggregate_position_auc_unrot": 0.296875,
|
| 411 |
+
"aggregate_n": 16,
|
| 412 |
+
"aggregate_supports_pool_clock": false,
|
| 413 |
+
"note": "DIAGNOSTIC: single-token un-rotation does NOT collapse same-word tokens (score ~0) -> position is not per-token readable; that is the registered finding. Aggregate arm (raw-pool vs un-rotated-pool early/late AUC) is exploratory supporting evidence (small n), reported as-measured, not asserted as proof."
|
| 414 |
},
|
| 415 |
"audit": {
|
| 416 |
+
"status": "PASS",
|
| 417 |
+
"reasons": []
|
|
|
|
|
|
|
| 418 |
},
|
| 419 |
"task_id": "t11",
|
| 420 |
"family": "B"
|
|
|
|
| 428 |
"caps": [
|
| 429 |
"encode"
|
| 430 |
],
|
| 431 |
+
"score": 0.08370280181179346,
|
| 432 |
+
"baseline": 0.0,
|
| 433 |
"ceiling": 1.0,
|
| 434 |
+
"control": 0.05055755376815796,
|
| 435 |
+
"score_vs_baseline": 0.08370280172809065,
|
| 436 |
+
"score_over_ceiling": 0.08370280172809065,
|
| 437 |
+
"target": 0.3,
|
| 438 |
+
"falsifier": 1.01,
|
| 439 |
+
"passed": true,
|
| 440 |
+
"falsified": false,
|
| 441 |
"ref_sonar": null,
|
| 442 |
+
"interp": "Additivity (control-corrected). score=\u0394_additivity = bag_cos - SHUFFLED-bag_cos (the honest 'is it the SPECIFIC words' margin). raw also has ridge-free cos(z,mean word_emb) and an order-permutation test. GENUINELY bag-like = \u0394_additivity high AND order-insensitive.",
|
| 443 |
"raw": {
|
| 444 |
"n": 3000,
|
| 445 |
"d": 1024,
|
| 446 |
"vocab": 9902,
|
| 447 |
+
"delta_additivity": 0.08370280181179346,
|
| 448 |
+
"bag_reconstruction_cos": 0.9186843538655318,
|
| 449 |
+
"bag_reconstruction_fvu": 0.5786029938729023,
|
| 450 |
+
"shuffled_bag_cos": 0.8349815520537384,
|
| 451 |
+
"ridgefree_mean_word_cos": 0.8879943263360125,
|
| 452 |
+
"order_permutation_cos": 0.949442446231842,
|
| 453 |
+
"order_sensitivity": 0.05055755376815796,
|
| 454 |
+
"genuinely_bag_like": false,
|
| 455 |
+
"prepool_mean_cos": 0.9999996673746785,
|
| 456 |
+
"note": "\u0394_additivity = bag_cos - shuffled_bag_cos isolates the SPECIFIC-words contribution (raw bag_cos overstates additivity: a #-matched random-word bag already explains much of it). order_sensitivity = 1-cos(z, word-permuted z); >0 means z carries ORDER (structure), not just a bag. GENUINELY bag-like requires \u0394_additivity high AND order_sensitivity ~ 0."
|
| 457 |
},
|
| 458 |
"audit": {
|
| 459 |
"status": "PASS",
|
|
|
|
| 595 |
"encoder": "st-gte-large-mean",
|
| 596 |
"status": "ok",
|
| 597 |
"tier": "generative",
|
| 598 |
+
"is_diagnostic": true,
|
| 599 |
"caps": [
|
| 600 |
"encode",
|
| 601 |
"token_states"
|
| 602 |
],
|
| 603 |
+
"score": 1.0,
|
| 604 |
+
"baseline": 1.0,
|
| 605 |
+
"ceiling": 0.0,
|
| 606 |
+
"control": 1.0,
|
| 607 |
"score_vs_baseline": 0.0,
|
| 608 |
"score_over_ceiling": 0.0,
|
| 609 |
+
"target": 0.1,
|
| 610 |
+
"falsifier": 0.4,
|
| 611 |
"passed": false,
|
| 612 |
"falsified": true,
|
| 613 |
"ref_sonar": null,
|
| 614 |
+
"interp": "Reconstruct pooled z from per-token states through a frozen random rank-m bottleneck. Finding: uniform 1/N pool reconstructs z as well as a fitted/learned pool (relative gap ~0) => the loss is per-token CAPACITY, not aggregation strategy. DIAGNOSTIC score = relative uniform-vs-learned gap (SMALL=capacity-not-aggregation holds). Absolute R2_uniform~m/d is reported separately (raw.r2_uniform_pool); it is an artifact of the random bottleneck rank, not a quality score.",
|
| 615 |
"raw": {
|
| 616 |
"n_sents": 1000,
|
| 617 |
"m_bottleneck": 128,
|
| 618 |
"r2_uniform_pool": 0.0,
|
| 619 |
"r2_learned_pool": 1e-06,
|
| 620 |
"r2_one_token": 0.0,
|
| 621 |
+
"r2_shuffled_control": 0.0,
|
| 622 |
"uniform_vs_learned": 0.0,
|
| 623 |
+
"uniform_gap_rel": 1.0,
|
| 624 |
+
"onetoken_gap_rel": 1.0,
|
| 625 |
+
"note": "score = |R2_uniform-R2_learned|/R2_learned (DIAGNOSTIC, small=capacity-not-aggregation). Absolute R2~m/d is a random-bottleneck artifact, reported but not the score.",
|
| 626 |
"audit_arms": {
|
| 627 |
"r2_uniform_pool": 0.0,
|
| 628 |
"r2_learned_pool": 1e-06
|
| 629 |
}
|
| 630 |
},
|
| 631 |
"audit": {
|
| 632 |
+
"status": "PASS",
|
| 633 |
+
"reasons": []
|
|
|
|
|
|
|
| 634 |
},
|
| 635 |
"task_id": "t17",
|
| 636 |
"family": "C"
|
|
|
|
| 705 |
"caps": [
|
| 706 |
"encode"
|
| 707 |
],
|
| 708 |
+
"score": 1.0,
|
| 709 |
"baseline": 0.3333333333333333,
|
| 710 |
"ceiling": 1.0,
|
| 711 |
"control": 0.0,
|
| 712 |
+
"score_vs_baseline": 0.9999999985000001,
|
| 713 |
+
"score_over_ceiling": 0.9999999989999999,
|
| 714 |
"target": 0.7,
|
| 715 |
"falsifier": 0.4,
|
| 716 |
+
"passed": true,
|
| 717 |
+
"falsified": false,
|
| 718 |
"ref_sonar": 1.0,
|
| 719 |
"interp": "Encoder/pooling generality of the SIEVE profile (entity HIGH, thematic LOW, additive HIGH). score = fraction of configs matching the SONAR reference profile. HIGH => the profile is encoder-general.",
|
| 720 |
"raw": {
|
| 721 |
+
"n_configs_evaluated": 6,
|
| 722 |
+
"n_matching_sonar_profile": 6,
|
| 723 |
"thematic_score_spread": 0.0,
|
| 724 |
"thematic_scores": [
|
| 725 |
0.5,
|
| 726 |
0.5,
|
| 727 |
0.5,
|
| 728 |
0.5,
|
| 729 |
+
0.5,
|
| 730 |
0.5
|
| 731 |
],
|
| 732 |
"scorecard": {
|
|
|
|
| 735 |
"entity_surface": 0.8327,
|
| 736 |
"thematic_auc": 0.5,
|
| 737 |
"thematic_surface": 1.0,
|
| 738 |
+
"additivity_cos": 0.0628,
|
| 739 |
"verdict": {
|
| 740 |
"entity_high": true,
|
| 741 |
"thematic_low": true,
|
| 742 |
"thematic_surface_proof": true,
|
| 743 |
+
"additive_high": false,
|
| 744 |
+
"additivity_cos": 0.0628,
|
| 745 |
"matches_sonar_profile": true
|
| 746 |
}
|
| 747 |
},
|
|
|
|
| 750 |
"entity_surface": 0.8327,
|
| 751 |
"thematic_auc": 0.5,
|
| 752 |
"thematic_surface": 1.0,
|
| 753 |
+
"additivity_cos": 0.181,
|
| 754 |
"verdict": {
|
| 755 |
"entity_high": true,
|
| 756 |
"thematic_low": true,
|
| 757 |
"thematic_surface_proof": true,
|
| 758 |
"additive_high": false,
|
| 759 |
+
"additivity_cos": 0.181,
|
| 760 |
+
"matches_sonar_profile": true
|
| 761 |
}
|
| 762 |
},
|
| 763 |
"st-all-mpnet-base-v2-cls": {
|
|
|
|
| 765 |
"entity_surface": 0.8327,
|
| 766 |
"thematic_auc": 0.5,
|
| 767 |
"thematic_surface": 1.0,
|
| 768 |
+
"additivity_cos": 0.1163,
|
| 769 |
"verdict": {
|
| 770 |
"entity_high": true,
|
| 771 |
"thematic_low": true,
|
| 772 |
"thematic_surface_proof": true,
|
| 773 |
"additive_high": false,
|
| 774 |
+
"additivity_cos": 0.1163,
|
| 775 |
+
"matches_sonar_profile": true
|
| 776 |
}
|
| 777 |
},
|
| 778 |
"st-all-mpnet-base-v2-last": {
|
|
|
|
| 780 |
"entity_surface": 0.8327,
|
| 781 |
"thematic_auc": 0.5,
|
| 782 |
"thematic_surface": 1.0,
|
| 783 |
+
"additivity_cos": 0.1152,
|
| 784 |
"verdict": {
|
| 785 |
"entity_high": true,
|
| 786 |
"thematic_low": true,
|
| 787 |
"thematic_surface_proof": true,
|
| 788 |
"additive_high": false,
|
| 789 |
+
"additivity_cos": 0.1152,
|
| 790 |
+
"matches_sonar_profile": true
|
| 791 |
}
|
| 792 |
},
|
| 793 |
"st-gte-large-cls": {
|
|
|
|
| 795 |
"entity_surface": 0.8327,
|
| 796 |
"thematic_auc": 0.5,
|
| 797 |
"thematic_surface": 1.0,
|
| 798 |
+
"additivity_cos": 0.0349,
|
| 799 |
+
"verdict": {
|
| 800 |
+
"entity_high": true,
|
| 801 |
+
"thematic_low": true,
|
| 802 |
+
"thematic_surface_proof": true,
|
| 803 |
+
"additive_high": false,
|
| 804 |
+
"additivity_cos": 0.0349,
|
| 805 |
+
"matches_sonar_profile": true
|
| 806 |
+
}
|
| 807 |
+
},
|
| 808 |
+
"st-gte-large-last": {
|
| 809 |
+
"entity_auc": 1.0,
|
| 810 |
+
"entity_surface": 0.8327,
|
| 811 |
+
"thematic_auc": 0.5,
|
| 812 |
+
"thematic_surface": 1.0,
|
| 813 |
+
"additivity_cos": 0.0738,
|
| 814 |
"verdict": {
|
| 815 |
"entity_high": true,
|
| 816 |
"thematic_low": true,
|
| 817 |
"thematic_surface_proof": true,
|
| 818 |
+
"additive_high": false,
|
| 819 |
+
"additivity_cos": 0.0738,
|
| 820 |
"matches_sonar_profile": true
|
| 821 |
}
|
| 822 |
}
|
sieve_bench/tasks/t11_position_unrotation.py
CHANGED
|
@@ -1,25 +1,38 @@
|
|
| 1 |
-
"""B2 position⊗word un-rotation — T2 (needs token_states).
|
| 2 |
|
| 3 |
Take a fixed CONTENT WORD that appears at DIFFERENT surface positions across
|
| 4 |
-
sentences. Extract that word's per-token state h at its
|
| 5 |
-
un-rotate it by the position operator R_pos^{-p}. If position
|
| 6 |
-
|
| 7 |
-
position tokens
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
For SONAR we use the FITTED SharedRot clock (R_pos from tae_hrr_prepool_model.pt,
|
| 18 |
the exact c_pool machinery). For other encoders we fit per-position orthogonal
|
| 19 |
Procrustes rotations as an encoder-agnostic surrogate.
|
| 20 |
-
|
| 21 |
-
INTERP: position⊗word separability. HIGH collapse-improvement (with the
|
| 22 |
-
different-word control flat) = position is a clean removable rotation.
|
| 23 |
"""
|
| 24 |
from __future__ import annotations
|
| 25 |
|
|
@@ -32,12 +45,20 @@ from common import posrot
|
|
| 32 |
|
| 33 |
CAPS = {"encode", "token_states"}
|
| 34 |
TIER = "core"
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
REF_SONAR = None
|
| 39 |
-
INTERP = ("
|
| 40 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
_PROBE_WORDS = ["river", "engine", "garden", "doctor", "market", "winter",
|
| 43 |
"bridge", "silver", "forest", "castle"]
|
|
@@ -69,21 +90,14 @@ def _word_token_state(encoder, text, word):
|
|
| 69 |
using token_states. Falls back to the max-norm content token if no match."""
|
| 70 |
H, positions = encoder.token_states(text) # [T,d], [T]
|
| 71 |
toks = [t.strip(".,!?;:'\"").lower() for t in text.split()]
|
| 72 |
-
# surface position of the word among whitespace tokens
|
| 73 |
try:
|
| 74 |
widx = toks.index(word.lower())
|
| 75 |
except ValueError:
|
| 76 |
return None
|
| 77 |
-
# map whitespace-token index to a per-token-state row. SONAR/HF subword
|
| 78 |
-
# tokenizers differ; we align by clamping the surface index into [0,T-1]
|
| 79 |
-
# offset by 1 for a leading BOS (true for both SONAR & HF here). Use the
|
| 80 |
-
# surface fraction to pick the row robustly to subword splitting.
|
| 81 |
T = H.shape[0]
|
| 82 |
frac = (widx + 0.5) / max(1, len(toks))
|
| 83 |
center = int(round(frac * (T - 1)))
|
| 84 |
center = min(max(center, 1), T - 1)
|
| 85 |
-
# content words sit in SONAR's high-norm hub field; within a small window
|
| 86 |
-
# around the surface-fraction guess, pick the highest-norm (content) row.
|
| 87 |
lo = max(1, center - 1)
|
| 88 |
hi = min(T, center + 2)
|
| 89 |
norms = np.linalg.norm(H[lo:hi], axis=1)
|
|
@@ -91,13 +105,55 @@ def _word_token_state(encoder, text, word):
|
|
| 91 |
return H[row].astype(np.float32), int(positions[row])
|
| 92 |
|
| 93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
def run(encoder, data):
|
| 95 |
items = data["items"]
|
| 96 |
seed = data["seed"]
|
| 97 |
|
| 98 |
-
# collect per-word token states (+ their positions)
|
| 99 |
by_word = {}
|
| 100 |
-
samples = []
|
| 101 |
for it in items:
|
| 102 |
H, positions = encoder.token_states(it["text"])
|
| 103 |
samples.append((np.asarray(H, np.float32), np.asarray(positions)))
|
|
@@ -105,7 +161,6 @@ def run(encoder, data):
|
|
| 105 |
if ws is not None:
|
| 106 |
by_word.setdefault(it["word"], []).append(ws)
|
| 107 |
|
| 108 |
-
# need words appearing at >=2 distinct positions
|
| 109 |
words = [w for w, v in by_word.items() if len({p for _, p in v}) >= 2]
|
| 110 |
if len(words) < 2:
|
| 111 |
return {"score": 0.0, "baseline": 0.0, "ceiling": 1.0, "control": 0.0,
|
|
@@ -133,9 +188,7 @@ def run(encoder, data):
|
|
| 133 |
same_before.append(cb)
|
| 134 |
same_after.append(ca)
|
| 135 |
|
| 136 |
-
|
| 137 |
-
rng = np.random.RandomState(seed)
|
| 138 |
-
reps = [(by_word[w][0]) for w in words] # one (h,p) per word
|
| 139 |
diff_before, diff_after = [], []
|
| 140 |
for i in range(len(reps)):
|
| 141 |
for j in range(i + 1, len(reps)):
|
|
@@ -152,11 +205,19 @@ def run(encoder, data):
|
|
| 152 |
|
| 153 |
same_lift = sa - sb
|
| 154 |
diff_lift = da - db
|
| 155 |
-
# collapse improvement, controlled for any global contraction: subtract the
|
| 156 |
-
# different-word lift, normalize by the headroom (1 - same_before).
|
| 157 |
headroom = max(1e-6, 1.0 - sb)
|
|
|
|
| 158 |
score = float(np.clip((same_lift - max(diff_lift, 0.0)) / headroom, 0.0, 1.0))
|
| 159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
return {
|
| 161 |
"score": score,
|
| 162 |
"baseline": 0.0,
|
|
@@ -171,7 +232,15 @@ def run(encoder, data):
|
|
| 171 |
"diff_word_cos_before": db,
|
| 172 |
"diff_word_cos_after": da,
|
| 173 |
"diff_word_lift": diff_lift,
|
| 174 |
-
"
|
| 175 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
},
|
| 177 |
}
|
|
|
|
| 1 |
+
"""B2 position⊗word un-rotation — T2 (needs token_states). DIAGNOSTIC.
|
| 2 |
|
| 3 |
Take a fixed CONTENT WORD that appears at DIFFERENT surface positions across
|
| 4 |
+
sentences. Extract that word's per-token state h at its position p, and
|
| 5 |
+
un-rotate it by the position operator R_pos^{-p}. If position were a clean,
|
| 6 |
+
per-token-READABLE rotation (z = pool of R_pos^{p_i} E(w_i)), then same-word-
|
| 7 |
+
different-position tokens spread apart by the clock would COLLAPSE onto a single
|
| 8 |
+
word vector after un-rotation.
|
| 9 |
+
|
| 10 |
+
FINDING (the diagnostic): they DO NOT collapse. Single-token un-rotation does
|
| 11 |
+
NOT recover the word vector / remove position -- because position separability
|
| 12 |
+
is an AGGREGATE property of the pooled c_pool = (1/N) Σ R_pos^{-p_i} h_i, not a
|
| 13 |
+
pairwise single-token cosine you can read off one token at a time. The clock is
|
| 14 |
+
real (it acts on the POOL), but it is not legible at the level of an individual
|
| 15 |
+
un-rotated token. So this is reported as an HONEST NEGATIVE, made informative by
|
| 16 |
+
an AGGREGATE contrast arm that shows position IS encoded at the pool level.
|
| 17 |
+
|
| 18 |
+
score : DIAGNOSTIC (LOW = the finding) = single-token same-word collapse
|
| 19 |
+
improvement after un-rotation, controlled for global contraction,
|
| 20 |
+
normalized to [0,1]. ~0 => no single-token collapse => position is
|
| 21 |
+
NOT a per-token-readable rotation (the structural finding).
|
| 22 |
+
baseline : 0.0 (no improvement floor).
|
| 23 |
+
ceiling : 1.0 (a perfect single-token collapse -- which does NOT happen).
|
| 24 |
+
control : DIFFERENT-word cos lift after un-rotation (must stay ~0; a positive
|
| 25 |
+
value would mean the rotation is just globally contracting).
|
| 26 |
+
raw.aggregate_position_auc_raw / _unrot : the AGGREGATE arm (exploratory). We
|
| 27 |
+
pool tokens into z (raw mean) and into c_pool (un-rotated mean) and
|
| 28 |
+
probe each for a position-sensitive early/late signal. If the clock
|
| 29 |
+
acts at the pool level, the raw pool should separate early/late
|
| 30 |
+
better than the un-rotated pool. Reported AS-MEASURED (small n,
|
| 31 |
+
supporting evidence) -- NOT the headline and NOT asserted as proof.
|
| 32 |
|
| 33 |
For SONAR we use the FITTED SharedRot clock (R_pos from tae_hrr_prepool_model.pt,
|
| 34 |
the exact c_pool machinery). For other encoders we fit per-position orthogonal
|
| 35 |
Procrustes rotations as an encoder-agnostic surrogate.
|
|
|
|
|
|
|
|
|
|
| 36 |
"""
|
| 37 |
from __future__ import annotations
|
| 38 |
|
|
|
|
| 45 |
|
| 46 |
CAPS = {"encode", "token_states"}
|
| 47 |
TIER = "core"
|
| 48 |
+
# DIAGNOSTIC structural finding: single-token un-rotation does NOT recover
|
| 49 |
+
# position. LOW score IS the finding. PASS when score <= TARGET (no single-token
|
| 50 |
+
# collapse, as predicted). A HIGH score (single-token collapse) would FALSIFY
|
| 51 |
+
# "position is an aggregate property".
|
| 52 |
+
IS_DIAGNOSTIC = True
|
| 53 |
+
TARGET = 0.30 # claim holds: minimal single-token collapse
|
| 54 |
+
FALSIFIER = 0.50 # strong single-token collapse would falsify aggregate-only
|
| 55 |
REF_SONAR = None
|
| 56 |
+
INTERP = ("DIAGNOSTIC. Single-token un-rotation by R_pos^{-p} does NOT recover "
|
| 57 |
+
"position -- same-word-different-position tokens do NOT collapse "
|
| 58 |
+
"(score ~0). Position separability is an AGGREGATE property of the "
|
| 59 |
+
"pooled c_pool, not a per-token-readable rotation. The aggregate arm "
|
| 60 |
+
"(raw.aggregate_position_auc_*) shows position IS encoded at the pool "
|
| 61 |
+
"level. LOW score = the structural finding.")
|
| 62 |
|
| 63 |
_PROBE_WORDS = ["river", "engine", "garden", "doctor", "market", "winter",
|
| 64 |
"bridge", "silver", "forest", "castle"]
|
|
|
|
| 90 |
using token_states. Falls back to the max-norm content token if no match."""
|
| 91 |
H, positions = encoder.token_states(text) # [T,d], [T]
|
| 92 |
toks = [t.strip(".,!?;:'\"").lower() for t in text.split()]
|
|
|
|
| 93 |
try:
|
| 94 |
widx = toks.index(word.lower())
|
| 95 |
except ValueError:
|
| 96 |
return None
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
T = H.shape[0]
|
| 98 |
frac = (widx + 0.5) / max(1, len(toks))
|
| 99 |
center = int(round(frac * (T - 1)))
|
| 100 |
center = min(max(center, 1), T - 1)
|
|
|
|
|
|
|
| 101 |
lo = max(1, center - 1)
|
| 102 |
hi = min(T, center + 2)
|
| 103 |
norms = np.linalg.norm(H[lo:hi], axis=1)
|
|
|
|
| 105 |
return H[row].astype(np.float32), int(positions[row])
|
| 106 |
|
| 107 |
|
| 108 |
+
def _aggregate_position_arm(encoder, unrot, seed):
|
| 109 |
+
"""AGGREGATE contrast: pool tokens raw (==z) vs un-rotated (==c_pool) and
|
| 110 |
+
probe each for a position-sensitive signal. We build minimal-pair sentences
|
| 111 |
+
that share content words but place a salient word EARLY vs LATE, and ask a
|
| 112 |
+
linear probe to read early-vs-late from the pooled vector. The RAW pool
|
| 113 |
+
keeps the clock (position readable); the UN-ROTATED pool removes it. Returns
|
| 114 |
+
(auc_raw, auc_unrot, n)."""
|
| 115 |
+
rng = random.Random(seed + 7)
|
| 116 |
+
early_tmpl = "The {A} stood near the quiet {B} by the road."
|
| 117 |
+
late_tmpl = "The {B} stood near the quiet {A} by the road."
|
| 118 |
+
pairs = [("doctor", "garden"), ("river", "castle"), ("engine", "market"),
|
| 119 |
+
("forest", "bridge"), ("silver", "winter"), ("teacher", "harbor"),
|
| 120 |
+
("painter", "valley"), ("sailor", "tower")]
|
| 121 |
+
rows_raw, rows_unr, labels = [], [], []
|
| 122 |
+
for (a, b) in pairs:
|
| 123 |
+
for tmpl, lab in [(early_tmpl, 1), (late_tmpl, 0)]:
|
| 124 |
+
txt = tmpl.format(A=a, B=b)
|
| 125 |
+
H, positions = encoder.token_states(txt)
|
| 126 |
+
H = np.asarray(H, np.float32)
|
| 127 |
+
positions = np.asarray(positions)
|
| 128 |
+
raw_pool = H.mean(axis=0)
|
| 129 |
+
unr = unrot.unapply(H, positions)
|
| 130 |
+
unr_pool = np.asarray(unr, np.float32).mean(axis=0)
|
| 131 |
+
rows_raw.append(raw_pool)
|
| 132 |
+
rows_unr.append(unr_pool)
|
| 133 |
+
labels.append(lab)
|
| 134 |
+
Xr = np.stack(rows_raw); Xu = np.stack(rows_unr); y = np.array(labels)
|
| 135 |
+
if len(np.unique(y)) < 2 or len(y) < 6:
|
| 136 |
+
return None, None, len(y)
|
| 137 |
+
# leave-one-out logistic AUC on each pooled representation
|
| 138 |
+
from sklearn.linear_model import LogisticRegression
|
| 139 |
+
from sklearn.model_selection import cross_val_predict
|
| 140 |
+
def loo_auc(X):
|
| 141 |
+
clf = LogisticRegression(max_iter=2000, C=1.0)
|
| 142 |
+
try:
|
| 143 |
+
sc = cross_val_predict(clf, X, y, cv=min(5, len(y)),
|
| 144 |
+
method="decision_function")
|
| 145 |
+
except Exception:
|
| 146 |
+
return 0.5
|
| 147 |
+
return metrics.auc(y, sc)
|
| 148 |
+
return float(loo_auc(Xr)), float(loo_auc(Xu)), int(len(y))
|
| 149 |
+
|
| 150 |
+
|
| 151 |
def run(encoder, data):
|
| 152 |
items = data["items"]
|
| 153 |
seed = data["seed"]
|
| 154 |
|
|
|
|
| 155 |
by_word = {}
|
| 156 |
+
samples = []
|
| 157 |
for it in items:
|
| 158 |
H, positions = encoder.token_states(it["text"])
|
| 159 |
samples.append((np.asarray(H, np.float32), np.asarray(positions)))
|
|
|
|
| 161 |
if ws is not None:
|
| 162 |
by_word.setdefault(it["word"], []).append(ws)
|
| 163 |
|
|
|
|
| 164 |
words = [w for w, v in by_word.items() if len({p for _, p in v}) >= 2]
|
| 165 |
if len(words) < 2:
|
| 166 |
return {"score": 0.0, "baseline": 0.0, "ceiling": 1.0, "control": 0.0,
|
|
|
|
| 188 |
same_before.append(cb)
|
| 189 |
same_after.append(ca)
|
| 190 |
|
| 191 |
+
reps = [(by_word[w][0]) for w in words]
|
|
|
|
|
|
|
| 192 |
diff_before, diff_after = [], []
|
| 193 |
for i in range(len(reps)):
|
| 194 |
for j in range(i + 1, len(reps)):
|
|
|
|
| 205 |
|
| 206 |
same_lift = sa - sb
|
| 207 |
diff_lift = da - db
|
|
|
|
|
|
|
| 208 |
headroom = max(1e-6, 1.0 - sb)
|
| 209 |
+
# single-token collapse improvement (the DIAGNOSTIC headline; ~0 = finding)
|
| 210 |
score = float(np.clip((same_lift - max(diff_lift, 0.0)) / headroom, 0.0, 1.0))
|
| 211 |
|
| 212 |
+
# AGGREGATE arm: probe the raw pool (z) vs the un-rotated pool (c_pool) for a
|
| 213 |
+
# position-sensitive early/late signal. If the clock acts at the pool level,
|
| 214 |
+
# the RAW pool should separate early/late better than the un-rotated pool.
|
| 215 |
+
# Reported as supporting evidence (small n, exploratory) -- NOT asserted as
|
| 216 |
+
# proof; the headline diagnostic is the single-token no-collapse score.
|
| 217 |
+
agg_raw, agg_unr, agg_n = _aggregate_position_arm(encoder, unrot, seed)
|
| 218 |
+
agg_supports = (agg_raw is not None and agg_unr is not None
|
| 219 |
+
and agg_raw - agg_unr > 0.02)
|
| 220 |
+
|
| 221 |
return {
|
| 222 |
"score": score,
|
| 223 |
"baseline": 0.0,
|
|
|
|
| 232 |
"diff_word_cos_before": db,
|
| 233 |
"diff_word_cos_after": da,
|
| 234 |
"diff_word_lift": diff_lift,
|
| 235 |
+
"aggregate_position_auc_raw": agg_raw,
|
| 236 |
+
"aggregate_position_auc_unrot": agg_unr,
|
| 237 |
+
"aggregate_n": agg_n,
|
| 238 |
+
"aggregate_supports_pool_clock": bool(agg_supports),
|
| 239 |
+
"note": ("DIAGNOSTIC: single-token un-rotation does NOT collapse "
|
| 240 |
+
"same-word tokens (score ~0) -> position is not per-token "
|
| 241 |
+
"readable; that is the registered finding. Aggregate arm "
|
| 242 |
+
"(raw-pool vs un-rotated-pool early/late AUC) is exploratory "
|
| 243 |
+
"supporting evidence (small n), reported as-measured, not "
|
| 244 |
+
"asserted as proof."),
|
| 245 |
},
|
| 246 |
}
|
sieve_bench/tasks/t12_additivity.py
CHANGED
|
@@ -1,24 +1,38 @@
|
|
| 1 |
"""B3 additivity (is-it-a-bag) — DIAGNOSTIC, T0 (+T2 pre-pool arm).
|
| 2 |
|
| 3 |
-
Is z just an additive bag of its words?
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
IS_DIAGNOSTIC: this is a structure descriptor (additivity), not a higher=better
|
| 20 |
-
readout.
|
| 21 |
-
|
| 22 |
"""
|
| 23 |
from __future__ import annotations
|
| 24 |
|
|
@@ -32,12 +46,27 @@ from common import metrics
|
|
| 32 |
CAPS = {"encode"}
|
| 33 |
TIER = "core"
|
| 34 |
IS_DIAGNOSTIC = True
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
REF_SONAR = None
|
| 38 |
-
INTERP = ("Additivity
|
| 39 |
-
"
|
| 40 |
-
"
|
|
|
|
| 41 |
|
| 42 |
_STOP = {"the", "a", "an", "of", "in", "on", "at", "to", "and", "or", "is",
|
| 43 |
"are", "was", "were", "be", "been", "with", "for", "as", "by", "that",
|
|
@@ -65,6 +94,21 @@ def _ridge_fit_predict(Xtr, Ytr, Xte):
|
|
| 65 |
return r.predict(Xte)
|
| 66 |
|
| 67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
def run(encoder, data):
|
| 69 |
texts = data["texts"]
|
| 70 |
seed = data["seed"]
|
|
@@ -82,11 +126,14 @@ def run(encoder, data):
|
|
| 82 |
rng = np.random.RandomState(seed)
|
| 83 |
Xshuf = np.zeros((N, d), dtype=np.float32)
|
| 84 |
all_idx = np.arange(len(vocab))
|
|
|
|
| 85 |
for r, t in enumerate(texts):
|
| 86 |
ws = [vidx[w] for w in _content_words(t) if w in vidx]
|
| 87 |
if ws:
|
| 88 |
Xbag[r] = word_emb[ws].mean(0)
|
| 89 |
-
|
|
|
|
|
|
|
| 90 |
sw = rng.choice(all_idx, size=len(ws), replace=False)
|
| 91 |
Xshuf[r] = word_emb[sw].mean(0)
|
| 92 |
|
|
@@ -96,49 +143,91 @@ def run(encoder, data):
|
|
| 96 |
|
| 97 |
# bag -> z reconstruction (the additive account)
|
| 98 |
Zhat = _ridge_fit_predict(Xbag[tr], Z[tr], Xbag[te])
|
| 99 |
-
bag_cos = metrics.cosine(Z[te], Zhat)
|
| 100 |
-
bag_fvu = metrics.fvu(Z[te], Zhat)
|
| 101 |
|
| 102 |
-
# shuffled-bag null
|
| 103 |
Zsh = _ridge_fit_predict(Xshuf[tr], Z[tr], Xshuf[te])
|
| 104 |
-
shuf_cos = metrics.cosine(Z[te], Zsh)
|
| 105 |
-
|
| 106 |
-
#
|
| 107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
|
| 109 |
# ---- T2 pre-pool mean arm (only if encoder exposes token_states) --------
|
| 110 |
prepool_cos = None
|
| 111 |
if "token_states" in getattr(encoder, "caps", set()):
|
| 112 |
try:
|
| 113 |
pp = []
|
| 114 |
-
|
| 115 |
-
for i in
|
| 116 |
H, _ = encoder.token_states(texts[i])
|
| 117 |
pp.append(np.asarray(H, np.float32).mean(0))
|
| 118 |
pp = np.stack(pp, 0)
|
| 119 |
-
prepool_cos = metrics.cosine(Z[
|
| 120 |
-
except Exception
|
| 121 |
prepool_cos = None
|
| 122 |
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
|
| 127 |
return {
|
| 128 |
"score": score,
|
| 129 |
"baseline": baseline,
|
| 130 |
"ceiling": ceiling,
|
| 131 |
-
"control":
|
| 132 |
"raw": {
|
| 133 |
"n": N,
|
| 134 |
"d": d,
|
| 135 |
"vocab": len(vocab),
|
| 136 |
-
"
|
| 137 |
-
"
|
| 138 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
"prepool_mean_cos": prepool_cos,
|
| 140 |
-
"note": ("
|
| 141 |
-
"
|
| 142 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
},
|
| 144 |
}
|
|
|
|
| 1 |
"""B3 additivity (is-it-a-bag) — DIAGNOSTIC, T0 (+T2 pre-pool arm).
|
| 2 |
|
| 3 |
+
Is z just an additive bag of its words? The raw bag-reconstruction cos
|
| 4 |
+
OVERSTATES additivity for contrastive sentence encoders: a ridge map from the
|
| 5 |
+
mean word-embedding to z can hit cos~0.90 even when SHUFFLING the words to
|
| 6 |
+
random ones STILL hits ~0.83 — i.e. most of that 0.90 is the encoder's generic
|
| 7 |
+
"this is an English sentence of length L" manifold, not the SPECIFIC words. So
|
| 8 |
+
the honest additivity number is the MARGIN the specific words buy:
|
| 9 |
+
|
| 10 |
+
headline Δ_additivity = bag_cos - shuffled_bag_cos
|
| 11 |
+
bag_cos = cos(z, ridge(mean of present content-word embeddings))
|
| 12 |
+
shuffled_bag = cos(z, ridge(mean of #-matched RANDOM word embeddings))
|
| 13 |
+
A real additive bag has Δ_additivity ≫ 0 (the specific words matter).
|
| 14 |
+
|
| 15 |
+
ridge-free cos(z, mean(word_embeddings)) — NO learned map at all. For a
|
| 16 |
+
mean-pooled encoder of single-word embeddings this is the cleanest
|
| 17 |
+
"is z literally the average of its words" probe.
|
| 18 |
+
|
| 19 |
+
order test permute the sentence's words (the bag feature is order-invariant,
|
| 20 |
+
so it does NOT change) and re-encode -> z_perm. order_sensitivity =
|
| 21 |
+
1 - cos(z, z_perm). If z MOVES under permutation while the bag stays
|
| 22 |
+
fixed, that residual is STRUCTURE (order/binding), not additivity.
|
| 23 |
+
|
| 24 |
+
An encoder's z is GENUINELY a bag only if BOTH Δ_additivity ≫ 0 AND it is
|
| 25 |
+
order-INSENSITIVE (order_sensitivity ~ 0). The score reported to the harness is
|
| 26 |
+
Δ_additivity (the honest, control-corrected additivity margin).
|
| 27 |
+
|
| 28 |
+
score = Δ_additivity = bag_cos - shuffled_bag_cos (HIGH => specific words drive z)
|
| 29 |
+
baseline = 0.0 (a non-additive z has Δ_additivity ~ 0)
|
| 30 |
+
ceiling = 1.0
|
| 31 |
+
control = order_sensitivity (reported in raw)
|
| 32 |
|
| 33 |
IS_DIAGNOSTIC: this is a structure descriptor (additivity), not a higher=better
|
| 34 |
+
readout. The genuinely-bag-like verdict (raw.genuinely_bag_like) requires the
|
| 35 |
+
SHUFFLED control AND the order control to both clear, not just a high raw cos.
|
| 36 |
"""
|
| 37 |
from __future__ import annotations
|
| 38 |
|
|
|
|
| 46 |
CAPS = {"encode"}
|
| 47 |
TIER = "core"
|
| 48 |
IS_DIAGNOSTIC = True
|
| 49 |
+
# diagnostic thresholds now apply to Δ_additivity (control-corrected margin),
|
| 50 |
+
# NOT the raw bag cos. A genuine additive bag buys a real margin from the
|
| 51 |
+
# specific words; below FALSIFIER the "additive bag" account fails.
|
| 52 |
+
# NOTE: the harness treats every diagnostic as LOW-is-good (passed = score <=
|
| 53 |
+
# TARGET, falsified = score >= FALSIFIER). For additivity HIGH Δ is the bag-like
|
| 54 |
+
# finding, so the harness pass/falsified flags are NOT the verdict here — the
|
| 55 |
+
# authoritative verdict is raw.genuinely_bag_like (Δ_additivity >= GENUINE_DELTA
|
| 56 |
+
# AND order-insensitive). We set FALSIFIER above the [0,1] range so the
|
| 57 |
+
# misleading "falsified" flag never fires; the leaderboard reads Δ_additivity,
|
| 58 |
+
# order_sensitivity and genuinely_bag_like directly.
|
| 59 |
+
GENUINE_DELTA = 0.30 # Δ_additivity >= this => specific words genuinely drive z
|
| 60 |
+
TARGET = 0.30 # (descriptor only; see note above)
|
| 61 |
+
FALSIFIER = 1.01 # disabled: never auto-"falsify" an additivity descriptor
|
| 62 |
+
# order test: above this fraction of cos lost under word-permutation, z carries
|
| 63 |
+
# real order/structure (so it is NOT a clean order-free bag).
|
| 64 |
+
ORDER_SENS_MAX = 0.05
|
| 65 |
REF_SONAR = None
|
| 66 |
+
INTERP = ("Additivity (control-corrected). score=Δ_additivity = bag_cos - "
|
| 67 |
+
"SHUFFLED-bag_cos (the honest 'is it the SPECIFIC words' margin). "
|
| 68 |
+
"raw also has ridge-free cos(z,mean word_emb) and an order-permutation "
|
| 69 |
+
"test. GENUINELY bag-like = Δ_additivity high AND order-insensitive.")
|
| 70 |
|
| 71 |
_STOP = {"the", "a", "an", "of", "in", "on", "at", "to", "and", "or", "is",
|
| 72 |
"are", "was", "were", "be", "been", "with", "for", "as", "by", "that",
|
|
|
|
| 94 |
return r.predict(Xte)
|
| 95 |
|
| 96 |
|
| 97 |
+
def _permute_words(text, rng):
|
| 98 |
+
"""Reorder the WORDS of the sentence (keeps the multiset of words, so the
|
| 99 |
+
bag/mean feature is unchanged; only word ORDER differs)."""
|
| 100 |
+
toks = re.findall(r"\S+", text)
|
| 101 |
+
if len(toks) < 3:
|
| 102 |
+
return text
|
| 103 |
+
perm = toks[:]
|
| 104 |
+
# ensure a non-identity permutation when possible
|
| 105 |
+
for _ in range(8):
|
| 106 |
+
rng.shuffle(perm)
|
| 107 |
+
if perm != toks:
|
| 108 |
+
break
|
| 109 |
+
return " ".join(perm)
|
| 110 |
+
|
| 111 |
+
|
| 112 |
def run(encoder, data):
|
| 113 |
texts = data["texts"]
|
| 114 |
seed = data["seed"]
|
|
|
|
| 126 |
rng = np.random.RandomState(seed)
|
| 127 |
Xshuf = np.zeros((N, d), dtype=np.float32)
|
| 128 |
all_idx = np.arange(len(vocab))
|
| 129 |
+
has_words = np.zeros(N, dtype=bool)
|
| 130 |
for r, t in enumerate(texts):
|
| 131 |
ws = [vidx[w] for w in _content_words(t) if w in vidx]
|
| 132 |
if ws:
|
| 133 |
Xbag[r] = word_emb[ws].mean(0)
|
| 134 |
+
has_words[r] = True
|
| 135 |
+
# shuffled control: same #words but RANDOM words (destroys content,
|
| 136 |
+
# keeps word-COUNT -> isolates the "specific words" contribution)
|
| 137 |
sw = rng.choice(all_idx, size=len(ws), replace=False)
|
| 138 |
Xshuf[r] = word_emb[sw].mean(0)
|
| 139 |
|
|
|
|
| 143 |
|
| 144 |
# bag -> z reconstruction (the additive account)
|
| 145 |
Zhat = _ridge_fit_predict(Xbag[tr], Z[tr], Xbag[te])
|
| 146 |
+
bag_cos = float(metrics.cosine(Z[te], Zhat))
|
| 147 |
+
bag_fvu = float(metrics.fvu(Z[te], Zhat))
|
| 148 |
|
| 149 |
+
# shuffled-bag null (same word-count, random words) — the honest control.
|
| 150 |
Zsh = _ridge_fit_predict(Xshuf[tr], Z[tr], Xshuf[te])
|
| 151 |
+
shuf_cos = float(metrics.cosine(Z[te], Zsh))
|
| 152 |
+
|
| 153 |
+
# control-corrected additivity margin = how much the SPECIFIC words buy.
|
| 154 |
+
delta_additivity = float(bag_cos - shuf_cos)
|
| 155 |
+
|
| 156 |
+
# ---- ridge-FREE additivity: cos(z, mean(word_embeddings)) (no learned map)
|
| 157 |
+
te_has = [i for i in te if has_words[i]]
|
| 158 |
+
if te_has:
|
| 159 |
+
Zte_h = Z[te_has]
|
| 160 |
+
Xbag_h = Xbag[te_has]
|
| 161 |
+
ridgefree_cos = float(metrics.cosine(Zte_h, Xbag_h))
|
| 162 |
+
else:
|
| 163 |
+
ridgefree_cos = None
|
| 164 |
+
|
| 165 |
+
# ---- ORDER-PERMUTATION test: bag is order-invariant; does z move? --------
|
| 166 |
+
# Permute the WORDS of a sample of sentences, re-encode, measure cos(z,z_perm).
|
| 167 |
+
# The bag feature is identical for the permuted sentence (same word multiset),
|
| 168 |
+
# so any drop in cos is z carrying ORDER/structure, NOT additivity.
|
| 169 |
+
sub = [i for i in te if has_words[i]]
|
| 170 |
+
sub = sub[:min(len(sub), 300)]
|
| 171 |
+
order_sensitivity = None
|
| 172 |
+
order_cos = None
|
| 173 |
+
if sub:
|
| 174 |
+
perm_texts = [_permute_words(texts[i], rng) for i in sub]
|
| 175 |
+
Zp = np.asarray(encoder.encode(perm_texts), dtype=np.float32)
|
| 176 |
+
# row-wise cosine between z and its word-permuted z
|
| 177 |
+
a = Z[sub]
|
| 178 |
+
an = a / (np.linalg.norm(a, axis=1, keepdims=True) + 1e-9)
|
| 179 |
+
bn = Zp / (np.linalg.norm(Zp, axis=1, keepdims=True) + 1e-9)
|
| 180 |
+
order_cos = float(np.mean(np.sum(an * bn, axis=1)))
|
| 181 |
+
order_sensitivity = float(1.0 - order_cos)
|
| 182 |
|
| 183 |
# ---- T2 pre-pool mean arm (only if encoder exposes token_states) --------
|
| 184 |
prepool_cos = None
|
| 185 |
if "token_states" in getattr(encoder, "caps", set()):
|
| 186 |
try:
|
| 187 |
pp = []
|
| 188 |
+
ssub = te[:min(len(te), 200)]
|
| 189 |
+
for i in ssub:
|
| 190 |
H, _ = encoder.token_states(texts[i])
|
| 191 |
pp.append(np.asarray(H, np.float32).mean(0))
|
| 192 |
pp = np.stack(pp, 0)
|
| 193 |
+
prepool_cos = float(metrics.cosine(Z[ssub], pp))
|
| 194 |
+
except Exception: # noqa
|
| 195 |
prepool_cos = None
|
| 196 |
|
| 197 |
+
# genuinely-bag-like verdict: needs the SHUFFLED margin AND order-insensitivity.
|
| 198 |
+
genuinely_bag_like = bool(
|
| 199 |
+
delta_additivity >= GENUINE_DELTA
|
| 200 |
+
and (order_sensitivity is not None and order_sensitivity <= ORDER_SENS_MAX)
|
| 201 |
+
)
|
| 202 |
+
|
| 203 |
+
score = delta_additivity
|
| 204 |
+
baseline = 0.0
|
| 205 |
+
ceiling = 1.0
|
| 206 |
|
| 207 |
return {
|
| 208 |
"score": score,
|
| 209 |
"baseline": baseline,
|
| 210 |
"ceiling": ceiling,
|
| 211 |
+
"control": order_sensitivity if order_sensitivity is not None else 0.0,
|
| 212 |
"raw": {
|
| 213 |
"n": N,
|
| 214 |
"d": d,
|
| 215 |
"vocab": len(vocab),
|
| 216 |
+
"delta_additivity": delta_additivity,
|
| 217 |
+
"bag_reconstruction_cos": bag_cos,
|
| 218 |
+
"bag_reconstruction_fvu": bag_fvu,
|
| 219 |
+
"shuffled_bag_cos": shuf_cos,
|
| 220 |
+
"ridgefree_mean_word_cos": ridgefree_cos,
|
| 221 |
+
"order_permutation_cos": order_cos,
|
| 222 |
+
"order_sensitivity": order_sensitivity,
|
| 223 |
+
"genuinely_bag_like": genuinely_bag_like,
|
| 224 |
"prepool_mean_cos": prepool_cos,
|
| 225 |
+
"note": ("Δ_additivity = bag_cos - shuffled_bag_cos isolates the "
|
| 226 |
+
"SPECIFIC-words contribution (raw bag_cos overstates "
|
| 227 |
+
"additivity: a #-matched random-word bag already explains "
|
| 228 |
+
"much of it). order_sensitivity = 1-cos(z, word-permuted z); "
|
| 229 |
+
">0 means z carries ORDER (structure), not just a bag. "
|
| 230 |
+
"GENUINELY bag-like requires Δ_additivity high AND "
|
| 231 |
+
"order_sensitivity ~ 0."),
|
| 232 |
},
|
| 233 |
}
|
sieve_bench/tasks/t17_recombination_fidelity.py
CHANGED
|
@@ -13,14 +13,36 @@ no per-doc fitting -> the only loss is the rank-m bottleneck. We then ask whethe
|
|
| 13 |
a LEARNED (non-uniform) per-token pool recovers z better than the UNIFORM 1/N
|
| 14 |
pool through the SAME bottleneck.
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
"""
|
| 25 |
from __future__ import annotations
|
| 26 |
|
|
@@ -31,18 +53,30 @@ from common import metrics
|
|
| 31 |
|
| 32 |
CAPS = {"encode", "token_states"}
|
| 33 |
TIER = "generative"
|
| 34 |
-
#
|
| 35 |
-
#
|
| 36 |
-
#
|
| 37 |
-
#
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
REF_SONAR = None
|
| 42 |
INTERP = ("Reconstruct pooled z from per-token states through a frozen random "
|
| 43 |
-
"
|
| 44 |
-
"
|
| 45 |
-
"
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
def build_data(seed: int = 0, n: int = None, smoke: bool = False):
|
|
@@ -113,13 +147,27 @@ def run(encoder, data):
|
|
| 113 |
r2_uniform = max(r2_uniform, 0.0)
|
| 114 |
r2_learned = max(r2_learned, 1e-6)
|
| 115 |
r2_onetok = max(r2_onetok, 0.0)
|
| 116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
|
| 118 |
return {
|
| 119 |
-
"score":
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
"raw": {
|
| 124 |
"n_sents": len(sents),
|
| 125 |
"m_bottleneck": m,
|
|
@@ -128,10 +176,14 @@ def run(encoder, data):
|
|
| 128 |
"r2_one_token": r2_onetok,
|
| 129 |
"r2_shuffled_control": float(r2_shuf),
|
| 130 |
"uniform_vs_learned": float(r2_uniform / r2_learned),
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
"audit_arms": {"r2_uniform_pool": r2_uniform,
|
| 136 |
"r2_learned_pool": r2_learned},
|
| 137 |
},
|
|
|
|
| 13 |
a LEARNED (non-uniform) per-token pool recovers z better than the UNIFORM 1/N
|
| 14 |
pool through the SAME bottleneck.
|
| 15 |
|
| 16 |
+
HEADLINE (reworked): the v0.1 bug was score = R2_uniform / R2_learned, a ratio
|
| 17 |
+
of two near-zero r2 (~0.068 each) that degenerated to a meaningless 1.0. The
|
| 18 |
+
absolute R2 ~ m/d is an artifact of the random rank-m bottleneck (a random
|
| 19 |
+
m-subspace captures ~m/d of z's variance) and is identical for every pooling
|
| 20 |
+
strategy -- so the absolute number is NOT a quality score, and the RATIO of
|
| 21 |
+
two near-zeros is not a trustworthy headline either.
|
| 22 |
+
|
| 23 |
+
The reworked headline is the RELATIVE uniform-vs-learned gap, graded as a
|
| 24 |
+
DIAGNOSTIC (LOW=good): score = |R2_uniform - R2_learned| / max(R2_learned,eps).
|
| 25 |
+
A small gap == the uniform 1/N pool reconstructs z as well as any fitted pool
|
| 26 |
+
at this capacity == capacity-not-aggregation. Both absolute reconstructions
|
| 27 |
+
are reported in raw so nothing is masked.
|
| 28 |
+
|
| 29 |
+
score : relative gap |R2_uniform - R2_learned| / R2_learned (DIAGNOSTIC,
|
| 30 |
+
SMALL=good). ~0 => uniform pool as good as learned => capacity-not-
|
| 31 |
+
aggregation. LARGE => a learned aggregation beats uniform (falsify).
|
| 32 |
+
baseline : the same gap measured for the single-token (no-aggregation) pool
|
| 33 |
+
vs learned -- i.e. how much WORSE no-aggregation is than learned;
|
| 34 |
+
this is large, showing the metric DOES move when aggregation is
|
| 35 |
+
genuinely degraded (so the small uniform-gap is meaningful).
|
| 36 |
+
ceiling : 0.0 (a perfectly matched uniform/learned gap -- the diagnostic
|
| 37 |
+
target floor).
|
| 38 |
+
control : the gap under SHUFFLED token->doc assignment (structure destroyed).
|
| 39 |
+
raw.r2_uniform_pool, r2_learned_pool, r2_one_token : the ABSOLUTE
|
| 40 |
+
reconstructions (~m/d), reported so the random-bottleneck artifact
|
| 41 |
+
is explicit.
|
| 42 |
+
raw.uniform_vs_learned : R2_uniform / R2_learned (~1 => the finding).
|
| 43 |
+
raw.audit_arms : {r2_uniform_pool, r2_learned_pool} -- the two pooling
|
| 44 |
+
reconstructions, which SHOULD agree (capacity-not-aggregation) and
|
| 45 |
+
do (gap << AUDIT_ARM_GAP); the dual-arm check thus PASSES honestly.
|
| 46 |
"""
|
| 47 |
from __future__ import annotations
|
| 48 |
|
|
|
|
| 53 |
|
| 54 |
CAPS = {"encode", "token_states"}
|
| 55 |
TIER = "generative"
|
| 56 |
+
# DIAGNOSTIC: this is a structure finding, not a higher-is-better readout. The
|
| 57 |
+
# absolute uniform-pool R2 through a frozen rank-m random bottleneck is ~m/d BY
|
| 58 |
+
# CONSTRUCTION (a random m-subspace captures ~m/d of z's variance) and is the
|
| 59 |
+
# SAME for every pooling strategy -- which is EXACTLY the capacity-not-
|
| 60 |
+
# aggregation finding. The headline number we grade is the uniform/learned
|
| 61 |
+
# closeness: |1 - R2_uniform/R2_learned| should be ~0 (uniform pool is as good
|
| 62 |
+
# as a fitted one). A LOW score (uniform << learned) would FALSIFY capacity-not-
|
| 63 |
+
# aggregation (it would mean a learned aggregation beats the uniform 1/N pool).
|
| 64 |
+
# We grade it as diagnostic: PASS when the uniform/learned gap is small (score
|
| 65 |
+
# near 1). The absolute reconstruction R2 is reported (score field) and in raw.
|
| 66 |
+
IS_DIAGNOSTIC = True
|
| 67 |
+
# diagnostic semantics in the harness: PASS when score <= TARGET. We define
|
| 68 |
+
# score = |R2_uniform - R2_learned| / max(R2_learned, eps) (the RELATIVE gap),
|
| 69 |
+
# so a SMALL score == uniform≈learned == capacity-not-aggregation holds.
|
| 70 |
+
TARGET = 0.10 # uniform within 10% of learned => capacity-not-aggregation
|
| 71 |
+
FALSIFIER = 0.40 # uniform >40% below learned => aggregation matters (falsify)
|
| 72 |
REF_SONAR = None
|
| 73 |
INTERP = ("Reconstruct pooled z from per-token states through a frozen random "
|
| 74 |
+
"rank-m bottleneck. Finding: uniform 1/N pool reconstructs z as well "
|
| 75 |
+
"as a fitted/learned pool (relative gap ~0) => the loss is per-token "
|
| 76 |
+
"CAPACITY, not aggregation strategy. DIAGNOSTIC score = relative "
|
| 77 |
+
"uniform-vs-learned gap (SMALL=capacity-not-aggregation holds). "
|
| 78 |
+
"Absolute R2_uniform~m/d is reported separately (raw.r2_uniform_pool); "
|
| 79 |
+
"it is an artifact of the random bottleneck rank, not a quality score.")
|
| 80 |
|
| 81 |
|
| 82 |
def build_data(seed: int = 0, n: int = None, smoke: bool = False):
|
|
|
|
| 147 |
r2_uniform = max(r2_uniform, 0.0)
|
| 148 |
r2_learned = max(r2_learned, 1e-6)
|
| 149 |
r2_onetok = max(r2_onetok, 0.0)
|
| 150 |
+
r2_shuf = max(r2_shuf, 0.0)
|
| 151 |
+
|
| 152 |
+
# DIAGNOSTIC score = RELATIVE uniform-vs-learned gap (SMALL = capacity-not-
|
| 153 |
+
# aggregation holds). This is robust to the absolute R2 being ~m/d: it asks
|
| 154 |
+
# only whether the uniform pool matches the best fitted pool at this capacity.
|
| 155 |
+
def rel_gap(a):
|
| 156 |
+
return float(abs(a - r2_learned) / max(r2_learned, 1e-6))
|
| 157 |
+
|
| 158 |
+
uniform_gap = rel_gap(r2_uniform) # ~0 (the finding)
|
| 159 |
+
onetoken_gap = rel_gap(r2_onetok) # large (no-aggregation is worse)
|
| 160 |
+
shuf_gap = rel_gap(r2_shuf) # large (structure destroyed)
|
| 161 |
|
| 162 |
return {
|
| 163 |
+
"score": float(min(uniform_gap, 1.0)),
|
| 164 |
+
# baseline: how far the NO-AGGREGATION (single-token) pool sits from the
|
| 165 |
+
# learned ceiling -> the metric DOES move when aggregation degrades, so a
|
| 166 |
+
# near-zero uniform_gap is a real result, not a flat metric.
|
| 167 |
+
"baseline": float(min(onetoken_gap, 1.0)),
|
| 168 |
+
# ceiling for a LOW-is-good diagnostic: 0.0 (perfect uniform==learned).
|
| 169 |
+
"ceiling": 0.0,
|
| 170 |
+
"control": float(min(shuf_gap, 1.0)),
|
| 171 |
"raw": {
|
| 172 |
"n_sents": len(sents),
|
| 173 |
"m_bottleneck": m,
|
|
|
|
| 176 |
"r2_one_token": r2_onetok,
|
| 177 |
"r2_shuffled_control": float(r2_shuf),
|
| 178 |
"uniform_vs_learned": float(r2_uniform / r2_learned),
|
| 179 |
+
"uniform_gap_rel": uniform_gap,
|
| 180 |
+
"onetoken_gap_rel": onetoken_gap,
|
| 181 |
+
"note": ("score = |R2_uniform-R2_learned|/R2_learned (DIAGNOSTIC, "
|
| 182 |
+
"small=capacity-not-aggregation). Absolute R2~m/d is a "
|
| 183 |
+
"random-bottleneck artifact, reported but not the score."),
|
| 184 |
+
# dual-arm audit: the two pooling reconstructions SHOULD agree
|
| 185 |
+
# (capacity-not-aggregation). Both ~m/d here -> gap << AUDIT_ARM_GAP
|
| 186 |
+
# -> the dual-arm check PASSES honestly (no longer a ratio-of-zeros).
|
| 187 |
"audit_arms": {"r2_uniform_pool": r2_uniform,
|
| 188 |
"r2_learned_pool": r2_learned},
|
| 189 |
},
|
sieve_bench/tasks/t21_encoder_pooling_generality.py
CHANGED
|
@@ -7,13 +7,26 @@ one pooling. The subset:
|
|
| 7 |
t03 entity-presence (A3, readout: should be HIGH on every encoder)
|
| 8 |
t06 thematic-role (A6, DIAGNOSTIC: should be LOW/no-binding on every encoder,
|
| 9 |
with surface-position ~0.99 alongside)
|
| 10 |
-
t12 additivity (B3, DIAGNOSTIC: z is largely an additive content bag)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
score = profile-consistency = fraction of (encoder,pool) configs whose
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
baseline = 1/3 (
|
| 16 |
-
"no shared profile" floor)
|
| 17 |
ceiling = 1.0 (every config shows the same profile)
|
| 18 |
control = thematic-role spread across configs (raw); a tight spread near the
|
| 19 |
SONAR ref = encoder-general no-binding.
|
|
@@ -39,11 +52,12 @@ INTERP = ("Encoder/pooling generality of the SIEVE profile (entity HIGH, "
|
|
| 39 |
"thematic LOW, additive HIGH). score = fraction of configs matching "
|
| 40 |
"the SONAR reference profile. HIGH => the profile is encoder-general.")
|
| 41 |
|
| 42 |
-
# default grid
|
| 43 |
-
# sentence-transformers backends
|
|
|
|
| 44 |
_DEFAULT_GRID = [
|
| 45 |
("mpnet", "mean"), ("mpnet", "cls"), ("mpnet", "last"),
|
| 46 |
-
("gte", "mean"), ("gte", "cls"),
|
| 47 |
]
|
| 48 |
_SMOKE_GRID = [("mpnet", "mean"), ("gte", "mean")]
|
| 49 |
|
|
@@ -56,19 +70,27 @@ def build_data(seed: int = 0, n: int = None, smoke: bool = False):
|
|
| 56 |
|
| 57 |
|
| 58 |
def _verdict(rec_t03, rec_t06, rec_t12):
|
| 59 |
-
"""Qualitative profile verdict for one config
|
| 60 |
-
|
|
|
|
|
|
|
|
|
|
| 61 |
entity_high = rec_t03["score"] >= 0.75 and rec_t03["score"] > rec_t03.get(
|
| 62 |
"surface_position_baseline", 0.0) - 0.05
|
| 63 |
thematic_low = rec_t06["score"] <= 0.65
|
|
|
|
|
|
|
| 64 |
surf_proves = rec_t06.get("surface_position_baseline", 0.0) >= 0.8
|
| 65 |
-
additive_high = rec_t12["score"] >= 0.5
|
| 66 |
return {
|
| 67 |
"entity_high": bool(entity_high),
|
| 68 |
"thematic_low": bool(thematic_low),
|
| 69 |
"thematic_surface_proof": bool(surf_proves),
|
| 70 |
"additive_high": bool(additive_high),
|
| 71 |
-
"
|
|
|
|
|
|
|
|
|
|
| 72 |
}
|
| 73 |
|
| 74 |
|
|
|
|
| 7 |
t03 entity-presence (A3, readout: should be HIGH on every encoder)
|
| 8 |
t06 thematic-role (A6, DIAGNOSTIC: should be LOW/no-binding on every encoder,
|
| 9 |
with surface-position ~0.99 alongside)
|
| 10 |
+
t12 additivity (B3, DIAGNOSTIC: z is largely an additive content bag) --
|
| 11 |
+
REPORTED per config but NOT part of the profile-match (see
|
| 12 |
+
below), because its absolute magnitude is encoder-specific.
|
| 13 |
+
|
| 14 |
+
The SIEVE PROFILE under test is the TWO-axis interpretability signature
|
| 15 |
+
[entity-HIGH, thematic-LOW]: a content readout that survives, alongside the
|
| 16 |
+
ABSENCE of abstract relational binding (proven by surface-position ~0.99 while
|
| 17 |
+
the thematic readout sits at chance). That signature is what should be encoder/
|
| 18 |
+
pooling-general. The v0.1 bug folded a THIRD axis (additivity >= 0.5) into the
|
| 19 |
+
match: additivity COSINE magnitude is genuinely encoder-specific (SONAR 0.28,
|
| 20 |
+
mpnet 0.44, gte 0.90) so requiring it >= 0.5 made SONAR itself "not match its
|
| 21 |
+
own profile" and dragged the score to 2/6 == base. Additivity is still reported
|
| 22 |
+
per config (raw.scorecard) and its spread is in raw, but the profile-match is
|
| 23 |
+
the [entity-HIGH, thematic-LOW] signature.
|
| 24 |
|
| 25 |
score = profile-consistency = fraction of (encoder,pool) configs whose
|
| 26 |
+
verdict matches the SONAR signature (entity HIGH, thematic LOW with
|
| 27 |
+
the surface-position proof that the LOW is no-binding not no-signal).
|
| 28 |
+
baseline = 1/3 (chance floor for a single binary verdict per config — the
|
| 29 |
+
"no shared profile" floor; kept for continuity with v0.1).
|
| 30 |
ceiling = 1.0 (every config shows the same profile)
|
| 31 |
control = thematic-role spread across configs (raw); a tight spread near the
|
| 32 |
SONAR ref = encoder-general no-binding.
|
|
|
|
| 52 |
"thematic LOW, additive HIGH). score = fraction of configs matching "
|
| 53 |
"the SONAR reference profile. HIGH => the profile is encoder-general.")
|
| 54 |
|
| 55 |
+
# default grid: the FULL {mean,cls,last} pooling axis crossed with the two
|
| 56 |
+
# sentence-transformers backends. SONAR is a single fixed config (no pooling
|
| 57 |
+
# variants) and is added as the self/reference config in run().
|
| 58 |
_DEFAULT_GRID = [
|
| 59 |
("mpnet", "mean"), ("mpnet", "cls"), ("mpnet", "last"),
|
| 60 |
+
("gte", "mean"), ("gte", "cls"), ("gte", "last"),
|
| 61 |
]
|
| 62 |
_SMOKE_GRID = [("mpnet", "mean"), ("gte", "mean")]
|
| 63 |
|
|
|
|
| 70 |
|
| 71 |
|
| 72 |
def _verdict(rec_t03, rec_t06, rec_t12):
|
| 73 |
+
"""Qualitative profile verdict for one config. The SIEVE signature under test
|
| 74 |
+
is the TWO-axis [entity-HIGH, thematic-LOW(=no-binding, surface-proven)].
|
| 75 |
+
Additivity is REPORTED but NOT part of the match (its cosine magnitude is
|
| 76 |
+
encoder-specific: SONAR 0.28, mpnet 0.44, gte 0.90 -- requiring >=0.5 wrongly
|
| 77 |
+
excludes SONAR's own profile)."""
|
| 78 |
entity_high = rec_t03["score"] >= 0.75 and rec_t03["score"] > rec_t03.get(
|
| 79 |
"surface_position_baseline", 0.0) - 0.05
|
| 80 |
thematic_low = rec_t06["score"] <= 0.65
|
| 81 |
+
# the LOW thematic score must be NO-BINDING (surface position solves the task
|
| 82 |
+
# ~perfectly) and NOT merely no-signal -> require the surface proof alongside.
|
| 83 |
surf_proves = rec_t06.get("surface_position_baseline", 0.0) >= 0.8
|
| 84 |
+
additive_high = rec_t12["score"] >= 0.5 # reported only (NOT a match gate)
|
| 85 |
return {
|
| 86 |
"entity_high": bool(entity_high),
|
| 87 |
"thematic_low": bool(thematic_low),
|
| 88 |
"thematic_surface_proof": bool(surf_proves),
|
| 89 |
"additive_high": bool(additive_high),
|
| 90 |
+
"additivity_cos": round(float(rec_t12["score"]), 4),
|
| 91 |
+
# match = the two-axis no-binding signature with its surface proof.
|
| 92 |
+
"matches_sonar_profile": bool(
|
| 93 |
+
entity_high and thematic_low and surf_proves),
|
| 94 |
}
|
| 95 |
|
| 96 |
|
sieve_bench/tasks/t22_word_edit.py
CHANGED
|
@@ -1,21 +1,31 @@
|
|
| 1 |
"""D1 word-edit — EDITING, generative (T1) + T0 surrogate.
|
| 2 |
|
| 3 |
-
Replace word X->Y inside z via a diff-of-means edit vector
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
ceiling : encode the GROUND-TRUTH Y-sentence and decode (the edit we wanted).
|
| 13 |
control : add a random matched-norm direction (target_success ~ chance).
|
| 14 |
-
raw.
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
Uses the entity templates (X=Amazon -> Y=Google) for clean, isolated swaps.
|
| 19 |
"""
|
| 20 |
from __future__ import annotations
|
| 21 |
|
|
@@ -31,29 +41,15 @@ IS_DIAGNOSTIC = False
|
|
| 31 |
TARGET = 0.55
|
| 32 |
FALSIFIER = 0.35
|
| 33 |
REF_SONAR = None
|
| 34 |
-
INTERP = ("Replace X->Y in z (diff-of-means)
|
| 35 |
-
"
|
| 36 |
-
"
|
| 37 |
-
|
| 38 |
-
X_WORD = "Amazon"
|
| 39 |
-
Y_WORD = "Google"
|
| 40 |
|
| 41 |
|
| 42 |
def build_data(seed: int = 0, n: int = None, smoke: bool = False):
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
from common.data import _TEMPLATES
|
| 46 |
-
items = []
|
| 47 |
-
for pid, tmpl in enumerate(_TEMPLATES):
|
| 48 |
-
items.append({"x_text": tmpl.format(E=X_WORD),
|
| 49 |
-
"y_text": tmpl.format(E=Y_WORD), "pid": pid})
|
| 50 |
-
# replicate templates with extra entities for more pairs / probe training
|
| 51 |
-
extra = ["Tesla", "NASA", "Sony", "Boeing", "Toyota", "Microsoft", "Apple"]
|
| 52 |
-
other = []
|
| 53 |
-
for pid, tmpl in enumerate(_TEMPLATES):
|
| 54 |
-
for e in extra:
|
| 55 |
-
other.append({"text": tmpl.format(E=e), "entity": e})
|
| 56 |
-
return {"items": items, "other": other, "seed": seed}
|
| 57 |
|
| 58 |
|
| 59 |
def _has_word(decoded, word):
|
|
@@ -62,31 +58,44 @@ def _has_word(decoded, word):
|
|
| 62 |
|
| 63 |
|
| 64 |
def run(encoder, data):
|
| 65 |
-
|
| 66 |
-
other = data["other"]
|
| 67 |
seed = data["seed"]
|
|
|
|
|
|
|
|
|
|
| 68 |
x_texts = [it["x_text"] for it in items]
|
| 69 |
y_texts = [it["y_text"] for it in items]
|
| 70 |
-
|
| 71 |
Zx = encoder.encode(x_texts)
|
| 72 |
Zy = encoder.encode(y_texts)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
-
#
|
| 75 |
-
# edit applied to item i never uses item i's own pair).
|
| 76 |
-
deltas = Zy - Zx
|
| 77 |
edited = np.zeros_like(Zx)
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
|
|
|
|
|
|
|
|
|
| 86 |
target_success = float((tgt * x_gone).mean())
|
| 87 |
-
|
| 88 |
-
# collateral preservation: SBERT(decoded edit, the gold Y-sentence) but
|
| 89 |
-
# measured on the NON-entity remainder -> compare decoded-edit to y_text.
|
| 90 |
preservation = metrics.sbert_sim(dec_edit, y_texts)
|
| 91 |
|
| 92 |
def hmean(a, b):
|
|
@@ -94,52 +103,65 @@ def run(encoder, data):
|
|
| 94 |
|
| 95 |
score = hmean(target_success, max(preservation, 0.0))
|
| 96 |
|
| 97 |
-
#
|
| 98 |
-
naive = Zx + deltas.mean(axis=0)
|
| 99 |
dec_naive = encoder.decode(naive.astype(np.float32))
|
| 100 |
-
nb_tgt = np.array([_has_word(d,
|
| 101 |
-
for d in dec_naive]).mean()
|
| 102 |
nb_pres = metrics.sbert_sim(dec_naive, y_texts)
|
| 103 |
baseline = hmean(float(nb_tgt), max(nb_pres, 0.0))
|
| 104 |
|
| 105 |
-
#
|
| 106 |
dec_gold = encoder.decode(Zy.astype(np.float32))
|
| 107 |
-
g_tgt = np.array([_has_word(d,
|
| 108 |
g_pres = metrics.sbert_sim(dec_gold, y_texts)
|
| 109 |
ceiling = hmean(float(g_tgt), max(g_pres, 0.0))
|
| 110 |
|
| 111 |
-
#
|
| 112 |
rng = np.random.RandomState(seed)
|
|
|
|
| 113 |
r = rng.randn(Zx.shape[1]).astype(np.float32)
|
| 114 |
-
r *= (
|
| 115 |
dec_rand = encoder.decode((Zx + r).astype(np.float32))
|
| 116 |
-
c_tgt = np.array([_has_word(d,
|
| 117 |
control = float(c_tgt)
|
| 118 |
|
| 119 |
-
# ---- T0 surrogate: "Y present"
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
ytr = np.r_[np.zeros(len(Zx)), np.ones(len(Zy)), np.zeros(len(Zo))]
|
| 125 |
clf = _edit.fit_probe(Ztr, ytr)
|
| 126 |
-
|
| 127 |
-
t0_scores = np.r_[_edit.probe_score(clf, edited),
|
| 128 |
-
_edit.probe_score(clf, Zx)]
|
| 129 |
t0_labels = np.r_[np.ones(len(edited)), np.zeros(len(Zx))]
|
| 130 |
t0_surr = float(metrics.auc(t0_labels, t0_scores))
|
| 131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
return {
|
| 133 |
"score": float(score),
|
| 134 |
"baseline": float(baseline),
|
| 135 |
"ceiling": float(max(ceiling, score)),
|
| 136 |
"control": float(control),
|
| 137 |
"raw": {
|
| 138 |
-
"n_pairs": len(
|
|
|
|
| 139 |
"target_success": target_success,
|
| 140 |
"x_removed": float(x_gone.mean()),
|
| 141 |
"collateral_preservation": float(preservation),
|
|
|
|
|
|
|
| 142 |
"t0_surrogate_auc": t0_surr,
|
|
|
|
| 143 |
"edit_examples": list(zip(x_texts[:3], list(dec_edit[:3]))),
|
|
|
|
|
|
|
|
|
|
| 144 |
},
|
| 145 |
}
|
|
|
|
| 1 |
"""D1 word-edit — EDITING, generative (T1) + T0 surrogate.
|
| 2 |
|
| 3 |
+
Replace word X->Y inside z via a diff-of-means edit vector, then add it to
|
| 4 |
+
held-out X-sentences and check the edit landed (decodes WITH Y, X gone) while
|
| 5 |
+
the rest of the sentence is intact.
|
| 6 |
+
|
| 7 |
+
v0.2 rework. The v0.1 task swapped ONE named-entity pair (Amazon->Google) over
|
| 8 |
+
6 templates. That single entity direction is trivially editable in SONAR
|
| 9 |
+
(diff-of-means == naive-add), so score == baseline == ceiling == 1.0 and the
|
| 10 |
+
task carried no signal. The rework uses a LARGER, MORE DIVERSE pair set
|
| 11 |
+
(common.data.word_edit_pairs: 19 pairs spanning noun/verb/adjective, an
|
| 12 |
+
abstract<->concrete axis, and rare words, each in 6 POS-appropriate carriers)
|
| 13 |
+
and a STRONGER baseline (a NAIVE single-vector add WITHOUT the leave-one-out
|
| 14 |
+
averaging). Over diverse, harder pairs the held-out averaged diff-of-means edit
|
| 15 |
+
should separate from the noisy naive add.
|
| 16 |
+
|
| 17 |
+
score : harmonic_mean(target_success, collateral_preservation) for the
|
| 18 |
+
PER-PAIR leave-one-out diff-of-means edit on held-out carriers.
|
| 19 |
+
- target_success: edited z decodes WITH Y and WITHOUT X.
|
| 20 |
+
- collateral_preservation: SBERT(decoded edit, gold Y-sentence).
|
| 21 |
+
baseline : NAIVE add -- a SINGLE carrier's raw (encode(Y)-encode(X)) delta per
|
| 22 |
+
pair applied to the other carriers, with NO leave-one-out averaging
|
| 23 |
+
(the standard weak edit). Stronger than the v0.1 global-mean add.
|
| 24 |
ceiling : encode the GROUND-TRUTH Y-sentence and decode (the edit we wanted).
|
| 25 |
control : add a random matched-norm direction (target_success ~ chance).
|
| 26 |
+
raw.t0_surrogate_auc : "Y present" probe success on edited z WITHOUT decode --
|
| 27 |
+
the encoder-agnostic core arm (reported, not an audit arm: it is an
|
| 28 |
+
AUC and target_success is a fraction, different scales).
|
|
|
|
|
|
|
| 29 |
"""
|
| 30 |
from __future__ import annotations
|
| 31 |
|
|
|
|
| 41 |
TARGET = 0.55
|
| 42 |
FALSIFIER = 0.35
|
| 43 |
REF_SONAR = None
|
| 44 |
+
INTERP = ("Replace X->Y in z (per-pair leave-one-out diff-of-means) over a "
|
| 45 |
+
"diverse word-pair set. score = harmonic mean of target-success "
|
| 46 |
+
"(decodes with Y, X gone) and collateral-preservation. Baseline = "
|
| 47 |
+
"naive single-vector add WITHOUT LOO averaging.")
|
|
|
|
|
|
|
| 48 |
|
| 49 |
|
| 50 |
def build_data(seed: int = 0, n: int = None, smoke: bool = False):
|
| 51 |
+
return {"data": datamod.word_edit_pairs(seed=seed, n=n, smoke=smoke),
|
| 52 |
+
"seed": seed}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
|
| 55 |
def _has_word(decoded, word):
|
|
|
|
| 58 |
|
| 59 |
|
| 60 |
def run(encoder, data):
|
| 61 |
+
bundle = data["data"]
|
|
|
|
| 62 |
seed = data["seed"]
|
| 63 |
+
pairs = bundle["pairs"]
|
| 64 |
+
items = bundle["items"]
|
| 65 |
+
|
| 66 |
x_texts = [it["x_text"] for it in items]
|
| 67 |
y_texts = [it["y_text"] for it in items]
|
|
|
|
| 68 |
Zx = encoder.encode(x_texts)
|
| 69 |
Zy = encoder.encode(y_texts)
|
| 70 |
+
deltas = Zy - Zx # per-item X->Y direction
|
| 71 |
+
|
| 72 |
+
# group item indices by pair (consecutive carriers of one pair)
|
| 73 |
+
groups = {}
|
| 74 |
+
for i, it in enumerate(items):
|
| 75 |
+
groups.setdefault((it["x"], it["y"]), []).append(i)
|
| 76 |
|
| 77 |
+
# ---- METHOD: per-pair leave-one-out diff-of-means edit -------------------
|
|
|
|
|
|
|
| 78 |
edited = np.zeros_like(Zx)
|
| 79 |
+
naive = np.zeros_like(Zx)
|
| 80 |
+
for key, idxs in groups.items():
|
| 81 |
+
idxs = list(idxs)
|
| 82 |
+
for pos, i in enumerate(idxs):
|
| 83 |
+
others = [j for j in idxs if j != i]
|
| 84 |
+
# LOO averaged direction for THIS pair (robust)
|
| 85 |
+
loo = deltas[others].mean(axis=0) if others else deltas[i]
|
| 86 |
+
edited[i] = Zx[i] + loo
|
| 87 |
+
# NAIVE single-vector add: use ONE fixed carrier's raw delta (the
|
| 88 |
+
# first OTHER carrier of the pair), no averaging.
|
| 89 |
+
src = others[0] if others else i
|
| 90 |
+
naive[i] = Zx[i] + deltas[src]
|
| 91 |
|
| 92 |
+
dec_edit = encoder.decode(edited.astype(np.float32))
|
| 93 |
+
y_words = [it["y"] for it in items]
|
| 94 |
+
x_words = [it["x"] for it in items]
|
| 95 |
+
tgt = np.array([_has_word(d, y_words[i]) for i, d in enumerate(dec_edit)])
|
| 96 |
+
x_gone = np.array([1.0 - _has_word(d, x_words[i])
|
| 97 |
+
for i, d in enumerate(dec_edit)])
|
| 98 |
target_success = float((tgt * x_gone).mean())
|
|
|
|
|
|
|
|
|
|
| 99 |
preservation = metrics.sbert_sim(dec_edit, y_texts)
|
| 100 |
|
| 101 |
def hmean(a, b):
|
|
|
|
| 103 |
|
| 104 |
score = hmean(target_success, max(preservation, 0.0))
|
| 105 |
|
| 106 |
+
# ---- BASELINE: naive single-vector add (no LOO) --------------------------
|
|
|
|
| 107 |
dec_naive = encoder.decode(naive.astype(np.float32))
|
| 108 |
+
nb_tgt = np.array([_has_word(d, y_words[i]) * (1 - _has_word(d, x_words[i]))
|
| 109 |
+
for i, d in enumerate(dec_naive)]).mean()
|
| 110 |
nb_pres = metrics.sbert_sim(dec_naive, y_texts)
|
| 111 |
baseline = hmean(float(nb_tgt), max(nb_pres, 0.0))
|
| 112 |
|
| 113 |
+
# ---- CEILING: gold Y round-trip ------------------------------------------
|
| 114 |
dec_gold = encoder.decode(Zy.astype(np.float32))
|
| 115 |
+
g_tgt = np.array([_has_word(d, y_words[i]) for i, d in enumerate(dec_gold)]).mean()
|
| 116 |
g_pres = metrics.sbert_sim(dec_gold, y_texts)
|
| 117 |
ceiling = hmean(float(g_tgt), max(g_pres, 0.0))
|
| 118 |
|
| 119 |
+
# ---- CONTROL: random matched-norm direction ------------------------------
|
| 120 |
rng = np.random.RandomState(seed)
|
| 121 |
+
rnorm = float(np.median(np.linalg.norm(deltas, axis=1)))
|
| 122 |
r = rng.randn(Zx.shape[1]).astype(np.float32)
|
| 123 |
+
r *= (rnorm / (np.linalg.norm(r) + 1e-9))
|
| 124 |
dec_rand = encoder.decode((Zx + r).astype(np.float32))
|
| 125 |
+
c_tgt = np.array([_has_word(d, y_words[i]) for i, d in enumerate(dec_rand)]).mean()
|
| 126 |
control = float(c_tgt)
|
| 127 |
|
| 128 |
+
# ---- T0 surrogate: "Y present" probe on edited z (no decode) -------------
|
| 129 |
+
# train a per-item-agnostic Y-vs-X probe pooled across pairs, eval whether
|
| 130 |
+
# EDITED z reads as Y (label 1) vs original X (label 0).
|
| 131 |
+
Ztr = np.concatenate([Zx, Zy], axis=0)
|
| 132 |
+
ytr = np.r_[np.zeros(len(Zx)), np.ones(len(Zy))]
|
|
|
|
| 133 |
clf = _edit.fit_probe(Ztr, ytr)
|
| 134 |
+
t0_scores = np.r_[_edit.probe_score(clf, edited), _edit.probe_score(clf, Zx)]
|
|
|
|
|
|
|
| 135 |
t0_labels = np.r_[np.ones(len(edited)), np.zeros(len(Zx))]
|
| 136 |
t0_surr = float(metrics.auc(t0_labels, t0_scores))
|
| 137 |
|
| 138 |
+
# per-axis breakdown (diagnostic only)
|
| 139 |
+
by_axis = {}
|
| 140 |
+
for ax in sorted({it["axis"] for it in items}):
|
| 141 |
+
m = np.array([it["axis"] == ax for it in items])
|
| 142 |
+
by_axis[ax] = {
|
| 143 |
+
"target_success": float((tgt * x_gone)[m].mean()),
|
| 144 |
+
"n": int(m.sum()),
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
return {
|
| 148 |
"score": float(score),
|
| 149 |
"baseline": float(baseline),
|
| 150 |
"ceiling": float(max(ceiling, score)),
|
| 151 |
"control": float(control),
|
| 152 |
"raw": {
|
| 153 |
+
"n_pairs": len(pairs),
|
| 154 |
+
"n_items": len(items),
|
| 155 |
"target_success": target_success,
|
| 156 |
"x_removed": float(x_gone.mean()),
|
| 157 |
"collateral_preservation": float(preservation),
|
| 158 |
+
"naive_target_success": float(nb_tgt),
|
| 159 |
+
"naive_preservation": float(nb_pres),
|
| 160 |
"t0_surrogate_auc": t0_surr,
|
| 161 |
+
"by_axis": by_axis,
|
| 162 |
"edit_examples": list(zip(x_texts[:3], list(dec_edit[:3]))),
|
| 163 |
+
# NOTE: no audit_arms here -- the decode target-success (a fraction)
|
| 164 |
+
# and the T0 probe AUC live on different scales, so a dual-arm gap
|
| 165 |
+
# check would be a false positive. Both are reported for inspection.
|
| 166 |
},
|
| 167 |
}
|
sieve_bench/tasks/t25_concept_injection_recovery.py
CHANGED
|
@@ -14,13 +14,26 @@ recovery AUC should sit at the natural-AUC(N+1) on the SAME single-C curve. We f
|
|
| 14 |
the natural recoverability curve AUC(N) = 0.5 + 0.5 * p(s(N)) with s(N)=sqrt(C/(N-1))
|
| 15 |
to the host corpus, then compare measured injected-recovery to AUC(N+1).
|
| 16 |
|
| 17 |
-
score : 1 - mean|recovered_AUC(N) - predicted_AUC(N+1)| (no-cliff fit)
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
control : recovery AUC when injecting a RANDOM matched-norm direction
|
| 21 |
-
(should be ~0.5 -> tracks nothing).
|
| 22 |
raw.by_bin : per-N-bin measured vs predicted recovery AUC.
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
REF (N3): injected recovery tracks the N+1 budget within ~0.05, monotone, no
|
| 25 |
cliff -> Law-1 is generative/causal.
|
| 26 |
"""
|
|
@@ -156,11 +169,26 @@ def run(encoder, data):
|
|
| 156 |
|
| 157 |
measured = np.array(measured)
|
| 158 |
predicted = np.array(predicted)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
err = float(np.mean(np.abs(measured - predicted))) if len(measured) else 1.0
|
| 160 |
score = float(max(0.0, 1.0 - err))
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
|
| 165 |
return {
|
| 166 |
"score": score,
|
|
@@ -172,8 +200,15 @@ def run(encoder, data):
|
|
| 172 |
"law1_C_fit": float(Cfit),
|
| 173 |
"mean_measured_auc": float(measured.mean()) if len(measured) else None,
|
| 174 |
"mean_predicted_auc": float(predicted.mean()) if len(predicted) else None,
|
|
|
|
| 175 |
"mean_abs_err": err,
|
|
|
|
| 176 |
"n_injected": int(len(neg_idx)),
|
| 177 |
"by_bin": by_bin,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
},
|
| 179 |
}
|
|
|
|
| 14 |
the natural recoverability curve AUC(N) = 0.5 + 0.5 * p(s(N)) with s(N)=sqrt(C/(N-1))
|
| 15 |
to the host corpus, then compare measured injected-recovery to AUC(N+1).
|
| 16 |
|
| 17 |
+
score : 1 - mean|recovered_AUC(N) - predicted_AUC(N+1)| (no-cliff fit) --
|
| 18 |
+
how well the REAL one-token concept injection tracks the capacity-
|
| 19 |
+
law-predicted N+1 recovery rate.
|
| 20 |
+
baseline : the SAME tracking score for the RANDOM matched-norm injection (the
|
| 21 |
+
proper null / no-concept control). A random injection carries no
|
| 22 |
+
concept, so its recovery sits at chance (~0.5), FAR below the
|
| 23 |
+
predicted rate -> it scores LOW. The real injection must beat this
|
| 24 |
+
floor. (v0.1 bug: baseline was 1-mean|measured-0.5|, which is the
|
| 25 |
+
SIGNAL grading ITSELF -- the more recoverable the real injection,
|
| 26 |
+
the higher that bogus "baseline", so it always beat the score.)
|
| 27 |
+
ceiling : 1.0 (perfect tracking of the predicted budget).
|
| 28 |
control : recovery AUC when injecting a RANDOM matched-norm direction
|
| 29 |
+
(should be ~0.5 -> tracks nothing); == the basis of the baseline.
|
| 30 |
raw.by_bin : per-N-bin measured vs predicted recovery AUC.
|
| 31 |
|
| 32 |
+
The capacity-law prediction is the natural recoverability curve evaluated at
|
| 33 |
+
N+1 for a ONE-token budget: we anchor the curve at the host corpus's measured
|
| 34 |
+
single-token-budget recoverability so the prediction is at the INJECTION
|
| 35 |
+
magnitude (one token of concept), not the full-concept natural AUC.
|
| 36 |
+
|
| 37 |
REF (N3): injected recovery tracks the N+1 budget within ~0.05, monotone, no
|
| 38 |
cliff -> Law-1 is generative/causal.
|
| 39 |
"""
|
|
|
|
| 169 |
|
| 170 |
measured = np.array(measured)
|
| 171 |
predicted = np.array(predicted)
|
| 172 |
+
ctrl = np.array(ctrl_aucs)
|
| 173 |
+
|
| 174 |
+
# score: how well the REAL one-token concept injection tracks the capacity-
|
| 175 |
+
# law-predicted N+1 recovery rate. (No level-anchoring: we report the honest
|
| 176 |
+
# gap. If the injection UNDER-recovers vs the full-concept natural curve that
|
| 177 |
+
# is a real finding, visible in score < 1.)
|
| 178 |
err = float(np.mean(np.abs(measured - predicted))) if len(measured) else 1.0
|
| 179 |
score = float(max(0.0, 1.0 - err))
|
| 180 |
+
|
| 181 |
+
# baseline (FIXED): the SAME tracking score for the RANDOM (no-concept)
|
| 182 |
+
# injection, graded against the SAME capacity-law target. A random injection
|
| 183 |
+
# carries no concept -> recovery ~0.5 -> far below the predicted rate -> a
|
| 184 |
+
# LOW tracking score. This is the proper null floor. (v0.1 bug: baseline was
|
| 185 |
+
# 1-mean|measured-0.5|, the SIGNAL grading itself, which always beat score.)
|
| 186 |
+
if len(ctrl):
|
| 187 |
+
base_err = float(np.mean(np.abs(ctrl - predicted)))
|
| 188 |
+
baseline = float(max(0.0, 1.0 - base_err))
|
| 189 |
+
else:
|
| 190 |
+
baseline = 0.0
|
| 191 |
+
control = float(np.mean(ctrl)) if len(ctrl) else 0.5
|
| 192 |
|
| 193 |
return {
|
| 194 |
"score": score,
|
|
|
|
| 200 |
"law1_C_fit": float(Cfit),
|
| 201 |
"mean_measured_auc": float(measured.mean()) if len(measured) else None,
|
| 202 |
"mean_predicted_auc": float(predicted.mean()) if len(predicted) else None,
|
| 203 |
+
"mean_control_auc": control,
|
| 204 |
"mean_abs_err": err,
|
| 205 |
+
"baseline_abs_err": float(base_err) if len(ctrl) else None,
|
| 206 |
"n_injected": int(len(neg_idx)),
|
| 207 |
"by_bin": by_bin,
|
| 208 |
+
# the real-injection vs random-injection recovery contrast. They
|
| 209 |
+
# SHOULD differ (real carries the concept, random does not) -- that
|
| 210 |
+
# is the point, so NOT an audit arm (a >0.15 gap is EXPECTED).
|
| 211 |
+
"mean_measured_minus_control": (float(np.mean(measured) - control)
|
| 212 |
+
if len(measured) else None),
|
| 213 |
},
|
| 214 |
}
|