File size: 7,507 Bytes
d1e3494
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
{
  "key": "opt05_bitpack_popcount/control_baseline",
  "tag": "control_baseline",
  "script": "opt05_bitpack_popcount.py",
  "script_sha256_16": "5a6aac669f67a678",
  "hf_folder": "applied/opt05_bitpack_popcount",
  "priority": 0,
  "note": "control: dense float dataflow",
  "phase": 1,
  "n_phases": 10,
  "method": "harmonic_matched",
  "command": [
    "/usr/bin/python3",
    "-m",
    "torch.distributed.run",
    "--standalone",
    "--nproc_per_node=2",
    "/kaggle/working/scripts/opt05_bitpack_popcount.py",
    "--method",
    "harmonic_matched",
    "--data-root",
    "/kaggle/working/data",
    "--epochs",
    "60",
    "--seed",
    "1234",
    "--batch-size",
    "64",
    "--event-eval",
    "--no-resume",
    "--decision-margin",
    "2.0",
    "--hub-dir",
    "/kaggle/working/hub/opt05_bitpack_popcount/control_baseline",
    "--keep-epoch-weights",
    "1",
    "--resplit",
    "block",
    "--drop-rest",
    "--bench",
    "--baseline"
  ],
  "flags": [
    "--baseline"
  ],
  "epochs_requested": 60,
  "gpus": 2,
  "relative_epoch_cost": 1.0,
  "exit_code": 0,
  "status": "ok",
  "duration_s": 584.8,
  "started_utc": "2026-08-23T03:46:56.620790+00:00",
  "finished_utc": "2026-08-23T03:56:41.438375+00:00",
  "optimization_summary": {
    "optimization": "bitpack_popcount",
    "research_section": "3. Spike-Sparsity & MAC->AC Restructuring",
    "reference": "SATA, arXiv:2204.05422; BMXNet/BiFSMNv2 popcount GEMM",
    "script": "opt05_bitpack_popcount.py",
    "baseline_mode": true,
    "method": "harmonic_matched",
    "accuracy": {
      "test_acc": 0.9392857142857143,
      "test_target_acc": 0.9392857142857143,
      "best_val_acc": 0.945
    },
    "efficiency": {
      "spikes_per_inference": null,
      "syn_ops_per_inference": 3259960.8547077924,
      "dense_macs_per_inference": 122675200.0,
      "event_fraction_of_dense": 0.02657391921682453,
      "syn_ops_per_inference_dense_fanout": 64836578.64123377,
      "weight_sparsity": 0.7324707846410685,
      "effective_ticks": 11.83,
      "num_ticks": 100,
      "membrane_bytes_per_inference": 451200,
      "weight_bytes": 4907008,
      "input_raster_bytes": 403200000,
      "train_ms_per_step": 94.69575869998152,
      "infer_ms_per_sample": 0.6265434059375252,
      "peak_vram_mb": 2827.963904
    },
    "optimization_specific": {
      "bitpack": false,
      "pack_hidden": false,
      "popcount_readout": false,
      "n_channels": 2880,
      "packed_words_per_tick": 90,
      "input_raster_bytes_uint8": 403200000,
      "input_raster_bytes_packed": null,
      "memory_reduction_x": 1.0,
      "mults_eliminated_per_inference": null,
      "pred_agreement_packed_vs_float": null,
      "popcount_counts_exact": null,
      "crossover_density": 0.01,
      "packed_ever_wins": true,
      "packed_vs_scatter_ms": [
        {
          "density": 0.01,
          "measured_density": 0.00997178815305233,
          "scatter_ms": 0.1802825927734375,
          "packed_ms": 0.046405792236328125,
          "pack_ms": 0.1291036605834961,
          "speedup_x": 3.8849157418824496,
          "packed_wins": true,
          "matches_scatter": true
        },
        {
          "density": 0.05,
          "measured_density": 0.0490993931889534,
          "scatter_ms": 0.2356719970703125,
          "packed_ms": 0.06339550018310547,
          "pack_ms": 0.13286590576171875,
          "speedup_x": 3.7174877773599095,
          "packed_wins": true,
          "matches_scatter": true
        },
        {
          "density": 0.1,
          "measured_density": 0.10040690004825592,
          "scatter_ms": 0.42845726013183594,
          "packed_ms": 0.08290290832519531,
          "pack_ms": 0.12605667114257812,
          "speedup_x": 5.168181295295065,
          "packed_wins": true,
          "matches_scatter": true
        },
        {
          "density": 0.25,
          "measured_density": 0.24960395693778992,
          "scatter_ms": 1.0294532775878906,
          "packed_ms": 0.14525413513183594,
          "pack_ms": 0.12697696685791016,
          "speedup_x": 7.087256253693126,
          "packed_wins": true,
          "matches_scatter": true
        },
        {
          "density": 0.5,
          "measured_density": 0.49802517890930176,
          "scatter_ms": 1.3754749298095703,
          "packed_ms": 0.2714681625366211,
          "pack_ms": 0.1302051544189453,
          "speedup_x": 5.0668001615991285,
          "packed_wins": true,
          "matches_scatter": true
        }
      ],
      "popcount_vs_loop_ms": {
        "loop_ms": 0.013265609741210938,
        "popcount_ms": 0.03826141357421875,
        "speedup_x": 0.3467098703888335
      }
    },
    "config": {
      "method": "harmonic_matched",
      "data_root": "/kaggle/working/data",
      "subjects": "",
      "blocks": "",
      "limit": 0,
      "drop_rest": true,
      "resplit": "block",
      "test_blocks": "6",
      "class_weight": false,
      "epochs": 60,
      "batch_size": 64,
      "lr": 0.002,
      "weight_decay": 0.0005,
      "grad_clip": 5.0,
      "num_bins": 100,
      "window_sec": 5.0,
      "hidden": "512,256",
      "freq_groups": 8,
      "dropout": 0.3,
      "spike_drop": 0.1,
      "time_jitter": 2,
      "label_smoothing": 0.05,
      "no_batchnorm": false,
      "binary_input": false,
      "beta": 1.0,
      "thresh": 1.0,
      "window": 0.5,
      "gain": 1.0,
      "alpha": 0.9,
      "readout": "spikecount",
      "fake_quant": 0,
      "amp": false,
      "spike_reg": 0.0,
      "event_eval": true,
      "decision_margin": 2.0,
      "export": false,
      "seed": 1234,
      "hub_dir": "/kaggle/working/hub/opt05_bitpack_popcount/control_baseline",
      "repo_id": "UWU-R-13/SSVEP-SNN",
      "push_hf": false,
      "keep_epoch_weights": 1,
      "no_resume": true,
      "selftest": false,
      "baseline": true,
      "bench": true,
      "bench_warmup": 10,
      "bench_iters": 50,
      "bench_train_steps": 20,
      "bitpack": true,
      "pack_hidden": false,
      "popcount_readout": true,
      "sparsity_sweep": "0.01,0.05,0.1,0.25,0.5",
      "sampling_rate": 250.0
    }
  },
  "final_summary": {
    "final_test_acc": 0.9392857142857143,
    "final_test_target_acc": 0.9392857142857143,
    "final_test_rest_recall": NaN,
    "best_acc": 0.945,
    "best_epoch": 53,
    "resplit": "block",
    "class_weight": false,
    "drop_rest": true,
    "epochs": 60,
    "method": "harmonic_matched",
    "n_in": 2880,
    "n_classes": 40,
    "num_bins": 100
  },
  "event_driven_summary": {
    "acc": 0.9392857142857143,
    "anytime_acc": {
      "0.25": 0.6364285714285715,
      "0.5": 0.8428571428571429,
      "0.75": 0.9192857142857143,
      "1.0": 0.9392857142857143
    },
    "syn_per_inference": 3259960.8547077924,
    "dense_per_inference": 122675200.0,
    "event_fraction_of_dense": 0.02657391921682453,
    "syn_per_inference_dense_fanout": 64836578.64123377,
    "weight_sparsity": 0.7324707846410685,
    "num_ticks": 100,
    "dt_ms": 50.0,
    "margin_decision_acc": 0.4585714285714286,
    "mean_decision_tick": 11.83,
    "mean_decision_ms": 591.5,
    "dense_forward_test_acc": 0.9392857142857143
  },
  "extra_sweep_file_present": true,
  "selftest": {
    "mode": "gate",
    "passed": true
  },
  "driver_version": 1,
  "zip": {
    "name": "control_baseline.zip",
    "files": 81,
    "bytes": 12250994,
    "MB": 12.3,
    "sha256": "ef07404573217d6615260626d16d6c3baa237388a674cc6f4fc50b4f57d95eb3"
  }
}