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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
{
  "key": "opt06_uticket_prune/default",
  "tag": "default",
  "script": "opt06_uticket_prune.py",
  "script_sha256_16": "13957bb36508b8cf",
  "hf_folder": "applied/opt06_uticket_prune",
  "priority": 0,
  "note": "default: 5 rounds x 50% prune-rate, balanced",
  "phase": 1,
  "n_phases": 10,
  "method": "harmonic_matched",
  "command": [
    "/usr/bin/python3",
    "-m",
    "torch.distributed.run",
    "--standalone",
    "--nproc_per_node=2",
    "/kaggle/working/scripts/opt06_uticket_prune.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/opt06_uticket_prune/default",
    "--keep-epoch-weights",
    "1",
    "--resplit",
    "block",
    "--drop-rest",
    "--bench"
  ],
  "flags": [],
  "epochs_requested": 60,
  "gpus": 2,
  "relative_epoch_cost": 1.0,
  "exit_code": 0,
  "status": "ok",
  "duration_s": 325.4,
  "started_utc": "2026-08-23T04:08:01.682509+00:00",
  "finished_utc": "2026-08-23T04:13:27.076949+00:00",
  "optimization_summary": {
    "optimization": "uticket_workload_balanced_pruning",
    "research_section": "3. Spike sparsity & MAC->AC restructuring",
    "reference": "u-Ticket: Workload-Balanced Pruning for Sparse SNNs, arXiv:2302.06746",
    "script": "opt06_uticket_prune.py",
    "baseline_mode": false,
    "method": "harmonic_matched",
    "accuracy": {
      "test_acc": 0.7885714285714286,
      "test_target_acc": 0.7885714285714286,
      "best_val_acc": 0.935
    },
    "efficiency": {
      "spikes_per_inference": null,
      "syn_ops_per_inference": 218011.0174512987,
      "dense_macs_per_inference": 122675200.0,
      "event_fraction_of_dense": 0.0017771401020850075,
      "syn_ops_per_inference_dense_fanout": 65250329.547077924,
      "weight_sparsity": 0.983618530884808,
      "effective_ticks": 12.822142857142858,
      "num_ticks": 100,
      "membrane_bytes_per_inference": 451200,
      "weight_bytes": 4907008,
      "input_raster_bytes": null,
      "train_ms_per_step": 96.64661480001087,
      "infer_ms_per_sample": 0.6332334065623968,
      "peak_vram_mb": 2837.834752,
      "weight_bytes_nonzero": 39755
    },
    "optimization_specific": {
      "pruning_enabled": true,
      "balance_enabled": true,
      "rounds": 5,
      "final_sparsity": 0.9918981481481481,
      "nnz_per_layer": {
        "layer0": 640,
        "layer1": 5120,
        "layer2": 4096
      },
      "pe_stats_per_layer": {
        "layer0": {
          "mean_nnz": 2.0,
          "max_nnz": 2.0,
          "min_nnz": 2.0,
          "total_nnz": 640,
          "numel": 921600,
          "sparsity": 0.9993055555555556,
          "utilization": 1.0
        },
        "layer1": {
          "mean_nnz": 10.0,
          "max_nnz": 10.0,
          "min_nnz": 10.0,
          "total_nnz": 5120,
          "numel": 163840,
          "sparsity": 0.96875,
          "utilization": 1.0
        },
        "layer2": {
          "mean_nnz": 16.0,
          "max_nnz": 16.0,
          "min_nnz": 16.0,
          "total_nnz": 4096,
          "numel": 131072,
          "sparsity": 0.96875,
          "utilization": 1.0
        }
      },
      "pe_utilization_final": 1.0,
      "pe_utilization_lth": 0.5739893211289092,
      "pe_utilization_uticket": 1.0,
      "latency_proxy_dense": 3712,
      "latency_proxy_final": 28,
      "latency_reduction_frac": 0.9924568965517241,
      "rounds_history": [
        {
          "round": 1,
          "layers": {
            "layer0": {
              "lth": {
                "mean_nnz": 36.0,
                "max_nnz": 46.0,
                "min_nnz": 24.0,
                "total_nnz": 11520,
                "numel": 921600,
                "sparsity": 0.9875,
                "utilization": 0.782608695652174
              },
              "uticket": {
                "mean_nnz": 36.0,
                "max_nnz": 36.0,
                "min_nnz": 36.0,
                "total_nnz": 11520,
                "numel": 921600,
                "sparsity": 0.9875,
                "utilization": 1.0
              }
            },
            "layer1": {
              "lth": {
                "mean_nnz": 160.0,
                "max_nnz": 184.0,
                "min_nnz": 119.0,
                "total_nnz": 81920,
                "numel": 163840,
                "sparsity": 0.5,
                "utilization": 0.8695652173913043
              },
              "uticket": {
                "mean_nnz": 160.0,
                "max_nnz": 160.0,
                "min_nnz": 160.0,
                "total_nnz": 81920,
                "numel": 163840,
                "sparsity": 0.5,
                "utilization": 1.0
              }
            },
            "layer2": {
              "lth": {
                "mean_nnz": 256.0,
                "max_nnz": 284.0,
                "min_nnz": 226.0,
                "total_nnz": 65536,
                "numel": 131072,
                "sparsity": 0.5,
                "utilization": 0.9014084507042254
              },
              "uticket": {
                "mean_nnz": 256.0,
                "max_nnz": 256.0,
                "min_nnz": 256.0,
                "total_nnz": 65536,
                "numel": 131072,
                "sparsity": 0.5,
                "utilization": 1.0
              }
            }
          },
          "latency_proxy": 452,
          "sparsity": 0.8693181818181819
        },
        {
          "round": 2,
          "layers": {
            "layer0": {
              "lth": {
                "mean_nnz": 18.0,
                "max_nnz": 27.0,
                "min_nnz": 8.0,
                "total_nnz": 5760,
                "numel": 921600,
                "sparsity": 0.99375,
                "utilization": 0.6666666666666666
              },
              "uticket": {
                "mean_nnz": 18.0,
                "max_nnz": 18.0,
                "min_nnz": 18.0,
                "total_nnz": 5760,
                "numel": 921600,
                "sparsity": 0.99375,
                "utilization": 1.0
              }
            },
            "layer1": {
              "lth": {
                "mean_nnz": 80.0,
                "max_nnz": 109.0,
                "min_nnz": 30.0,
                "total_nnz": 40960,
                "numel": 163840,
                "sparsity": 0.75,
                "utilization": 0.7339449541284404
              },
              "uticket": {
                "mean_nnz": 80.0,
                "max_nnz": 80.0,
                "min_nnz": 80.0,
                "total_nnz": 40960,
                "numel": 163840,
                "sparsity": 0.75,
                "utilization": 1.0
              }
            },
            "layer2": {
              "lth": {
                "mean_nnz": 128.0,
                "max_nnz": 162.0,
                "min_nnz": 95.0,
                "total_nnz": 32768,
                "numel": 131072,
                "sparsity": 0.75,
                "utilization": 0.7901234567901234
              },
              "uticket": {
                "mean_nnz": 128.0,
                "max_nnz": 128.0,
                "min_nnz": 128.0,
                "total_nnz": 32768,
                "numel": 131072,
                "sparsity": 0.75,
                "utilization": 1.0
              }
            }
          },
          "latency_proxy": 226,
          "sparsity": 0.9346590909090909
        },
        {
          "round": 3,
          "layers": {
            "layer0": {
              "lth": {
                "mean_nnz": 9.0,
                "max_nnz": 17.0,
                "min_nnz": 3.0,
                "total_nnz": 2880,
                "numel": 921600,
                "sparsity": 0.996875,
                "utilization": 0.5294117647058824
              },
              "uticket": {
                "mean_nnz": 9.0,
                "max_nnz": 9.0,
                "min_nnz": 9.0,
                "total_nnz": 2880,
                "numel": 921600,
                "sparsity": 0.996875,
                "utilization": 1.0
              }
            },
            "layer1": {
              "lth": {
                "mean_nnz": 40.0,
                "max_nnz": 60.0,
                "min_nnz": 0.0,
                "total_nnz": 20480,
                "numel": 163840,
                "sparsity": 0.875,
                "utilization": 0.6666666666666666
              },
              "uticket": {
                "mean_nnz": 40.0,
                "max_nnz": 40.0,
                "min_nnz": 40.0,
                "total_nnz": 20480,
                "numel": 163840,
                "sparsity": 0.875,
                "utilization": 1.0
              }
            },
            "layer2": {
              "lth": {
                "mean_nnz": 64.0,
                "max_nnz": 85.0,
                "min_nnz": 37.0,
                "total_nnz": 16384,
                "numel": 131072,
                "sparsity": 0.875,
                "utilization": 0.7529411764705882
              },
              "uticket": {
                "mean_nnz": 64.0,
                "max_nnz": 64.0,
                "min_nnz": 64.0,
                "total_nnz": 16384,
                "numel": 131072,
                "sparsity": 0.875,
                "utilization": 1.0
              }
            }
          },
          "latency_proxy": 113,
          "sparsity": 0.9673295454545454
        },
        {
          "round": 4,
          "layers": {
            "layer0": {
              "lth": {
                "mean_nnz": 4.5,
                "max_nnz": 9.0,
                "min_nnz": 0.0,
                "total_nnz": 1440,
                "numel": 921600,
                "sparsity": 0.9984375,
                "utilization": 0.5
              },
              "uticket": {
                "mean_nnz": 4.0,
                "max_nnz": 4.0,
                "min_nnz": 4.0,
                "total_nnz": 1280,
                "numel": 921600,
                "sparsity": 0.9986111111111111,
                "utilization": 1.0
              }
            },
            "layer1": {
              "lth": {
                "mean_nnz": 20.0,
                "max_nnz": 33.0,
                "min_nnz": 0.0,
                "total_nnz": 10240,
                "numel": 163840,
                "sparsity": 0.9375,
                "utilization": 0.6060606060606061
              },
              "uticket": {
                "mean_nnz": 20.0,
                "max_nnz": 20.0,
                "min_nnz": 20.0,
                "total_nnz": 10240,
                "numel": 163840,
                "sparsity": 0.9375,
                "utilization": 1.0
              }
            },
            "layer2": {
              "lth": {
                "mean_nnz": 32.0,
                "max_nnz": 44.0,
                "min_nnz": 18.0,
                "total_nnz": 8192,
                "numel": 131072,
                "sparsity": 0.9375,
                "utilization": 0.7272727272727273
              },
              "uticket": {
                "mean_nnz": 32.0,
                "max_nnz": 32.0,
                "min_nnz": 32.0,
                "total_nnz": 8192,
                "numel": 131072,
                "sparsity": 0.9375,
                "utilization": 1.0
              }
            }
          },
          "latency_proxy": 56,
          "sparsity": 0.9837962962962963
        },
        {
          "round": 5,
          "layers": {
            "layer0": {
              "lth": {
                "mean_nnz": 2.0,
                "max_nnz": 4.0,
                "min_nnz": 0.0,
                "total_nnz": 640,
                "numel": 921600,
                "sparsity": 0.9993055555555556,
                "utilization": 0.5
              },
              "uticket": {
                "mean_nnz": 2.0,
                "max_nnz": 2.0,
                "min_nnz": 2.0,
                "total_nnz": 640,
                "numel": 921600,
                "sparsity": 0.9993055555555556,
                "utilization": 1.0
              }
            },
            "layer1": {
              "lth": {
                "mean_nnz": 10.0,
                "max_nnz": 19.0,
                "min_nnz": 0.0,
                "total_nnz": 5120,
                "numel": 163840,
                "sparsity": 0.96875,
                "utilization": 0.5263157894736842
              },
              "uticket": {
                "mean_nnz": 10.0,
                "max_nnz": 10.0,
                "min_nnz": 10.0,
                "total_nnz": 5120,
                "numel": 163840,
                "sparsity": 0.96875,
                "utilization": 1.0
              }
            },
            "layer2": {
              "lth": {
                "mean_nnz": 16.0,
                "max_nnz": 23.0,
                "min_nnz": 11.0,
                "total_nnz": 4096,
                "numel": 131072,
                "sparsity": 0.96875,
                "utilization": 0.6956521739130435
              },
              "uticket": {
                "mean_nnz": 16.0,
                "max_nnz": 16.0,
                "min_nnz": 16.0,
                "total_nnz": 4096,
                "numel": 131072,
                "sparsity": 0.96875,
                "utilization": 1.0
              }
            }
          },
          "latency_proxy": 28,
          "sparsity": 0.9918981481481481
        }
      ],
      "latency_proxy_lth": 46,
      "latency_reduction_vs_lth_frac": 0.3913043478260869
    },
    "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/opt06_uticket_prune/default",
      "repo_id": "UWU-R-13/SSVEP-SNN",
      "push_hf": false,
      "keep_epoch_weights": 1,
      "no_resume": true,
      "selftest": false,
      "baseline": false,
      "bench": true,
      "bench_warmup": 10,
      "bench_iters": 50,
      "bench_train_steps": 20,
      "prune_rounds": 5,
      "prune_rate": 0.5,
      "rewind_epoch": 1,
      "balance": true,
      "balance_iters": 2,
      "prune_readout": false,
      "sampling_rate": 250.0
    }
  },
  "final_summary": {
    "final_test_acc": 0.7885714285714286,
    "final_test_target_acc": 0.7885714285714286,
    "final_test_rest_recall": NaN,
    "best_acc": 0.935,
    "best_epoch": 28,
    "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.7885714285714286,
    "anytime_acc": {
      "0.25": 0.33071428571428574,
      "0.5": 0.6278571428571429,
      "0.75": 0.7385714285714285,
      "1.0": 0.7885714285714286
    },
    "syn_per_inference": 218011.0174512987,
    "dense_per_inference": 122675200.0,
    "event_fraction_of_dense": 0.0017771401020850075,
    "syn_per_inference_dense_fanout": 65250329.547077924,
    "weight_sparsity": 0.983618530884808,
    "num_ticks": 100,
    "dt_ms": 50.0,
    "margin_decision_acc": 0.20214285714285715,
    "mean_decision_tick": 12.822142857142858,
    "mean_decision_ms": 641.1071428571429,
    "dense_forward_test_acc": 0.7885714285714286
  },
  "extra_sweep_file_present": true,
  "selftest": {
    "mode": "gate",
    "passed": true
  },
  "driver_version": 1,
  "zip": {
    "name": "default.zip",
    "files": 81,
    "bytes": 8129041,
    "MB": 8.1,
    "sha256": "bdbba4d718c46fedaf00215f9c5812e399ad2772542fb2419c85df427e071443"
  }
}