Skip to content
Physics and the sciencesExperiments

Verace Wavefront

Wave-based learning, comparison-free optical sorting and geometric graph routing, studied in simulation and C benchmarks.

Verace Research·3 publications
  1. Waveguide loop: Tokens circulate in it as optical pulses
  2. Interference cross term: Writes each weight locally
  3. Backward guide wave: Sent back through the transposed weights
Figure 1. Forward and guide waves meeting in the Recurrent Waveguide Network. Schematic: a forward signal wave and a backward guide wave passing through each other, as in Reciprocal Wave Resonance. The optical loop exists only as a design, and the lab's simulations reduce the update to backpropagation.
Open the simulator on its own pageTwo pulses that pass through each other: an interactive toy model of the principle. You can also try it below

Overview

Verace Wavefront is the lab's research on computing with physical waves and geometry in place of standard digital procedures. It addresses three questions. First, can training a sequence model avoid the three bottlenecks of backpropagation through time (BPTT) if the network is mapped onto an optical cavity loop? Those bottlenecks are weight transport, the memory wall and update locking. Second, can keys be sorted without comparisons by dispersing them as wavelengths through a prism? Third, can shortest paths be found by local queries instead of Dijkstra's priority queue? The recurrent language-model line that grew out of the same collection is documented separately as Verace Hologram.

The learning work is called Reciprocal Wave Resonance (RWR). It represents tokens as optical pulses circulating in a waveguide loop, the Recurrent Waveguide Network, with Zt=Wxxt+Whht−1Z_t = W_x x_t + W_h h_{t-1} and ht=tanh⁡(Zt)h_t = \tanh(Z_t). Lorentz reciprocity lets a backward guide wave traverse WTW^T physically. Weight updates are written locally as interference cross terms. Analytical Cavity Induction gives a closed-form starting point. Diffractive Optical Sorting maps each key to a wavelength, then to a refraction angle, then to a pixel on a linear CCD, and Recursive Wavelength Zoom resolves collisions. Hyperbolic Geodesic Coordinate Routing and Isometric Hub-Label Routing, the latter built on the established pruned landmark labelling method by others, replace Dijkstra for shortest-path queries.

The lab built Python simulations of RWR learning and C implementations of the optical sorter. The sorter runs on 100-byte sort-benchmark records. The record generator, validator and parallel data-pump library that feed these benchmarks are third-party tools, not the lab's work. In the lab's simulation of a character-level spelling task, predicting 'ello' from 'hell', mean squared error reached zero in under 100 epochs with 100% accuracy. The sorting benchmark compares against qsort using assumed powers of 15 W for the CPU and 0.35 W for the optical sorter. The plotting script draws hardcoded latency and efficiency figures, some of them estimates for hardware.

All three lines are implemented only as software simulations; no optical hardware exists. Reading the code shows that the RWR update rule is mathematically identical to backpropagation, and its recurrent form is hand-written BPTT. The simulations therefore do not show the claimed constant activation memory, which would depend on a physical cavity. The constant-time sort is a physical claim: the simulation runs in O(N)O(N) time. The hyperbolic router can fail at local minima. The design reports state hub-label routing is exact. No independent evaluation is recorded for any of these lines.

Status

Experiments. Python simulations, C sorting benchmarks and a graph-routing benchmark script exist with a recorded spelling-task result, but the physical optical systems they model exist only as designs, and the lab's code shows the wave learning rule reduces to backpropagation.

Simulator

A tall, fast pulse catches a low, slow one. Play the meeting or drag the time, and change their heights. This is the exact two-soliton solution of the Korteweg-de Vries equation.

  • dashed marks: where each pulse would be had it travelled alone from the start
Speed of the tall pulse
1.96
Speed of the low pulse
0.64
Tall pulse ends up ahead by
1.86
Low pulse ends up behind by
3.25

Play it, or drag the time. The pulses keep their shapes; the only trace of the meeting is where they end up.

This simulator is an illustration of the principle, with made-up numbers. It does not run the lab's code or show the lab's data, and nothing in it is a measurement.

Architecture

  1. Reciprocal Wave Resonance learning

    A learning scheme in which a forward signal wave and a backward target guide wave interfere, and their cross term writes each weight locally. The design presents it as a replacement for backpropagation on optical hardware.

  2. Recurrent Waveguide Network

    RWR applied to sequences: a circulating cavity loop in which each input pulse merges with feedback through a nonlinear screen. A reverse-time wave takes the place of BPTT.

  3. Analytical Cavity Induction

    A closed-form initialisation of the recurrent transition. It is obtained from a Wiener-Hopf solution of a linearised loop instead of by gradient descent.

  4. Diffractive Optical Sorting

    A comparison-free sort that encodes each key as a wavelength, disperses it through a prism onto a linear CCD and reads the pixels in order.

  5. Recursive Wavelength Zoom

    A collision-resolution step for optical sorting. It re-maps the key range of keys that land on the same pixel onto the full spectrum and passes them through the prism again.

  6. Autonomous pixel resolution selection

    A rule that picks the CCD resolution from the smallest gap between dispersed positions, so that distinct keys separate onto distinct pixels.

  7. Hyperbolic Geodesic Coordinate Routing

    A shortest-path alternative that embeds a weighted graph in the Poincare ball and routes greedily toward the target by hyperbolic distance.

  8. Isometric Hub-Label Routing

    Exact shortest-path routing from 2-hop labels, built on the established pruned landmark labelling method by others. It needs no priority queue at query time.

  9. Sorting benchmark harness

    C programs that run the optical sorter and a qsort baseline on 100-byte records with 10-byte keys. They validate the output order and compare time and assumed energy.

  10. Third-party record tools

    A record generator, a sort validator and a parallel data-pump library written by others. They produce and check the benchmark input and are not part of the lab's method.

