math-skill 3.0.1 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/README.en-US.md +72 -47
  2. package/README.md +40 -15
  3. package/agents/math-critic.en.md +6 -6
  4. package/agents/math-critic.md +6 -6
  5. package/commands/ask.en.md +6 -1
  6. package/commands/ask.md +6 -1
  7. package/design-patterns/attention/equivariant-attention.en.md +8 -2
  8. package/design-patterns/attention/equivariant-attention.md +7 -1
  9. package/design-patterns/attention/geometry-aware-attention.en.md +2 -2
  10. package/design-patterns/attention/geometry-aware-attention.md +1 -1
  11. package/design-patterns/attention/information-bottleneck-attention.en.md +32 -12
  12. package/design-patterns/attention/information-bottleneck-attention.md +32 -12
  13. package/design-patterns/attention/projection-attention.en.md +3 -3
  14. package/design-patterns/attention/projection-attention.md +2 -2
  15. package/design-patterns/attention/spectral-attention.en.md +19 -5
  16. package/design-patterns/attention/spectral-attention.md +18 -4
  17. package/design-patterns/compression/leverage-score-selection.en.md +13 -13
  18. package/design-patterns/compression/leverage-score-selection.md +13 -13
  19. package/design-patterns/compression/low-rank-kv-cache.en.md +39 -12
  20. package/design-patterns/compression/low-rank-kv-cache.md +38 -12
  21. package/design-patterns/compression/spectral-token-pruning.en.md +16 -14
  22. package/design-patterns/compression/spectral-token-pruning.md +16 -14
  23. package/design-patterns/compression/topology-preserving-compression.en.md +10 -10
  24. package/design-patterns/compression/topology-preserving-compression.md +10 -10
  25. package/design-patterns/loss/constraint-penalty.en.md +8 -4
  26. package/design-patterns/loss/constraint-penalty.md +9 -6
  27. package/design-patterns/loss/contrastive-loss.en.md +37 -11
  28. package/design-patterns/loss/contrastive-loss.md +38 -12
  29. package/design-patterns/loss/information-bottleneck-loss.en.md +5 -5
  30. package/design-patterns/loss/information-bottleneck-loss.md +6 -6
  31. package/design-patterns/loss/orthogonality-loss.en.md +24 -17
  32. package/design-patterns/loss/orthogonality-loss.md +24 -18
  33. package/design-patterns/loss/variational-loss.en.md +4 -4
  34. package/design-patterns/loss/variational-loss.md +5 -5
  35. package/design-patterns/overview.en.md +36 -0
  36. package/design-patterns/overview.md +36 -0
  37. package/design-patterns/representation/equivariant-split.en.md +4 -4
  38. package/design-patterns/representation/equivariant-split.md +4 -5
  39. package/design-patterns/representation/manifold-representation.en.md +12 -12
  40. package/design-patterns/representation/manifold-representation.md +13 -14
  41. package/design-patterns/representation/shared-private-decomposition.en.md +12 -7
  42. package/design-patterns/representation/shared-private-decomposition.md +12 -9
  43. package/design-patterns/representation/subspace-alignment.en.md +12 -12
  44. package/design-patterns/representation/subspace-alignment.md +12 -12
  45. package/design-patterns/routing/graph-routing.en.md +11 -11
  46. package/design-patterns/routing/graph-routing.md +11 -11
  47. package/design-patterns/routing/moe-routing.en.md +12 -12
  48. package/design-patterns/routing/moe-routing.md +12 -14
  49. package/design-patterns/routing/optimal-transport-routing.en.md +5 -5
  50. package/design-patterns/routing/optimal-transport-routing.md +6 -6
  51. package/design-patterns/routing/spectral-clustering-routing.en.md +26 -15
  52. package/design-patterns/routing/spectral-clustering-routing.md +26 -17
  53. package/knowledge-base/differential-geometry/connection.en.md +17 -2
  54. package/knowledge-base/differential-geometry/connection.md +17 -2
  55. package/knowledge-base/differential-geometry/curvature.en.md +14 -1
  56. package/knowledge-base/differential-geometry/curvature.md +14 -1
  57. package/knowledge-base/differential-geometry/geodesic.en.md +16 -2
  58. package/knowledge-base/differential-geometry/geodesic.md +16 -2
  59. package/knowledge-base/differential-geometry/index.en.md +52 -0
  60. package/knowledge-base/differential-geometry/index.md +52 -0
  61. package/knowledge-base/differential-geometry/manifold.en.md +15 -2
  62. package/knowledge-base/differential-geometry/manifold.md +15 -2
  63. package/knowledge-base/differential-geometry/metric-tensor.en.md +16 -2
  64. package/knowledge-base/differential-geometry/metric-tensor.md +16 -2
  65. package/knowledge-base/differential-geometry/tangent-space.en.md +17 -3
  66. package/knowledge-base/differential-geometry/tangent-space.md +17 -3
  67. package/knowledge-base/information-geometry/fisher-metric.en.md +24 -5
  68. package/knowledge-base/information-geometry/fisher-metric.md +24 -5
  69. package/knowledge-base/information-geometry/index.en.md +45 -0
  70. package/knowledge-base/information-geometry/index.md +45 -0
  71. package/knowledge-base/information-geometry/natural-gradient.en.md +17 -3
  72. package/knowledge-base/information-geometry/natural-gradient.md +17 -3
  73. package/knowledge-base/lie-theory/equivariance.en.md +18 -3
  74. package/knowledge-base/lie-theory/equivariance.md +18 -3
  75. package/knowledge-base/lie-theory/group-action.en.md +16 -2
  76. package/knowledge-base/lie-theory/group-action.md +16 -2
  77. package/knowledge-base/lie-theory/index.en.md +52 -0
  78. package/knowledge-base/lie-theory/index.md +52 -0
  79. package/knowledge-base/lie-theory/lie-algebra.en.md +17 -2
  80. package/knowledge-base/lie-theory/lie-algebra.md +17 -2
  81. package/knowledge-base/lie-theory/lie-group.en.md +17 -3
  82. package/knowledge-base/lie-theory/lie-group.md +17 -3
  83. package/knowledge-base/lie-theory/representation.en.md +17 -2
  84. package/knowledge-base/lie-theory/representation.md +17 -2
  85. package/knowledge-base/matrix-analysis/index.en.md +49 -0
  86. package/knowledge-base/matrix-analysis/index.md +49 -0
  87. package/knowledge-base/matrix-analysis/low-rank-approximation.en.md +20 -7
  88. package/knowledge-base/matrix-analysis/low-rank-approximation.md +20 -7
  89. package/knowledge-base/matrix-analysis/matrix-perturbation.en.md +13 -1
  90. package/knowledge-base/matrix-analysis/matrix-perturbation.md +13 -1
  91. package/knowledge-base/matrix-analysis/positive-semidefinite.en.md +20 -6
  92. package/knowledge-base/matrix-analysis/positive-semidefinite.md +20 -6
  93. package/knowledge-base/matrix-analysis/projection.en.md +14 -1
  94. package/knowledge-base/matrix-analysis/projection.md +14 -1
  95. package/knowledge-base/matrix-analysis/spectral-decomposition.en.md +14 -1
  96. package/knowledge-base/matrix-analysis/spectral-decomposition.md +14 -1
  97. package/knowledge-base/optimization/constrained-optimization.en.md +17 -3
  98. package/knowledge-base/optimization/constrained-optimization.md +17 -3
  99. package/knowledge-base/optimization/convex-optimization.en.md +15 -2
  100. package/knowledge-base/optimization/convex-optimization.md +15 -2
  101. package/knowledge-base/optimization/index.en.md +50 -0
  102. package/knowledge-base/optimization/index.md +50 -0
  103. package/knowledge-base/optimization/lagrangian-duality.en.md +18 -4
  104. package/knowledge-base/optimization/lagrangian-duality.md +18 -4
  105. package/knowledge-base/optimization/proximal-method.en.md +15 -1
  106. package/knowledge-base/optimization/proximal-method.md +15 -1
  107. package/knowledge-base/optimization/riemannian-optimization.en.md +18 -4
  108. package/knowledge-base/optimization/riemannian-optimization.md +18 -4
  109. package/knowledge-base/overview.en.md +20 -8
  110. package/knowledge-base/overview.md +20 -8
  111. package/knowledge-base/probability/concentration-inequality.en.md +16 -2
  112. package/knowledge-base/probability/concentration-inequality.md +16 -2
  113. package/knowledge-base/probability/entropy.en.md +19 -3
  114. package/knowledge-base/probability/entropy.md +18 -2
  115. package/knowledge-base/probability/fisher-information.en.md +17 -3
  116. package/knowledge-base/probability/fisher-information.md +17 -3
  117. package/knowledge-base/probability/index.en.md +51 -0
  118. package/knowledge-base/probability/index.md +51 -0
  119. package/knowledge-base/probability/information-bottleneck.en.md +18 -2
  120. package/knowledge-base/probability/information-bottleneck.md +18 -2
  121. package/knowledge-base/probability/kl-divergence.en.md +15 -2
  122. package/knowledge-base/probability/kl-divergence.md +15 -2
  123. package/knowledge-base/topology/euler-characteristic.en.md +15 -2
  124. package/knowledge-base/topology/euler-characteristic.md +15 -2
  125. package/knowledge-base/topology/fundamental-group.en.md +16 -2
  126. package/knowledge-base/topology/fundamental-group.md +16 -2
  127. package/knowledge-base/topology/index.en.md +48 -0
  128. package/knowledge-base/topology/index.md +48 -0
  129. package/knowledge-base/topology/persistent-homology.en.md +17 -2
  130. package/knowledge-base/topology/persistent-homology.md +17 -2
  131. package/lenses/spectral.en.md +1 -1
  132. package/lenses/spectral.md +1 -1
  133. package/lenses/topological.en.md +1 -1
  134. package/lenses/topological.md +1 -1
  135. package/package.json +6 -6
  136. package/references/agentic-workflow.en.md +2 -2
  137. package/references/books/abstract-algebra.en.md +12 -12
  138. package/references/books/abstract-algebra.md +9 -9
  139. package/references/books/algebraic-geometry-rising-sea.en.md +2 -2
  140. package/references/books/differential-geometry.en.md +16 -16
  141. package/references/books/differential-geometry.md +14 -14
  142. package/references/books/matrix-analysis.en.md +3 -3
  143. package/references/books/matrix-analysis.md +24 -24
  144. package/references/books/micro-lie-theory.en.md +1 -1
  145. package/references/books/optimization-ml.en.md +15 -15
  146. package/references/books/optimization-ml.md +14 -14
  147. package/references/books/smooth-manifolds.en.md +3 -3
  148. package/references/books/smooth-manifolds.md +6 -6
  149. package/references/gpu-friendly-math.en.md +21 -8
  150. package/references/gpu-friendly-math.md +19 -4
  151. package/references/skill-index.en.md +106 -0
  152. package/references/skill-index.md +106 -0
  153. package/skills/math-research-activator/SKILL.en.md +76 -118
  154. package/skills/math-research-activator/SKILL.md +69 -109
