chaos-chip-ramsey-k12
A trained ensemble of 4-byte "chaos chips" that solve the Kββ, k=4 Ramsey coloring problem. Each chip is a bitstream encoding an 8-parameter (4-bit quantized) genome. The genome drives a chaotic phase map producing a Β±1 edge-coloring of Kββ. Fitness: minimize monochromatic Kβ cliques.
Model Details
Model Description
- Developed by: Generated artifact (unsupervised training pipeline)
- Model type: Bitstream ensemble / combinatorial solver
- Language(s): N/A (mathematical artifact, not NLP)
- License: Apache 2.0
- Finetuned from: N/A (trained from random initialization)
Model Sources
- Repository: [local artifact]
- Paper: N/A
- Demo: N/A
Uses
Direct Use
Load ensemble_1000.bin and evaluate colorings against the Kββ Ramsey
constraint. A single ensemble draw solves the problem with probability ~57%.
import numpy as np
from eval import unpack_4bit, solve
packed = np.fromfile("ensemble_1000.bin", dtype=np.uint8).reshape(-1, 4)
ensemble = unpack_4bit(packed)
chip, mono, idx = solve(ensemble)
print(f"Best mono = {mono} (chip #{idx})")
Downstream Use
- Benchmark corpus: the 10,000-chip pool contains ~5 verified perfect solvers and ~116 near-solvers (mono β€ 2). Use as a graded dataset for testing other combinatorial solvers.
- Scaling-law research: test whether solve rate follows
rate(n,k) ~ exp(-c(n-k)Β²)across Ramsey K_n instances. - Substrate study: the same genome works on digital, optical, memristor, and skyrmion substrates (verified in prior experiments).
Out-of-Scope Use
- Any Ramsey instance with n > 16 or k > 4 β the map lacks the expressivity.
- Cryptographic applications β avalanche is 2%, not 50%.
- Real-time control loops β 4-bit quantization is coarse.
- Safety-critical systems β no correctness guarantee, only probabilistic.
Bias, Risks, and Limitations
- Low hit rate: 0.05% per chip. This is a rare-hit solver, not a fast one.
- Expressivity ceiling: fails at Kββ, k=4 (residual mono β₯ 5 after 2000 training steps).
- No cross-problem transfer: a genome trained for Ramsey does not transfer to MinBisection or MonoTri (verified transfer ratio < 0.7).
- Quantization destroys 2-bit representations: 2 bits/param collapses to random. 4 bits is the minimum viable precision.
Recommendations
Users should treat this as a probabilistic solver with verified hit rate, not a deterministic solver. Ensemble-size the deployment to match the required solve probability.
How to Get Started
pip install numpy jax jaxlib
python eval.py
Training Details
Training Data
No external data. Trained on a synthetic fitness landscape (Ramsey Kββ constraint) using gradient descent.
Training Procedure
- Objective: minimize
mean over cliques of (avg edge color)Β² - Smooth relaxation:
tanh(Ξ² Β· p)with Ξ² = 1.5 - Optimizer: vanilla gradient descent, lr = 0.02
- Steps: 2,000
- Genome: 2 monomers Γ 4 features = 8 parameters
- Expansion: genome tiled to length N=12
- Chips trained: 10,000
Speeds, Sizes, Times
- Training wall-clock: ~82s (CPU, JAX)
- Throughput: ~24 chips/sec/CPU (long training)
- Storage: 40 KB for 10,000 chips (4-bit packed)
Evaluation
Testing Data
200 random 1,000-chip draws from the trained pool, seed=0.
Metrics
- Individual chip solve rate (accuracy)
- Ensemble solve probability (accuracy)
- Mean mono count (loss)
Results
| Metric | Value |
|---|---|
| Individual chip solve rate (float32) | 0.05% |
| Individual chip solve rate (4-bit) | 0.05% |
| 1000-chip ensemble solve probability | 57.0% |
| Mean mono count | 6.726 |
| Min mono count | 0 |
| Chips with mono β€ 1 | 13 (0.65%) |
| Chips with mono β€ 2 | ~65 (0.65%) |
Summary
The 4-bit quantization is lossless for this problem β solve rate is identical between float32 and 4-bit representations. The ensemble scales sublinearly: k=100 β 3.5%, k=500 β 32.5%, k=1000 β 57.0%.
Environmental Impact
- Hardware Type: CPU (JAX)
- Hours used: < 1
- Cloud Provider: Local
- Carbon Emitted: negligible
Technical Specifications
Model Architecture
genome (2Γ4 params) β tile to 12 β chaotic phase map β median threshold β Β±1 coloring
Compute Infrastructure
- Hardware: CPU (JAX backend)
- Software: JAX, NumPy, Python 3.10+
Glossary
- Chaos chip: a trained 8-parameter genome represented as a 4-byte bitstream.
- Mono count: number of monochromatic K_k cliques in a K_n coloring.
- Bitstream: the 4-bit-per-parameter representation of one chip.
- Ensemble: a set of chips evaluated jointly; solve if any chip succeeds.
Evaluation results
- Individual Chip Solve Rate on Ramsey K_12 k=4self-reported0.050
- 1000-Chip Ensemble Solve Probability on Ramsey K_12 k=4self-reported57.000
- Mean Mono Count (trained pool) on Ramsey K_12 k=4self-reported6.726
- Min Mono Count on Ramsey K_12 k=4self-reported0.000