feat: modernize PSO and add convergence research

Migrate the package and examples to the tensor-native PyTorch implementation, add benchmark evidence, and add the guarded post-training convergence protocol with TensorBoard progress monitoring and hash-verified recovery.

Constraint: Preserve one-shot official-test sealing and auditable research artifacts

Rejected: Commit local .omc runs and downloaded datasets | multi-gigabyte runtime state is machine-local

Confidence: high

Scope-risk: broad

Not-tested: Production CUDA run on pieroot-server
This commit is contained in:
2026-09-07 22:03:25 +09:00
parent 9745bb7ad4
commit 813433000a
120 changed files with 198148 additions and 4745 deletions
@@ -0,0 +1,36 @@
dataset,method,n_particles,epochs,n_seeds,eval_acc_mean,eval_acc_std,eval_acc_median,eval_acc_iqr,eval_acc_ci95,eval_loss_mean,eval_loss_std,eval_loss_median,eval_loss_iqr,eval_loss_ci95,eval_mse_mean,eval_mse_std,train_acc_mean,train_loss_mean,runtime_seconds_mean,runtime_seconds_std,rank_acc,rank_loss
Digits,adaptive_moment,24,50,5,0.267778,0.018279,0.272222,0.002778,0.022695,2.108837,0.023357,2.10196,0.039265,0.029001,0.084021,0.001996,0.2718,2.086962,2.499448,0.161274,3,4
Digits,bare_bones,24,50,5,0.19,0.056266,0.155556,0.1,0.069863,2.250203,0.084448,2.251535,0.020136,0.104855,0.088622,0.003141,0.2,2.230929,2.564876,0.124195,6,6
Digits,clpso,24,50,5,0.207778,0.050629,0.213889,0.05,0.062863,2.204543,0.023215,2.210108,0.008743,0.028825,0.087396,0.001398,0.223,2.176502,2.519316,0.326734,5,5
Digits,constriction,24,50,5,0.372778,0.017938,0.380556,0.025,0.022272,1.765113,0.057309,1.760801,0.0677,0.071157,0.074815,0.001608,0.382,1.720719,2.330013,0.148841,1,1
Digits,fips,24,50,5,0.249444,0.06147,0.263889,0.069444,0.076324,2.064165,0.091569,2.064055,0.108705,0.113696,0.084041,0.002578,0.2662,2.056891,2.621102,0.126036,4,3
Digits,inertia,24,50,5,0.303333,0.061658,0.305556,0.088889,0.076557,1.980667,0.14307,1.956439,0.144242,0.177642,0.080715,0.004026,0.297,2.014632,2.006851,0.09822,2,2
Digits,original,24,50,5,0.164444,0.022343,0.158333,0.036111,0.027743,2.269628,0.025331,2.255083,0.030712,0.031453,0.089494,0.000451,0.1798,2.266102,2.272324,0.113557,7,7
Iris,adaptive_moment,24,60,5,0.846667,0.076739,0.866667,0.133333,0.095283,0.349701,0.178108,0.334009,0.15044,0.221147,0.071416,0.035403,0.89,0.294127,1.392557,0.004708,4,4
Iris,bare_bones,24,60,5,0.846667,0.055777,0.833333,0.066667,0.069256,0.405791,0.172336,0.367909,0.160981,0.21398,0.072802,0.025814,0.885,0.30248,1.66449,0.144454,5,5
Iris,clpso,24,60,5,0.793333,0.076012,0.766667,0.066667,0.094379,0.44827,0.053877,0.474597,0.049216,0.066896,0.091464,0.016877,0.78,0.462534,1.86465,0.145025,6,6
Iris,constriction,24,60,5,0.94,0.036515,0.966667,0.066667,0.045338,0.171796,0.076965,0.148386,0.105914,0.095563,0.033793,0.017284,0.991667,0.032715,1.4309,0.079265,2,2
Iris,fips,24,60,5,0.74,0.054772,0.733333,0.033333,0.068008,0.60501,0.060601,0.625894,0.064748,0.075245,0.117407,0.008091,0.766667,0.595101,2.072251,0.154361,7,7
Iris,inertia,24,60,5,0.94,0.027889,0.933333,0.033333,0.034628,0.106901,0.053063,0.108104,0.053939,0.065885,0.024266,0.011903,0.983333,0.040899,1.569569,0.121148,1,1
Iris,original,24,60,5,0.92,0.086923,0.966667,0.033333,0.107927,0.222324,0.155767,0.192657,0.065706,0.193407,0.043721,0.035081,0.966667,0.08742,1.502316,0.042929,3,3
MNIST,adaptive_moment,30,80,5,0.262,0.01044,0.269,0.014,0.012963,2.219058,0.104724,2.175837,0.105964,0.13003,0.087089,0.001349,0.2678,2.184856,3.547601,0.614982,4,4
MNIST,bare_bones,30,80,5,0.4126,0.037958,0.408,0.057,0.04713,1.965562,0.175909,1.989087,0.298842,0.218416,0.077204,0.004802,0.4408,1.8435,3.435835,0.303983,3,3
MNIST,clpso,30,80,5,0.2068,0.022775,0.2,0.019,0.028278,2.285833,0.068177,2.307686,0.037065,0.084651,0.089514,0.00163,0.2342,2.199232,3.536445,0.226486,6,6
MNIST,constriction,30,80,5,0.52,0.046244,0.528,0.047,0.057418,1.507968,0.149152,1.509533,0.108216,0.185194,0.063327,0.005427,0.5968,1.284408,3.298112,0.589527,1,1
MNIST,fips,30,80,5,0.2106,0.048066,0.229,0.04,0.05968,2.22323,0.073048,2.176908,0.130584,0.0907,0.088006,0.001556,0.2302,2.177675,3.806571,0.141017,5,5
MNIST,inertia,30,80,5,0.4684,0.075252,0.497,0.108,0.093436,1.716089,0.260764,1.620183,0.331954,0.323776,0.070705,0.008553,0.552,1.44457,3.048485,0.155303,2,2
MNIST,original,30,80,5,0.144,0.016628,0.143,0.026,0.020646,2.428194,0.091877,2.415645,0.154207,0.114079,0.093035,0.001872,0.1563,2.385448,3.490117,0.862784,7,7
Seeds,adaptive_moment,24,60,5,0.890476,0.046413,0.904762,0.047619,0.057629,0.315947,0.120895,0.278367,0.077865,0.150108,0.053174,0.012296,0.917857,0.225176,1.407326,0.041435,2,1
Seeds,bare_bones,24,60,5,0.871429,0.068595,0.857143,0.095238,0.08517,0.42192,0.120052,0.439151,0.13714,0.149062,0.069299,0.016028,0.882143,0.348336,1.54165,0.018779,6,5
Seeds,clpso,24,60,5,0.857143,0.029161,0.857143,0.023809,0.036207,0.469817,0.073254,0.510473,0.12722,0.090955,0.0841,0.011752,0.892857,0.369897,1.537528,0.018265,7,6
Seeds,constriction,24,60,5,0.890476,0.091597,0.880952,0.095238,0.113731,0.35142,0.3882,0.252366,0.243302,0.482006,0.056642,0.052203,0.960714,0.100819,1.36371,0.053261,3,3
Seeds,fips,24,60,5,0.885714,0.035315,0.880952,0.02381,0.043849,0.383732,0.103951,0.392303,0.094168,0.12907,0.067541,0.016554,0.9,0.336734,1.815592,0.045394,4,4
Seeds,inertia,24,60,5,0.914286,0.052164,0.928571,0.023809,0.064769,0.331656,0.342636,0.202104,0.068956,0.425432,0.048999,0.036322,0.963095,0.103132,1.318196,0.015319,1,2
Seeds,original,24,60,5,0.87619,0.042592,0.880952,0.071429,0.052884,0.49224,0.433653,0.324954,0.104917,0.538443,0.065762,0.028096,0.916667,0.246239,1.385803,0.082957,5,7
XOR,adaptive_moment,24,80,5,1.0,0.0,1.0,0.0,0.0,0.190431,0.178122,0.197448,0.188515,0.221164,0.04504,0.056878,1.0,0.190431,1.785274,0.092073,5,5
XOR,bare_bones,24,80,5,1.0,0.0,1.0,0.0,0.0,0.0821,0.056963,0.081613,0.055056,0.070728,0.010907,0.010338,1.0,0.0821,2.031221,0.13707,4,4
XOR,clpso,24,80,5,0.6,0.136931,0.5,0.25,0.170019,0.548166,0.031946,0.55628,0.024237,0.039666,0.183052,0.012602,0.6,0.548166,2.295572,0.260868,7,7
XOR,constriction,24,80,5,1.0,0.0,1.0,0.0,0.0,0.004086,0.002357,0.005281,0.001585,0.002927,3.2e-05,1.9e-05,1.0,0.004086,1.987776,0.182034,1,1
XOR,fips,24,80,5,0.75,0.25,0.75,0.5,0.310411,0.546355,0.059307,0.568609,0.092147,0.073638,0.178887,0.029466,0.75,0.546355,2.502509,0.055447,6,6
XOR,inertia,24,80,5,1.0,0.0,1.0,0.0,0.0,0.004431,0.003308,0.003801,0.001559,0.004108,3.6e-05,3.1e-05,1.0,0.004431,1.969097,0.170892,2,2
XOR,original,24,80,5,1.0,0.0,1.0,0.0,0.0,0.004558,0.002672,0.004584,0.001454,0.003318,4.2e-05,2.8e-05,1.0,0.004558,1.905231,0.246635,3,3
1 dataset method n_particles epochs n_seeds eval_acc_mean eval_acc_std eval_acc_median eval_acc_iqr eval_acc_ci95 eval_loss_mean eval_loss_std eval_loss_median eval_loss_iqr eval_loss_ci95 eval_mse_mean eval_mse_std train_acc_mean train_loss_mean runtime_seconds_mean runtime_seconds_std rank_acc rank_loss
2 Digits adaptive_moment 24 50 5 0.267778 0.018279 0.272222 0.002778 0.022695 2.108837 0.023357 2.10196 0.039265 0.029001 0.084021 0.001996 0.2718 2.086962 2.499448 0.161274 3 4
3 Digits bare_bones 24 50 5 0.19 0.056266 0.155556 0.1 0.069863 2.250203 0.084448 2.251535 0.020136 0.104855 0.088622 0.003141 0.2 2.230929 2.564876 0.124195 6 6
4 Digits clpso 24 50 5 0.207778 0.050629 0.213889 0.05 0.062863 2.204543 0.023215 2.210108 0.008743 0.028825 0.087396 0.001398 0.223 2.176502 2.519316 0.326734 5 5
5 Digits constriction 24 50 5 0.372778 0.017938 0.380556 0.025 0.022272 1.765113 0.057309 1.760801 0.0677 0.071157 0.074815 0.001608 0.382 1.720719 2.330013 0.148841 1 1
6 Digits fips 24 50 5 0.249444 0.06147 0.263889 0.069444 0.076324 2.064165 0.091569 2.064055 0.108705 0.113696 0.084041 0.002578 0.2662 2.056891 2.621102 0.126036 4 3
7 Digits inertia 24 50 5 0.303333 0.061658 0.305556 0.088889 0.076557 1.980667 0.14307 1.956439 0.144242 0.177642 0.080715 0.004026 0.297 2.014632 2.006851 0.09822 2 2
8 Digits original 24 50 5 0.164444 0.022343 0.158333 0.036111 0.027743 2.269628 0.025331 2.255083 0.030712 0.031453 0.089494 0.000451 0.1798 2.266102 2.272324 0.113557 7 7
9 Iris adaptive_moment 24 60 5 0.846667 0.076739 0.866667 0.133333 0.095283 0.349701 0.178108 0.334009 0.15044 0.221147 0.071416 0.035403 0.89 0.294127 1.392557 0.004708 4 4
10 Iris bare_bones 24 60 5 0.846667 0.055777 0.833333 0.066667 0.069256 0.405791 0.172336 0.367909 0.160981 0.21398 0.072802 0.025814 0.885 0.30248 1.66449 0.144454 5 5
11 Iris clpso 24 60 5 0.793333 0.076012 0.766667 0.066667 0.094379 0.44827 0.053877 0.474597 0.049216 0.066896 0.091464 0.016877 0.78 0.462534 1.86465 0.145025 6 6
12 Iris constriction 24 60 5 0.94 0.036515 0.966667 0.066667 0.045338 0.171796 0.076965 0.148386 0.105914 0.095563 0.033793 0.017284 0.991667 0.032715 1.4309 0.079265 2 2
13 Iris fips 24 60 5 0.74 0.054772 0.733333 0.033333 0.068008 0.60501 0.060601 0.625894 0.064748 0.075245 0.117407 0.008091 0.766667 0.595101 2.072251 0.154361 7 7
14 Iris inertia 24 60 5 0.94 0.027889 0.933333 0.033333 0.034628 0.106901 0.053063 0.108104 0.053939 0.065885 0.024266 0.011903 0.983333 0.040899 1.569569 0.121148 1 1
15 Iris original 24 60 5 0.92 0.086923 0.966667 0.033333 0.107927 0.222324 0.155767 0.192657 0.065706 0.193407 0.043721 0.035081 0.966667 0.08742 1.502316 0.042929 3 3
16 MNIST adaptive_moment 30 80 5 0.262 0.01044 0.269 0.014 0.012963 2.219058 0.104724 2.175837 0.105964 0.13003 0.087089 0.001349 0.2678 2.184856 3.547601 0.614982 4 4
17 MNIST bare_bones 30 80 5 0.4126 0.037958 0.408 0.057 0.04713 1.965562 0.175909 1.989087 0.298842 0.218416 0.077204 0.004802 0.4408 1.8435 3.435835 0.303983 3 3
18 MNIST clpso 30 80 5 0.2068 0.022775 0.2 0.019 0.028278 2.285833 0.068177 2.307686 0.037065 0.084651 0.089514 0.00163 0.2342 2.199232 3.536445 0.226486 6 6
19 MNIST constriction 30 80 5 0.52 0.046244 0.528 0.047 0.057418 1.507968 0.149152 1.509533 0.108216 0.185194 0.063327 0.005427 0.5968 1.284408 3.298112 0.589527 1 1
20 MNIST fips 30 80 5 0.2106 0.048066 0.229 0.04 0.05968 2.22323 0.073048 2.176908 0.130584 0.0907 0.088006 0.001556 0.2302 2.177675 3.806571 0.141017 5 5
21 MNIST inertia 30 80 5 0.4684 0.075252 0.497 0.108 0.093436 1.716089 0.260764 1.620183 0.331954 0.323776 0.070705 0.008553 0.552 1.44457 3.048485 0.155303 2 2
22 MNIST original 30 80 5 0.144 0.016628 0.143 0.026 0.020646 2.428194 0.091877 2.415645 0.154207 0.114079 0.093035 0.001872 0.1563 2.385448 3.490117 0.862784 7 7
23 Seeds adaptive_moment 24 60 5 0.890476 0.046413 0.904762 0.047619 0.057629 0.315947 0.120895 0.278367 0.077865 0.150108 0.053174 0.012296 0.917857 0.225176 1.407326 0.041435 2 1
24 Seeds bare_bones 24 60 5 0.871429 0.068595 0.857143 0.095238 0.08517 0.42192 0.120052 0.439151 0.13714 0.149062 0.069299 0.016028 0.882143 0.348336 1.54165 0.018779 6 5
25 Seeds clpso 24 60 5 0.857143 0.029161 0.857143 0.023809 0.036207 0.469817 0.073254 0.510473 0.12722 0.090955 0.0841 0.011752 0.892857 0.369897 1.537528 0.018265 7 6
26 Seeds constriction 24 60 5 0.890476 0.091597 0.880952 0.095238 0.113731 0.35142 0.3882 0.252366 0.243302 0.482006 0.056642 0.052203 0.960714 0.100819 1.36371 0.053261 3 3
27 Seeds fips 24 60 5 0.885714 0.035315 0.880952 0.02381 0.043849 0.383732 0.103951 0.392303 0.094168 0.12907 0.067541 0.016554 0.9 0.336734 1.815592 0.045394 4 4
28 Seeds inertia 24 60 5 0.914286 0.052164 0.928571 0.023809 0.064769 0.331656 0.342636 0.202104 0.068956 0.425432 0.048999 0.036322 0.963095 0.103132 1.318196 0.015319 1 2
29 Seeds original 24 60 5 0.87619 0.042592 0.880952 0.071429 0.052884 0.49224 0.433653 0.324954 0.104917 0.538443 0.065762 0.028096 0.916667 0.246239 1.385803 0.082957 5 7
30 XOR adaptive_moment 24 80 5 1.0 0.0 1.0 0.0 0.0 0.190431 0.178122 0.197448 0.188515 0.221164 0.04504 0.056878 1.0 0.190431 1.785274 0.092073 5 5
31 XOR bare_bones 24 80 5 1.0 0.0 1.0 0.0 0.0 0.0821 0.056963 0.081613 0.055056 0.070728 0.010907 0.010338 1.0 0.0821 2.031221 0.13707 4 4
32 XOR clpso 24 80 5 0.6 0.136931 0.5 0.25 0.170019 0.548166 0.031946 0.55628 0.024237 0.039666 0.183052 0.012602 0.6 0.548166 2.295572 0.260868 7 7
33 XOR constriction 24 80 5 1.0 0.0 1.0 0.0 0.0 0.004086 0.002357 0.005281 0.001585 0.002927 3.2e-05 1.9e-05 1.0 0.004086 1.987776 0.182034 1 1
34 XOR fips 24 80 5 0.75 0.25 0.75 0.5 0.310411 0.546355 0.059307 0.568609 0.092147 0.073638 0.178887 0.029466 0.75 0.546355 2.502509 0.055447 6 6
35 XOR inertia 24 80 5 1.0 0.0 1.0 0.0 0.0 0.004431 0.003308 0.003801 0.001559 0.004108 3.6e-05 3.1e-05 1.0 0.004431 1.969097 0.170892 2 2
36 XOR original 24 80 5 1.0 0.0 1.0 0.0 0.0 0.004558 0.002672 0.004584 0.001454 0.003318 4.2e-05 2.8e-05 1.0 0.004558 1.905231 0.246635 3 3