File size: 9,474 Bytes
5c4626d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "key": "opt10_parallel_lif_scan/psn_beta_0.99",
  "tag": "psn_beta_0.99",
  "script": "opt10_parallel_lif_scan.py",
  "script_sha256_16": "1b869e8327d5b545",
  "hf_folder": "applied/opt10_parallel_lif_scan",
  "priority": 2,
  "note": "",
  "phase": 10,
  "n_phases": 10,
  "method": "harmonic_matched",
  "command": [
    "/usr/bin/python3",
    "-m",
    "torch.distributed.run",
    "--standalone",
    "--nproc_per_node=2",
    "/kaggle/working/scripts/opt10_parallel_lif_scan.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/opt10_parallel_lif_scan/psn_beta_0.99",
    "--keep-epoch-weights",
    "1",
    "--resplit",
    "block",
    "--drop-rest",
    "--bench",
    "--lif-mode",
    "psn",
    "--psn-init-beta",
    "0.99"
  ],
  "flags": [
    "--lif-mode",
    "psn",
    "--psn-init-beta",
    "0.99"
  ],
  "epochs_requested": 60,
  "gpus": 2,
  "relative_epoch_cost": 1.0,
  "exit_code": 0,
  "status": "ok",
  "duration_s": 357.1,
  "started_utc": "2026-08-23T06:12:12.353917+00:00",
  "finished_utc": "2026-08-23T06:18:09.495709+00:00",
  "optimization_summary": {
    "optimization": "parallel_lif_scan",
    "research_section": "4. Membrane-Potential Memory Wall (reset-mechanism removal) / 6. Feasibility & Limitations",
    "reference": "Fang et al., Parallel Spiking Neurons, NeurIPS 2023, arXiv:2304.12760; Hillis-Steele parallel prefix scan",
    "script": "opt10_parallel_lif_scan.py",
    "baseline_mode": false,
    "method": "harmonic_matched",
    "accuracy": {
      "test_acc": 0.6828571428571428,
      "test_target_acc": 0.6828571428571428,
      "best_val_acc": 0.6842857142857143
    },
    "efficiency": {
      "spikes_per_inference": null,
      "syn_ops_per_inference": 4365884.818993507,
      "dense_macs_per_inference": 122675200.0,
      "event_fraction_of_dense": 0.03558897657385932,
      "syn_ops_per_inference_dense_fanout": 65942502.60551948,
      "weight_sparsity": 0.7324707846410685,
      "effective_ticks": 53.832142857142856,
      "num_ticks": 100,
      "membrane_bytes_per_inference": 451200,
      "weight_bytes": 4907008,
      "input_raster_bytes": null,
      "train_ms_per_step": 100.77966630005903,
      "infer_ms_per_sample": 0.6451527859371708,
      "peak_vram_mb": 2842.555392
    },
    "optimization_specific": {
      "lif_mode": "psn",
      "scan_reset_correction": null,
      "psn_init_beta": 0.99,
      "training_T": 100,
      "sequential_depth": 1,
      "sequential_depth_baseline": 100,
      "depth_reduction_x": 100.0,
      "speedup_vs_sequential_at_T": 0.8667356019082757,
      "speedup_vs_sequential_at_T_fwdbwd": 0.4835946716392173,
      "scan_crossover_T": null,
      "scan_ever_wins": false,
      "t_scaling": [
        {
          "T": 25,
          "sequential_ms": 0.05496805999428034,
          "scan_ms": 0.3456908999942243,
          "psn_ms": 0.18115955997927813,
          "sequential_fwdbwd_ms": 0.4645312600041507,
          "scan_fwdbwd_ms": 0.8382693599924096,
          "psn_fwdbwd_ms": 0.9094492200165405,
          "scan_speedup_x": 0.1590092767706605,
          "scan_speedup_fwdbwd_x": 0.5541551226545569,
          "psn_speedup_x": 0.30342345720296426,
          "psn_speedup_fwdbwd_x": 0.5107830649364921,
          "depth_sequential": 25,
          "depth_scan": 5,
          "depth_psn": 1
        },
        {
          "T": 50,
          "sequential_ms": 0.10559017999185016,
          "scan_ms": 0.5695103000107338,
          "psn_ms": 0.17528217998915352,
          "sequential_fwdbwd_ms": 0.45854101997974794,
          "scan_fwdbwd_ms": 0.9955093800090253,
          "psn_fwdbwd_ms": 0.8833207399948151,
          "scan_speedup_x": 0.1854052156560822,
          "scan_speedup_fwdbwd_x": 0.46060944194779035,
          "psn_speedup_x": 0.6024011111590699,
          "psn_speedup_fwdbwd_x": 0.5191104422414439,
          "depth_sequential": 50,
          "depth_scan": 6,
          "depth_psn": 1
        },
        {
          "T": 100,
          "sequential_ms": 0.20940268001140794,
          "scan_ms": 1.3589141799820936,
          "psn_ms": 0.2415992599708261,
          "sequential_fwdbwd_ms": 0.46627144001831766,
          "scan_fwdbwd_ms": 2.239362180007447,
          "psn_fwdbwd_ms": 0.9641781999744126,
          "scan_speedup_x": 0.15409558829842163,
          "scan_speedup_fwdbwd_x": 0.20821618056297042,
          "psn_speedup_x": 0.8667356019082757,
          "psn_speedup_fwdbwd_x": 0.4835946716392173,
          "depth_sequential": 100,
          "depth_scan": 7,
          "depth_psn": 1
        },
        {
          "T": 200,
          "sequential_ms": 0.4091517000051681,
          "scan_ms": 2.9292668600101024,
          "psn_ms": 0.6302713400145876,
          "sequential_fwdbwd_ms": 0.9026070800246089,
          "scan_fwdbwd_ms": 4.632057460003125,
          "psn_fwdbwd_ms": 2.566589920024853,
          "scan_speedup_x": 0.13967716823306328,
          "scan_speedup_fwdbwd_x": 0.19486094199358225,
          "psn_speedup_x": 0.6491675474180665,
          "psn_speedup_fwdbwd_x": 0.3516756116675891,
          "depth_sequential": 200,
          "depth_scan": 8,
          "depth_psn": 1
        },
        {
          "T": 400,
          "sequential_ms": 0.8303197599889245,
          "scan_ms": 6.150987639994128,
          "psn_ms": 2.0698285400067107,
          "sequential_fwdbwd_ms": 1.8045985999924596,
          "scan_fwdbwd_ms": 9.68689645997074,
          "psn_fwdbwd_ms": 7.7340216799711925,
          "scan_speedup_x": 0.13498966484506172,
          "scan_speedup_fwdbwd_x": 0.18629275201295076,
          "psn_speedup_x": 0.4011538849426786,
          "psn_speedup_fwdbwd_x": 0.23333249823514607,
          "depth_sequential": 400,
          "depth_scan": 9,
          "depth_psn": 1
        }
      ],
      "accuracy_cost_of_reset_removal": {
        "firing_rate_hard_reset": 0.026105469092726707,
        "firing_rate_reset_free": 0.36106836795806885,
        "firing_rate_reset_corrected": 0.00894628930836916,
        "spike_agreement_reset_free": 0.6650371551513672,
        "spike_agreement_reset_corrected": 0.9814648628234863,
        "spike_storm_ratio_reset_free": 13.831138857361761
      },
      "psn_extra_params": 40000,
      "deploy_neuron_is_hard_reset": true,
      "train_deploy_neuron_mismatch": true,
      "event_driven_acc_under_hard_reset": 0.7435714285714285,
      "dense_forward_acc_under_train_neuron": 0.6828571428571428
    },
    "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/opt10_parallel_lif_scan/psn_beta_0.99",
      "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,
      "lif_mode": "psn",
      "scan_reset_correction": true,
      "psn_init_beta": 0.99,
      "t_scaling": "25,50,100,200,400",
      "sampling_rate": 250.0
    }
  },
  "final_summary": {
    "final_test_acc": 0.6828571428571428,
    "final_test_target_acc": 0.6828571428571428,
    "final_test_rest_recall": NaN,
    "best_acc": 0.6842857142857143,
    "best_epoch": 35,
    "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.7435714285714285,
    "anytime_acc": {
      "0.25": 0.30642857142857144,
      "0.5": 0.565,
      "0.75": 0.675,
      "1.0": 0.7435714285714285
    },
    "syn_per_inference": 4365884.818993507,
    "dense_per_inference": 122675200.0,
    "event_fraction_of_dense": 0.03558897657385932,
    "syn_per_inference_dense_fanout": 65942502.60551948,
    "weight_sparsity": 0.7324707846410685,
    "num_ticks": 100,
    "dt_ms": 50.0,
    "margin_decision_acc": 0.72,
    "mean_decision_tick": 53.832142857142856,
    "mean_decision_ms": 2691.6071428571427,
    "dense_forward_test_acc": 0.6828571428571428
  },
  "extra_sweep_file_present": true,
  "selftest": {
    "mode": "gate",
    "passed": true
  },
  "driver_version": 1,
  "zip": {
    "name": "psn_beta_0.99.zip",
    "files": 81,
    "bytes": 12894722,
    "MB": 12.9,
    "sha256": "04959b375a94e369dcbaf0e59a23b330dc523fd787c867088043943c6bbd4e1e"
  }
}