@@ -45,7 +45,21 @@ GPU friendliness depends on whether a closed-form retraction exists:
45
45
 
46
46
  ## Further References
47
47
 
48
- - Distillation notes: references/books/differential-geometry.md (Ch 13 Section 13.4 Geodesics, Section 13.11 Rauch Comparison)
49
- - Distillation notes: references/books/smooth-manifolds.md (Ch 20 The Exponential Map)
48
+ - Distillation notes: ../../references/books/differential-geometry.en.md (Ch 13 Section 13.4 Geodesics, Section 13.11 Rauch Comparison)
49
+ - Distillation notes: ../../references/books/smooth-manifolds.en.md (Ch 20 The Exponential Map)
50
50
  - Original text: Jeffrey M. Lee, *Manifolds and Differential Geometry*, Section 13.4 Geodesics
51
51
  - Original text: John M. Lee, *Introduction to Smooth Manifolds*, Ch 20 (exponential map, retraction prototype)
52
+
53
+
54
+ ## Routing Extensions
55
+ - If the distance definition is needed -> `metric-tensor.en.md` (metric tensor determines geodesics)
56
+ - If used as a retraction -> `../optimization/riemannian-optimization.md` (exponential map as retraction)
57
+ - If deviation from flat space is needed -> `curvature.en.md` (curvature controls geodesic deviation)
58
+
59
+ ## Extensible Directions
60
+ - Conjugate points: zeros of Jacobi fields along geodesics
61
+ - Cut locus: critical points where geodesics lose optimality
62
+ - Hopf-Rinow theorem: completeness and geodesic existence
63
+ - Geodesic convexity: convex sets and convex functions on manifolds
64
+ - Jacobi field: linearization of geodesic variation
65
+ - Geodesic regression: regression analysis on manifolds
@@ -45,7 +45,21 @@ GPU 友好度取决于是否有闭式 retraction:
45
45
 
46
46
  ## 深入参考
47
47
 
48
- - 蒸馏稿:references/books/differential-geometry.md(Ch 13 §13.4 Geodesics, §13.11 Rauch Comparison)
49
- - 蒸馏稿:references/books/smooth-manifolds.md(Ch 20 The Exponential Map)
48
+ - 蒸馏稿:../../references/books/differential-geometry.md(Ch 13 §13.4 Geodesics, §13.11 Rauch Comparison)
49
+ - 蒸馏稿:../../references/books/smooth-manifolds.md(Ch 20 The Exponential Map)
50
50
  - 原书:Jeffrey M. Lee, *Manifolds and Differential Geometry*, §13.4 Geodesics
51
51
  - 原书:John M. Lee, *Introduction to Smooth Manifolds*, Ch 20(指数映射、retraction 原型)
