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,61 @@
seed,epoch,train_loss,train_acc,train_mse,test_loss,test_acc,test_mse,fit_time_sec
71,20,1.5967158079147339,0.4830000102519989,0.0660470575094223,1.7100492715835571,0.43799999356269836,0.07075551897287369,32.5467
71,40,1.1239886283874512,0.6434999704360962,0.04822305589914322,1.3276519775390625,0.578000009059906,0.05614830181002617,32.5467
71,60,0.8301568627357483,0.7429999709129333,0.03629826754331589,1.0045816898345947,0.6800000071525574,0.04412851482629776,32.5467
71,80,0.6516683101654053,0.7950000166893005,0.028850017115473747,0.8584634065628052,0.7360000014305115,0.037673790007829666,32.5467
71,100,0.5542685985565186,0.824999988079071,0.024905934929847717,0.7590173482894897,0.7620000243186951,0.03418450802564621,32.5467
71,120,0.49202004075050354,0.8399999737739563,0.021997792646288872,0.7061744332313538,0.7889999747276306,0.03144212067127228,32.5467
71,140,0.45162707567214966,0.8665000200271606,0.01984463632106781,0.6375347971916199,0.796999990940094,0.029180902987718582,32.5467
71,160,0.4246227741241455,0.8740000128746033,0.018856780603528023,0.6248053312301636,0.8009999990463257,0.028511321172118187,32.5467
71,180,0.39958131313323975,0.8799999952316284,0.01768091320991516,0.6031026244163513,0.8159999847412109,0.027248937636613846,32.5467
71,200,0.3831179141998291,0.8924999833106995,0.016940467059612274,0.5841547846794128,0.8180000185966492,0.026774849742650986,32.5467
71,220,0.36869707703590393,0.8970000147819519,0.016194477677345276,0.5548750162124634,0.8259999752044678,0.025661807507276535,32.5467
71,240,0.3557758927345276,0.8989999890327454,0.015656106173992157,0.5201151371002197,0.8420000076293945,0.023789195343852043,32.5467
72,20,1.673862338066101,0.46149998903274536,0.0692000463604927,1.8141505718231201,0.4099999964237213,0.07267315685749054,32.606
72,40,1.1490310430526733,0.6324999928474426,0.04914539307355881,1.372908592224121,0.5709999799728394,0.05662866309285164,32.606
72,60,0.8807169198989868,0.7369999885559082,0.03719912841916084,1.1267516613006592,0.6420000195503235,0.04854830726981163,32.606
72,80,0.6982801556587219,0.7914999723434448,0.030153820291161537,0.9025362133979797,0.7239999771118164,0.038956169039011,32.606
72,100,0.5910305380821228,0.8165000081062317,0.026041019707918167,0.7481632232666016,0.7570000290870667,0.03314316272735596,32.606
72,120,0.5200771689414978,0.8464999794960022,0.022959064692258835,0.6597934365272522,0.7889999747276306,0.029753563925623894,32.606
72,140,0.4719507694244385,0.8554999828338623,0.020908480510115623,0.58547043800354,0.8100000023841858,0.02705816738307476,32.606
72,160,0.4356405735015869,0.871999979019165,0.019257094711065292,0.583936333656311,0.8220000267028809,0.026691943407058716,32.606
72,180,0.4127918779850006,0.8725000023841858,0.018300892785191536,0.5632762312889099,0.8199999928474426,0.025847580283880234,32.606
72,200,0.3940938115119934,0.8805000185966492,0.017671920359134674,0.5363063216209412,0.8339999914169312,0.024680841714143753,32.606
72,220,0.37782323360443115,0.8845000267028809,0.017062701284885406,0.508123517036438,0.8399999737739563,0.023583590984344482,32.606
72,240,0.36558520793914795,0.8899999856948853,0.01645873300731182,0.49120959639549255,0.8429999947547913,0.022604094818234444,32.606
73,20,1.7135908603668213,0.4449999928474426,0.07240503281354904,1.8838708400726318,0.375,0.0778227150440216,32.7255
73,40,1.2155654430389404,0.6340000033378601,0.051504913717508316,1.4863072633743286,0.5569999814033508,0.06111995875835419,32.7255
73,60,0.9407793283462524,0.722000002861023,0.03982725366950035,1.1702646017074585,0.6439999938011169,0.049435749650001526,32.7255
73,80,0.7527623772621155,0.7749999761581421,0.032556530088186264,1.001193642616272,0.6919999718666077,0.04309915751218796,32.7255
73,100,0.6268301606178284,0.8140000104904175,0.027759678661823273,0.8296219706535339,0.7319999933242798,0.03728931397199631,32.7255
73,120,0.5454505681991577,0.8320000171661377,0.02451479621231556,0.7347204089164734,0.7730000019073486,0.03278779238462448,32.7255
73,140,0.46880221366882324,0.8575000166893005,0.021052677184343338,0.6670262813568115,0.7889999747276306,0.030432477593421936,32.7255
73,160,0.43280255794525146,0.8659999966621399,0.01961500570178032,0.6248233914375305,0.8080000281333923,0.028731103986501694,32.7255
73,180,0.4033927321434021,0.8790000081062317,0.017949724569916725,0.5680584907531738,0.8230000138282776,0.02612500637769699,32.7255
73,200,0.3850976228713989,0.8880000114440918,0.017122117802500725,0.5508874654769897,0.8209999799728394,0.025604458525776863,32.7255
73,220,0.3726767599582672,0.8899999856948853,0.016703158617019653,0.5412379503250122,0.8209999799728394,0.025124624371528625,32.7255
73,240,0.3600545823574066,0.8989999890327454,0.016138451173901558,0.5263404250144958,0.8190000057220459,0.024716168642044067,32.7255
74,20,1.5981744527816772,0.49950000643730164,0.06673180311918259,1.7434691190719604,0.42399999499320984,0.07240629941225052,32.9017
74,40,1.1163724660873413,0.6600000262260437,0.047663308680057526,1.2812504768371582,0.6079999804496765,0.05496295168995857,32.9017
74,60,0.8247233629226685,0.7429999709129333,0.03677733987569809,0.996366560459137,0.6800000071525574,0.044562000781297684,32.9017
74,80,0.6858600974082947,0.784500002861023,0.030640259385108948,0.8601324558258057,0.7350000143051147,0.03845023736357689,32.9017
74,100,0.5762760043144226,0.8274999856948853,0.025603292509913445,0.7484227418899536,0.7580000162124634,0.03352699801325798,32.9017
74,120,0.5109706521034241,0.8500000238418579,0.02288639359176159,0.6725562810897827,0.7960000038146973,0.030220312997698784,32.9017
74,140,0.4668312966823578,0.8600000143051147,0.021057307720184326,0.6381762623786926,0.8069999814033508,0.028759241104125977,32.9017
74,160,0.430540531873703,0.8709999918937683,0.01937052235007286,0.6036783456802368,0.8169999718666077,0.026846695691347122,32.9017
74,180,0.4092761278152466,0.8755000233650208,0.018336936831474304,0.5836188793182373,0.8199999928474426,0.0263815987855196,32.9017
74,200,0.3926721215248108,0.8865000009536743,0.017603637650609016,0.5680423378944397,0.8270000219345093,0.02558077871799469,32.9017
74,220,0.38078930974006653,0.8865000009536743,0.017137007787823677,0.5442376136779785,0.8379999995231628,0.024594470858573914,32.9017
74,240,0.37086427211761475,0.8880000114440918,0.016686489805579185,0.5385385155677795,0.8299999833106995,0.024481549859046936,32.9017
75,20,1.635738730430603,0.46950000524520874,0.06960180401802063,1.8486356735229492,0.4059999883174896,0.07580890506505966,32.7233
75,40,1.0605015754699707,0.6604999899864197,0.04849516972899437,1.2981681823730469,0.5630000233650208,0.05867462605237961,32.7233
75,60,0.7738548517227173,0.7615000009536743,0.03458299860358238,1.0294034481048584,0.671999990940094,0.04577324911952019,32.7233
75,80,0.6326538324356079,0.8125,0.02839995175600052,0.889915406703949,0.7300000190734863,0.03931796923279762,32.7233
75,100,0.529951810836792,0.8370000123977661,0.02384800836443901,0.762531042098999,0.7620000243186951,0.034515053033828735,32.7233
75,120,0.47619307041168213,0.8575000166893005,0.021528739482164383,0.6571563482284546,0.781000018119812,0.030564110726118088,32.7233
75,140,0.43610602617263794,0.8709999918937683,0.019426772370934486,0.6097874641418457,0.8140000104904175,0.028030628338456154,32.7233
75,160,0.4064372479915619,0.8794999718666077,0.01836566999554634,0.5621976256370544,0.8309999704360962,0.025522591546177864,32.7233
75,180,0.3866714835166931,0.8865000009536743,0.01732715405523777,0.557114839553833,0.8270000219345093,0.025415310636162758,32.7233
75,200,0.37161633372306824,0.8855000138282776,0.016865627840161324,0.5388693809509277,0.8289999961853027,0.025061823427677155,32.7233
75,220,0.3574405014514923,0.8939999938011169,0.016058821231126785,0.528910756111145,0.8289999961853027,0.024624072015285492,32.7233
75,240,0.3456318974494934,0.8945000171661377,0.0156160369515419,0.5028988122940063,0.8420000076293945,0.023111792281270027,32.7233
1 seed epoch train_loss train_acc train_mse test_loss test_acc test_mse fit_time_sec
2 71 20 1.5967158079147339 0.4830000102519989 0.0660470575094223 1.7100492715835571 0.43799999356269836 0.07075551897287369 32.5467
3 71 40 1.1239886283874512 0.6434999704360962 0.04822305589914322 1.3276519775390625 0.578000009059906 0.05614830181002617 32.5467
4 71 60 0.8301568627357483 0.7429999709129333 0.03629826754331589 1.0045816898345947 0.6800000071525574 0.04412851482629776 32.5467
5 71 80 0.6516683101654053 0.7950000166893005 0.028850017115473747 0.8584634065628052 0.7360000014305115 0.037673790007829666 32.5467
6 71 100 0.5542685985565186 0.824999988079071 0.024905934929847717 0.7590173482894897 0.7620000243186951 0.03418450802564621 32.5467
7 71 120 0.49202004075050354 0.8399999737739563 0.021997792646288872 0.7061744332313538 0.7889999747276306 0.03144212067127228 32.5467
8 71 140 0.45162707567214966 0.8665000200271606 0.01984463632106781 0.6375347971916199 0.796999990940094 0.029180902987718582 32.5467
9 71 160 0.4246227741241455 0.8740000128746033 0.018856780603528023 0.6248053312301636 0.8009999990463257 0.028511321172118187 32.5467
10 71 180 0.39958131313323975 0.8799999952316284 0.01768091320991516 0.6031026244163513 0.8159999847412109 0.027248937636613846 32.5467
11 71 200 0.3831179141998291 0.8924999833106995 0.016940467059612274 0.5841547846794128 0.8180000185966492 0.026774849742650986 32.5467
12 71 220 0.36869707703590393 0.8970000147819519 0.016194477677345276 0.5548750162124634 0.8259999752044678 0.025661807507276535 32.5467
13 71 240 0.3557758927345276 0.8989999890327454 0.015656106173992157 0.5201151371002197 0.8420000076293945 0.023789195343852043 32.5467
14 72 20 1.673862338066101 0.46149998903274536 0.0692000463604927 1.8141505718231201 0.4099999964237213 0.07267315685749054 32.606
15 72 40 1.1490310430526733 0.6324999928474426 0.04914539307355881 1.372908592224121 0.5709999799728394 0.05662866309285164 32.606
16 72 60 0.8807169198989868 0.7369999885559082 0.03719912841916084 1.1267516613006592 0.6420000195503235 0.04854830726981163 32.606
17 72 80 0.6982801556587219 0.7914999723434448 0.030153820291161537 0.9025362133979797 0.7239999771118164 0.038956169039011 32.606
18 72 100 0.5910305380821228 0.8165000081062317 0.026041019707918167 0.7481632232666016 0.7570000290870667 0.03314316272735596 32.606
19 72 120 0.5200771689414978 0.8464999794960022 0.022959064692258835 0.6597934365272522 0.7889999747276306 0.029753563925623894 32.606
20 72 140 0.4719507694244385 0.8554999828338623 0.020908480510115623 0.58547043800354 0.8100000023841858 0.02705816738307476 32.606
21 72 160 0.4356405735015869 0.871999979019165 0.019257094711065292 0.583936333656311 0.8220000267028809 0.026691943407058716 32.606
22 72 180 0.4127918779850006 0.8725000023841858 0.018300892785191536 0.5632762312889099 0.8199999928474426 0.025847580283880234 32.606
23 72 200 0.3940938115119934 0.8805000185966492 0.017671920359134674 0.5363063216209412 0.8339999914169312 0.024680841714143753 32.606
24 72 220 0.37782323360443115 0.8845000267028809 0.017062701284885406 0.508123517036438 0.8399999737739563 0.023583590984344482 32.606
25 72 240 0.36558520793914795 0.8899999856948853 0.01645873300731182 0.49120959639549255 0.8429999947547913 0.022604094818234444 32.606
26 73 20 1.7135908603668213 0.4449999928474426 0.07240503281354904 1.8838708400726318 0.375 0.0778227150440216 32.7255
27 73 40 1.2155654430389404 0.6340000033378601 0.051504913717508316 1.4863072633743286 0.5569999814033508 0.06111995875835419 32.7255
28 73 60 0.9407793283462524 0.722000002861023 0.03982725366950035 1.1702646017074585 0.6439999938011169 0.049435749650001526 32.7255
29 73 80 0.7527623772621155 0.7749999761581421 0.032556530088186264 1.001193642616272 0.6919999718666077 0.04309915751218796 32.7255
30 73 100 0.6268301606178284 0.8140000104904175 0.027759678661823273 0.8296219706535339 0.7319999933242798 0.03728931397199631 32.7255
31 73 120 0.5454505681991577 0.8320000171661377 0.02451479621231556 0.7347204089164734 0.7730000019073486 0.03278779238462448 32.7255
32 73 140 0.46880221366882324 0.8575000166893005 0.021052677184343338 0.6670262813568115 0.7889999747276306 0.030432477593421936 32.7255
33 73 160 0.43280255794525146 0.8659999966621399 0.01961500570178032 0.6248233914375305 0.8080000281333923 0.028731103986501694 32.7255
34 73 180 0.4033927321434021 0.8790000081062317 0.017949724569916725 0.5680584907531738 0.8230000138282776 0.02612500637769699 32.7255
35 73 200 0.3850976228713989 0.8880000114440918 0.017122117802500725 0.5508874654769897 0.8209999799728394 0.025604458525776863 32.7255
36 73 220 0.3726767599582672 0.8899999856948853 0.016703158617019653 0.5412379503250122 0.8209999799728394 0.025124624371528625 32.7255
37 73 240 0.3600545823574066 0.8989999890327454 0.016138451173901558 0.5263404250144958 0.8190000057220459 0.024716168642044067 32.7255
38 74 20 1.5981744527816772 0.49950000643730164 0.06673180311918259 1.7434691190719604 0.42399999499320984 0.07240629941225052 32.9017
39 74 40 1.1163724660873413 0.6600000262260437 0.047663308680057526 1.2812504768371582 0.6079999804496765 0.05496295168995857 32.9017
40 74 60 0.8247233629226685 0.7429999709129333 0.03677733987569809 0.996366560459137 0.6800000071525574 0.044562000781297684 32.9017
41 74 80 0.6858600974082947 0.784500002861023 0.030640259385108948 0.8601324558258057 0.7350000143051147 0.03845023736357689 32.9017
42 74 100 0.5762760043144226 0.8274999856948853 0.025603292509913445 0.7484227418899536 0.7580000162124634 0.03352699801325798 32.9017
43 74 120 0.5109706521034241 0.8500000238418579 0.02288639359176159 0.6725562810897827 0.7960000038146973 0.030220312997698784 32.9017
44 74 140 0.4668312966823578 0.8600000143051147 0.021057307720184326 0.6381762623786926 0.8069999814033508 0.028759241104125977 32.9017
45 74 160 0.430540531873703 0.8709999918937683 0.01937052235007286 0.6036783456802368 0.8169999718666077 0.026846695691347122 32.9017
46 74 180 0.4092761278152466 0.8755000233650208 0.018336936831474304 0.5836188793182373 0.8199999928474426 0.0263815987855196 32.9017
47 74 200 0.3926721215248108 0.8865000009536743 0.017603637650609016 0.5680423378944397 0.8270000219345093 0.02558077871799469 32.9017
48 74 220 0.38078930974006653 0.8865000009536743 0.017137007787823677 0.5442376136779785 0.8379999995231628 0.024594470858573914 32.9017
49 74 240 0.37086427211761475 0.8880000114440918 0.016686489805579185 0.5385385155677795 0.8299999833106995 0.024481549859046936 32.9017
50 75 20 1.635738730430603 0.46950000524520874 0.06960180401802063 1.8486356735229492 0.4059999883174896 0.07580890506505966 32.7233
51 75 40 1.0605015754699707 0.6604999899864197 0.04849516972899437 1.2981681823730469 0.5630000233650208 0.05867462605237961 32.7233
52 75 60 0.7738548517227173 0.7615000009536743 0.03458299860358238 1.0294034481048584 0.671999990940094 0.04577324911952019 32.7233
53 75 80 0.6326538324356079 0.8125 0.02839995175600052 0.889915406703949 0.7300000190734863 0.03931796923279762 32.7233
54 75 100 0.529951810836792 0.8370000123977661 0.02384800836443901 0.762531042098999 0.7620000243186951 0.034515053033828735 32.7233
55 75 120 0.47619307041168213 0.8575000166893005 0.021528739482164383 0.6571563482284546 0.781000018119812 0.030564110726118088 32.7233
56 75 140 0.43610602617263794 0.8709999918937683 0.019426772370934486 0.6097874641418457 0.8140000104904175 0.028030628338456154 32.7233
57 75 160 0.4064372479915619 0.8794999718666077 0.01836566999554634 0.5621976256370544 0.8309999704360962 0.025522591546177864 32.7233
58 75 180 0.3866714835166931 0.8865000009536743 0.01732715405523777 0.557114839553833 0.8270000219345093 0.025415310636162758 32.7233
59 75 200 0.37161633372306824 0.8855000138282776 0.016865627840161324 0.5388693809509277 0.8289999961853027 0.025061823427677155 32.7233
60 75 220 0.3574405014514923 0.8939999938011169 0.016058821231126785 0.528910756111145 0.8289999961853027 0.024624072015285492 32.7233
61 75 240 0.3456318974494934 0.8945000171661377 0.0156160369515419 0.5028988122940063 0.8420000076293945 0.023111792281270027 32.7233