File size: 8,402 Bytes
02881a0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 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 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 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 | # Backpropagation via the Method of Fluxions
## A Newtonian Approach to Neural Network Training
**Authors:** Silicon Goddess, Scott Bisset
**Affiliation:** OpenTransformers Ltd
**Date:** January 2026
---
## Abstract
The backpropagation algorithm is typically presented using Leibniz's differential notation (∂L/∂w), which obscures the physical intuition behind gradient computation. We present an alternative formulation using Newton's method of fluxions, where derivatives are understood as rates of flow. This approach replaces abstract symbol manipulation with concrete physical intuition: "wiggle the weight, watch the loss wiggle." We demonstrate that fluxion notation provides a clearer pedagogical framework for understanding neural network training.
---
## 1. Introduction
### 1.1 The Problem with Leibniz Notation
Standard presentations of backpropagation rely heavily on Leibniz notation:
```
∂L/∂w = ∂L/∂a · ∂a/∂z · ∂z/∂w
```
This raises immediate questions for learners:
- What is ∂? Is it a quantity? An operator?
- Are these fractions? Can they cancel?
- What does "with respect to" mean physically?
The notation suggests fraction-like manipulation while explicitly NOT being fractions, creating cognitive dissonance that impedes understanding.
### 1.2 Newton's Alternative
Newton's method of fluxions treats derivatives as **rates of flow**. If a quantity y changes over time, its fluxion ẏ represents how fast it flows. This is physically intuitive:
- ẏ = velocity of y
- ÿ = acceleration of y (how fast velocity changes)
We extend this notation to neural networks, where the "time" parameter becomes the parameter being wiggled.
---
## 2. Fluxion Notation for Neural Networks
### 2.1 Basic Notation
| Leibniz | Fluxion | Meaning |
|---------|---------|---------|
| ∂y/∂x | ẏˣ | "Flow of y when x flows" |
| ∂²y/∂x² | ÿˣ | "Acceleration of y when x flows" |
| ∂L/∂w | L̇ʷ | "Loss flow per weight flow" |
The superscript indicates **what is being wiggled**. The dot indicates **how fast the response flows**.
### 2.2 Core Intuition
**Gradient = wiggle sensitivity**
```
L̇ʷ answers: "If I wiggle w by a tiny amount, how much does L wiggle?"
```
This is physically measurable. You could literally:
1. Increase w by 0.0001
2. Measure change in L
3. Ratio = gradient
Backpropagation computes this efficiently without actually wiggling.
---
## 3. Forward Pass as Downstream Flow
Consider a simple network:
```
Input x → [weight w₁] → z → σ() → a → [weight w₂] → y → Loss L
```
**Definitions:**
```
z = w₁ · x (weighted input)
a = σ(z) (activation)
y = w₂ · a (output)
L = (y - t)² (squared error loss)
```
**Forward flow computation:**
When we wiggle w₁, the effect flows downstream:
```
ẇ₁ → ż → ȧ → ẏ → L̇
```
Each flow is computed:
```
ż = x · ẇ₁ (z flows when w₁ flows)
ȧ = σ̇(z) · ż (a flows when z flows, scaled by σ's slope)
ẏ = a · ẇ₂ + w₂ · ȧ (y flows from both w₂ and a flowing)
L̇ = 2(y - t) · ẏ (loss flow from y flow)
```
---
## 4. Backpropagation as Upstream Wiggle-Tracing
### 4.1 The Key Question
"How much does L wiggle when w₁ wiggles?"
We trace backward through the flow:
```
L̇ʷ¹ = L̇ʸ · ẏᵃ · ȧᶻ · żʷ¹
```
**In English:**
- L̇ʸ = "loss sensitivity to output" = 2(y - t)
- ẏᵃ = "output response to activation" = w₂
- ȧᶻ = "activation response to pre-activation" = σ̇(z)
- żʷ¹ = "pre-activation response to weight" = x
**Therefore:**
```
L̇ʷ¹ = 2(y - t) · w₂ · σ̇(z) · x
```
This is the gradient. No mystery. Just multiplied sensitivities.
### 4.2 The Chain Rule as Flow Composition
Leibniz version (mysterious cancellation):
```
∂L/∂w = ∂L/∂y · ∂y/∂a · ∂a/∂z · ∂z/∂w
```
Fluxion version (obvious composition):
```
L̇ʷ = L̇ʸ · ẏᵃ · ȧᶻ · żʷ
```
"Total wiggle sensitivity = product of each stage's wiggle sensitivity"
This is intuitively obvious: if stage 1 amplifies wiggles by 2x, and stage 2 amplifies by 3x, total amplification is 6x.
---
## 5. General Backpropagation Algorithm
For a deep network with L layers:
### 5.1 Forward Pass (Compute Values)
```
For l = 1 to L:
z⁽ˡ⁾ = W⁽ˡ⁾ · a⁽ˡ⁻¹⁾
a⁽ˡ⁾ = σ(z⁽ˡ⁾)
```
### 5.2 Backward Pass (Compute Flows)
```
Initialize:
L̇ᵃ⁽ᴸ⁾ = ∇Loss(a⁽ᴸ⁾, target) # Output layer sensitivity
For l = L down to 1:
L̇ᶻ⁽ˡ⁾ = L̇ᵃ⁽ˡ⁾ ⊙ σ̇(z⁽ˡ⁾) # Pre-activation sensitivity
L̇ᵂ⁽ˡ⁾ = L̇ᶻ⁽ˡ⁾ · (a⁽ˡ⁻¹⁾)ᵀ # Weight gradient (THE THING WE WANT)
L̇ᵃ⁽ˡ⁻¹⁾ = (W⁽ˡ⁾)ᵀ · L̇ᶻ⁽ˡ⁾ # Propagate sensitivity backward
```
### 5.3 Interpretation
- L̇ᵃ⁽ˡ⁾ = "How much would loss wiggle if activation at layer l wiggled?"
- L̇ᶻ⁽ˡ⁾ = "How much would loss wiggle if pre-activation at layer l wiggled?"
- L̇ᵂ⁽ˡ⁾ = "How much would loss wiggle if weights at layer l wiggled?" ← **GRADIENT**
---
## 6. Gradient Descent as Anti-Flow
Once we have L̇ʷ (wiggle sensitivity), gradient descent is simply:
```
ẇ = -η · L̇ʷ
```
**English:** "Flow the weight opposite to how loss responds to weight flow."
- If wiggling w up makes L go up → L̇ʷ > 0 → flow w down
- If wiggling w up makes L go down → L̇ʷ < 0 → flow w up
**That's it.** Chase the anti-wiggle until loss stops responding.
---
## 7. Modern Optimizers in Fluxion Terms
### 7.1 SGD with Momentum
```
v̇ = β · v̇ + L̇ʷ # Velocity accumulates gradient
ẇ = -η · v̇ # Weight flows with velocity
```
"Build up speed in consistent gradient directions"
### 7.2 Adam
```
ṁ = β₁ · ṁ + (1-β₁) · L̇ʷ # First moment (mean flow)
v̇ = β₂ · v̇ + (1-β₂) · (L̇ʷ)² # Second moment (flow variance)
ẇ = -η · ṁ / (√v̇ + ε) # Normalized flow
```
"Flow faster when gradients are consistent, slower when noisy"
### 7.3 AdamW (Weight Decay)
```
ẇ = -η · (ṁ / (√v̇ + ε) + λ · w)
```
"Also flow weights toward zero proportionally"
---
## 8. Why This Matters
### 8.1 Pedagogical Benefits
1. **Physical intuition**: Wiggles are real. You can visualize them.
2. **No fake fractions**: Fluxions don't pretend to be something they're not.
3. **Composable**: Flow through A then B = product of flows. Obviously.
4. **Debuggable**: "Why is my gradient zero?" → "Find where wiggle sensitivity dies."
### 8.2 Historical Irony
Newton's notation lost to Leibniz primarily due to:
- Continental vs British mathematics rivalry
- Leibniz's notation looked cleaner for symbolic manipulation
- Newton was an asshole about priority disputes
Three centuries later, we're teaching neural networks with notation that obscures understanding because of 18th century academic beef.
---
## 9. Conclusion
Backpropagation is not mysterious. It is:
1. **Forward**: Push values through network
2. **Backward**: Trace wiggle-sensitivity upstream
3. **Update**: Flow weights opposite to their loss-sensitivity
The Leibniz notation ∂L/∂w hides this simplicity behind abstract symbols. Newton's fluxions reveal it: **the gradient is just how much loss wiggles when weights wiggle.**
We propose that introductory deep learning courses adopt fluxion-inspired notation and intuition, reserving Leibniz notation for contexts where symbolic manipulation is genuinely needed.
---
## References
1. Newton, I. (1671). *Method of Fluxions and Infinite Series*
2. Rumelhart, Hinton, Williams (1986). "Learning representations by back-propagating errors"
3. Berkeley, G. (1734). *The Analyst* ("Ghosts of departed quantities")
4. Robinson, A. (1966). *Non-standard Analysis* (Vindication of infinitesimals)
---
## Appendix: Notation Reference
| Symbol | Meaning |
|--------|---------|
| ẏ | Flow of y (first derivative) |
| ÿ | Acceleration of y (second derivative) |
| ẏˣ | Flow of y when x flows (partial) |
| L̇ʷ | Loss sensitivity to weight = gradient |
| ⊙ | Element-wise multiplication |
| η | Learning rate |
---
*"If I have seen less far than others, it is because Leibniz was standing on my notation."*
— Newton, probably
|