Deep learning traditionally equates feature importance with activation magnitude—a "rate-coding" approach where relevant signals are scaled up and noise is scaled down. However, this conflates semantic importance with "loudness," obscuring the geometric structure of latent representations. Furthermore, standard Transformers suffer from the quadratic $O(N^2)$ bottleneck of self-attention when processing long sequences.
Language as a Wave Phenomenon: Semantic Phase Locking and Interference in Neural Networks introduces a novel paradigm: treating language modeling through the physics of waves. The authors propose PRISM (Phase-Rotating Interference Spectral Model), a complex-valued architecture that shifts the computational burden from scaling magnitudes to rotating phases and leveraging wave interference.
The PRISM Architecture
PRISM draws inspiration from optical 4f-correlators, utilizing several key innovations to isolate the computational role of phase and enforce a strict unit-norm constraint:
- Rotary Semantic Embeddings (RoSE): Instead of standard additive positional encodings, RoSE treats tokens as complex phasors ($z = re^{i\theta}$), using multiplicative rotation to unify token identity and sequence position.
- Gated Harmonic Convolutions: Replacing standard attention, this mechanism transforms sequences into the frequency domain via a Fast Fourier Transform (FFT), applies a learnable complex filter, and returns to the time domain via an Inverse FFT. This reduces computational complexity to $O(N \log N)$, enabling highly scalable sequence mixing.
- Phase-Preserving Components: To prevent the model from "cheating" by reverting to magnitude-based gating, PRISM employs ModReLU (which scales magnitude but leaves the angle untouched) and Phase-Preserving Layer Normalization (PPLN).
- Wave-Particle Transformer (WPT): A hybrid architecture that runs a PRISM "wave" stream in parallel with a lightweight standard Transformer "particle" stream, fusing phase-based routing with standard attention.
Mechanistic Insights: Phase as Meaning
Evaluated on WMT14 (German-English) for mechanistic debugging, the model reveals fascinating properties about how phase encodes meaning:
- Semantic Phase Locking: Synonyms exhibit high "phase coherence." Rather than just being close in a spatial latent space, their wave representations lock into similar cycles.
- Ambiguity Resolution: Polysemous words (e.g., "bank") undergo significantly larger phase rotations in deeper layers compared to unambiguous words. This suggests the model uses phase rotation to "steer" words toward their correct contextual meaning.
- Spectral Density: PRISM requires a minimum sequence length to function effectively. Just as physical wave interference requires multiple sources, the model needs a sufficient "density" of tokens to create the constructive and destructive interference patterns necessary for reasoning.
- Holographic Information: Phase-preserving dropout forces the model to distribute information "holographically" across the entire spectrum, rather than relying on isolated frequency bands.
Empirical Results and Efficiency
Tested on WikiText-103 for large-scale masked reconstruction (up to sequence lengths of $L=4096$), the Wave-Particle Transformer (WPT) demonstrated superior efficiency and representation quality. It achieved a perplexity of 4.94, outperforming the standard Transformer baseline (5.28) while utilizing 18% fewer core parameters.
Crucially, interventional ablations confirmed the primacy of phase in this architecture. Scrambling the phase of learned filters caused a catastrophic 72–205x degradation in performance, whereas scrambling magnitude resulted in only a 1.1x drop. This provides strong causal evidence that the model's task-relevant information is almost entirely stored in the phase.
Additionally, PRISM's $O(N \log N)$ complexity allows for graceful scaling. At a sequence length of 16,384, PRISM retained 77% of its throughput, while the baseline Transformer dropped to 35% before eventually exhausting memory.
Limitations and Future Directions
Despite its promise, PRISM faces practical challenges. Because the FFT is a global operation, adapting the architecture for autoregressive causal decoding (like GPT) remains non-trivial. Furthermore, complex-valued FFTs lack the deep hardware optimization currently enjoyed by real-valued operations and fused kernels like FlashAttention.
Ultimately, while PRISM is currently a digital model, its wave-based mechanics open the door to future implementations on optical computing hardware. Mapping these architectures directly onto optical systems could eventually enable near-zero-latency inference for massive sequence models.
Summary updated