---
title: 'CAWN: Continuous Acoustic Wave Network'
url: https://www.emergentmind.com/topics/continuous-acoustic-wave-network-cawn
type: topic
---

# CAWN: Continuous Acoustic Wave Network

Continuous Acoustic Wave Network (CAWN) is an autoregressive language-model architecture that replaces Transformer self-attention with a continuous complex-valued “wave” process. Rather than forming an \(L \times L\) attention matrix, CAWN maps hidden states into multi-headed complex phasors, mixes the sequence through a causal \(\mathcal{O}(L)\) phase-accumulation recurrence, and uses selective phase resonance with frequency-dependent retention to preserve useful signals over extremely long contexts. In its reported 150M-parameter instantiation, trained through a continuous streaming loop on a 100-Billion-token corpus and evaluated at a 5-Billion-token milestone, the model retrieves targeted information across 2,000,000 tokens while plateauing at 8.72 GB of Peak VRAM under chunked prefill [2604.04250].

## 1. Architectural definition and motivation

CAWN was introduced to address two limitations identified in prevailing sequence models. The first is the \(\mathcal{O}(L^2)\) cost of self-attention, where key–value caches and pairwise token–token interactions scale unfavorably with context length. The second is signal degradation in linear-time alternatives such as State Space Models, which compress the past into a decaying continuous state and may wash out long-range information. CAWN’s response is a fully continuous sequence-mixing mechanism in \(\mathbb{C}\), in which context is represented as overlapping multi-frequency waves whose constructive and destructive interference carries grammar and semantics [2604.04250].

The architecture is organized around a Resonance Layer. In the reported CAWN-150M configuration, each of the \(N=16\) layers processes \(X \in \mathbb{R}^{L \times D}\) with \(D=896\) through two parallel paths. The acoustic path consists of block attention residual routing, RMSNorm, a Temporal Syntax Cache, projection into complex phasors, causal phase accumulation in \(\mathbb{C}\), and a Depth-wise Harmonic Convolution plus SwiGLU “Ear,” followed by a residual add. In parallel, an FFN path applies block attention residual routing, RMSNorm, a standard MLP / GELU FFN, and another residual add. Layers are grouped into blocks of four, with Block Attention Residuals providing depth-wise state routing while preserving strictly linear time-axis computation [2604.04250].

This formulation makes CAWN neither an attention approximation nor a conventional recurrent kernel. The past is encoded as a set of complex harmonic oscillators whose phases rotate deterministically and whose amplitudes are modulated by tokens. A plausible implication is that the model’s memory is organized spectrally rather than through explicit token-pair routing.

## 2. Resonance Layer and complex-domain sequence mixing

Within a Resonance Layer, the block-routed hidden state at time \(t\), after RMSNorm and temporal convolution, is denoted \(x_t\). For each token, head, and harmonic, CAWN projects four quantities: a positive amplitude, a base phase, a head-level input gate, and a head-plus-frequency retention gate. In the 150M model, the architecture uses \(H=4\) Acoustic Heads and \(K=64\) fixed harmonics, yielding \(HK=256\) complex channels [2604.04250].

The projections are
\[
a_{t,h,k} = \min\big(\text{Softplus}(W_a x_t),\, 10\big),
\]
\[
\phi_{t,h,k} = W_\phi x_t,
\]
\[
\beta_{t,h} \in [0,1),
\]
\[
\gamma_{t,h,k} = \sigma(W_\gamma x_t + b_k).
\]

Each token contributes a complex phasor \(z_{t,h,k} = a_{t,h,k} e^{i\phi_{t,h,k}}\), scaled by \(\beta_{t,h}\). The actual recurrence is implemented through real and imaginary pushes,
\[
p^{(r)}_{t,h,k} = (a_{t,h,k} \cdot \beta_{t,h}) \cos(\phi_{t,h,k}),
\]
\[
p^{(i)}_{t,h,k} = (a_{t,h,k} \cdot \beta_{t,h}) \sin(\phi_{t,h,k}),
\]
followed by a causal phase-accumulation update over flattened channel index \(j \in \{0,\dots,HK-1\}\). With fixed rotation angle
\[
\theta_j = 10000^{-2j / (HK)},
\]
the complex state satisfies
\[
P_{t,j} = p_{t,j} + \gamma_{t,j}\, e^{i\theta_j} P_{t-1,j},
\]
with boundary condition \(P_{-1}=0\) [2604.04250].

