CARVE: Content-Aware Recurrent with Value Efficiency for Chunk-Parallel Linear Attention
About
Recurrent delta-rule models keep a fixed-size state matrix S (d_v x d_k) that compresses all past context. The state of the art (GDN-2) gates this update with element-wise matrix erase/write masks. This is powerful but has two defects. First, both gates are computed from the incoming token alone, making the model memory-blind: it decides what to erase without seeing what it has stored. Second, value-axis coupling in the erase gate blocks the WY-form triangular chunk solver that drives efficient training -- the intra-chunk system splits into d_v independent solves, collapsing throughput to serial-recurrence cost. We introduce CARVE (Content-Aware Recurrent with Value Efficiency), which fixes both and, via a single-launch "megakernel" scheduling of the same WY-form math, trains faster than the matrix-gated baseline it replaces. The key idea is architectural: restricting all gating to the key axis makes the intra-chunk coupling independent of the value index, restoring one unmodified WY-form solve. Within this constraint, CARVE conditions both gates on a content signal read once per chunk from the chunk-boundary state and folded algebraically into each gate's low-rank projection (by associativity, U(Sq)=(US)q), giving memory-aware gating at negligible extra traffic. At init the content projections are zero, so CARVE is bit-identical to the baseline; we prove the one-chunk staleness perturbs gates by only O(1/sqrt(L)), matching a measured 0.18% deviation flat up to L=128. At 1.3B parameters / 100B FineWeb-Edu tokens on H100 (three seeds), CARVE improves every axis: WikiText perplexity 15.72 vs 15.90 (hybrid 15.41 vs 15.62), +0.63 pp average common-sense accuracy, and state-of-the-art RULER and real-world recall -- while training +1.4% faster at matched depth and +19.3% at iso-quality depth, at +13% peak memory. Backed by six formal guarantees.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Commonsense Reasoning | PIQA | Accuracy74.31 | 400 | |
| Question Answering | BoolQ | Accuracy64.04 | 233 | |
| Commonsense Reasoning | SIQA | Accuracy43.67 | 183 | |
| Question Answering | ARC-C | Accuracy38.84 | 69 | |
| Commonsense Reasoning | HellaSwag | Normalized Accuracy59.83 | 66 | |
| Commonsense Reasoning | WinoGrande | Accuracy60.71 | 61 | |
| Language Modeling | LAMBADA | Accuracy52.37 | 50 | |
| Language Modeling | WikiText | Perplexity15.41 | 47 | |
| Question Answering | ARC-E | Accuracy (%)73.06 | 39 | |
| Question Answering | OpenBookQA | Accuracy34.2 | 31 |