Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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.

Sayak Dutta• 2026

Related benchmarks

TaskDatasetResultRank
Commonsense ReasoningPIQA
Accuracy74.31
400
Question AnsweringBoolQ
Accuracy64.04
233
Commonsense ReasoningSIQA
Accuracy43.67
183
Question AnsweringARC-C
Accuracy38.84
69
Commonsense ReasoningHellaSwag
Normalized Accuracy59.83
66
Commonsense ReasoningWinoGrande
Accuracy60.71
61
Language ModelingLAMBADA
Accuracy52.37
50
Language ModelingWikiText
Perplexity15.41
47
Question AnsweringARC-E
Accuracy (%)73.06
39
Question AnsweringOpenBookQA
Accuracy34.2
31
Showing 10 of 15 rows

Other info

Follow for update