Implementation

Mechanisms as they are implemented in the source code, with the constants the code uses.

RWR local outer-product update
The backward guide wave is seeded with Ebwd=(Y−y^)⊙f′(Z)E_{bwd} = (Y - \hat{y}) \odot f'(Z) and sent through the transposed weights. The update is ΔW=ηEbwdEfwdT/n\Delta W = \eta E_{bwd} E_{fwd}^T / n. In benchmark_rwr_vs_backprop.py and simulate_rwr_learning.py, this is mathematically equal to backpropagation gradient descent.
Reciprocal wave BPTT
In train_rwr_wikitext.py the backward pass is framed as a time-reversed error wave. It computes δt=(gt+ct)(1−ht2)\delta_t = (g_t + c_t)(1 - h_t^2), carries ct−1=δtWhc_{t-1} = \delta_t W_h and accumulates ΔW+=δTx\Delta W \mathrel{+}= \delta^T x. This is standard BPTT for a tanh recurrent network, written by hand.
Wiener-Hopf cavity initialisation
The regressors are z=[ht−1,xt]z = [h_{t-1}, x_t], and the target hh is the tanh of the next input's first H dimensions, under teacher forcing. The code solves W=Rhz(Rzz+10−5I)−1W = R_{hz}(R_{zz} + 10^{-5} I)^{-1} and splits the result into WxW_x and WhW_h, with WhW_h scaled by 0.1.
Prism dispersion model
simulate_optical_sorting.py maps a normalised key to wavelength λ=0.400+0.300⋅norm\lambda = 0.400 + 0.300 \cdot \mathrm{norm} in micrometres. It uses refractive index n=1.7280+0.01342/λ2n = 1.7280 + 0.01342/\lambda^2, angle θ=arcsin⁡(sin⁡45∘/n)\theta = \arcsin(\sin 45^\circ / n) and position x=0.5tan⁡θx = 0.5 \tan\theta, which is quantised to a CCD pixel. Reading in pixel order is a bucket sort, simulated in O(N)O(N) time.
Recursive zoom on collisions
sort_gensort_file.c chooses the resolution as the key range divided by the minimum spatial gap and bins records by radix sort. It re-disperses each collision group over the full 400 to 700 nm band recursively. Groups whose keys are all equal end the recursion, so the program reports no comparisons.
Sparse CCD readout
sort_benchmark_run.c does not allocate a dense pixel array. It stores (pixel index, record) pairs only for occupied pixels and orders them with a 4-pass, 256-bucket stable radix sort, which makes a resolution of INT_MAX pixels feasible in linear time. Remaining collisions are insertion-sorted.
Assumed-power energy comparison
The same benchmark reports JouleSort-style efficiency by multiplying measured times by fixed powers: 15 W for the CPU running qsort and 0.35 W for the optical sorter. generate_plots.py draws hardcoded latency and efficiency numbers, including estimated hardware.
Comparison sort baseline
compare_sorting.c reads N 100-byte records, sorts pointers with qsort using memcmp on the 10-byte key, times the run and validates the order.
Poincare ball stress embedding
run_dimacs_benchmark.py and invent_dijkstra.py fit hyperbolic distances to edge weights by Riemannian SGD. The attracting gradient is 2(d−w) ∂d/∂u2(d - w)\,\partial d/\partial u, plus repulsion between non-adjacent nodes.
Greedy geodesic routing with backtracking
A query moves to the neighbour that minimises hyperbolic distance to the target. A backtrack stack with limit 8 recovers from dead ends, but routing can still fail at local minima.
Pruned landmark labelling
invent_hub_labeling.py implements pruned landmark labelling, an established method by others: it builds 2-hop cover distance labels by running pruned Dijkstra from nodes in degree order. Exact distance queries cost O(∣L∣)O(|L|) in the label size, and paths are reconstructed by local neighbour checks.
Third-party skip-ahead record generator
The external record generator uses a 128-bit linear congruential generator X1=(aX0+c) mod 2128X_{1} = (a X_0 + c) \bmod 2^{128}. A precomputed table of its 2i2^i-th powers allows O(log⁡n)O(\log n) jump-ahead for parallel partitioned generation. This code is not the lab's.
Third-party partition validation
The external validator reduces each partition to a summary of first and last record, counts and checksum. It then checks the concatenated summaries at partition boundaries, which allows a parallel map-reduce check. This code is not the lab's.

