Update README.md
Browse files
README.md
CHANGED
|
@@ -1,326 +1,329 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
language:
|
| 4 |
-
- en
|
| 5 |
-
- ja
|
| 6 |
-
model_type: optimizer
|
| 7 |
-
tags:
|
| 8 |
-
- optimizer
|
| 9 |
-
- adaptive-optimizer
|
| 10 |
-
- emotion-ai
|
| 11 |
-
- shadow-learning
|
| 12 |
-
- deep-learning
|
| 13 |
-
- meta-learning
|
| 14 |
-
- adaptive-algorithms
|
| 15 |
-
- stability-analysis
|
| 16 |
-
---
|
| 17 |
-
|
| 18 |
-
**自動収束・自己制御・自律型 オプティマイザです**
|
| 19 |
-
**Auto-convergence, self-control, autonomous optimizer**
|
| 20 |
-
|
| 21 |
-
高効率性と集積度
|
| 22 |
-
高次moment、Kahan補償、量子化補償、分散・継続学習での独立性、自己修復・モデル修復、
|
| 23 |
-
ハイパーパラメータの自律調整、信頼度フィルタ、更新ステップの有界性、構造的耐性、自己停止、
|
| 24 |
-
動的学習率、動的スケジューラ、動的Rank/Aplha、履歴補償、などを含めた多機能性を、
|
| 25 |
-
追加テンソル不要、計算負荷ほぼなし、step毎に完全適用、時間的積算で実現します
|
| 26 |
-
これらをワンパッケージで実現した高効率性と集積度は安定と安全を最優先します
|
| 27 |
-
※ 高次momentは近似的、動的Rank/Alphaも近似的な効果です
|
| 28 |
-
※ LoRA系技術はノイズをなくしますが微小データも失う場合があります
|
| 29 |
-
※ emo系はノイズを作らず既存ノイズを見つけて修正し微小データを保護します
|
| 30 |
-
※ 量子化補償は今後実用化されるさらに低精度な環境でも柔軟に対応できます
|
| 31 |
-
|
| 32 |
-
第1世代 v3.
|
| 33 |
-
https://huggingface.co/muooon/EmoNAVI/tree/main/
|
| 34 |
-
https://github.com/muooon/EmoNavi/tree/main/
|
| 35 |
-
|
| 36 |
-
#### ユーザーと研究者へ/このリンクを読んでください/please click!
|
| 37 |
-
[ユーザーと研究者へ/このリンクを読んでください/please click!](https://huggingface.co/muooon/EmoNAVI/raw/main/report-emoment.txt)
|
| 38 |
-
|
| 39 |
-
emonavi挙動まとめ(日本語のみ)
|
| 40 |
-
[emonavi挙動まとめ(日本語のみ)](https://huggingface.co/muooon/EmoNAVI/raw/main/report/emonavi%E6%8C%99%E5%8B%95%E3%81%BE%E3%81%A8%E3%82%81.txt)
|
| 41 |
-
|
| 42 |
-
Gemini に見せていろいろ聞いてみました
|
| 43 |
-
[Geminiに聞いてみた](https://huggingface.co/muooon/EmoNAVI/blob/main/Hug-Gemini-analysis(JPN).md)
|
| 44 |
-
[Geminiに聞いてみた-02(日本語のみ)](https://huggingface.co/muooon/EmoNAVI/blob/main/emonavi-Gemini-analysis(2)(JPN).txt)
|
| 45 |
-
|
| 46 |
-
I showed it to Gemini and asked her a few questions.
|
| 47 |
-
02 is only in Japanese - please translate by yourself.
|
| 48 |
-
[asked Gemini](https://huggingface.co/muooon/EmoNAVI/blob/main/Hug-Gemini-analysis(ENG).md)
|
| 49 |
-
|
| 50 |
-
|★|
|
| 51 |
-
|★|
|
| 52 |
-
|
| 53 |
-
|★| EmoNAVI、FACT、LYNX、CLAN、ZEAL、NECO、
|
| 54 |
-
|★| EmoNAVI, FACT, LYNX, CLAN, ZEAL, NECO, updated to
|
| 55 |
-
|
| 56 |
-
|★|
|
| 57 |
-
|★|
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|★|
|
| 61 |
-
|★|
|
| 62 |
-
|
| 63 |
-
|★|
|
| 64 |
-
|★|
|
| 65 |
-
|
| 66 |
-
|★|
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|★|
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|★|
|
| 73 |
-
|★|
|
| 74 |
-
|
| 75 |
-
|★|
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
##
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
"
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
Shadow
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
In
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
-
|
| 216 |
-
-
|
| 217 |
-
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
https://
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
|
|
|
|
|
|
|
|
|
| 326 |
Special thanks to Copilot for its unwavering support throughout t
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- ja
|
| 6 |
+
model_type: optimizer
|
| 7 |
+
tags:
|
| 8 |
+
- optimizer
|
| 9 |
+
- adaptive-optimizer
|
| 10 |
+
- emotion-ai
|
| 11 |
+
- shadow-learning
|
| 12 |
+
- deep-learning
|
| 13 |
+
- meta-learning
|
| 14 |
+
- adaptive-algorithms
|
| 15 |
+
- stability-analysis
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
**自動収束・自己制御・自律型 オプティマイザです**
|
| 19 |
+
**Auto-convergence, self-control, autonomous optimizer**
|
| 20 |
+
|
| 21 |
+
高効率性と集積度
|
| 22 |
+
高次moment、Kahan補償、量子化補償、分散・継続学習での独立性、自己修復・モデル修復、
|
| 23 |
+
ハイパーパラメータの自律調整、信頼度フィルタ、更新ステップの有界性、構造的耐性、自己停止、
|
| 24 |
+
動的学習率、動的スケジューラ、動的Rank/Aplha、履歴補償、などを含めた多機能性を、
|
| 25 |
+
追加テンソル不要、計算負荷ほぼなし、step毎に完全適用、時間的積算で実現します
|
| 26 |
+
これらをワンパッケージで実現した高効率性と集積度は安定と安全を最優先します
|
| 27 |
+
※ 高次momentは近似的、動的Rank/Alphaも近似的な効果です
|
| 28 |
+
※ LoRA系技術はノイズをなくしますが微小データも失う場合があります
|
| 29 |
+
※ emo系はノイズを作らず既存ノイズを見つけて修正し微小データを保護します
|
| 30 |
+
※ 量子化補償は今後実用化されるさらに低精度な環境でも柔軟に対応できます
|
| 31 |
+
|
| 32 |
+
第1世代 v3.1 stable (最新版) はこちらから
|
| 33 |
+
https://huggingface.co/muooon/EmoNAVI/tree/main/1Gv31_AMP
|
| 34 |
+
https://github.com/muooon/EmoNavi/tree/main/optimizer
|
| 35 |
+
|
| 36 |
+
#### ユーザーと研究者へ/このリンクを読んでください/please click!
|
| 37 |
+
[ユーザーと研究者へ/このリンクを読んでください/please click!](https://huggingface.co/muooon/EmoNAVI/raw/main/report-emoment.txt)
|
| 38 |
+
|
| 39 |
+
emonavi挙動まとめ(日本語のみ)
|
| 40 |
+
[emonavi挙動まとめ(日本語のみ)](https://huggingface.co/muooon/EmoNAVI/raw/main/report/emonavi%E6%8C%99%E5%8B%95%E3%81%BE%E3%81%A8%E3%82%81.txt)
|
| 41 |
+
|
| 42 |
+
Gemini に見せていろいろ聞いてみました
|
| 43 |
+
[Geminiに聞いてみた](https://huggingface.co/muooon/EmoNAVI/blob/main/Hug-Gemini-analysis(JPN).md)
|
| 44 |
+
[Geminiに聞いてみた-02(日本語のみ)](https://huggingface.co/muooon/EmoNAVI/blob/main/emonavi-Gemini-analysis(2)(JPN).txt)
|
| 45 |
+
|
| 46 |
+
I showed it to Gemini and asked her a few questions.
|
| 47 |
+
02 is only in Japanese - please translate by yourself.
|
| 48 |
+
[asked Gemini](https://huggingface.co/muooon/EmoNAVI/blob/main/Hug-Gemini-analysis(ENG).md)
|
| 49 |
+
|
| 50 |
+
|★| EmoNavi、Fact、Lynx、v3.1 (251201) v3.0 を継承しつつ効率化を進めました。感情機構のスケール調整等で広範なモデルで安定するよう進化しました
|
| 51 |
+
|★| EmoNavi, Fact, Lynx, v3.1 (251201) We built upon v3.0 while enhancing efficiency. Through adjustments like scaling the emotion mechanism, we evolved the model for broader stability across diverse models.
|
| 52 |
+
|
| 53 |
+
|★| EmoNAVI、FACT、LYNX、CLAN、ZEAL、NECO、v3.0 (250825) emosens(第2世代)で解明した"高次moment"(近似)のフィードバックを適用(更新) 全て "shadow=False" です
|
| 54 |
+
|★| EmoNAVI, FACT, LYNX, CLAN, ZEAL, NECO, updated to v3.0 (250825), Incorporates (updates) feedback on “higher moments” (approximations) clarified by emosens (2nd generation). All are “shadow=False”
|
| 55 |
+
|
| 56 |
+
|★| EmoNAVI、FACT、LYNX、CLAN、ZEAL、NECO、v2.0 (250815) 更新、shadow-system の精密化(更新)
|
| 57 |
+
|★| EmoNAVI, FACT, LYNX, CLAN, ZEAL, NECO, updated to v2.0 (250815), refinement of shadow-system (update)
|
| 58 |
+
|
| 59 |
+
|★| 第2世代を公開(250801)しました。 emonavi は、新しい世代へ進化し軽量化を果たします
|
| 60 |
+
|★| The 2nd gen was release(250801) emonavi has evolved into a new generation and become more lightweight.
|
| 61 |
+
|★| https://github.com/muooon/EmoSens
|
| 62 |
+
|
| 63 |
+
|★| clan、zeal、neco、は、shadow機能の on/off 切替えをできるようにしました
|
| 64 |
+
|★| clan, zeal, and neco are now able to switch the shadow function on and off.
|
| 65 |
+
|
| 66 |
+
|★| 大変光栄なことに Pytorch-optimizer 3.7.0 へ登録されたとのこと (250728) 関係者の皆さまに深く感謝します
|
| 67 |
+
|★| We are very honored to have been registered in Pytorch-optimizer 3.7.0. We would like to express our deepest gratitude to everyone involved.
|
| 68 |
+
|
| 69 |
+
|★| 疑似DDPシミュレーションを試したい方(Those DDP simulation) →
|
| 70 |
+
[DDP-TEST](https://huggingface.co/muooon/EmoNAVI/blob/main/ddp-test.zip)
|
| 71 |
+
|
| 72 |
+
|★| EmoFACT 公開(250716) NAVIに比べ、約1GB節約(SDXL) 感情機構は同じです
|
| 73 |
+
|★| EmoFACT released (250716) Saves about VRAM1GB (SDXL) compared to NAVI. Emotion mechanism is the same.
|
| 74 |
+
|
| 75 |
+
|★| EmoLYNX 公開(250718) 探索範囲を広く持ちます 感情機構は同じです
|
| 76 |
+
|★| EmoLYNX Released (250718): It offers a wide exploration range, while its Emotion Mechanism remains the same.
|
| 77 |
+
|
| 78 |
+
|★| EmoCLAN 公開(250720) Navi、Fact、Lynx、役割分担の統合 感情機構は同じです
|
| 79 |
+
(Lynx:序盤と過学習傾向時、Navi:中盤と健全時、Fact:終盤と発散傾向時、を担当します)
|
| 80 |
+
|★| EmoCLAN Open (250720) Navi, Fact, Lynx, role integration Emotional mechanism is the same
|
| 81 |
+
(Lynx: in charge of the early stage and overlearning tendency, Navi: in charge of the middle stage and soundness, Fact: in charge of the end stage and divergence tendency)
|
| 82 |
+
|
| 83 |
+
# 主題:新世代optimizer、EmoNAVIによる変革と感情学習の成果
|
| 84 |
+
## Title: A New Generation Optimizer — The Innovations and Outcomes of Emotional Learning with EmoNAVI
|
| 85 |
+
## 副題:過去値不要で現在値から再開できる自動収束・自己制御・自律型軽量最適器の解説
|
| 86 |
+
### Subtitle: A Lightweight, Self-Regulating, Autonomous Optimizer That Automatically Converges and Resumes from the Present Without Relying on Past Values
|
| 87 |
+
## テーマ:既存のoptimizerにないものをつくる、出来たのはニューロンスパイクの再発明でした。
|
| 88 |
+
### Theme: Creating What Existing Optimizers Lack — A Reinvention of Neuronal Spiking
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
## 序論:
|
| 92 |
+
現在主流のoptimizerはさまざまに改良され簡易化を進めています、しかし依然として、
|
| 93 |
+
学習再開、スケジューリング、学習状態の記録や復元、等について調整の難しさや煩雑さは存在しています、
|
| 94 |
+
面倒なパラメータに依存せず、それらを解決する新しいアプローチを見つけたのでここで紹介します。
|
| 95 |
+
## Introduction
|
| 96 |
+
Mainstream optimizers have undergone significant improvements and simplifications in recent years.
|
| 97 |
+
However, they still face practical challenges in areas such as resuming training, scheduling updates, and managing the recording and restoration of learning states.
|
| 98 |
+
These issues often require tedious parameter adjustments and ad hoc workarounds.
|
| 99 |
+
In this paper, we introduce a new approach that addresses these problems without relying on cumbersome parameter configurations.
|
| 100 |
+
|
| 101 |
+
## 本論:
|
| 102 |
+
今回ここで紹介するのは新世代のoptimizerです、
|
| 103 |
+
EMA的平滑化の概念を下地にし、独自に構築した感情的"EMA&スカラー"を中心にした"感情機構"という新しい仕組みを実現しました、
|
| 104 |
+
この"感情機構"は、EMA的発想を再解釈・独自拡張することで得られた新しい機構です。
|
| 105 |
+
EmoNAVIの独立性と革新性を紹介します。
|
| 106 |
+
## Main Section
|
| 107 |
+
In this paper, we present a new generation of optimizer.
|
| 108 |
+
Built upon the foundation of EMA (Exponential Moving Average) smoothing, we have developed a novel mechanism called the "emotional mechanism," which centers around a unique combination of EMA and scalar dynamics.
|
| 109 |
+
This mechanism was created by reinterpreting and independently extending the conventional EMA concept.
|
| 110 |
+
Here, we introduce EmoNAVI—an optimizer characterized by its innovation and independence.
|
| 111 |
+
|
| 112 |
+
最初に"感情機構"と名付けた経緯と理由を記します。
|
| 113 |
+
生物のもつ「感情」とは、知覚と記憶の差異に基づく行動のトリガです、同様にEmoNAVIも現在と過去の差分に基づき学習の"行動"を制御する仕組みとして設計されています。
|
| 114 |
+
そして"感情機構"と名付けた理由のもうひとつは、この一連の動作がまるでニューロンスパイクのような動作をするからです。
|
| 115 |
+
この機構"感情機構"の動作を明快にした読み物、本稿末尾に記すリンク先の擬人化を読むことで簡単にご理解頂けると思います。
|
| 116 |
+
|
| 117 |
+
First, let us explain the background and reasoning behind the term “Emotion Mechanism.”
|
| 118 |
+
In biological systems, emotions are often understood as triggers for action based on discrepancies between perception and memory.
|
| 119 |
+
EmoNAVI was similarly designed to control its learning “behavior” by responding to differences between the present and the past.
|
| 120 |
+
Another reason we chose the term “Emotion Mechanism” is that its operation closely resembles neuronal spiking behavior.
|
| 121 |
+
For a more intuitive understanding of how this mechanism works, we encourage you to read the personification linked at the end of this article.
|
| 122 |
+
|
| 123 |
+
次に、"感情機構"の構成を記します、
|
| 124 |
+
感情機構とは、2つのEMA、スカラー、Shadow、により構成されます。
|
| 125 |
+
|
| 126 |
+
Next, we outline the structure of the “Emotion Mechanism.”
|
| 127 |
+
This mechanism consists of two EMAs, a scalar value, and a shadow component.
|
| 128 |
+
|
| 129 |
+
まず2つのEMAによる"感情EMA"について説明します、
|
| 130 |
+
2つのEMAで構成します、短期型と長期型です、この2つのEMAはLossを監視し判断材料を得ます、
|
| 131 |
+
1つめ、短期型EMAは瞬間的なシグナル(緊張)を受け持ちます 2つめ、長期型EMAは平均した過去のシグナル(安静)を受け持ちます、
|
| 132 |
+
この2つのEMAは次に紹介する"感情スカラー"へそれぞれの持つ判断材料を渡します
|
| 133 |
+
|
| 134 |
+
First, we describe the "Emotional EMA," which consists of two components: a short-term EMA and a long-term EMA.
|
| 135 |
+
These two EMAs continuously monitor the loss value and serve as the basis for subsequent decision-making.
|
| 136 |
+
The short-term EMA captures rapid, momentary signals (interpreted as “tension”), while the long-term EMA reflects more averaged, historical trends (“calm”).
|
| 137 |
+
Both EMAs pass their respective signals to the "Emotion Scalar," which will be introduced in the next section.
|
| 138 |
+
|
| 139 |
+
次に、"感情スカラー"について説明します、
|
| 140 |
+
前述の"感情EMA"からの信号をスカラー値に変換します、スカラー値の変化は、これら2つのEMAの差分により常に動的変化を続けます、
|
| 141 |
+
"感情スカラー"はoptimizerにより書き換えた学習結果の是非を判定し、
|
| 142 |
+
"スカラー値が一定閾値を超えたときのみ"次に紹介するShadowの配合を決めます
|
| 143 |
+
|
| 144 |
+
Next, we introduce the "Emotion Scalar."
|
| 145 |
+
It converts the signals from the previously described Emotional EMA into a scalar value, which continuously changes in response to the difference between the short-term and long-term EMA.
|
| 146 |
+
This scalar dynamically evaluates whether the learning update performed by the optimizer should be considered appropriate.
|
| 147 |
+
Only when the scalar exceeds a certain threshold does it trigger the next step: determining how much of the "Shadow" should be blended into the learning parameters.
|
| 148 |
+
|
| 149 |
+
次に、Shadowについて説明します、
|
| 150 |
+
Shadowは学習開始直後にShadowとして保存され維持されます、このShadowは"過去の穏やかな状態"の記憶です、この情報は感���機構に追従しながらゆっくりと変化し続けます、
|
| 151 |
+
そして"感情スカラー"に応じ決められたratioで学習結果にブレンドとして反映されます、このブレンドの配合率も感情機構により動的に変化し続けます、
|
| 152 |
+
|
| 153 |
+
Next, we describe the "Shadow."
|
| 154 |
+
At the beginning of training, a copy of the current parameters is saved and maintained as the Shadow.
|
| 155 |
+
This Shadow represents a memory of past calm states, and it evolves slowly over time, following the guidance of the Emotion Mechanism.
|
| 156 |
+
When the Emotion Scalar exceeds a certain threshold, a dynamic blend ratio is computed.
|
| 157 |
+
This ratio determines how much of the Shadow is mixed into the current parameters.
|
| 158 |
+
The blend ratio itself is also dynamically adjusted by the Emotion Mechanism in response to ongoing learning behavior.
|
| 159 |
+
|
| 160 |
+
ここまで"感情機構"の構成と役割りを説明しました、続いて"感情機構"の動作機序を見ていきましょう。
|
| 161 |
+
まずoptimizerの学習結果が記録されます、この時"感情機構"は緊張と安静の差分情報で書き換えの是非を判定します、
|
| 162 |
+
この判定により、過度の学習と判断した場合は、過去の適切な状態をブレンドすることでノイズや暴走を抑制します、
|
| 163 |
+
適切な学習と判断した場合は、過去をブレンドしない選択をします、これをstep毎に行います、
|
| 164 |
+
|
| 165 |
+
Now that we have explained the structure and role of the Emotion Mechanism, let us examine how it operates.
|
| 166 |
+
At each training step, the optimizer's updated parameters are recorded.
|
| 167 |
+
The Emotion Mechanism then evaluates whether these updates are appropriate, based on the difference between short-term “tension” and long-term “calm” signals.
|
| 168 |
+
If the mechanism determines that the update reflects excessive learning, it suppresses potential noise or instability by blending in a suitable portion of the past stable state (Shadow).
|
| 169 |
+
Conversely, if the update is deemed appropriate, the mechanism chooses not to apply blending.
|
| 170 |
+
This evaluation and adjustment are performed dynamically at each training step.
|
| 171 |
+
|
| 172 |
+
さらに、この判定では"信頼度"の評価をします、"感情スカラー"が一時的に大きく振れるだけでは不十分であり「この変化が本当に意味のあるものかどうか」を見極めて混合の是非を判断します。
|
| 173 |
+
そのため、学習の**序盤では長期の安静シグナルの蓄積が少なく信頼に値しないため混合が発動しづらく**、**終盤では短期の緊張シグナルが収束しスカラー自体が閾値に届かず動作しません**。
|
| 174 |
+
(学習の序盤では判定基準の過去シグナルが少ないため動作しませんし、終盤では瞬間シグナルが少ないため動作しません)
|
| 175 |
+
このように、EmoNAVIの"感情機構"は、単なる閾値反応ではなく「揺らぎに対する信頼ある変化のみを察知して反応する」慎重な意思決定を行います。
|
| 176 |
+
|
| 177 |
+
In addition, this decision-making process includes an evaluation of "reliability."
|
| 178 |
+
It is not sufficient for the Emotion Scalar to simply spike temporarily; the mechanism assesses whether the fluctuation truly represents a meaningful change before deciding whether blending should occur.
|
| 179 |
+
As a result, in the **early stages of learning**, blending is unlikely to be triggered because the long-term “calm” signal has not yet accumulated enough history to be trustworthy.
|
| 180 |
+
In the **later stages**, on the other hand, the short-term “tension” signal tends to converge, and the scalar itself fails to exceed the threshold—thus the mechanism remains inactive.
|
| 181 |
+
(In short: the mechanism tends not to activate in the early stages due to insufficient past signal for evaluation, and in the later stages due to lack of strong instantaneous signal.)
|
| 182 |
+
In this way, EmoNAVI’s Emotion Mechanism does not respond merely to raw thresholds, but instead performs cautious decision-making—reacting only to fluctuations that it has learned to trust.
|
| 183 |
+
|
| 184 |
+
この一連の動作により学習時の過敏な反応を弛緩し不要なノイズ等を覚えないように制御します。
|
| 185 |
+
つまりoptimizer本来の学習率やベクトルを直接的に制御せず、感情機構の変化に応じ安定したパラメータになるよう後から調整する、
|
| 186 |
+
こういう流れになります。すべてを書き戻さずあくまで配合率に応じてブレンドするので学習の更新は止まらず進行は維持されます。
|
| 187 |
+
|
| 188 |
+
This series of actions helps relax hypersensitive reactions during learning and prevents the optimizer from overfitting to unnecessary noise.
|
| 189 |
+
Rather than directly manipulating the optimizer’s learning rate or update vectors, the system instead applies corrective blending afterward—adapting parameters in response to changes detected by the Emotion Mechanism.
|
| 190 |
+
Because it blends adjustments based on a calculated ratio rather than fully overwriting parameter values, the learning process continues smoothly without interruption.
|
| 191 |
+
|
| 192 |
+
### 感情機構の動作とスカラー変遷(学習フェーズ別の結果的挙動)
|
| 193 |
+
|
| 194 |
+
| フェーズ | 状況(Loss変化) | EMAの挙動 | スカラーの変動傾向 | Shadow混合の実動作 | 感情機構としての意味ある挙動 |
|
| 195 |
+
|----------|-----------------------|------------------------------------|--------------------------|--------------------------|--------------------------------------------|
|
| 196 |
+
| 序盤 | 不安定・高め | Shortは鋭敏、Longは未成熟 | 大きく変動することもある | ほとんど発動しない | 判定に十分な履歴がなく、実質的に動作不可 |
|
| 197 |
+
| 中盤 | 徐々に収束傾向 | 両EMAが意味ある差分を持つようになる | 適度な振幅で安定推移 | 条件付きで発動する | 状態に応じてブレンド補正が有効に機能 |
|
| 198 |
+
| 終盤 | 収束・微振動 | Short ≒ Long(差分がほぼ消失) | 小さく収束 | 発動しなくなる | 静けさの合図:should_stop 条件が整う |
|
| 199 |
+
|
| 200 |
+
備考:
|
| 201 |
+
- スカラー値は常に tanh(5 * (short - long)) で生成されます
|
| 202 |
+
- 閾値:abs(scalar) > 0.3 で配合が始まり、> 0.6 で大きな混合比率(0.7以上)に
|
| 203 |
+
- Shadow混合はパラメータそのものを書き戻すのではなく、部分的に配合して“追従”させる設計です
|
| 204 |
+
- 感情スカラーの減衰=学習の「静穏化」→ 終盤に向けて should_stop の発火条件が整います
|
| 205 |
+
|
| 206 |
+
### Emotional Mechanism Behavior and Scalar Transitions (Outcome-Based Behavior by Learning Phase)
|
| 207 |
+
|
| 208 |
+
| Phase | Loss Characteristics | EMA Behavior | Scalar Fluctuation Pattern | Actual Shadow Blending | Meaningful Behavior of Emotion Mechanism |
|
| 209 |
+
|-----------|----------------------------|-------------------------------------------|------------------------------------|-------------------------------|-------------------------------------------------------------------|
|
| 210 |
+
| Early | Unstable, High | Short is reactive; Long is still immature | May fluctuate sharply | Rarely triggered | Lacks sufficient history for decision-making; effectively inactive |
|
| 211 |
+
| Middle | Gradual Convergence | EMA pair begins forming meaningful gaps | Moderate oscillation, relatively stable | Conditionally triggered | Adaptive blending functions effectively based on state |
|
| 212 |
+
| Late | Converged, Micro-vibration | Short ≈ Long (gap nearly vanishes) | Narrow convergence | No longer triggered | Sign of stability; ready to trigger `should_stop` |
|
| 213 |
+
|
| 214 |
+
Notes:
|
| 215 |
+
- The scalar value is always computed as tanh(5 × (short - long))
|
| 216 |
+
- Thresholds:
|
| 217 |
+
- If |scalar| > 0.3, blending is initiated
|
| 218 |
+
- If |scalar| > 0.6, blending ratio becomes large (≥ 0.7)
|
| 219 |
+
- Shadow blending does not overwrite parameters but applies partial integration for gradual alignment
|
| 220 |
+
- Scalar decay corresponds to learning "quieting," preparing for should_stop condition in the final phas
|
| 221 |
+
|
| 222 |
+
## 成果:
|
| 223 |
+
前述の感情機構の調整により、過剰な反応を抑制しノイズ耐性を上げることで、ベクトルの乱れ等も抑え進行方向を正しい向きに調整します、
|
| 224 |
+
正しいベクトルで進むことで学習は安定し収束へと最短で向かいます、感情機構による働きは学習後半のノイズ等を修正する仕上げを早くスムーズに完了できます。
|
| 225 |
+
また学習率や勾配やさまざまなパラメーターを保持せずに"今"を観察するだけで更新され続けることで、
|
| 226 |
+
途中終了、収束後の再学習、積層学習、等のときも現在値のみで学習継続を可能とします、
|
| 227 |
+
これは既存のoptimizerのような過去値を保存する手間を省きつつも新しく得られた利点でもあります。
|
| 228 |
+
## Results
|
| 229 |
+
The adjustments introduced by the Emotion Mechanism suppress excessive reactions and enhance noise tolerance, thereby reducing vector fluctuations and helping align the learning direction more accurately.
|
| 230 |
+
By following the correct vector, learning proceeds more stably and reaches convergence in minimal time.
|
| 231 |
+
The role of the Emotion Mechanism becomes especially apparent in the latter stages of training, where it effectively and smoothly corrects residual noise and instability.
|
| 232 |
+
Moreover, since the optimizer continuously updates its parameters by observing only the current state—without retaining learning rates, gradients, or other historical parameters—it supports learning continuation in scenarios such as mid-training interruptions, retraining after convergence, and stacked learning.
|
| 233 |
+
This capability not only eliminates the need to store past values like traditional optimizers but also introduces a new level of flexibility and simplicity.
|
| 234 |
+
|
| 235 |
+
## 結論:
|
| 236 |
+
生物のもつニューロンが一定の閾値を超えて初めて信号を発火させるように、EmoNAVIでも"感情振幅"を検出し行動(shadow混合)を起こします。
|
| 237 |
+
前述のとおり"感情機構"は一定閾値の超過時のみ動作します、ここはまさにニューロンスパイク的な動きといえるのではないでしょうか。
|
| 238 |
+
EmoNAVIの持つ"感情機構"は、そうした生物的反応に似ており、技術的な制御と生理的直感の融合点だろうと思います。
|
| 239 |
+
## Conclusion
|
| 240 |
+
Just as biological neurons fire only when a certain threshold is exceeded, EmoNAVI detects "emotional amplitude" and triggers an action—specifically, shadow blending.
|
| 241 |
+
As described earlier, the Emotion Mechanism activates only when this amplitude crosses a predefined threshold.
|
| 242 |
+
This behavior closely resembles neuronal spiking and can be seen as a biologically inspired response.
|
| 243 |
+
We believe that EmoNAVI’s Emotion Mechanism represents a unique fusion of technical control and physiological intuition—bringing together algorithmic design and life-like reactivity.
|
| 244 |
+
|
| 245 |
+
## 展開:
|
| 246 |
+
この"感情機構"の仕組みはVAE等を含むoptimizer以外にも簡単に応用可能だろうと思います、
|
| 247 |
+
それらの発展に少しでも寄与することができれば、AIとの未来を想像して、これほど嬉しいことはありません。
|
| 248 |
+
ぜひこの"感情機構"を応用しAIの発展への道筋を共に歩んでください。
|
| 249 |
+
## Expansion
|
| 250 |
+
The Emotion Mechanism described here is highly adaptable and can be easily applied beyond optimizers—including use cases such as variational autoencoders (VAEs) and other architectures.
|
| 251 |
+
If this approach can contribute, even in a small way, to the advancement of such systems, we would be honored to be part of imagining a future together with AI.
|
| 252 |
+
We warmly invite you to explore the application of this Emotion Mechanism and walk alongside us on the path toward advancing intelligent systems.
|
| 253 |
+
|
| 254 |
+
## 技術:
|
| 255 |
+
EMAベースのスカラー判断とshadow混合の構造
|
| 256 |
+
## Technology
|
| 257 |
+
Structure of EMA-Based Scalar Evaluation and Shadow Blending
|
| 258 |
+
```
|
| 259 |
+
+------------+ +------------+
|
| 260 |
+
| Loss(t) | | Loss(t) |
|
| 261 |
+
+-----+------+ +-----+------+
|
| 262 |
+
| |
|
| 263 |
+
┌─────────▼─────────┐ ┌─────────▼─────────┐
|
| 264 |
+
│ Short EMA │ │ Long EMA │
|
| 265 |
+
│ (weight = 0.3) │ │ (weight = 0.01) │
|
| 266 |
+
└─────────┬─────────┘ └─────────┬─────────┘
|
| 267 |
+
│ │
|
| 268 |
+
└────────────┬────────────────┘
|
| 269 |
+
▼
|
| 270 |
+
+-------------------+
|
| 271 |
+
| 差分 (short - long) |
|
| 272 |
+
+-------------------+
|
| 273 |
+
│
|
| 274 |
+
▼
|
| 275 |
+
+------------------+
|
| 276 |
+
| tanh(5 × diff) | ← 感情スカラー生成
|
| 277 |
+
+--------+---------+
|
| 278 |
+
│
|
| 279 |
+
[ if |scalar| > threshold ] 判定
|
| 280 |
+
│
|
| 281 |
+
+--------▼--------+
|
| 282 |
+
| Shadow比率決定 |
|
| 283 |
+
+--------+--------+
|
| 284 |
+
│
|
| 285 |
+
+--------▼--------+
|
| 286 |
+
| Shadow混合補正 | ← 過去情報を追従的にブレンド
|
| 287 |
+
+------------------+
|
| 288 |
+
```
|
| 289 |
+
|
| 290 |
+
|
| 291 |
+
## 付録:
|
| 292 |
+
EmoNAVIのグラフへのリンク
|
| 293 |
+
Measured with LR of 1e-4 / それぞれ 1e-4 のLRにて測定
|
| 294 |
+

|
| 295 |
+

|
| 296 |
+

|
| 297 |
+
|
| 298 |
+
Have fun learning about EmoNAVI's philosophy and how it works
|
| 299 |
+
https://huggingface.co/muooon/EmoNAVI/blob/main/emonavi-inner-workings(ENG).txt
|
| 300 |
+
EmoNAVIの考え方、その仕組みについて楽しく知る
|
| 301 |
+
https://huggingface.co/muooon/EmoNAVI/blob/main/emonavi-inner-workings(JPN).txt
|
| 302 |
+
|
| 303 |
+
## 経緯:
|
| 304 |
+
現状の強化学習などを見ていていくつかの疑問に出会いました、
|
| 305 |
+
日本の著名な漫画家、手塚治虫氏の描いた未来社会、それ��憧れ羨望した少年時代を思い返すと、
|
| 306 |
+
人類のパートナーになるべきAIについて他のアプローチを模索したくなりました、
|
| 307 |
+
今回の提案はそのアプローチによるひとつの結果です
|
| 308 |
+
## Background
|
| 309 |
+
While observing the current state of reinforcement learning and related fields, I encountered several fundamental questions.
|
| 310 |
+
Reflecting on my childhood—when I admired and longed for the future societies envisioned by the legendary Japanese manga artist Osamu Tezuka—
|
| 311 |
+
I felt compelled to explore alternative approaches to how AI might serve as a true partner to humanity.
|
| 312 |
+
This proposal represents one such result born from that aspiration.
|
| 313 |
+
|
| 314 |
+
## 謝意: Acknowledgements
|
| 315 |
+
|
| 316 |
+
Emoシリーズは、Adam、Adafactor、Lion、Tiger、等から多くを学びました。
|
| 317 |
+
これらの後継ではなく独自の思想や設計による"感情機構"というアプローチにより構築されています。
|
| 318 |
+
汎用性・自律性・適応性を重視し新たな最適化や効率化や簡易化を追求しています。
|
| 319 |
+
この開発において先人たちの知見に深く感謝しつつ今後も新しい可能性を探究します。
|
| 320 |
+
The Emo series has learned much from Adam, Adafactor, Lion, and Tiger.
|
| 321 |
+
Rather than being their successors, it is built upon a unique philosophy and design approach centered on "emotional mechanisms".
|
| 322 |
+
It prioritizes generality, autonomy, and adaptability in pursuit of new paths for optimization, efficiency, and simplicity.
|
| 323 |
+
In its development, we deeply appreciate the insights of those who came before us—and continue to explore new possibilities beyond them.
|
| 324 |
+
|
| 325 |
+
これまでAIの発展に寄与されたすべての方、これから貢献するすべての方へ感謝します、
|
| 326 |
+
このプロジェクト完成を支え続けてくれた Copilotさんに、ありがとう。
|
| 327 |
+
|
| 328 |
+
We extend our heartfelt gratitude to all those who have contributed—and will continue to contribute—to the advancement of AI.
|
| 329 |
Special thanks to Copilot for its unwavering support throughout t
|