This recurrence is causal and linear in sequence length. A token injected at step \(\tau\) contributes a component whose phase at step \(t\) is shifted by \((t-\tau)\theta_j\), so relative distance is encoded by deterministic rotation rather than explicit attention weights. After accumulation, the real and imaginary parts are concatenated,
\[
Z_t = \text{Concat}\left(P_t^{(r)}, P_t^{(i)}\right) \in \mathbb{R}^{2HK}.
\]

Although the state is conceptually complex, implementation is explicit real-imaginary arithmetic. The phase accumulator runs inside a fused Triton kernel in float32, with phase-state clamping
\[
P^{(r)}_{t,j} = \text{Clamp}(P^{(r)}_{t,j}, -100, 100), \qquad
P^{(i)}_{t,j} = \text{Clamp}(P^{(i)}_{t,j}, -100, 100),
\]
and gradients through the accumulator are also clamped to \([-100,100]\) to avoid NaNs. The authors describe this as “true-complex phase accumulation,” because the model maintains a continuous complex state with explicit rotations rather than approximate kernel tricks or DFT matrices [2604.04250].

## 3. Selective Phase Resonance, retention, and local syntax separation

In CAWN, “resonance” denotes the sum of overlapping waves from all past tokens. Alignment between a new token’s projected phase and components already present in \(P_{t-1}\) yields constructive interference; misalignment yields destructive interference. The architecture makes this resonance selective through two gates. The input gate \(\beta_{t,h}\) controls whether token \(t\) injects energy into head \(h\), and the retention gate \(\gamma_{t,h,k}\) controls how much prior state survives at each harmonic frequency [2604.04250].

Frequency-Dependent Retention is implemented by the static bias schedule \(b_k\), which decays from \(+3\) for low-frequency channels to \(0\) for high-frequency channels, together with an initial projection bias of \(-2\) before the sigmoid. This engineering choice yields low-frequency channels with \(\gamma \approx 0.9999\), described as near-perfect global memory, and high-frequency channels with \(\gamma \approx 0.5\), described as short-term “scratchpads.” The memory system is therefore explicitly multi-timescale: low frequencies accumulate information across very long durations, while high frequencies decay more rapidly and capture local patterns [2604.04250].

The input gate is made aggressively sparse through Hard-Threshold Gating via Straight-Through Estimation. The forward pass applies a hard threshold
\[
\beta_{\text{hard}} = \beta_{\text{sigmoid}} \cdot \mathbb{I}(\beta_{\text{sigmoid}} \ge \epsilon),
\]
with \(\epsilon = 0.001\), linearly annealed from \(0\) to \(0.001\) during the first 5% of training. The final computation uses the classic STE form
\[
\beta_{t,h} = \beta_{\text{hard}} - \text{sg}(\beta_{\text{sigmoid}}) + \beta_{\text{sigmoid}},
\]
and the pre-sigmoid input is shifted by \(-3\), biasing \(\beta\) toward near zero unless the model strongly opens the gate. The stated purpose is to protect long-term phase memory from noise, especially when training data include injected garbage-token segments [2604.04250].

CAWN reserves the global phase state primarily for global semantics and long-range context, while local syntax is handled by the Temporal Syntax Cache. This module applies a causal depth-wise Conv1D over time with kernel size \(3\), asymmetric padding of two steps to the left, elementwise clamp to \([-50,50]\), and SiLU activation. The result \(x_t\) then feeds the head and harmonic projections. The separation between Temporal Syntax Cache and phase accumulation effectively decouples local grammar from global semantic resonance [2604.04250].

## 4. Harmonic post-processing and depth-wise routing

After phase accumulation, the state \(Z_t \in \mathbb{R}^{2HK}\) is reshaped so that the \(K\) harmonics form a 1D spatial dimension and the \(2H\) real-plus-imaginary components act as channels. CAWN then applies a Depth-wise Harmonic Convolution, also described as the “Cochlea,” in which each channel has its own 1D filter across neighboring harmonics. This stage allows adjacent frequencies to interact, suppresses correlated noise and destructive interference across frequency bands, and prepares the representation for nonlinear projection back into hidden space [2604.04250].

The harmonic convolution is followed by the SwiGLU “Ear”:
\[
[Z_{act}, Z_{gate}] = \text{Split}\big(\text{Flatten}(Z_{\text{conv}}) W_{proj}\big),
\]
\[
X_{wave} = \big(\text{SiLU}(Z_{act}) \odot Z_{gate}\big) W_{out}.
\]
The resulting vector in \(\mathbb{R}^D\) is added to the local residual stream. In effect, the acoustic path first mixes context continuously in complex harmonic space, then performs frequency-domain filtering, then re-enters the standard hidden-state domain [2604.04250].