52
+
53
+
54
+ ## 路由扩展
55
+ - 若需要距离的具体定义 → `metric-tensor.md`(度量张量决定测地线)
56
+ - 若用作收缩映射 → `../optimization/riemannian-optimization.md`(指数映射作为收缩映射)
57
+ - 若需要偏离平坦空间的程度 → `curvature.md`(曲率控制测地线偏差)
58
+
59
+ ## 可扩展方向
60
+ - 共轭点(conjugate points):测地线上 Jacobi 场的零点
61
+ - 割迹(cut locus):测地线失去最优性的临界点
62
+ - Hopf-Rinow 定理:完备性与测地线存在性
63
+ - 测地凸性(geodesic convexity):流形上的凸集与凸函数
64
+ - Jacobi 场(Jacobi field):测地线变分的线性化
65
+ - 测地回归(geodesic regression):流形上的回归分析
@@ -0,0 +1,52 @@
1
+ # Differential Geometry Activation Index
2
+
3
+ ## Domain Signals
4
+ Activate this domain direction when the problem involves:
5
+ - Parameter space curvature: geometric curvature of parameter space affects optimization or inference
6
+ - Manifold constraints: parameters must remain on a specific manifold
7
+ - Geodesic distance: need to compute shortest paths or distances along a manifold
8
+ - Connection / parallel transport: need to compare tangent vectors at different points on a manifold
9
+ - Riemannian metric: need to define inner products and lengths on a manifold
10
+ - Index raising/lowering: need to convert between tangent and cotangent spaces
11
+
12
+ ## Core Anchors
13
+ - `manifold.en.md` — Fundamental concepts of manifolds
14
+ - `tangent-space.en.md` — Tangent space and tangent map
15
+ - `metric-tensor.en.md` — Metric tensor and Riemannian metric
16
+ - `geodesic.en.md` — Geodesics
17
+ - `curvature.en.md` — Curvature
18
+ - `connection.en.md` — Connection and covariant derivative
19
+
20
+ ## Extended Concepts
21
+ When core anchors are insufficient, the following concepts may need temporary activation:
22
+ - Lie derivative: Lie derivative and rate of change along a vector field
23
+ - exterior calculus (differential forms, wedge product, exterior derivative): exterior differentiation and differential form operations
24
+ - Hodge decomposition: Hodge decomposition theorem
25
+ - fiber bundle: fiber bundles and sections
26
+ - principal bundle: principal bundles and gauge theory
27
+ - holonomy: holonomy group and closure of parallel transport
28
+ - Riemannian submersion: Riemannian submersions and quotient metrics
29
+ - symmetric space: symmetric spaces
30
+ - homogeneous space: homogeneous spaces G/H
31
+ - Cartan geometry: Cartan geometry and moving frames
32
+ - spin structure: spin structures
33
+ - Dirac operator: Dirac operator
34
+ - Ricci flow: Ricci flow
35
+
36
+ ## Reference Book Directions
37
+ - `../../references/books/differential-geometry.en.md`: core content of Riemannian geometry
38
+ - `../../references/books/smooth-manifolds.en.md`: smooth manifolds, vector bundles, and differential forms
39
+
40
+ ## AI Translation Directions
41
+ - manifold → latent space geometry / manifold-valued predictions / hyperbolic embeddings
42
+ - tangent space → local linearization of parameter updates / tangent-space features
43
+ - metric tensor → learned distance metrics / Fisher-Rao natural gradient / metric-aware loss
44
+ - geodesic → interpolation on manifolds / geodesic regularization / shortest-path loss
45
+ - curvature → loss landscape analysis / curvature-aware optimization / flatness seeking
46
+ - connection → parallel transport of features / gauge-equivariant layers
47
+
48
+ ## Temporary Activation Rules
49
+ When the problem requires mathematics not in the core anchors:
50
+ 1. First check whether extended concepts contain a match
51
+ 2. If yes, generate a temporary knowledge card based on the lens
52
+ 3. If no, enter the Knowledge Gap Protocol
@@ -0,0 +1,52 @@
1
+ # 微分几何 激活索引 / Differential Geometry Activation Index
2
+
3
+ ## 领域信号
4
+ 当问题涉及以下信号时,激活本领域方向:
5
+ - 参数空间曲率:参数空间的几何弯曲影响优化或推断
6
+ - 流形约束:参数必须保持在特定流形上
7
+ - 测地线距离:需要沿流形计算最短路径或距离
8
+ - 联络/平行移动:需要在流形上比较不同点的切向量
9
+ - 黎曼度量:需要定义流形上的内积和长度
10
+ - 指标升降:需要在切空间与余切空间之间转换
11
+
12
+ ## 核心锚点
13
+ - `manifold.md` — 流形的基本概念
14
+ - `tangent-space.md` — 切空间与切映射
15
+ - `metric-tensor.md` — 度量张量与黎曼度量
16
+ - `geodesic.md` — 测地线
17
+ - `curvature.md` — 曲率
18
+ - `connection.md` — 联络与协变导数
19
+
20
+ ## 扩展概念
21
+ 当核心锚点不够时,以下概念可能需要临时激活:
22
+ - Lie derivative:Lie 导数与沿向量场的变化率
23
+ - exterior calculus(differential forms, wedge product, exterior derivative):外微分与微分形式运算
24
+ - Hodge decomposition:Hodge 分解定理
25
+ - fiber bundle:纤维丛与截面
26
+ - principal bundle:主丛与规范理论
27
+ - holonomy:和乐群与平行移动的闭合性
28
+ - Riemannian submersion:黎曼浸没与商度量
29
+ - symmetric space:对称空间
30
+ - homogeneous space:齐性空间 G/H
31
+ - Cartan geometry:Cartan 几何与活动标架
32
+ - spin structure:旋量结构
33
+ - Dirac operator:Dirac 算子
34
+ - Ricci flow:Ricci 流
35
+
36
+ ## 参考书方向
37
+ - `../../references/books/differential-geometry.md`:黎曼几何的核心内容
38
+ - `../../references/books/smooth-manifolds.md`:光滑流形、向量丛和微分形式
39
+
40
+ ## AI 翻译方向
41
+ - manifold → latent space geometry / manifold-valued predictions / hyperbolic embeddings
42
+ - tangent space → local linearization of parameter updates / tangent-space features
43
+ - metric tensor → learned distance metrics / Fisher-Rao natural gradient / metric-aware loss
44
+ - geodesic → interpolation on manifolds / geodesic regularization / shortest-path loss
45
+ - curvature → loss landscape analysis / curvature-aware optimization / flatness seeking
46
+ - connection → parallel transport of features / gauge-equivariant layers
47
+
48
+ ## 临时激活规则
49
+ 当问题需要的数学不在核心锚点中时:
50
+ 1. 先检查扩展概念中是否有匹配
51
+ 2. 若有,根据透镜生成临时知识卡
52
+ 3. 若无,进入 Knowledge Gap Protocol
@@ -41,7 +41,20 @@ Moderate GPU friendliness. Coordinate chart transformations are element-wise map
41
41
 
42
42
  ## Further References
43
43
 
44
- - Distillation notes: references/books/smooth-manifolds.md (Ch 1-2 Smooth Manifolds / Smooth Maps)
45
- - Distillation notes: references/books/differential-geometry.md (Ch 1-2 Differentiable Manifolds / The Tangent Structure)
44
+ - Distillation notes: ../../references/books/smooth-manifolds.en.md (Ch 1-2 Smooth Manifolds / Smooth Maps)
45
+ - Distillation notes: ../../references/books/differential-geometry.en.md (Ch 1-2 Differentiable Manifolds / The Tangent Structure)
46
46
  - Original text: John M. Lee, *Introduction to Smooth Manifolds*, 2nd Edition, Ch 1-2 (topological manifolds, smooth structures, partition of unity)
47
47
  - Original text: Jeffrey M. Lee, *Manifolds and Differential Geometry*, Ch 1-2
48
+
49
+
50
+ ## Routing Extensions
51
+ - If local structure analysis is needed -> `tangent-space.en.md` (tangent space provides local linear approximation)
52
+ - If distance definition is needed -> `metric-tensor.en.md` (metric tensor defines distance on manifolds)
53
+ - If optimization on manifolds is needed -> `../optimization/riemannian-optimization.md` (Riemannian optimization methods)
54
+
55
+ ## Extensible Directions
56
+ - Submanifold: embedded and immersed submanifolds
57
+ - Product manifold: direct product construction of multiple manifolds
58
+ - Quotient manifold: quotient space under equivalence relations
59
+ - Stiefel / Grassmann manifolds: orthogonal matrix and subspace manifolds
60
+ - Manifold learning (Isomap / LLE / diffusion maps): discovering low-dimensional manifolds from high-dimensional data
@@ -41,7 +41,20 @@ GPU 友好度中等。坐标卡变换本身是逐元素的映射(可并行)
41
41
 
