diff --git "a/applied/_index/APPLIED_RUNS_INDEX.json" "b/applied/_index/APPLIED_RUNS_INDEX.json" --- "a/applied/_index/APPLIED_RUNS_INDEX.json" +++ "b/applied/_index/APPLIED_RUNS_INDEX.json" @@ -1,245 +1,106 @@ [ { - "key": "opt01_ttfs_dta/dta_rate_0.02", - "tag": "dta_rate_0.02", - "script": "opt01_ttfs_dta.py", - "hf_folder": "applied/opt01_ttfs_dta", - "phase": 3, + "key": "original/baseline_reference", + "tag": "baseline_reference", + "script": "train_ssvep_event_snn.py", + "hf_folder": "applied/original", + "phase": 1, "status": "ok", - "duration_s": 592.4, - "optimization_summary": { - "optimization": "ttfs_dta", - "research_section": "2. Temporal-Dimension Reduction (TTFS coding / DTA-TTFS)", - "reference": "Software-Level Optimizations for Spiking Neural Network Inference on ARM Architectures: A Deep-Dive into the Jetson Nano Ecosystem (research.md SS2)", - "script": "opt01_ttfs_dta.py", - "baseline_mode": false, - "method": "harmonic_matched", - "accuracy": { - "test_acc": 0.22214285714285714, - "test_target_acc": 0.22214285714285714, - "best_val_acc": 0.23857142857142857 - }, - "efficiency": { - "spikes_per_inference": null, - "syn_ops_per_inference": 1370895.7012987013, - "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.01117500278213283, - "syn_ops_per_inference_dense_fanout": 46072438.1176948, - "weight_sparsity": 0.7324707846410685, - "effective_ticks": 100.0, - "num_ticks": 100, - "membrane_bytes_per_inference": 451200, - "weight_bytes": 4907008, - "input_raster_bytes": null, - "train_ms_per_step": 95.69850345000077, - "infer_ms_per_sample": 0.6107303025000022, - "peak_vram_mb": 2908.478464 - }, - "optimization_specific": { - "ttfs": true, - "dta": true, - "readout": "ttfs", - "ttfs_halt_k": 1, - "dta_target_rate": 0.02, - "dta_momentum": 0.1, - "spikes_per_neuron_per_inference": 0.666733789260385, - "ttfs_budget_respected": true, - "frac_neurons_that_ever_fire": 0.666733789260385, - "mean_first_spike_tick": 22.77649856682363, - "per_layer_ttfs": [ - { - "layer": 0, - "neurons": 320, - "spikes_per_neuron_per_inference": 0.8998928571428572, - "frac_neurons_that_ever_fire": 0.8998928571428572, - "mean_first_spike_tick": 8.32483529785292 - }, - { - "layer": 1, - "neurons": 512, - "spikes_per_neuron_per_inference": 0.5788044084821429, - "frac_neurons_that_ever_fire": 0.5788044084821429, - "mean_first_spike_tick": 32.204212231282256 - }, - { - "layer": 2, - "neurons": 256, - "spikes_per_neuron_per_inference": 0.6099832589285714, - "frac_neurons_that_ever_fire": 0.6099832589285714, - "mean_first_spike_tick": 27.42329085436698 - }, - { - "layer": 3, - "neurons": 40, - "spikes_per_neuron_per_inference": 0.29016071428571427, - "frac_neurons_that_ever_fire": 0.29016071428571427, - "mean_first_spike_tick": 78.09735983752846 - } - ], - "mean_halt_tick": 65.40357142857142, - "effective_ticks": 65.40357142857142, - "ticks_saved_frac": 0.3459642857142857, - "num_ticks": 100, - "dta_thr_min": 10.0, - "dta_thr_max": 10.0, - "dta_thr_mean": 10.0, - "base_thresh": 10.0 - }, - "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": 10.0, - "window": 0.5, - "gain": 1.0, - "alpha": 0.9, - "readout": "ttfs", - "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/opt01_ttfs_dta/dta_rate_0.02", - "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, - "ttfs": true, - "ttfs_halt_k": 1, - "dta": true, - "dta_target_rate": 0.02, - "dta_readout_rate": 0.95, - "ttfs_logit_scale": 10.0, - "dta_momentum": 0.1, - "dta_min": 0.2, - "dta_max": 5.0, - "dta_windup_patience": 200, - "sampling_rate": 250.0 - } - }, + "duration_s": 576.1, + "optimization_summary": null, "zip": { - "name": "dta_rate_0.02.zip", - "files": 80, - "bytes": 12510253, - "MB": 12.5, - "sha256": "1243e55e5fd4e4197a0db50663cc4eaf49e0a10a9ad59a34c29305a28a06856f" + "name": "baseline_reference.zip", + "files": 79, + "bytes": 12229960, + "MB": 12.2, + "sha256": "dbfae2e27e7c61c5d2a5e5d1d0a60eeeb5cac65dca488af8d9e07e91fe8a6bf2" } }, { - "key": "opt01_ttfs_dta/dta_rate_0.10", - "tag": "dta_rate_0.10", + "key": "opt01_ttfs_dta/control_baseline", + "tag": "control_baseline", "script": "opt01_ttfs_dta.py", "hf_folder": "applied/opt01_ttfs_dta", - "phase": 3, + "phase": 1, "status": "ok", - "duration_s": 314.3, + "duration_s": 324.9, "optimization_summary": { "optimization": "ttfs_dta", "research_section": "2. Temporal-Dimension Reduction (TTFS coding / DTA-TTFS)", "reference": "Software-Level Optimizations for Spiking Neural Network Inference on ARM Architectures: A Deep-Dive into the Jetson Nano Ecosystem (research.md SS2)", "script": "opt01_ttfs_dta.py", - "baseline_mode": false, + "baseline_mode": true, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.1392857142857143, - "test_target_acc": 0.1392857142857143, - "best_val_acc": 0.17 + "test_acc": 0.9435714285714286, + "test_target_acc": 0.9435714285714286, + "best_val_acc": 0.9485714285714286 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 1411658.4545454546, + "syn_ops_per_inference": 3231983.9886363638, "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.011507284720509561, - "syn_ops_per_inference_dense_fanout": 47245923.233766235, + "event_fraction_of_dense": 0.026345862803862263, + "syn_ops_per_inference_dense_fanout": 64808601.77516234, "weight_sparsity": 0.7324707846410685, - "effective_ticks": 100.0, + "effective_ticks": 12.076428571428572, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 95.29285290000189, - "infer_ms_per_sample": 0.6113808478124838, - "peak_vram_mb": 2909.302784 + "train_ms_per_step": 95.4652436500055, + "infer_ms_per_sample": 0.632198698124995, + "peak_vram_mb": 2914.106368 }, "optimization_specific": { - "ttfs": true, - "dta": true, - "readout": "ttfs", + "ttfs": false, + "dta": false, + "readout": "spikecount", "ttfs_halt_k": 1, - "dta_target_rate": 0.1, - "dta_momentum": 0.1, - "spikes_per_neuron_per_inference": 0.6239190729483283, - "ttfs_budget_respected": true, - "frac_neurons_that_ever_fire": 0.6239190729483283, - "mean_first_spike_tick": 19.628332891840294, + "dta_target_rate": null, + "dta_momentum": null, + "spikes_per_neuron_per_inference": 6.773503672745694, + "ttfs_budget_respected": false, + "frac_neurons_that_ever_fire": 0.7111518490374873, + "mean_first_spike_tick": 13.85866447739239, "per_layer_ttfs": [ { "layer": 0, "neurons": 320, - "spikes_per_neuron_per_inference": 0.8614040178571428, - "frac_neurons_that_ever_fire": 0.8614040178571428, - "mean_first_spike_tick": 9.993713543866559 + "spikes_per_neuron_per_inference": 6.179979910714286, + "frac_neurons_that_ever_fire": 0.7382388392857143, + "mean_first_spike_tick": 13.402922616869903 }, { "layer": 1, "neurons": 512, - "spikes_per_neuron_per_inference": 0.7464453125, - "frac_neurons_that_ever_fire": 0.7464453125, - "mean_first_spike_tick": 22.917884616822292 + "spikes_per_neuron_per_inference": 3.8403431919642856, + "frac_neurons_that_ever_fire": 0.5913783482142857, + "mean_first_spike_tick": 19.06668789808917 }, { "layer": 2, "neurons": 256, - "spikes_per_neuron_per_inference": 0.10224888392857143, - "frac_neurons_that_ever_fire": 0.10224888392857143, - "mean_first_spike_tick": 31.868034710473175 + "spikes_per_neuron_per_inference": 13.378063616071428, + "frac_neurons_that_ever_fire": 0.8717215401785714, + "mean_first_spike_tick": 9.758566055853406 }, { "layer": 3, "neurons": 40, - "spikes_per_neuron_per_inference": 0.49439285714285713, - "frac_neurons_that_ever_fire": 0.49439285714285713, - "mean_first_spike_tick": 74.14935346384455 + "spikes_per_neuron_per_inference": 6.796964285714286, + "frac_neurons_that_ever_fire": 0.9999107142857143, + "mean_first_spike_tick": 0.0006429145459416019 } ], - "mean_halt_tick": 68.85428571428571, - "effective_ticks": 68.85428571428571, - "ticks_saved_frac": 0.3114571428571429, + "mean_halt_tick": 100.0, + "effective_ticks": 100.0, + "ticks_saved_frac": 0.0, "num_ticks": 100, - "dta_thr_min": 10.0, - "dta_thr_max": 31.87553596496582, - "dta_thr_mean": 15.468883514404297, - "base_thresh": 10.0 + "dta_thr_min": 1.0, + "dta_thr_max": 1.0, + "dta_thr_mean": 1.0, + "base_thresh": 1.0 }, "config": { "method": "harmonic_matched", @@ -267,7 +128,7 @@ "no_batchnorm": false, "binary_input": false, "beta": 1.0, - "thresh": 10.0, + "thresh": 1.0, "window": 0.5, "gain": 1.0, "alpha": 0.9, @@ -279,13 +140,13 @@ "decision_margin": 2.0, "export": false, "seed": 1234, - "hub_dir": "/kaggle/working/hub/opt01_ttfs_dta/dta_rate_0.10", + "hub_dir": "/kaggle/working/hub/opt01_ttfs_dta/control_baseline", "repo_id": "UWU-R-13/SSVEP-SNN", "push_hf": false, "keep_epoch_weights": 1, "no_resume": true, "selftest": false, - "baseline": false, + "baseline": true, "bench": true, "bench_warmup": 10, "bench_iters": 50, @@ -293,7 +154,7 @@ "ttfs": true, "ttfs_halt_k": 1, "dta": true, - "dta_target_rate": 0.1, + "dta_target_rate": 0.05, "dta_readout_rate": 0.95, "ttfs_logit_scale": 10.0, "dta_momentum": 0.1, @@ -304,21 +165,21 @@ } }, "zip": { - "name": "dta_rate_0.10.zip", - "files": 77, - "bytes": 8117390, - "MB": 8.1, - "sha256": "149684ff3bdd640115b26d39a54bdaa9ae99619a8672a7ea6fcd59fc99345a27" + "name": "control_baseline.zip", + "files": 80, + "bytes": 12262646, + "MB": 12.3, + "sha256": "c4997d83edc40f945e2bde2e023fbe4d8722960cb38b6b4896a15611c735e03a" } }, { - "key": "opt01_ttfs_dta/dta_rate_0.20", - "tag": "dta_rate_0.20", + "key": "opt01_ttfs_dta/default", + "tag": "default", "script": "opt01_ttfs_dta.py", "hf_folder": "applied/opt01_ttfs_dta", - "phase": 3, + "phase": 1, "status": "ok", - "duration_s": 315.0, + "duration_s": 306.3, "optimization_summary": { "optimization": "ttfs_dta", "research_section": "2. Temporal-Dimension Reduction (TTFS coding / DTA-TTFS)", @@ -327,74 +188,74 @@ "baseline_mode": false, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.30142857142857143, - "test_target_acc": 0.30142857142857143, - "best_val_acc": 0.3442857142857143 + "test_acc": 0.10785714285714286, + "test_target_acc": 0.10785714285714286, + "best_val_acc": 0.12642857142857142 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 1268561.1761363635, + "syn_ops_per_inference": 883000.9488636364, "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.010340811966366173, - "syn_ops_per_inference_dense_fanout": 40907301.49837662, + "event_fraction_of_dense": 0.007197876578669824, + "syn_ops_per_inference_dense_fanout": 28456441.155032467, "weight_sparsity": 0.7324707846410685, "effective_ticks": 100.0, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 95.75917180000033, - "infer_ms_per_sample": 0.6131969368749424, - "peak_vram_mb": 2909.376512 + "train_ms_per_step": 92.62014005000765, + "infer_ms_per_sample": 0.5975575340625028, + "peak_vram_mb": 2909.198336 }, "optimization_specific": { "ttfs": true, "dta": true, "readout": "ttfs", "ttfs_halt_k": 1, - "dta_target_rate": 0.2, + "dta_target_rate": 0.05, "dta_momentum": 0.1, - "spikes_per_neuron_per_inference": 0.6888367527862209, + "spikes_per_neuron_per_inference": 0.6025234295845998, "ttfs_budget_respected": true, - "frac_neurons_that_ever_fire": 0.6888367527862209, - "mean_first_spike_tick": 17.83636679533485, + "frac_neurons_that_ever_fire": 0.6025234295845998, + "mean_first_spike_tick": 24.776728445988198, "per_layer_ttfs": [ { "layer": 0, "neurons": 320, - "spikes_per_neuron_per_inference": 0.9109776785714285, - "frac_neurons_that_ever_fire": 0.9109776785714285, - "mean_first_spike_tick": 7.660495248923105 + "spikes_per_neuron_per_inference": 0.8747723214285714, + "frac_neurons_that_ever_fire": 0.8747723214285714, + "mean_first_spike_tick": 8.497346248258475 }, { "layer": 1, "neurons": 512, - "spikes_per_neuron_per_inference": 0.8185337611607143, - "frac_neurons_that_ever_fire": 0.8185337611607143, - "mean_first_spike_tick": 22.096457454514464 + "spikes_per_neuron_per_inference": 0.47708565848214285, + "frac_neurons_that_ever_fire": 0.47708565848214285, + "mean_first_spike_tick": 31.723123035309598 }, { "layer": 2, "neurons": 256, - "spikes_per_neuron_per_inference": 0.19032366071428572, - "frac_neurons_that_ever_fire": 0.19032366071428572, - "mean_first_spike_tick": 19.373438691139388 + "spikes_per_neuron_per_inference": 0.45130301339285717, + "frac_neurons_that_ever_fire": 0.45130301339285717, + "mean_first_spike_tick": 42.55322200720879 }, { "layer": 3, "neurons": 40, - "spikes_per_neuron_per_inference": 0.44207142857142856, - "frac_neurons_that_ever_fire": 0.44207142857142856, - "mean_first_spike_tick": 80.39121829051543 + "spikes_per_neuron_per_inference": 0.9979464285714286, + "frac_neurons_that_ever_fire": 0.9979464285714286, + "mean_first_spike_tick": 44.9801735707256 } ], - "mean_halt_tick": 54.479285714285716, - "effective_ticks": 54.479285714285716, - "ticks_saved_frac": 0.4552071428571428, + "mean_halt_tick": 26.95642857142857, + "effective_ticks": 26.95642857142857, + "ticks_saved_frac": 0.7304357142857143, "num_ticks": 100, "dta_thr_min": 10.0, - "dta_thr_max": 36.44102096557617, - "dta_thr_mean": 16.610254287719727, + "dta_thr_max": 10.0, + "dta_thr_mean": 10.0, "base_thresh": 10.0 }, "config": { @@ -435,7 +296,7 @@ "decision_margin": 2.0, "export": false, "seed": 1234, - "hub_dir": "/kaggle/working/hub/opt01_ttfs_dta/dta_rate_0.20", + "hub_dir": "/kaggle/working/hub/opt01_ttfs_dta/default", "repo_id": "UWU-R-13/SSVEP-SNN", "push_hf": false, "keep_epoch_weights": 1, @@ -449,7 +310,7 @@ "ttfs": true, "ttfs_halt_k": 1, "dta": true, - "dta_target_rate": 0.2, + "dta_target_rate": 0.05, "dta_readout_rate": 0.95, "ttfs_logit_scale": 10.0, "dta_momentum": 0.1, @@ -460,98 +321,75 @@ } }, "zip": { - "name": "dta_rate_0.20.zip", + "name": "default.zip", "files": 80, - "bytes": 12365506, - "MB": 12.4, - "sha256": "0ff95b27869b51aaa9e93834f86b2558421ee7616d9cb9562165f0e64df9f734" + "bytes": 12567506, + "MB": 12.6, + "sha256": "fb707a74ab8ec231a6758240a7f7a2c3ea3f3546dffe53f2c0f20ce254a090c9" } }, { - "key": "opt01_ttfs_dta/ttfs_halt_k2", - "tag": "ttfs_halt_k2", - "script": "opt01_ttfs_dta.py", - "hf_folder": "applied/opt01_ttfs_dta", - "phase": 3, + "key": "opt02_seenn_bayes/control_baseline", + "tag": "control_baseline", + "script": "opt02_seenn_bayes.py", + "hf_folder": "applied/opt02_seenn_bayes", + "phase": 1, "status": "ok", - "duration_s": 313.4, + "duration_s": 320.9, "optimization_summary": { - "optimization": "ttfs_dta", - "research_section": "2. Temporal-Dimension Reduction (TTFS coding / DTA-TTFS)", - "reference": "Software-Level Optimizations for Spiking Neural Network Inference on ARM Architectures: A Deep-Dive into the Jetson Nano Ecosystem (research.md SS2)", - "script": "opt01_ttfs_dta.py", - "baseline_mode": false, + "optimization": "seenn_early_exit_bayesian_fusion", + "research_section": "2. Temporal-dimension reduction", + "reference": "SEENN: Towards Temporal Spiking Early-Exit Neural Networks, arXiv:2304.01230 (NeurIPS 2023); BayesianSpikeFusion, Front. Neurosci. 2024 (PMC11330889)", + "script": "opt02_seenn_bayes.py", + "baseline_mode": true, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.19142857142857142, - "test_target_acc": 0.19142857142857142, - "best_val_acc": 0.19071428571428573 + "test_acc": 0.9421428571428572, + "test_target_acc": 0.9421428571428572, + "best_val_acc": 0.9464285714285714 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 1146300.0625, + "syn_ops_per_inference": 3244711.4707792206, "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.009344187435602306, - "syn_ops_per_inference_dense_fanout": 38370359.65827922, + "event_fraction_of_dense": 0.026449612234414294, + "syn_ops_per_inference_dense_fanout": 64821329.2573052, "weight_sparsity": 0.7324707846410685, - "effective_ticks": 100.0, + "effective_ticks": 12.099285714285715, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 95.0974763999966, - "infer_ms_per_sample": 0.608219999062527, - "peak_vram_mb": 2909.190656 + "train_ms_per_step": 91.90045595169067, + "infer_ms_per_sample": 0.6131382294036635, + "peak_vram_mb": 10744.00512 }, "optimization_specific": { - "ttfs": true, - "dta": true, - "readout": "ttfs", - "ttfs_halt_k": 2, - "dta_target_rate": 0.05, - "dta_momentum": 0.1, - "spikes_per_neuron_per_inference": 0.5998423252279635, - "ttfs_budget_respected": true, - "frac_neurons_that_ever_fire": 0.5998423252279635, - "mean_first_spike_tick": 22.474675145760823, - "per_layer_ttfs": [ - { - "layer": 0, - "neurons": 320, - "spikes_per_neuron_per_inference": 0.8544263392857143, - "frac_neurons_that_ever_fire": 0.8544263392857143, - "mean_first_spike_tick": 8.993144941128525 - }, - { - "layer": 1, - "neurons": 512, - "spikes_per_neuron_per_inference": 0.4505161830357143, - "frac_neurons_that_ever_fire": 0.4505161830357143, - "mean_first_spike_tick": 27.44062180658347 - }, - { - "layer": 2, - "neurons": 256, - "spikes_per_neuron_per_inference": 0.52904296875, - "frac_neurons_that_ever_fire": 0.52904296875, - "mean_first_spike_tick": 29.398224767811655 - }, - { - "layer": 3, - "neurons": 40, - "spikes_per_neuron_per_inference": 0.9276607142857143, - "frac_neurons_that_ever_fire": 0.9276607142857143, - "mean_first_spike_tick": 65.67242872817572 - } - ], - "mean_halt_tick": 47.255714285714284, - "effective_ticks": 47.255714285714284, - "ticks_saved_frac": 0.5274428571428571, - "num_ticks": 100, - "dta_thr_min": 10.0, - "dta_thr_max": 10.0, - "dta_thr_mean": 10.0, - "base_thresh": 10.0 + "seenn_enabled": false, + "bayes_fusion_enabled": false, + "conf_threshold": 0.9, + "conf_temp": 2.0, + "anytime_fracs": "1.0", + "anytime_weights": "1.0", + "ic_loss_weight": 0.0, + "ic_layer": 0, + "mean_exit_tick": null, + "mean_exit_ms": null, + "ticks_saved_frac": null, + "exit_tick_histogram": null, + "acc_fc_only": 0.9421428571428572, + "acc_ic_only": null, + "acc_fused": 0.9421428571428572, + "acc_early_exit": null, + "syn_ops_saved_frac": null, + "syn_per_inference_early_exit": null, + "anytime_acc": { + "0.25": 0.6221428571428571, + "0.5": 0.8442857142857143, + "0.75": 0.9164285714285715, + "1.0": 0.9421428571428572 + }, + "pareto": null }, "config": { "method": "harmonic_matched", @@ -579,11 +417,11 @@ "no_batchnorm": false, "binary_input": false, "beta": 1.0, - "thresh": 10.0, + "thresh": 1.0, "window": 0.5, "gain": 1.0, "alpha": 0.9, - "readout": "ttfs", + "readout": "spikecount", "fake_quant": 0, "amp": false, "spike_reg": 0.0, @@ -591,46 +429,45 @@ "decision_margin": 2.0, "export": false, "seed": 1234, - "hub_dir": "/kaggle/working/hub/opt01_ttfs_dta/ttfs_halt_k2", + "baseline": true, + "bench": true, + "bench_warmup": 10, + "bench_iters": 50, + "bench_train_steps": 20, + "anytime_fracs": "0.25,0.5,1.0", + "anytime_weights": "0.3,0.3,1.0", + "ic_layer": 0, + "ic_loss_weight": 0.3, + "bayes_fusion": false, + "fusion_prior_weight": 1.0, + "conf_threshold": 0.9, + "conf_temp": 2.0, + "conf_sweep": "0.5,0.7,0.8,0.9,0.95,0.99", + "hub_dir": "/kaggle/working/hub/opt02_seenn_bayes/control_baseline", "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, - "ttfs": true, - "ttfs_halt_k": 2, - "dta": true, - "dta_target_rate": 0.05, - "dta_readout_rate": 0.95, - "ttfs_logit_scale": 10.0, - "dta_momentum": 0.1, - "dta_min": 0.2, - "dta_max": 5.0, - "dta_windup_patience": 200, "sampling_rate": 250.0 } }, "zip": { - "name": "ttfs_halt_k2.zip", + "name": "control_baseline.zip", "files": 80, - "bytes": 12550233, - "MB": 12.6, - "sha256": "a2405580d698ac72ad152755bc18092b397e88e06d8b67b05ce9fe8a7ae6d838" + "bytes": 12251539, + "MB": 12.3, + "sha256": "7e217471fe06675f01d799cc760f6565432d57e42b13f0c8e1d11077507709cf" } }, { - "key": "opt02_seenn_bayes/conf_0.5", - "tag": "conf_0.5", + "key": "opt02_seenn_bayes/default", + "tag": "default", "script": "opt02_seenn_bayes.py", "hf_folder": "applied/opt02_seenn_bayes", - "phase": 3, + "phase": 1, "status": "ok", - "duration_s": 597.8, + "duration_s": 586.1, "optimization_summary": { "optimization": "seenn_early_exit_bayesian_fusion", "research_section": "2. Temporal-dimension reduction", @@ -639,46 +476,46 @@ "baseline_mode": false, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.9257142857142857, - "test_target_acc": 0.9257142857142857, - "best_val_acc": 0.9278571428571428 + "test_acc": 0.9278571428571428, + "test_target_acc": 0.9278571428571428, + "best_val_acc": 0.9307142857142857 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 3667001.4423701297, + "syn_ops_per_inference": 3638362.4326298703, "dense_macs_per_inference": 123955200.0, - "event_fraction_of_dense": 0.029583280430108053, - "syn_ops_per_inference_dense_fanout": 65243619.22889611, + "event_fraction_of_dense": 0.029352237200455246, + "syn_ops_per_inference_dense_fanout": 65214980.21915584, "weight_sparsity": 0.7324707846410685, - "effective_ticks": 4.38, + "effective_ticks": 7.985, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 179.7092080116272, - "infer_ms_per_sample": 0.6336252293994079, - "peak_vram_mb": 10914.760704, - "syn_ops_per_inference_early_exit": 1701440.4342532465 + "train_ms_per_step": 174.30670261383057, + "infer_ms_per_sample": 0.6237456846476799, + "peak_vram_mb": 10914.396672, + "syn_ops_per_inference_early_exit": 1846599.2897727273 }, "optimization_specific": { "seenn_enabled": true, "bayes_fusion_enabled": true, - "conf_threshold": 0.5, + "conf_threshold": 0.9, "conf_temp": 2.0, "anytime_fracs": "0.25,0.5,1.0", "anytime_weights": "0.3,0.3,1.0", "ic_loss_weight": 0.3, "ic_layer": 0, - "mean_exit_tick": 4.38, - "mean_exit_ms": 219.0, - "ticks_saved_frac": 0.9562, + "mean_exit_tick": 7.985, + "mean_exit_ms": 399.25000000000006, + "ticks_saved_frac": 0.92015, "exit_tick_histogram": { "counts": [ - 1371, - 25, + 1040, + 316, + 39, 4, - 0, - 0, + 1, 0, 0, 0, @@ -699,54 +536,54 @@ 100.0 ] }, - "acc_fc_only": 0.9257142857142857, + "acc_fc_only": 0.9278571428571428, "acc_ic_only": 0.935, - "acc_fused": 0.9342857142857143, - "acc_early_exit": 0.2257142857142857, - "syn_ops_saved_frac": 0.5360131538007966, - "syn_per_inference_early_exit": 1701440.4342532465, + "acc_fused": 0.9378571428571428, + "acc_early_exit": 0.3578571428571429, + "syn_ops_saved_frac": 0.49246417200994075, + "syn_per_inference_early_exit": 1846599.2897727273, "anytime_acc": { - "0.25": 0.6078571428571429, - "0.5": 0.8221428571428572, - "0.75": 0.8957142857142857, - "1.0": 0.9257142857142857 + "0.25": 0.6228571428571429, + "0.5": 0.8078571428571428, + "0.75": 0.8885714285714286, + "1.0": 0.9278571428571428 }, "pareto": [ { "conf": 0.5, - "mean_ticks": 4.38, - "acc": 0.2257142857142857, - "syn_ops": 1701440.4301948054 + "mean_ticks": 4.405, + "acc": 0.22785714285714287, + "syn_ops": 1715995.05762987 }, { "conf": 0.7, - "mean_ticks": 5.145714285714286, - "acc": 0.25642857142857145, - "syn_ops": 1733398.2719155846 + "mean_ticks": 5.097857142857142, + "acc": 0.25285714285714284, + "syn_ops": 1744549.8368506492 }, { "conf": 0.8, - "mean_ticks": 6.0442857142857145, - "acc": 0.295, - "syn_ops": 1770153.554383117 + "mean_ticks": 5.984285714285714, + "acc": 0.28285714285714286, + "syn_ops": 1779479.5024350649 }, { "conf": 0.9, - "mean_ticks": 8.140714285714285, - "acc": 0.3757142857142857, - "syn_ops": 1843691.239448052 + "mean_ticks": 7.984285714285714, + "acc": 0.3578571428571429, + "syn_ops": 1846555.8522727273 }, { "conf": 0.95, - "mean_ticks": 10.122857142857143, - "acc": 0.44357142857142856, - "syn_ops": 1899936.8051948054 + "mean_ticks": 10.01142857142857, + "acc": 0.42857142857142855, + "syn_ops": 1902723.0324675327 }, { "conf": 0.99, - "mean_ticks": 14.419285714285714, - "acc": 0.5728571428571428, - "syn_ops": 2001693.648538961 + "mean_ticks": 14.458571428571428, + "acc": 0.5621428571428572, + "syn_ops": 2004484.2800324673 } ] }, @@ -799,10 +636,10 @@ "ic_loss_weight": 0.3, "bayes_fusion": true, "fusion_prior_weight": 1.0, - "conf_threshold": 0.5, + "conf_threshold": 0.9, "conf_temp": 2.0, "conf_sweep": "0.5,0.7,0.8,0.9,0.95,0.99", - "hub_dir": "/kaggle/working/hub/opt02_seenn_bayes/conf_0.5", + "hub_dir": "/kaggle/working/hub/opt02_seenn_bayes/default", "repo_id": "UWU-R-13/SSVEP-SNN", "push_hf": false, "keep_epoch_weights": 1, @@ -812,21 +649,21 @@ } }, "zip": { - "name": "conf_0.5.zip", + "name": "default.zip", "files": 81, - "bytes": 12639386, + "bytes": 12636571, "MB": 12.6, - "sha256": "162ddbf03a10a75e5294c6ce6b8d399325b51f498ed3c54f52d6f80ee3ea4097" + "sha256": "1c64c6704af63b5eec37b2f1d2e824ba1c5c3c28328c5b1c03089bd12b4cc747" } }, { - "key": "opt02_seenn_bayes/conf_0.7", - "tag": "conf_0.7", + "key": "opt02_seenn_bayes/conf_sweep_fine", + "tag": "conf_sweep_fine", "script": "opt02_seenn_bayes.py", "hf_folder": "applied/opt02_seenn_bayes", - "phase": 3, + "phase": 7, "status": "ok", - "duration_s": 596.1, + "duration_s": 909.8, "optimization_summary": { "optimization": "seenn_early_exit_bayesian_fusion", "research_section": "2. Temporal-dimension reduction", @@ -835,46 +672,46 @@ "baseline_mode": false, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.9235714285714286, - "test_target_acc": 0.9235714285714286, - "best_val_acc": 0.9307142857142857 + "test_acc": 0.9342857142857143, + "test_target_acc": 0.9342857142857143, + "best_val_acc": 0.9285714285714286 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 3646728.713474026, + "syn_ops_per_inference": 3615247.340909091, "dense_macs_per_inference": 123955200.0, - "event_fraction_of_dense": 0.02941973159233357, - "syn_ops_per_inference_dense_fanout": 65223346.5, + "event_fraction_of_dense": 0.02916575779724522, + "syn_ops_per_inference_dense_fanout": 65191865.127435066, "weight_sparsity": 0.7324707846410685, - "effective_ticks": 5.101428571428571, + "effective_ticks": 8.057142857142857, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 179.2108416557312, - "infer_ms_per_sample": 0.6331442738298195, - "peak_vram_mb": 10914.71616, - "syn_ops_per_inference_early_exit": 1786668.6314935065 + "train_ms_per_step": 180.51012754440308, + "infer_ms_per_sample": 0.6378180717104044, + "peak_vram_mb": 10915.470336, + "syn_ops_per_inference_early_exit": 1822430.1501623376 }, "optimization_specific": { "seenn_enabled": true, "bayes_fusion_enabled": true, - "conf_threshold": 0.7, + "conf_threshold": 0.9, "conf_temp": 2.0, "anytime_fracs": "0.25,0.5,1.0", "anytime_weights": "0.3,0.3,1.0", "ic_loss_weight": 0.3, "ic_layer": 0, - "mean_exit_tick": 5.101428571428571, - "mean_exit_ms": 255.07142857142856, - "ticks_saved_frac": 0.9489857142857143, + "mean_exit_tick": 8.057142857142857, + "mean_exit_ms": 402.85714285714283, + "ticks_saved_frac": 0.9194285714285715, "exit_tick_histogram": { "counts": [ - 1307, - 85, + 1022, + 331, + 39, 5, - 2, - 1, + 3, 0, 0, 0, @@ -895,54 +732,78 @@ 100.0 ] }, - "acc_fc_only": 0.9235714285714286, - "acc_ic_only": 0.9385714285714286, - "acc_fused": 0.9328571428571428, - "acc_early_exit": 0.27071428571428574, - "syn_ops_saved_frac": 0.5100626419256037, - "syn_per_inference_early_exit": 1786668.6314935065, + "acc_fc_only": 0.9342857142857143, + "acc_ic_only": 0.9292857142857143, + "acc_fused": 0.94, + "acc_early_exit": 0.37714285714285717, + "syn_ops_saved_frac": 0.49590443521242755, + "syn_per_inference_early_exit": 1822430.1501623376, "anytime_acc": { - "0.25": 0.6235714285714286, + "0.25": 0.615, "0.5": 0.8142857142857143, - "0.75": 0.8857142857142857, - "1.0": 0.9235714285714286 + "0.75": 0.895, + "1.0": 0.9342857142857143 }, "pareto": [ + { + "conf": 0.3, + "mean_ticks": 2.82, + "acc": 0.17142857142857143, + "syn_ops": 1600944.0178571427 + }, + { + "conf": 0.4, + "mean_ticks": 3.285, + "acc": 0.18571428571428572, + "syn_ops": 1629355.7386363635 + }, { "conf": 0.5, - "mean_ticks": 4.373571428571428, - "acc": 0.245, - "syn_ops": 1757887.0267857143 + "mean_ticks": 4.3757142857142854, + "acc": 0.24285714285714285, + "syn_ops": 1687021.986201299 + }, + { + "conf": 0.6, + "mean_ticks": 4.670714285714285, + "acc": 0.2507142857142857, + "syn_ops": 1699344.8084415584 }, { "conf": 0.7, - "mean_ticks": 5.101428571428571, - "acc": 0.27071428571428574, - "syn_ops": 1786668.6030844154 + "mean_ticks": 5.075714285714286, + "acc": 0.26285714285714284, + "syn_ops": 1716703.7767857143 }, { "conf": 0.8, - "mean_ticks": 6.018571428571429, - "acc": 0.3078571428571429, - "syn_ops": 1823311.8506493508 + "mean_ticks": 5.987857142857143, + "acc": 0.2914285714285714, + "syn_ops": 1753268.2150974027 }, { "conf": 0.9, - "mean_ticks": 8.03357142857143, - "acc": 0.38357142857142856, - "syn_ops": 1892237.018668831 + "mean_ticks": 8.057142857142857, + "acc": 0.37714285714285717, + "syn_ops": 1822430.0933441557 }, { "conf": 0.95, - "mean_ticks": 10.159285714285714, - "acc": 0.45785714285714285, - "syn_ops": 1951178.429383117 + "mean_ticks": 10.176428571428572, + "acc": 0.45, + "syn_ops": 1882071.5430194808 }, { "conf": 0.99, - "mean_ticks": 14.51, - "acc": 0.575, - "syn_ops": 2049664.4594155846 + "mean_ticks": 14.704285714285714, + "acc": 0.5742857142857143, + "syn_ops": 1981175.7142857143 + }, + { + "conf": 0.999, + "mean_ticks": 19.547142857142855, + "acc": 0.68, + "syn_ops": 2074480.44237013 } ] }, @@ -995,10 +856,10 @@ "ic_loss_weight": 0.3, "bayes_fusion": true, "fusion_prior_weight": 1.0, - "conf_threshold": 0.7, + "conf_threshold": 0.9, "conf_temp": 2.0, - "conf_sweep": "0.5,0.7,0.8,0.9,0.95,0.99", - "hub_dir": "/kaggle/working/hub/opt02_seenn_bayes/conf_0.7", + "conf_sweep": "0.3,0.4,0.5,0.6,0.7,0.8,0.9,0.95,0.99,0.999", + "hub_dir": "/kaggle/working/hub/opt02_seenn_bayes/conf_sweep_fine", "repo_id": "UWU-R-13/SSVEP-SNN", "push_hf": false, "keep_epoch_weights": 1, @@ -1008,21 +869,21 @@ } }, "zip": { - "name": "conf_0.7.zip", + "name": "conf_sweep_fine.zip", "files": 81, - "bytes": 12639521, + "bytes": 12637373, "MB": 12.6, - "sha256": "06560b9ecd3e68cfa941be25d487165bfc2c44307143706a744998bafbbdbdd6" + "sha256": "e33a7b3b8947f0b0a5fd13a441d22f8068a82f8246738956132681351836f98c" } }, { - "key": "opt02_seenn_bayes/conf_0.95", - "tag": "conf_0.95", + "key": "opt02_seenn_bayes/conf_temp_16", + "tag": "conf_temp_16", "script": "opt02_seenn_bayes.py", "hf_folder": "applied/opt02_seenn_bayes", - "phase": 3, + "phase": 7, "status": "ok", - "duration_s": 595.7, + "duration_s": 613.7, "optimization_summary": { "optimization": "seenn_early_exit_bayesian_fusion", "research_section": "2. Temporal-dimension reduction", @@ -1031,50 +892,50 @@ "baseline_mode": false, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.9242857142857143, - "test_target_acc": 0.9242857142857143, - "best_val_acc": 0.9271428571428572 + "test_acc": 0.9278571428571428, + "test_target_acc": 0.9278571428571428, + "best_val_acc": 0.9278571428571428 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 3638148.597402598, + "syn_ops_per_inference": 3658814.530844156, "dense_macs_per_inference": 123955200.0, - "event_fraction_of_dense": 0.02935051209955369, - "syn_ops_per_inference_dense_fanout": 65214766.38392857, + "event_fraction_of_dense": 0.02951723308779427, + "syn_ops_per_inference_dense_fanout": 65235432.31737013, "weight_sparsity": 0.7324707846410685, - "effective_ticks": 10.347142857142858, + "effective_ticks": 4.197857142857143, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 178.97343635559082, - "infer_ms_per_sample": 0.6334354829548592, - "peak_vram_mb": 10914.694144, - "syn_ops_per_inference_early_exit": 1957780.4618506492 + "train_ms_per_step": 187.19353675842285, + "infer_ms_per_sample": 0.6553214698580642, + "peak_vram_mb": 10914.399232, + "syn_ops_per_inference_early_exit": 1722971.6599025973 }, "optimization_specific": { "seenn_enabled": true, "bayes_fusion_enabled": true, - "conf_threshold": 0.95, - "conf_temp": 2.0, + "conf_threshold": 0.9, + "conf_temp": 16.0, "anytime_fracs": "0.25,0.5,1.0", "anytime_weights": "0.3,0.3,1.0", "ic_loss_weight": 0.3, "ic_layer": 0, - "mean_exit_tick": 10.347142857142858, - "mean_exit_ms": 517.357142857143, - "ticks_saved_frac": 0.8965285714285715, + "mean_exit_tick": 4.197857142857143, + "mean_exit_ms": 209.89285714285717, + "ticks_saved_frac": 0.9580214285714286, "exit_tick_histogram": { "counts": [ - 775, - 521, - 82, - 15, - 6, + 1368, + 26, + 3, + 2, 1, 0, 0, 0, + 0, 0 ], "edges": [ @@ -1091,54 +952,54 @@ 100.0 ] }, - "acc_fc_only": 0.9242857142857143, - "acc_ic_only": 0.9392857142857143, - "acc_fused": 0.9357142857142857, - "acc_early_exit": 0.45357142857142857, - "syn_ops_saved_frac": 0.4618745195706472, - "syn_per_inference_early_exit": 1957780.4618506492, + "acc_fc_only": 0.9278571428571428, + "acc_ic_only": 0.935, + "acc_fused": 0.94, + "acc_early_exit": 0.2257142857142857, + "syn_ops_saved_frac": 0.5290901888090305, + "syn_per_inference_early_exit": 1722971.6599025973, "anytime_acc": { - "0.25": 0.6142857142857143, - "0.5": 0.8142857142857143, - "0.75": 0.8892857142857142, - "1.0": 0.9242857142857143 + "0.25": 0.6042857142857143, + "0.5": 0.8057142857142857, + "0.75": 0.8885714285714286, + "1.0": 0.9278571428571428 }, "pareto": [ { "conf": 0.5, - "mean_ticks": 4.299285714285714, - "acc": 0.2342857142857143, - "syn_ops": 1760335.4797077922 + "mean_ticks": 2.979285714285714, + "acc": 0.18857142857142858, + "syn_ops": 1660596.797077922 }, { "conf": 0.7, - "mean_ticks": 5.031428571428571, - "acc": 0.25642857142857145, - "syn_ops": 1790720.1217532465 + "mean_ticks": 4.196428571428571, + "acc": 0.2257142857142857, + "syn_ops": 1722894.4212662338 }, { "conf": 0.8, - "mean_ticks": 6.082857142857143, - "acc": 0.3028571428571429, - "syn_ops": 1831832.4009740262 + "mean_ticks": 4.196428571428571, + "acc": 0.2257142857142857, + "syn_ops": 1722894.1939935065 }, { "conf": 0.9, - "mean_ticks": 8.172142857142857, - "acc": 0.37357142857142855, - "syn_ops": 1899309.7069805192 + "mean_ticks": 4.197857142857143, + "acc": 0.2257142857142857, + "syn_ops": 1722971.7207792208 }, { "conf": 0.95, - "mean_ticks": 10.347142857142858, - "acc": 0.45357142857142857, - "syn_ops": 1957780.672077922 + "mean_ticks": 4.199285714285714, + "acc": 0.2257142857142857, + "syn_ops": 1723035.8133116884 }, { "conf": 0.99, - "mean_ticks": 14.625, - "acc": 0.5785714285714286, - "syn_ops": 2047858.3961038962 + "mean_ticks": 4.243571428571428, + "acc": 0.22642857142857142, + "syn_ops": 1724673.6931818181 } ] }, @@ -1191,10 +1052,10 @@ "ic_loss_weight": 0.3, "bayes_fusion": true, "fusion_prior_weight": 1.0, - "conf_threshold": 0.95, - "conf_temp": 2.0, + "conf_threshold": 0.9, + "conf_temp": 16.0, "conf_sweep": "0.5,0.7,0.8,0.9,0.95,0.99", - "hub_dir": "/kaggle/working/hub/opt02_seenn_bayes/conf_0.95", + "hub_dir": "/kaggle/working/hub/opt02_seenn_bayes/conf_temp_16", "repo_id": "UWU-R-13/SSVEP-SNN", "push_hf": false, "keep_epoch_weights": 1, @@ -1204,21 +1065,21 @@ } }, "zip": { - "name": "conf_0.95.zip", + "name": "conf_temp_16.zip", "files": 81, - "bytes": 12639768, + "bytes": 12637814, "MB": 12.6, - "sha256": "00cab3b3a3532412c189f9cb233e45acabc4376d5c7de1cbe54d5c25d6f2d53f" + "sha256": "d302c2ff3a0a7090de4ff36762170bca52ef860f9f4f098a3fde82a954059161" } }, { - "key": "opt02_seenn_bayes/conf_0.99", - "tag": "conf_0.99", + "key": "opt02_seenn_bayes/conf_temp_4", + "tag": "conf_temp_4", "script": "opt02_seenn_bayes.py", "hf_folder": "applied/opt02_seenn_bayes", - "phase": 3, + "phase": 7, "status": "ok", - "duration_s": 597.8, + "duration_s": 616.4, "optimization_summary": { "optimization": "seenn_early_exit_bayesian_fusion", "research_section": "2. Temporal-dimension reduction", @@ -1227,48 +1088,48 @@ "baseline_mode": false, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.9257142857142857, - "test_target_acc": 0.9257142857142857, - "best_val_acc": 0.9285714285714286 + "test_acc": 0.9278571428571428, + "test_target_acc": 0.9278571428571428, + "best_val_acc": 0.9264285714285714 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 3663273.849837662, + "syn_ops_per_inference": 3638325.674512987, "dense_macs_per_inference": 123955200.0, - "event_fraction_of_dense": 0.029553208335250658, - "syn_ops_per_inference_dense_fanout": 65239891.63636363, + "event_fraction_of_dense": 0.029351940656890448, + "syn_ops_per_inference_dense_fanout": 65214943.461038955, "weight_sparsity": 0.7324707846410685, - "effective_ticks": 14.498571428571429, + "effective_ticks": 4.575714285714286, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 179.46667671203613, - "infer_ms_per_sample": 0.6342180559982606, - "peak_vram_mb": 10914.656256, - "syn_ops_per_inference_early_exit": 2044428.423701299 + "train_ms_per_step": 187.23959922790527, + "infer_ms_per_sample": 0.6532642859310361, + "peak_vram_mb": 10914.677248, + "syn_ops_per_inference_early_exit": 1640777.8961038962 }, "optimization_specific": { "seenn_enabled": true, "bayes_fusion_enabled": true, - "conf_threshold": 0.99, - "conf_temp": 2.0, + "conf_threshold": 0.9, + "conf_temp": 4.0, "anytime_fracs": "0.25,0.5,1.0", "anytime_weights": "0.3,0.3,1.0", "ic_loss_weight": 0.3, "ic_layer": 0, - "mean_exit_tick": 14.498571428571429, - "mean_exit_ms": 724.9285714285714, - "ticks_saved_frac": 0.8550142857142857, + "mean_exit_tick": 4.575714285714286, + "mean_exit_ms": 228.78571428571428, + "ticks_saved_frac": 0.9542428571428572, "exit_tick_histogram": { "counts": [ - 466, - 636, - 198, - 69, - 24, - 6, - 1, + 1339, + 54, + 5, + 2, + 0, + 0, + 0, 0, 0, 0 @@ -1287,54 +1148,54 @@ 100.0 ] }, - "acc_fc_only": 0.9257142857142857, + "acc_fc_only": 0.9278571428571428, "acc_ic_only": 0.9364285714285714, - "acc_fused": 0.9357142857142857, - "acc_early_exit": 0.5828571428571429, - "syn_ops_saved_frac": 0.4419122054465304, - "syn_per_inference_early_exit": 2044428.423701299, + "acc_fused": 0.935, + "acc_early_exit": 0.25214285714285717, + "syn_ops_saved_frac": 0.5490294044874021, + "syn_per_inference_early_exit": 1640777.8961038962, "anytime_acc": { - "0.25": 0.6142857142857143, - "0.5": 0.8257142857142857, - "0.75": 0.8942857142857142, - "1.0": 0.9257142857142857 + "0.25": 0.62, + "0.5": 0.8178571428571428, + "0.75": 0.8885714285714286, + "1.0": 0.9278571428571428 }, "pareto": [ { "conf": 0.5, - "mean_ticks": 4.36, - "acc": 0.24928571428571428, - "syn_ops": 1750927.5121753246 + "mean_ticks": 3.902142857142857, + "acc": 0.22357142857142856, + "syn_ops": 1613080.9172077922 }, { "conf": 0.7, - "mean_ticks": 5.107857142857143, - "acc": 0.2792857142857143, - "syn_ops": 1781408.5868506492 + "mean_ticks": 4.2371428571428575, + "acc": 0.23857142857142857, + "syn_ops": 1626802.577922078 }, { "conf": 0.8, - "mean_ticks": 6.007857142857143, - "acc": 0.3142857142857143, - "syn_ops": 1818025.2240259738 + "mean_ticks": 4.365, + "acc": 0.245, + "syn_ops": 1632438.9545454546 }, { "conf": 0.9, - "mean_ticks": 8.105, - "acc": 0.39571428571428574, - "syn_ops": 1888108.6534090908 + "mean_ticks": 4.575714285714286, + "acc": 0.25214285714285717, + "syn_ops": 1640777.924512987 }, { "conf": 0.95, - "mean_ticks": 10.308571428571428, - "acc": 0.4735714285714286, - "syn_ops": 1948837.3271103897 + "mean_ticks": 4.854285714285714, + "acc": 0.26071428571428573, + "syn_ops": 1651982.8961038962 }, { "conf": 0.99, - "mean_ticks": 14.498571428571429, - "acc": 0.5828571428571429, - "syn_ops": 2044428.5941558443 + "mean_ticks": 6.857857142857143, + "acc": 0.3357142857142857, + "syn_ops": 1728711.8571428573 } ] }, @@ -1387,10 +1248,10 @@ "ic_loss_weight": 0.3, "bayes_fusion": true, "fusion_prior_weight": 1.0, - "conf_threshold": 0.99, - "conf_temp": 2.0, + "conf_threshold": 0.9, + "conf_temp": 4.0, "conf_sweep": "0.5,0.7,0.8,0.9,0.95,0.99", - "hub_dir": "/kaggle/working/hub/opt02_seenn_bayes/conf_0.99", + "hub_dir": "/kaggle/working/hub/opt02_seenn_bayes/conf_temp_4", "repo_id": "UWU-R-13/SSVEP-SNN", "push_hf": false, "keep_epoch_weights": 1, @@ -1400,273 +1261,139 @@ } }, "zip": { - "name": "conf_0.99.zip", + "name": "conf_temp_4.zip", "files": 81, - "bytes": 12639694, + "bytes": 12640717, "MB": 12.6, - "sha256": "2673af6c589e17720b6676d7f3eec3a62019f7a4cad5c0e7a45b974cf0f77f76" + "sha256": "a9f16ef1db8ee6c4c51113bece56694dc7dd17feb4b73d57c99a3dad1b66ca71" } }, { - "key": "opt03_ftbc_threshold_balance/calib_p95", - "tag": "calib_p95", - "script": "opt03_ftbc_threshold_balance.py", - "hf_folder": "applied/opt03_ftbc_threshold_balance", - "phase": 3, + "key": "opt02_seenn_bayes/fusion_prior_2x", + "tag": "fusion_prior_2x", + "script": "opt02_seenn_bayes.py", + "hf_folder": "applied/opt02_seenn_bayes", + "phase": 7, "status": "ok", - "duration_s": 378.3, + "duration_s": 609.0, "optimization_summary": { - "optimization": "ftbc_threshold_balance", - "research_section": "2. Temporal-Dimension Reduction (threshold balancing + FTBC)", - "reference": "Rueckauer et al. arXiv:1612.04052; Sengupta et al. arXiv:1802.02627; FTBC: Forward Temporal Bias Correction, ECCV 2024", - "script": "opt03_ftbc_threshold_balance.py", + "optimization": "seenn_early_exit_bayesian_fusion", + "research_section": "2. Temporal-dimension reduction", + "reference": "SEENN: Towards Temporal Spiking Early-Exit Neural Networks, arXiv:2304.01230 (NeurIPS 2023); BayesianSpikeFusion, Front. Neurosci. 2024 (PMC11330889)", + "script": "opt02_seenn_bayes.py", "baseline_mode": false, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.9321428571428572, - "test_target_acc": 0.9321428571428572, - "best_val_acc": 0.9428571428571428 + "test_acc": 0.9271428571428572, + "test_target_acc": 0.9271428571428572, + "best_val_acc": 0.9307142857142857 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 3264047.4829545454, - "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.026607231803612675, - "syn_ops_per_inference_dense_fanout": 64840665.26948052, + "syn_ops_per_inference": 3657479.1964285714, + "dense_macs_per_inference": 123955200.0, + "event_fraction_of_dense": 0.02950646036978337, + "syn_ops_per_inference_dense_fanout": 65234096.98295455, "weight_sparsity": 0.7324707846410685, - "effective_ticks": 11.949285714285715, + "effective_ticks": 7.784285714285715, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 101.53206159998263, - "infer_ms_per_sample": 0.6751663200000735, - "peak_vram_mb": 2832.422912 + "train_ms_per_step": 185.8240008354187, + "infer_ms_per_sample": 0.6510175053198733, + "peak_vram_mb": 10914.386944, + "syn_ops_per_inference_early_exit": 1785947.325487013 }, "optimization_specific": { - "calibrate_thresh": true, - "ftbc": true, - "calib_percentile": 95.0, - "calib_batches": 8, - "ftbc_target_ticks": 8, - "ftbc_ref_ticks": 100, - "trained_T": 100, - "thresh_before": [ - 1.0, - 1.0, - 1.0, - 1.0 - ], - "thresh_after": [ - 0.5629911422729492, - 0.4806070923805237, - 0.8457203507423401, - 1.6999517679214478 - ], - "min_ticks_within_1pct_of_full": null, - "min_ticks_within_1pct_per_arm": { - "raw": 50, - "thresh": null, - "ftbc": 100, - "both": null + "seenn_enabled": true, + "bayes_fusion_enabled": true, + "conf_threshold": 0.9, + "conf_temp": 2.0, + "anytime_fracs": "0.25,0.5,1.0", + "anytime_weights": "0.3,0.3,1.0", + "ic_loss_weight": 0.3, + "ic_layer": 0, + "mean_exit_tick": 7.784285714285715, + "mean_exit_ms": 389.2142857142857, + "ticks_saved_frac": 0.9221571428571429, + "exit_tick_histogram": { + "counts": [ + 1048, + 306, + 34, + 11, + 1, + 0, + 0, + 0, + 0, + 0 + ], + "edges": [ + 0.0, + 10.0, + 20.0, + 30.0, + 40.0, + 50.0, + 60.0, + 70.0, + 80.0, + 90.0, + 100.0 + ] }, - "speedup_at_min_ticks": null, - "full_T_acc": 0.9428571428571428, - "t_sweep_rows": [ - { - "T": 4, - "arm": "raw", - "acc": 0.305, - "syn_per_inference": 1871713.2256493508, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.3814367585398986 - }, - { - "T": 4, - "arm": "thresh", - "acc": 0.3335714285714286, - "syn_per_inference": 1909303.75487013, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.38909733892223736 - }, - { - "T": 4, - "arm": "ftbc", - "acc": 0.23357142857142857, - "syn_per_inference": 1938631.2873376624, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.39507400178228 - }, - { - "T": 4, - "arm": "both", - "acc": 0.31785714285714284, - "syn_per_inference": 2003910.9650974027, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.40837735848350004 - }, - { - "T": 8, - "arm": "raw", - "acc": 0.6157142857142858, - "syn_per_inference": 2054740.7784090908, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.20936798741810597 - }, - { - "T": 8, - "arm": "thresh", - "acc": 0.535, - "syn_per_inference": 2140106.012987013, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.21806628529921013 - }, - { - "T": 8, - "arm": "ftbc", - "acc": 0.5135714285714286, - "syn_per_inference": 2244092.827922078, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.22866203070405405 - }, - { - "T": 8, - "arm": "both", - "acc": 0.4642857142857143, - "syn_per_inference": 2392016.2751623373, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.2437347030168218 - }, - { - "T": 16, - "arm": "raw", - "acc": 0.8264285714285714, - "syn_per_inference": 2346062.1858766233, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.11952610357862792 - }, - { - "T": 16, - "arm": "thresh", - "acc": 0.7228571428571429, - "syn_per_inference": 2542097.0625, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.1295135988416974 - }, - { - "T": 16, - "arm": "ftbc", - "acc": 0.7578571428571429, - "syn_per_inference": 2610952.6550324676, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.13302162208786228 - }, - { - "T": 16, - "arm": "both", - "acc": 0.6342857142857142, - "syn_per_inference": 2888513.6176948054, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.14716267110705777 - }, - { - "T": 25, - "arm": "raw", - "acc": 0.89, - "syn_per_inference": 2567979.000811688, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.08373262080067326 - }, - { - "T": 25, - "arm": "thresh", - "acc": 0.8221428571428572, - "syn_per_inference": 2890386.8092532465, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.09424518759303417 - }, - { - "T": 25, - "arm": "ftbc", - "acc": 0.8642857142857143, - "syn_per_inference": 2876722.585227273, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.09379964606464136 - }, - { - "T": 25, - "arm": "both", - "acc": 0.7692857142857142, - "syn_per_inference": 3290927.121753247, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.10730537620491336 - }, - { - "T": 50, - "arm": "raw", - "acc": 0.9328571428571428, - "syn_per_inference": 2922163.6103896103, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.04764065777581142 - }, - { - "T": 50, - "arm": "thresh", - "acc": 0.9135714285714286, - "syn_per_inference": 3546637.237824675, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.05782158476733154 - }, + "acc_fc_only": 0.9271428571428572, + "acc_ic_only": 0.9357142857142857, + "acc_fused": 0.9357142857142857, + "acc_early_exit": 0.37714285714285717, + "syn_ops_saved_frac": 0.5116999360567951, + "syn_per_inference_early_exit": 1785947.325487013, + "anytime_acc": { + "0.25": 0.6264285714285714, + "0.5": 0.8178571428571428, + "0.75": 0.8921428571428571, + "1.0": 0.9271428571428572 + }, + "pareto": [ { - "T": 50, - "arm": "ftbc", - "acc": 0.9292857142857143, - "syn_per_inference": 3297052.6079545454, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.053752553212948424 + "conf": 0.5, + "mean_ticks": 4.289285714285715, + "acc": 0.24571428571428572, + "syn_ops": 1647281.4212662338 }, { - "T": 50, - "arm": "both", - "acc": 0.9007142857142857, - "syn_per_inference": 4030732.6136363638, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.06571389512527982 + "conf": 0.7, + "mean_ticks": 4.978571428571429, + "acc": 0.275, + "syn_ops": 1678001.2727272727 }, { - "T": 100, - "arm": "raw", - "acc": 0.9428571428571428, - "syn_per_inference": 3264047.5113636362, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.026607232035192413 + "conf": 0.8, + "mean_ticks": 5.852857142857143, + "acc": 0.3028571428571429, + "syn_ops": 1714795.320616883 }, { - "T": 100, - "arm": "thresh", - "acc": 0.9321428571428572, - "syn_per_inference": 4339798.512987013, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.03537633126326277 + "conf": 0.9, + "mean_ticks": 7.785, + "acc": 0.37714285714285717, + "syn_ops": 1785960.5300324673 }, { - "T": 100, - "arm": "ftbc", - "acc": 0.9407142857142857, - "syn_per_inference": 3693235.9448051946, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.03010580740691839 + "conf": 0.95, + "mean_ticks": 10.002142857142857, + "acc": 0.45071428571428573, + "syn_ops": 1850843.49512987 }, { - "T": 100, - "arm": "both", - "acc": 0.9292857142857143, - "syn_per_inference": 4875421.047077922, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.03974251557835587 + "conf": 0.99, + "mean_ticks": 14.499285714285714, + "acc": 0.5742857142857143, + "syn_ops": 1959679.1558441557 } - ], - "calibration_reference": "same network at full T (NOT a source ANN)" + ] }, "config": { "method": "harmonic_matched", @@ -1706,296 +1433,163 @@ "decision_margin": 2.0, "export": false, "seed": 1234, - "hub_dir": "/kaggle/working/hub/opt03_ftbc_threshold_balance/calib_p95", - "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, - "calibrate_thresh": true, - "calib_percentile": 95.0, - "calib_batches": 8, - "ftbc": true, - "ftbc_target_ticks": 8, - "ftbc_ref_ticks": 0, - "ftbc_lr": 1.0, - "t_sweep": "4,8,16,25,50,100", + "anytime_fracs": "0.25,0.5,1.0", + "anytime_weights": "0.3,0.3,1.0", + "ic_layer": 0, + "ic_loss_weight": 0.3, + "bayes_fusion": true, + "fusion_prior_weight": 2.0, + "conf_threshold": 0.9, + "conf_temp": 2.0, + "conf_sweep": "0.5,0.7,0.8,0.9,0.95,0.99", + "hub_dir": "/kaggle/working/hub/opt02_seenn_bayes/fusion_prior_2x", + "repo_id": "UWU-R-13/SSVEP-SNN", + "push_hf": false, + "keep_epoch_weights": 1, + "no_resume": true, + "selftest": false, "sampling_rate": 250.0 } }, "zip": { - "name": "calib_p95.zip", + "name": "fusion_prior_2x.zip", "files": 81, - "bytes": 12247718, - "MB": 12.2, - "sha256": "7bfd3a9ba5be867423a06c63cc3e7652e2784be8ea2ed7f3064997e028337fd1" + "bytes": 12637636, + "MB": 12.6, + "sha256": "fc6050fb762f5c1e2b45dd261c259362087f7598c1df1884b7b7b97c019e13f4" } }, { - "key": "opt03_ftbc_threshold_balance/calib_p99", - "tag": "calib_p99", - "script": "opt03_ftbc_threshold_balance.py", - "hf_folder": "applied/opt03_ftbc_threshold_balance", - "phase": 3, + "key": "opt02_seenn_bayes/ic_layer_1", + "tag": "ic_layer_1", + "script": "opt02_seenn_bayes.py", + "hf_folder": "applied/opt02_seenn_bayes", + "phase": 7, "status": "ok", - "duration_s": 377.6, + "duration_s": 609.7, "optimization_summary": { - "optimization": "ftbc_threshold_balance", - "research_section": "2. Temporal-Dimension Reduction (threshold balancing + FTBC)", - "reference": "Rueckauer et al. arXiv:1612.04052; Sengupta et al. arXiv:1802.02627; FTBC: Forward Temporal Bias Correction, ECCV 2024", - "script": "opt03_ftbc_threshold_balance.py", - "baseline_mode": false, - "method": "harmonic_matched", - "accuracy": { - "test_acc": 0.9328571428571428, - "test_target_acc": 0.9328571428571428, - "best_val_acc": 0.945 + "optimization": "seenn_early_exit_bayesian_fusion", + "research_section": "2. Temporal-dimension reduction", + "reference": "SEENN: Towards Temporal Spiking Early-Exit Neural Networks, arXiv:2304.01230 (NeurIPS 2023); BayesianSpikeFusion, Front. Neurosci. 2024 (PMC11330889)", + "script": "opt02_seenn_bayes.py", + "baseline_mode": false, + "method": "harmonic_matched", + "accuracy": { + "test_acc": 0.9278571428571428, + "test_target_acc": 0.9278571428571428, + "best_val_acc": 0.9321428571428572 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 3284640.788149351, - "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.026775100331194495, - "syn_ops_per_inference_dense_fanout": 64861258.57467532, + "syn_ops_per_inference": 3613774.1201298703, + "dense_macs_per_inference": 124723200.0, + "event_fraction_of_dense": 0.02897435377002731, + "syn_ops_per_inference_dense_fanout": 65190391.90665584, "weight_sparsity": 0.7324707846410685, - "effective_ticks": 12.331428571428571, + "effective_ticks": 8.52, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 98.5430900999745, - "infer_ms_per_sample": 0.6449701993750523, - "peak_vram_mb": 2828.248576 + "train_ms_per_step": 185.69024801254272, + "infer_ms_per_sample": 0.6491338937126812, + "peak_vram_mb": 10916.063744, + "syn_ops_per_inference_early_exit": 1842881.0933441557 }, "optimization_specific": { - "calibrate_thresh": true, - "ftbc": true, - "calib_percentile": 99.0, - "calib_batches": 8, - "ftbc_target_ticks": 8, - "ftbc_ref_ticks": 100, - "trained_T": 100, - "thresh_before": [ - 1.0, - 1.0, - 1.0, - 1.0 - ], - "thresh_after": [ - 1.1893720626831055, - 0.6524527072906494, - 0.9638769626617432, - 2.4433438777923584 - ], - "min_ticks_within_1pct_of_full": null, - "min_ticks_within_1pct_per_arm": { - "raw": 100, - "thresh": null, - "ftbc": 100, - "both": null + "seenn_enabled": true, + "bayes_fusion_enabled": true, + "conf_threshold": 0.9, + "conf_temp": 2.0, + "anytime_fracs": "0.25,0.5,1.0", + "anytime_weights": "0.3,0.3,1.0", + "ic_loss_weight": 0.3, + "ic_layer": 1, + "mean_exit_tick": 8.52, + "mean_exit_ms": 426.0, + "ticks_saved_frac": 0.9148000000000001, + "exit_tick_histogram": { + "counts": [ + 970, + 375, + 48, + 7, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "edges": [ + 0.0, + 10.0, + 20.0, + 30.0, + 40.0, + 50.0, + 60.0, + 70.0, + 80.0, + 90.0, + 100.0 + ] }, - "speedup_at_min_ticks": null, - "full_T_acc": 0.9464285714285714, - "t_sweep_rows": [ - { - "T": 4, - "arm": "raw", - "acc": 0.3157142857142857, - "syn_per_inference": 1878827.9334415584, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.38288666605833094 - }, - { - "T": 4, - "arm": "thresh", - "acc": 0.3742857142857143, - "syn_per_inference": 1883321.543831169, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.38380241968856965 - }, - { - "T": 4, - "arm": "ftbc", - "acc": 0.21071428571428572, - "syn_per_inference": 1981124.6103896103, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.4037337233584315 - }, - { - "T": 4, - "arm": "both", - "acc": 0.25, - "syn_per_inference": 2006390.69237013, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.40888270252873643 - }, - { - "T": 8, - "arm": "raw", - "acc": 0.6171428571428571, - "syn_per_inference": 2065125.0535714284, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.21042609402424334 - }, - { - "T": 8, - "arm": "thresh", - "acc": 0.64, - "syn_per_inference": 2068805.8603896103, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.2108011501499091 - }, - { - "T": 8, - "arm": "ftbc", - "acc": 0.38785714285714284, - "syn_per_inference": 2372934.5551948054, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.24179036952811217 - }, - { - "T": 8, - "arm": "both", - "acc": 0.4235714285714286, - "syn_per_inference": 2420752.936688312, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.2466628276016986 - }, - { - "T": 16, - "arm": "raw", - "acc": 0.8157142857142857, - "syn_per_inference": 2361965.2678571427, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.12033632652815844 - }, - { - "T": 16, - "arm": "thresh", - "acc": 0.8385714285714285, - "syn_per_inference": 2359900.8782467535, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.1202311509501693 - }, - { - "T": 16, - "arm": "ftbc", - "acc": 0.6078571428571429, - "syn_per_inference": 2799702.0219155843, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.14263793853176845 - }, - { - "T": 16, - "arm": "both", - "acc": 0.6185714285714285, - "syn_per_inference": 2833707.82224026, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.1443704504985655 - }, - { - "T": 25, - "arm": "raw", - "acc": 0.8892857142857142, - "syn_per_inference": 2587462.3092532465, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.08436790188247491 - }, - { - "T": 25, - "arm": "thresh", - "acc": 0.8978571428571429, - "syn_per_inference": 2580447.637987013, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.08413917851324515 - }, - { - "T": 25, - "arm": "ftbc", - "acc": 0.7892857142857143, - "syn_per_inference": 3096516.7978896108, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.10096635009813265 - }, - { - "T": 25, - "arm": "both", - "acc": 0.7935714285714286, - "syn_per_inference": 3116778.5568181816, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.10162701366920719 - }, - { - "T": 50, - "arm": "raw", - "acc": 0.9357142857142857, - "syn_per_inference": 2946150.8920454546, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.04803172755447645 - }, - { - "T": 50, - "arm": "thresh", - "acc": 0.93, - "syn_per_inference": 2946987.3668831172, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.04804536478250074 - }, + "acc_fc_only": 0.9278571428571428, + "acc_ic_only": 0.935, + "acc_fused": 0.935, + "acc_early_exit": 0.39785714285714285, + "syn_ops_saved_frac": 0.4900397667140505, + "syn_per_inference_early_exit": 1842881.0933441557, + "anytime_acc": { + "0.25": 0.6442857142857142, + "0.5": 0.8335714285714285, + "0.75": 0.8935714285714286, + "1.0": 0.9278571428571428 + }, + "pareto": [ { - "T": 50, - "arm": "ftbc", - "acc": 0.9192857142857143, - "syn_per_inference": 3551675.100649351, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.057903718121500525 + "conf": 0.5, + "mean_ticks": 3.99, + "acc": 0.2307142857142857, + "syn_ops": 1674774.195616883 }, { - "T": 50, - "arm": "both", - "acc": 0.9192857142857143, - "syn_per_inference": 3567119.5762987016, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.058155512708333905 + "conf": 0.7, + "mean_ticks": 5.156428571428571, + "acc": 0.2742857142857143, + "syn_ops": 1725540.0787337662 }, { - "T": 100, - "arm": "raw", - "acc": 0.9464285714285714, - "syn_per_inference": 3284640.9301948054, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.026775101489093196 + "conf": 0.8, + "mean_ticks": 6.271428571428571, + "acc": 0.32, + "syn_ops": 1770739.0535714284 }, { - "T": 100, - "arm": "thresh", - "acc": 0.9328571428571428, - "syn_per_inference": 3333643.5, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.02717455117252713 + "conf": 0.9, + "mean_ticks": 8.519285714285715, + "acc": 0.39785714285714285, + "syn_ops": 1842866.4797077922 }, { - "T": 100, - "arm": "ftbc", - "acc": 0.945, - "syn_per_inference": 3961718.6420454546, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.03229437279943668 + "conf": 0.95, + "mean_ticks": 10.811428571428571, + "acc": 0.4764285714285714, + "syn_ops": 1903597.862012987 }, { - "T": 100, - "arm": "both", - "acc": 0.9328571428571428, - "syn_per_inference": 4013997.268668831, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.032720527610053465 + "conf": 0.99, + "mean_ticks": 14.98857142857143, + "acc": 0.5942857142857143, + "syn_ops": 1996385.5430194808 } - ], - "calibration_reference": "same network at full T (NOT a source ANN)" + ] }, "config": { "method": "harmonic_matched", @@ -2035,296 +1629,163 @@ "decision_margin": 2.0, "export": false, "seed": 1234, - "hub_dir": "/kaggle/working/hub/opt03_ftbc_threshold_balance/calib_p99", - "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, - "calibrate_thresh": true, - "calib_percentile": 99.0, - "calib_batches": 8, - "ftbc": true, - "ftbc_target_ticks": 8, - "ftbc_ref_ticks": 0, - "ftbc_lr": 1.0, - "t_sweep": "4,8,16,25,50,100", + "anytime_fracs": "0.25,0.5,1.0", + "anytime_weights": "0.3,0.3,1.0", + "ic_layer": 1, + "ic_loss_weight": 0.3, + "bayes_fusion": true, + "fusion_prior_weight": 1.0, + "conf_threshold": 0.9, + "conf_temp": 2.0, + "conf_sweep": "0.5,0.7,0.8,0.9,0.95,0.99", + "hub_dir": "/kaggle/working/hub/opt02_seenn_bayes/ic_layer_1", + "repo_id": "UWU-R-13/SSVEP-SNN", + "push_hf": false, + "keep_epoch_weights": 1, + "no_resume": true, + "selftest": false, "sampling_rate": 250.0 } }, "zip": { - "name": "calib_p99.zip", + "name": "ic_layer_1.zip", "files": 81, - "bytes": 12249418, - "MB": 12.2, - "sha256": "97afd31f1cc8ac24332af9c09efb238f37fc46365dc5d669f42dda2ecb138d3b" + "bytes": 12859971, + "MB": 12.9, + "sha256": "98a8ce45dac9959cbbf7cd753b3711e1819bd3c4c7d767ae7eb71ba456bc39eb" } }, { - "key": "opt03_ftbc_threshold_balance/calib_p99.99", - "tag": "calib_p99.99", - "script": "opt03_ftbc_threshold_balance.py", - "hf_folder": "applied/opt03_ftbc_threshold_balance", - "phase": 3, + "key": "opt02_seenn_bayes/ic_loss_0.1", + "tag": "ic_loss_0.1", + "script": "opt02_seenn_bayes.py", + "hf_folder": "applied/opt02_seenn_bayes", + "phase": 7, "status": "ok", - "duration_s": 377.5, + "duration_s": 606.7, "optimization_summary": { - "optimization": "ftbc_threshold_balance", - "research_section": "2. Temporal-Dimension Reduction (threshold balancing + FTBC)", - "reference": "Rueckauer et al. arXiv:1612.04052; Sengupta et al. arXiv:1802.02627; FTBC: Forward Temporal Bias Correction, ECCV 2024", - "script": "opt03_ftbc_threshold_balance.py", + "optimization": "seenn_early_exit_bayesian_fusion", + "research_section": "2. Temporal-dimension reduction", + "reference": "SEENN: Towards Temporal Spiking Early-Exit Neural Networks, arXiv:2304.01230 (NeurIPS 2023); BayesianSpikeFusion, Front. Neurosci. 2024 (PMC11330889)", + "script": "opt02_seenn_bayes.py", "baseline_mode": false, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.9342857142857143, - "test_target_acc": 0.9342857142857143, - "best_val_acc": 0.9485714285714286 + "test_acc": 0.9271428571428572, + "test_target_acc": 0.9271428571428572, + "best_val_acc": 0.9242857142857143 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 3246424.559253247, - "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.026463576658144815, - "syn_ops_per_inference_dense_fanout": 64823042.345779225, + "syn_ops_per_inference": 3436030.0146103892, + "dense_macs_per_inference": 123955200.0, + "event_fraction_of_dense": 0.027719934416711757, + "syn_ops_per_inference_dense_fanout": 65012647.80113637, "weight_sparsity": 0.7324707846410685, - "effective_ticks": 12.131428571428572, + "effective_ticks": 7.478571428571429, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 95.91640224998628, - "infer_ms_per_sample": 0.629378066875006, - "peak_vram_mb": 2823.921152 + "train_ms_per_step": 184.88277196884155, + "infer_ms_per_sample": 0.6457533518872668, + "peak_vram_mb": 10912.55296, + "syn_ops_per_inference_early_exit": 1629213.7150974027 }, "optimization_specific": { - "calibrate_thresh": true, - "ftbc": true, - "calib_percentile": 99.99, - "calib_batches": 8, - "ftbc_target_ticks": 8, - "ftbc_ref_ticks": 100, - "trained_T": 100, - "thresh_before": [ - 1.0, - 1.0, - 1.0, - 1.0 - ], - "thresh_after": [ - 3.5768113136291504, - 1.0354942083358765, - 1.2101423740386963, - 2.95900559425354 - ], - "min_ticks_within_1pct_of_full": null, - "min_ticks_within_1pct_per_arm": { - "raw": 100, - "thresh": 50, - "ftbc": 100, - "both": null - }, - "speedup_at_min_ticks": null, - "full_T_acc": 0.9442857142857143, - "t_sweep_rows": [ - { - "T": 4, - "arm": "raw", - "acc": 0.2892857142857143, - "syn_per_inference": 1865469.109577922, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.3801642690572182 - }, - { - "T": 4, - "arm": "thresh", - "acc": 0.46214285714285713, - "syn_per_inference": 1787905.8538961038, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.3643576399093101 - }, - { - "T": 4, - "arm": "ftbc", - "acc": 0.052142857142857144, - "syn_per_inference": 1966834.3693181819, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.40082151268516003 - }, - { - "T": 4, - "arm": "both", - "acc": 0.1757142857142857, - "syn_per_inference": 1898818.9853896103, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.3869606459556639 - }, - { - "T": 8, - "arm": "raw", - "acc": 0.6142857142857143, - "syn_per_inference": 2044550.4594155846, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.20832964399238646 - }, - { - "T": 8, - "arm": "thresh", - "acc": 0.855, - "syn_per_inference": 1874452.362012987, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.19099748380408052 - }, - { - "T": 8, - "arm": "ftbc", - "acc": 0.10214285714285715, - "syn_per_inference": 2318848.7905844157, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.23627929591559824 - }, - { - "T": 8, - "arm": "both", - "acc": 0.3757142857142857, - "syn_per_inference": 2183480.32224026, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.22248591425164377 - }, - { - "T": 16, - "arm": "raw", - "acc": 0.8092857142857143, - "syn_per_inference": 2330725.1071428573, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.11874471710372478 - }, - { - "T": 16, - "arm": "thresh", - "acc": 0.915, - "syn_per_inference": 1987912.3238636365, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.10127924816220171 - }, - { - "T": 16, - "arm": "ftbc", - "acc": 0.6707142857142857, - "syn_per_inference": 2661914.364448052, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.13561799595843596 - }, - { - "T": 16, - "arm": "both", - "acc": 0.5092857142857142, - "syn_per_inference": 2356939.4910714286, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.12008027555036739 - }, - { - "T": 25, - "arm": "raw", - "acc": 0.8814285714285715, - "syn_per_inference": 2549276.6623376627, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.08312280435940313 - }, - { - "T": 25, - "arm": "thresh", - "acc": 0.9307142857142857, - "syn_per_inference": 2060534.25, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.06718666038449499 - }, - { - "T": 25, - "arm": "ftbc", - "acc": 0.8492857142857143, - "syn_per_inference": 2914881.7978896103, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.09504388166115434 - }, - { - "T": 25, - "arm": "both", - "acc": 0.5964285714285714, - "syn_per_inference": 2459497.0251623373, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.08019541113973606 - }, - { - "T": 50, - "arm": "raw", - "acc": 0.9257142857142857, - "syn_per_inference": 2900110.1266233767, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.04728111511737298 - }, - { - "T": 50, - "arm": "thresh", - "acc": 0.9421428571428572, - "syn_per_inference": 2179785.9334415584, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.03553751587022574 - }, + "seenn_enabled": true, + "bayes_fusion_enabled": true, + "conf_threshold": 0.9, + "conf_temp": 2.0, + "anytime_fracs": "0.25,0.5,1.0", + "anytime_weights": "0.3,0.3,1.0", + "ic_loss_weight": 0.1, + "ic_layer": 0, + "mean_exit_tick": 7.478571428571429, + "mean_exit_ms": 373.92857142857144, + "ticks_saved_frac": 0.9252142857142858, + "exit_tick_histogram": { + "counts": [ + 1079, + 270, + 43, + 7, + 1, + 0, + 0, + 0, + 0, + 0 + ], + "edges": [ + 0.0, + 10.0, + 20.0, + 30.0, + 40.0, + 50.0, + 60.0, + 70.0, + 80.0, + 90.0, + 100.0 + ] + }, + "acc_fc_only": 0.9271428571428572, + "acc_ic_only": 0.9357142857142857, + "acc_fused": 0.9314285714285714, + "acc_early_exit": 0.3657142857142857, + "syn_ops_saved_frac": 0.5258441549783321, + "syn_per_inference_early_exit": 1629213.7150974027, + "anytime_acc": { + "0.25": 0.6142857142857143, + "0.5": 0.825, + "0.75": 0.89, + "1.0": 0.9271428571428572 + }, + "pareto": [ { - "T": 50, - "arm": "ftbc", - "acc": 0.9214285714285714, - "syn_per_inference": 3326054.6550324676, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.05422537978389222 + "conf": 0.5, + "mean_ticks": 4.1292857142857144, + "acc": 0.23142857142857143, + "syn_ops": 1500398.4293831168 }, { - "T": 50, - "arm": "both", - "acc": 0.8028571428571428, - "syn_per_inference": 2618701.586038961, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.042693251546179846 + "conf": 0.7, + "mean_ticks": 4.82, + "acc": 0.26357142857142857, + "syn_ops": 1529523.75487013 }, { - "T": 100, - "arm": "raw", - "acc": 0.9442857142857143, - "syn_per_inference": 3246424.559253247, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.026463576658144815 + "conf": 0.8, + "mean_ticks": 5.501428571428572, + "acc": 0.29214285714285715, + "syn_ops": 1558365.8676948054 }, { - "T": 100, - "arm": "thresh", - "acc": 0.9342857142857143, - "syn_per_inference": 2424959.4837662335, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.019767316326089003 + "conf": 0.9, + "mean_ticks": 7.478571428571429, + "acc": 0.3657142857142857, + "syn_ops": 1629213.413961039 }, { - "T": 100, - "arm": "ftbc", - "acc": 0.9364285714285714, - "syn_per_inference": 3747052.824675325, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.030544501453230358 + "conf": 0.95, + "mean_ticks": 9.495714285714286, + "acc": 0.42928571428571427, + "syn_ops": 1689368.923701299 }, { - "T": 100, - "arm": "both", - "acc": 0.8271428571428572, - "syn_per_inference": 2880583.041396104, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.023481380437090006 + "conf": 0.99, + "mean_ticks": 13.76, + "acc": 0.5578571428571428, + "syn_ops": 1796731.148538961 } - ], - "calibration_reference": "same network at full T (NOT a source ANN)" + ] }, "config": { "method": "harmonic_matched", @@ -2364,296 +1825,163 @@ "decision_margin": 2.0, "export": false, "seed": 1234, - "hub_dir": "/kaggle/working/hub/opt03_ftbc_threshold_balance/calib_p99.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, - "calibrate_thresh": true, - "calib_percentile": 99.99, - "calib_batches": 8, - "ftbc": true, - "ftbc_target_ticks": 8, - "ftbc_ref_ticks": 0, - "ftbc_lr": 1.0, - "t_sweep": "4,8,16,25,50,100", + "anytime_fracs": "0.25,0.5,1.0", + "anytime_weights": "0.3,0.3,1.0", + "ic_layer": 0, + "ic_loss_weight": 0.1, + "bayes_fusion": true, + "fusion_prior_weight": 1.0, + "conf_threshold": 0.9, + "conf_temp": 2.0, + "conf_sweep": "0.5,0.7,0.8,0.9,0.95,0.99", + "hub_dir": "/kaggle/working/hub/opt02_seenn_bayes/ic_loss_0.1", + "repo_id": "UWU-R-13/SSVEP-SNN", + "push_hf": false, + "keep_epoch_weights": 1, + "no_resume": true, + "selftest": false, "sampling_rate": 250.0 } }, "zip": { - "name": "calib_p99.99.zip", + "name": "ic_loss_0.1.zip", "files": 81, - "bytes": 12248347, - "MB": 12.2, - "sha256": "fe6b60f1bc67c5a27eab9fee7d46b5e4e3be3c3d73c0025e000c6942e77b6160" + "bytes": 12641458, + "MB": 12.6, + "sha256": "eee45bc432ffd53ea313c17e39d1034457326176b0a2447f42b1ecf6ed5b52a5" } }, { - "key": "opt03_ftbc_threshold_balance/ftbc_ticks_16", - "tag": "ftbc_ticks_16", - "script": "opt03_ftbc_threshold_balance.py", - "hf_folder": "applied/opt03_ftbc_threshold_balance", - "phase": 3, + "key": "opt02_seenn_bayes/ic_loss_0.6", + "tag": "ic_loss_0.6", + "script": "opt02_seenn_bayes.py", + "hf_folder": "applied/opt02_seenn_bayes", + "phase": 7, "status": "ok", - "duration_s": 382.3, + "duration_s": 613.6, "optimization_summary": { - "optimization": "ftbc_threshold_balance", - "research_section": "2. Temporal-Dimension Reduction (threshold balancing + FTBC)", - "reference": "Rueckauer et al. arXiv:1612.04052; Sengupta et al. arXiv:1802.02627; FTBC: Forward Temporal Bias Correction, ECCV 2024", - "script": "opt03_ftbc_threshold_balance.py", + "optimization": "seenn_early_exit_bayesian_fusion", + "research_section": "2. Temporal-dimension reduction", + "reference": "SEENN: Towards Temporal Spiking Early-Exit Neural Networks, arXiv:2304.01230 (NeurIPS 2023); BayesianSpikeFusion, Front. Neurosci. 2024 (PMC11330889)", + "script": "opt02_seenn_bayes.py", "baseline_mode": false, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.9364285714285714, - "test_target_acc": 0.9364285714285714, - "best_val_acc": 0.9442857142857143 + "test_acc": 0.9278571428571428, + "test_target_acc": 0.9278571428571428, + "best_val_acc": 0.93 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 3244621.7719155843, - "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.02644888104454351, - "syn_ops_per_inference_dense_fanout": 64821239.558441564, + "syn_ops_per_inference": 3881920.3644480524, + "dense_macs_per_inference": 123955200.0, + "event_fraction_of_dense": 0.03131712396452954, + "syn_ops_per_inference_dense_fanout": 65458538.15097403, "weight_sparsity": 0.7324707846410685, - "effective_ticks": 11.918571428571429, + "effective_ticks": 8.4, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 96.6059831000166, - "infer_ms_per_sample": 0.6313146153124194, - "peak_vram_mb": 2825.41312 + "train_ms_per_step": 187.2155785560608, + "infer_ms_per_sample": 0.6591762280344364, + "peak_vram_mb": 10915.289088, + "syn_ops_per_inference_early_exit": 2075315.3977272727 }, "optimization_specific": { - "calibrate_thresh": true, - "ftbc": true, - "calib_percentile": 99.9, - "calib_batches": 8, - "ftbc_target_ticks": 16, - "ftbc_ref_ticks": 100, - "trained_T": 100, - "thresh_before": [ - 1.0, - 1.0, - 1.0, - 1.0 - ], - "thresh_after": [ - 2.3250319957733154, - 0.8496885299682617, - 1.0896447896957397, - 2.718693256378174 - ], - "min_ticks_within_1pct_of_full": null, - "min_ticks_within_1pct_per_arm": { - "raw": 50, - "thresh": 50, - "ftbc": null, - "both": null + "seenn_enabled": true, + "bayes_fusion_enabled": true, + "conf_threshold": 0.9, + "conf_temp": 2.0, + "anytime_fracs": "0.25,0.5,1.0", + "anytime_weights": "0.3,0.3,1.0", + "ic_loss_weight": 0.6, + "ic_layer": 0, + "mean_exit_tick": 8.4, + "mean_exit_ms": 420.00000000000006, + "ticks_saved_frac": 0.916, + "exit_tick_histogram": { + "counts": [ + 996, + 350, + 41, + 11, + 1, + 1, + 0, + 0, + 0, + 0 + ], + "edges": [ + 0.0, + 10.0, + 20.0, + 30.0, + 40.0, + 50.0, + 60.0, + 70.0, + 80.0, + 90.0, + 100.0 + ] }, - "speedup_at_min_ticks": null, - "full_T_acc": 0.9407142857142857, - "t_sweep_rows": [ + "acc_fc_only": 0.9278571428571428, + "acc_ic_only": 0.9364285714285714, + "acc_fused": 0.935, + "acc_early_exit": 0.3942857142857143, + "syn_ops_saved_frac": 0.4653894972360285, + "syn_per_inference_early_exit": 2075315.3977272727, + "anytime_acc": { + "0.25": 0.6278571428571429, + "0.5": 0.8207142857142857, + "0.75": 0.8907142857142857, + "1.0": 0.9278571428571428 + }, + "pareto": [ { - "T": 4, - "arm": "raw", - "acc": 0.27714285714285714, - "syn_per_inference": 1864006.8636363635, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.3798662777065706 + "conf": 0.5, + "mean_ticks": 4.551428571428572, + "acc": 0.24857142857142858, + "syn_ops": 1938717.4821428573 }, { - "T": 4, - "arm": "thresh", - "acc": 0.39714285714285713, - "syn_per_inference": 1823905.375, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.37169398847525825 - }, - { - "T": 4, - "arm": "ftbc", - "acc": 0.04928571428571429, - "syn_per_inference": 1930274.5633116884, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.39337098356303646 - }, - { - "T": 4, - "arm": "both", - "acc": 0.125, - "syn_per_inference": 1898093.5227272727, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.386812803795566 - }, - { - "T": 8, - "arm": "raw", - "acc": 0.5928571428571429, - "syn_per_inference": 2041726.3392857143, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.2080418800301237 - }, - { - "T": 8, - "arm": "thresh", - "acc": 0.7535714285714286, - "syn_per_inference": 1945997.961038961, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.19828762873822103 - }, - { - "T": 8, - "arm": "ftbc", - "acc": 0.065, - "syn_per_inference": 2173312.650974026, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.22144987851803236 - }, - { - "T": 8, - "arm": "both", - "acc": 0.24714285714285714, - "syn_per_inference": 2095535.9318181819, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.2135248130651287 - }, - { - "T": 16, - "arm": "raw", - "acc": 0.7935714285714286, - "syn_per_inference": 2324438.898538961, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.11842445022195608 - }, - { - "T": 16, - "arm": "thresh", - "acc": 0.895, - "syn_per_inference": 2115607.2045454546, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.10778498855847873 - }, - { - "T": 16, - "arm": "ftbc", - "acc": 0.26285714285714284, - "syn_per_inference": 2626865.0324675324, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.1338323186179609 - }, - { - "T": 16, - "arm": "both", - "acc": 0.5564285714285714, - "syn_per_inference": 2485868.408279221, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.1266488870753431 - }, - { - "T": 25, - "arm": "raw", - "acc": 0.87, - "syn_per_inference": 2540346.3376623373, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.08283161837640655 - }, - { - "T": 25, - "arm": "thresh", - "acc": 0.9171428571428571, - "syn_per_inference": 2232137.172077922, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.07278201860124694 - }, - { - "T": 25, - "arm": "ftbc", - "acc": 0.6721428571428572, - "syn_per_inference": 2910014.7816558443, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.09488518564977581 - }, - { - "T": 25, - "arm": "both", - "acc": 0.5935714285714285, - "syn_per_inference": 2680826.768668831, - "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.08741218334818548 - }, - { - "T": 50, - "arm": "raw", - "acc": 0.9335714285714286, - "syn_per_inference": 2889483.0446428573, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.04710785952894892 - }, - { - "T": 50, - "arm": "thresh", - "acc": 0.9392857142857143, - "syn_per_inference": 2412475.600649351, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.03933110523804894 - }, - { - "T": 50, - "arm": "ftbc", - "acc": 0.9114285714285715, - "syn_per_inference": 3366198.3173701297, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.054879850489261556 - }, - { - "T": 50, - "arm": "both", - "acc": 0.7114285714285714, - "syn_per_inference": 2968215.874188312, - "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.048391457673406066 + "conf": 0.7, + "mean_ticks": 5.35, + "acc": 0.2757142857142857, + "syn_ops": 1970675.2102272727 }, { - "T": 100, - "arm": "raw", - "acc": 0.9407142857142857, - "syn_per_inference": 3244621.590097402, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.026448879562433174 + "conf": 0.8, + "mean_ticks": 6.325714285714286, + "acc": 0.31785714285714284, + "syn_ops": 2008171.7573051946 }, { - "T": 100, - "arm": "thresh", - "acc": 0.9364285714285714, - "syn_per_inference": 2678800.385551948, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.02183652755856072 + "conf": 0.9, + "mean_ticks": 8.4, + "acc": 0.3942857142857143, + "syn_ops": 2075315.4375 }, { - "T": 100, - "arm": "ftbc", - "acc": 0.9271428571428572, - "syn_per_inference": 3865133.496753247, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.031507048667972395 + "conf": 0.95, + "mean_ticks": 10.375714285714286, + "acc": 0.46214285714285713, + "syn_ops": 2131283.1087662335 }, { - "T": 100, - "arm": "both", - "acc": 0.8257142857142857, - "syn_per_inference": 3321729.465097402, - "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.027077432644066625 + "conf": 0.99, + "mean_ticks": 14.411428571428571, + "acc": 0.5742857142857143, + "syn_ops": 2220022.9334415584 } - ], - "calibration_reference": "same network at full T (NOT a source ANN)" + ] }, "config": { "method": "harmonic_matched", @@ -2693,293 +2021,490 @@ "decision_margin": 2.0, "export": false, "seed": 1234, - "hub_dir": "/kaggle/working/hub/opt03_ftbc_threshold_balance/ftbc_ticks_16", - "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, - "calibrate_thresh": true, - "calib_percentile": 99.9, - "calib_batches": 8, - "ftbc": true, - "ftbc_target_ticks": 16, - "ftbc_ref_ticks": 0, - "ftbc_lr": 1.0, - "t_sweep": "4,8,16,25,50,100", + "anytime_fracs": "0.25,0.5,1.0", + "anytime_weights": "0.3,0.3,1.0", + "ic_layer": 0, + "ic_loss_weight": 0.6, + "bayes_fusion": true, + "fusion_prior_weight": 1.0, + "conf_threshold": 0.9, + "conf_temp": 2.0, + "conf_sweep": "0.5,0.7,0.8,0.9,0.95,0.99", + "hub_dir": "/kaggle/working/hub/opt02_seenn_bayes/ic_loss_0.6", + "repo_id": "UWU-R-13/SSVEP-SNN", + "push_hf": false, + "keep_epoch_weights": 1, + "no_resume": true, + "selftest": false, "sampling_rate": 250.0 } }, "zip": { - "name": "ftbc_ticks_16.zip", + "name": "ic_loss_0.6.zip", "files": 81, - "bytes": 12244811, - "MB": 12.2, - "sha256": "61b2fe0303d978b5bcb5292e8785f2240a28f26bf554b774d10b2ee1024af021" + "bytes": 12634970, + "MB": 12.6, + "sha256": "8b06be6ffe12ced55b0fa84f116fc4476be96b97264b7c85d13026df05393ec7" } }, { - "key": "opt03_ftbc_threshold_balance/ftbc_ticks_4", - "tag": "ftbc_ticks_4", - "script": "opt03_ftbc_threshold_balance.py", - "hf_folder": "applied/opt03_ftbc_threshold_balance", - "phase": 3, + "key": "opt02_seenn_bayes/no_bayes_fusion", + "tag": "no_bayes_fusion", + "script": "opt02_seenn_bayes.py", + "hf_folder": "applied/opt02_seenn_bayes", + "phase": 7, "status": "ok", - "duration_s": 376.0, + "duration_s": 605.0, "optimization_summary": { - "optimization": "ftbc_threshold_balance", - "research_section": "2. Temporal-Dimension Reduction (threshold balancing + FTBC)", - "reference": "Rueckauer et al. arXiv:1612.04052; Sengupta et al. arXiv:1802.02627; FTBC: Forward Temporal Bias Correction, ECCV 2024", - "script": "opt03_ftbc_threshold_balance.py", + "optimization": "seenn_early_exit_bayesian_fusion", + "research_section": "2. Temporal-dimension reduction", + "reference": "SEENN: Towards Temporal Spiking Early-Exit Neural Networks, arXiv:2304.01230 (NeurIPS 2023); BayesianSpikeFusion, Front. Neurosci. 2024 (PMC11330889)", + "script": "opt02_seenn_bayes.py", "baseline_mode": false, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.915, - "test_target_acc": 0.915, - "best_val_acc": 0.9428571428571428 + "test_acc": 0.9257142857142857, + "test_target_acc": 0.9257142857142857, + "best_val_acc": 0.9257142857142857 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 3276270.6355519476, - "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.026706870137989974, - "syn_ops_per_inference_dense_fanout": 64852888.422077924, + "syn_ops_per_inference": 3621647.9464285714, + "dense_macs_per_inference": 123955200.0, + "event_fraction_of_dense": 0.029217394239439504, + "syn_ops_per_inference_dense_fanout": 65198265.73295455, "weight_sparsity": 0.7324707846410685, - "effective_ticks": 12.065, + "effective_ticks": 10.228571428571428, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 96.65914569995948, - "infer_ms_per_sample": 0.6326527268748805, - "peak_vram_mb": 2825.361408 + "train_ms_per_step": 184.58738327026367, + "infer_ms_per_sample": 0.6467816068898493, + "peak_vram_mb": 10914.273792, + "syn_ops_per_inference_early_exit": 1852356.0259740262 }, "optimization_specific": { - "calibrate_thresh": true, - "ftbc": true, - "calib_percentile": 99.9, - "calib_batches": 8, - "ftbc_target_ticks": 4, - "ftbc_ref_ticks": 100, - "trained_T": 100, - "thresh_before": [ - 1.0, - 1.0, - 1.0, - 1.0 - ], - "thresh_after": [ - 2.3257808685302734, - 0.8485923409461975, - 1.1052438020706177, - 2.675086736679077 - ], - "min_ticks_within_1pct_of_full": 50, - "min_ticks_within_1pct_per_arm": { - "raw": 100, - "thresh": 50, - "ftbc": 100, - "both": 50 + "seenn_enabled": true, + "bayes_fusion_enabled": false, + "conf_threshold": 0.9, + "conf_temp": 2.0, + "anytime_fracs": "0.25,0.5,1.0", + "anytime_weights": "0.3,0.3,1.0", + "ic_loss_weight": 0.3, + "ic_layer": 0, + "mean_exit_tick": 10.228571428571428, + "mean_exit_ms": 511.42857142857144, + "ticks_saved_frac": 0.8977142857142857, + "exit_tick_histogram": { + "counts": [ + 784, + 517, + 79, + 19, + 1, + 0, + 0, + 0, + 0, + 0 + ], + "edges": [ + 0.0, + 10.0, + 20.0, + 30.0, + 40.0, + 50.0, + 60.0, + 70.0, + 80.0, + 90.0, + 100.0 + ] }, - "speedup_at_min_ticks": 2.0, - "full_T_acc": 0.9407142857142857, - "t_sweep_rows": [ - { - "T": 4, - "arm": "raw", - "acc": 0.25357142857142856, - "syn_per_inference": 1866350.0876623376, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.3803438037317929 - }, - { - "T": 4, - "arm": "thresh", - "acc": 0.3892857142857143, - "syn_per_inference": 1827417.9788961038, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.3724098226243169 - }, - { - "T": 4, - "arm": "ftbc", - "acc": 0.24, - "syn_per_inference": 2029696.7150974027, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.4136322408884197 - }, - { - "T": 4, - "arm": "both", - "acc": 0.3535714285714286, - "syn_per_inference": 2008604.635551948, - "dense_per_inference": 4907008.0, - "event_fraction_of_dense": 0.40933388238860585 - }, - { - "T": 8, - "arm": "raw", - "acc": 0.5685714285714286, - "syn_per_inference": 2049632.3157467535, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.2088474601780508 - }, + "acc_fc_only": 0.9257142857142857, + "acc_ic_only": 0.9342857142857143, + "acc_fused": 0.9257142857142857, + "acc_early_exit": 0.44, + "syn_ops_saved_frac": 0.48853227774370045, + "syn_per_inference_early_exit": 1852356.0259740262, + "anytime_acc": { + "0.25": 0.615, + "0.5": 0.8064285714285714, + "0.75": 0.8935714285714286, + "1.0": 0.9257142857142857 + }, + "pareto": [ { - "T": 8, - "arm": "thresh", - "acc": 0.7478571428571429, - "syn_per_inference": 1954472.2467532465, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.19915111680613182 + "conf": 0.5, + "mean_ticks": 4.534285714285715, + "acc": 0.24142857142857144, + "syn_ops": 1655985.486201299 }, { - "T": 8, - "arm": "ftbc", - "acc": 0.4014285714285714, - "syn_per_inference": 2281707.7126623373, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.2324948026029647 + "conf": 0.7, + "mean_ticks": 5.685, + "acc": 0.2885714285714286, + "syn_ops": 1712321.3814935065 }, { - "T": 8, - "arm": "both", - "acc": 0.5271428571428571, - "syn_per_inference": 2195008.1331168828, - "dense_per_inference": 9814016.0, - "event_fraction_of_dense": 0.22366054152722828 + "conf": 0.8, + "mean_ticks": 6.976428571428571, + "acc": 0.3385714285714286, + "syn_ops": 1762251.6274350649 }, { - "T": 16, - "arm": "raw", - "acc": 0.7928571428571428, - "syn_per_inference": 2341867.364448052, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.11931238773444286 + "conf": 0.9, + "mean_ticks": 10.228571428571428, + "acc": 0.44, + "syn_ops": 1852356.7021103897 }, { - "T": 16, - "arm": "thresh", - "acc": 0.8914285714285715, - "syn_per_inference": 2129525.081168831, - "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.10849407017314985 + "conf": 0.95, + "mean_ticks": 10.916428571428572, + "acc": 0.4614285714285714, + "syn_ops": 1872607.6915584416 + }, + { + "conf": 0.99, + "mean_ticks": 15.165714285714285, + "acc": 0.5571428571428572, + "syn_ops": 1963321.9383116884 + } + ] + }, + "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, + "baseline": false, + "bench": true, + "bench_warmup": 10, + "bench_iters": 50, + "bench_train_steps": 20, + "anytime_fracs": "0.25,0.5,1.0", + "anytime_weights": "0.3,0.3,1.0", + "ic_layer": 0, + "ic_loss_weight": 0.3, + "bayes_fusion": false, + "fusion_prior_weight": 1.0, + "conf_threshold": 0.9, + "conf_temp": 2.0, + "conf_sweep": "0.5,0.7,0.8,0.9,0.95,0.99", + "hub_dir": "/kaggle/working/hub/opt02_seenn_bayes/no_bayes_fusion", + "repo_id": "UWU-R-13/SSVEP-SNN", + "push_hf": false, + "keep_epoch_weights": 1, + "no_resume": true, + "selftest": false, + "sampling_rate": 250.0 + } + }, + "zip": { + "name": "no_bayes_fusion.zip", + "files": 81, + "bytes": 12641798, + "MB": 12.6, + "sha256": "e2e83c0d51a17b32b845d07b1c1cd99dd318c4b15f891615c90b53a342810c59" + } + }, + { + "key": "opt03_ftbc_threshold_balance/calib_batches_32", + "tag": "calib_batches_32", + "script": "opt03_ftbc_threshold_balance.py", + "hf_folder": "applied/opt03_ftbc_threshold_balance", + "phase": 7, + "status": "ok", + "duration_s": 399.1, + "optimization_summary": { + "optimization": "ftbc_threshold_balance", + "research_section": "2. Temporal-Dimension Reduction (threshold balancing + FTBC)", + "reference": "Rueckauer et al. arXiv:1612.04052; Sengupta et al. arXiv:1802.02627; FTBC: Forward Temporal Bias Correction, ECCV 2024", + "script": "opt03_ftbc_threshold_balance.py", + "baseline_mode": false, + "method": "harmonic_matched", + "accuracy": { + "test_acc": 0.9378571428571428, + "test_target_acc": 0.9378571428571428, + "best_val_acc": 0.9478571428571428 + }, + "efficiency": { + "spikes_per_inference": null, + "syn_ops_per_inference": 3261141.8693181816, + "dense_macs_per_inference": 122675200.0, + "event_fraction_of_dense": 0.026583546383606316, + "syn_ops_per_inference_dense_fanout": 64837759.65584416, + "weight_sparsity": 0.7324707846410685, + "effective_ticks": 12.063571428571429, + "num_ticks": 100, + "membrane_bytes_per_inference": 451200, + "weight_bytes": 4907008, + "input_raster_bytes": null, + "train_ms_per_step": 96.95494634997885, + "infer_ms_per_sample": 0.6346498156250391, + "peak_vram_mb": 2824.29952 + }, + "optimization_specific": { + "calibrate_thresh": true, + "ftbc": true, + "calib_percentile": 99.9, + "calib_batches": 32, + "ftbc_target_ticks": 8, + "ftbc_ref_ticks": 100, + "trained_T": 100, + "thresh_before": [ + 1.0, + 1.0, + 1.0, + 1.0 + ], + "thresh_after": [ + 2.3753418922424316, + 0.8675889372825623, + 1.0950974225997925, + 2.8038883209228516 + ], + "min_ticks_within_1pct_of_full": null, + "min_ticks_within_1pct_per_arm": { + "raw": 100, + "thresh": 50, + "ftbc": 100, + "both": null + }, + "speedup_at_min_ticks": null, + "full_T_acc": 0.9442857142857143, + "t_sweep_rows": [ + { + "T": 4, + "arm": "raw", + "acc": 0.27, + "syn_per_inference": 1859619.69237013, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.37897221532349856 + }, + { + "T": 4, + "arm": "thresh", + "acc": 0.4235714285714286, + "syn_per_inference": 1819867.7662337662, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.3708711634938778 + }, + { + "T": 4, + "arm": "ftbc", + "acc": 0.17, + "syn_per_inference": 1981539.6152597403, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.4038182972719303 + }, + { + "T": 4, + "arm": "both", + "acc": 0.23, + "syn_per_inference": 1951891.856331169, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.39777637540659583 + }, + { + "T": 8, + "arm": "raw", + "acc": 0.605, + "syn_per_inference": 2038958.4732142857, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.20775984807995887 + }, + { + "T": 8, + "arm": "thresh", + "acc": 0.7764285714285715, + "syn_per_inference": 1942887.4034090908, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.1979706782023884 + }, + { + "T": 8, + "arm": "ftbc", + "acc": 0.315, + "syn_per_inference": 2370014.435064935, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.24149282363763572 + }, + { + "T": 8, + "arm": "both", + "acc": 0.4764285714285714, + "syn_per_inference": 2295570.1801948054, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.2339073199182481 + }, + { + "T": 16, + "arm": "raw", + "acc": 0.8192857142857143, + "syn_per_inference": 2325345.020292208, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.11847061489874319 + }, + { + "T": 16, + "arm": "thresh", + "acc": 0.8992857142857142, + "syn_per_inference": 2113511.4650974027, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.10767821578329415 }, { "T": 16, "arm": "ftbc", - "acc": 0.6742857142857143, - "syn_per_inference": 2635164.2467532465, + "acc": 0.6028571428571429, + "syn_per_inference": 2770224.811688312, "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.13425514319281967 + "event_fraction_of_dense": 0.14113614710269026 }, { "T": 16, "arm": "both", - "acc": 0.8021428571428572, - "syn_per_inference": 2416293.149350649, + "acc": 0.6885714285714286, + "syn_per_inference": 2556422.022727273, "dense_per_inference": 19628032.0, - "event_fraction_of_dense": 0.12310419859467568 + "event_fraction_of_dense": 0.13024342036569295 }, { "T": 25, "arm": "raw", - "acc": 0.8671428571428571, - "syn_per_inference": 2564796.465909091, + "acc": 0.8892857142857142, + "syn_per_inference": 2546046.7800324676, "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.0836288497074907 + "event_fraction_of_dense": 0.08301748943657618 }, { "T": 25, "arm": "thresh", - "acc": 0.9185714285714286, - "syn_per_inference": 2248590.5771103897, + "acc": 0.9214285714285714, + "syn_per_inference": 2230110.1696428573, "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.0733185053575748 + "event_fraction_of_dense": 0.07271592529355102 }, { "T": 25, "arm": "ftbc", - "acc": 0.8357142857142857, - "syn_per_inference": 2893416.010551948, + "acc": 0.7728571428571429, + "syn_per_inference": 3055456.0194805195, "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.09434395902519656 + "event_fraction_of_dense": 0.09962750480881284 }, { "T": 25, "arm": "both", - "acc": 0.8971428571428571, - "syn_per_inference": 2565715.890422078, + "acc": 0.8035714285714286, + "syn_per_inference": 2718618.5576298703, "dense_per_inference": 30668800.0, - "event_fraction_of_dense": 0.08365882885610386 + "event_fraction_of_dense": 0.08864443857046478 }, { "T": 50, "arm": "raw", - "acc": 0.9271428571428572, - "syn_per_inference": 2920697.4196428573, + "acc": 0.9285714285714286, + "syn_per_inference": 2902600.2816558443, "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.04761675415475756 + "event_fraction_of_dense": 0.047321712646987237 }, { "T": 50, "arm": "thresh", - "acc": 0.9357142857142857, - "syn_per_inference": 2432894.0706168828, + "acc": 0.9428571428571428, + "syn_per_inference": 2409330.423701299, "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.03966399191714189 + "event_fraction_of_dense": 0.03927982874617362 }, { "T": 50, "arm": "ftbc", - "acc": 0.925, - "syn_per_inference": 3274119.156655844, + "acc": 0.9007142857142857, + "syn_per_inference": 3497088.7767857146, "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.053378664255788355 + "event_fraction_of_dense": 0.05701378561902837 }, { "T": 50, "arm": "both", - "acc": 0.9328571428571428, - "syn_per_inference": 2782566.975649351, + "acc": 0.8971428571428571, + "syn_per_inference": 2966595.8733766233, "dense_per_inference": 61337600.0, - "event_fraction_of_dense": 0.04536478400930833 + "event_fraction_of_dense": 0.04836504645399597 }, { "T": 100, "arm": "raw", - "acc": 0.9407142857142857, - "syn_per_inference": 3276270.607142857, + "acc": 0.9442857142857143, + "syn_per_inference": 3261141.1704545454, "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.026706869906410236 + "event_fraction_of_dense": 0.026583540686744716 }, { "T": 100, "arm": "thresh", - "acc": 0.915, - "syn_per_inference": 2706793.6566558443, + "acc": 0.9378571428571428, + "syn_per_inference": 2675097.6079545454, "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.022064717698897937 + "event_fraction_of_dense": 0.021806343971353177 }, { "T": 100, "arm": "ftbc", - "acc": 0.9428571428571428, - "syn_per_inference": 3695140.096590909, + "acc": 0.935, + "syn_per_inference": 3939535.5738636362, "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.030121329303648244 + "event_fraction_of_dense": 0.03211354514900841 }, { "T": 100, "arm": "both", "acc": 0.9235714285714286, - "syn_per_inference": 3080125.265422078, + "syn_per_inference": 3268745.5649350653, "dense_per_inference": 122675200.0, - "event_fraction_of_dense": 0.025107970196275024 + "event_fraction_of_dense": 0.026645528720842235 } ], "calibration_reference": "same network at full T (NOT a source ANN)" @@ -3022,7 +2547,7 @@ "decision_margin": 2.0, "export": false, "seed": 1234, - "hub_dir": "/kaggle/working/hub/opt03_ftbc_threshold_balance/ftbc_ticks_4", + "hub_dir": "/kaggle/working/hub/opt03_ftbc_threshold_balance/calib_batches_32", "repo_id": "UWU-R-13/SSVEP-SNN", "push_hf": false, "keep_epoch_weights": 1, @@ -3035,9 +2560,9 @@ "bench_train_steps": 20, "calibrate_thresh": true, "calib_percentile": 99.9, - "calib_batches": 8, + "calib_batches": 32, "ftbc": true, - "ftbc_target_ticks": 4, + "ftbc_target_ticks": 8, "ftbc_ref_ticks": 0, "ftbc_lr": 1.0, "t_sweep": "4,8,16,25,50,100", @@ -3045,263 +2570,273 @@ } }, "zip": { - "name": "ftbc_ticks_4.zip", + "name": "calib_batches_32.zip", "files": 81, - "bytes": 12252531, - "MB": 12.3, - "sha256": "39894bf766dfc01050bbdf50b22610539beef55eb6c6cb000c5313ad3481fe44" + "bytes": 12248653, + "MB": 12.2, + "sha256": "9359402eddfde164b345f308da096b3218c7dd55bd14b4dbd1e9a946ac98d5e9" } }, { - "key": "opt04_cudagraph_unroll/graph_warmup_1", - "tag": "graph_warmup_1", - "script": "opt04_cudagraph_unroll.py", - "hf_folder": "applied/opt04_cudagraph_unroll", - "phase": 4, + "key": "opt03_ftbc_threshold_balance/ftbc_lr_0.5", + "tag": "ftbc_lr_0.5", + "script": "opt03_ftbc_threshold_balance.py", + "hf_folder": "applied/opt03_ftbc_threshold_balance", + "phase": 7, "status": "ok", - "duration_s": 502.8, + "duration_s": 386.3, "optimization_summary": { - "optimization": "cudagraph_static_unroll", - "research_section": "2. Temporal-dimension reduction / 5. OS & runtime", - "reference": "CUDA Graphs static capture/replay applied to the unrolled T-tick event-driven inference loop", - "script": "opt04_cudagraph_unroll.py", + "optimization": "ftbc_threshold_balance", + "research_section": "2. Temporal-Dimension Reduction (threshold balancing + FTBC)", + "reference": "Rueckauer et al. arXiv:1612.04052; Sengupta et al. arXiv:1802.02627; FTBC: Forward Temporal Bias Correction, ECCV 2024", + "script": "opt03_ftbc_threshold_balance.py", "baseline_mode": false, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.9464285714285714, - "test_target_acc": 0.9464285714285714, - "best_val_acc": 0.9442857142857143 + "test_acc": 0.9328571428571428, + "test_target_acc": 0.9328571428571428, + "best_val_acc": 0.945 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 3261657.1274350653, + "syn_ops_per_inference": 3251424.406655844, "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.026587746565198713, - "syn_ops_per_inference_dense_fanout": 64838274.913961045, + "event_fraction_of_dense": 0.026504333448454487, + "syn_ops_per_inference_dense_fanout": 64828042.19318182, "weight_sparsity": 0.7324707846410685, - "effective_ticks": 12.156428571428572, + "effective_ticks": 12.322857142857142, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 94.66080665588379, - "infer_ms_per_sample": 0.6402868777513504, - "peak_vram_mb": 2804.747776 + "train_ms_per_step": 96.83538014996884, + "infer_ms_per_sample": 0.6346282890626753, + "peak_vram_mb": 2825.357824 }, "optimization_specific": { - "graph_enabled": true, - "event_capacity_scan": { - "cap_scan": 98901, - "batch_size_scan": 64, - "n_batches_scanned": 20, - "density_per_sample": 1545.328125, - "per_layer_caps": [ - 98901, - 7665, - 3579, - 3350 - ] - }, - "capacity": 98901, - "overflow_ticks_frac": 0.0, - "graph_vs_eager_pred_agreement": 1.0, - "graph_capture_ms": 240.91601371765137, - "graphed_acc": 0.9464285714285714, - "kernel_launches_eager": 400, - "kernel_launches_graphed": 2, - "launch_reduction_x": 200.0, - "bench_batches": { - "1": { - "ms_per_sample_eager": 165.45840740203857, - "ms_per_sample_graphed": 32.71412372589111, - "throughput_eager_samples_per_s": 6.0438149726060955, - "throughput_graphed_samples_per_s": 30.567836949536403, - "speedup_x": 5.057705619395483, - "capacity": 1546 - }, - "8": { - "ms_per_sample_eager": 21.272578239440918, - "ms_per_sample_graphed": 12.35912024974823, - "throughput_eager_samples_per_s": 47.00887634513087, - "throughput_graphed_samples_per_s": 80.91190795075978, - "speedup_x": 1.721204892384979, - "capacity": 12363 - }, - "32": { - "ms_per_sample_eager": 6.193430125713348, - "ms_per_sample_graphed": 10.724300295114517, - "throughput_eager_samples_per_s": 161.46141632377288, - "throughput_graphed_samples_per_s": 93.24617667182936, - "speedup_x": 0.5775136797068972, - "capacity": 49451 - }, - "128": { - "ms_per_sample_eager": 2.0725979655981064, - "ms_per_sample_graphed": 9.626770876348019, - "throughput_eager_samples_per_s": 482.4862402638815, - "throughput_graphed_samples_per_s": 103.87699186410437, - "speedup_x": 0.21529524200999375, - "capacity": 197802 - } + "calibrate_thresh": true, + "ftbc": true, + "calib_percentile": 99.9, + "calib_batches": 8, + "ftbc_target_ticks": 8, + "ftbc_ref_ticks": 100, + "trained_T": 100, + "thresh_before": [ + 1.0, + 1.0, + 1.0, + 1.0 + ], + "thresh_after": [ + 2.332695722579956, + 0.859599232673645, + 1.0915957689285278, + 2.6890203952789307 + ], + "min_ticks_within_1pct_of_full": null, + "min_ticks_within_1pct_per_arm": { + "raw": 100, + "thresh": null, + "ftbc": null, + "both": null }, - "speedup_x_at_batch1": 5.057705619395483 - }, - "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/opt04_cudagraph_unroll/graph_warmup_1", - "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, - "event_capacity": 0, - "graph_warmup": 1, - "bench_batches": "1,8,32,128", - "sampling_rate": 250.0 - } - }, - "zip": { - "name": "graph_warmup_1.zip", - "files": 81, - "bytes": 12255071, - "MB": 12.3, - "sha256": "99eb4b6cb16094297a01e72d5fd80067bcda54fd85bd8612d7e8ae8c1bd8d43e" - } - }, - { - "key": "opt04_cudagraph_unroll/graph_warmup_10", - "tag": "graph_warmup_10", - "script": "opt04_cudagraph_unroll.py", - "hf_folder": "applied/opt04_cudagraph_unroll", - "phase": 4, - "status": "ok", - "duration_s": 527.5, - "optimization_summary": { - "optimization": "cudagraph_static_unroll", - "research_section": "2. Temporal-dimension reduction / 5. OS & runtime", - "reference": "CUDA Graphs static capture/replay applied to the unrolled T-tick event-driven inference loop", - "script": "opt04_cudagraph_unroll.py", - "baseline_mode": false, - "method": "harmonic_matched", - "accuracy": { - "test_acc": 0.9435714285714286, - "test_target_acc": 0.9435714285714286, - "best_val_acc": 0.9485714285714286 - }, - "efficiency": { - "spikes_per_inference": null, - "syn_ops_per_inference": 3273295.596590909, - "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.026682618790031802, - "syn_ops_per_inference_dense_fanout": 64849913.383116886, - "weight_sparsity": 0.7324707846410685, - "effective_ticks": 12.09142857142857, - "num_ticks": 100, - "membrane_bytes_per_inference": 451200, - "weight_bytes": 4907008, - "input_raster_bytes": null, - "train_ms_per_step": 93.29218864440918, - "infer_ms_per_sample": 0.6321516633033752, - "peak_vram_mb": 2803.89888 - }, - "optimization_specific": { - "graph_enabled": true, - "event_capacity_scan": { - "cap_scan": 98901, - "batch_size_scan": 64, - "n_batches_scanned": 20, - "density_per_sample": 1545.328125, - "per_layer_caps": [ - 98901, - 7747, - 3483, - 3303 - ] - }, - "capacity": 98901, - "overflow_ticks_frac": 0.0, - "graph_vs_eager_pred_agreement": 1.0, - "graph_capture_ms": 232.3627471923828, - "graphed_acc": 0.9435714285714286, - "kernel_launches_eager": 400, - "kernel_launches_graphed": 2, - "launch_reduction_x": 200.0, - "bench_batches": { - "1": { - "ms_per_sample_eager": 162.28576183319092, - "ms_per_sample_graphed": 32.69205570220947, - "throughput_eager_samples_per_s": 6.161970025613662, - "throughput_graphed_samples_per_s": 30.58847106798535, - "speedup_x": 4.964073330580522, - "capacity": 1546 - }, - "8": { - "ms_per_sample_eager": 20.896499156951904, - "ms_per_sample_graphed": 12.355339527130127, - "throughput_eager_samples_per_s": 47.85490586193799, - "throughput_graphed_samples_per_s": 80.93666692074126, - "speedup_x": 1.6912929920757669, - "capacity": 12363 - }, - "32": { - "ms_per_sample_eager": 6.037041991949081, - "ms_per_sample_graphed": 10.774523615837097, - "throughput_eager_samples_per_s": 165.6440358264174, - "throughput_graphed_samples_per_s": 92.81152797606148, - "speedup_x": 0.5603070917284402, - "capacity": 49451 - }, - "128": { - "ms_per_sample_eager": 2.052377350628376, - "ms_per_sample_graphed": 9.65143520385027, - "throughput_eager_samples_per_s": 487.23983418245683, - "throughput_graphed_samples_per_s": 103.61153329828787, - "speedup_x": 0.21264996420528384, - "capacity": 197802 + "speedup_at_min_ticks": null, + "full_T_acc": 0.95, + "t_sweep_rows": [ + { + "T": 4, + "arm": "raw", + "acc": 0.2671428571428571, + "syn_per_inference": 1861908.2905844154, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.3794386091452093 + }, + { + "T": 4, + "arm": "thresh", + "acc": 0.4085714285714286, + "syn_per_inference": 1822856.6185064935, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.37148026220998487 + }, + { + "T": 4, + "arm": "ftbc", + "acc": 0.31785714285714284, + "syn_per_inference": 1921884.1883116884, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.3916611076060378 + }, + { + "T": 4, + "arm": "both", + "acc": 0.43785714285714283, + "syn_per_inference": 1887901.7792207792, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.3847358266423815 + }, + { + "T": 8, + "arm": "raw", + "acc": 0.5807142857142857, + "syn_per_inference": 2040732.888798701, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.20794065230775058 + }, + { + "T": 8, + "arm": "thresh", + "acc": 0.7564285714285715, + "syn_per_inference": 1946398.6477272727, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.19832845674260902 + }, + { + "T": 8, + "arm": "ftbc", + "acc": 0.5457142857142857, + "syn_per_inference": 2210247.6266233767, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.22521337102195235 + }, + { + "T": 8, + "arm": "both", + "acc": 0.7142857142857143, + "syn_per_inference": 2123275.1217532465, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.2163513001969068 + }, + { + "T": 16, + "arm": "raw", + "acc": 0.8042857142857143, + "syn_per_inference": 2325398.8141233767, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.11847335556225794 + }, + { + "T": 16, + "arm": "thresh", + "acc": 0.8992857142857142, + "syn_per_inference": 2118264.750811688, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.10792038401056653 + }, + { + "T": 16, + "arm": "ftbc", + "acc": 0.7342857142857143, + "syn_per_inference": 2572779.288961039, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.1310767828868956 + }, + { + "T": 16, + "arm": "both", + "acc": 0.8478571428571429, + "syn_per_inference": 2357532.7719155843, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.12011050175155534 + }, + { + "T": 25, + "arm": "raw", + "acc": 0.8764285714285714, + "syn_per_inference": 2543208.9926948054, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.08292495932983375 + }, + { + "T": 25, + "arm": "thresh", + "acc": 0.9242857142857143, + "syn_per_inference": 2236140.2930194805, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.07291254607351708 + }, + { + "T": 25, + "arm": "ftbc", + "acc": 0.8357142857142857, + "syn_per_inference": 2838940.3084415584, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.092567701000416 + }, + { + "T": 25, + "arm": "both", + "acc": 0.895, + "syn_per_inference": 2509213.547077922, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.0818164893011113 + }, + { + "T": 50, + "arm": "raw", + "acc": 0.9307142857142857, + "syn_per_inference": 2895740.404220779, + "dense_per_inference": 61337600.0, + "event_fraction_of_dense": 0.04720987459927971 + }, + { + "T": 50, + "arm": "thresh", + "acc": 0.9392857142857143, + "syn_per_inference": 2418345.2930194805, + "dense_per_inference": 61337600.0, + "event_fraction_of_dense": 0.03942680008705069 + }, + { + "T": 50, + "arm": "ftbc", + "acc": 0.9214285714285714, + "syn_per_inference": 3263736.2483766233, + "dense_per_inference": 61337600.0, + "event_fraction_of_dense": 0.053209389483393925 + }, + { + "T": 50, + "arm": "both", + "acc": 0.9307142857142857, + "syn_per_inference": 2744258.13474026, + "dense_per_inference": 61337600.0, + "event_fraction_of_dense": 0.044740226789771034 + }, + { + "T": 100, + "arm": "raw", + "acc": 0.95, + "syn_per_inference": 3251424.2077922076, + "dense_per_inference": 122675200.0, + "event_fraction_of_dense": 0.026504331827396307 + }, + { + "T": 100, + "arm": "thresh", + "acc": 0.9328571428571428, + "syn_per_inference": 2685684.0251623373, + "dense_per_inference": 122675200.0, + "event_fraction_of_dense": 0.0218926402823255 + }, + { + "T": 100, + "arm": "ftbc", + "acc": 0.9378571428571428, + "syn_per_inference": 3688635.3920454546, + "dense_per_inference": 122675200.0, + "event_fraction_of_dense": 0.030068305509552497 + }, + { + "T": 100, + "arm": "both", + "acc": 0.925, + "syn_per_inference": 3041737.727272727, + "dense_per_inference": 122675200.0, + "event_fraction_of_dense": 0.024795050077544012 } - }, - "speedup_x_at_batch1": 4.964073330580522 + ], + "calibration_reference": "same network at full T (NOT a source ANN)" }, "config": { "method": "harmonic_matched", @@ -3341,7 +2876,7 @@ "decision_margin": 2.0, "export": false, "seed": 1234, - "hub_dir": "/kaggle/working/hub/opt04_cudagraph_unroll/graph_warmup_10", + "hub_dir": "/kaggle/working/hub/opt03_ftbc_threshold_balance/ftbc_lr_0.5", "repo_id": "UWU-R-13/SSVEP-SNN", "push_hf": false, "keep_epoch_weights": 1, @@ -3352,980 +2887,285 @@ "bench_warmup": 10, "bench_iters": 50, "bench_train_steps": 20, - "event_capacity": 0, - "graph_warmup": 10, - "bench_batches": "1,8,32,128", + "calibrate_thresh": true, + "calib_percentile": 99.9, + "calib_batches": 8, + "ftbc": true, + "ftbc_target_ticks": 8, + "ftbc_ref_ticks": 0, + "ftbc_lr": 0.5, + "t_sweep": "4,8,16,25,50,100", "sampling_rate": 250.0 } }, "zip": { - "name": "graph_warmup_10.zip", + "name": "ftbc_lr_0.5.zip", "files": 81, - "bytes": 12254306, + "bytes": 12251677, "MB": 12.3, - "sha256": "30c304cd94c9123309fe255a127715a8b0a4ba0b1b1ac76f702132aa836c19e0" + "sha256": "77804b842073b38ff69c86ae0358cafc315ed019d7dc45240ea65afc1daf7137" } }, { - "key": "opt05_bitpack_popcount/spike_reg_1e-3", - "tag": "spike_reg_1e-3", - "script": "opt05_bitpack_popcount.py", - "hf_folder": "applied/opt05_bitpack_popcount", - "phase": 4, - "status": "failed", - "duration_s": 287.7, - "optimization_summary": null, - "zip": { - "name": "FAILED_spike_reg_1e-3.zip", - "files": 76, - "bytes": 10440792, - "MB": 10.4, - "sha256": "85cce53a47439464a1965790733fbfb484763f99523930f88c8d1fc044d939e8" - } - }, - { - "key": "opt05_bitpack_popcount/spike_reg_1e-4", - "tag": "spike_reg_1e-4", - "script": "opt05_bitpack_popcount.py", - "hf_folder": "applied/opt05_bitpack_popcount", - "phase": 4, - "status": "failed", - "duration_s": 186.6, - "optimization_summary": null, - "zip": { - "name": "FAILED_spike_reg_1e-4.zip", - "files": 76, - "bytes": 10434924, - "MB": 10.4, - "sha256": "6c9a949934d24d0ce87fe535a6b2cb1ef4834ca0788da105640c29866e448dac" - } - }, - { - "key": "opt05_bitpack_popcount/spike_reg_5e-3", - "tag": "spike_reg_5e-3", - "script": "opt05_bitpack_popcount.py", - "hf_folder": "applied/opt05_bitpack_popcount", - "phase": 4, - "status": "failed", - "duration_s": 186.7, - "optimization_summary": null, - "zip": { - "name": "FAILED_spike_reg_5e-3.zip", - "files": 76, - "bytes": 10442731, - "MB": 10.4, - "sha256": "95c5bab1e91da3a254b766120879cd9fcbbb53b25ef890f527af212cee48d560" - } - }, - { - "key": "opt06_uticket_prune/prune_rate_0.2", - "tag": "prune_rate_0.2", - "script": "opt06_uticket_prune.py", - "hf_folder": "applied/opt06_uticket_prune", - "phase": 4, + "key": "opt03_ftbc_threshold_balance/ftbc_lr_2.0", + "tag": "ftbc_lr_2.0", + "script": "opt03_ftbc_threshold_balance.py", + "hf_folder": "applied/opt03_ftbc_threshold_balance", + "phase": 7, "status": "ok", - "duration_s": 328.9, + "duration_s": 387.4, "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", + "optimization": "ftbc_threshold_balance", + "research_section": "2. Temporal-Dimension Reduction (threshold balancing + FTBC)", + "reference": "Rueckauer et al. arXiv:1612.04052; Sengupta et al. arXiv:1802.02627; FTBC: Forward Temporal Bias Correction, ECCV 2024", + "script": "opt03_ftbc_threshold_balance.py", "baseline_mode": false, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.945, - "test_target_acc": 0.945, - "best_val_acc": 0.9435714285714286 + "test_acc": 0.925, + "test_target_acc": 0.925, + "best_val_acc": 0.9442857142857143 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 1219436.5718344154, + "syn_ops_per_inference": 3270530.453733766, "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.009940367505693208, - "syn_ops_per_inference_dense_fanout": 64956449.21347403, - "weight_sparsity": 0.9065108514190318, - "effective_ticks": 12.582142857142857, + "event_fraction_of_dense": 0.026660078432590825, + "syn_ops_per_inference_dense_fanout": 64847148.240259744, + "weight_sparsity": 0.7324707846410685, + "effective_ticks": 12.499285714285714, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 98.27910679996421, - "infer_ms_per_sample": 0.6430302793751252, - "peak_vram_mb": 2836.18048, - "weight_bytes_nonzero": 421308 + "train_ms_per_step": 97.14889454999138, + "infer_ms_per_sample": 0.6363494856253737, + "peak_vram_mb": 2825.317888 }, "optimization_specific": { - "pruning_enabled": true, - "balance_enabled": true, - "rounds": 5, - "final_sparsity": 0.9141414141414141, - "nnz_per_layer": { - "layer0": 7680, - "layer1": 53760, - "layer2": 43008 - }, - "pe_stats_per_layer": { - "layer0": { - "mean_nnz": 24.0, - "max_nnz": 24.0, - "min_nnz": 24.0, - "total_nnz": 7680, - "numel": 921600, - "sparsity": 0.9916666666666667, - "utilization": 1.0 - }, - "layer1": { - "mean_nnz": 105.0, - "max_nnz": 105.0, - "min_nnz": 105.0, - "total_nnz": 53760, - "numel": 163840, - "sparsity": 0.671875, - "utilization": 1.0 - }, - "layer2": { - "mean_nnz": 168.0, - "max_nnz": 168.0, - "min_nnz": 168.0, - "total_nnz": 43008, - "numel": 131072, - "sparsity": 0.671875, - "utilization": 1.0 - } - }, - "pe_utilization_final": 1.0, - "pe_utilization_lth": 0.8322065610975112, - "pe_utilization_uticket": 1.0, - "latency_proxy_dense": 3712, - "latency_proxy_final": 297, - "latency_reduction_frac": 0.919989224137931, - "rounds_history": [ - { - "round": 1, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 57.6, - "max_nnz": 66.0, - "min_nnz": 46.0, - "total_nnz": 18432, - "numel": 921600, - "sparsity": 0.98, - "utilization": 0.8727272727272728 - }, - "uticket": { - "mean_nnz": 58.0, - "max_nnz": 58.0, - "min_nnz": 58.0, - "total_nnz": 18560, - "numel": 921600, - "sparsity": 0.9798611111111111, - "utilization": 1.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 256.0, - "max_nnz": 277.0, - "min_nnz": 240.0, - "total_nnz": 131072, - "numel": 163840, - "sparsity": 0.19999999999999996, - "utilization": 0.924187725631769 - }, - "uticket": { - "mean_nnz": 256.0, - "max_nnz": 256.0, - "min_nnz": 256.0, - "total_nnz": 131072, - "numel": 163840, - "sparsity": 0.19999999999999996, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 409.6015625, - "max_nnz": 434.0, - "min_nnz": 362.0, - "total_nnz": 104858, - "numel": 131072, - "sparsity": 0.1999969482421875, - "utilization": 0.9437824020737328 - }, - "uticket": { - "mean_nnz": 410.0, - "max_nnz": 410.0, - "min_nnz": 410.0, - "total_nnz": 104960, - "numel": 131072, - "sparsity": 0.19921875, - "utilization": 1.0 - } - } - }, - "latency_proxy": 724, - "sparsity": 0.790719696969697 - }, - { - "round": 2, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 46.400000000000006, - "max_nnz": 57.0, - "min_nnz": 35.0, - "total_nnz": 14848, - "numel": 921600, - "sparsity": 0.9838888888888889, - "utilization": 0.8140350877192983 - }, - "uticket": { - "mean_nnz": 46.0, - "max_nnz": 46.0, - "min_nnz": 46.0, - "total_nnz": 14720, - "numel": 921600, - "sparsity": 0.9840277777777777, - "utilization": 1.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 204.80078125, - "max_nnz": 225.0, - "min_nnz": 171.0, - "total_nnz": 104858, - "numel": 163840, - "sparsity": 0.35999755859375004, - "utilization": 0.9102256944444445 - }, - "uticket": { - "mean_nnz": 205.0, - "max_nnz": 205.0, - "min_nnz": 205.0, - "total_nnz": 104960, - "numel": 163840, - "sparsity": 0.359375, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 328.0, - "max_nnz": 352.0, - "min_nnz": 301.0, - "total_nnz": 83968, - "numel": 131072, - "sparsity": 0.359375, - "utilization": 0.9318181818181818 - }, - "uticket": { - "mean_nnz": 328.0, - "max_nnz": 328.0, - "min_nnz": 328.0, - "total_nnz": 83968, - "numel": 131072, - "sparsity": 0.359375, - "utilization": 1.0 - } - } - }, - "latency_proxy": 579, - "sparsity": 0.8325968013468014 - }, - { - "round": 3, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 36.800000000000004, - "max_nnz": 45.0, - "min_nnz": 27.0, - "total_nnz": 11776, - "numel": 921600, - "sparsity": 0.9872222222222222, - "utilization": 0.8177777777777778 - }, - "uticket": { - "mean_nnz": 37.0, - "max_nnz": 37.0, - "min_nnz": 37.0, - "total_nnz": 11840, - "numel": 921600, - "sparsity": 0.9871527777777778, - "utilization": 1.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 164.0, - "max_nnz": 187.0, - "min_nnz": 122.0, - "total_nnz": 83968, - "numel": 163840, - "sparsity": 0.48750000000000004, - "utilization": 0.8770053475935828 - }, - "uticket": { - "mean_nnz": 164.0, - "max_nnz": 164.0, - "min_nnz": 164.0, - "total_nnz": 83968, - "numel": 163840, - "sparsity": 0.48750000000000004, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 262.3984375, - "max_nnz": 282.0, - "min_nnz": 237.0, - "total_nnz": 67174, - "numel": 131072, - "sparsity": 0.4875030517578125, - "utilization": 0.9304909131205674 - }, - "uticket": { - "mean_nnz": 262.0, - "max_nnz": 262.0, - "min_nnz": 262.0, - "total_nnz": 67072, - "numel": 131072, - "sparsity": 0.48828125, - "utilization": 1.0 - } - } - }, - "latency_proxy": 463, - "sparsity": 0.8661090067340067 - }, - { - "round": 4, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 29.6, - "max_nnz": 37.0, - "min_nnz": 20.0, - "total_nnz": 9472, - "numel": 921600, - "sparsity": 0.9897222222222222, - "utilization": 0.8 - }, - "uticket": { - "mean_nnz": 30.0, - "max_nnz": 30.0, - "min_nnz": 30.0, - "total_nnz": 9600, - "numel": 921600, - "sparsity": 0.9895833333333334, - "utilization": 1.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 131.19921875, - "max_nnz": 155.0, - "min_nnz": 75.0, - "total_nnz": 67174, - "numel": 163840, - "sparsity": 0.59000244140625, - "utilization": 0.8464465725806452 - }, - "uticket": { - "mean_nnz": 131.0, - "max_nnz": 131.0, - "min_nnz": 131.0, - "total_nnz": 67072, - "numel": 163840, - "sparsity": 0.590625, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 209.6015625, - "max_nnz": 225.0, - "min_nnz": 176.0, - "total_nnz": 53658, - "numel": 131072, - "sparsity": 0.5906219482421875, - "utilization": 0.9315625 - }, - "uticket": { - "mean_nnz": 210.0, - "max_nnz": 210.0, - "min_nnz": 210.0, - "total_nnz": 53760, - "numel": 131072, - "sparsity": 0.58984375, - "utilization": 1.0 - } - } - }, - "latency_proxy": 371, - "sparsity": 0.8927819865319866 - }, - { - "round": 5, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 24.0, - "max_nnz": 30.0, - "min_nnz": 14.0, - "total_nnz": 7680, - "numel": 921600, - "sparsity": 0.9916666666666667, - "utilization": 0.8 - }, - "uticket": { - "mean_nnz": 24.0, - "max_nnz": 24.0, - "min_nnz": 24.0, - "total_nnz": 7680, - "numel": 921600, - "sparsity": 0.9916666666666667, - "utilization": 1.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 104.80078125, - "max_nnz": 129.0, - "min_nnz": 45.0, - "total_nnz": 53658, - "numel": 163840, - "sparsity": 0.67249755859375, - "utilization": 0.8124091569767442 - }, - "uticket": { - "mean_nnz": 105.0, - "max_nnz": 105.0, - "min_nnz": 105.0, - "total_nnz": 53760, - "numel": 163840, - "sparsity": 0.671875, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 168.0, - "max_nnz": 190.0, - "min_nnz": 134.0, - "total_nnz": 43008, - "numel": 131072, - "sparsity": 0.671875, - "utilization": 0.8842105263157894 - }, - "uticket": { - "mean_nnz": 168.0, - "max_nnz": 168.0, - "min_nnz": 168.0, - "total_nnz": 43008, - "numel": 131072, - "sparsity": 0.671875, - "utilization": 1.0 - } - } - }, - "latency_proxy": 297, - "sparsity": 0.9141414141414141 - } + "calibrate_thresh": true, + "ftbc": true, + "calib_percentile": 99.9, + "calib_batches": 8, + "ftbc_target_ticks": 8, + "ftbc_ref_ticks": 100, + "trained_T": 100, + "thresh_before": [ + 1.0, + 1.0, + 1.0, + 1.0 ], - "latency_proxy_lth": 349, - "latency_reduction_vs_lth_frac": 0.14899713467048714 - }, - "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/prune_rate_0.2", - "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.2, - "rewind_epoch": 1, - "balance": true, - "balance_iters": 2, - "prune_readout": false, - "sampling_rate": 250.0 - } - }, - "zip": { - "name": "prune_rate_0.2.zip", - "files": 81, - "bytes": 9962974, - "MB": 10.0, - "sha256": "b459b14d5c4e25097771f24d9136976c7b538455e508aac3dfa75889f462632d" - } - }, - { - "key": "opt06_uticket_prune/prune_rate_0.3", - "tag": "prune_rate_0.3", - "script": "opt06_uticket_prune.py", - "hf_folder": "applied/opt06_uticket_prune", - "phase": 4, - "status": "ok", - "duration_s": 330.0, - "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.9242857142857143, - "test_target_acc": 0.9242857142857143, - "best_val_acc": 0.9421428571428572 - }, - "efficiency": { - "spikes_per_inference": null, - "syn_ops_per_inference": 692787.4597199676, - "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.00564733099860418, - "syn_ops_per_inference_dense_fanout": 65019838.74512987, - "weight_sparsity": 0.9480383973288815, - "effective_ticks": 12.962142857142856, - "num_ticks": 100, - "membrane_bytes_per_inference": 451200, - "weight_bytes": 4907008, - "input_raster_bytes": null, - "train_ms_per_step": 99.30589320001673, - "infer_ms_per_sample": 0.6449458206247982, - "peak_vram_mb": 2836.187648, - "weight_bytes_nonzero": 215817 - }, - "optimization_specific": { - "pruning_enabled": true, - "balance_enabled": true, - "rounds": 5, - "final_sparsity": 0.9560185185185185, - "nnz_per_layer": { - "layer0": 3840, - "layer1": 27648, - "layer2": 22016 - }, - "pe_stats_per_layer": { - "layer0": { - "mean_nnz": 12.0, - "max_nnz": 12.0, - "min_nnz": 12.0, - "total_nnz": 3840, - "numel": 921600, - "sparsity": 0.9958333333333333, - "utilization": 1.0 - }, - "layer1": { - "mean_nnz": 54.0, - "max_nnz": 54.0, - "min_nnz": 54.0, - "total_nnz": 27648, - "numel": 163840, - "sparsity": 0.83125, - "utilization": 1.0 - }, - "layer2": { - "mean_nnz": 86.0, - "max_nnz": 86.0, - "min_nnz": 86.0, - "total_nnz": 22016, - "numel": 131072, - "sparsity": 0.83203125, - "utilization": 1.0 - } + "thresh_after": [ + 2.366356134414673, + 0.8545898795127869, + 1.1143375635147095, + 2.678464412689209 + ], + "min_ticks_within_1pct_of_full": null, + "min_ticks_within_1pct_per_arm": { + "raw": 100, + "thresh": 50, + "ftbc": null, + "both": null }, - "pe_utilization_final": 1.0, - "pe_utilization_lth": 0.7511162106015652, - "pe_utilization_uticket": 1.0, - "latency_proxy_dense": 3712, - "latency_proxy_final": 152, - "latency_reduction_frac": 0.959051724137931, - "rounds_history": [ - { - "round": 1, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 50.400000000000006, - "max_nnz": 61.0, - "min_nnz": 35.0, - "total_nnz": 16128, - "numel": 921600, - "sparsity": 0.9825, - "utilization": 0.8262295081967214 - }, - "uticket": { - "mean_nnz": 50.0, - "max_nnz": 50.0, - "min_nnz": 50.0, - "total_nnz": 16000, - "numel": 921600, - "sparsity": 0.9826388888888888, - "utilization": 1.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 224.0, - "max_nnz": 253.0, - "min_nnz": 192.0, - "total_nnz": 114688, - "numel": 163840, - "sparsity": 0.30000000000000004, - "utilization": 0.8853754940711462 - }, - "uticket": { - "mean_nnz": 224.0, - "max_nnz": 224.0, - "min_nnz": 224.0, - "total_nnz": 114688, - "numel": 163840, - "sparsity": 0.30000000000000004, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 358.3984375, - "max_nnz": 386.0, - "min_nnz": 333.0, - "total_nnz": 91750, - "numel": 131072, - "sparsity": 0.3000030517578125, - "utilization": 0.9284933613989638 - }, - "uticket": { - "mean_nnz": 358.0, - "max_nnz": 358.0, - "min_nnz": 358.0, - "total_nnz": 91648, - "numel": 131072, - "sparsity": 0.30078125, - "utilization": 1.0 - } - } - }, - "latency_proxy": 632, - "sparsity": 0.8172348484848485 - }, - { - "round": 2, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 35.0, - "max_nnz": 46.0, - "min_nnz": 24.0, - "total_nnz": 11200, - "numel": 921600, - "sparsity": 0.9878472222222222, - "utilization": 0.7608695652173914 - }, - "uticket": { - "mean_nnz": 35.0, - "max_nnz": 35.0, - "min_nnz": 35.0, - "total_nnz": 11200, - "numel": 921600, - "sparsity": 0.9878472222222222, - "utilization": 1.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 156.80078125, - "max_nnz": 178.0, - "min_nnz": 97.0, - "total_nnz": 80282, - "numel": 163840, - "sparsity": 0.50999755859375, - "utilization": 0.8809032654494382 - }, - "uticket": { - "mean_nnz": 157.0, - "max_nnz": 157.0, - "min_nnz": 157.0, - "total_nnz": 80384, - "numel": 163840, - "sparsity": 0.509375, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 250.6015625, - "max_nnz": 283.0, - "min_nnz": 202.0, - "total_nnz": 64154, - "numel": 131072, - "sparsity": 0.5105438232421875, - "utilization": 0.8855178886925795 - }, - "uticket": { - "mean_nnz": 251.0, - "max_nnz": 251.0, - "min_nnz": 251.0, - "total_nnz": 64256, - "numel": 131072, - "sparsity": 0.509765625, - "utilization": 1.0 - } - } - }, - "latency_proxy": 443, - "sparsity": 0.8718960437710438 - }, - { - "round": 3, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 24.5, - "max_nnz": 34.0, - "min_nnz": 15.0, - "total_nnz": 7840, - "numel": 921600, - "sparsity": 0.9914930555555556, - "utilization": 0.7205882352941176 - }, - "uticket": { - "mean_nnz": 24.0, - "max_nnz": 24.0, - "min_nnz": 24.0, - "total_nnz": 7680, - "numel": 921600, - "sparsity": 0.9916666666666667, - "utilization": 1.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 109.900390625, - "max_nnz": 137.0, - "min_nnz": 60.0, - "total_nnz": 56269, - "numel": 163840, - "sparsity": 0.656561279296875, - "utilization": 0.8021926322992701 - }, - "uticket": { - "mean_nnz": 110.0, - "max_nnz": 110.0, - "min_nnz": 110.0, - "total_nnz": 56320, - "numel": 163840, - "sparsity": 0.65625, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 175.69921875, - "max_nnz": 201.0, - "min_nnz": 143.0, - "total_nnz": 44979, - "numel": 131072, - "sparsity": 0.6568374633789062, - "utilization": 0.8741254664179104 - }, - "uticket": { - "mean_nnz": 176.0, - "max_nnz": 176.0, - "min_nnz": 176.0, - "total_nnz": 45056, - "numel": 131072, - "sparsity": 0.65625, - "utilization": 1.0 - } - } - }, - "latency_proxy": 310, - "sparsity": 0.9103535353535354 - }, - { - "round": 4, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 16.8, - "max_nnz": 24.0, - "min_nnz": 8.0, - "total_nnz": 5376, - "numel": 921600, - "sparsity": 0.9941666666666666, - "utilization": 0.7000000000000001 - }, - "uticket": { - "mean_nnz": 17.0, - "max_nnz": 17.0, - "min_nnz": 17.0, - "total_nnz": 5440, - "numel": 921600, - "sparsity": 0.9940972222222222, - "utilization": 1.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 77.0, - "max_nnz": 100.0, - "min_nnz": 30.0, - "total_nnz": 39424, - "numel": 163840, - "sparsity": 0.759375, - "utilization": 0.77 - }, - "uticket": { - "mean_nnz": 77.0, - "max_nnz": 77.0, - "min_nnz": 77.0, - "total_nnz": 39424, - "numel": 163840, - "sparsity": 0.759375, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 123.19921875, - "max_nnz": 146.0, - "min_nnz": 101.0, - "total_nnz": 31539, - "numel": 131072, - "sparsity": 0.7593765258789062, - "utilization": 0.843830265410959 - }, - "uticket": { - "mean_nnz": 123.0, - "max_nnz": 123.0, - "min_nnz": 123.0, - "total_nnz": 31488, - "numel": 131072, - "sparsity": 0.759765625, - "utilization": 1.0 - } - } - }, - "latency_proxy": 217, - "sparsity": 0.9372369528619529 - }, - { - "round": 5, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 11.9, - "max_nnz": 17.0, - "min_nnz": 3.0, - "total_nnz": 3808, - "numel": 921600, - "sparsity": 0.9958680555555556, - "utilization": 0.7000000000000001 - }, - "uticket": { - "mean_nnz": 12.0, - "max_nnz": 12.0, - "min_nnz": 12.0, - "total_nnz": 3840, - "numel": 921600, - "sparsity": 0.9958333333333333, - "utilization": 1.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 53.900390625, - "max_nnz": 76.0, - "min_nnz": 6.0, - "total_nnz": 27597, - "numel": 163840, - "sparsity": 0.831561279296875, - "utilization": 0.709215666118421 - }, - "uticket": { - "mean_nnz": 54.0, - "max_nnz": 54.0, - "min_nnz": 54.0, - "total_nnz": 27648, - "numel": 163840, - "sparsity": 0.83125, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 86.1015625, - "max_nnz": 102.0, - "min_nnz": 62.0, - "total_nnz": 22042, - "numel": 131072, - "sparsity": 0.8318328857421875, - "utilization": 0.8441329656862745 - }, - "uticket": { - "mean_nnz": 86.0, - "max_nnz": 86.0, - "min_nnz": 86.0, - "total_nnz": 22016, - "numel": 131072, - "sparsity": 0.83203125, - "utilization": 1.0 - } - } - }, - "latency_proxy": 152, - "sparsity": 0.9560185185185185 + "speedup_at_min_ticks": null, + "full_T_acc": 0.9485714285714286, + "t_sweep_rows": [ + { + "T": 4, + "arm": "raw", + "acc": 0.25285714285714284, + "syn_per_inference": 1866740.6030844154, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.3804233869364826 + }, + { + "T": 4, + "arm": "thresh", + "acc": 0.3921428571428571, + "syn_per_inference": 1825928.9253246754, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.3721063681421908 + }, + { + "T": 4, + "arm": "ftbc", + "acc": 0.05071428571428571, + "syn_per_inference": 2045034.4821428573, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.41675792705918907 + }, + { + "T": 4, + "arm": "both", + "acc": 0.030714285714285715, + "syn_per_inference": 2018497.18262987, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.4113498862504137 + }, + { + "T": 8, + "arm": "raw", + "acc": 0.5771428571428572, + "syn_per_inference": 2048153.543831169, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.20869678058718968 + }, + { + "T": 8, + "arm": "thresh", + "acc": 0.7385714285714285, + "syn_per_inference": 1950252.5267857143, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.19872114807900398 + }, + { + "T": 8, + "arm": "ftbc", + "acc": 0.05285714285714286, + "syn_per_inference": 2452784.042207792, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.2499266398391639 + }, + { + "T": 8, + "arm": "both", + "acc": 0.06642857142857143, + "syn_per_inference": 2399304.793831169, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.2444773672501827 + }, + { + "T": 16, + "arm": "raw", + "acc": 0.7892857142857143, + "syn_per_inference": 2337609.4261363638, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.11909545624015509 + }, + { + "T": 16, + "arm": "thresh", + "acc": 0.9014285714285715, + "syn_per_inference": 2121910.1517857146, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.10810610823263965 + }, + { + "T": 16, + "arm": "ftbc", + "acc": 0.4092857142857143, + "syn_per_inference": 2811218.702922078, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.14322468513002617 + }, + { + "T": 16, + "arm": "both", + "acc": 0.3514285714285714, + "syn_per_inference": 2648069.6298701297, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.13491264075125461 + }, + { + "T": 25, + "arm": "raw", + "acc": 0.8792857142857143, + "syn_per_inference": 2558687.908279221, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.08342967146674213 + }, + { + "T": 25, + "arm": "thresh", + "acc": 0.925, + "syn_per_inference": 2239377.7564935065, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.07301810819117495 + }, + { + "T": 25, + "arm": "ftbc", + "acc": 0.685, + "syn_per_inference": 3072336.8579545454, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.10017792864261221 + }, + { + "T": 25, + "arm": "both", + "acc": 0.5571428571428572, + "syn_per_inference": 2806018.2516233767, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.0914942303456078 + }, + { + "T": 50, + "arm": "raw", + "acc": 0.9328571428571428, + "syn_per_inference": 2913571.6136363638, + "dense_per_inference": 61337600.0, + "event_fraction_of_dense": 0.047500580616723895 + }, + { + "T": 50, + "arm": "thresh", + "acc": 0.9407142857142857, + "syn_per_inference": 2421276.7459415584, + "dense_per_inference": 61337600.0, + "event_fraction_of_dense": 0.039474592190459984 + }, + { + "T": 50, + "arm": "ftbc", + "acc": 0.8578571428571429, + "syn_per_inference": 3487039.4261363638, + "dense_per_inference": 61337600.0, + "event_fraction_of_dense": 0.05684994890795146 + }, + { + "T": 50, + "arm": "both", + "acc": 0.7778571428571428, + "syn_per_inference": 3057650.978896104, + "dense_per_inference": 61337600.0, + "event_fraction_of_dense": 0.04984953729679844 + }, + { + "T": 100, + "arm": "raw", + "acc": 0.9485714285714286, + "syn_per_inference": 3270530.1485389615, + "dense_per_inference": 122675200.0, + "event_fraction_of_dense": 0.02666007594476277 + }, + { + "T": 100, + "arm": "thresh", + "acc": 0.925, + "syn_per_inference": 2694214.478896104, + "dense_per_inference": 122675200.0, + "event_fraction_of_dense": 0.02196217718737042 + }, + { + "T": 100, + "arm": "ftbc", + "acc": 0.9164285714285715, + "syn_per_inference": 3933733.825487013, + "dense_per_inference": 122675200.0, + "event_fraction_of_dense": 0.03206625157723006 + }, + { + "T": 100, + "arm": "both", + "acc": 0.8485714285714285, + "syn_per_inference": 3378956.2589285714, + "dense_per_inference": 122675200.0, + "event_fraction_of_dense": 0.02754392296836338 } ], - "latency_proxy_lth": 195, - "latency_reduction_vs_lth_frac": 0.2205128205128205 + "calibration_reference": "same network at full T (NOT a source ANN)" }, "config": { "method": "harmonic_matched", @@ -4365,7 +3205,7 @@ "decision_margin": 2.0, "export": false, "seed": 1234, - "hub_dir": "/kaggle/working/hub/opt06_uticket_prune/prune_rate_0.3", + "hub_dir": "/kaggle/working/hub/opt03_ftbc_threshold_balance/ftbc_lr_2.0", "repo_id": "UWU-R-13/SSVEP-SNN", "push_hf": false, "keep_epoch_weights": 1, @@ -4376,932 +3216,182 @@ "bench_warmup": 10, "bench_iters": 50, "bench_train_steps": 20, - "prune_rounds": 5, - "prune_rate": 0.3, - "rewind_epoch": 1, - "balance": true, - "balance_iters": 2, - "prune_readout": false, + "calibrate_thresh": true, + "calib_percentile": 99.9, + "calib_batches": 8, + "ftbc": true, + "ftbc_target_ticks": 8, + "ftbc_ref_ticks": 0, + "ftbc_lr": 2.0, + "t_sweep": "4,8,16,25,50,100", "sampling_rate": 250.0 } }, "zip": { - "name": "prune_rate_0.3.zip", + "name": "ftbc_lr_2.0.zip", "files": 81, - "bytes": 8932688, - "MB": 8.9, - "sha256": "da220c764f1de0b5d5475597bbd3fea15674bbe7e43b02884ad8bf414fc7c8c2" + "bytes": 12249793, + "MB": 12.2, + "sha256": "8da510a7f6f6ea93fcb881624cd1c8187170ac3da8af0683fcf18c123a1fac73" } }, { - "key": "opt06_uticket_prune/prune_rate_0.7", - "tag": "prune_rate_0.7", - "script": "opt06_uticket_prune.py", - "hf_folder": "applied/opt06_uticket_prune", - "phase": 4, + "key": "opt03_ftbc_threshold_balance/ftbc_only", + "tag": "ftbc_only", + "script": "opt03_ftbc_threshold_balance.py", + "hf_folder": "applied/opt03_ftbc_threshold_balance", + "phase": 7, "status": "ok", - "duration_s": 329.5, + "duration_s": 362.0, "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", + "optimization": "ftbc_threshold_balance", + "research_section": "2. Temporal-Dimension Reduction (threshold balancing + FTBC)", + "reference": "Rueckauer et al. arXiv:1612.04052; Sengupta et al. arXiv:1802.02627; FTBC: Forward Temporal Bias Correction, ECCV 2024", + "script": "opt03_ftbc_threshold_balance.py", "baseline_mode": false, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.10785714285714286, - "test_target_acc": 0.10785714285714286, - "best_val_acc": 0.9107142857142857 + "test_acc": 0.9414285714285714, + "test_target_acc": 0.9414285714285714, + "best_val_acc": 0.9421428571428572 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 134146.13453733767, + "syn_ops_per_inference": 3249375.69724026, "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.0010935065484901404, - "syn_ops_per_inference_dense_fanout": 65046831.82467532, - "weight_sparsity": 0.9909484557595993, - "effective_ticks": 17.615, + "event_fraction_of_dense": 0.026487633174759526, + "syn_ops_per_inference_dense_fanout": 64825993.48376623, + "weight_sparsity": 0.7324707846410685, + "effective_ticks": 12.075714285714286, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 99.08765609998227, - "infer_ms_per_sample": 0.6416375046870826, - "peak_vram_mb": 2838.396928, - "weight_bytes_nonzero": 3485 + "train_ms_per_step": 101.28010819998963, + "infer_ms_per_sample": 0.656100417812695, + "peak_vram_mb": 2828.060672 }, "optimization_specific": { - "pruning_enabled": true, - "balance_enabled": true, - "rounds": 5, - "final_sparsity": 0.9992897727272727, - "nnz_per_layer": { - "layer0": 96, - "layer1": 512, - "layer2": 256 - }, - "pe_stats_per_layer": { - "layer0": { - "mean_nnz": 0.30000000000000004, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 96, - "numel": 921600, - "sparsity": 0.9998958333333333, - "utilization": 0.30000000000000004 - }, - "layer1": { - "mean_nnz": 1.0, - "max_nnz": 1.0, - "min_nnz": 1.0, - "total_nnz": 512, - "numel": 163840, - "sparsity": 0.996875, - "utilization": 1.0 - }, - "layer2": { - "mean_nnz": 1.0, - "max_nnz": 1.0, - "min_nnz": 1.0, - "total_nnz": 256, - "numel": 131072, - "sparsity": 0.998046875, - "utilization": 1.0 - } - }, - "pe_utilization_final": 0.7666666666666666, - "pe_utilization_lth": 0.33328993055555556, - "pe_utilization_uticket": 0.7666666666666666, - "latency_proxy_dense": 3712, - "latency_proxy_final": 3, - "latency_reduction_frac": 0.9991918103448276, - "rounds_history": [ - { - "round": 1, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 21.6, - "max_nnz": 32.0, - "min_nnz": 13.0, - "total_nnz": 6912, - "numel": 921600, - "sparsity": 0.9925, - "utilization": 0.675 - }, - "uticket": { - "mean_nnz": 22.0, - "max_nnz": 22.0, - "min_nnz": 22.0, - "total_nnz": 7040, - "numel": 921600, - "sparsity": 0.9923611111111111, - "utilization": 1.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 96.0, - "max_nnz": 118.0, - "min_nnz": 63.0, - "total_nnz": 49152, - "numel": 163840, - "sparsity": 0.7, - "utilization": 0.8135593220338984 - }, - "uticket": { - "mean_nnz": 96.0, - "max_nnz": 96.0, - "min_nnz": 96.0, - "total_nnz": 49152, - "numel": 163840, - "sparsity": 0.7, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 153.6015625, - "max_nnz": 181.0, - "min_nnz": 111.0, - "total_nnz": 39322, - "numel": 131072, - "sparsity": 0.6999969482421875, - "utilization": 0.8486274171270718 - }, - "uticket": { - "mean_nnz": 154.0, - "max_nnz": 154.0, - "min_nnz": 154.0, - "total_nnz": 39424, - "numel": 131072, - "sparsity": 0.69921875, - "utilization": 1.0 - } - } - }, - "latency_proxy": 272, - "sparsity": 0.9214015151515151 - }, - { - "round": 2, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 6.6000000000000005, - "max_nnz": 15.0, - "min_nnz": 1.0, - "total_nnz": 2112, - "numel": 921600, - "sparsity": 0.9977083333333333, - "utilization": 0.44000000000000006 - }, - "uticket": { - "mean_nnz": 7.0, - "max_nnz": 7.0, - "min_nnz": 7.0, - "total_nnz": 2240, - "numel": 921600, - "sparsity": 0.9975694444444444, - "utilization": 1.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 28.80078125, - "max_nnz": 48.0, - "min_nnz": 2.0, - "total_nnz": 14746, - "numel": 163840, - "sparsity": 0.90999755859375, - "utilization": 0.6000162760416666 - }, - "uticket": { - "mean_nnz": 29.0, - "max_nnz": 29.0, - "min_nnz": 29.0, - "total_nnz": 14848, - "numel": 163840, - "sparsity": 0.909375, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 46.19921875, - "max_nnz": 64.0, - "min_nnz": 26.0, - "total_nnz": 11827, - "numel": 131072, - "sparsity": 0.9097671508789062, - "utilization": 0.72186279296875 - }, - "uticket": { - "mean_nnz": 46.0, - "max_nnz": 46.0, - "min_nnz": 46.0, - "total_nnz": 11776, - "numel": 131072, - "sparsity": 0.91015625, - "utilization": 1.0 - } - } - }, - "latency_proxy": 82, - "sparsity": 0.9762731481481481 - }, - { - "round": 3, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 2.1, - "max_nnz": 7.0, - "min_nnz": 0.0, - "total_nnz": 672, - "numel": 921600, - "sparsity": 0.9992708333333333, - "utilization": 0.3 - }, - "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": 8.69921875, - "max_nnz": 18.0, - "min_nnz": 0.0, - "total_nnz": 4454, - "numel": 163840, - "sparsity": 0.97281494140625, - "utilization": 0.4832899305555556 - }, - "uticket": { - "mean_nnz": 9.0, - "max_nnz": 9.0, - "min_nnz": 9.0, - "total_nnz": 4608, - "numel": 163840, - "sparsity": 0.971875, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 13.80078125, - "max_nnz": 23.0, - "min_nnz": 6.0, - "total_nnz": 3533, - "numel": 131072, - "sparsity": 0.9730453491210938, - "utilization": 0.6000339673913043 - }, - "uticket": { - "mean_nnz": 14.0, - "max_nnz": 14.0, - "min_nnz": 14.0, - "total_nnz": 3584, - "numel": 131072, - "sparsity": 0.97265625, - "utilization": 1.0 - } - } - }, - "latency_proxy": 25, - "sparsity": 0.992739898989899 - }, - { - "round": 4, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 0.6000000000000001, - "max_nnz": 2.0, - "min_nnz": 0.0, - "total_nnz": 192, - "numel": 921600, - "sparsity": 0.9997916666666666, - "utilization": 0.30000000000000004 - }, - "uticket": { - "mean_nnz": 1.0, - "max_nnz": 1.0, - "min_nnz": 1.0, - "total_nnz": 320, - "numel": 921600, - "sparsity": 0.9996527777777777, - "utilization": 1.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 2.69921875, - "max_nnz": 8.0, - "min_nnz": 0.0, - "total_nnz": 1382, - "numel": 163840, - "sparsity": 0.99156494140625, - "utilization": 0.33740234375 - }, - "uticket": { - "mean_nnz": 3.0, - "max_nnz": 3.0, - "min_nnz": 3.0, - "total_nnz": 1536, - "numel": 163840, - "sparsity": 0.990625, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 4.19921875, - "max_nnz": 9.0, - "min_nnz": 1.0, - "total_nnz": 1075, - "numel": 131072, - "sparsity": 0.9917984008789062, - "utilization": 0.4665798611111111 - }, - "uticket": { - "mean_nnz": 4.0, - "max_nnz": 4.0, - "min_nnz": 4.0, - "total_nnz": 1024, - "numel": 131072, - "sparsity": 0.9921875, - "utilization": 1.0 - } - } - }, - "latency_proxy": 8, - "sparsity": 0.9976325757575758 - }, - { - "round": 5, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 0.30000000000000004, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 96, - "numel": 921600, - "sparsity": 0.9998958333333333, - "utilization": 0.30000000000000004 - }, - "uticket": { - "mean_nnz": 0.30000000000000004, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 96, - "numel": 921600, - "sparsity": 0.9998958333333333, - "utilization": 0.30000000000000004 - } - }, - "layer1": { - "lth": { - "mean_nnz": 0.900390625, - "max_nnz": 3.0, - "min_nnz": 0.0, - "total_nnz": 461, - "numel": 163840, - "sparsity": 0.997186279296875, - "utilization": 0.3001302083333333 - }, - "uticket": { - "mean_nnz": 1.0, - "max_nnz": 1.0, - "min_nnz": 1.0, - "total_nnz": 512, - "numel": 163840, - "sparsity": 0.996875, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 1.19921875, - "max_nnz": 3.0, - "min_nnz": 0.0, - "total_nnz": 307, - "numel": 131072, - "sparsity": 0.9976577758789062, - "utilization": 0.3997395833333333 - }, - "uticket": { - "mean_nnz": 1.0, - "max_nnz": 1.0, - "min_nnz": 1.0, - "total_nnz": 256, - "numel": 131072, - "sparsity": 0.998046875, - "utilization": 1.0 - } - } - }, - "latency_proxy": 3, - "sparsity": 0.9992897727272727 - } + "calibrate_thresh": false, + "ftbc": true, + "calib_percentile": 99.9, + "calib_batches": 8, + "ftbc_target_ticks": 8, + "ftbc_ref_ticks": 100, + "trained_T": 100, + "thresh_before": [ + 1.0, + 1.0, + 1.0, + 1.0 ], - "latency_proxy_lth": 7, - "latency_reduction_vs_lth_frac": 0.5714285714285714 - }, - "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/prune_rate_0.7", - "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.7, - "rewind_epoch": 1, - "balance": true, - "balance_iters": 2, - "prune_readout": false, - "sampling_rate": 250.0 - } - }, - "zip": { - "name": "prune_rate_0.7.zip", - "files": 81, - "bytes": 8084840, - "MB": 8.1, - "sha256": "20c9e49012378d56d0917461901d1b7656542b3eee38002b8faa524568fa2972" - } - }, - { - "key": "opt06_uticket_prune/prune_rate_0.9", - "tag": "prune_rate_0.9", - "script": "opt06_uticket_prune.py", - "hf_folder": "applied/opt06_uticket_prune", - "phase": 4, - "status": "ok", - "duration_s": 319.6, - "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.025, - "test_target_acc": 0.025, - "best_val_acc": 0.87 - }, - "efficiency": { - "spikes_per_inference": null, - "syn_ops_per_inference": 131051.0, - "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.0010682762286101837, - "syn_ops_per_inference_dense_fanout": 64533777.422077924, - "weight_sparsity": 0.991651124269616, - "effective_ticks": 100.0, - "num_ticks": 100, - "membrane_bytes_per_inference": 451200, - "weight_bytes": 4907008, - "input_raster_bytes": null, - "train_ms_per_step": 96.58716089998052, - "infer_ms_per_sample": 0.6307518350001828, - "peak_vram_mb": 2837.307904, - "weight_bytes_nonzero": 8 - }, - "optimization_specific": { - "pruning_enabled": true, - "balance_enabled": true, - "rounds": 5, - "final_sparsity": 0.9999983559553872, - "nnz_per_layer": { - "layer0": 0, - "layer1": 1, - "layer2": 1 - }, - "pe_stats_per_layer": { - "layer0": { - "mean_nnz": 0.0, - "max_nnz": 0.0, - "min_nnz": 0.0, - "total_nnz": 0, - "numel": 921600, - "sparsity": 1.0, - "utilization": 0.0 - }, - "layer1": { - "mean_nnz": 0.001953125, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 1, - "numel": 163840, - "sparsity": 0.999993896484375, - "utilization": 0.001953125 - }, - "layer2": { - "mean_nnz": 0.00390625, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 1, - "numel": 131072, - "sparsity": 0.9999923706054688, - "utilization": 0.00390625 - } + "thresh_after": null, + "min_ticks_within_1pct_of_full": null, + "min_ticks_within_1pct_per_arm": { + "raw": 100, + "ftbc": 100 }, - "pe_utilization_final": 0.001953125, - "pe_utilization_lth": 0.001953125, - "pe_utilization_uticket": 0.001953125, - "latency_proxy_dense": 3712, - "latency_proxy_final": 2, - "latency_reduction_frac": 0.9994612068965517, - "rounds_history": [ - { - "round": 1, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 7.2, - "max_nnz": 18.0, - "min_nnz": 1.0, - "total_nnz": 2304, - "numel": 921600, - "sparsity": 0.9975, - "utilization": 0.4 - }, - "uticket": { - "mean_nnz": 7.0, - "max_nnz": 7.0, - "min_nnz": 7.0, - "total_nnz": 2240, - "numel": 921600, - "sparsity": 0.9975694444444444, - "utilization": 1.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 32.0, - "max_nnz": 49.0, - "min_nnz": 11.0, - "total_nnz": 16384, - "numel": 163840, - "sparsity": 0.9, - "utilization": 0.6530612244897959 - }, - "uticket": { - "mean_nnz": 32.0, - "max_nnz": 32.0, - "min_nnz": 32.0, - "total_nnz": 16384, - "numel": 163840, - "sparsity": 0.9, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 51.19921875, - "max_nnz": 71.0, - "min_nnz": 22.0, - "total_nnz": 13107, - "numel": 131072, - "sparsity": 0.9000015258789062, - "utilization": 0.7211157570422535 - }, - "uticket": { - "mean_nnz": 51.0, - "max_nnz": 51.0, - "min_nnz": 51.0, - "total_nnz": 13056, - "numel": 131072, - "sparsity": 0.900390625, - "utilization": 1.0 - } - } - }, - "latency_proxy": 90, - "sparsity": 0.9739583333333334 - }, - { - "round": 2, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 0.7000000000000001, - "max_nnz": 4.0, - "min_nnz": 0.0, - "total_nnz": 224, - "numel": 921600, - "sparsity": 0.9997569444444444, - "utilization": 0.17500000000000002 - }, - "uticket": { - "mean_nnz": 1.0, - "max_nnz": 1.0, - "min_nnz": 1.0, - "total_nnz": 320, - "numel": 921600, - "sparsity": 0.9996527777777777, - "utilization": 1.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 3.19921875, - "max_nnz": 10.0, - "min_nnz": 0.0, - "total_nnz": 1638, - "numel": 163840, - "sparsity": 0.99000244140625, - "utilization": 0.319921875 - }, - "uticket": { - "mean_nnz": 3.0, - "max_nnz": 3.0, - "min_nnz": 3.0, - "total_nnz": 1536, - "numel": 163840, - "sparsity": 0.990625, - "utilization": 1.0 - } - }, - "layer2": { - "lth": { - "mean_nnz": 5.1015625, - "max_nnz": 9.0, - "min_nnz": 0.0, - "total_nnz": 1306, - "numel": 131072, - "sparsity": 0.9900360107421875, - "utilization": 0.5668402777777778 - }, - "uticket": { - "mean_nnz": 5.0, - "max_nnz": 5.0, - "min_nnz": 5.0, - "total_nnz": 1280, - "numel": 131072, - "sparsity": 0.990234375, - "utilization": 1.0 - } - } - }, - "latency_proxy": 9, - "sparsity": 0.9974221380471381 - }, - { - "round": 3, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 0.1, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 32, - "numel": 921600, - "sparsity": 0.9999652777777778, - "utilization": 0.1 - }, - "uticket": { - "mean_nnz": 0.1, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 32, - "numel": 921600, - "sparsity": 0.9999652777777778, - "utilization": 0.1 - } - }, - "layer1": { - "lth": { - "mean_nnz": 0.30078125, - "max_nnz": 2.0, - "min_nnz": 0.0, - "total_nnz": 154, - "numel": 163840, - "sparsity": 0.99906005859375, - "utilization": 0.150390625 - }, - "uticket": { - "mean_nnz": 0.30078125, - "max_nnz": 2.0, - "min_nnz": 0.0, - "total_nnz": 154, - "numel": 163840, - "sparsity": 0.99906005859375, - "utilization": 0.150390625 - } - }, - "layer2": { - "lth": { - "mean_nnz": 0.5, - "max_nnz": 2.0, - "min_nnz": 0.0, - "total_nnz": 128, - "numel": 131072, - "sparsity": 0.9990234375, - "utilization": 0.25 - }, - "uticket": { - "mean_nnz": 0.5, - "max_nnz": 2.0, - "min_nnz": 0.0, - "total_nnz": 128, - "numel": 131072, - "sparsity": 0.9990234375, - "utilization": 0.25 - } - } - }, - "latency_proxy": 5, - "sparsity": 0.9997418849957912 - }, - { - "round": 4, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 0.009375000000000001, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 3, - "numel": 921600, - "sparsity": 0.9999967447916667, - "utilization": 0.009375000000000001 - }, - "uticket": { - "mean_nnz": 0.009375000000000001, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 3, - "numel": 921600, - "sparsity": 0.9999967447916667, - "utilization": 0.009375000000000001 - } - }, - "layer1": { - "lth": { - "mean_nnz": 0.029296875, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 15, - "numel": 163840, - "sparsity": 0.999908447265625, - "utilization": 0.029296875 - }, - "uticket": { - "mean_nnz": 0.029296875, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 15, - "numel": 163840, - "sparsity": 0.999908447265625, - "utilization": 0.029296875 - } - }, - "layer2": { - "lth": { - "mean_nnz": 0.05078125, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 13, - "numel": 131072, - "sparsity": 0.9999008178710938, - "utilization": 0.05078125 - }, - "uticket": { - "mean_nnz": 0.05078125, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 13, - "numel": 131072, - "sparsity": 0.9999008178710938, - "utilization": 0.05078125 - } - } - }, - "latency_proxy": 3, - "sparsity": 0.9999745173085017 - }, - { - "round": 5, - "layers": { - "layer0": { - "lth": { - "mean_nnz": 0.0, - "max_nnz": 0.0, - "min_nnz": 0.0, - "total_nnz": 0, - "numel": 921600, - "sparsity": 1.0, - "utilization": 0.0 - }, - "uticket": { - "mean_nnz": 0.0, - "max_nnz": 0.0, - "min_nnz": 0.0, - "total_nnz": 0, - "numel": 921600, - "sparsity": 1.0, - "utilization": 0.0 - } - }, - "layer1": { - "lth": { - "mean_nnz": 0.001953125, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 1, - "numel": 163840, - "sparsity": 0.999993896484375, - "utilization": 0.001953125 - }, - "uticket": { - "mean_nnz": 0.001953125, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 1, - "numel": 163840, - "sparsity": 0.999993896484375, - "utilization": 0.001953125 - } - }, - "layer2": { - "lth": { - "mean_nnz": 0.00390625, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 1, - "numel": 131072, - "sparsity": 0.9999923706054688, - "utilization": 0.00390625 - }, - "uticket": { - "mean_nnz": 0.00390625, - "max_nnz": 1.0, - "min_nnz": 0.0, - "total_nnz": 1, - "numel": 131072, - "sparsity": 0.9999923706054688, - "utilization": 0.00390625 - } - } - }, - "latency_proxy": 2, - "sparsity": 0.9999983559553872 + "speedup_at_min_ticks": null, + "full_T_acc": 0.9414285714285714, + "t_sweep_rows": [ + { + "T": 4, + "arm": "raw", + "acc": 0.285, + "syn_per_inference": 1863959.37987013, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.3798566009817245 + }, + { + "T": 4, + "arm": "ftbc", + "acc": 0.18, + "syn_per_inference": 1988746.081168831, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.4052869041927038 + }, + { + "T": 8, + "arm": "raw", + "acc": 0.6028571428571429, + "syn_per_inference": 2041225.4082792208, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.20799083762235773 + }, + { + "T": 8, + "arm": "ftbc", + "acc": 0.375, + "syn_per_inference": 2398680.064935065, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.24441371044586283 + }, + { + "T": 16, + "arm": "raw", + "acc": 0.8192857142857143, + "syn_per_inference": 2324367.765422078, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.11842082616444062 + }, + { + "T": 16, + "arm": "ftbc", + "acc": 0.6142857142857143, + "syn_per_inference": 2803018.7873376627, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.1428069195799998 + }, + { + "T": 25, + "arm": "raw", + "acc": 0.8821428571428571, + "syn_per_inference": 2541577.2775974027, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.08287175493000713 + }, + { + "T": 25, + "arm": "ftbc", + "acc": 0.78, + "syn_per_inference": 3086706.7922077924, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.10064648086028122 + }, + { + "T": 50, + "arm": "raw", + "acc": 0.9257142857142857, + "syn_per_inference": 2894576.2873376627, + "dense_per_inference": 61337600.0, + "event_fraction_of_dense": 0.04719089575297473 + }, + { + "T": 50, + "arm": "ftbc", + "acc": 0.9128571428571428, + "syn_per_inference": 3537494.286525974, + "dense_per_inference": 61337600.0, + "event_fraction_of_dense": 0.057672525278556284 + }, + { + "T": 100, + "arm": "raw", + "acc": 0.9414285714285714, + "syn_per_inference": 3249375.612012987, + "dense_per_inference": 122675200.0, + "event_fraction_of_dense": 0.026487632480020305 + }, + { + "T": 100, + "arm": "ftbc", + "acc": 0.9385714285714286, + "syn_per_inference": 3966864.5608766233, + "dense_per_inference": 122675200.0, + "event_fraction_of_dense": 0.032336320306603314 } ], - "latency_proxy_lth": 2, - "latency_reduction_vs_lth_frac": 0.0 + "calibration_reference": "same network at full T (NOT a source ANN)" }, "config": { "method": "harmonic_matched", @@ -5341,7 +3431,7 @@ "decision_margin": 2.0, "export": false, "seed": 1234, - "hub_dir": "/kaggle/working/hub/opt06_uticket_prune/prune_rate_0.9", + "hub_dir": "/kaggle/working/hub/opt03_ftbc_threshold_balance/ftbc_only", "repo_id": "UWU-R-13/SSVEP-SNN", "push_hf": false, "keep_epoch_weights": 1, @@ -5352,157 +3442,285 @@ "bench_warmup": 10, "bench_iters": 50, "bench_train_steps": 20, - "prune_rounds": 5, - "prune_rate": 0.9, - "rewind_epoch": 1, - "balance": true, - "balance_iters": 2, - "prune_readout": false, + "calibrate_thresh": false, + "calib_percentile": 99.9, + "calib_batches": 8, + "ftbc": true, + "ftbc_target_ticks": 8, + "ftbc_ref_ticks": 0, + "ftbc_lr": 1.0, + "t_sweep": "4,8,16,25,50,100", "sampling_rate": 250.0 } }, "zip": { - "name": "prune_rate_0.9.zip", + "name": "ftbc_only.zip", "files": 81, - "bytes": 7426394, - "MB": 7.4, - "sha256": "be083c44794710cc3f67d5247a4e0ac70a9ec34f7d4aaa4fd86649745813579e" + "bytes": 12244861, + "MB": 12.2, + "sha256": "736f330397784874481ef351ef9ef2dc0fd23464b032e5ef4d4e65a8729b5ab0" } }, { - "key": "opt07_sfa_integer_train/sfa_D16", - "tag": "sfa_D16", - "script": "opt07_sfa_integer_train.py", - "hf_folder": "applied/opt07_sfa_integer_train", - "phase": 4, + "key": "opt03_ftbc_threshold_balance/ftbc_ref_ticks_25", + "tag": "ftbc_ref_ticks_25", + "script": "opt03_ftbc_threshold_balance.py", + "hf_folder": "applied/opt03_ftbc_threshold_balance", + "phase": 7, "status": "ok", - "duration_s": 364.6, + "duration_s": 386.5, "optimization_summary": { - "optimization": "sfa_integer_train", - "research_section": "3. Training-Time Approximation for Fewer Timesteps (SFA) / spike-storm suppression", - "reference": "Yao et al., Scaling Spike-driven Transformer with Efficient Spike Firing Approximation Training, arXiv:2411.16061", - "script": "opt07_sfa_integer_train.py", + "optimization": "ftbc_threshold_balance", + "research_section": "2. Temporal-Dimension Reduction (threshold balancing + FTBC)", + "reference": "Rueckauer et al. arXiv:1612.04052; Sengupta et al. arXiv:1802.02627; FTBC: Forward Temporal Bias Correction, ECCV 2024", + "script": "opt03_ftbc_threshold_balance.py", "baseline_mode": false, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.9514285714285714, - "test_target_acc": 0.9514285714285714, - "best_val_acc": 0.9557142857142857 + "test_acc": 0.9357142857142857, + "test_target_acc": 0.9357142857142857, + "best_val_acc": 0.945 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 4342880.801948052, + "syn_ops_per_inference": 3264603.7832792206, "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.035401456871055045, - "syn_ops_per_inference_dense_fanout": 65919498.58847403, + "event_fraction_of_dense": 0.026611766545147027, + "syn_ops_per_inference_dense_fanout": 64841221.5698052, "weight_sparsity": 0.7324707846410685, - "effective_ticks": 2.9014285714285712, + "effective_ticks": 12.280714285714286, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 103.44059760000164, - "infer_ms_per_sample": 0.6794570862501814, - "peak_vram_mb": 2832.71168 + "train_ms_per_step": 97.85671250001542, + "infer_ms_per_sample": 0.6403399928126419, + "peak_vram_mb": 2825.387008 }, "optimization_specific": { - "sfa_levels_D": 16, - "soft_reset": true, - "storm_reg": 0.001, + "calibrate_thresh": true, + "ftbc": true, + "calib_percentile": 99.9, + "calib_batches": 8, + "ftbc_target_ticks": 8, + "ftbc_ref_ticks": 25, "trained_T": 100, - "infer_mode": "graded", - "min_ticks_within_1pct_of_full": 50, - "speedup_at_min_ticks": 2.0, - "full_T_acc": 0.9514285714285714, + "thresh_before": [ + 1.0, + 1.0, + 1.0, + 1.0 + ], + "thresh_after": [ + 2.3277933597564697, + 0.8438996076583862, + 1.0949429273605347, + 2.7184956073760986 + ], + "min_ticks_within_1pct_of_full": null, + "min_ticks_within_1pct_per_arm": { + "raw": 100, + "thresh": 50, + "ftbc": 100, + "both": null + }, + "speedup_at_min_ticks": null, + "full_T_acc": 0.9471428571428572, "t_sweep_rows": [ { "T": 4, - "acc": 0.7571428571428571, - "syn_per_inference": 3041995.3295454546, + "arm": "raw", + "acc": 0.29928571428571427, + "syn_per_inference": 1866356.1696428573, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.38034504317964374 + }, + { + "T": 4, + "arm": "thresh", + "acc": 0.4421428571428571, + "syn_per_inference": 1826142.4926948054, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.37214989107309493 + }, + { + "T": 4, + "arm": "ftbc", + "acc": 0.1457142857142857, + "syn_per_inference": 1930750.6753246754, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.39346801051163466 + }, + { + "T": 4, + "arm": "both", + "acc": 0.23785714285714285, + "syn_per_inference": 1891963.7873376624, "dense_per_inference": 4907008.0, - "infer_mode": "graded", - "ticks_speedup_vs_trained_T": 25.0 + "event_fraction_of_dense": 0.385563623971606 }, { "T": 8, - "acc": 0.895, - "syn_per_inference": 3263844.3709415584, + "arm": "raw", + "acc": 0.6071428571428571, + "syn_per_inference": 2047413.7930194808, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.2086214036149402 + }, + { + "T": 8, + "arm": "thresh", + "acc": 0.7614285714285715, + "syn_per_inference": 1950466.1079545454, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.19874291095047586 + }, + { + "T": 8, + "arm": "ftbc", + "acc": 0.22642857142857142, + "syn_per_inference": 2217957.851461039, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.2259990050414671 + }, + { + "T": 8, + "arm": "both", + "acc": 0.4878571428571429, + "syn_per_inference": 2107893.627435065, "dense_per_inference": 9814016.0, - "infer_mode": "graded", - "ticks_speedup_vs_trained_T": 12.5 + "event_fraction_of_dense": 0.21478400151732632 }, { "T": 16, - "acc": 0.9214285714285714, - "syn_per_inference": 3374002.8701298703, + "arm": "raw", + "acc": 0.795, + "syn_per_inference": 2334632.549512987, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.11894379169103592 + }, + { + "T": 16, + "arm": "thresh", + "acc": 0.8978571428571429, + "syn_per_inference": 2122709.396103896, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.1081468277667316 + }, + { + "T": 16, + "arm": "ftbc", + "acc": 0.49642857142857144, + "syn_per_inference": 2581577.3790584416, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.13152502395851207 + }, + { + "T": 16, + "arm": "both", + "acc": 0.8085714285714286, + "syn_per_inference": 2327981.189935065, "dense_per_inference": 19628032.0, - "infer_mode": "graded", - "ticks_speedup_vs_trained_T": 6.25 + "event_fraction_of_dense": 0.118604921264397 }, { "T": 25, - "acc": 0.9335714285714286, - "syn_per_inference": 3434478.9805194805, + "arm": "raw", + "acc": 0.8828571428571429, + "syn_per_inference": 2554239.542207792, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.08328462614147902 + }, + { + "T": 25, + "arm": "thresh", + "acc": 0.9221428571428572, + "syn_per_inference": 2240504.061688312, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.07305483297971593 + }, + { + "T": 25, + "arm": "ftbc", + "acc": 0.7678571428571429, + "syn_per_inference": 2843913.9107142854, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.09272987240173354 + }, + { + "T": 25, + "arm": "both", + "acc": 0.8828571428571429, + "syn_per_inference": 2468573.5324675324, "dense_per_inference": 30668800.0, - "infer_mode": "graded", - "ticks_speedup_vs_trained_T": 4.0 + "event_fraction_of_dense": 0.08049136361603755 + }, + { + "T": 50, + "arm": "raw", + "acc": 0.9335714285714286, + "syn_per_inference": 2908471.4699675324, + "dense_per_inference": 61337600.0, + "event_fraction_of_dense": 0.04741743188464388 + }, + { + "T": 50, + "arm": "thresh", + "acc": 0.9385714285714286, + "syn_per_inference": 2421485.2816558443, + "dense_per_inference": 61337600.0, + "event_fraction_of_dense": 0.039477991992771876 + }, + { + "T": 50, + "arm": "ftbc", + "acc": 0.9185714285714286, + "syn_per_inference": 3242881.149350649, + "dense_per_inference": 61337600.0, + "event_fraction_of_dense": 0.05286938434745815 }, { "T": 50, - "acc": 0.9464285714285714, - "syn_per_inference": 3644055.8425324676, + "arm": "both", + "acc": 0.9285714285714286, + "syn_per_inference": 2676649.548701299, "dense_per_inference": 61337600.0, - "infer_mode": "graded", - "ticks_speedup_vs_trained_T": 2.0 + "event_fraction_of_dense": 0.043637989564334095 }, { "T": 100, - "acc": 0.9514285714285714, - "syn_per_inference": 4342880.818993507, + "arm": "raw", + "acc": 0.9471428571428572, + "syn_per_inference": 3264602.8230519476, "dense_per_inference": 122675200.0, - "infer_mode": "graded", - "ticks_speedup_vs_trained_T": 1.0 - } - ], - "storm_ratio_peak_over_mean": 2.8813028817951003, - "tick_activity_cv": 0.4370103200028133, - "mean_integer_activation": 0.09140705943728487, - "frac_activations_gt1": 0.01052142377011478, - "max_activation": 8.0, - "per_layer_activity": [ + "event_fraction_of_dense": 0.026611758717751816 + }, { - "layer": 0, - "mean_integer_activation": 0.13493261935189366, - "peak_tick_activation": 0.38878174498677254, - "storm_ratio": 2.8813028817951003, - "tick_activity_cv": 0.4370103200028133, - "frac_activations_gt1": 0.01052142377011478, - "max_activation": 8.0 + "T": 100, + "arm": "thresh", + "acc": 0.9357142857142857, + "syn_per_inference": 2689589.7467532465, + "dense_per_inference": 122675200.0, + "event_fraction_of_dense": 0.02192447818917961 }, { - "layer": 1, - "mean_integer_activation": 0.03472991943359375, - "peak_tick_activation": 0.039974212646484375, - "storm_ratio": 1.1510021704173001, - "tick_activity_cv": 0.13693907474520564, - "frac_activations_gt1": 0.00025985717547882814, - "max_activation": 5.0 + "T": 100, + "arm": "ftbc", + "acc": 0.9428571428571428, + "syn_per_inference": 3643597.5600649347, + "dense_per_inference": 122675200.0, + "event_fraction_of_dense": 0.029701174810107787 }, { - "layer": 2, - "mean_integer_activation": 0.1045586395263672, - "peak_tick_activation": 0.1249237060546875, - "storm_ratio": 1.1947717244655305, - "tick_activity_cv": 0.14985677597892794, - "frac_activations_gt1": 0.00023361205603578128, - "max_activation": 3.0 + "T": 100, + "arm": "both", + "acc": 0.9314285714285714, + "syn_per_inference": 2949095.00974026, + "dense_per_inference": 122675200.0, + "event_fraction_of_dense": 0.024039863067190925 } ], - "expanded_vs_graded_agreement": 1.0, - "expanded_acc": 0.9296875, - "graded_acc": 0.9296875, - "syn_ratio_expanded_over_graded": 1.0001999442037321, - "expansion_caveat": "exact only at beta=1 (IAF); with beta<1 the expanded mode applies decay per sub-tick and drifts" + "calibration_reference": "same network at full T (NOT a source ANN)" }, "config": { "method": "harmonic_matched", @@ -5542,7 +3760,7 @@ "decision_margin": 2.0, "export": false, "seed": 1234, - "hub_dir": "/kaggle/working/hub/opt07_sfa_integer_train/sfa_D16", + "hub_dir": "/kaggle/working/hub/opt03_ftbc_threshold_balance/ftbc_ref_ticks_25", "repo_id": "UWU-R-13/SSVEP-SNN", "push_hf": false, "keep_epoch_weights": 1, @@ -5553,156 +3771,349 @@ "bench_warmup": 10, "bench_iters": 50, "bench_train_steps": 20, - "sfa_levels": 16, - "soft_reset": true, - "storm_reg": 0.001, - "infer_mode": "graded", + "calibrate_thresh": true, + "calib_percentile": 99.9, + "calib_batches": 8, + "ftbc": true, + "ftbc_target_ticks": 8, + "ftbc_ref_ticks": 25, + "ftbc_lr": 1.0, "t_sweep": "4,8,16,25,50,100", "sampling_rate": 250.0 } }, "zip": { - "name": "sfa_D16.zip", + "name": "ftbc_ref_ticks_25.zip", "files": 81, - "bytes": 12257756, - "MB": 12.3, - "sha256": "151b836b05d4aae9200314a6de9070519051cdadf874ff0d67dbed30ebb19367" + "bytes": 12245889, + "MB": 12.2, + "sha256": "cf78b5486d0a886d731d0302948dd4676970143adfcc5145211d7413c97f33c7" } }, { - "key": "opt07_sfa_integer_train/sfa_D2", - "tag": "sfa_D2", - "script": "opt07_sfa_integer_train.py", - "hf_folder": "applied/opt07_sfa_integer_train", - "phase": 4, + "key": "opt03_ftbc_threshold_balance/t_sweep_ultra_low", + "tag": "t_sweep_ultra_low", + "script": "opt03_ftbc_threshold_balance.py", + "hf_folder": "applied/opt03_ftbc_threshold_balance", + "phase": 8, "status": "ok", - "duration_s": 359.0, + "duration_s": 361.4, "optimization_summary": { - "optimization": "sfa_integer_train", - "research_section": "3. Training-Time Approximation for Fewer Timesteps (SFA) / spike-storm suppression", - "reference": "Yao et al., Scaling Spike-driven Transformer with Efficient Spike Firing Approximation Training, arXiv:2411.16061", - "script": "opt07_sfa_integer_train.py", + "optimization": "ftbc_threshold_balance", + "research_section": "2. Temporal-Dimension Reduction (threshold balancing + FTBC)", + "reference": "Rueckauer et al. arXiv:1612.04052; Sengupta et al. arXiv:1802.02627; FTBC: Forward Temporal Bias Correction, ECCV 2024", + "script": "opt03_ftbc_threshold_balance.py", "baseline_mode": false, "method": "harmonic_matched", "accuracy": { - "test_acc": 0.8942857142857142, - "test_target_acc": 0.8942857142857142, - "best_val_acc": 0.8878571428571429 + "test_acc": 0.9242857142857143, + "test_target_acc": 0.9242857142857143, + "best_val_acc": 0.9464285714285714 }, "efficiency": { "spikes_per_inference": null, - "syn_ops_per_inference": 4867680.905032467, + "syn_ops_per_inference": 3280250.712662338, "dense_macs_per_inference": 122675200.0, - "event_fraction_of_dense": 0.03967942098347887, - "syn_ops_per_inference_dense_fanout": 66444298.691558436, + "event_fraction_of_dense": 0.026739314161805628, + "syn_ops_per_inference_dense_fanout": 64856868.49918831, "weight_sparsity": 0.7324707846410685, - "effective_ticks": 6.824285714285714, + "effective_ticks": 12.063571428571429, "num_ticks": 100, "membrane_bytes_per_inference": 451200, "weight_bytes": 4907008, "input_raster_bytes": null, - "train_ms_per_step": 101.95647744994858, - "infer_ms_per_sample": 0.6850240015626241, - "peak_vram_mb": 2830.454784 + "train_ms_per_step": 98.6024443000133, + "infer_ms_per_sample": 0.6513143553127065, + "peak_vram_mb": 2825.365504 }, "optimization_specific": { - "sfa_levels_D": 2, - "soft_reset": true, - "storm_reg": 0.001, + "calibrate_thresh": true, + "ftbc": true, + "calib_percentile": 99.9, + "calib_batches": 8, + "ftbc_target_ticks": 8, + "ftbc_ref_ticks": 100, "trained_T": 100, - "infer_mode": "graded", - "min_ticks_within_1pct_of_full": 100, - "speedup_at_min_ticks": 1.0, - "full_T_acc": 0.8942857142857142, + "thresh_before": [ + 1.0, + 1.0, + 1.0, + 1.0 + ], + "thresh_after": [ + 2.332289695739746, + 0.8534926176071167, + 1.113392949104309, + 2.6782219409942627 + ], + "min_ticks_within_1pct_of_full": null, + "min_ticks_within_1pct_per_arm": { + "raw": 25, + "thresh": 16, + "ftbc": null, + "both": null + }, + "speedup_at_min_ticks": null, + "full_T_acc": 0.8828571428571429, "t_sweep_rows": [ + { + "T": 2, + "arm": "raw", + "acc": 0.02642857142857143, + "syn_per_inference": 1752319.4204545454, + "dense_per_inference": 2453504.0, + "event_fraction_of_dense": 0.7142109490975134 + }, + { + "T": 2, + "arm": "thresh", + "acc": 0.03214285714285714, + "syn_per_inference": 1738330.94237013, + "dense_per_inference": 2453504.0, + "event_fraction_of_dense": 0.7085095204124917 + }, + { + "T": 2, + "arm": "ftbc", + "acc": 0.04428571428571428, + "syn_per_inference": 1793459.4740259738, + "dense_per_inference": 2453504.0, + "event_fraction_of_dense": 0.7309788262118072 + }, + { + "T": 2, + "arm": "both", + "acc": 0.07714285714285714, + "syn_per_inference": 1784578.0275974027, + "dense_per_inference": 2453504.0, + "event_fraction_of_dense": 0.72735892323689 + }, + { + "T": 3, + "arm": "raw", + "acc": 0.14642857142857144, + "syn_per_inference": 1817622.8660714284, + "dense_per_inference": 3680256.0, + "event_fraction_of_dense": 0.49388489987420126 + }, + { + "T": 3, + "arm": "thresh", + "acc": 0.22714285714285715, + "syn_per_inference": 1790499.9334415584, + "dense_per_inference": 3680256.0, + "event_fraction_of_dense": 0.4865150504316978 + }, + { + "T": 3, + "arm": "ftbc", + "acc": 0.08428571428571428, + "syn_per_inference": 1893111.2353896103, + "dense_per_inference": 3680256.0, + "event_fraction_of_dense": 0.5143966168086161 + }, + { + "T": 3, + "arm": "both", + "acc": 0.14714285714285713, + "syn_per_inference": 1874461.9123376624, + "dense_per_inference": 3680256.0, + "event_fraction_of_dense": 0.5093292184939479 + }, + { + "T": 4, + "arm": "raw", + "acc": 0.26785714285714285, + "syn_per_inference": 1874738.8027597403, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.3820533414169572 + }, + { + "T": 4, + "arm": "thresh", + "acc": 0.3871428571428571, + "syn_per_inference": 1833943.452922078, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.37373965009269966 + }, + { + "T": 4, + "arm": "ftbc", + "acc": 0.135, + "syn_per_inference": 1990891.393668831, + "dense_per_inference": 4907008.0, + "event_fraction_of_dense": 0.4057240977941815 + }, { "T": 4, - "acc": 0.10714285714285714, - "syn_per_inference": 2229774.2613636362, + "arm": "both", + "acc": 0.21142857142857144, + "syn_per_inference": 1961136.798701299, "dense_per_inference": 4907008.0, - "infer_mode": "graded", - "ticks_speedup_vs_trained_T": 25.0 + "event_fraction_of_dense": 0.39966040379418555 + }, + { + "T": 6, + "arm": "raw", + "acc": 0.4764285714285714, + "syn_per_inference": 1969987.3693181819, + "dense_per_inference": 7360512.0, + "event_fraction_of_dense": 0.26764270872979784 + }, + { + "T": 6, + "arm": "thresh", + "acc": 0.6278571428571429, + "syn_per_inference": 1902471.609577922, + "dense_per_inference": 7360512.0, + "event_fraction_of_dense": 0.25847000990935437 + }, + { + "T": 6, + "arm": "ftbc", + "acc": 0.255, + "syn_per_inference": 2175123.340909091, + "dense_per_inference": 7360512.0, + "event_fraction_of_dense": 0.29551250523184946 + }, + { + "T": 6, + "arm": "both", + "acc": 0.3507142857142857, + "syn_per_inference": 2125190.585227273, + "dense_per_inference": 7360512.0, + "event_fraction_of_dense": 0.28872863534863785 + }, + { + "T": 8, + "arm": "raw", + "acc": 0.6135714285714285, + "syn_per_inference": 2061354.8465909092, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.21004192846138717 + }, + { + "T": 8, + "arm": "thresh", + "acc": 0.7464285714285714, + "syn_per_inference": 1962566.861201299, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.19997591823788538 + }, + { + "T": 8, + "arm": "ftbc", + "acc": 0.32357142857142857, + "syn_per_inference": 2363100.6761363638, + "dense_per_inference": 9814016.0, + "event_fraction_of_dense": 0.2407883455800728 }, { "T": 8, - "acc": 0.17785714285714285, - "syn_per_inference": 2743969.477272727, + "arm": "both", + "acc": 0.4635714285714286, + "syn_per_inference": 2291690.112012987, "dense_per_inference": 9814016.0, - "infer_mode": "graded", - "ticks_speedup_vs_trained_T": 12.5 + "event_fraction_of_dense": 0.2335119600388859 + }, + { + "T": 12, + "arm": "raw", + "acc": 0.7221428571428572, + "syn_per_inference": 2225777.935064935, + "dense_per_inference": 14721024.0, + "event_fraction_of_dense": 0.15119722208624448 + }, + { + "T": 12, + "arm": "thresh", + "acc": 0.8571428571428571, + "syn_per_inference": 2062856.625, + "dense_per_inference": 14721024.0, + "event_fraction_of_dense": 0.1401299682005817 + }, + { + "T": 12, + "arm": "ftbc", + "acc": 0.47714285714285715, + "syn_per_inference": 2584647.832792208, + "dense_per_inference": 14721024.0, + "event_fraction_of_dense": 0.17557527470862136 + }, + { + "T": 12, + "arm": "both", + "acc": 0.5707142857142857, + "syn_per_inference": 2447611.5698051946, + "dense_per_inference": 14721024.0, + "event_fraction_of_dense": 0.1662663935474322 }, { "T": 16, - "acc": 0.3578571428571429, - "syn_per_inference": 3389756.8214285714, + "arm": "raw", + "acc": 0.8064285714285714, + "syn_per_inference": 2357961.4675324676, "dense_per_inference": 19628032.0, - "infer_mode": "graded", - "ticks_speedup_vs_trained_T": 6.25 + "event_fraction_of_dense": 0.12013234273983595 }, { - "T": 25, - "acc": 0.5621428571428572, - "syn_per_inference": 3765801.538149351, - "dense_per_inference": 30668800.0, - "infer_mode": "graded", - "ticks_speedup_vs_trained_T": 4.0 + "T": 16, + "arm": "thresh", + "acc": 0.8921428571428571, + "syn_per_inference": 2139811.6217532465, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.10901814413962879 }, { - "T": 50, - "acc": 0.8164285714285714, - "syn_per_inference": 4257421.903409091, - "dense_per_inference": 61337600.0, - "infer_mode": "graded", - "ticks_speedup_vs_trained_T": 2.0 + "T": 16, + "arm": "ftbc", + "acc": 0.6371428571428571, + "syn_per_inference": 2753975.573051948, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.14030828832212766 }, { - "T": 100, - "acc": 0.8942857142857142, - "syn_per_inference": 4867680.96185065, - "dense_per_inference": 122675200.0, - "infer_mode": "graded", - "ticks_speedup_vs_trained_T": 1.0 - } - ], - "storm_ratio_peak_over_mean": 3.510266023352682, - "tick_activity_cv": 0.49052218172508755, - "mean_integer_activation": 0.09279727517627179, - "frac_activations_gt1": 0.015474304906092584, - "max_activation": 2.0, - "per_layer_activity": [ + "T": 16, + "arm": "both", + "acc": 0.6585714285714286, + "syn_per_inference": 2552953.403409091, + "dense_per_inference": 19628032.0, + "event_fraction_of_dense": 0.13006670273459361 + }, { - "layer": 0, - "mean_integer_activation": 0.15802038845606148, - "peak_tick_activation": 0.49263306334614754, - "storm_ratio": 3.1175284921105426, - "tick_activity_cv": 0.49052218172508755, - "frac_activations_gt1": 0.015474304906092584, - "max_activation": 2.0 + "T": 25, + "arm": "raw", + "acc": 0.8828571428571429, + "syn_per_inference": 2582600.840909091, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.08420938676795606 }, { - "layer": 1, - "mean_integer_activation": 0.04888225555419922, - "peak_tick_activation": 0.12928390502929688, - "storm_ratio": 2.6448023636296947, - "tick_activity_cv": 0.34407489251945067, - "frac_activations_gt1": 0.0008569717174395919, - "max_activation": 2.0 + "T": 25, + "arm": "thresh", + "acc": 0.9257142857142857, + "syn_per_inference": 2259412.2305194805, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.07367136081357864 }, { - "layer": 2, - "mean_integer_activation": 0.07148918151855468, - "peak_tick_activation": 0.250946044921875, - "storm_ratio": 3.510266023352682, - "tick_activity_cv": 0.47890700044113194, - "frac_activations_gt1": 0.001144943234976381, - "max_activation": 2.0 + "T": 25, + "arm": "ftbc", + "acc": 0.8107142857142857, + "syn_per_inference": 3033411.4326298703, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.09890870958856787 + }, + { + "T": 25, + "arm": "both", + "acc": 0.765, + "syn_per_inference": 2715560.4196428573, + "dense_per_inference": 30668800.0, + "event_fraction_of_dense": 0.08854472361627638 } ], - "expanded_vs_graded_agreement": 0.99609375, - "expanded_acc": 0.859375, - "graded_acc": 0.859375, - "syn_ratio_expanded_over_graded": 1.0003264306776647, - "expansion_caveat": "exact only at beta=1 (IAF); with beta<1 the expanded mode applies decay per sub-tick and drifts" + "calibration_reference": "same network at full T (NOT a source ANN)" }, "config": { "method": "harmonic_matched", @@ -5742,7 +4153,7 @@ "decision_margin": 2.0, "export": false, "seed": 1234, - "hub_dir": "/kaggle/working/hub/opt07_sfa_integer_train/sfa_D2", + "hub_dir": "/kaggle/working/hub/opt03_ftbc_threshold_balance/t_sweep_ultra_low", "repo_id": "UWU-R-13/SSVEP-SNN", "push_hf": false, "keep_epoch_weights": 1, @@ -5753,20 +4164,23 @@ "bench_warmup": 10, "bench_iters": 50, "bench_train_steps": 20, - "sfa_levels": 2, - "soft_reset": true, - "storm_reg": 0.001, - "infer_mode": "graded", - "t_sweep": "4,8,16,25,50,100", + "calibrate_thresh": true, + "calib_percentile": 99.9, + "calib_batches": 8, + "ftbc": true, + "ftbc_target_ticks": 8, + "ftbc_ref_ticks": 0, + "ftbc_lr": 1.0, + "t_sweep": "2,3,4,6,8,12,16,25", "sampling_rate": 250.0 } }, "zip": { - "name": "sfa_D2.zip", + "name": "t_sweep_ultra_low.zip", "files": 81, - "bytes": 12264965, + "bytes": 12250607, "MB": 12.3, - "sha256": "12f516ca4e75f20a105f77f1149f7751c21d606a5fd22e4fdcff40198d82098a" + "sha256": "39c7a527158f3ac451c03f8cd69f8d779aa19f416260eb3eb5582179915c5f2a" } } ] \ No newline at end of file