Depth-wise routing across layers is handled by Block Attention Residuals. CAWN groups layers into blocks of four, maintains an “active partial stream” within each block, archives the stream at block boundaries into a list of block states \(V_n\), and resets the active stream to zero. For routing, each archived state is normalized by RMSNorm to form keys, a single learned pseudo-query vector \(w_q \in \mathbb{R}^D\) produces scalar logits per block and time step, and a softmax over the depth dimension yields a weighted sum of previous block states at the same time index. Because this attention runs only over depth, not over sequence positions, its per-token cost is \(\mathcal{O}(N)\) in the number of blocks and does not alter CAWN’s \(\mathcal{O}(L)\) time-axis complexity [2604.04250].

The residual-severing design addresses a specific deep-network pathology identified in the paper: early information can be diluted when residual streams are repeatedly summed layer after layer. The archived block states provide what the paper describes as access to “pristine” earlier states without requiring time-axis attention.

## 5. Complexity, memory profile, and long-context behavior

CAWN’s sequence-length complexity is linear. Per token, the architecture performs head-and-harmonic projections, a fixed number of trigonometric operations and multiplications per harmonic channel, depth-wise harmonic convolution, and small MLPs, but never constructs an \(L \times L\) matrix. The paper summarizes this as compute \(\mathcal{O}(L \cdot HK)\) and forward-memory \(\mathcal{O}(L \cdot D)\) for activations, plus a fixed-size phase state in streaming or inference settings [2604.04250].

A central claim of the architecture is \(\mathcal{O}(1)\) state passing in context length during autoregressive generation. To generate token \(t+1\), the model needs only the previous phase state \(P_t\), the last two local states for the Temporal Syntax Cache, and the model weights. There is no growing key–value cache. For extremely long prefills, the paper uses chunked prefill: split the input into chunks of length 32,768, run chunk 1 and keep only its final phase state, initialize chunk 2 with that phase state, and continue. Under this procedure, PyTorch sees a fixed context length per forward pass while only a constant-size phase state is carried across calls [2604.04250].

Empirically, the reported memory behavior is specific. On H100 (80GB), peak VRAM grows linearly up to about 32k tokens and then flatlines at 8.72 GB when chunked prefill is engaged. Contexts up to 2 million tokens are processed with VRAM remaining at 8.72 GB. On an 8GB GPU, the paper reports 2.82 GB for a Transformer versus 2.26 GB for CAWN at 1,024 tokens, 3.89 GB versus 2.64 GB at 2,048 tokens, Transformer OOM at 4,096 tokens, and CAWN at 4.91 GB for 8,192 tokens. On H100, CAWN handles 37,831 tokens in an unchunked pass at 7.34 GB, after which chunked prefill takes over [2604.04250].

The long-context retrieval demonstration uses a Targeted Semantic Retrieval protocol: three semantic targets are inserted early in a stream, followed by high-entropy garbage tokens, and the model is later queried autoregressively for those targets.

| Context length | Retrieval outcome | Peak VRAM |
|---|---|---|
| Standard context \(\sim 650\) | All three tokens retrieved | \(\sim 2.42\) GB |
| 19k, 37.8k, 100k, 1M | 100% retrieval for all three | Up to 8.72 GB |
| 2M | “Red” and “Blue” correct; “Green” fails (“I”) | 8.72 GB |

Up to 1,000,000 tokens distance, the paper reports 100% retrieval accuracy for all three targets. At 2,000,000 tokens, “Green” fails, which the authors hypothesize may be due to destructive interference for its spectral bands or cumulative numerical error. This suggests that the architecture’s long-context behavior is strong but not numerically trivial at extreme horizons [2604.04250].

## 6. Training protocol, contextual denoising, and reported performance

The reported prototype is CAWN-150M with \(D=896\), \(N=16\) Resonance Layers in 4 blocks, \(H=4\) heads, \(K=64\) harmonics, \(256\) complex channels, and FFN expansion factor \(4D = 3584\). Embeddings and output LM head are weight-tied. Dropout is \(0.1\) on wave projections, and layer outputs are scaled with a depth-aware factor \(0.02/\sqrt{2N}\). The training corpus is an English blend of approximately 100B tokens: 50% FineWeb-Edu PDFs, 30% DCLM, and 20% standard FineWeb-Edu, tokenized with the LLaMA-2 BPE tokenizer at vocabulary size 32k. Training uses infinite streaming through a PyTorch IterableDataset, AdamW, bfloat16 mixed precision for most of the network, float32 for the phase accumulator, native sequence length \(L=1024\), and gradient accumulation \(36\) steps times micro-batch size \(7\), for effective batch size \(252\) on 24GB RTX 3090. The complex phase state \(\Phi_t\) is persisted across micro-batches even though the gradient graph spans only \(L=1024\) [2604.04250].