42
42
  ## 深入参考
43
43
 
44
- - 蒸馏稿:references/books/smooth-manifolds.md(Ch 1-2 Smooth Manifolds / Smooth Maps)
45
- - 蒸馏稿:references/books/differential-geometry.md(Ch 1-2 Differentiable Manifolds / The Tangent Structure)
44
+ - 蒸馏稿:../../references/books/smooth-manifolds.md(Ch 1-2 Smooth Manifolds / Smooth Maps)
45
+ - 蒸馏稿:../../references/books/differential-geometry.md(Ch 1-2 Differentiable Manifolds / The Tangent Structure)
46
46
  - 原书:John M. Lee, *Introduction to Smooth Manifolds*, 2nd Edition, Ch 1-2(拓扑流形、光滑结构、单位分解)
47
47
  - 原书:Jeffrey M. Lee, *Manifolds and Differential Geometry*, Ch 1-2
48
+
49
+
50
+ ## 路由扩展
51
+ - 若需要局部结构分析 → `tangent-space.md`(切空间提供局部线性近似)
52
+ - 若需要距离定义 → `metric-tensor.md`(度量张量定义流形上的距离)
53
+ - 若需要在流形上做优化 → `../optimization/riemannian-optimization.md`(黎曼优化方法)
54
+
55
+ ## 可扩展方向
56
+ - 子流形(submanifold):嵌入子流形与浸没子流形
57
+ - 积流形(product manifold):多个流形的直积构造
58
+ - 商流形(quotient manifold):等价关系下的商空间
59
+ - Stiefel / Grassmann 流形:正交矩阵与子空间流形
60
+ - 流形学习(Isomap / LLE / diffusion maps):从高维数据发现低维流形
@@ -44,7 +44,21 @@ GPU friendliness depends on the structure of the metric:
44
44
 
45
45
  ## Further References
46
46
 
47
- - Distillation notes: references/books/differential-geometry.md (Ch 7 Section 7.6 Metric Tensors, Ch 13 Section 13.1 Levi-Civita)
48
- - Distillation notes: references/books/smooth-manifolds.md (Ch 13 Riemannian Metrics)
47
+ - Distillation notes: ../../references/books/differential-geometry.en.md (Ch 7 Section 7.6 Metric Tensors, Ch 13 Section 13.1 Levi-Civita)
48
+ - Distillation notes: ../../references/books/smooth-manifolds.en.md (Ch 13 Riemannian Metrics)
49
49
  - Original text: Jeffrey M. Lee, *Manifolds and Differential Geometry*, Section 7.6 Metric Tensors
50
50
  - Original text: John M. Lee, *Introduction to Smooth Manifolds*, Ch 13 (Riemannian metrics, musical isomorphisms sharp/flat)
51
+
52
+
53
+ ## Routing Extensions
54
+ - If the metric comes from Fisher information -> `../information-geometry/natural-gradient.md` (natural gradient under Fisher metric)
55
+ - If Riemannian gradient computation is needed -> `../optimization/riemannian-optimization.md` (metric determines gradient direction)
56
+ - If curvature analysis is needed -> `curvature.en.md` (metric determines curvature tensor)
57
+
58
+ ## Extensible Directions
59
+ - Finsler metric: generalized non-quadratic metrics
60
+ - Sub-Riemannian metric: metrics under distribution constraints
61
+ - Information metric: Fisher-Rao metric on statistical manifolds
62
+ - Pullback metric: metric induced by a mapping
63
+ - Metric learning: learning optimal metrics from data
64
+ - Distance metric learning: supervised distance learning
@@ -44,7 +44,21 @@ GPU 友好度取决于度量的结构化程度:
44
44
 
45
45
  ## 深入参考
46
46
 
47
- - 蒸馏稿:references/books/differential-geometry.md(Ch 7 §7.6 Metric Tensors, Ch 13 §13.1 Levi-Civita)
48
- - 蒸馏稿:references/books/smooth-manifolds.md(Ch 13 Riemannian Metrics)
47
+ - 蒸馏稿:../../references/books/differential-geometry.md(Ch 7 §7.6 Metric Tensors, Ch 13 §13.1 Levi-Civita)
48
+ - 蒸馏稿:../../references/books/smooth-manifolds.md(Ch 13 Riemannian Metrics)
49
49
  - 原书:Jeffrey M. Lee, *Manifolds and Differential Geometry*, §7.6 Metric Tensors
50
50
  - 原书:John M. Lee, *Introduction to Smooth Manifolds*, Ch 13(黎曼度量、升降指标 (sharp)/(flat))
51
+
52
+
53
+ ## 路由扩展
54
+ - 若度量来自 Fisher 信息 → `../information-geometry/natural-gradient.md`(Fisher 度量下的自然梯度)
55
+ - 若需要黎曼梯度计算 → `../optimization/riemannian-optimization.md`(度量决定的梯度方向)
56
+ - 若需要曲率分析 → `curvature.md`(度量决定的曲率张量)
57
+
58
+ ## 可扩展方向
59
+ - Finsler 度量(Finsler metric):非二次型的广义度量
60
+ - 亚黎曼度量(sub-Riemannian metric):分布约束下的度量
61
+ - 信息度量(information metric):统计流形上的 Fisher-Rao 度量
62
+ - 拉回度量(pullback metric):映射诱导的度量
63
+ - 度量学习(metric learning):从数据学习最优度量
64
+ - 距离度量学习(distance metric learning):监督距离学习
@@ -13,7 +13,7 @@ The tangent space $T_pM$ is the $n$-dimensional vector space of all tangent vect
13
13
 
14
14
  ## Applicable Problems
15
15
 
16
- - Geometric interpretation of backpropagation: the chain rule equals pushforward along composed maps
16
+ - Geometric interpretation of backpropagation: the chain rule equals pullback on the cotangent bundle, i.e., VJP (vector-Jacobian product) = pullback of covectors $df_p^*(\omega) = J^T \omega$. Note: pushforward corresponds to JVP (forward-mode AD), not backpropagation
17
17
  - Correct gradient direction computation: autodiff outputs are covectors (1-forms), requiring a metric to convert them into descent directions
18
18
  - Gradient projection in constrained optimization: projecting the Euclidean gradient onto the tangent space of the constraint submanifold
19
19
  - Linearized approximations on manifolds: using linear methods within the tangent space to handle local problems
@@ -42,7 +42,21 @@ High GPU friendliness. The core operations of the tangent space are linear algeb
42
42
 
43
43
  ## Further References
44
44
 
45
- - Distillation notes: references/books/smooth-manifolds.md (Ch 3 Tangent Vectors, Ch 11 The Cotangent Bundle)
46
- - Distillation notes: references/books/differential-geometry.md (Ch 1-2, Ch 7 Tensors)
45
+ - Distillation notes: ../../references/books/smooth-manifolds.en.md (Ch 3 Tangent Vectors, Ch 11 The Cotangent Bundle)
46
+ - Distillation notes: ../../references/books/differential-geometry.en.md (Ch 1-2, Ch 7 Tensors)
47
47
  - Original text: John M. Lee, *Introduction to Smooth Manifolds*, 2nd Edition, Ch 3 (tangent spaces, pushforward, tangent bundle)
