Skip to main content
Back

Fractal Neural Synthesis Squeezes a Working AI Model Into 285 Bytes

A new paper replaces a neural network's hidden layer with three floating-point numbers that trace the edge of the Mandelbrot set.

Pro

  • Fractal Neural Synthesis replaces hidden-layer weights with a 24-byte coordinate seed into the Mandelbrot boundary (arXiv).
  • Weights are regenerated on the fly using a smooth escape kernel at bailout radius R = 256.
  • Four fixed geometric sampling patterns (grid, Z/9Z thirds, Vogel spiral, Harmonic Tripod) have zero stored parameters.
  • Across zoom levels 1x to 10^8 x, only the Mandelbrot boundary keeps both high rank (~10) and local continuity (0.81 to 0.97).
  • Reports 90.30% on Ionosphere in 285 bytes and 97.90% on PenDigits in 2,598 bytes, 10.7x to 129x smaller than Float32 MLPs.
  • Code at GitHub, telemetry on Zenodo; reproduces on CPU in ~30 seconds.

An arXiv preprint describes an unusual route to microcontroller-scale neural networks: regenerate every hidden-layer weight from a 24-byte coordinate instead of storing the layer. The authors call the method Fractal Neural Synthesis (FNS). They report higher accuracy than storage-matched linear baselines on four UCI classification tasks, with total model state as small as 285 bytes. The manuscript remains a preprint, and independent replication is pending.

Conventional multilayer perceptrons require storage proportional to their weight count, so modest hidden layers can exceed the flash budgets of small edge devices. FNS stores three IEEE-754 Float64 values, Θ = (cx, cy, ℓ), that identify a location and zoom level near the Mandelbrot set boundary. A deterministic fractal kernel reconstructs the hidden representation from that coordinate, while a trained INT8 readout maps the resulting features to class logits.

Why the boundary survives the zoom

A useful hidden-layer generator must produce varied features while preserving enough local continuity for optimization. Effective rank measures how many independent directions those features contain. Neighbor correlation measures whether a small coordinate change produces a correspondingly small output change.

In the paper’s ablation across magnifications from 1× to 100,000,000×, Fourier and lattice-noise generators fall to an effective rank of about 2.25, leaving their features nearly linearly dependent. A SHA-256 pseudo-random generator retains full rank, but its neighbor correlation drops to roughly 0.019. That discontinuity gives gradient-free search little useful information about nearby candidate coordinates.

Mandelbrot boundary samples maintain an effective rank near 10 and neighbor correlations from 0.81 to 0.97 across the same eight orders of magnitude. Those measurements support the paper’s central technical claim: the boundary supplies complex features with a search space that remains locally structured.

From three numbers to class logits

  1. Store the coordinate. The three Float64 values consume 24 bytes and specify the sampled region and scale.
  2. Evaluate the fractal kernel. A smooth escape-time calculation with bailout radius R = 256 iterates z ← z2 + c. The smoothed value avoids the integer bands produced by a basic Mandelbrot renderer.
  3. Sample fixed apertures. Four parameter-free geometric patterns select points around the coordinate: a Cartesian grid, a coprime 3×3 Rule-of-Thirds pattern over integers modulo 9, a golden-angle Vogel spiral, and a multiscale Harmonic Tripod.
  4. Apply the output head. An INT8 readout matrix converts the synthesized hidden features into class logits.

During training, gradient-free optimization perturbs the coordinate and fits the output head. At inference, the device repeats the escape-time calculations at the aperture points and applies the stored INT8 readout. The apertures contain no learned parameters, so increasing the synthesized hidden layer does not enlarge the 24-byte coordinate.

Accuracy measured in bytes

The reported evaluation uses leak-free 10-fold cross-validation, keeping each test fold out of coordinate search and readout fitting. The four benchmarks are nonlinear tabular classification tasks from the UCI repository.

Dataset Reported accuracy Model storage
Ionosphere 90.30% 285 bytes
Optical Digits 97.22% 2,598 bytes
PenDigits 97.90% 2,598 bytes
Satimage 87.00% 1,570 bytes

Against INT8 linear models using the same storage accounting, FNS gains between 3.6 and 10.8 percentage points, depending on the dataset. Float32 multilayer perceptrons provide a separate storage reference: the paper reports that FNS uses 10.7× to 129× less model space.

Under the paper’s accounting, the byte totals cover persistent model state, principally the 24-byte coordinate and INT8 readout. A deployed firmware image must also contain the fractal kernel, floating-point support, preprocessing, and control code. RAM use, latency, and energy require separate measurement. Many low-end microcontrollers emulate Float64 in software, and repeated escape-time iterations may dominate inference time. Generating features once and caching them shifts part of that cost into RAM.

A fixed-function hypernetwork

FNS sits alongside indirect encodings such as compositional pattern-producing networks, HyperNEAT, and hypernetworks, all of which use a compact generator to produce a larger parameter set. Its generator is a fixed mathematical kernel with no trained weights. The learned state consists of the searched coordinate and the quantized output head.

The evidence covers four small tabular datasets with tens of input features and fewer than a dozen classes. The rank analysis suggests roughly ten useful feature dimensions, while scaling to deep architectures, high-dimensional inputs, images, or language models remains untested. Gradient-free coordinate search also moves computation into training rather than removing it. Deployment work should measure Float64 performance and numerical consistency on the target chip, especially near a fractal boundary where small rounding differences can affect escape-time results.

Reproduce the core claims

The project repository contains the implementation, and the raw benchmark telemetry is archived on Zenodo under a persistent concept DOI. The authors state that the CPU test suite runs in about 30 seconds with python -m pytest tests -q. Those tests cover the rank and continuity behavior that distinguishes the Mandelbrot generator from the Fourier, lattice-noise, and pseudo-random alternatives.

The repository uses Business Source License 1.1 and states that non-commercial and academic use is permitted. The Zenodo materials use CC BY 4.0. Teams planning redistribution or commercial deployment should review the repository’s additional-use terms and change date before integrating the code.