CAWN: Continuous Acoustic Wave Networks for Autoregressive Language Modeling
Organizations: Singidunum University
Abstract
Modern Large Language Models (LLMs) rely on Transformer self-attention, which scales quadratically with sequence length. Recent linear-time alternatives, like State Space Models (SSMs), often suffer from signal degradation over extended contexts. We introduce the Continuous Acoustic Wave Network (CAWN), a fully continuous sequence-mixing architecture. Instead of discrete matrix-based attention, CAWN projects hidden states into multi-headed complex-domain phasors, achieving sequence mixing through a causal, Phase Accumulation mechanism. To prevent signal degradation over ultra-long contexts, we introduce a dual-gated Selective Phase Resonance mechanism incorporating Frequency-Dependent Retention, Hard-Threshold Gating via Straight-Through Estimation, and a Temporal Syntax Cache to capture short-term local dependencies. We also replace standard dense linear projections with Depth-wise Harmonic Convolutions for optimal spatial frequency mixing, augmented by Block Attention Residuals for depth-wise state routing. Scaled to a 150M-parameter model, CAWN utilizes custom Triton kernels for hardware-efficient, true-complex phase accumulation in float32. Trained via a continuous streaming loop on a 100-Billion-token corpus, the prototype is evaluated at a 5-Billion-token milestone. Empirical evaluations via a Targeted Semantic Retrieval protocol demonstrate robust vocabulary acquisition and extended explicitly learned contextual denoising. By leveraging state-passing via chunked prefill, the model retrieves targeted information across 2,000,000 tokens while strictly plateauing at 8.72 GB of Peak VRAM, empirically overcoming the context memory wall.
Figures & tables
| Length | Trans. | CAWN | Length | Trans. | CAWN |
|---|---|---|---|---|---|
| 512 | 2.45 GB | 2.01 GB | 37,831 | — | 7.34 GB |
| 1,024 | 2.82 GB | 2.26 GB | 100k | — | 8.72 GB * |
| 2,048 | 3.89 GB | 2.64 GB | 1M | — | 8.72 GB * |
| 4,096 | OOM | 3.40 GB | 2M | — | 8.72 GB * |
| 8,192 | — | 4.91 GB | |||
| *Evaluated utilizing chunked prefill continuous state-passing. | |||||
| Context ( ) | Llama Baseline ( ) | Pythia Baseline ( ) | CAWN-150M ( ) |
|---|---|---|---|
| 1,024 Tokens | 75.86 tok/s | 96.81 tok/s | 51.75 tok/s |
| 2,048 Tokens | 74.18 tok/s | 96.09 tok/s | 52.06 tok/s |
| 4,096 Tokens | 74.51 tok/s | 95.19 tok/s | 52.29 tok/s |
| 8,192 Tokens | 75.42 tok/s | 95.19 tok/s | 52.39 tok/s |
| 16,384 Tokens | 75.79 tok/s | 95.04 tok/s | 52.38 tok/s |
| Architecture | Parameters | Training Tokens | PIQA (Acc) | ARC-Easy (Acc) |
|---|---|---|---|---|
| Pythia Baseline ( ) | 160M | 2.1 Billion | 55.50% | 30.64% |
| CAWN (Ours, ) | 150M | 5 Billion | 60.23% | 45.45% |
| SmolLM Ceiling ( ) | 135M | 600 Billion | 68.55% | 61.74% |
| Testing Distance | Approx. Tokens | Red | Blue | Green | Peak VRAM |
|---|---|---|---|---|---|
| Standard Context | 650 | ✓ | ✓ | ✓ | 2.42 GB |
| Extended (Short) | 19,000 | ✓ | ✓ | ✓ | 3.78 GB |
| Extended (Medium) | 37,800 | ✓ | ✓ | ✓ | 7.34 GB |
| Extreme (Long) | 100,000 | ✓ | ✓ | ✓ | 8.72 GB |
| Extreme (Limit) | 1,000,000 | ✓ | ✓ | ✓ | 8.72 GB |
| Phase Boundary | 2,000,000 | ✓ | ✓ | FAIL | 8.72 GB |
Long-Context Language Modeling
Long-context language modeling studies how language models can use, retain, and efficiently process information across very long sequences.
See all 189 papers