48
48
  - Original text: John M. Lee, *Introduction to Smooth Manifolds*, Ch 11 (cotangent bundle, 1-forms, pullback)
49
+
50
+
51
+ ## Routing Extensions
52
+ - If gradient computation on manifolds is needed -> `../optimization/riemannian-optimization.md` (gradient descent on manifolds)
53
+ - If the tangent space of a group structure is involved -> `../lie-theory/lie-algebra.md` (tangent space of a Lie group is its Lie algebra)
54
+ - If covariant derivative is needed -> `connection.en.md` (connection defines covariant differentiation)
55
+
56
+ ## Extensible Directions
57
+ - Cotangent space: dual space and differential forms
58
+ - Differential / pushforward: tangent map of smooth maps
59
+ - Vector field: smooth vector fields on manifolds
60
+ - Lie bracket: commutation relations of vector fields
61
+ - Integral curve: integral curves and flows of vector fields
62
+ - Exponential map: mapping from tangent space to manifold
@@ -13,7 +13,7 @@
13
13
 
14
14
  ## 适用问题
15
15
 
16
- - 反向传播的几何理解:链式法则 = 沿复合映射做 pushforward
16
+ - 反向传播的几何理解:链式法则 = 余切丛上的 pullback(拉回),即 VJP(vector-Jacobian product)= 余向量的拉回 $df_p^*(\omega) = J^T \omega$。注意:pushforward 对应的是 JVP(前向模式 AD),不是反向传播
17
17
  - 梯度方向的正确计算:autodiff 输出是余向量(1-form),需要度量才能变成下降方向
18
18
  - 约束优化中梯度投影:将欧氏梯度投影到约束子流形的切空间
19
19
  - 流形上的线性化近似:在切空间中用线性方法处理局部问题
@@ -42,7 +42,21 @@ GPU 友好度高。切空间的核心操作是线性代数:
42
42
 
43
43
  ## 深入参考
44
44
 
45
- - 蒸馏稿:references/books/smooth-manifolds.md(Ch 3 Tangent Vectors, Ch 11 The Cotangent Bundle)
46
- - 蒸馏稿:references/books/differential-geometry.md(Ch 1-2, Ch 7 Tensors)
45
+ - 蒸馏稿:../../references/books/smooth-manifolds.md(Ch 3 Tangent Vectors, Ch 11 The Cotangent Bundle)
46
+ - 蒸馏稿:../../references/books/differential-geometry.md(Ch 1-2, Ch 7 Tensors)
47
47
  - 原书:John M. Lee, *Introduction to Smooth Manifolds*, 2nd Edition, Ch 3(切空间、pushforward、切丛)
48
48
  - 原书:John M. Lee, *Introduction to Smooth Manifolds*, Ch 11(余切丛、1-form、pullback)
49
+
50
+
51
+ ## 路由扩展
52
+ - 若需要在流形上计算梯度 → `../optimization/riemannian-optimization.md`(流形上的梯度下降)
53
+ - 若涉及群结构的切空间 → `../lie-theory/lie-algebra.md`(李群的切空间即李代数)
54
+ - 若需要协变导数 → `connection.md`(联络定义协变微分)
55
+
56
+ ## 可扩展方向
57
+ - 余切空间(cotangent space):对偶空间与微分形式
58
+ - 微分/前推算子(differential / pushforward):光滑映射的切映射
59
+ - 向量场(vector field):流形上的光滑向量场
60
+ - Lie 括号(Lie bracket):向量场的对易关系
61
+ - 积分曲线(integral curve):向量场的积分曲线与流
62
+ - 指数映射(exponential map):从切空间到流形的映射
@@ -6,10 +6,14 @@ The Fisher-Rao metric is a **Riemannian metric** on the parameter space of a fam
6
6
  ## Core Formulas
7
7
 
8
8
  **Metric Tensor (i.e., Fisher Information Matrix)**:
