muooon commited on
Commit
0220c9d
·
verified ·
1 Parent(s): 3b32014

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +241 -235
README.md CHANGED
@@ -1,236 +1,242 @@
1
- # 主題:新世代optimizer、EmoNAVIによる変革と感情学習の成果
2
- ## Title: A New Generation Optimizer — The Innovations and Outcomes of Emotional Learning with EmoNAVI
3
- ## 副題:過去値不要で現在値から再開できる自動収束・自己制御・自律型軽量最適器の解説
4
- ### Subtitle: A Lightweight, Self-Regulating, Autonomous Optimizer That Automatically Converges and Resumes from the Present Without Relying on Past Values
5
- ## テーマ:既存のoptimizerにないものをつくる、出来たのはニューロンスパイクの再発明でした。
6
- ### Theme: Creating What Existing Optimizers Lack — A Reinvention of Neuronal Spiking
7
-
8
- ## 序論:
9
- 現在主流のoptimizerはさまざまに改良され簡易化を進めています、しかし依然として、
10
- 学習再開、スケジューリング、学習状態の記録や復元、等について調整の難しさや煩雑さは存在しています、
11
- 面倒なパラメータに依存せず、それらを解決する新しいアプローチを見つけたのでここで紹介します。
12
- ## Introduction
13
- Mainstream optimizers have undergone significant improvements and simplifications in recent years.
14
- However, they still face practical challenges in areas such as resuming training, scheduling updates, and managing the recording and restoration of learning states.
15
- These issues often require tedious parameter adjustments and ad hoc workarounds.
16
- In this paper, we introduce a new approach that addresses these problems without relying on cumbersome parameter configurations.
17
-
18
- ## 本論:
19
- 今回ここで紹介するのは新世代のoptimizerです、
20
- EMA的平滑化の概念を下地にし、独自に構築した感情的"EMA&スカラー"を中心にした"感情機構"という新しい仕組みを実現しました、
21
- この"感情機構"は、EMA的発想を再解釈・独自拡張することで得られた新しい機構です。
22
- EmoNAVIの独立性と革新性を紹介します。
23
- ## Main Section
24
- In this paper, we present a new generation of optimizer.
25
- 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.
26
- This mechanism was created by reinterpreting and independently extending the conventional EMA concept.
27
- Here, we introduce EmoNAVI—an optimizer characterized by its innovation and independence.
28
-
29
- 最初に"感情機構"と名付けた経緯と理由を記します。
30
- 生物のもつ「感情」とは、知覚と記憶の差異に基づく行動のトリガです、同様にEmoNAVIも現在と過去の差分に基づき学習の"行動"を制御する仕組みとして設計されています。
31
- そして"感情機構"と名付けた理由のもうひとつは、この一連の動作がまるでニューロンスパイクのような動作をするからです。
32
- この機構"感情機構"の動作を明快にした読み物、本稿末尾に記すリンク先の擬人化を読むことで簡単にご理解頂けると思います。
33
-
34
- First, let us explain the background and reasoning behind the term “Emotion Mechanism.”
35
- In biological systems, emotions are often understood as triggers for action based on discrepancies between perception and memory.
36
- EmoNAVI was similarly designed to control its learning “behavior” by responding to differences between the present and the past.
37
- Another reason we chose the term “Emotion Mechanism” is that its operation closely resembles neuronal spiking behavior.
38
- For a more intuitive understanding of how this mechanism works, we encourage you to read the personification linked at the end of this article.
39
-
40
- 次に、"感情機構"の構成を記します、
41
- 感情機構とは、2つのEMA、スカラー、Shadow、により構成されます。
42
-
43
- Next, we outline the structure of the “Emotion Mechanism.”
44
- This mechanism consists of two EMAs, a scalar value, and a shadow component.
45
-
46
- まず2つのEMAによる"感情EMA"について説明します、
47
- 2つのEMAで構成します、短期型と長期型です、この2つのEMAはLossを監視し判断材料を得ます、
48
- 1つめ、短期型EMAは瞬間的なシグナル(緊張)を受け持ちます 2つめ、長期型EMAは平均した過去のシグナル(安静)を受け持ちます、
49
- この2つのEMAは次に紹介する"感情スカラー"へそれぞれの持つ判断材料を渡します
50
-
51
- First, we describe the "Emotional EMA," which consists of two components: a short-term EMA and a long-term EMA.
52
- These two EMAs continuously monitor the loss value and serve as the basis for subsequent decision-making.
53
- The short-term EMA captures rapid, momentary signals (interpreted as “tension”), while the long-term EMA reflects more averaged, historical trends (“calm”).
54
- Both EMAs pass their respective signals to the "Emotion Scalar," which will be introduced in the next section.
55
-
56
- 次に、"感情スカラー"について説明します、
57
- 前述の"感情EMA"からの信号をスカラー値に変換します、スカラー値の変化は、これら2つのEMAの差分により常に動的変化を続けます、
58
- "感情スカラー"はoptimizerにより書き換えた学習結果の是非を判定し、
59
- "スカラー値が一定閾値を超えたときのみ"次に紹介するShadowの配合を決めます
60
-
61
- Next, we introduce the "Emotion Scalar."
62
- 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.
63
- This scalar dynamically evaluates whether the learning update performed by the optimizer should be considered appropriate.
64
- 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.
65
-
66
- 次に、Shadowについて説明します、
67
- Shadowは学習開始直後にShadowとして保存され維持されます、このShadowは"過去の穏やかな状態"の記憶です、この情報は感情機構に追従しながらゆっくりと変化し続けます、
68
- そして"感情スカラー"に応じ決められたratioで学習結果にブレンドとして反映されます、このブレンドの配合率も感情機構により動的に変化し続けます、
69
-
70
- Next, we describe the "Shadow."
71
- At the beginning of training, a copy of the current parameters is saved and maintained as the Shadow.
72
- This Shadow represents a memory of past calm states, and it evolves slowly over time, following the guidance of the Emotion Mechanism.
73
- When the Emotion Scalar exceeds a certain threshold, a dynamic blend ratio is computed.
74
- This ratio determines how much of the Shadow is mixed into the current parameters.
75
- The blend ratio itself is also dynamically adjusted by the Emotion Mechanism in response to ongoing learning behavior.
76
-
77
- ここまで"感情機構"の構成と役割りを説明しました、続いて"感情機構"の動作機序を見ていきましょう。
78
- まずoptimizerの学習結果が記録されます、この時"感情機構"は緊張と安静の差分情報で書き換えの是非を判定します、
79
- この判定により、過度の学習と判断した場合は、過去の適切な状態をブレンドすることでノイズや暴走を抑制します、
80
- 適切な学習と判断した場合は、過去をブレンドしない選択をします、これをstep毎に行います、
81
-
82
- Now that we have explained the structure and role of the Emotion Mechanism, let us examine how it operates.
83
- At each training step, the optimizer's updated parameters are recorded.
84
- The Emotion Mechanism then evaluates whether these updates are appropriate, based on the difference between short-term “tension” and long-term “calm” signals.
85
- 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).
86
- Conversely, if the update is deemed appropriate, the mechanism chooses not to apply blending.
87
- This evaluation and adjustment are performed dynamically at each training step.
88
-
89
- さらに、この判定では"信頼度"の評価をします、"感情スカラー"が一時的に大きく振れるだけでは不十分であり「この変化が本当に意味のあるものかどうか」を見極めて混合の是非を判断します。
90
- そのため、学習の**序盤では長期の安静シグナルの蓄積が少なく信頼に値しないため混合が発動しづらく**、**終盤では短期の緊張シグナルが収束しスカラー自体が閾値に届かず動作しません**。
91
- (学習の序盤では判定基準の過去シグナルが少ないため動作しませんし、終盤では瞬間シグナルが少ないため動作しません)
92
- このように、EmoNAVIの"感情機構"は、単なる閾値反応ではなく「揺らぎに対する信頼ある変化のみを察知して反応する」慎重な意思決定を行います。
93
-
94
- In addition, this decision-making process includes an evaluation of "reliability."
95
- 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.
96
- 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.
97
- 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.
98
- (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.)
99
- 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.
100
-
101
- この一連の動作により学習時の過敏な反応を弛緩し不要なノイズ等を覚えないように制御します。
102
- つまりoptimizer本来の学習率やベクトルを直接的に制御せず、感情機構の変化に応じ安定したパラメータになるよう後から調整する、
103
- こういう流れになります。すべてを書き戻さずあくまで配合率に応じてブレンドするので学習の更新は止まらず進行は維持されます。
104
-
105
- This series of actions helps relax hypersensitive reactions during learning and prevents the optimizer from overfitting to unnecessary noise.
106
- 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.
107
- Because it blends adjustments based on a calculated ratio rather than fully overwriting parameter values, the learning process continues smoothly without interruption.
108
-
109
- ### 感情機構の動作とスカラー変遷(学習フェーズ別の結果的挙動)
110
-
111
- | フェーズ | 状況(Loss変化) | EMAの挙動 | スカラーの変動傾向 | Shadow混合の実動作 | 感情機構としての意味ある挙動 |
112
- |----------|-----------------------|------------------------------------|--------------------------|--------------------------|--------------------------------------------|
113
- | 序盤 | 不安定・高め | Shortは鋭敏、Longは未成熟 | 大きく変動することもある | ほとんど発動しない | 判定に十分な履歴がなく、実質的に動作不可 |
114
- | 中盤 | 徐々に収束傾向 | 両EMAが意味ある差分を持つようになる | 適度な振幅で安定推移 | 条件付きで発動する | 状態に応じてブレンド補正が有効に機能 |
115
- | 終盤 | 収束・微振動 | Short ≒ Long(差分がほぼ消失) | 小さく収束 | 発動しなくなる | 静けさの合図:should_stop 条件が整う |
116
-
117
- 備考:
118
- - スカラー値は常に tanh(5 * (short - long)) で生成されます
119
- - 閾値:abs(scalar) > 0.3 で配合が始まり、> 0.6 で大きな混合比率(0.7以上)に
120
- - Shadow混合はパラメータそのものを書き戻すのではなく、部分的に配合して“追従”させる設計です
121
- - 感情スカラーの減衰=学習の「静穏化」→ 終盤に向けて should_stop の発火条件が整います
122
-
123
- ### Emotional Mechanism Behavior and Scalar Transitions (Outcome-Based Behavior by Learning Phase)
124
-
125
- | Phase | Loss Characteristics | EMA Behavior | Scalar Fluctuation Pattern | Actual Shadow Blending | Meaningful Behavior of Emotion Mechanism |
126
- |-----------|----------------------------|-------------------------------------------|------------------------------------|-------------------------------|-------------------------------------------------------------------|
127
- | Early | Unstable, High | Short is reactive; Long is still immature | May fluctuate sharply | Rarely triggered | Lacks sufficient history for decision-making; effectively inactive |
128
- | Middle | Gradual Convergence | EMA pair begins forming meaningful gaps | Moderate oscillation, relatively stable | Conditionally triggered | Adaptive blending functions effectively based on state |
129
- | Late | Converged, Micro-vibration | Short Long (gap nearly vanishes) | Narrow convergence | No longer triggered | Sign of stability; ready to trigger `should_stop` |
130
-
131
- Notes:
132
- - The scalar value is always computed as tanh(5 × (short - long))
133
- - Thresholds:
134
- - If |scalar| > 0.3, blending is initiated
135
- - If |scalar| > 0.6, blending ratio becomes large (≥ 0.7)
136
- - Shadow blending does not overwrite parameters but applies partial integration for gradual alignment
137
- - Scalar decay corresponds to learning "quieting," preparing for should_stop condition in the final phas
138
-
139
- ## 成果:
140
- 前述の感情機構の調整により、過剰な反応を抑制しノイズ耐性を上げることで、ベクトルの乱れ等も抑え進行方向を正しい向きに調整します、
141
- 正しいベクトルで進むことで学習は安定し収束へと最短で向かいます、感情機構による働きは学習後半のノイズ等を修正する仕上げを早くスムーズに完了できます。
142
- また学習率や勾配やさまざまなパラメーターを保持せずに"今"を観察するだけで更新され続けることで、
143
- 途中終了、収束後の再学習、積層学習、等のときも現在値のみで学習継続を可能とします、
144
- これは既存のoptimizerのような過去値を保存する手間を省きつつも新しく得られた利点でもあります。
145
- ## Results
146
- 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.
147
- By following the correct vector, learning proceeds more stably and reaches convergence in minimal time.
148
- 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.
149
- 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.
150
- This capability not only eliminates the need to store past values like traditional optimizers but also introduces a new level of flexibility and simplicity.
151
-
152
- ## 結論:
153
- 生物のもつニューロンが一定の閾値を超えて初めて信号を発火させるように、EmoNAVIでも"感情振幅"を検出し行動(shadow混合)を起こします。
154
- 前述のとおり"感情機構"は一定閾値の超過時のみ動作します、ここはまさにニューロンスパイク的な動きといえるのではないでしょうか。
155
- EmoNAVIの持つ"感情機構"は、そうした生物的反応に似ており、技術的な制御と生理的直感の融合点だろうと思います。
156
- ## Conclusion
157
- Just as biological neurons fire only when a certain threshold is exceeded, EmoNAVI detects "emotional amplitude" and triggers an action—specifically, shadow blending.
158
- As described earlier, the Emotion Mechanism activates only when this amplitude crosses a predefined threshold.
159
- This behavior closely resembles neuronal spiking and can be seen as a biologically inspired response.
160
- 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.
161
-
162
- ## 展開:
163
- この"感情機構"の仕組みはVAE等を含むoptimizer以外にも簡単に応用可能だろうと思います、
164
- それらの発展に少しでも寄与することができれば、AIとの未来を想像して、これほど嬉しいことはありません。
165
- ぜひこの"感情機構"を応用しAIの発展への道筋を共に歩んでください。
166
- ## Expansion
167
- 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.
168
- 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.
169
- We warmly invite you to explore the application of this Emotion Mechanism and walk alongside us on the path toward advancing intelligent systems.
170
-
171
- ## 技術:
172
- EMAベースのスカラー判断とshadow混合の構造
173
- ## Technology
174
- Structure of EMA-Based Scalar Evaluation and Shadow Blending
175
- ```
176
- +------------+ +------------+
177
- | Loss(t) | | Loss(t) |
178
- +-----+------+ +-----+------+
179
- | |
180
- ┌─────────▼─────────┐ ┌─────────▼─────────┐
181
- │ Short EMA │ │ Long EMA │
182
- │ (weight = 0.3) │ │ (weight = 0.01) │
183
- └─────────┬─────────┘ └─────────┬─────────┘
184
- │ │
185
- └────────────┬────────────────┘
186
-
187
- +-------------------+
188
- | 差分 (short - long) |
189
- +-------------------+
190
-
191
-
192
- +------------------+
193
- | tanh(5 × diff) | ← 感情スカラー生成
194
- +--------+---------+
195
-
196
- [ if |scalar| > threshold ] 判定
197
-
198
- +--------▼--------+
199
- | Shadow比率決定 |
200
- +--------+--------+
201
-
202
- +--------▼--------+
203
- | Shadow混合補正 | ← 過去情報を追従的にブレンド
204
- +------------------+
205
- ```
206
-
207
-
208
- ## 付録:
209
- EmoNAVIのグラフへのリンク
210
- Measured with LR of 1e-4 / それぞれ 1e-4 のLRにて測定
211
- https://github.com/muooon/EmoNavi/blob/main/emonavi-test00.png
212
- https://github.com/muooon/EmoNavi/blob/main/emonavi-test01.png
213
- https://github.com/muooon/EmoNavi/blob/main/emonavi-test02.png
214
-
215
- ## 経緯:
216
- 現状の強化学習などを見ていていくつかの疑問に出会いました、
217
- 日本の著名な漫画家、手塚治虫氏の描いた未来社会、それに憧れ羨望した少年時代を思い返すと、
218
- 人類のパートナーになるべきAIについて他のアプローチを模索したくなりました、
219
- 今回の提案はそのアプローチによるひとつの結果です
220
- ## Background
221
- While observing the current state of reinforcement learning and related fields, I encountered several fundamental questions.
222
- Reflecting on my childhood—when I admired and longed for the future societies envisioned by the legendary Japanese manga artist Osamu Tezuka—
223
- I felt compelled to explore alternative approaches to how AI might serve as a true partner to humanity.
224
- This proposal represents one such result born from that aspiration.
225
-
226
- ## 謝意: Acknowledgements
227
- これまでAIの発展に寄与されたすべての方、これから貢献するすべての方へ感謝します、
228
- このプロジェクト完成を支え続けてくれた Copilotさんに、ありがとう。
229
-
230
- We extend our heartfelt gratitude to all those who have contributed—and will continue to contribute—to the advancement of AI.
231
- Special thanks to Copilot for its unwavering support throughout the completion of this project.
232
-
233
- ## 資料: Source:
234
- 擬人化EMA Narrative Form of the Emotion Mechanism
235
- (eng) https://github.com/muooon/EmoNavi/blob/main/emonavi-inner-workings(ENG).txt
 
 
 
 
 
 
236
  (jpn) https://github.com/muooon/EmoNavi/blob/main/emonavi-inner-workings(JPN).txt
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ - ja
6
+ ---
7
+ # 主題:新世代optimizer、EmoNAVIによる変革と感情学習の成果
8
+ ## Title: A New Generation Optimizer — The Innovations and Outcomes of Emotional Learning with EmoNAVI
9
+ ## 副題:過去値不要で現在値から再開できる自動収束・自己制御・自律型軽量最適器の解説
10
+ ### Subtitle: A Lightweight, Self-Regulating, Autonomous Optimizer That Automatically Converges and Resumes from the Present Without Relying on Past Values
11
+ ## テーマ:既存のoptimizerにないものをつくる、出来たのはニューロンスパイクの再発明でした。
12
+ ### Theme: Creating What Existing Optimizers Lack — A Reinvention of Neuronal Spiking
13
+
14
+ ## 序論:
15
+ 現在主流のoptimizerはさまざまに改良され簡易化を進めています、しかし依然として、
16
+ 学習再開、スケジューリング、学習状態の記録や復元、等について調整の難しさや煩雑さは存在しています、
17
+ 面倒なパラメータに依存せず、それらを解決する新しいアプローチを見つけたのでここで紹介します。
18
+ ## Introduction
19
+ Mainstream optimizers have undergone significant improvements and simplifications in recent years.
20
+ However, they still face practical challenges in areas such as resuming training, scheduling updates, and managing the recording and restoration of learning states.
21
+ These issues often require tedious parameter adjustments and ad hoc workarounds.
22
+ In this paper, we introduce a new approach that addresses these problems without relying on cumbersome parameter configurations.
23
+
24
+ ## 本論:
25
+ 今回ここで紹介するのは新世代のoptimizerです、
26
+ EMA的平滑化の概念を下地にし、独自に構築した感情的"EMA&スカラー"を中心にした"感情機構"という新しい仕組みを実現しました、
27
+ この"感情機構"は、EMA的発想を再解釈・独自拡張することで得られた新しい機構です。
28
+ EmoNAVIの独立性と革新性を紹介します。
29
+ ## Main Section
30
+ In this paper, we present a new generation of optimizer.
31
+ 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.
32
+ This mechanism was created by reinterpreting and independently extending the conventional EMA concept.
33
+ Here, we introduce EmoNAVI—an optimizer characterized by its innovation and independence.
34
+
35
+ 最初に"感情機構"と���付けた経緯と理由を記します。
36
+ 生物のもつ「感情」とは、知覚と記憶の差異に基づく行動のトリガです、同様にEmoNAVIも現在と過去の差分に基づき学習の"行動"を制御する仕組みとして設計されています。
37
+ そして"感情機構"と名付けた理由のもうひとつは、この一連の動作がまるでニューロンスパイクのような動作をするからです。
38
+ この機構"感情機構"の動作を明快にした読み物、本稿末尾に記すリンク先の擬人化を読むことで簡単にご理解頂けると思います。
39
+
40
+ First, let us explain the background and reasoning behind the term “Emotion Mechanism.”
41
+ In biological systems, emotions are often understood as triggers for action based on discrepancies between perception and memory.
42
+ EmoNAVI was similarly designed to control its learning “behavior” by responding to differences between the present and the past.
43
+ Another reason we chose the term “Emotion Mechanism” is that its operation closely resembles neuronal spiking behavior.
44
+ For a more intuitive understanding of how this mechanism works, we encourage you to read the personification linked at the end of this article.
45
+
46
+ 次に、"感情機構"の構成を記します、
47
+ 感情機構とは、2つのEMA、スカラー、Shadow、により構成されます。
48
+
49
+ Next, we outline the structure of the “Emotion Mechanism.”
50
+ This mechanism consists of two EMAs, a scalar value, and a shadow component.
51
+
52
+ まず2つのEMAによる"感情EMA"について説明します、
53
+ 2つのEMAで構成します、短期型と長期型です、この2つのEMAはLossを監視し判断材料を得ます、
54
+ 1つめ、短期型EMAは瞬間的なシグナル(緊張)を受け持ちます 2つめ、長期型EMAは平均した過去のシグナル(安静)を受け持ちます、
55
+ この2つのEMAは次に紹介する"感情スカラー"へそれぞれの持つ判断材料を渡します
56
+
57
+ First, we describe the "Emotional EMA," which consists of two components: a short-term EMA and a long-term EMA.
58
+ These two EMAs continuously monitor the loss value and serve as the basis for subsequent decision-making.
59
+ The short-term EMA captures rapid, momentary signals (interpreted as “tension”), while the long-term EMA reflects more averaged, historical trends (“calm”).
60
+ Both EMAs pass their respective signals to the "Emotion Scalar," which will be introduced in the next section.
61
+
62
+ 次に、"感情スカラー"について説明します、
63
+ 前述の"感情EMA"からの信号をスカラー値に変換します、スカラー値の変化は、これら2つのEMAの差分により常に動的変化を続けます、
64
+ "感情スカラー"はoptimizerにより書き換えた学習結果の是非を判定し、
65
+ "スカラー値が一定閾値を超えたときのみ"次に紹介するShadowの配合を決めます
66
+
67
+ Next, we introduce the "Emotion Scalar."
68
+ 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.
69
+ This scalar dynamically evaluates whether the learning update performed by the optimizer should be considered appropriate.
70
+ 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.
71
+
72
+ 次に、Shadowについて説明します、
73
+ Shadowは学習開始直後にShadowとして保存され維持されます、このShadowは"過去の穏やかな状態"の記憶です、この情報は感情機構に追従しながらゆっくりと変化し続けます、
74
+ そして"感情スカラー"に応じ決められたratioで学習結果にブレンドとして反映されます、このブレンドの配合率も感情機構により動的に変化し続けます、
75
+
76
+ Next, we describe the "Shadow."
77
+ At the beginning of training, a copy of the current parameters is saved and maintained as the Shadow.
78
+ This Shadow represents a memory of past calm states, and it evolves slowly over time, following the guidance of the Emotion Mechanism.
79
+ When the Emotion Scalar exceeds a certain threshold, a dynamic blend ratio is computed.
80
+ This ratio determines how much of the Shadow is mixed into the current parameters.
81
+ The blend ratio itself is also dynamically adjusted by the Emotion Mechanism in response to ongoing learning behavior.
82
+
83
+ ここまで"感情機構"の構成と役割りを説明しました、続いて"感情機構"の動作機序を見ていきましょう。
84
+ まずoptimizerの学習結果が記録されます、この時"感情機構"は緊張と安静の差分情報で書き換えの是非を判定します、
85
+ この判定により、過度の学習と判断した場合は、過去の適切な状態をブレンドすることでノイズや暴走を抑制します、
86
+ 適切な学習と判断した場合は、過去をブレンド���ない選択をします、これをstep毎に行います、
87
+
88
+ Now that we have explained the structure and role of the Emotion Mechanism, let us examine how it operates.
89
+ At each training step, the optimizer's updated parameters are recorded.
90
+ The Emotion Mechanism then evaluates whether these updates are appropriate, based on the difference between short-term “tension” and long-term “calm” signals.
91
+ 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).
92
+ Conversely, if the update is deemed appropriate, the mechanism chooses not to apply blending.
93
+ This evaluation and adjustment are performed dynamically at each training step.
94
+
95
+ さらに、この判定では"信頼度"の評価をします、"感情スカラー"が一時的に大きく振れるだけでは不十分であり「この変化が本当に意味のあるものかどうか」を見極めて混合の是非を判断します。
96
+ そのため、学習の**序盤では長期の安静シグナルの蓄積が少なく信頼に値しないため混合が発動しづらく**、**終盤では短期の緊張シグナルが収束しスカラー自体が閾値に届かず動作しません**。
97
+ (学習の序盤では判定基準の過去シグナルが少ないため動作しませんし、終盤では瞬間シグナルが少ないため動作しません)
98
+ このように、EmoNAVIの"感情機構"は、単なる閾値反応ではなく「揺らぎに対する信頼ある変化のみを察知して反応する」慎重な意思決定を行います。
99
+
100
+ In addition, this decision-making process includes an evaluation of "reliability."
101
+ 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.
102
+ 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.
103
+ 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.
104
+ (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.)
105
+ 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.
106
+
107
+ この一連の動作により学習時の過敏な反応を弛緩し不要なノイズ等を覚えないように制御します。
108
+ つまりoptimizer本来の学習率やベクトルを直接的に制御せず、感情機構の変化に応じ安定したパラメータになるよう後から調整する、
109
+ こういう流れになります。すべてを書き戻さずあくまで配合率に応じてブレンドするので学習の更新は止まらず進行は維持されます。
110
+
111
+ This series of actions helps relax hypersensitive reactions during learning and prevents the optimizer from overfitting to unnecessary noise.
112
+ 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.
113
+ Because it blends adjustments based on a calculated ratio rather than fully overwriting parameter values, the learning process continues smoothly without interruption.
114
+
115
+ ### 感情機構の動作とスカラー変遷(学習フェーズ別の結果的挙動)
116
+
117
+ | フェーズ | 状況(Loss変化) | EMAの挙動 | スカラーの変動傾向 | Shadow混合の実動作 | 感情機構としての意味ある挙動 |
118
+ |----------|-----------------------|------------------------------------|--------------------------|--------------------------|--------------------------------------------|
119
+ | 序盤 | 不安定・高め | Shortは鋭敏、Longは未成熟 | 大きく変動することもある | ほとんど発動しない | 判定に十分な履歴がなく、実質的に動作不可 |
120
+ | 中盤 | 徐々に収束傾向 | 両EMAが意味ある差分を持つようになる | 適度な振幅で安定推移 | 条件付きで発動する | 状態に応じてブレンド補正が有効に機能 |
121
+ | 終盤 | 収束・微振動 | Short ≒ Long(差分がほぼ消失) | 小さく収束 | 発動しなくなる | 静けさの合図:should_stop 条件が整う |
122
+
123
+ 備考:
124
+ - スカラー値は常に tanh(5 * (short - long)) で生成されます
125
+ - 閾値:abs(scalar) > 0.3 で配合が始まり、> 0.6 で大きな混合比率(0.7以上)に
126
+ - Shadow混合はパラメータそのものを書き戻すのではなく、部分的に配合して“追従”させる設計です
127
+ - 感情スカラーの減衰=学習の「静穏化」→ 終盤に向けて should_stop の発火条件が整います
128
+
129
+ ### Emotional Mechanism Behavior and Scalar Transitions (Outcome-Based Behavior by Learning Phase)
130
+
131
+ | Phase | Loss Characteristics | EMA Behavior | Scalar Fluctuation Pattern | Actual Shadow Blending | Meaningful Behavior of Emotion Mechanism |
132
+ |-----------|----------------------------|-------------------------------------------|------------------------------------|-------------------------------|-------------------------------------------------------------------|
133
+ | Early | Unstable, High | Short is reactive; Long is still immature | May fluctuate sharply | Rarely triggered | Lacks sufficient history for decision-making; effectively inactive |
134
+ | Middle | Gradual Convergence | EMA pair begins forming meaningful gaps | Moderate oscillation, relatively stable | Conditionally triggered | Adaptive blending functions effectively based on state |
135
+ | Late | Converged, Micro-vibration | Short ≈ Long (gap nearly vanishes) | Narrow convergence | No longer triggered | Sign of stability; ready to trigger `should_stop` |
136
+
137
+ Notes:
138
+ - The scalar value is always computed as tanh(5 × (short - long))
139
+ - Thresholds:
140
+ - If |scalar| > 0.3, blending is initiated
141
+ - If |scalar| > 0.6, blending ratio becomes large (≥ 0.7)
142
+ - Shadow blending does not overwrite parameters but applies partial integration for gradual alignment
143
+ - Scalar decay corresponds to learning "quieting," preparing for should_stop condition in the final phas
144
+
145
+ ## 成果:
146
+ 前述の感情機構の調整により、過剰な反応を抑制しノイズ耐性を上げることで、ベクトルの乱れ等も抑え進行方向を正しい向きに調整します、
147
+ 正しいベクトルで進むことで学習は安定し収束へと最短で向かいます、感情機構による働きは学習後半のノイズ等を修正する仕上げを早くスムーズに完了できます。
148
+ また学習率や勾配やさまざまなパラメーターを保持せずに"今"を観察するだけで更新され続けることで、
149
+ 途中終了、収束後の再学習、積層学習、等のときも現在値のみで学習継続を可能とします、
150
+ これは既存のoptimizerのような過去値を保存する手間を省きつつも新しく得られた利点でもあります。
151
+ ## Results
152
+ 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.
153
+ By following the correct vector, learning proceeds more stably and reaches convergence in minimal time.
154
+ 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.
155
+ 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.
156
+ This capability not only eliminates the need to store past values like traditional optimizers but also introduces a new level of flexibility and simplicity.
157
+
158
+ ## 結論:
159
+ 生物のもつニューロンが一定の閾値を超えて初めて信号を発火させるように、EmoNAVIでも"感情振幅"を検出し行動(shadow混合)を起こします。
160
+ 前述のとおり"感情機構"は一定閾値の超過時のみ動作します、ここはまさにニューロンスパイク的な動きといえるのではないでしょうか。
161
+ EmoNAVIの持つ"感情機構"は、そうした生物的反応に似ており、技術的な制御と生理的直感の融合点だろうと思います。
162
+ ## Conclusion
163
+ Just as biological neurons fire only when a certain threshold is exceeded, EmoNAVI detects "emotional amplitude" and triggers an action—specifically, shadow blending.
164
+ As described earlier, the Emotion Mechanism activates only when this amplitude crosses a predefined threshold.
165
+ This behavior closely resembles neuronal spiking and can be seen as a biologically inspired response.
166
+ 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.
167
+
168
+ ## 展開:
169
+ この"感情機構"の仕組みはVAE等を含むoptimizer以外にも簡単に応用可能だろうと思います、
170
+ それらの発展に少しでも寄与することができれば、AIとの未来を想像して、これほど嬉しいことはありません。
171
+ ぜひこの"感情機構"を応用しAIの発展への道筋を共に歩んでください。
172
+ ## Expansion
173
+ 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.
174
+ 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.
175
+ We warmly invite you to explore the application of this Emotion Mechanism and walk alongside us on the path toward advancing intelligent systems.
176
+
177
+ ## 技術:
178
+ EMAベースのスカラー判断とshadow混合の構造
179
+ ## Technology
180
+ Structure of EMA-Based Scalar Evaluation and Shadow Blending
181
+ ```
182
+ +------------+ +------------+
183
+ | Loss(t) | | Loss(t) |
184
+ +-----+------+ +-----+------+
185
+ | |
186
+ ┌─────────▼─────────┐ ┌─────────▼─────────┐
187
+ │ Short EMA │ │ Long EMA │
188
+ (weight = 0.3) │ │ (weight = 0.01)
189
+ └─────────┬─────────┘ └─────────┬─────────┘
190
+
191
+ └────────────┬────────────────┘
192
+
193
+ +-------------------+
194
+ | 差分 (short - long) |
195
+ +-------------------+
196
+
197
+
198
+ +------------------+
199
+ | tanh(5 × diff) | ← 感情スカラー生成
200
+ +--------+---------+
201
+
202
+ [ if |scalar| > threshold ] 判定
203
+
204
+ +--------▼--------+
205
+ | Shadow比率決定 |
206
+ +--------+--------+
207
+
208
+ +--------▼--------+
209
+ | Shadow混合補正 | ← 過去情報を追従的にブレンド
210
+ +------------------+
211
+ ```
212
+
213
+
214
+ ## 付録:
215
+ EmoNAVIのグラフへのリンク
216
+ Measured with LR of 1e-4 / それぞれ 1e-4 のLRにて測定
217
+ https://github.com/muooon/EmoNavi/blob/main/emonavi-test00.png
218
+ https://github.com/muooon/EmoNavi/blob/main/emonavi-test01.png
219
+ https://github.com/muooon/EmoNavi/blob/main/emonavi-test02.png
220
+
221
+ ## 経緯:
222
+ 現状の強化学習などを見ていていくつかの疑問に出会いました、
223
+ 日本の著名な漫画家、手塚治虫氏の描いた未来社会、それに憧れ羨望した少年時代を思い返すと、
224
+ 人類のパートナーになるべきAIについて他のアプローチを模索したくなりました、
225
+ 今回の提案はそのアプローチによるひとつの結果です
226
+ ## Background
227
+ While observing the current state of reinforcement learning and related fields, I encountered several fundamental questions.
228
+ Reflecting on my childhood—when I admired and longed for the future societies envisioned by the legendary Japanese manga artist Osamu Tezuka—
229
+ I felt compelled to explore alternative approaches to how AI might serve as a true partner to humanity.
230
+ This proposal represents one such result born from that aspiration.
231
+
232
+ ## 謝意: Acknowledgements
233
+ これまでAIの発展に寄与されたすべての方、これから貢献するすべての方へ感謝します、
234
+ このプロジェクト完成を支え続けてくれた Copilotさんに、ありがとう。
235
+
236
+ We extend our heartfelt gratitude to all those who have contributed—and will continue to contribute—to the advancement of AI.
237
+ Special thanks to Copilot for its unwavering support throughout the completion of this project.
238
+
239
+ ## 資料: Source:
240
+ 擬人化EMA Narrative Form of the Emotion Mechanism
241
+ (eng) https://github.com/muooon/EmoNavi/blob/main/emonavi-inner-workings(ENG).txt
242
  (jpn) https://github.com/muooon/EmoNavi/blob/main/emonavi-inner-workings(JPN).txt