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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "key": "opt06_uticket_prune/balance_iters_4",
3
+ "tag": "balance_iters_4",
4
+ "script": "opt06_uticket_prune.py",
5
+ "script_sha256_16": "13957bb36508b8cf",
6
+ "hf_folder": "applied/opt06_uticket_prune",
7
+ "priority": 2,
8
+ "note": "more balance passes per round, where a clamped column actually matters",
9
+ "phase": 8,
10
+ "n_phases": 10,
11
+ "method": "harmonic_matched",
12
+ "command": [
13
+ "/usr/bin/python3",
14
+ "-m",
15
+ "torch.distributed.run",
16
+ "--standalone",
17
+ "--nproc_per_node=2",
18
+ "/kaggle/working/scripts/opt06_uticket_prune.py",
19
+ "--method",
20
+ "harmonic_matched",
21
+ "--data-root",
22
+ "/kaggle/working/data",
23
+ "--epochs",
24
+ "60",
25
+ "--seed",
26
+ "1234",
27
+ "--batch-size",
28
+ "64",
29
+ "--event-eval",
30
+ "--no-resume",
31
+ "--decision-margin",
32
+ "2.0",
33
+ "--hub-dir",
34
+ "/kaggle/working/hub/opt06_uticket_prune/balance_iters_4",
35
+ "--keep-epoch-weights",
36
+ "1",
37
+ "--resplit",
38
+ "block",
39
+ "--drop-rest",
40
+ "--bench",
41
+ "--prune-rate",
42
+ "0.7",
43
+ "--balance-iters",
44
+ "4"
45
+ ],
46
+ "flags": [
47
+ "--prune-rate",
48
+ "0.7",
49
+ "--balance-iters",
50
+ "4"
51
+ ],
52
+ "epochs_requested": 60,
53
+ "gpus": 2,
54
+ "relative_epoch_cost": 1.0,
55
+ "exit_code": 0,
56
+ "status": "ok",
57
+ "duration_s": 338.9,
58
+ "started_utc": "2026-08-23T06:33:11.132687+00:00",
59
+ "finished_utc": "2026-08-23T06:38:50.040612+00:00",
60
+ "optimization_summary": {
61
+ "optimization": "uticket_workload_balanced_pruning",
62
+ "research_section": "3. Spike sparsity & MAC->AC restructuring",
63
+ "reference": "u-Ticket: Workload-Balanced Pruning for Sparse SNNs, arXiv:2302.06746",
64
+ "script": "opt06_uticket_prune.py",
65
+ "baseline_mode": false,
66
+ "method": "harmonic_matched",
67
+ "accuracy": {
68
+ "test_acc": 0.16214285714285714,
69
+ "test_target_acc": 0.16214285714285714,
70
+ "best_val_acc": 0.9178571428571428
71
+ },
72
+ "efficiency": {
73
+ "spikes_per_inference": null,
74
+ "syn_ops_per_inference": 136729.83796672078,
75
+ "dense_macs_per_inference": 122675200.0,
76
+ "event_fraction_of_dense": 0.0011145678830498812,
77
+ "syn_ops_per_inference_dense_fanout": 65037287.148538955,
78
+ "weight_sparsity": 0.9909484557595993,
79
+ "effective_ticks": 18.82357142857143,
80
+ "num_ticks": 100,
81
+ "membrane_bytes_per_inference": 451200,
82
+ "weight_bytes": 4907008,
83
+ "input_raster_bytes": null,
84
+ "train_ms_per_step": 102.35313660004977,
85
+ "infer_ms_per_sample": 0.6673678306248121,
86
+ "peak_vram_mb": 2838.680064,
87
+ "weight_bytes_nonzero": 3485
88
+ },
89
+ "optimization_specific": {
90
+ "pruning_enabled": true,
91
+ "balance_enabled": true,
92
+ "rounds": 5,
93
+ "final_sparsity": 0.9992897727272727,
94
+ "nnz_per_layer": {
95
+ "layer0": 96,
96
+ "layer1": 512,
97
+ "layer2": 256
98
+ },
99
+ "pe_stats_per_layer": {
100
+ "layer0": {
101
+ "mean_nnz": 0.30000000000000004,
102
+ "max_nnz": 1.0,
103
+ "min_nnz": 0.0,
104
+ "total_nnz": 96,
105
+ "numel": 921600,
106
+ "sparsity": 0.9998958333333333,
107
+ "utilization": 0.30000000000000004
108
+ },
109
+ "layer1": {
110
+ "mean_nnz": 1.0,
111
+ "max_nnz": 1.0,
112
+ "min_nnz": 1.0,
113
+ "total_nnz": 512,
114
+ "numel": 163840,
115
+ "sparsity": 0.996875,
116
+ "utilization": 1.0
117
+ },
118
+ "layer2": {
119
+ "mean_nnz": 1.0,
120
+ "max_nnz": 1.0,
121
+ "min_nnz": 1.0,
122
+ "total_nnz": 256,
123
+ "numel": 131072,
124
+ "sparsity": 0.998046875,
125
+ "utilization": 1.0
126
+ }
127
+ },
128
+ "pe_utilization_final": 0.7666666666666666,
129
+ "pe_utilization_lth": 0.33328993055555556,
130
+ "pe_utilization_uticket": 0.7666666666666666,
131
+ "latency_proxy_dense": 3712,
132
+ "latency_proxy_final": 3,
133
+ "latency_reduction_frac": 0.9991918103448276,
134
+ "rounds_history": [
135
+ {
136
+ "round": 1,
137
+ "layers": {
138
+ "layer0": {
139
+ "lth": {
140
+ "mean_nnz": 21.6,
141
+ "max_nnz": 34.0,
142
+ "min_nnz": 13.0,
143
+ "total_nnz": 6912,
144
+ "numel": 921600,
145
+ "sparsity": 0.9925,
146
+ "utilization": 0.6352941176470589
147
+ },
148
+ "uticket": {
149
+ "mean_nnz": 22.0,
150
+ "max_nnz": 22.0,
151
+ "min_nnz": 22.0,
152
+ "total_nnz": 7040,
153
+ "numel": 921600,
154
+ "sparsity": 0.9923611111111111,
155
+ "utilization": 1.0
156
+ }
157
+ },
158
+ "layer1": {
159
+ "lth": {
160
+ "mean_nnz": 96.0,
161
+ "max_nnz": 117.0,
162
+ "min_nnz": 56.0,
163
+ "total_nnz": 49152,
164
+ "numel": 163840,
165
+ "sparsity": 0.7,
166
+ "utilization": 0.8205128205128205
167
+ },
168
+ "uticket": {
169
+ "mean_nnz": 96.0,
170
+ "max_nnz": 96.0,
171
+ "min_nnz": 96.0,
172
+ "total_nnz": 49152,
173
+ "numel": 163840,
174
+ "sparsity": 0.7,
175
+ "utilization": 1.0
176
+ }
177
+ },
178
+ "layer2": {
179
+ "lth": {
180
+ "mean_nnz": 153.6015625,
181
+ "max_nnz": 186.0,
182
+ "min_nnz": 123.0,
183
+ "total_nnz": 39322,
184
+ "numel": 131072,
185
+ "sparsity": 0.6999969482421875,
186
+ "utilization": 0.8258148521505376
187
+ },
188
+ "uticket": {
189
+ "mean_nnz": 154.0,
190
+ "max_nnz": 154.0,
191
+ "min_nnz": 154.0,
192
+ "total_nnz": 39424,
193
+ "numel": 131072,
194
+ "sparsity": 0.69921875,
195
+ "utilization": 1.0
196
+ }
197
+ }
198
+ },
199
+ "latency_proxy": 272,
200
+ "sparsity": 0.9214015151515151
201
+ },
202
+ {
203
+ "round": 2,
204
+ "layers": {
205
+ "layer0": {
206
+ "lth": {
207
+ "mean_nnz": 6.6000000000000005,
208
+ "max_nnz": 16.0,
209
+ "min_nnz": 1.0,
210
+ "total_nnz": 2112,
211
+ "numel": 921600,
212
+ "sparsity": 0.9977083333333333,
213
+ "utilization": 0.41250000000000003
214
+ },
215
+ "uticket": {
216
+ "mean_nnz": 7.0,
217
+ "max_nnz": 7.0,
218
+ "min_nnz": 7.0,
219
+ "total_nnz": 2240,
220
+ "numel": 921600,
221
+ "sparsity": 0.9975694444444444,
222
+ "utilization": 1.0
223
+ }
224
+ },
225
+ "layer1": {
226
+ "lth": {
227
+ "mean_nnz": 28.80078125,
228
+ "max_nnz": 49.0,
229
+ "min_nnz": 5.0,
230
+ "total_nnz": 14746,
231
+ "numel": 163840,
232
+ "sparsity": 0.90999755859375,
233
+ "utilization": 0.5877710459183674
234
+ },
235
+ "uticket": {
236
+ "mean_nnz": 29.0,
237
+ "max_nnz": 29.0,
238
+ "min_nnz": 29.0,
239
+ "total_nnz": 14848,
240
+ "numel": 163840,
241
+ "sparsity": 0.909375,
242
+ "utilization": 1.0
243
+ }
244
+ },
245
+ "layer2": {
246
+ "lth": {
247
+ "mean_nnz": 46.19921875,
248
+ "max_nnz": 63.0,
249
+ "min_nnz": 26.0,
250
+ "total_nnz": 11827,
251
+ "numel": 131072,
252
+ "sparsity": 0.9097671508789062,
253
+ "utilization": 0.7333209325396826
254
+ },
255
+ "uticket": {
256
+ "mean_nnz": 46.0,
257
+ "max_nnz": 46.0,
258
+ "min_nnz": 46.0,
259
+ "total_nnz": 11776,
260
+ "numel": 131072,
261
+ "sparsity": 0.91015625,
262
+ "utilization": 1.0
263
+ }
264
+ }
265
+ },
266
+ "latency_proxy": 82,
267
+ "sparsity": 0.9762731481481481
268
+ },
269
+ {
270
+ "round": 3,
271
+ "layers": {
272
+ "layer0": {
273
+ "lth": {
274
+ "mean_nnz": 2.1,
275
+ "max_nnz": 7.0,
276
+ "min_nnz": 0.0,
277
+ "total_nnz": 672,
278
+ "numel": 921600,
279
+ "sparsity": 0.9992708333333333,
280
+ "utilization": 0.3
281
+ },
282
+ "uticket": {
283
+ "mean_nnz": 2.0,
284
+ "max_nnz": 2.0,
285
+ "min_nnz": 2.0,
286
+ "total_nnz": 640,
287
+ "numel": 921600,
288
+ "sparsity": 0.9993055555555556,
289
+ "utilization": 1.0
290
+ }
291
+ },
292
+ "layer1": {
293
+ "lth": {
294
+ "mean_nnz": 8.69921875,
295
+ "max_nnz": 19.0,
296
+ "min_nnz": 0.0,
297
+ "total_nnz": 4454,
298
+ "numel": 163840,
299
+ "sparsity": 0.97281494140625,
300
+ "utilization": 0.45785361842105265
301
+ },
302
+ "uticket": {
303
+ "mean_nnz": 9.0,
304
+ "max_nnz": 9.0,
305
+ "min_nnz": 9.0,
306
+ "total_nnz": 4608,
307
+ "numel": 163840,
308
+ "sparsity": 0.971875,
309
+ "utilization": 1.0
310
+ }
311
+ },
312
+ "layer2": {
313
+ "lth": {
314
+ "mean_nnz": 13.80078125,
315
+ "max_nnz": 22.0,
316
+ "min_nnz": 7.0,
317
+ "total_nnz": 3533,
318
+ "numel": 131072,
319
+ "sparsity": 0.9730453491210938,
320
+ "utilization": 0.6273082386363636
321
+ },
322
+ "uticket": {
323
+ "mean_nnz": 14.0,
324
+ "max_nnz": 14.0,
325
+ "min_nnz": 14.0,
326
+ "total_nnz": 3584,
327
+ "numel": 131072,
328
+ "sparsity": 0.97265625,
329
+ "utilization": 1.0
330
+ }
331
+ }
332
+ },
333
+ "latency_proxy": 25,
334
+ "sparsity": 0.992739898989899
335
+ },
336
+ {
337
+ "round": 4,
338
+ "layers": {
339
+ "layer0": {
340
+ "lth": {
341
+ "mean_nnz": 0.6000000000000001,
342
+ "max_nnz": 2.0,
343
+ "min_nnz": 0.0,
344
+ "total_nnz": 192,
345
+ "numel": 921600,
346
+ "sparsity": 0.9997916666666666,
347
+ "utilization": 0.30000000000000004
348
+ },
349
+ "uticket": {
350
+ "mean_nnz": 1.0,
351
+ "max_nnz": 1.0,
352
+ "min_nnz": 1.0,
353
+ "total_nnz": 320,
354
+ "numel": 921600,
355
+ "sparsity": 0.9996527777777777,
356
+ "utilization": 1.0
357
+ }
358
+ },
359
+ "layer1": {
360
+ "lth": {
361
+ "mean_nnz": 2.69921875,
362
+ "max_nnz": 7.0,
363
+ "min_nnz": 0.0,
364
+ "total_nnz": 1382,
365
+ "numel": 163840,
366
+ "sparsity": 0.99156494140625,
367
+ "utilization": 0.38560267857142855
368
+ },
369
+ "uticket": {
370
+ "mean_nnz": 3.0,
371
+ "max_nnz": 3.0,
372
+ "min_nnz": 3.0,
373
+ "total_nnz": 1536,
374
+ "numel": 163840,
375
+ "sparsity": 0.990625,
376
+ "utilization": 1.0
377
+ }
378
+ },
379
+ "layer2": {
380
+ "lth": {
381
+ "mean_nnz": 4.19921875,
382
+ "max_nnz": 9.0,
383
+ "min_nnz": 1.0,
384
+ "total_nnz": 1075,
385
+ "numel": 131072,
386
+ "sparsity": 0.9917984008789062,
387
+ "utilization": 0.4665798611111111
388
+ },
389
+ "uticket": {
390
+ "mean_nnz": 4.0,
391
+ "max_nnz": 4.0,
392
+ "min_nnz": 4.0,
393
+ "total_nnz": 1024,
394
+ "numel": 131072,
395
+ "sparsity": 0.9921875,
396
+ "utilization": 1.0
397
+ }
398
+ }
399
+ },
400
+ "latency_proxy": 8,
401
+ "sparsity": 0.9976325757575758
402
+ },
403
+ {
404
+ "round": 5,
405
+ "layers": {
406
+ "layer0": {
407
+ "lth": {
408
+ "mean_nnz": 0.30000000000000004,
409
+ "max_nnz": 1.0,
410
+ "min_nnz": 0.0,
411
+ "total_nnz": 96,
412
+ "numel": 921600,
413
+ "sparsity": 0.9998958333333333,
414
+ "utilization": 0.30000000000000004
415
+ },
416
+ "uticket": {
417
+ "mean_nnz": 0.30000000000000004,
418
+ "max_nnz": 1.0,
419
+ "min_nnz": 0.0,
420
+ "total_nnz": 96,
421
+ "numel": 921600,
422
+ "sparsity": 0.9998958333333333,
423
+ "utilization": 0.30000000000000004
424
+ }
425
+ },
426
+ "layer1": {
427
+ "lth": {
428
+ "mean_nnz": 0.900390625,
429
+ "max_nnz": 3.0,
430
+ "min_nnz": 0.0,
431
+ "total_nnz": 461,
432
+ "numel": 163840,
433
+ "sparsity": 0.997186279296875,
434
+ "utilization": 0.3001302083333333
435
+ },
436
+ "uticket": {
437
+ "mean_nnz": 1.0,
438
+ "max_nnz": 1.0,
439
+ "min_nnz": 1.0,
440
+ "total_nnz": 512,
441
+ "numel": 163840,
442
+ "sparsity": 0.996875,
443
+ "utilization": 1.0
444
+ }
445
+ },
446
+ "layer2": {
447
+ "lth": {
448
+ "mean_nnz": 1.19921875,
449
+ "max_nnz": 3.0,
450
+ "min_nnz": 0.0,
451
+ "total_nnz": 307,
452
+ "numel": 131072,
453
+ "sparsity": 0.9976577758789062,
454
+ "utilization": 0.3997395833333333
455
+ },
456
+ "uticket": {
457
+ "mean_nnz": 1.0,
458
+ "max_nnz": 1.0,
459
+ "min_nnz": 1.0,
460
+ "total_nnz": 256,
461
+ "numel": 131072,
462
+ "sparsity": 0.998046875,
463
+ "utilization": 1.0
464
+ }
465
+ }
466
+ },
467
+ "latency_proxy": 3,
468
+ "sparsity": 0.9992897727272727
469
+ }
470
+ ],
471
+ "latency_proxy_lth": 7,
472
+ "latency_reduction_vs_lth_frac": 0.5714285714285714
473
+ },
474
+ "config": {
475
+ "method": "harmonic_matched",
476
+ "data_root": "/kaggle/working/data",
477
+ "subjects": "",
478
+ "blocks": "",
479
+ "limit": 0,
480
+ "drop_rest": true,
481
+ "resplit": "block",
482
+ "test_blocks": "6",
483
+ "class_weight": false,
484
+ "epochs": 60,
485
+ "batch_size": 64,
486
+ "lr": 0.002,
487
+ "weight_decay": 0.0005,
488
+ "grad_clip": 5.0,
489
+ "num_bins": 100,
490
+ "window_sec": 5.0,
491
+ "hidden": "512,256",
492
+ "freq_groups": 8,
493
+ "dropout": 0.3,
494
+ "spike_drop": 0.1,
495
+ "time_jitter": 2,
496
+ "label_smoothing": 0.05,
497
+ "no_batchnorm": false,
498
+ "binary_input": false,
499
+ "beta": 1.0,
500
+ "thresh": 1.0,
501
+ "window": 0.5,
502
+ "gain": 1.0,
503
+ "alpha": 0.9,
504
+ "readout": "spikecount",
505
+ "fake_quant": 0,
506
+ "amp": false,
507
+ "spike_reg": 0.0,
508
+ "event_eval": true,
509
+ "decision_margin": 2.0,
510
+ "export": false,
511
+ "seed": 1234,
512
+ "hub_dir": "/kaggle/working/hub/opt06_uticket_prune/balance_iters_4",
513
+ "repo_id": "UWU-R-13/SSVEP-SNN",
514
+ "push_hf": false,
515
+ "keep_epoch_weights": 1,
516
+ "no_resume": true,
517
+ "selftest": false,
518
+ "baseline": false,
519
+ "bench": true,
520
+ "bench_warmup": 10,
521
+ "bench_iters": 50,
522
+ "bench_train_steps": 20,
523
+ "prune_rounds": 5,
524
+ "prune_rate": 0.7,
525
+ "rewind_epoch": 1,
526
+ "balance": true,
527
+ "balance_iters": 4,
528
+ "prune_readout": false,
529
+ "sampling_rate": 250.0
530
+ }
531
+ },
532
+ "final_summary": {
533
+ "final_test_acc": 0.16214285714285714,
534
+ "final_test_target_acc": 0.16214285714285714,
535
+ "final_test_rest_recall": NaN,
536
+ "best_acc": 0.9178571428571428,
537
+ "best_epoch": 18,
538
+ "resplit": "block",
539
+ "class_weight": false,
540
+ "drop_rest": true,
541
+ "epochs": 60,
542
+ "method": "harmonic_matched",
543
+ "n_in": 2880,
544
+ "n_classes": 40,
545
+ "num_bins": 100
546
+ },
547
+ "event_driven_summary": {
548
+ "acc": 0.16214285714285714,
549
+ "anytime_acc": {
550
+ "0.25": 0.05142857142857143,
551
+ "0.5": 0.09714285714285714,
552
+ "0.75": 0.13142857142857142,
553
+ "1.0": 0.16214285714285714
554
+ },
555
+ "syn_per_inference": 136729.83796672078,
556
+ "dense_per_inference": 122675200.0,
557
+ "event_fraction_of_dense": 0.0011145678830498812,
558
+ "syn_per_inference_dense_fanout": 65037287.148538955,
559
+ "weight_sparsity": 0.9909484557595993,
560
+ "num_ticks": 100,
561
+ "dt_ms": 50.0,
562
+ "margin_decision_acc": 0.056428571428571425,
563
+ "mean_decision_tick": 18.82357142857143,
564
+ "mean_decision_ms": 941.1785714285716,
565
+ "dense_forward_test_acc": 0.16214285714285714
566
+ },
567
+ "extra_sweep_file_present": true,
568
+ "selftest": {
569
+ "mode": "gate",
570
+ "passed": true
571
+ },
572
+ "driver_version": 1,
573
+ "zip": {
574
+ "name": "balance_iters_4.zip",
575
+ "files": 81,
576
+ "bytes": 8082682,
577
+ "MB": 8.1,
578
+ "sha256": "ff260bcde1f1b305816474c3b0db29db1ae57fc944c42c720b3a679851db6fbd"
579
+ }
580
+ }
applied/opt06_uticket_prune/balance_iters_4.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff260bcde1f1b305816474c3b0db29db1ae57fc944c42c720b3a679851db6fbd
3
+ size 8082682