The paper also specifies explicit stability guards. If cross-entropy loss is NaN or \(\infty\), the step is skipped. If the global gradient norm exceeds \(1000\), gradients are zeroed and the scheduler advances to protect phase state. This training regime is paired with deliberate data augmentation: large segments of garbage tokens are inserted into the stream and followed by meaningful queries, while training still uses autoregressive cross-entropy on all tokens. The stated effect is that the model learns to close \(\beta\) gates on noise and preserve the phase accumulator, yielding explicitly learned associative recall within noise rather than zero-shot generalization alone [2604.04250].

On WikiText-103 validation, CAWN perplexity decreases monotonically with steps: approximately \(157\) at \(244\)k steps, approximately \(95\) at \(500\)k steps, and approximately \(75\) at \(752\)k steps, reported as approximately \(5.4\)B tokens. The paper compares this to Pythia-160M at step \(1000\) and \(2.1\)B tokens with perplexity \(127.85\), stating that CAWN matches that parity around \(300\)k steps and later improves to approximately \(75\). Fully saturated baselines trained on much larger token counts remain lower in absolute perplexity: GPT-2 Small at approximately \(28.62\) and SmolLM at approximately \(18.18\) [2604.04250].

Zero-shot reasoning is evaluated with the EleutherAI LM Evaluation Harness. At approximately \(5\)B tokens and \(752\)k steps, CAWN-150M reports PIQA \(60.23\%\) accuracy and ARC-Easy \(45.45\%\). The paper compares these numbers with Pythia-160M at \(2.1\)B tokens, PIQA \(55.50\%\) and ARC-Easy \(30.64\%\), and SmolLM-135M trained on 600B tokens, PIQA \(68.55\%\) and ARC-Easy \(61.74\%\). The reported interpretation is that CAWN shows emergent reasoning beyond random guess and outperforms a parameter-matched early-stage Transformer baseline, while remaining below heavily trained Transformer baselines in absolute terms [2604.04250].

## 7. Relation to adjacent architectures, terminological scope, and limitations

Relative to self-attention, CAWN does not compute pairwise similarities \(QK^\top\) or aggregate value vectors through an attention matrix. Instead, it carries context as a superposition of harmonic components in a global complex state whose phases rotate deterministically. Relative to State Space Models and linear RNN-style models such as Mamba, RWKV, Griffin, and Hyena, the distinguishing feature is explicit complex phase rotation with frequency-dependent retention: low-frequency channels act as long-memory components and high-frequency channels as short-term scratchpads. The paper also locates CAWN closer in spirit to RoPE or Fourier features than to standard recurrent kernels, but dynamic and recurrent rather than static embedding [2604.04250].

The term “Continuous Acoustic Wave Network” is not unique to language modeling. Separate literatures describe physical acoustic-wave networks and related constructs: symmetry-broken cross-shape metamaterial networks for quasi-lossless routing along arbitrary pathways [1609.04442], resonant 3-port and 4-port acoustic networks with phase-controlled splitting, combining, and routing [1910.01579], the continuous boostlet transform as a representation system for acoustic waves in \(2\)D space–time organized by the Poincaré group and isotropic dilations [2403.11362], and acoustic neural networks implemented through passive waveguide-based computation with constrained recurrent and hierarchical architectures [2511.21313]. In that broader context, the “acoustic” in CAWN for language modeling denotes a wave-based complex-state metaphor and mechanism rather than a physical metamaterial device.

The reported limitations are explicit. Experiments are currently at 150M parameters and around 5B processed tokens, with planned but untested scaling to \(1\)–\(7\)B parameters and \(1\)T tokens. The model depends on custom Triton code and autograd for complex kernels, which introduces engineering overhead and possible portability issues. On a consumer GPU and up to 16k context, FlashAttention-based Llama or Pythia baselines achieve approximately \(75\)–\(96\) tokens/s, whereas CAWN reports approximately \(52\) tokens/s, although the paper notes that Transformer throughput degrades as key–value caches grow while CAWN throughput is flat in context length. Extremely long horizons still show occasional failures, as in the 2M-token “Green” retrieval miss. The architecture is currently text-only, and the contribution of the noise-injection strategy to gating behavior has not been isolated through ablations [2604.04250].

These constraints place CAWN in a specific research position: a fully specified linear-time language-model architecture with explicit complex-domain sequence mixing, strong empirical evidence for long-context state compression, and unresolved questions around scaling, systems integration, and numerical behavior at extreme horizons.

Source: https://www.emergentmind.com/topics/continuous-acoustic-wave-network-cawn