Skip to content
ethcocoderPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Paraphase

para + phase: an AI architecture where intelligence lives in which frequencies resonate together.

Paraphase is a sequence-model architecture inspired by string theory. Instead of stacking many specialized layers, it uses one primitive: a vibrating unit (a complex number with amplitude, phase, and frequency). Knowledge and reasoning come from resonance patterns between units.

Why it exists

Problem with today's models Paraphase approach
Attention costs O(n²), so long context is expensive Frequency-domain mixing costs O(n log n)
Every token gets the same compute Merge/split units give adaptive compute
Many specialized components, hard to interpret One primitive; inspect the spectrum directly
Changing behavior needs fine-tuning A small "geometry vector" steers behavior at runtime

Core ideas (string theory mapping)

String theory Paraphase
Vibration mode = particle type Frequency pattern = concept / memory / operation
Compact extra dimensions set allowed vibrations Geometry vector g selects which frequency bands are active
Strings split and join Merge/Split gate fuses or expands units
Duality (two views, same system) Time view ⇄ frequency view via FFT

Documentation map

File Purpose
README.md This overview
ARCHITECTURE.md Components, tensor shapes, data flow
MATH_SPEC.md Exact equations for every module
IMPLEMENTATION_PLAN.md Step-by-step build order with code skeletons
EXPERIMENTS.md Benchmarks, baselines, success criteria
ROADMAP.md Phases, risks, and future inventions

Honest status

Related work already exists: FNet, Hyena, Mamba/S4, oscillator networks. Paraphase's claimed novelty is the combination of (1) geometry-controlled frequency filters and (2) learned merge/split dynamics. This must be proven by experiments, not assumed. See EXPERIMENTS.md.

Quick start (planned)

pip install torch numpy
python train.py --task assoc_recall --model paraphase --seq_len 2048
python train.py --task assoc_recall --model transformer --seq_len 2048

Implemented v0.1 prototype

The repository now contains the core research prototype: complex unit helpers, causal FFT resonance mixing, geometry control with mode embeddings, a soft/hard merge gate, gated channel MLP blocks, a tied-weight language model, a tiny Transformer baseline, toy task generators, training, spectrum plotting, and tests. The command-line trainer currently demonstrates the copy-task loop:

python -m pip install -e .
python train.py --steps 100 --seq_len 128
python -m pytest -q

The current implementation is an honest research baseline, not evidence that the hypotheses above are true. Full matched-parameter scaling and ablation experiments remain the next step. The causality, model-shape, and mode-control tests pass locally.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages