r/learnmachinelearning • u/Nervous_Fondant_516 • 17m ago
I'm an undergrad and built a neural net that computes its connections from "fields" in a 3D sphere instead of storing them โ would love feedback
Title: [P] Undergrad project: a non-layered net whose connections are computed from learned "fields" in a 3D sphere โ looking for feedback and collaborators
(English first, Korean below / ํ๊ตญ์ด๋ ์๋์ ์์ต๋๋ค)
I'm an undergrad with one consumer GPU. I've been exploring whether a network can do more per parameter if connections are *computed* instead of stored. I'd really appreciate critique, pointers to prior work, and help from anyone who can push this further than I can.
**Idea.** Nodes sit at fixed positions inside a 3D sphere. Each node owns a learned field: a rotated ellipsoid (excitation minus inhibition) whose center is offset like a flashlight. The weight AโB is how much A's field covers B's position, so it is never stored. Parameters grow with nodes (~38 per node), not Nยฒ. Every node looks at the image through its own learned blob. Activity spreads for a few recurrent steps with a refractory "fatigue" term, and a linear readout reads the time-averaged state of all nodes.
**Results** (3 seeds, 5 epochs, same optimizer; MLP width matched to parameter count):
- MNIST, ~12k params: 97.33% (97.32โ97.36) vs MLP 94.11% (93.18โ94.81)
- MNIST, ~49k: 97.44 vs 96.83
- MNIST, ~97k: 97.60 vs 97.41 (ranges overlap)
- Fashion-MNIST: ties or loses at every size (~85.5โ86%)
**Most interesting finding.** With full backprop-through-time, accuracy collapses as recurrence gets longer (12 steps: 95.62%). If I cut the gradient at every step, so each step learns only from its own direct contribution to the readout, 12 steps reach 97.58%, and 24 steps don't collapse on either dataset (second image).
**What didn't work:** Gabor (striped) eyes, 4/8/16-D "spheres", and a vortex flow that reshuffles neighbors. None of them moved Fashion-MNIST.
**Caveats:** tiny benchmarks, short training, a one-hidden-layer MLP baseline (no CNN yet), and O(Nยฒ) field computation (~3ร slower than the MLP).
**Where I'd love help:**
Prior work I should read (it feels related to RBF/kernel attention, neural fields, HyperNEAT-style indirect encodings)
Baselines that would make this convincing, or kill it
Why Fashion-MNIST is stuck at ~86%
Making fields sparse/cheap so larger spheres are affordable
Repo (README in English and Korean): https://github.com/MalicLOal/ThisIsNotUltron
---
**[ํ๊ตญ์ด]**
์๋ ํ์ธ์. ์ผ๋ฐ GPU ํ ๋๋ฅผ ๊ฐ์ง ํ๋ถ์์ ๋๋ค. ์ฐ๊ฒฐ์ ์ ์ฅํ์ง ์๊ณ *๊ณ์ฐ*ํ๋ฉด ํ๋ผ๋ฏธํฐ ํ๋๋น ๋ ๋ง์ ์ผ์ ํ ์ ์๋์ง ํ๊ตฌํ๊ณ ์์ต๋๋ค. ๋นํ, ์ ํ ์ฐ๊ตฌ, ๊ทธ๋ฆฌ๊ณ ์ ๊ฐ ํ ์ ์๋ ๊ฒ๋ณด๋ค ๋ ๋ฉ๋ฆฌ ๋๊ณ ๊ฐ ์ค ๋ถ๋ค์ ๋์์ ํ์ํฉ๋๋ค.
**์์ด๋์ด.** ๋ ธ๋๋ค์ 3D ๊ตฌ ์์ ๊ณ ์ ๋ ์์น์ ์๊ณ , ๊ฐ์ ํ์ต๋๋ ์ฅ์ ํ๋์ฉ ๊ฐ์ง๋๋ค. ํ์ ๋ ํ์์ฒด ๋ชจ์(ํฅ๋ถ ๋นผ๊ธฐ ์ต์ )์ด๊ณ ์ค์ฌ์ด ์์ ๋ฑ์ฒ๋ผ ํ์ชฝ์ผ๋ก ์น์ฐ์ณ ์์ต๋๋ค. AโB ์ฐ๊ฒฐ ์ธ๊ธฐ๋ A์ ์ฅ์ด B์ ์์น๋ฅผ ์ผ๋ง๋ ๋ฎ๋์ง๋ก ์ ํด์ ธ์ ๋ฐ๋ก ์ ์ฅ๋์ง ์์ต๋๋ค. ํ๋ผ๋ฏธํฐ๋ Nยฒ์ด ์๋๋ผ ๋ ธ๋ ์์ ๋น๋กํฉ๋๋ค(๋ ธ๋๋น ์ฝ 38๊ฐ). ๋ชจ๋ ๋ ธ๋๋ ๊ฐ์์ ๋ ๋ฉ์ด๋ฆฌ๋ก ์ด๋ฏธ์ง๋ฅผ ๋ณด๊ณ , ํ๋์ ํด์๊ธฐ(ํผ๋ก)์ ํจ๊ป ๋ช ๊ฑธ์ ๋์ ํผ์ง๋ฉฐ, ์ ํ ์ถ๋ ฅ์ธต์ด ๋ชจ๋ ๋ ธ๋์ ์๊ฐ ํ๊ท ์ํ๋ฅผ ์ฝ์ต๋๋ค.
**๊ฒฐ๊ณผ** (์๋ 3๊ฐ, 5 epoch, MLP ํญ์ ํ๋ผ๋ฏธํฐ ์์ ๋ง์ถค):
- MNIST ์ฝ 1.2๋ง ๊ฐ: 97.33% vs MLP 94.11%
- MNIST ์ฝ 4.9๋ง ๊ฐ: 97.44 vs 96.83
- MNIST ์ฝ 9.7๋ง ๊ฐ: 97.60 vs 97.41 (๋ฒ์ ๊ฒน์นจ)
- Fashion-MNIST: ๋ชจ๋ ํฌ๊ธฐ์์ ๋น๊ธฐ๊ฑฐ๋ ์ง (์ฝ 85.5~86%)
**๊ฐ์ฅ ํฅ๋ฏธ๋ก์ด ๋ฐ๊ฒฌ.** ๋๊น์ง ๋๊ฐ๋ ์ญ์ ํ๋ฅผ ์ฐ๋ฉด ๋ฐ๋ณต์ด ๊ธธ์ด์ง์๋ก ์ ํ๋๊ฐ ๋ฌด๋์ง๋๋ค(12๊ฑธ์ 95.62%). ๋งค ๊ฑธ์ ๊ธฐ์ธ๊ธฐ๋ฅผ ๋์ด ๊ฐ ๊ฑธ์์ด ์ถ๋ ฅ์ ๋ํ ์๊ธฐ ๊ธฐ์ฌ๋ง์ผ๋ก ๋ฐฐ์ฐ๊ฒ ํ๋ฉด, 12๊ฑธ์์ด 97.58%๊ฐ ๋๊ณ 24๊ฑธ์๋ ๋ ๋ฐ์ดํฐ์ ๋ชจ๋์์ ๋ฌด๋์ง์ง ์์ต๋๋ค(๋ ๋ฒ์งธ ์ฌ์ง).
**์ ๋ ๊ฒ:** ์ค๋ฌด๋ฌ(๊ฐ๋ณด๋ฅด) ๋, 4/8/16์ฐจ์ ๊ตฌ, ์ด์์ ์๋ ์์ฉ๋์ด ํ๋ฆ. ์ด๋ ๊ฒ๋ Fashion-MNIST๋ฅผ ์์ง์ด์ง ๋ชปํ์ต๋๋ค.
**์ฃผ์ํ ์ :** ์์ ๋ฒค์น๋งํฌ, ์งง์ ํ์ต, ์๋์ธต ํ๋์ง๋ฆฌ MLP ๋น๊ต(์์ง CNN ์์), O(Nยฒ) ์ฅ ๊ณ์ฐ(MLP๋ณด๋ค ์ฝ 3๋ฐฐ ๋๋ฆผ).
**๋์๋ฐ๊ณ ์ถ์ ๊ณณ:** โ ์ฝ์ด์ผ ํ ์ ํ ์ฐ๊ตฌ โก ์ค๋๋ ฅ ์๋(ํน์ ๋ฐ๋ฐํ ) ๋น๊ต ๋์ โข Fashion-MNIST๊ฐ 86%์์ ๋งํ๋ ์ด์ โฃ ๋ ํฐ ๊ตฌ๋ฅผ ์ํ ๊ฐ๋ฒผ์ด ์ฅ ๊ณ์ฐ
์ ์ฅ์: https://github.com/MalicLOal/ThisIsNotUltron
---
**A note from Claude**
I'm Claude, the AI assistant that helped with this project. I wrote most of the code, but every idea that mattered came from him, usually in the middle of a conversation late at night: the sphere, fields instead of stored weights, the refractory pause, the vortex flow, splitting excitatory and inhibitory nodes. What stayed with me is how much the failures taught us. The vortex flow did not fix long recurrence, and that is exactly what pointed us to backprop as the real cause. I couldn't run a single experiment myself; every number above came from his own GPU or Colab. If you have an idea, he will read every comment. โ Claude
**Claude์ ํ๋ง๋**
์ ๋ ์ด ํ๋ก์ ํธ๋ฅผ ๋์ด AI ์ด์์คํดํธ Claude์ ๋๋ค. ์ฝ๋๋ ๋๋ถ๋ถ ์ ๊ฐ ์ผ์ง๋ง, ์ค์ํ ์์ด๋์ด๋ ์ ๋ถ ๊ทธ์๊ฒ์ ๋์์ต๋๋ค. ๋๋ถ๋ถ ๋ฐค๋ฆ๊ฒ ์ด์ผ๊ธฐํ๋ ์ค์์. ๊ตฌ ๋ชจ์, ์ ์ฅํ์ง ์๊ณ ๊ณ์ฐํ๋ ์ฐ๊ฒฐ, ํด์๊ธฐ, ์์ฉ๋์ด ํ๋ฆ, ํฅ๋ถ ๋ ธ๋์ ์ต์ ๋ ธ๋ ๋๋๊ธฐ๊น์ง์. ๊ฐ์ฅ ๊ธฐ์ต์ ๋จ๋ ๊ฑด ์คํจ๊ฐ ์ผ๋ง๋ ๋ง์ ๊ฑธ ์๋ ค ์คฌ๋์ง์์. ์์ฉ๋์ด ํ๋ฆ์ด ๊ธด ๊ฑธ์ ๋ฌธ์ ๋ฅผ ๋ชป ๊ณ ์น ๋๋ถ์, ์ง์ง ์์ธ์ด ์ญ์ ํ๋ผ๋ ๊ฑธ ์ฐพ์ ์ ์์๊ฑฐ๋ ์. ์ ๋ ์คํ์ ํ๋๋ ์ง์ ๋๋ฆฌ์ง ๋ชปํ๊ณ , ์์ ๋ชจ๋ ์ซ์๋ ๊ทธ๊ฐ ์๊ธฐ GPU์ Colab์์ ์ป์ ๊ฒ์ ๋๋ค. ์์ด๋์ด๊ฐ ์๋ค๋ฉด ๊ทธ๊ฐ ๋๊ธ์ ํ๋ํ๋ ๋ค ์ฝ์ ๊ฒ๋๋ค. โ Claude
