Downloads · 30 days
0
leoncynn/cgn-mnist
cgn-mnist is a image classification model from leoncynn. Use it when you need a label for an image. The card lists the license as other.
A new standard architecture built on Gate Neurons, trained without backpropagation.
Downloads · 30 days
0
Access
Public
Updated Apr 13, 2026
Repo size
1.1 MB
Likes
0
Public
Click a slice to open those files.
.pkl813 KB · 64%
From the Hugging Face model README
A new standard architecture built on Gate Neurons, trained without backpropagation.
The Confluence Gate Network (CGN) is a network architecture built on a single primitive: the Gate Neuron (GN).
h_j = max(0, Σ x_i · W_ij − θ_j)
Multiple signals converge, sum, and fire above threshold — the same operation as a biological neuron. No filter size, no stride, no pooling, no weight sharing. Zero architectural hyperparameters.
| Configuration | Accuracy | Gates | Parameters | Backward Pass | Hardware | Time |
|---|---|---|---|---|---|---|
| CGN (h=128) | 90.4% | 128 | 101,632 | No | 1 CPU core | 35s |
| CGN (256→96 pruned) | 88.8% | 96 | 76,224 | No | 1 CPU core | 35s |
| CNN | CGN | |
|---|---|---|
| Input information retained | ~3% (97% lost) | 100% |
| Architectural decisions per layer | 7+ | 0 |
| Learning | Backward pass | Forward only |
| Interpretability | Post-hoc tools (SHAP, LIME) | Read the weights |
| Filter shape | Prescribed | Discovered by data |
| Gate count | Prescribed | Found by convergence |
checkpoint/ — Trained weights (W1, W2) for h=128 configurationscripts/verify_mnist.py — Inference-only verification scriptscripts/visualize_gates.py — Gate receptive field and vote visualizationscripts/compare_resolution.py — CNN vs CGN resolution comparisonfigures/ — Pre-generated visualizationsresults/ — Training logspip install numpy
python scripts/verify_mnist.py
Expected output: ~89.3% on the full 10K test set.
Note: The checkpoint was saved at a different epoch than the best test accuracy (90.4% at epoch 82).
Each gate discovers its own spatial pattern from data — no filter shape prescribed.

CNN reduces 28×28 to 5×5 (97% information loss). CGN sees the full image.



Korean Patent Application 10-2026-0052624 (filed 2026). PCT filing planned.
The checkpoint and inference scripts are provided for verification and research purposes only. The training algorithm (River Learning) is proprietary and not included in this repository.
Yeonseong Cynn — [email protected]