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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Loading Freckles v40 + CIFAR-10...
|
| 2 |
+
Collecting spatial friction maps (full test set)...
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
Processing: 0%| | 0/157 [00:00<?, ?it/s]
|
| 6 |
+
Processing: 2%|β | 3/157 [00:00<00:05, 27.84it/s]
|
| 7 |
+
Processing: 6%|β | 10/157 [00:00<00:03, 47.55it/s]
|
| 8 |
+
Processing: 10%|β | 16/157 [00:00<00:02, 52.61it/s]
|
| 9 |
+
Processing: 15%|ββ | 23/157 [00:00<00:02, 55.85it/s]
|
| 10 |
+
Processing: 19%|ββ | 30/157 [00:00<00:02, 57.56it/s]
|
| 11 |
+
Processing: 24%|βββ | 37/157 [00:00<00:02, 58.87it/s]
|
| 12 |
+
Processing: 28%|βββ | 44/157 [00:00<00:01, 59.76it/s]
|
| 13 |
+
Processing: 32%|ββββ | 51/157 [00:00<00:01, 60.39it/s]
|
| 14 |
+
Processing: 37%|ββββ | 58/157 [00:01<00:01, 60.74it/s]
|
| 15 |
+
Processing: 41%|βββββ | 65/157 [00:01<00:01, 61.04it/s]
|
| 16 |
+
Processing: 46%|βββββ | 72/157 [00:01<00:01, 61.30it/s]
|
| 17 |
+
Processing: 50%|βββββ | 79/157 [00:01<00:01, 61.43it/s]
|
| 18 |
+
Processing: 55%|ββββββ | 86/157 [00:01<00:01, 61.50it/s]
|
| 19 |
+
Processing: 59%|ββββββ | 93/157 [00:01<00:01, 61.58it/s]
|
| 20 |
+
Processing: 64%|βββββββ | 100/157 [00:01<00:00, 61.60it/s]
|
| 21 |
+
Processing: 68%|βββββββ | 107/157 [00:01<00:00, 61.48it/s]
|
| 22 |
+
Processing: 73%|ββββββββ | 114/157 [00:01<00:00, 61.44it/s]
|
| 23 |
+
Processing: 77%|ββββββββ | 121/157 [00:02<00:00, 61.30it/s]
|
| 24 |
+
Processing: 82%|βββββββββ | 128/157 [00:02<00:00, 60.39it/s]
|
| 25 |
+
Processing: 86%|βββββββββ | 135/157 [00:02<00:00, 59.75it/s]
|
| 26 |
+
Processing: 90%|βββββββββ | 142/157 [00:02<00:00, 60.27it/s]
|
| 27 |
+
Processing: 95%|ββββββββββ| 149/157 [00:02<00:00, 60.65it/s]
|
| 28 |
+
Processing: 100%|ββββββββββ| 157/157 [00:02<00:00, 57.92it/s]
|
| 29 |
+
|
| 30 |
+
Collected 10000 images, 2000 individual maps
|
| 31 |
+
|
| 32 |
+
======================================================================
|
| 33 |
+
1. SPATIAL STRUCTURE β Do friction maps have spatial variance?
|
| 34 |
+
======================================================================
|
| 35 |
+
|
| 36 |
+
Per-image spatial friction variance (across 256 patches):
|
| 37 |
+
Mode 0 (Sβ): mean=0.0359 std=0.0196
|
| 38 |
+
Mode 1 (Sβ): mean=0.0207 std=0.0143
|
| 39 |
+
Mode 2 (Sβ): mean=0.3235 std=0.1607
|
| 40 |
+
Mode 3 (Sβ): mean=0.0000 std=0.0000
|
| 41 |
+
|
| 42 |
+
Per-image spatial CV (std/mean):
|
| 43 |
+
Mode 0: CV mean=0.0145 median=0.0145 max=0.0300
|
| 44 |
+
Mode 1: CV mean=0.0109 median=0.0106 max=0.0272
|
| 45 |
+
Mode 2: CV mean=0.0294 median=0.0297 max=0.0533
|
| 46 |
+
Mode 3: CV mean=0.0000 median=0.0000 max=0.0000
|
| 47 |
+
|
| 48 |
+
VERDICT: SPATIALLY UNIFORM (mean CV = 0.0137)
|
| 49 |
+
|
| 50 |
+
======================================================================
|
| 51 |
+
2. PER-CLASS SPATIAL PATTERNS β Do classes have different friction maps?
|
| 52 |
+
======================================================================
|
| 53 |
+
|
| 54 |
+
Inter-class friction map L2 distances:
|
| 55 |
+
airpl auto bird cat deer dog frog horse ship truck
|
| 56 |
+
airplane 0.000 5.791 5.016 6.309 6.924 5.982 7.640 5.202 3.186 4.733
|
| 57 |
+
auto 5.791 0.000 3.181 3.194 3.779 3.585 3.552 3.158 3.951 2.838
|
| 58 |
+
bird 5.016 3.181 0.000 2.093 2.065 2.115 2.931 1.535 4.403 4.120
|
| 59 |
+
cat 6.309 3.194 2.093 0.000 1.806 1.493 1.996 2.043 5.563 4.821
|
| 60 |
+
deer 6.924 3.779 2.065 1.806 0.000 2.135 1.485 2.355 6.168 5.364
|
| 61 |
+
dog 5.982 3.585 2.115 1.493 2.135 0.000 2.682 2.474 5.349 5.220
|
| 62 |
+
frog 7.640 3.552 2.931 1.996 1.485 2.682 0.000 3.063 6.488 5.457
|
| 63 |
+
horse 5.202 3.158 1.535 2.043 2.355 2.474 3.063 0.000 4.650 3.783
|
| 64 |
+
ship 3.186 3.951 4.403 5.563 6.168 5.349 6.488 4.650 0.000 3.010
|
| 65 |
+
truck 4.733 2.838 4.120 4.821 5.364 5.220 5.457 3.783 3.010 0.000
|
| 66 |
+
|
| 67 |
+
Mean inter-class distance: 3.8820
|
| 68 |
+
Mean cosine similarity: 0.999958
|
| 69 |
+
Min cosine similarity: 0.999881
|
| 70 |
+
VERDICT: NEARLY IDENTICAL PATTERNS
|
| 71 |
+
|
| 72 |
+
======================================================================
|
| 73 |
+
3. CENTER vs EDGE β Do boundary patches have higher friction?
|
| 74 |
+
======================================================================
|
| 75 |
+
|
| 76 |
+
Class Center Edge Edge/Center
|
| 77 |
+
----------------------------------------
|
| 78 |
+
airplane 12.155 12.126 0.9975
|
| 79 |
+
auto 12.203 12.219 1.0013
|
| 80 |
+
bird 12.193 12.177 0.9987
|
| 81 |
+
cat 12.206 12.212 1.0005
|
| 82 |
+
deer 12.207 12.198 0.9993
|
| 83 |
+
dog 12.179 12.200 1.0017
|
| 84 |
+
frog 12.201 12.222 1.0018
|
| 85 |
+
horse 12.214 12.183 0.9974
|
| 86 |
+
ship 12.147 12.166 1.0015
|
| 87 |
+
truck 12.210 12.185 0.9980
|
| 88 |
+
|
| 89 |
+
======================================================================
|
| 90 |
+
4. PER-PATCH-POSITION DISCRIMINABILITY
|
| 91 |
+
======================================================================
|
| 92 |
+
|
| 93 |
+
F-statistic (inter-class var / intra-class var) per mode:
|
| 94 |
+
Mode 0: mean=0.054267 max=0.113004 top 5% threshold=0.096192
|
| 95 |
+
Mode 1: mean=0.165008 max=0.262047 top 5% threshold=0.254798
|
| 96 |
+
Mode 2: mean=0.069616 max=0.170688 top 5% threshold=0.149573
|
| 97 |
+
Mode 3: mean=0.000000 max=0.000000 top 5% threshold=0.000000
|
| 98 |
+
Mode 0 best position: (1, 15) F=0.113004
|
| 99 |
+
Mode 1 best position: (1, 13) F=0.262047
|
| 100 |
+
Mode 2 best position: (0, 14) F=0.170688
|
| 101 |
+
Mode 3 best position: (0, 0) F=0.000000
|
| 102 |
+
|
| 103 |
+
Overall best discriminative patch position: 0, 14 F=0.133089
|
| 104 |
+
Overall mean F-statistic: 0.072223
|
| 105 |
+
VERDICT: POSITIONALLY DISCRIMINATIVE
|
| 106 |
+
|
| 107 |
+
======================================================================
|
| 108 |
+
5. PER-MODE SPATIAL VARIANCE β Which mode has the most structure?
|
| 109 |
+
======================================================================
|
| 110 |
+
Mode 0: map_mean=12.5844 map_var=0.000355 map_cv=0.0015
|
| 111 |
+
Mode 1: map_mean=12.4741 map_var=0.000701 map_cv=0.0021
|
| 112 |
+
Mode 2: map_mean=18.6994 map_var=0.004943 map_cv=0.0038
|
| 113 |
+
Mode 3: map_mean=5.0000 map_var=0.000000 map_cv=0.0000
|
| 114 |
+
|
| 115 |
+
======================================================================
|
| 116 |
+
6. SAMPLE FRICTION MAPS β Individual images
|
| 117 |
+
======================================================================
|
| 118 |
+
|
| 119 |
+
Class Img Mean Std Max Entropy HotSpots
|
| 120 |
+
-------------------------------------------------------
|
| 121 |
+
airplane 0 12.11 0.22 19.60 1.000 0
|
| 122 |
+
airplane 1 12.09 0.11 19.89 1.000 0
|
| 123 |
+
auto 0 12.35 0.26 20.45 1.000 0
|
| 124 |
+
auto 1 12.15 0.24 20.03 1.000 0
|
| 125 |
+
bird 0 12.18 0.23 20.62 1.000 0
|
| 126 |
+
bird 1 12.30 0.26 20.28 1.000 0
|
| 127 |
+
cat 0 12.19 0.20 19.87 1.000 0
|
| 128 |
+
cat 1 12.07 0.18 20.44 1.000 0
|
| 129 |
+
deer 0 12.30 0.09 19.88 1.000 0
|
| 130 |
+
deer 1 12.26 0.24 20.43 1.000 0
|
| 131 |
+
dog 0 12.26 0.23 20.28 1.000 0
|
| 132 |
+
dog 1 12.19 0.30 20.55 1.000 0
|
| 133 |
+
frog 0 12.18 0.19 20.18 1.000 0
|
| 134 |
+
frog 1 12.23 0.17 20.43 1.000 0
|
| 135 |
+
horse 0 12.38 0.34 20.69 1.000 0
|
| 136 |
+
horse 1 12.15 0.21 19.89 1.000 0
|
| 137 |
+
ship 0 12.16 0.29 20.76 1.000 0
|
| 138 |
+
ship 1 12.17 0.23 20.06 1.000 0
|
| 139 |
+
truck 0 12.17 0.26 20.30 1.000 0
|
| 140 |
+
truck 1 12.21 0.23 20.33 1.000 0
|
| 141 |
+
|
| 142 |
+
======================================================================
|
| 143 |
+
7. LINEAR PROBE β Can flattened friction maps classify?
|
| 144 |
+
======================================================================
|
| 145 |
+
|
| 146 |
+
Features: flattened friction map (1024 dims)
|
| 147 |
+
Train: 1600, Test: 400
|
| 148 |
+
Train accuracy: 92.6%
|
| 149 |
+
Test accuracy: 24.3%
|
| 150 |
+
Chance: 10.0%
|
| 151 |
+
|
| 152 |
+
Class Acc
|
| 153 |
+
------------------
|
| 154 |
+
airplane 32.6% ββββββ
|
| 155 |
+
auto 24.4% ββββ
|
| 156 |
+
bird 20.6% ββββ
|
| 157 |
+
cat 15.7% βββ
|
| 158 |
+
deer 10.3% ββ
|
| 159 |
+
dog 21.9% ββββ
|
| 160 |
+
frog 37.8% βββββββ
|
| 161 |
+
horse 22.9% ββββ
|
| 162 |
+
ship 24.1% ββββ
|
| 163 |
+
truck 27.8% βββββ
|
| 164 |
+
|
| 165 |
+
VERDICT: DISCRIMINATIVE spatial friction signal
|
| 166 |
+
|
| 167 |
+
======================================================================
|
| 168 |
+
8. SETTLE MAP β Spatial convergence patterns
|
| 169 |
+
======================================================================
|
| 170 |
+
Settle map linear probe:
|
| 171 |
+
Test accuracy: 10.5%
|
| 172 |
+
VERDICT: NOT DISCRIMINATIVE
|
| 173 |
+
|
| 174 |
+
======================================================================
|
| 175 |
+
9. COMBINED CONDUIT β All evidence stacked
|
| 176 |
+
======================================================================
|
| 177 |
+
|
| 178 |
+
Collecting eigenvalue spatial maps...
|
| 179 |
+
|
| 180 |
+
Linear probe comparison (all use same train/test split):
|
| 181 |
+
|
| 182 |
+
Eigenvalues (S) spatial dims= 1024 test_acc=21.0%
|
| 183 |
+
Friction spatial dims= 1024 test_acc=24.3%
|
| 184 |
+
Settle spatial dims= 1024 test_acc=10.5%
|
| 185 |
+
Combined (S+fric+settle) dims= 3072 test_acc=22.0%
|
| 186 |
+
|
| 187 |
+
Chance: 10.0%
|
| 188 |
+
VERDICT: Combined vs eigenvalues-only lift = +1.0 percentage points
|
| 189 |
+
|
| 190 |
+
======================================================================
|
| 191 |
+
SPATIAL FRICTION ANALYSIS β SUMMARY
|
| 192 |
+
======================================================================
|
| 193 |
+
1. Spatial structure within images: CV = 0.0137
|
| 194 |
+
2. Inter-class pattern distance: cos_min = 0.999881
|
| 195 |
+
3. Center vs edge asymmetry: (see table above)
|
| 196 |
+
4. Per-position F-statistic: max = 0.133089
|
| 197 |
+
5. Friction map linear probe: 24.3%
|
| 198 |
+
6. Settle map linear probe: 10.5%
|
| 199 |
+
7. Eigenvalue map linear probe: 21.0%
|
| 200 |
+
8. Combined conduit linear probe: 22.0%
|
| 201 |
+
9. Conduit lift over eigenvalues: +1.0pp
|