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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "key": "opt06_uticket_prune/prune_rate_0.2",
3
+ "tag": "prune_rate_0.2",
4
+ "script": "opt06_uticket_prune.py",
5
+ "script_sha256_16": "13957bb36508b8cf",
6
+ "hf_folder": "applied/opt06_uticket_prune",
7
+ "priority": 1,
8
+ "note": "",
9
+ "phase": 4,
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/prune_rate_0.2",
35
+ "--keep-epoch-weights",
36
+ "1",
37
+ "--resplit",
38
+ "block",
39
+ "--drop-rest",
40
+ "--bench",
41
+ "--prune-rate",
42
+ "0.2"
43
+ ],
44
+ "flags": [
45
+ "--prune-rate",
46
+ "0.2"
47
+ ],
48
+ "epochs_requested": 60,
49
+ "gpus": 2,
50
+ "relative_epoch_cost": 1.0,
51
+ "exit_code": 0,
52
+ "status": "ok",
53
+ "duration_s": 328.9,
54
+ "started_utc": "2026-08-23T04:52:48.276413+00:00",
55
+ "finished_utc": "2026-08-23T04:58:17.225020+00:00",
56
+ "optimization_summary": {
57
+ "optimization": "uticket_workload_balanced_pruning",
58
+ "research_section": "3. Spike sparsity & MAC->AC restructuring",
59
+ "reference": "u-Ticket: Workload-Balanced Pruning for Sparse SNNs, arXiv:2302.06746",
60
+ "script": "opt06_uticket_prune.py",
61
+ "baseline_mode": false,
62
+ "method": "harmonic_matched",
63
+ "accuracy": {
64
+ "test_acc": 0.945,
65
+ "test_target_acc": 0.945,
66
+ "best_val_acc": 0.9435714285714286
67
+ },
68
+ "efficiency": {
69
+ "spikes_per_inference": null,
70
+ "syn_ops_per_inference": 1219436.5718344154,
71
+ "dense_macs_per_inference": 122675200.0,
72
+ "event_fraction_of_dense": 0.009940367505693208,
73
+ "syn_ops_per_inference_dense_fanout": 64956449.21347403,
74
+ "weight_sparsity": 0.9065108514190318,
75
+ "effective_ticks": 12.582142857142857,
76
+ "num_ticks": 100,
77
+ "membrane_bytes_per_inference": 451200,
78
+ "weight_bytes": 4907008,
79
+ "input_raster_bytes": null,
80
+ "train_ms_per_step": 98.27910679996421,
81
+ "infer_ms_per_sample": 0.6430302793751252,
82
+ "peak_vram_mb": 2836.18048,
83
+ "weight_bytes_nonzero": 421308
84
+ },
85
+ "optimization_specific": {
86
+ "pruning_enabled": true,
87
+ "balance_enabled": true,
88
+ "rounds": 5,
89
+ "final_sparsity": 0.9141414141414141,
90
+ "nnz_per_layer": {
91
+ "layer0": 7680,
92
+ "layer1": 53760,
93
+ "layer2": 43008
94
+ },
95
+ "pe_stats_per_layer": {
96
+ "layer0": {
97
+ "mean_nnz": 24.0,
98
+ "max_nnz": 24.0,
99
+ "min_nnz": 24.0,
100
+ "total_nnz": 7680,
101
+ "numel": 921600,
102
+ "sparsity": 0.9916666666666667,
103
+ "utilization": 1.0
104
+ },
105
+ "layer1": {
106
+ "mean_nnz": 105.0,
107
+ "max_nnz": 105.0,
108
+ "min_nnz": 105.0,
109
+ "total_nnz": 53760,
110
+ "numel": 163840,
111
+ "sparsity": 0.671875,
112
+ "utilization": 1.0
113
+ },
114
+ "layer2": {
115
+ "mean_nnz": 168.0,
116
+ "max_nnz": 168.0,
117
+ "min_nnz": 168.0,
118
+ "total_nnz": 43008,
119
+ "numel": 131072,
120
+ "sparsity": 0.671875,
121
+ "utilization": 1.0
122
+ }
123
+ },
124
+ "pe_utilization_final": 1.0,
125
+ "pe_utilization_lth": 0.8322065610975112,
126
+ "pe_utilization_uticket": 1.0,
127
+ "latency_proxy_dense": 3712,
128
+ "latency_proxy_final": 297,
129
+ "latency_reduction_frac": 0.919989224137931,
130
+ "rounds_history": [
131
+ {
132
+ "round": 1,
133
+ "layers": {
134
+ "layer0": {
135
+ "lth": {
136
+ "mean_nnz": 57.6,
137
+ "max_nnz": 66.0,
138
+ "min_nnz": 46.0,
139
+ "total_nnz": 18432,
140
+ "numel": 921600,
141
+ "sparsity": 0.98,
142
+ "utilization": 0.8727272727272728
143
+ },
144
+ "uticket": {
145
+ "mean_nnz": 58.0,
146
+ "max_nnz": 58.0,
147
+ "min_nnz": 58.0,
148
+ "total_nnz": 18560,
149
+ "numel": 921600,
150
+ "sparsity": 0.9798611111111111,
151
+ "utilization": 1.0
152
+ }
153
+ },
154
+ "layer1": {
155
+ "lth": {
156
+ "mean_nnz": 256.0,
157
+ "max_nnz": 277.0,
158
+ "min_nnz": 240.0,
159
+ "total_nnz": 131072,
160
+ "numel": 163840,
161
+ "sparsity": 0.19999999999999996,
162
+ "utilization": 0.924187725631769
163
+ },
164
+ "uticket": {
165
+ "mean_nnz": 256.0,
166
+ "max_nnz": 256.0,
167
+ "min_nnz": 256.0,
168
+ "total_nnz": 131072,
169
+ "numel": 163840,
170
+ "sparsity": 0.19999999999999996,
171
+ "utilization": 1.0
172
+ }
173
+ },
174
+ "layer2": {
175
+ "lth": {
176
+ "mean_nnz": 409.6015625,
177
+ "max_nnz": 434.0,
178
+ "min_nnz": 362.0,
179
+ "total_nnz": 104858,
180
+ "numel": 131072,
181
+ "sparsity": 0.1999969482421875,
182
+ "utilization": 0.9437824020737328
183
+ },
184
+ "uticket": {
185
+ "mean_nnz": 410.0,
186
+ "max_nnz": 410.0,
187
+ "min_nnz": 410.0,
188
+ "total_nnz": 104960,
189
+ "numel": 131072,
190
+ "sparsity": 0.19921875,
191
+ "utilization": 1.0
192
+ }
193
+ }
194
+ },
195
+ "latency_proxy": 724,
196
+ "sparsity": 0.790719696969697
197
+ },
198
+ {
199
+ "round": 2,
200
+ "layers": {
201
+ "layer0": {
202
+ "lth": {
203
+ "mean_nnz": 46.400000000000006,
204
+ "max_nnz": 57.0,
205
+ "min_nnz": 35.0,
206
+ "total_nnz": 14848,
207
+ "numel": 921600,
208
+ "sparsity": 0.9838888888888889,
209
+ "utilization": 0.8140350877192983
210
+ },
211
+ "uticket": {
212
+ "mean_nnz": 46.0,
213
+ "max_nnz": 46.0,
214
+ "min_nnz": 46.0,
215
+ "total_nnz": 14720,
216
+ "numel": 921600,
217
+ "sparsity": 0.9840277777777777,
218
+ "utilization": 1.0
219
+ }
220
+ },
221
+ "layer1": {
222
+ "lth": {
223
+ "mean_nnz": 204.80078125,
224
+ "max_nnz": 225.0,
225
+ "min_nnz": 171.0,
226
+ "total_nnz": 104858,
227
+ "numel": 163840,
228
+ "sparsity": 0.35999755859375004,
229
+ "utilization": 0.9102256944444445
230
+ },
231
+ "uticket": {
232
+ "mean_nnz": 205.0,
233
+ "max_nnz": 205.0,
234
+ "min_nnz": 205.0,
235
+ "total_nnz": 104960,
236
+ "numel": 163840,
237
+ "sparsity": 0.359375,
238
+ "utilization": 1.0
239
+ }
240
+ },
241
+ "layer2": {
242
+ "lth": {
243
+ "mean_nnz": 328.0,
244
+ "max_nnz": 352.0,
245
+ "min_nnz": 301.0,
246
+ "total_nnz": 83968,
247
+ "numel": 131072,
248
+ "sparsity": 0.359375,
249
+ "utilization": 0.9318181818181818
250
+ },
251
+ "uticket": {
252
+ "mean_nnz": 328.0,
253
+ "max_nnz": 328.0,
254
+ "min_nnz": 328.0,
255
+ "total_nnz": 83968,
256
+ "numel": 131072,
257
+ "sparsity": 0.359375,
258
+ "utilization": 1.0
259
+ }
260
+ }
261
+ },
262
+ "latency_proxy": 579,
263
+ "sparsity": 0.8325968013468014
264
+ },
265
+ {
266
+ "round": 3,
267
+ "layers": {
268
+ "layer0": {
269
+ "lth": {
270
+ "mean_nnz": 36.800000000000004,
271
+ "max_nnz": 45.0,
272
+ "min_nnz": 27.0,
273
+ "total_nnz": 11776,
274
+ "numel": 921600,
275
+ "sparsity": 0.9872222222222222,
276
+ "utilization": 0.8177777777777778
277
+ },
278
+ "uticket": {
279
+ "mean_nnz": 37.0,
280
+ "max_nnz": 37.0,
281
+ "min_nnz": 37.0,
282
+ "total_nnz": 11840,
283
+ "numel": 921600,
284
+ "sparsity": 0.9871527777777778,
285
+ "utilization": 1.0
286
+ }
287
+ },
288
+ "layer1": {
289
+ "lth": {
290
+ "mean_nnz": 164.0,
291
+ "max_nnz": 187.0,
292
+ "min_nnz": 122.0,
293
+ "total_nnz": 83968,
294
+ "numel": 163840,
295
+ "sparsity": 0.48750000000000004,
296
+ "utilization": 0.8770053475935828
297
+ },
298
+ "uticket": {
299
+ "mean_nnz": 164.0,
300
+ "max_nnz": 164.0,
301
+ "min_nnz": 164.0,
302
+ "total_nnz": 83968,
303
+ "numel": 163840,
304
+ "sparsity": 0.48750000000000004,
305
+ "utilization": 1.0
306
+ }
307
+ },
308
+ "layer2": {
309
+ "lth": {
310
+ "mean_nnz": 262.3984375,
311
+ "max_nnz": 282.0,
312
+ "min_nnz": 237.0,
313
+ "total_nnz": 67174,
314
+ "numel": 131072,
315
+ "sparsity": 0.4875030517578125,
316
+ "utilization": 0.9304909131205674
317
+ },
318
+ "uticket": {
319
+ "mean_nnz": 262.0,
320
+ "max_nnz": 262.0,
321
+ "min_nnz": 262.0,
322
+ "total_nnz": 67072,
323
+ "numel": 131072,
324
+ "sparsity": 0.48828125,
325
+ "utilization": 1.0
326
+ }
327
+ }
328
+ },
329
+ "latency_proxy": 463,
330
+ "sparsity": 0.8661090067340067
331
+ },
332
+ {
333
+ "round": 4,
334
+ "layers": {
335
+ "layer0": {
336
+ "lth": {
337
+ "mean_nnz": 29.6,
338
+ "max_nnz": 37.0,
339
+ "min_nnz": 20.0,
340
+ "total_nnz": 9472,
341
+ "numel": 921600,
342
+ "sparsity": 0.9897222222222222,
343
+ "utilization": 0.8
344
+ },
345
+ "uticket": {
346
+ "mean_nnz": 30.0,
347
+ "max_nnz": 30.0,
348
+ "min_nnz": 30.0,
349
+ "total_nnz": 9600,
350
+ "numel": 921600,
351
+ "sparsity": 0.9895833333333334,
352
+ "utilization": 1.0
353
+ }
354
+ },
355
+ "layer1": {
356
+ "lth": {
357
+ "mean_nnz": 131.19921875,
358
+ "max_nnz": 155.0,
359
+ "min_nnz": 75.0,
360
+ "total_nnz": 67174,
361
+ "numel": 163840,
362
+ "sparsity": 0.59000244140625,
363
+ "utilization": 0.8464465725806452
364
+ },
365
+ "uticket": {
366
+ "mean_nnz": 131.0,
367
+ "max_nnz": 131.0,
368
+ "min_nnz": 131.0,
369
+ "total_nnz": 67072,
370
+ "numel": 163840,
371
+ "sparsity": 0.590625,
372
+ "utilization": 1.0
373
+ }
374
+ },
375
+ "layer2": {
376
+ "lth": {
377
+ "mean_nnz": 209.6015625,
378
+ "max_nnz": 225.0,
379
+ "min_nnz": 176.0,
380
+ "total_nnz": 53658,
381
+ "numel": 131072,
382
+ "sparsity": 0.5906219482421875,
383
+ "utilization": 0.9315625
384
+ },
385
+ "uticket": {
386
+ "mean_nnz": 210.0,
387
+ "max_nnz": 210.0,
388
+ "min_nnz": 210.0,
389
+ "total_nnz": 53760,
390
+ "numel": 131072,
391
+ "sparsity": 0.58984375,
392
+ "utilization": 1.0
393
+ }
394
+ }
395
+ },
396
+ "latency_proxy": 371,
397
+ "sparsity": 0.8927819865319866
398
+ },
399
+ {
400
+ "round": 5,
401
+ "layers": {
402
+ "layer0": {
403
+ "lth": {
404
+ "mean_nnz": 24.0,
405
+ "max_nnz": 30.0,
406
+ "min_nnz": 14.0,
407
+ "total_nnz": 7680,
408
+ "numel": 921600,
409
+ "sparsity": 0.9916666666666667,
410
+ "utilization": 0.8
411
+ },
412
+ "uticket": {
413
+ "mean_nnz": 24.0,
414
+ "max_nnz": 24.0,
415
+ "min_nnz": 24.0,
416
+ "total_nnz": 7680,
417
+ "numel": 921600,
418
+ "sparsity": 0.9916666666666667,
419
+ "utilization": 1.0
420
+ }
421
+ },
422
+ "layer1": {
423
+ "lth": {
424
+ "mean_nnz": 104.80078125,
425
+ "max_nnz": 129.0,
426
+ "min_nnz": 45.0,
427
+ "total_nnz": 53658,
428
+ "numel": 163840,
429
+ "sparsity": 0.67249755859375,
430
+ "utilization": 0.8124091569767442
431
+ },
432
+ "uticket": {
433
+ "mean_nnz": 105.0,
434
+ "max_nnz": 105.0,
435
+ "min_nnz": 105.0,
436
+ "total_nnz": 53760,
437
+ "numel": 163840,
438
+ "sparsity": 0.671875,
439
+ "utilization": 1.0
440
+ }
441
+ },
442
+ "layer2": {
443
+ "lth": {
444
+ "mean_nnz": 168.0,
445
+ "max_nnz": 190.0,
446
+ "min_nnz": 134.0,
447
+ "total_nnz": 43008,
448
+ "numel": 131072,
449
+ "sparsity": 0.671875,
450
+ "utilization": 0.8842105263157894
451
+ },
452
+ "uticket": {
453
+ "mean_nnz": 168.0,
454
+ "max_nnz": 168.0,
455
+ "min_nnz": 168.0,
456
+ "total_nnz": 43008,
457
+ "numel": 131072,
458
+ "sparsity": 0.671875,
459
+ "utilization": 1.0
460
+ }
461
+ }
462
+ },
463
+ "latency_proxy": 297,
464
+ "sparsity": 0.9141414141414141
465
+ }
466
+ ],
467
+ "latency_proxy_lth": 349,
468
+ "latency_reduction_vs_lth_frac": 0.14899713467048714
469
+ },
470
+ "config": {
471
+ "method": "harmonic_matched",
472
+ "data_root": "/kaggle/working/data",
473
+ "subjects": "",
474
+ "blocks": "",
475
+ "limit": 0,
476
+ "drop_rest": true,
477
+ "resplit": "block",
478
+ "test_blocks": "6",
479
+ "class_weight": false,
480
+ "epochs": 60,
481
+ "batch_size": 64,
482
+ "lr": 0.002,
483
+ "weight_decay": 0.0005,
484
+ "grad_clip": 5.0,
485
+ "num_bins": 100,
486
+ "window_sec": 5.0,
487
+ "hidden": "512,256",
488
+ "freq_groups": 8,
489
+ "dropout": 0.3,
490
+ "spike_drop": 0.1,
491
+ "time_jitter": 2,
492
+ "label_smoothing": 0.05,
493
+ "no_batchnorm": false,
494
+ "binary_input": false,
495
+ "beta": 1.0,
496
+ "thresh": 1.0,
497
+ "window": 0.5,
498
+ "gain": 1.0,
499
+ "alpha": 0.9,
500
+ "readout": "spikecount",
501
+ "fake_quant": 0,
502
+ "amp": false,
503
+ "spike_reg": 0.0,
504
+ "event_eval": true,
505
+ "decision_margin": 2.0,
506
+ "export": false,
507
+ "seed": 1234,
508
+ "hub_dir": "/kaggle/working/hub/opt06_uticket_prune/prune_rate_0.2",
509
+ "repo_id": "UWU-R-13/SSVEP-SNN",
510
+ "push_hf": false,
511
+ "keep_epoch_weights": 1,
512
+ "no_resume": true,
513
+ "selftest": false,
514
+ "baseline": false,
515
+ "bench": true,
516
+ "bench_warmup": 10,
517
+ "bench_iters": 50,
518
+ "bench_train_steps": 20,
519
+ "prune_rounds": 5,
520
+ "prune_rate": 0.2,
521
+ "rewind_epoch": 1,
522
+ "balance": true,
523
+ "balance_iters": 2,
524
+ "prune_readout": false,
525
+ "sampling_rate": 250.0
526
+ }
527
+ },
528
+ "final_summary": {
529
+ "final_test_acc": 0.945,
530
+ "final_test_target_acc": 0.945,
531
+ "final_test_rest_recall": NaN,
532
+ "best_acc": 0.9435714285714286,
533
+ "best_epoch": 31,
534
+ "resplit": "block",
535
+ "class_weight": false,
536
+ "drop_rest": true,
537
+ "epochs": 60,
538
+ "method": "harmonic_matched",
539
+ "n_in": 2880,
540
+ "n_classes": 40,
541
+ "num_bins": 100
542
+ },
543
+ "event_driven_summary": {
544
+ "acc": 0.945,
545
+ "anytime_acc": {
546
+ "0.25": 0.595,
547
+ "0.5": 0.8435714285714285,
548
+ "0.75": 0.9085714285714286,
549
+ "1.0": 0.945
550
+ },
551
+ "syn_per_inference": 1219436.5718344154,
552
+ "dense_per_inference": 122675200.0,
553
+ "event_fraction_of_dense": 0.009940367505693208,
554
+ "syn_per_inference_dense_fanout": 64956449.21347403,
555
+ "weight_sparsity": 0.9065108514190318,
556
+ "num_ticks": 100,
557
+ "dt_ms": 50.0,
558
+ "margin_decision_acc": 0.4228571428571429,
559
+ "mean_decision_tick": 12.582142857142857,
560
+ "mean_decision_ms": 629.1071428571429,
561
+ "dense_forward_test_acc": 0.945
562
+ },
563
+ "extra_sweep_file_present": true,
564
+ "selftest": {
565
+ "mode": "gate",
566
+ "passed": true
567
+ },
568
+ "driver_version": 1,
569
+ "zip": {
570
+ "name": "prune_rate_0.2.zip",
571
+ "files": 81,
572
+ "bytes": 9962974,
573
+ "MB": 10.0,
574
+ "sha256": "b459b14d5c4e25097771f24d9136976c7b538455e508aac3dfa75889f462632d"
575
+ }
576
+ }
applied/opt06_uticket_prune/prune_rate_0.2.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b459b14d5c4e25097771f24d9136976c7b538455e508aac3dfa75889f462632d
3
+ size 9962974