9
- $$g_{ij}(\theta) = \mathcal{I}_{ij}(\theta) = \mathbb{E}_\theta\left[\frac{\partial \log p}{\partial \theta_i} \frac{\partial \log p}{\partial \theta_j}\right]$$
9
+ $$g_{ij}(\theta) = \mathcal{I}_{ij}(\theta) = \mathbb{E}_\theta\left[\frac{\partial \log p}{\partial \theta_i} \frac{\partial \log p}{\partial \theta_j}\right] = -\mathbb{E}_\theta\left[\frac{\partial^2 \log p}{\partial \theta_i \partial \theta_j}\right]$$
10
+
11
+ **Second-Order Taylor Expansion of KL Divergence**: The Fisher metric is precisely the Hessian of KL divergence at $\theta' = \theta$:
12
+ $$g_{ij}(\theta) = \frac{\partial^2}{\partial \theta_i' \partial \theta_j'} D_{KL}(p_\theta \| p_{\theta'})\bigg|_{\theta'=\theta}$$
13
+ That is, $D_{KL}(p_\theta \| p_{\theta+d\theta}) = \frac{1}{2} \sum_{i,j} g_{ij}(\theta) \, d\theta_i \, d\theta_j + O(\|d\theta\|^3)$.
10
14
 
11
15
  **Line Element (infinitesimal distance between distributions)**:
12
- $$ds^2 = \sum_{i,j} g_{ij}(\theta) \, d\theta_i \, d\theta_j = 2 \, D_{KL}(p_\theta \| p_{\theta+d\theta})$$
16
+ $$ds^2 = \sum_{i,j} g_{ij}(\theta) \, d\theta_i \, d\theta_j \approx 2 \, D_{KL}(p_\theta \| p_{\theta+d\theta}) \quad \text{(second-order local expansion, asymptotically exact as } d\theta \to 0\text{)}$$
13
17
 
14
18
  **Geodesic Distance (finite distance between distributions)**:
15
19
  $$d(p_{\theta_1}, p_{\theta_2}) = \inf_{\gamma} \int_0^1 \sqrt{\dot{\gamma}^T \mathcal{I}(\gamma(t)) \dot{\gamma}} \, dt$$
@@ -20,7 +24,7 @@ $$\Gamma_{ijk}^{(\alpha)} = \mathbb{E}\left[\left(\partial_i \partial_j \ell + \
20
24
  - $\alpha = 1$: $e$-connection (exponential connection), corresponding to straight lines in the natural parameters of the exponential family
21
25
  - $\alpha = -1$: $m$-connection (mixture connection), corresponding to straight lines in the expectation parameters of the mixture family
22
26
 
23
- **Dually Flat Structure**: $(\mathcal{M}, g, \nabla^{(e)}, \nabla^{(m)})$ forms a dually flat manifold the $e$-connection and $m$-connection are dual to each other with respect to $g$, and the generalized Pythagorean theorem holds.
27
+ **Dually Flat Structure (conditional)**: Exponential families, mixture families, and related structured statistical models can make $(\mathcal{M}, g, \nabla^{(e)}, \nabla^{(m)})$ a dually flat manifold, where the $e$-connection and $m$-connection are dual with respect to $g$ and the generalized Pythagorean theorem holds. A general Fisher-Rao statistical manifold is not automatically dually flat; the model-family structure must be verified.
24
28
 
25
29
  ## Applicable Problems
26
30
  - **Geometric distance between distributions**: Comparing the "intrinsic difference" between two probabilistic models (e.g., output distributions of two language models)
@@ -49,8 +53,23 @@ $$\Gamma_{ijk}^{(\alpha)} = \mathbb{E}\left[\left(\partial_i \partial_j \ell + \
49
53
  - **Singularities of the statistical manifold**: In certain regions of the parameter space (e.g., degenerate points of mixture distributions), the Fisher metric may degenerate ($\det \mathcal{I} = 0$), causing geodesic distances to be undefined. This type of degeneracy arises in MoE when an expert's weight is zero.
50
54
 
51
55
  ## Further References
52
- - Distillation draft: `references/books/` — no dedicated information geometry distillation draft at present
56
+ - Distillation draft: `../../references/books/` — no dedicated information geometry distillation draft at present
53
57
  - Amari & Nagaoka. *Methods of Information Geometry*. AMS/Oxford, 2000
54
58
  - Amari. *Information Geometry and Its Applications*. Springer, 2016
55
59
  - Ay, Jost, Le, Schwachhofer. *Information Geometry*. Springer, 2017
56
- - Related knowledge cards: `probability/fisher-information.md`, `information-geometry/natural-gradient.md`
60
+ - Related knowledge cards: `../probability/fisher-information.en.md`, `natural-gradient.en.md`
61
+
62
+
63
+ ## Routing Extensions
64
+ - If optimization application is needed -> `natural-gradient.en.md` (natural gradient descent under Fisher metric)
65
+ - If a general Riemannian metric is needed -> `../differential-geometry/metric-tensor.md` (Fisher metric is a special case of Riemannian metric)
66
+ - If local KL analysis is needed -> `../probability/kl-divergence.md` (local KL divergence equals Fisher metric)
67
+
68
+ ## Extensible Directions
69
+ - Rao's distance: geodesic distance under Fisher-Rao metric
70
+ - Fisher-Rao geodesic: shortest paths in distribution space
71
+ - Alpha-connection family: Amari's alpha-connections
72
+ - Dual flatness: e-flat and m-flat structures
73
+ - Chentsov's uniqueness theorem: uniqueness of Fisher metric
74
+ - Infinite-dimensional Fisher metric: Fisher metric on function spaces
75
+ - Fisher metric in function space: Fisher metric for neural networks
@@ -6,10 +6,14 @@ Fisher-Rao 度量是概率分布族(统计模型)参数空间上的**黎曼
6
6
  ## 核心公式
7
7
 
8
8
  **度量张量(即 Fisher 信息矩阵)**:
9
- $$g_{ij}(\theta) = \mathcal{I}_{ij}(\theta) = \mathbb{E}_\theta\left[\frac{\partial \log p}{\partial \theta_i} \frac{\partial \log p}{\partial \theta_j}\right]$$
9
+ $$g_{ij}(\theta) = \mathcal{I}_{ij}(\theta) = \mathbb{E}_\theta\left[\frac{\partial \log p}{\partial \theta_i} \frac{\partial \log p}{\partial \theta_j}\right] = -\mathbb{E}_\theta\left[\frac{\partial^2 \log p}{\partial \theta_i \partial \theta_j}\right]$$
10
+
11
+ **KL 散度的二阶 Taylor 展开**:Fisher 度量恰好是 KL 散度在 $\theta' = \theta$ 处的 Hessian:
12
+ $$g_{ij}(\theta) = \frac{\partial^2}{\partial \theta_i' \partial \theta_j'} D_{KL}(p_\theta \| p_{\theta'})\bigg|_{\theta'=\theta}$$
13
+ 即 $D_{KL}(p_\theta \| p_{\theta+d\theta}) = \frac{1}{2} \sum_{i,j} g_{ij}(\theta) \, d\theta_i \, d\theta_j + O(\|d\theta\|^3)$。
10
14
 
11
15
  **线元(分布间的无穷小距离)**:
12
- $$ds^2 = \sum_{i,j} g_{ij}(\theta) \, d\theta_i \, d\theta_j = 2 \, D_{KL}(p_\theta \| p_{\theta+d\theta})$$
16
+ $$ds^2 = \sum_{i,j} g_{ij}(\theta) \, d\theta_i \, d\theta_j \approx 2 \, D_{KL}(p_\theta \| p_{\theta+d\theta}) \quad \text{(二阶局部展开,当 } d\theta \to 0 \text{ 时渐近成立)}$$
13
17
 
14
18
  **测地线距离(有限分布间距离)**:
15
19
  $$d(p_{\theta_1}, p_{\theta_2}) = \inf_{\gamma} \int_0^1 \sqrt{\dot{\gamma}^T \mathcal{I}(\gamma(t)) \dot{\gamma}} \, dt$$
@@ -20,7 +24,7 @@ $$\Gamma_{ijk}^{(\alpha)} = \mathbb{E}\left[\left(\partial_i \partial_j \ell + \
20
24
  - $\alpha = 1$:$e$-联络(指数联络),对应指数族的自然参数直线
21
25
  - $\alpha = -1$:$m$-联络(混合联络),对应混合族的期望参数直线
22
26
 
23
- **对偶平坦性**:$(\mathcal{M}, g, \nabla^{(e)}, \nabla^{(m)})$ 构成对偶平坦流形——$e$-联络和 $m$-联络关于 $g$ 互为对偶,广义勾股定理成立。
27
+ **对偶平坦性(有条件)**:指数族、混合族等特定统计模型可使 $(\mathcal{M}, g, \nabla^{(e)}, \nabla^{(m)})$ 构成对偶平坦流形,$e$-联络和 $m$-联络关于 $g$ 互为对偶,广义勾股定理成立。一般 Fisher-Rao 统计流形不自动对偶平坦,需验证模型族结构。
24
28
 
25
29
  ## 适用问题
26
30
  - **分布间的几何距离**:比较两个概率模型(如两个语言模型的输出分布)的"本质差异"
@@ -49,8 +53,23 @@ $$\Gamma_{ijk}^{(\alpha)} = \mathbb{E}\left[\left(\partial_i \partial_j \ell + \
49
53
  - **统计流形的奇点**:在参数空间的某些区域(如混合分布的退化点),Fisher 度量可能退化($\det \mathcal{I} = 0$),导致测地线距离不定义。在 MoE 中某专家权重为零时即出现此类退化。
50
54
 
51
55
  ## 深入参考
52
- - 蒸馏稿:`references/books/` 暂无专用信息几何蒸馏稿
56
+ - 蒸馏稿:`../../references/books/` 暂无专用信息几何蒸馏稿
53
57
  - Amari & Nagaoka. *Methods of Information Geometry*. AMS/Oxford, 2000
54
58
  - Amari. *Information Geometry and Its Applications*. Springer, 2016
55
59
  - Ay, Jost, Le, Schwachhofer. *Information Geometry*. Springer, 2017
56
- - 关联知识卡:`probability/fisher-information.md`、`information-geometry/natural-gradient.md`
60
+ - 关联知识卡:`../probability/fisher-information.md`、`natural-gradient.md`
61
+
62
+
63
+ ## 路由扩展
64
+ - 若需要优化应用 → `natural-gradient.md`(Fisher 度量下的自然梯度下降)
65
+ - 若需要一般黎曼度量 → `../differential-geometry/metric-tensor.md`(Fisher 度量是黎曼度量的特例)
66
+ - 若需要局部 KL 分析 → `../probability/kl-divergence.md`(局部 KL 散度等于 Fisher 度量)
67
+
68
+ ## 可扩展方向
69
+ - Rao 距离(Rao's distance):Fisher-Rao 度量下的测地距离
70
+ - Fisher-Rao 测地线(Fisher-Rao geodesic):分布空间中的最短路径
71
+ - alpha-联络族(alpha-connection family):Amari 的 alpha-联络
72
+ - 对偶平坦性(dual flatness):e-平坦与 m-平坦结构
73
+ - Chentsov 唯一性定理(Chentsov's uniqueness theorem):Fisher 度量的唯一性
74
+ - 无穷维 Fisher 度量(infinite-dimensional Fisher metric):函数空间上的 Fisher 度量
75
+ - 函数空间 Fisher 度量(Fisher metric in function space):神经网络的 Fisher 度量
@@ -0,0 +1,45 @@
1
+ # Information Geometry Activation Index
2
+
3
+ ## Domain Signals
4
+ Activate this domain direction when the problem involves:
5
+ - Distribution family geometry: probability distribution families have intrinsic geometric structure
6
+ - Parameterization-independent optimization: optimization methods should not depend on specific parameterization
7
+ - Statistical model complexity: need to measure the intrinsic complexity of statistical models
8
+ - Distance between distributions: need to define geometric distance in distribution space
9
+ - Natural gradient: gradient direction must account for the geometric structure of parameter space
10
+
11
+ ## Core Anchors
12
+ - `natural-gradient.en.md` — Natural gradient
13
+ - `fisher-metric.en.md` — Fisher metric
14
+
15
+ ## Extended Concepts
16
+ When core anchors are insufficient, the following concepts may need temporary activation:
17
+ - alpha-divergence: alpha-divergence family
18
+ - Amari-Chentsov tensor: Amari-Chentsov tensor and cubic differential structure
19
+ - dually flat manifold: dually flat manifolds
20
+ - e-connection / m-connection: exponential connection and mixture connection
21
+ - Pythagorean theorem for KL: generalized Pythagorean theorem for KL divergence
22
+ - Bregman divergence: Bregman divergence and convex duality
23
+ - mirror descent as natural gradient: equivalence between mirror descent and natural gradient
24
+ - EM algorithm geometry: geometric interpretation of the EM algorithm
25
+ - variational Bayes geometry: geometric structure of variational Bayes
26
+ - information geometry of neural networks (loss landscape curvature): information geometry of neural networks and loss landscape curvature
27
+ - neural tangent kernel as metric: neural tangent kernel as a metric
28
+ - Fisher-Rao gradient flow: Fisher-Rao gradient flow
29
+ - Wasserstein gradient flow: Wasserstein gradient flow
30
+
31
+ ## Reference Book Directions
32
+ - `../../references/books/smooth-manifolds.en.md`: Chapter 13 on Riemannian metrics, providing differential geometry foundations for information geometry
33
+
34
+ ## AI Translation Directions
35
+ - natural gradient → parameter-space-aware optimizer / K-FAC / natural policy gradient
36
+ - fisher metric → distribution distance in parameter space / model merging geometry / loss landscape metric
37
+ - α-divergence → generalized variational inference / robust posterior approximation
38
+ - Bregman divergence → mirror descent / online learning updates / exponential family fitting
39
+ - dual flatness → efficient projection in distribution space / EM algorithm geometry
40
+
41
+ ## Temporary Activation Rules
42
+ When the problem requires mathematics not in the core anchors:
43
+ 1. First check whether extended concepts contain a match
44
+ 2. If yes, generate a temporary knowledge card based on the lens
45
+ 3. If no, enter the Knowledge Gap Protocol
@@ -0,0 +1,45 @@
1
+ # 信息几何 激活索引 / Information Geometry Activation Index
2
+
3
+ ## 领域信号
4
+ 当问题涉及以下信号时,激活本领域方向:
5
+ - 分布族几何:概率分布族本身具有几何结构
6
+ - 参数化无关优化:优化方法应不依赖于具体参数化方式
7
+ - 统计模型复杂度:需要度量统计模型的内在复杂度
8
+ - 分布间距离:需要在分布空间中定义几何距离
9
+ - 自然梯度:梯度方向需要考虑参数空间的几何结构
10
+
11
+ ## 核心锚点
12
+ - `natural-gradient.md` — 自然梯度
13
+ - `fisher-metric.md` — Fisher 度量
14
+
15
+ ## 扩展概念
16
+ 当核心锚点不够时,以下概念可能需要临时激活:
17
+ - alpha-divergence:alpha-散度族
18
+ - Amari-Chentsov tensor:Amari-Chentsov 张量与三次微分结构
19
+ - dually flat manifold:对偶平坦流形
20
+ - e-connection / m-connection:指数联络与混合联络
21
+ - Pythagorean theorem for KL:KL 散度的广义勾股定理
22
+ - Bregman divergence:Bregman 散度与凸对偶
23
+ - mirror descent as natural gradient:镜像下降与自然梯度的等价性
24
+ - EM algorithm geometry:EM 算法的几何解释
25
+ - variational Bayes geometry:变分贝叶斯的几何结构
26
+ - information geometry of neural networks(loss landscape curvature):神经网络的信息几何与损失景观曲率
27
+ - neural tangent kernel as metric:神经切线核作为度量
28
+ - Fisher-Rao gradient flow:Fisher-Rao 梯度流
29
+ - Wasserstein gradient flow:Wasserstein 梯度流
30
+
31
+ ## 参考书方向
32
+ - `../../references/books/smooth-manifolds.md`:第 13 章黎曼度量,为信息几何提供微分几何基础
33
+
34
+ ## AI 翻译方向
35
+ - natural gradient → parameter-space-aware optimizer / K-FAC / natural policy gradient
36
+ - fisher metric → distribution distance in parameter space / model merging geometry / loss landscape metric
37
+ - α-divergence → generalized variational inference / robust posterior approximation
38
+ - Bregman divergence → mirror descent / online learning updates / exponential family fitting
39
+ - dual flatness → efficient projection in distribution space / EM algorithm geometry
40
+
41
+ ## 临时激活规则
42
+ 当问题需要的数学不在核心锚点中时:
43
+ 1. 先检查扩展概念中是否有匹配
44
+ 2. 若有,根据透镜生成临时知识卡
45
+ 3. 若无,进入 Knowledge Gap Protocol
@@ -12,7 +12,7 @@ $$\theta_{t+1} = \theta_t - \eta \nabla_\theta \mathcal{L}(\theta)$$
12
12
  $$\tilde{\nabla} \mathcal{L}(\theta) = \mathcal{I}(\theta)^{-1} \nabla_\theta \mathcal{L}(\theta)$$
13
13
  $$\theta_{t+1} = \theta_t - \eta \, \mathcal{I}(\theta)^{-1} \nabla_\theta \mathcal{L}(\theta)$$
14
14
 
15
- where $\mathcal{I}(\theta)$ is the Fisher information matrix (see `probability/fisher-information.md`).
15
+ where $\mathcal{I}(\theta)$ is the Fisher information matrix (see `../probability/fisher-information.en.md`).
16
16
 
17
17
  **Equivalent Derivation (Constrained Optimization Perspective)**: The natural gradient is the solution to the following constrained optimization problem —
18
18
  $$\min_{\Delta\theta} \mathcal{L}(\theta + \Delta\theta) \quad \text{s.t.} \quad D_{KL}(p_\theta \| p_{\theta+\Delta\theta}) \leq \epsilon$$
@@ -47,8 +47,22 @@ where $A_l = \mathbb{E}[a_l a_l^T]$ (activation covariance) and $B_l = \mathbb{E
47
47
  - **Burn-in problem for covariance estimation**: In early training, $A_l, B_l$ estimates are inaccurate and the natural gradient direction may be wrong. The standard practice is to warm up with Adam/SGD for the first few hundred steps, then switch to K-FAC.
48
48
 
49
49
  ## Further References
50
- - Distillation draft: `references/books/` — no dedicated information geometry distillation draft at present
50
+ - Distillation draft: `../../references/books/` — no dedicated information geometry distillation draft at present
51
51
  - Amari. *Natural Gradient Works Efficiently in Learning.* Neural Computation, 1998
52
52
  - Martens & Grosse. "Optimizing Neural Networks with Kronecker-Factored Approximate Curvature." *ICML*, 2015
53
53
  - Schulman et al. "Trust Region Policy Optimization." *ICML*, 2015
54
- - Related knowledge cards: `probability/fisher-information.md`, `information-geometry/fisher-metric.md`
54
+ - Related knowledge cards: `../probability/fisher-information.en.md`, `fisher-metric.en.md`
55
+
56
+
57
+ ## Routing Extensions
58
+ - If metric definition is needed -> `fisher-metric.en.md` (Fisher metric is the foundation of natural gradient)
59
+ - If a general Riemannian optimization framework is needed -> `../optimization/riemannian-optimization.md` (natural gradient is a special case of Riemannian gradient)
60
+ - If an information-theoretic perspective is needed -> `../probability/fisher-information.en.md` (statistical interpretation of Fisher information)
61
+
62
+ ## Extensible Directions
63
+ - Mirror descent as natural gradient: equivalence on dual spaces
64
+ - Amari's alpha-geometry: alpha-connection family
65
+ - Natural policy gradient (RL): natural gradient in reinforcement learning
66
+ - Natural evolution strategies (NES): NES optimizer
67
+ - Practical natural gradient: efficient implementations such as K-FAC, diagonal approximations
68
+ - Adaptive natural gradient: methods for dynamically estimating Fisher information
@@ -12,7 +12,7 @@ $$\theta_{t+1} = \theta_t - \eta \nabla_\theta \mathcal{L}(\theta)$$
12
12
  $$\tilde{\nabla} \mathcal{L}(\theta) = \mathcal{I}(\theta)^{-1} \nabla_\theta \mathcal{L}(\theta)$$
13
13
  $$\theta_{t+1} = \theta_t - \eta \, \mathcal{I}(\theta)^{-1} \nabla_\theta \mathcal{L}(\theta)$$
14
14
 
15
- 其中 $\mathcal{I}(\theta)$ 为 Fisher 信息矩阵(详见 `probability/fisher-information.md`)。
15
+ 其中 $\mathcal{I}(\theta)$ 为 Fisher 信息矩阵(详见 `../probability/fisher-information.md`)。
16
16
 
17
17
  **等价推导(约束优化视角)**:自然梯度是以下约束优化问题的解——
18
18
  $$\min_{\Delta\theta} \mathcal{L}(\theta + \Delta\theta) \quad \text{s.t.} \quad D_{KL}(p_\theta \| p_{\theta+\Delta\theta}) \leq \epsilon$$
@@ -47,8 +47,22 @@ $$\mathcal{I}_l \approx A_l \otimes B_l$$
47
47
  - **协方差估计的 burn-in 问题**:训练初期 $A_l, B_l$ 估计不准确,自然梯度方向可能错误。标准做法是前几百步用 Adam/SGD warmup,再切换到 K-FAC。
48
48
 
49
49
  ## 深入参考
50
- - 蒸馏稿:`references/books/` 暂无专用信息几何蒸馏稿
50
+ - 蒸馏稿:`../../references/books/` 暂无专用信息几何蒸馏稿
51
51
  - Amari. *Natural Gradient Works Efficiently in Learning.* Neural Computation, 1998
52
52
  - Martens & Grosse. "Optimizing Neural Networks with Kronecker-Factored Approximate Curvature." *ICML*, 2015
53
53
  - Schulman et al. "Trust Region Policy Optimization." *ICML*, 2015
54
- - 关联知识卡:`probability/fisher-information.md`、`information-geometry/fisher-metric.md`
54
+ - 关联知识卡:`../probability/fisher-information.md`、`fisher-metric.md`
55
+
56
+
57
+ ## 路由扩展
58
+ - 若需要度量的定义 → `fisher-metric.md`(Fisher 度量是自然梯度的基础)
59
+ - 若需要一般黎曼优化框架 → `../optimization/riemannian-optimization.md`(自然梯度是黎曼梯度的特例)
60
+ - 若需要信息论视角 → `../probability/fisher-information.md`(Fisher 信息的统计解释)
61
+
62
+ ## 可扩展方向
63
+ - 镜像下降即自然梯度(mirror descent as natural gradient):对偶空间上的等价性
64
+ - Amari 的 alpha-几何(Amari's alpha-geometry):alpha-联络族
65
+ - 自然策略梯度(natural policy gradient / RL):强化学习中的自然梯度
66
+ - 自然进化策略(natural evolution strategies):NES 优化器
67
+ - 实用自然梯度(practical natural gradient):K-FAC, 对角近似等高效实现
68
+ - 自适应自然梯度(adaptive natural gradient):动态估计 Fisher 信息的方法
@@ -48,7 +48,22 @@ GPU friendliness depends on the degree of group discretization:
48
48
 
49
49
  ## Further References
50
50
 
51
- - Distillation notes: references/books/micro-lie-theory.md (Section II-F Adjoint $\text{Ad}_X$, algebraic realization of equivariance)
52
- - Distillation notes: references/books/differential-geometry.md (Section 6.8 Principal Bundles, Section 12.12 G-Connections, gauge equivariance)
53
- - Distillation notes: references/books/differential-geometry.md (Ch 5 Lie Groups, continuous symmetry as prior)
51
+ - Distillation notes: ../../references/books/micro-lie-theory.en.md (Section II-F Adjoint $\text{Ad}_X$, algebraic realization of equivariance)
52
+ - Distillation notes: ../../references/books/differential-geometry.en.md (Section 6.8 Principal Bundles, Section 12.12 G-Connections, gauge equivariance)
53
+ - Distillation notes: ../../references/books/differential-geometry.en.md (Ch 5 Lie Groups, continuous symmetry as prior)
54
54
  - Original text: Jeffrey M. Lee, *Manifolds and Differential Geometry*, Section 6.8 + Section 12.12 (geometric foundations of gauge equivariance)
55
+
56
+
57
+ ## Routing Extensions
58
+ - If representation theory foundations are needed -> `representation.en.md` (equivariant maps are morphisms between representations)
59
+ - If group action structure is needed -> `group-action.en.md` (equivariance definition depends on group action)
60
+ - If used for attention mechanism design -> `equivariant-attention` (design pattern layer for equivariant attention)
61
+
62
+ ## Extensible Directions
63
+ - Steerable features: steerable feature representations under SO(3)
64
+ - Spherical harmonics: basis functions for SO(3) irreducible representations
65
+ - Wigner D-matrices: matrix elements of SO(3) representations
66
+ - Equivariant map algebra: complete characterization of equivariant linear maps
67
+ - Universal equivariant architectures: universal approximation of equivariant functions
68
+ - Symmetry breaking: approximate equivariance or controlled symmetry breaking
69
+ - Approximate equivariance: approximate equivariance under noise or discretization