Edit: Added neural painter that uses this to match images. It goes through interseting process. (depending on image) Tries to match the moire patterns (fighting against nyquist limit due to the 128 resolution with gradients) and finally matches image.
RCNet phase-locking onto the chaotic attractor of the Lorenz System. The red line (AI Hallucination) perfectly traces the blue line (True Physics) by learning the system's differential equations in the frequency domain.
Standard Neural Networks (ReLUs, Transformers) treat data as static numbers. They solve problems by "Curve Fitting"—drawing thousands of tiny straight lines to approximate a curve. This is why they require massive scale to learn simple cyclic concepts (like addition modulo P).
RCNet (Resonant Cortex Network) treats data as Waves.
It uses Complex-Valued Neural Networks (CVNNs) where every neuron has:
- Amplitude (Magnitude): The strength of the signal.
- Phase (Angle): The timing/position in a cycle.
This allows RCNet to solve problems via Wave Interference and Phase Locking rather than brute-force memorization.
-
Standard Transformers: Typically require 5,000–20,000 epochs to grok Modular Addition (
$a+b \pmod{97}$ ). They struggle to approximate the circle topology. -
RCNet: Grokked the task in 129 epochs with 100% accuracy.
Mechanism: It didn’t learn a table—it rotated phases until alignment. It solved the problem by being the geometry.
- Task: Predict the next step of the Lorenz Attractor.
-
Standard LSTMs: Plateau around MSE
$10^{-3}$ and fail to capture the attractor. -
RCNet: Achieved MSE
$1.2 \times 10^{-5}$ .
Mechanism: It encoded the system’s differential equations as phase shifts. Even when trajectories diverge, they stay on the attractor manifold.
Instead of
Logic is phase rotation. Activation is amplitude saturation.
RCNet includes a Frustration Monitor:
- Detects loss plateaus.
- Dynamically adds a new Resonant Column.
- Starts small, grows only when needed.
- Python 3.8+
- PyTorch
- NumPy, Matplotlib, Seaborn, SciPy
python resonant_cortex.pyOutputs resonant_cortex_results.png (Phase Heatmap).
python chaos_grok_fixed.pyOutputs chaos_fixed.png (3D Phase Space + Frequency Map).
- Optical Computing: Direct mapping to photonic interference.
- Quantum Simulation: Native wavefunction support.
- Signal Processing: Phase-locking solution to the cocktail party problem.
MIT