Results

From the lab's own experiments and records. They have not been independently replicated.

  1. Spelling task learned in simulation

    In the lab's simulation of RWR training on predicting 'ello' from 'hell', mean squared error reached zero in under 100 epochs with 100% prediction accuracy.

  2. RWR update equals backpropagation

    Reading the lab's own code shows the RWR update ΔW=ηEbwdEfwdT/n\Delta W = \eta E_{bwd} E_{fwd}^T / n is mathematically identical to backpropagation gradient descent. The recurrent training script is hand-written BPTT, so the simulations do not show the memory or locality advantages the paper describes.

  3. Constant-time sort is simulated in linear time

    The design claims an O(1)O(1) physical sort, but the lab's simulation runs in O(N)O(N) time. The C implementation uses sparse pixel storage and a 4-pass radix sort.

  4. Energy advantage rests on assumed power figures

    The lab's sorting benchmark compares against qsort using assumed powers of 15 W for the CPU and 0.35 W for the optical sorter. The efficiency plots use hardcoded and estimated numbers, not measured power.

  5. Optical resolution caps sort size per pass

    The design reports name the Abbe limit as a bound on keys sortable in one beam. Recursive Wavelength Zoom and resolution selection from the minimum gap were added to handle the resulting collisions.

  6. Hyperbolic routing can fail at local minima

    The lab's implementation notes that greedy routing in the Poincare embedding can stall even with a backtrack stack of 8. The reports cite Bourgain's Ω(log⁡V)\Omega(\log V) distortion floor as the reason no low-dimensional embedding is exact for all graphs.

  7. Hub labels give exact distances

    The hub-labelling design report states that labels built with pruned landmark labelling, an established method by others, give stretch 1.000, meaning exact shortest paths, with no priority queue at query time.

Concepts

Backpropagation through time
The standard way to train recurrent networks: unroll the network over time and propagate errors backward through every step. The lab's records name three costs: weight transport, the memory wall and update locking.
Weight transport problem
Backpropagation needs the feedback path to use the exact transpose WTW^T of the forward weights. That is hard to build in analog hardware and considered implausible in brains.
Memory wall
Backpropagation must store every activation over L layers and T time steps, giving O(T⋅L)O(T \cdot L) memory. This limits batch size and sequence length.
Update locking
The forward pass must reach the end of the sequence before the backward pass begins, so weight updates cannot happen in parallel.
Lorentz reciprocity
An optical property: swapping source and detector leaves transmission unchanged. The RWR design relies on it so that a backward wave physically traverses WTW^T.
Holographic weight update
In the RWR design, a forward wave and a backward wave form a standing-wave pattern at each transmission screen. Their interference cross term is the local weight change.
Recurrent waveguide loop
A circulating optical cavity in which an input pulse merges with the fed-back state through a nonlinear screen. It is the physical counterpart of a tanh recurrent cell.
Constant activation memory claim
The RWR paper claims an O(1)O(1) activation memory footprint. The lab's own code computes the same gradient as BPTT, so the claim depends on optical hardware that has not been built.
Wiener-Hopf solution
A closed-form least-squares estimate W=RhzRzz−1W = R_{hz} R_{zz}^{-1} built from cross- and auto-covariances. The design uses it to set recurrent weights without gradient descent.
Comparison-free sorting
Ordering keys by a physical mapping, here wavelength to position, instead of pairwise comparisons. In software the method reduces to bucket and radix sorting.
Abbe diffraction limit
The smallest resolvable wavelength difference is bounded by about λ/ND\lambda / N_D. This caps how many distinct keys one beam can separate, so collisions must be handled.
Pixel collision
Two or more keys that map to the same CCD pixel. Recursive Wavelength Zoom resolves them by re-dispersing their narrower key range.
JouleSort-style efficiency
Records sorted per joule of energy. The lab's benchmark computes it from measured time and assumed power figures, not measured power.
Poincare ball embedding
A model of hyperbolic space as the open unit ball, in which tree-like graphs embed with low distortion. HGCR places graph nodes there.
Bourgain distortion floor
Some finite metric spaces embed into Hilbert space only with distortion Ω(log⁡V)\Omega(\log V). The lab's records cite this to explain why geometric routing cannot be exact on all graphs.
2-hop cover labels
Each node stores distances to a set of hub nodes, chosen so that every shortest path passes through a hub shared by both endpoints' labels. A distance query is then a merge of two labels.
Gensort records
The standard sort-benchmark input: 100-byte records with a 10-byte key. They are produced and checked here by third-party tools.

Publications

About this page

Written from the lab's own documents and source code. Figures and results are the lab's measurements as it recorded them at the time, and have not been independently replicated.

Published under the PolyForm Noncommercial License 1.0.0: free for noncommercial use.