Verace Wavefront
Wave-based learning, comparison-free optical sorting and geometric graph routing, studied in simulation and C benchmarks.
- Waveguide loop: Tokens circulate in it as optical pulses
- Interference cross term: Writes each weight locally
- Backward guide wave: Sent back through the transposed weights
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 and . Lorentz reciprocity lets a backward guide wave traverse 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 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
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.
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.
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.
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.
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.
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.
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.
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.
Sorting benchmark harness
C programs that run the optical sorter and a
qsortbaseline on 100-byte records with 10-byte keys. They validate the output order and compare time and assumed energy.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 and sent through the transposed weights. The update is . In
benchmark_rwr_vs_backprop.pyandsimulate_rwr_learning.py, this is mathematically equal to backpropagation gradient descent. - Reciprocal wave BPTT
- In
train_rwr_wikitext.pythe backward pass is framed as a time-reversed error wave. It computes , carries and accumulates . This is standard BPTT for a tanh recurrent network, written by hand. - Wiener-Hopf cavity initialisation
- The regressors are , and the target is the tanh of the next input's first H dimensions, under teacher forcing. The code solves and splits the result into and , with scaled by 0.1.
- Prism dispersion model
simulate_optical_sorting.pymaps a normalised key to wavelength in micrometres. It uses refractive index , angle and position , which is quantised to a CCD pixel. Reading in pixel order is a bucket sort, simulated in time.- Recursive zoom on collisions
sort_gensort_file.cchooses 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.cdoes 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 ofINT_MAXpixels 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
qsortand 0.35 W for the optical sorter.generate_plots.pydraws hardcoded latency and efficiency numbers, including estimated hardware. - Comparison sort baseline
compare_sorting.creads N 100-byte records, sorts pointers withqsortusingmemcmpon the 10-byte key, times the run and validates the order.- Poincare ball stress embedding
run_dimacs_benchmark.pyandinvent_dijkstra.pyfit hyperbolic distances to edge weights by Riemannian SGD. The attracting gradient is , 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.pyimplements 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 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 . A precomputed table of its -th powers allows 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.
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.
RWR update equals backpropagation
Reading the lab's own code shows the RWR update 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.
Constant-time sort is simulated in linear time
The design claims an physical sort, but the lab's simulation runs in time. The C implementation uses sparse pixel storage and a 4-pass radix sort.
Energy advantage rests on assumed power figures
The lab's sorting benchmark compares against
qsortusing 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.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.
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 distortion floor as the reason no low-dimensional embedding is exact for all graphs.
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 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 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 .
- 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 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 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 . 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 . 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
- Beyond Dijkstra: Evaluating Hyperbolic Embedding and 2-Hop Labeling for Shortest Path Routing on Large Road NetworksJune 17, 2026
- Diffractive Optical Sorting: Bypassing the Ω(N log N) Comparison Limit via Wave Propagation and RefractionJune 17, 2026
- Reciprocal Wave Resonance: Bypassing the Memory Wall and Weight Transport in Deep Sequence Modeling via Reciprocal Cavity LoopsJune 17, 2026
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.