arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.27229cs.CLcs.AIcs.LGcs.NE
收藏

CARVE: 内容感知循环与值效率的分块并行线性注意力

CARVE: Content-Aware Recurrent with Value Efficiency for Chunk-Parallel Linear Attention

Sayak Dutta

AI总结:

提出CARVE模型,通过仅在键轴上擦除解决delta规则架构的三个耦合缺陷,实现WY形式分块求解器,在1.3B参数上取得WikiText困惑度15.72,优于GDN-2。

摘要:

循环模型必须遗忘才能记忆,然而现有技术决定擦除什么时并不咨询存储的内容——门控仅看到到达的token,而不是它将要修改的记忆。这种记忆盲门控是领先的delta规则架构(GDN-2)中三个耦合缺陷之一:值轴擦除掩码在值投影的规模上浪费参数,并且——如我们证明——数学上阻止了使循环训练与Transformer具有竞争力的WY形式三角形分块求解器。我们引入CARVE(内容感知循环与值效率),通过一个原则解决了所有三个问题:仅在键轴上擦除。这对于WY形式求解器保持有效是必要且充分的。在其中,CARVE重用循环输出张量——已写入GPU内存——作为擦除门的自由内容信号,并将每个值的写门投影替换为每个头的单个标量。初始化时,CARVE与GDN-2位相同;任何质量差异源于内容门学习的内容。在1.3B参数、100B token训练下,CARVE在WikiText上达到困惑度15.72(比GDN-2低0.18,4.5 sigma效应),在九个常识推理基准上领先所有循环基线,并在所有RULER检索探针上达到最先进水平——吞吐量开销0.4%,峰值内存降低13%,参数减少19%。六个形式定理涵盖记忆容量、Lyapunov稳定性、梯度流、表达能力分离、Pareto最优分块大小和混合最优性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